/* Mail Assistant / JJLE Innovations.
   One deliberate look rather than a light and a dark: the page is the app's
   blue. Colours sampled from the app icon - #0048C8 core, #38A8F8 highlight -
   and every pairing checked against the LIGHTEST point of the gradient, which
   is the worst case. White 8.45:1, muted 6.23:1, links 5.53:1, all AA. */
:root {
  color-scheme: dark;
  --brand: #0048C8;
  --ground-top: #0A42B8;
  --ground-bottom: #04204E;
  --ink: #FFFFFF;
  --ink-muted: #CBDFFA;
  --link: #A9D6FF;
  --bright: #38A8F8;
  --surface: rgba(255, 255, 255, .09);
  --surface-strong: rgba(255, 255, 255, .14);
  --rule: rgba(255, 255, 255, .18);
  --affirm: #6EE7C0;
  --affirm-soft: rgba(53, 214, 164, .14);
  --shadow: 0 2px 6px rgba(0, 12, 40, .22), 0 14px 38px rgba(0, 12, 40, .28);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--ground-bottom); }

body {
  margin: 0; color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Fixed, so the blue does not band or repeat on a long page. */
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(56, 168, 248, .30) 0%, transparent 60%),
    linear-gradient(170deg, var(--ground-top) 0%, #06307F 46%, var(--ground-bottom) 100%);
  background-attachment: fixed;
}

/* The app's mark, behind everything. It is a recognisable rounded square, so
   a cropped one reads as a mistake rather than a bleed - it must sit fully on
   screen. The width tracks the empty gutter beside the 900px column
   (half the viewport, less half the column and a margin), so it stays out of
   the text instead of being clipped by the edge. Never intercepts a click. */
body.marked::before {
  content: "";
  position: fixed; top: 110px; right: 30px;
  width: clamp(180px, calc(50vw - 460px), 300px); aspect-ratio: 1;
  background: url("/icon-mark.webp") no-repeat center / contain;
  opacity: .10; pointer-events: none; z-index: 0;
}
/* Below this there is no gutter left to put it in. */
@media (max-width: 1100px) { body.marked::before { display: none; } }

.wrap { position: relative; z-index: 1; max-width: 900px; margin: 0 auto;
        padding-inline: 22px; padding-block: 36px 80px; }

nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
      border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 34px; }
nav .brand { font-weight: 650; letter-spacing: -.01em; margin-right: auto;
             display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
nav .brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: #FFFFFF; text-decoration: underline; }

h1 { font-size: clamp(32px, 5.6vw, 46px); line-height: 1.08; letter-spacing: -.028em;
     margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.3; margin: 52px 0 12px; letter-spacing: -.018em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { max-width: 66ch; }
p { margin: 0 0 1em; color: var(--ink-muted); }
strong { color: #FFFFFF; }
ul, ol { padding-left: 22px; color: var(--ink-muted); }
li { margin-bottom: 6px; }
a { color: var(--link); }

.masthead { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.masthead img { width: 78px; height: 78px; border-radius: 18px; box-shadow: var(--shadow); }
.masthead h1, .masthead h3 { margin: 0; }
@media (max-width: 520px) {
  .masthead { gap: 13px; }
  .masthead img { width: 58px; height: 58px; border-radius: 13px; }
}

.updated { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); margin-bottom: 28px; }
.lead { font-size: 19.5px; color: var(--ink-muted); margin-bottom: 8px; max-width: 58ch;
        /* Stops a one-word last line. Ignored where unsupported. */
        text-wrap: pretty; }
/* Sits under the lead: the positioning line, quieter than the hook above it
   so the two read as a pair rather than competing for the same weight. */
.sub-lead { font-size: 17.5px; color: var(--ink-muted); max-width: 62ch;
            margin-top: 10px; margin-bottom: 4px; text-wrap: pretty; }

.summary { background: var(--affirm-soft); border: 1px solid rgba(110, 231, 192, .45);
           border-left-width: 4px; border-radius: 10px; padding: 16px 18px; margin: 26px 0 8px; }
.summary p { margin: 0; max-width: none; }
.summary strong { color: var(--affirm); }

/* The positioning claim. Lighter than the page so it reads as the one panel
   that is speaking rather than another card. */
.stand-out { background: var(--surface-strong); border: 1px solid var(--rule);
             border-radius: 14px; padding: 22px 24px; margin: 26px 0 10px;
             box-shadow: var(--shadow); }
.stand-out p { max-width: none; color: #EAF2FF; }
.stand-out p:last-child { margin-bottom: 0; }
.stand-out .kicker { display: block; font-size: 12.5px; letter-spacing: .1em;
                     text-transform: uppercase; color: var(--bright);
                     margin-bottom: 8px; font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
        padding: 20px 22px; margin: 16px 0; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child, .card .strip:last-child { margin-bottom: 0; }

/* A feature: the tab's name, what it does, then its screenshots. */
.feature { margin: 18px 0 26px; }
.feature .tab-name { display: inline-flex; align-items: center; gap: 8px;
                     font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
                     text-transform: uppercase; color: var(--bright); margin-bottom: 4px; }

/* Screenshots side by side, scrolled horizontally when there is more than one.
   Snap points so a swipe lands on a shot rather than between two. */
.strip { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
         scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 14px -4px 0;
         scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.strip::-webkit-scrollbar { height: 9px; }
.strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 99px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip.single { overflow-x: visible; scroll-snap-type: none; }
/* Fade the right edge so a strip reads as scrollable rather than clipped. */
.strip:not(.single) { mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 46px), transparent 100%);
                      -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 46px), transparent 100%); }

.shot { flex: 0 0 auto; scroll-snap-align: start; width: min(600px, 88%);
        padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in;
        display: block; text-align: left; color: inherit; font: inherit; }
.strip.single .shot { width: 100%; }
.shot img { display: block; width: 100%; height: auto; border-radius: 11px;
            border: 1px solid var(--rule); box-shadow: var(--shadow);
            background: #FFFFFF; transition: transform .16s ease, box-shadow .16s ease; }
.shot:hover img { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,12,40,.3), 0 20px 48px rgba(0,12,40,.36); }
.shot:focus-visible { outline: 3px solid var(--bright); outline-offset: 4px; border-radius: 13px; }
.shot .cap { font-size: 14px; color: var(--ink-muted); margin-top: 9px; }

.hint { font-size: 13.5px; color: var(--ink-muted); margin: 2px 0 0; }

/* Zoomed view. A dialog rather than a bare div so Escape closes it and focus
   is trapped without any of that being hand-written. */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.zoom::backdrop { background: rgba(2, 12, 34, .84); backdrop-filter: blur(3px); }
dialog.zoom img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto;
                  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #FFF; }
dialog.zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
dialog.zoom figcaption { color: #DCE8FB; font-size: 14px; margin-top: 10px; text-align: center;
                         max-width: 70ch; margin-inline: auto; }
dialog.zoom .close { position: fixed; top: 18px; right: 22px; font-size: 15px;
                     color: #FFFFFF; background: rgba(255,255,255,.16); border: 1px solid var(--rule);
                     border-radius: 99px; padding: 7px 15px; cursor: pointer; }
dialog.zoom .close:hover { background: rgba(255,255,255,.26); }

code { font-family: var(--mono); font-size: .87em; background: rgba(255,255,255,.14);
       padding: 1px 6px; border-radius: 4px; word-break: break-word; color: #EAF2FF; }

footer { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--rule);
         font-size: 14px; color: var(--ink-muted); }
footer p { margin: 0 0 4px; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .shot img { transition: none; }
  .shot:hover img { transform: none; }
}
