/* Attention — website. The app's own language: black and white, square, Helvetica Neue.
   Tokens follow App/DesignSystem.swift (ink, paper, secondary) and the day grid's greys. */

:root {
  --ink: #000;
  --paper: #fff;
  --secondary: #5c5c5c;          /* AttentionDesign.secondary, light */
  --lived: #e4e4e4;              /* a square of the day so far */
  --ahead: #f5f5f5;              /* a square still ahead */
  --other: #a3a3a3;              /* phone use that isn't a feed */
  --glaze: #ccc;                 /* Still's glazed eye */
  --feed: #bdbdbd;               /* the feed on Still's phone */
  --green: #1a6647;              /* the "On" square */
  --band: #000;                  /* the inverted story band */
  --band-text: #fff;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 34rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #fff;
    --paper: #000;
    --secondary: #929292;
    --lived: #262626;
    --ahead: #141414;
    --other: #6e6e6e;
    --glaze: #383838;
    --feed: #4d4d4d;
    --green: #2e9e6b;
    --band: #fff;
    --band-text: #000;
  }
}
:root[data-theme="dark"] {
  --ink: #fff;
  --paper: #000;
  --secondary: #929292;
  --lived: #262626;
  --ahead: #141414;
  --other: #6e6e6e;
  --glaze: #383838;
  --feed: #4d4d4d;
  --green: #2e9e6b;
  --band: #fff;
  --band-text: #000;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, "Arial Nova", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
img, svg { display: block; }
time, .tabular { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1040px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .still { width: 30px; height: 30px; margin-top: -4px; }
.brand span { font-size: 21px; font-weight: 500; letter-spacing: -0.6px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a:not(.button) { text-decoration: none; }
.top nav a:not(.button):hover { text-decoration: underline; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  padding: 12px 18px; font-size: 16px; font-weight: 500;
  text-decoration: none; line-height: 1.2;
}
.button.small { padding: 8px 12px; font-size: 14px; }
.button .apple { width: 16px; height: 19px; fill: currentColor; margin-top: -2px; }
.button-note { font-size: 14px; color: var(--secondary); }
.link { font-size: 16px; font-weight: 500; }

@media (max-width: 720px) {
  .top nav a:not(.button) { display: none; }
}
.top nav .button.small { font-size: 14px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(72px, 9vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-copy { display: grid; gap: clamp(22px, 2.4vw, 32px); align-content: center; }
.hero h1 {
  font-size: clamp(44px, 5.7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero h1 .line { display: block; }
.lede { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.45; max-width: var(--measure); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ticks { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: 9px; }
.ticks li::before { content: ""; width: 10px; height: 10px; background: var(--ink); }
.fine { font-size: 14px; color: var(--secondary); }

.hero-stage { position: relative; justify-self: end; width: min(100%, 540px); }
.hero-stage .window { width: 100%; height: auto; }
.hero-stage .note { position: absolute; left: -18%; top: 9%; width: min(78%, 370px); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { justify-self: stretch; width: 100%; max-width: 560px; }
  .hero-stage .note { position: relative; left: auto; top: auto; width: auto; margin: -28px 0 0 6%; }
}

/* ---------- Notification card (the app's own: square, ink border) ---------- */

.note {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 16px 15px;
  text-align: left;
}
.note-icon { width: 34px; height: 34px; background: var(--ink); display: grid; place-items: center; }
.note-icon .still { width: 26px; height: 26px; --s-ink: var(--paper); --s-paper: var(--ink); }
.note-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--secondary); line-height: 1.3; }
.note-title { font-size: 16px; font-weight: 500; line-height: 1.3; margin-top: 3px; }
.note-body { font-size: 15px; line-height: 1.38; margin-top: 2px; }

.hero-stage .note { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.hero-stage .note.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-stage .note { transition: none; opacity: 1; transform: none; }
}

/* ---------- Still (design/preview/mascot.svg, moods from App/AttentionLivingStill.swift) ---------- */

.still { overflow: visible; --s-ink: var(--ink); --s-paper: var(--paper); }
.still .ink { fill: var(--s-ink); }
.still .paper { fill: var(--s-paper); }
.still .paper-line { fill: none; stroke: var(--s-paper); stroke-width: 4; }
.still .wing { fill: none; stroke: var(--s-paper); stroke-width: 3; }
.still .glaze { fill: var(--s-glaze, var(--glaze)); }
.still .feedrow { fill: var(--s-feed, var(--feed)); }
.still .hop, .still .upper, .still .wing, .still .eye, .still .feed { transform-box: view-box; }
.still .hop, .still .upper { transform-origin: 73px 126px; }
.still .wing { transform-origin: 58px 78px; }
.still .eye { transform-origin: 91px 51px; animation: blink 5.4s infinite; }

@keyframes blink { 0%, 92.8% { transform: scaleY(1); } 93%, 95.2% { transform: scaleY(.12); } 95.4%, 100% { transform: scaleY(1); } }

.mood-bright .hop { animation: hop-bright 4.2s infinite; }
@keyframes hop-bright { 0%, 74% { transform: none; } 80% { transform: translateY(-9px); } 86%, 100% { transform: none; } }
.mood-bright .wing { animation: wing-bright 4.2s infinite; }
@keyframes wing-bright { 0%, 76% { transform: none; } 82% { transform: rotate(-14deg); } 92%, 100% { transform: none; } }

.mood-proud .upper { transform: scale(1.05); }
.mood-proud .hop { animation: hop-proud 3.2s infinite; }
@keyframes hop-proud { 0%, 55% { transform: none; } 62% { transform: translateY(-8px); } 69% { transform: none; } 76% { transform: translateY(-6px); } 83%, 100% { transform: none; } }
.mood-proud .wing { animation: wing-proud 3.2s infinite; }
@keyframes wing-proud { 0%, 55% { transform: none; } 60% { transform: rotate(-18deg); } 65% { transform: rotate(-4deg); } 70% { transform: rotate(-18deg); } 76% { transform: rotate(-4deg); } 85%, 100% { transform: none; } }

.mood-glazed .upper { transform: rotate(4deg); animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(4deg); } 50% { transform: translateY(1px) rotate(6deg); } }
.mood-glazed .eye { animation: blink-glazed 4.6s infinite; }
@keyframes blink-glazed { 0%, 84% { transform: scaleY(1); } 88%, 92% { transform: scaleY(.15); } 96%, 100% { transform: scaleY(1); } }
.mood-glazed .feed { animation: scroll-feed 1.3s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes scroll-feed { from { transform: none; } to { transform: translateY(-9px); } }

.mood-alert .upper { transform: scaleY(1.03); }
.mood-alert .wing { animation: wing-alert 3.2s infinite; }
@keyframes wing-alert { 0% { transform: none; } 30%, 62% { transform: rotate(-24deg); } 100% { transform: none; } }

.mood-asleep .upper { transform: translateY(5px) rotate(-3deg) scale(1.02, .96); }
.mood-asleep .eye { animation: none; }

.still .screen { fill: var(--s-screen, var(--s-paper)); }
.still .feed { animation: scroll-feed 1.3s cubic-bezier(.65,0,.35,1) infinite; }
.mood-exhausted .feed { animation-duration: 2.6s; }

.mood-tired .upper { transform: translateY(1px) rotate(5deg); animation: sway-tired 7s ease-in-out infinite; }
@keyframes sway-tired { 0%, 100% { transform: translateY(1px) rotate(5deg); } 50% { transform: translateY(2px) rotate(7deg); } }
.mood-tired .eye { animation: blink-glazed 3.8s infinite; }

.mood-sad .upper { transform: translateY(3px) rotate(9deg) scale(1.01, .97); animation: sigh 6s ease-in-out infinite; }
@keyframes sigh { 0%, 100% { transform: translateY(3px) rotate(9deg) scale(1.01, .97); } 50% { transform: translateY(5px) rotate(10.5deg) scale(1.015, .95); } }
.mood-sad .wing { transform: rotate(8deg); }
.mood-sad .eye { animation: blink-glazed 6s infinite; }

.mood-exhausted .upper { transform: translateY(5px) rotate(12deg) scale(1.02, .95); animation: nod 4.8s ease-in-out infinite; }
@keyframes nod {
  0%, 58% { transform: translateY(5px) rotate(12deg) scale(1.02, .95); }
  78% { transform: translateY(8px) rotate(17deg) scale(1.02, .94); }
  82% { transform: translateY(4px) rotate(10deg) scale(1.02, .95); }
  100% { transform: translateY(5px) rotate(12deg) scale(1.02, .95); }
}
.mood-exhausted .wing { transform: rotate(10deg); }
.mood-exhausted .eye { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .still .hop, .still .wing, .still .eye, .still .feed { animation: none !important; }
  .mood-glazed .upper, .mood-tired .upper, .mood-sad .upper, .mood-exhausted .upper { animation: none; }
}

/* ---------- The home window (App/AttentionHomeView.swift window()) ---------- */

.window {
  --w-ink: var(--ink); --w-paper: var(--paper); --w-secondary: var(--secondary);
  --w-lived: var(--lived); --w-ahead: var(--ahead); --w-other: var(--other); --w-green: var(--green);
}
.window.night {
  --w-ink: #fff; --w-paper: #000; --w-secondary: #929292;
  --w-lived: #262626; --w-ahead: #141414; --w-other: #6e6e6e; --w-green: #2e9e6b;
}
.window.day {
  --w-ink: #000; --w-paper: #fff; --w-secondary: #5c5c5c;
  --w-lived: #e4e4e4; --w-ahead: #f5f5f5; --w-other: #a3a3a3; --w-green: #1a6647;
}
.window .still { --s-ink: var(--w-ink); --s-paper: var(--w-paper); }
.window.night .still { --s-glaze: #383838; --s-feed: #4d4d4d; --s-screen: #fff; }
.window.night .still .feedrow { fill: #bdbdbd; }
.window.day .still { --s-glaze: #ccc; --s-feed: #bdbdbd; }
.w-paper { fill: var(--w-paper); }
.w-frame { fill: none; stroke: var(--w-ink); stroke-width: 2; }
.w-ink { fill: var(--w-ink); }
.w-text { fill: var(--w-ink); font-family: inherit; font-weight: 500; font-variant-numeric: tabular-nums; }
.w-small { fill: var(--w-secondary); font-family: inherit; font-variant-numeric: tabular-nums; }
.w-lived { fill: var(--w-lived); }
.w-ahead { fill: var(--w-ahead); }
.w-other { fill: var(--w-other); }
.w-green { fill: var(--w-green); }
.w-arc { fill: none; stroke: var(--w-secondary); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 1 3.5; }
.w-sun { fill: var(--w-ink); stroke: var(--w-ink); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 7vw, 88px) 0; }
.section h2 {
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

/* ---------- The two days (autoplaying) ---------- */

.story { padding: clamp(64px, 8vw, 96px) 0; }
.story-band { background: var(--band); color: var(--band-text); }
.story-band .window { --w-ink: var(--band); --w-paper: var(--band-text); }
.story-band .window.night { --w-ink: #fff; --w-paper: #000; }   /* after 22:00 the window goes dark here too */
.story-band .button { background: var(--band-text); color: var(--band); border-color: var(--band-text); }
.story-band .story-turn { border-top-color: currentColor; }
.story-band .story-stage { margin-top: 124px; }   /* room for the card above the window */
/* Each loop fades out and back in, so the restart reads as a replay, not a next day. */
.story-stage { transition: opacity .3s ease; }
.story-stage.fading { opacity: 0; }
.story-lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.4; max-width: 30rem; opacity: .8; margin-top: -6px; }
.story-band .note { --ink: #000; --paper: #fff; --secondary: #5c5c5c; }
.story-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.story-head { display: grid; gap: 22px; align-content: center; }
.story-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.04em; max-width: 13ch; }
.story-clock { font-size: clamp(56px, 7.4vw, 88px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: 6px; }
.story-stage { position: relative; width: min(100%, 560px); justify-self: center; }
.story-stage .window { width: 100%; height: auto; }
.story-note {
  position: absolute; left: 50%; bottom: calc(100% + 14px); width: min(92%, 380px);   /* above the window: the sky stays clear */
  opacity: 0; transform: translate(-50%, 12px); visibility: hidden;
}
.story-note.in { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
/* The moment a line lands: the card glows while the window dims around Still. */
.story-note.spot { box-shadow: 0 0 0 3px var(--green), 0 14px 40px rgba(0, 0, 0, .35); }
.lapse-caption { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.01em; min-height: 1.25em; margin-top: -8px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.lapse-caption.in { opacity: 1; transform: none; }
.story-turn {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 2px solid var(--ink);
}
.story-turn p { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; max-width: 26ch; }
@media (prefers-reduced-motion: reduce) {
  .story-note.in { transition: none; }
}
@media (max-width: 860px) {
  /* On a phone: the title, then the window, with the clock and the counts right under it. */
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-head { display: contents; }
  .story-head h2, .story-lead { order: 1; }
  .story-stage { order: 2; margin-top: 10px; }
  .story-band .story-stage { margin-top: 118px; }
  .story-clock, .lapse-caption { order: 3; }
  .story-clock { margin-top: 8px; }
  .lapse-counts { order: 4; }
  .story-stage { width: 100%; max-width: 520px; }
  .story-clock { font-size: 56px; }
}

/* ---------- Still, live: the Dynamic Island and the bubble on the feed ---------- */

.live-stage { width: min(100%, 500px); }
.bubble-stage { width: min(100%, 370px); }
.morning-stage { width: min(100%, 440px); }
.live-caption { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; min-height: 1.15em; margin-top: -10px; }
.phone {
  width: 100%; height: auto;
  --scr-bg: #fff; --scr-strong: #0f1419; --scr-text: #a5afb7; --scr-soft: #cfd9de; --scr-faint: #eff3f4;
  --bub-ink: #000; --bub-paper: #fff;
}
.phone.night {
  --scr-bg: #15181c; --scr-strong: #e7e9ea; --scr-text: #5b636b; --scr-soft: #343a40; --scr-faint: #212529;
}
/* The island's feed is light by day and dark at night, whatever the page; the bubble's page follows the visitor's
   setting, and on a dark page the bubble inverts, as in Safari. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bubble-phone {
    --scr-bg: #15181c; --scr-strong: #e7e9ea; --scr-text: #5b636b; --scr-soft: #343a40; --scr-faint: #212529;
    --bub-ink: #fff; --bub-paper: #000;
  }
  :root:not([data-theme="light"]) .ph-bezel { stroke: #2c2c2e; stroke-width: 2; }
}
:root[data-theme="dark"] .bubble-phone {
  --scr-bg: #15181c; --scr-strong: #e7e9ea; --scr-text: #5b636b; --scr-soft: #343a40; --scr-faint: #212529;
  --bub-ink: #fff; --bub-paper: #000;
}
:root[data-theme="dark"] .ph-bezel { stroke: #2c2c2e; stroke-width: 2; }
.ph-bezel, .isl { fill: #000; }
.scr-bg { fill: var(--scr-bg); }
.scr-strong { fill: var(--scr-strong); }
.scr-text { fill: var(--scr-text); }
.scr-soft { fill: var(--scr-soft); }
.scr-faint { fill: var(--scr-faint); }
.ph-fade-0 { stop-color: var(--paper); stop-opacity: 0; }
.ph-fade-1 { stop-color: var(--paper); stop-opacity: 1; }
.phone text { font-family: inherit; }
.isl-ink, .isl-text { fill: #fff; }
.isl-dim { fill: #fff; fill-opacity: .6; }
.isl-line, .lk-line { font-weight: 500; }
.lk-date { fill: #fff; fill-opacity: .85; font-weight: 500; }
.lk-time { fill: #fff; font-weight: 600; letter-spacing: -2px; }
.lk-fact { fill-opacity: .55; }
/* The morning score, as the app draws it: black and white, square. */
.mo-paper, .mo-paper-t, .mo-day { fill: #fff; }
.mo-ink, .mo-ink-t, .mo-veil { fill: #000; }
.mo-soft-t { fill: #6b6b6b; }
.mo-cell { fill: #000; stroke: #fff; stroke-width: 1; }
.mo-cell.on { fill: #fff; }
.mo-chev { fill: none; stroke: #fff; stroke-width: 2; }
.mo-cross { fill: none; stroke: #000; stroke-width: 2; }
.mo-mark { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 4; }
/* The bubble (SafariWebExtension/Resources/still.css): a disc on the page, inverted on a dark one, his word in a pill. */
.bub-disc { fill: var(--bub-paper); stroke: var(--bub-ink); filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .18)); }
.bub-bird, .bub-pill { fill: var(--bub-ink); }
.bub-word { fill: var(--bub-paper); }
.voices { display: flex; flex-wrap: wrap; gap: 10px; }
.voices button {
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; padding: 9px 16px; cursor: pointer;
  background: none; color: var(--ink); border: 2px solid var(--ink);
}
.voices button.on { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .live-caption { order: 3; margin-top: -4px; }
  .voices { order: 4; }
  .live-stage { width: 100%; max-width: 460px; }
  .bubble-stage { max-width: 270px; }   /* the phone and his minutes on one screen */
}

/* ---------- The recording ---------- */

.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 64px); align-items: center; }
.demo-copy { display: grid; gap: 28px; align-content: center; justify-items: start; }
.demo { margin: 0; display: grid; gap: 14px; justify-items: center; }
/* A calm phone: no status bar or browser bar in the take (founder, Nov 13), a rounded black bezel, a glow while the line lands. */
.demo-frame { background: #000; padding: 10px; width: min(100%, 340px); border-radius: 46px; transition: box-shadow .3s ease; }
.demo-frame.spot { box-shadow: 0 0 0 3px var(--green), 0 18px 50px rgba(0, 0, 0, .28); }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 994; background: #000; border-radius: 36px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } .demo-frame { width: min(76vw, 300px); } }

/* ---------- How it works ---------- */

.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 14px; align-content: start; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; background: var(--ink); color: var(--paper);
  font-size: 20px; font-weight: 500;
}
.steps h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.steps p { color: var(--secondary); max-width: 24rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); padding: 6px 10px; font-size: 14px; font-weight: 500; }
.chip i { width: 10px; height: 10px; background: var(--ink); display: block; }
.chip.off { border-color: var(--other); color: var(--secondary); }
.chip.off i { background: transparent; border: 2px solid var(--other); }
.tick-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 6px; max-width: 22rem; }
.tick-strip span { aspect-ratio: 1; background: var(--lived); }
.tick-strip span.f { background: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- The lock screen ---------- */

.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 72px); align-items: center; }
.lock {
  background: var(--ink); color: var(--paper);
  padding: clamp(28px, 4vw, 44px) clamp(16px, 2.4vw, 26px) clamp(28px, 4vw, 44px);
  display: grid; gap: 10px; width: min(100%, 440px); justify-self: center;
}
.lock-time { text-align: center; font-size: clamp(64px, 7vw, 80px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.lock-date { text-align: center; font-size: 16px; opacity: .8; margin-bottom: 18px; }
.lock .note { --ink: #000; --paper: #fff; --secondary: #5c5c5c; border-color: var(--paper); }
:root[data-theme="dark"] .lock .note { --ink: #000; --paper: #fff; }
@media (max-width: 860px) { .notes-grid { grid-template-columns: 1fr; } .lock { order: 2; } }

/* ---------- Legend (the year of squares) ---------- */

.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: 15px; color: var(--secondary); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; background: var(--ink); display: block; }
.legend i.grey { background: var(--other); }
.legend i.dot { width: 7px; height: 7px; }
.legend .end { margin-left: auto; }
@media (max-width: 560px) { .legend .end { margin-left: 0; } }

/* ---------- Privacy ---------- */

.privacy-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.privacy-cols > div { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.privacy-cols h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: -0.02em; }
.privacy-cols h3 i { width: 18px; height: 18px; display: block; flex: none; }
.sq-full { background: var(--ink); }
.sq-grey { background: var(--other); }
.sq-empty { border: 2px solid var(--ink); }
.privacy-cols p { color: var(--secondary); }
.privacy-more { margin-top: 32px; font-size: 16px; }
@media (max-width: 860px) { .privacy-cols { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */

.faq { margin-top: clamp(40px, 5vw, 64px); max-width: 52rem; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 18px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 18px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 18px 3px no-repeat; }
.faq details p { padding: 0 0 24px; color: var(--secondary); max-width: 40rem; }

/* ---------- Closing ---------- */

.closing { background: var(--band); color: var(--band-text); text-align: center; padding: clamp(80px, 11vw, 136px) 0 clamp(64px, 9vw, 112px); }
.closing .still { width: clamp(150px, 20vw, 240px); height: auto; margin: 0 auto 28px; --s-ink: var(--band-text); --s-paper: var(--band); }
.closing h2 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.045em; margin: 0 auto; max-width: 14ch; }
.closing p { margin: 22px auto 0; max-width: 30rem; opacity: .75; }
.closing .button { margin-top: 32px; background: var(--band-text); color: var(--band); border-color: var(--band-text); }

/* ---------- Footer ---------- */

.foot { padding: 48px 0 56px; font-size: 15px; color: var(--secondary); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot .brand { color: var(--ink); }
.foot address { font-style: normal; margin-top: 14px; line-height: 1.6; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); }
.fill { border-bottom: 1.5px dashed currentColor; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---------- Text pages (privacy, terms) ---------- */

.page { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.page h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.page .updated { margin-top: 16px; color: var(--secondary); font-size: 15px; }
.page h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 48px; }
.page p, .page li { max-width: 40rem; }
.page p { margin-top: 12px; }
.page ul { margin: 12px 0 0; padding-left: 1.1em; }
.page li { margin-top: 6px; }

/* "Get early access" before there is a link to give: the closing says early access opens soon instead. */
.button.is-quiet { background: transparent; color: inherit; border-color: currentColor; cursor: default; }
.closing .fine, .story-band .fine { color: inherit; opacity: .65; }

/* ---------- The cost of doing nothing ---------- */

.cost-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: end; margin-top: clamp(40px, 5vw, 64px); }
.cost-input { display: grid; gap: 10px; }
.cost-input label { font-size: 16px; color: var(--secondary); }
.cost-input output { font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.cost-input input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 8px 0 0; cursor: pointer; }
.cost-input input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--ink); }
.cost-input input[type="range"]::-moz-range-track { height: 3px; background: var(--ink); }
.cost-input input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; background: var(--ink); border: 3px solid var(--paper); outline: 2px solid var(--ink); }
.cost-input input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--ink); border: 3px solid var(--paper); border-radius: 0; outline: 2px solid var(--ink); }
.cost-result { display: grid; gap: 8px; }
.cost-big { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.cost-big b { display: block; font-size: clamp(72px, 10vw, 124px); letter-spacing: -0.05em; line-height: .9; }
.cost-result p:not(.cost-big) { font-size: 18px; color: var(--secondary); }
.year { margin: clamp(36px, 5vw, 64px) 0 0; }
.year svg { width: 100%; height: auto; }
.legend i.today { background: transparent; border: 2px solid var(--ink); }
.w-today { fill: none; stroke: var(--w-ink); stroke-width: 3; }
.cost-turn { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-top: clamp(32px, 4vw, 56px); padding-top: 26px; border-top: 2px solid var(--ink); }
.cost-turn p { font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; max-width: 34ch; }
@media (max-width: 860px) { .cost-grid { grid-template-columns: 1fr; align-items: start; } }

.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; }

/* ---------- The day as a timelapse ---------- */

.lapse-counts { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 34px; margin: 0; }
.lapse-counts div { display: grid; gap: 4px; }
.lapse-counts dt { font-size: 15px; opacity: .7; }
.lapse-counts dd { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; min-width: 3.2ch; }
@media (max-width: 420px) { .lapse-counts { gap: 8px 22px; } .lapse-counts dd { font-size: 24px; } }

/* ---------- The slider's own tour: low, medium, high ---------- */

.cost-marks { position: relative; height: 36px; margin-top: 4px; }
.cost-marks button {
  position: absolute; top: 0; transform: translateX(-50%); padding: 6px 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--secondary);
}
.cost-marks button.on { color: var(--ink); font-weight: 500; }
/* Under their values on the 0.5–8 hour track (the thumb is 26 px wide). */
.cost-marks button[data-h="1"] { left: calc(13px + (100% - 26px) * 0.0667); }
.cost-marks button[data-h="2.5"] { left: calc(13px + (100% - 26px) * 0.2667); }
.cost-marks button[data-h="5"] { left: calc(13px + (100% - 26px) * 0.6); }

.foot .footnote { margin-top: 18px; font-size: 13px; max-width: 62ch; }

/* ---------- Tomorrow's morning score in each day (specs/energy EN-07: Still perched on his bar of ten) ---------- */

.lift { display: grid; gap: 10px; justify-items: start; }
.lift p { display: grid; gap: 2px; }
.lift span { font-size: 15px; opacity: .7; }
.lift b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.lift b small { font-size: .42em; font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.lift-gauge { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; width: 150px; height: 7px; margin-top: 30px; }
.lift-gauge i { border: 1px solid currentColor; }
.lift-gauge i.on { background: currentColor; }
.lift-gauge .still { position: absolute; bottom: 6px; left: 100%; width: 28px; height: 28px; transform: translateX(-50%);
  transition: left .3s ease; --s-ink: currentColor; --s-paper: var(--paper); }
.story-band .lift-gauge .still { --s-paper: var(--band); }
@media (max-width: 860px) { .lift { order: 4; } }
