/* =============================================================================
   Intelligent Diary — landing page candidate
   VARIANT: "every-feature"
   A confident, scannable CATALOG of everything the app does — nine numbered
   categories, an index strip, and a 19-chart gallery centerpiece.
   Deliberately differs from "complete-tour" in layout (catalog vs. narrative)
   and palette (cool slate / indigo vs. warm forest green).
   Fully self-contained: system fonts only, no CDNs, no web fonts, no network.
   Works as file:// and offline.

   Contents:
     1. Tokens
     2. Reset & base
     3. Accessibility
     4. Layout primitives
     5. Top bar
     6. Masthead
     7. Category index strip
     8. Category sections & heads
     9. Placeholders (.ph)
    10. Spec lists, cards, chips
    11. Shot grids / galleries
    12. Charts (activity + families + chart cards)
    13. On This Day
    14. Trust grid (privacy)
    15. Philosophy
    16. Pricing
    17. Final CTA / notify
    18. Footer
    19. Lightbox
    20. Reveal + responsive + reduced motion
   ============================================================================= */

/* 1. Tokens -------------------------------------------------------------- */
:root {
  --bg:        #f4f5f7;   /* cool paper */
  --bg-soft:   #eaecf1;   /* slate-tinted soft band */
  --surface:   #ffffff;
  --ink:       #161a22;   /* near-black slate */
  --ink-soft:  #3d4452;
  --ink-mute:  #6b7280;
  --line:      #dfe2e9;
  --line-2:    #c9cdd8;
  --accent:    #3b4f8c;   /* deep indigo */
  --accent-2:  #5c6fb0;   /* lighter indigo */
  --accent-tint:#e6e9f4;
  --warm:      #c46a3a;   /* terracotta focus highlight */
  --good:      #2f7a5b;
  --bad:       #b1473f;
  --dark:      #141826;   /* dark section base */
  --dark-2:    #1d2336;
  --on-dark:   #eef0f6;
  --on-dark-mute:#a7adc2;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(20,24,38,.05), 0 10px 30px rgba(20,24,38,.07);
  --shadow-lg: 0 16px 56px rgba(20,24,38,.22);
  --maxw:      1160px;
  --gap:       clamp(16px, 3vw, 28px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* 2. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.13; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.022em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
a  { color: var(--accent); }
ul { color: var(--ink-soft); }

/* 3. Accessibility ------------------------------------------------------ */
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. Layout primitives -------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { padding: clamp(46px, 7.5vw, 92px) 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: .72rem;
  font-weight: 800; color: var(--accent); margin: 0 0 .7em;
}
.eyebrow--light { color: var(--accent-2); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.lead--light { color: var(--on-dark-mute); }
.subhead { font-size: 1.05rem; margin: 28px 0 6px; font-weight: 750; }
.subhead--tight { margin-top: 0; }
.subhead--light { color: var(--on-dark); }
.subnote { color: var(--ink-mute); font-size: .95rem; margin: 0 0 18px; }

/* 5. Top bar ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,245,247,.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: 16px; height: 62px;
  width: min(100% - 32px, var(--maxw)); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.topbar__nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topbar__nav::-webkit-scrollbar { display: none; }
.topbar__nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .9rem; font-weight: 650;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
}
.topbar__nav a:hover { background: var(--bg-soft); color: var(--ink); }
.topbar__price {
  background: var(--accent); color: #fff !important; text-decoration: none;
  padding: 8px 15px; border-radius: 999px; font-weight: 750; font-size: .9rem; white-space: nowrap;
}
.topbar__price:hover { background: var(--accent-2); }

/* 6. Masthead ----------------------------------------------------------- */
.masthead {
  background:
    radial-gradient(1100px 480px at 88% -12%, var(--accent-tint), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding-top: clamp(38px, 6vw, 72px);
}
.masthead__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .8rem; font-weight: 650; color: var(--ink-soft); margin: 0 0 20px;
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.masthead h1 { margin-bottom: .35em; }
.masthead__sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.masthead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.pricepill {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px;
  font-weight: 800; letter-spacing: -.01em;
}
.pricepill small { font-weight: 500; opacity: .82; font-size: .76em; letter-spacing: 0; }
.masthead__facts {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 480px;
}
.masthead__facts li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--ink-soft); }
.masthead__facts li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint);
}
.masthead__facts strong { color: var(--ink); }
.masthead__shot { justify-self: center; max-width: 340px; width: 100%; }

/* 7. Category index strip ---------------------------------------------- */
.indexstrip { background: var(--dark); color: var(--on-dark); padding: clamp(36px, 6vw, 64px) 0; }
.indexstrip__h {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--on-dark-mute); margin: 0 0 22px;
}
.indexstrip__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: none;
}
.indexstrip__grid a {
  display: block; text-decoration: none; color: var(--on-dark);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 16px 18px; height: 100%;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.indexstrip__grid a:hover { background: rgba(255,255,255,.08); border-color: var(--accent-2); transform: translateY(-2px); }
.idx-n { display: block; font: 800 .82rem var(--font-num); color: var(--accent-2); letter-spacing: .05em; margin-bottom: 4px; }
.idx-t { display: block; font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.idx-d { display: block; color: var(--on-dark-mute); font-size: .85rem; margin-top: 3px; }

/* 8. Category sections & heads ----------------------------------------- */
.cat { background: var(--bg); }
.cat--soft { background: var(--bg-soft); }
.cat--dark { background: linear-gradient(165deg, var(--dark), var(--dark-2)); color: var(--on-dark); }
.cat--dark h2, .cat--dark h3 { color: #fff; }
.cat--dark p { color: var(--on-dark-mute); }
.cat--dark .dim { color: var(--on-dark-mute); }

.cat__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; margin-bottom: clamp(28px, 5vw, 46px); max-width: 1000px; }
.cat__head--center { display: block; text-align: center; margin-inline: auto; }
.cat__num {
  font: 800 clamp(2.2rem, 6vw, 3.6rem) var(--font-num);
  color: var(--accent); opacity: .35; line-height: .9; letter-spacing: -.04em;
  border-right: 3px solid var(--line-2); padding-right: clamp(16px, 3vw, 28px);
}
.cat__num--light { color: var(--accent-2); opacity: .55; border-right-color: rgba(255,255,255,.18); }

/* 9. Placeholders ------------------------------------------------------- */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius);
  color: var(--ink-mute);
  font-size: .82rem; font-weight: 650; line-height: 1.4;
  padding: 0px; 
  width: 100%; 
  overflow: hidden; 
  text-decoration: none;
  border: none;
}
.ph .ph__id {
  position: absolute; top: 8px; left: 8px;
  font: 700 .67rem var(--font-num); letter-spacing: .03em;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-mute); padding: 2px 7px; border-radius: 6px;
}
.ph__label { max-width: 26ch; }
.ph--phone  { aspect-ratio: 9 / 19.5; }
.ph--icon   { aspect-ratio: 1 / 1; width: 96px; margin: 0 auto 16px; border-radius: 22px; }
.ph--badge  { aspect-ratio: 5 / 1.7; min-height: 48px; max-width: 210px; }
.ph--wide   { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }

/* interactive placeholders */
button.ph { cursor: pointer; font-family: var(--font); appearance: none; -webkit-appearance: none; }
button.ph:hover, a.ph:hover { border-color: var(--accent); color: var(--accent); }
button.ph::after {
  content: "⤢ enlarge"; position: absolute; bottom: 8px; right: 8px;
  font-size: .67rem; font-weight: 700; color: var(--ink-mute);
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 6px; opacity: 0; transition: opacity .15s ease;
}
button.ph:hover::after, button.ph:focus-visible::after { opacity: 1; }
.cat--dark .ph { background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(255,255,255,.04) 11px, rgba(255,255,255,.04) 22px),
    rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.28); color: var(--on-dark-mute); }
.cat--dark .ph .ph__id { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--on-dark-mute); }
.cat--dark button.ph::after { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--on-dark-mute); }

/* 10. Spec lists, cards, chips ----------------------------------------- */
.featrow { margin-top: 6px; }
.speclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.speclist li { position: relative; padding-left: 30px; }
.speclist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; border-radius: 5px; background: var(--accent-tint);
}
.speclist li::after {
  content: "✓"; position: absolute; left: 4px; top: .1em;
  color: var(--accent); font-weight: 800; font-size: .8rem;
}
.cat--dark .speclist li::before { background: rgba(92,111,176,.3); }
.cat--dark .speclist li::after { color: var(--accent-2); }
.speclist strong { color: var(--ink); }
.cat--dark .speclist { color: var(--on-dark-mute); }
.cat--dark .speclist strong { color: #fff; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card__tag {
  display: inline-block; font-size: .69rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px;
}
.card--withshot { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card--withshot .ph { max-width: 220px; margin: 0 auto; width: 100%; }

.cardgrid { display: grid; gap: var(--gap); }
.cardgrid--2 { grid-template-columns: repeat(2, 1fr); }

.chiprow { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.actionchip {
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 650;
}

/* 11. Shot grids / galleries ------------------------------------------- */
.shotgrid { display: grid; gap: var(--gap); }
.shotgrid--4 { grid-template-columns: repeat(4, 1fr); }
.shotgrid--charts { grid-template-columns: repeat(4, 1fr); }
.shotgrid figure { margin: 0; }
.shotgrid figcaption {
  margin-top: 9px; font-size: .85rem; color: var(--ink-mute); font-weight: 600; line-height: 1.35;
}
.shotgrid figcaption strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 750; }

.splitrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.splitrow.reverse > .splitrow__text { order: 2; }
.splitrow__shot { max-width: 340px; width: 100%; justify-self: center; }

/* 12. Charts ------------------------------------------------------------ */
.activity {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  margin-bottom: clamp(28px, 5vw, 46px);
}
.activity__tag {
  display: inline-block; font-size: .69rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 10px;
}
.family { margin-bottom: clamp(28px, 5vw, 46px); }
.family__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.family__head h3 { margin: 0; }
.family__count {
  font: 700 .72rem var(--font-num); text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-2); background: var(--accent-tint); padding: 3px 9px; border-radius: 999px;
}
.chartcard figcaption strong { display: block; color: var(--ink); font-size: .9rem; }
.chartcard figcaption span { display: block; font-weight: 500; color: var(--ink-mute); font-size: .8rem; }

/* 13. On This Day ------------------------------------------------------- */
.onthisday {
  margin-top: clamp(28px, 5vw, 44px);
  display: grid; grid-template-columns: 1fr .8fr; gap: clamp(20px, 4vw, 44px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow);
}
.onthisday__shot { max-width: 280px; width: 100%; justify-self: center; }
.onthisday__text h3 { margin-bottom: .3em; }
.onthisday__text p { margin-bottom: 0; }

/* 14. Trust grid (privacy) --------------------------------------------- */
.trustgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.trust {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px;
}
.trust h3 { font-size: 1.02rem; margin-bottom: .35em; color: #fff; }
.trust p { margin: 0; font-size: .92rem; color: var(--on-dark-mute); }

/* 15. Philosophy -------------------------------------------------------- */
.philosophy { background: var(--bg); }
.philosophy__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.philosophy h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.philosophy__lead { margin-inline: auto; }
.nope { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.nope span {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-mute);
  border-radius: 999px; padding: 7px 15px; font-weight: 650; font-size: .9rem;
  text-decoration: line-through; text-decoration-color: var(--bad);
}

/* 16. Pricing ----------------------------------------------------------- */
.pricing { background: var(--bg-soft); }
.pricebox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: clamp(28px, 5vw, 46px);
  max-width: 560px; margin-inline: auto; text-align: center;
}
.pricebox__num { font-size: clamp(3rem, 9vw, 4.6rem); font-weight: 850; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.pricebox__once { color: var(--ink-mute); font-weight: 650; margin-bottom: 18px; }
.pricebox__list { list-style: none; padding: 0; margin: 22px auto 0; max-width: 380px; text-align: left; display: grid; gap: 11px; }
.pricebox__list li { padding-left: 27px; position: relative; }
.pricebox__list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.pricebox__badge { display: flex; justify-content: center; margin-top: 26px; }

/* 17. Final CTA / notify ----------------------------------------------- */
.final { background: linear-gradient(165deg, var(--dark), var(--dark-2)); color: var(--on-dark); text-align: center; }
.final__inner { max-width: 640px; margin-inline: auto; }
.final h2 { color: #fff; }
.final__lead { color: var(--on-dark-mute); margin-inline: auto; }
.final .ph--icon { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); color: var(--on-dark-mute); }
.final .ph--icon .ph__id { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--on-dark-mute); }
.final .ph--badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); color: var(--on-dark-mute); }
.final .ph--badge:hover { border-color: var(--accent-2); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 1rem; line-height: 1; padding: 13px 22px;
  border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }

.notify { margin-top: 30px; }
.notify__label { display: block; font-weight: 650; margin-bottom: 10px; color: var(--on-dark); }
.notify__row { display: flex; gap: 10px; max-width: 480px; margin-inline: auto; }
.notify__input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.96);
  color: var(--ink); font-size: 1rem; font-family: inherit;
}
.notify__input::placeholder { color: var(--ink-mute); }
.notify__note { min-height: 1.3em; margin: 14px 0 0; font-size: .92rem; font-weight: 600; color: #ffd9b8; }
.notify__fine { font-size: .82rem; color: var(--on-dark-mute); margin: 8px 0 0; }
.final__badge { display: flex; justify-content: center; margin-top: 22px; }

/* 18. Footer ------------------------------------------------------------ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 40px 0; font-size: .88rem; color: var(--ink-mute); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer__brand { margin: 0; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer__links a:hover { text-decoration: underline; }

/* 19. Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 4vw, 48px);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(12,14,22,.84);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__dialog {
  position: relative; z-index: 2; width: min(100%, 1000px); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
.lightbox.is-open .lightbox__dialog { transform: scale(1); opacity: 1; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; max-height: 76vh; width: auto; }
.lightbox__stage .ph {
  height: min(76vh, 720px); width: auto; aspect-ratio: 9 / 19.5;
  background: var(--surface); border-color: var(--accent-2); color: var(--ink-soft);
  font-size: 1rem; box-shadow: var(--shadow-lg);
}
.lightbox__stage .ph--wide, .lightbox__stage .ph--square { aspect-ratio: auto; height: auto; max-height: 76vh; max-width: 100%; }
.lightbox__stage img { max-height: 76vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__caption { color: #eef0f6; text-align: center; max-width: 60ch; font-size: .95rem; font-weight: 500; }
.lightbox__counter { color: #b6bccb; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.lightbox__close {
  position: absolute; top: -6px; right: -2px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: clamp(4px, 2vw, 20px); }
.lightbox__nav--next { right: clamp(4px, 2vw, 20px); }
.lightbox__nav[hidden] { display: none; }

/* 20. Reveal + responsive + reduced motion ------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .masthead__grid { grid-template-columns: 1fr; }
  .masthead__shot { max-width: 300px; }
  .splitrow { grid-template-columns: 1fr; }
  .splitrow.reverse > .splitrow__text { order: 0; }
  .indexstrip__grid, .trustgrid { grid-template-columns: repeat(2, 1fr); }
  .shotgrid--4, .shotgrid--charts { grid-template-columns: repeat(3, 1fr); }
  .onthisday { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .cardgrid--2 { grid-template-columns: 1fr; }
  .shotgrid--4, .shotgrid--charts { grid-template-columns: repeat(2, 1fr); }
  .cat__head { grid-template-columns: 1fr; }
  .cat__num { border-right: 0; border-bottom: 3px solid var(--line-2); padding-right: 0; padding-bottom: 10px; }
  .cat__num--light { border-bottom-color: rgba(255,255,255,.18); }
  .masthead__facts { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .indexstrip__grid, .trustgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lightbox__backdrop, .lightbox__dialog { transition: none; }
}

/* 16b. Honest comparison ------------------------------------------------ */
.vis-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.compare { padding: clamp(40px, 7vw, 84px) 0; background: var(--surface); }
.cmp-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--surface);
}
.cmp-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 1440px; font-size: .94rem; }
table.cmp th, table.cmp td {
  text-align: left; padding: 12px 14px; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.cmp thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-soft); color: var(--ink);
  font-weight: 800; font-size: .9rem; border-bottom: 1px solid var(--line-2);
}
table.cmp tbody th[scope="row"] { font-weight: 700; color: var(--ink); width: 230px; }
table.cmp td { color: var(--ink-soft); }
/* Highlight the Intelligent Diary column. */
.cmp__us { background: var(--accent-tint); }
table.cmp thead th.cmp__us { background: var(--accent); color: #fff; }
table.cmp td.cmp__us { color: var(--ink); font-weight: 650; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
.compare__honest { max-width: 760px; margin: clamp(24px, 4vw, 40px) auto 0; }
.compare__honest h3 { font-size: 1.15rem; margin: 0 0 .6em; color: var(--ink); }
.compare__honest ul { margin: 0 0 1.2em; padding-left: 1.1em; }
.compare__honest li { margin-bottom: .5em; color: var(--ink-soft); }
.compare__for {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink-soft);
}

/* 17b. Contact ---------------------------------------------------------- */
.contact { padding: clamp(40px, 7vw, 80px) 0; background: var(--bg-soft); text-align: center; }
.contact__inner { max-width: 640px; margin-inline: auto; }
.contact__lead { margin-inline: auto; }
.contact__email {
  display: inline-block; margin-top: 14px; font-weight: 800; font-size: 1.2rem;
  color: var(--accent); text-decoration: none;
  border-bottom: 2px solid var(--accent-tint); padding-bottom: 2px;
}
.contact__email:hover { border-bottom-color: var(--accent); }

/* Comparison source line */
.cmp-sources { max-width: 760px; margin: 14px auto 0; text-align: center; }
.cmp-sources small { color: var(--ink-mute); font-size: .8rem; line-height: 1.6; }
.cmp-sources a { color: var(--ink-mute); text-decoration: underline; }
.cmp-sources a:hover { color: var(--accent); }

/* Data → peer-to-peer / iCloud sync note */
.syncnote {
  margin-top: clamp(24px, 4vw, 40px);
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.syncnote .eyebrow { margin-bottom: .5em; }
.syncnote h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em;
}
.syncnote p { max-width: 64ch; }

/* ===================== Device requirements (caution box) ===================== */
.reqs-wrap { padding: clamp(4px, 1.5vw, 14px) 0 clamp(10px, 2.4vw, 22px); }
.reqs {
  display: flex;
  gap: clamp(14px, 2.4vw, 22px);
  align-items: flex-start;
  background: linear-gradient(180deg, #fbf1ea, #f6e7da);
  border: 1px solid var(--warm);
  border-left: 5px solid var(--warm);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
  box-shadow: var(--shadow);
}
.reqs__icon { color: var(--warm); flex: 0 0 auto; line-height: 0; margin-top: 3px; }
.reqs__body { min-width: 0; }
.reqs__h {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.reqs__lede { margin: 0 0 16px; color: var(--ink-soft); max-width: 66ch; }
.reqs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reqs__list li {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 6px 18px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(196, 106, 58, .22);
}
.reqs__k {
  font-weight: 700;
  color: var(--warm);
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.reqs__v { color: var(--ink); }
@media (max-width: 560px) {
  .reqs { flex-direction: column; gap: 12px; }
  .reqs__list li { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
}
