/* Jotslate marketing site.
   Tokens mirror shared/brand-tokens.json: ink, chalk, the slate scale, cobalt, and one color per kind.
   Dark is the default look; prefers-color-scheme: light switches to chalk.

   One visual language everywhere:
   - .card    raised surface with a lit top edge (plans, steps, tiles)
   - .inset   recessed panel inside a card, with notebook dots (card visuals)
   - .stage   the backdrop for product shots: tonal panel, soft light from above,
              notebook dots and one restrained cobalt glow. Kind colors never decorate;
              they only label kinds. */

/* ── Tokens ─────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --bg: #0D0F12;
  --bg-2: #101216;
  --surface: #16181D;
  --surface-2: #1E2127;
  --surface-3: #2A2E36;
  --line: rgba(244, 245, 247, 0.08);
  --line-strong: rgba(244, 245, 247, 0.14);
  --fg: #F4F5F7;
  --fg-2: #A3A9B4;
  --fg-3: #868C98;   /* small text: AA on bg and surface */
  --fg-4: #575D68;   /* decorative only: dashes, chevrons */
  --accent: #6680FF;
  --accent-t: #8096FF;
  --accent-fill: #3355FF;
  --accent-fill-hover: #4463FF;
  --on-accent: #FFFFFF;

  /* Kinds: fill for icons and rings, -t for kind-colored text. */
  --task: #6680FF;     --task-t: #8096FF;
  --reminder: #FFB224; --reminder-t: #FFB224;
  --event: #FF6369;    --event-t: #FF7A7F;
  --habit: #3DD68C;    --habit-t: #3DD68C;
  --log: #9E8CFC;      --log-t: #ADA0FD;
  --note: #A3A9B4;     --note-t: #A3A9B4;
  --tint: 20%;

  /* Surfaces */
  --card-top: #17191E;
  --card-bottom: #121418;
  --edge-top: rgba(255, 255, 255, 0.11);
  --edge-bottom: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.85);
  --float-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  --inset-bg: #0E1013;
  --spot: rgba(255, 255, 255, 0.045);

  /* Stage */
  --stage-top: #15171C;
  --stage-bottom: #0E1013;
  --stage-light: rgba(176, 190, 255, 0.075);
  --dot: rgba(244, 245, 247, 0.075);
  --glow: rgba(51, 85, 255, 0.3);
  --glow-soft: rgba(51, 85, 255, 0.12);

  /* Device: one dark titanium frame in both themes, after marketing/tools/render.swift */
  --rim-hi: #8A909B; --rim-1: #4A4E57; --rim-2: #1E2025; --rim-3: #3A3D45;
  --device-shadow: rgba(0, 0, 0, 0.62);
  --device-contact: rgba(0, 0, 0, 0.6);

  --headline-fade: rgba(244, 245, 247, 0.58);
  --grain-opacity: 0.04;

  --font-display: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-app: -apple-system, BlinkMacSystemFont, "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-app-serif: ui-serif, "New York", Georgia, "Times New Roman", serif;

  --r-chip: 8px;
  --r-control: 12px;
  --r-row: 14px;
  --r-card: 20px;
  --r-panel: 24px;
  --r-stage: 32px;

  --gutter: clamp(16px, 4.5vw, 40px);
  --maxw: 1200px;
  --section: clamp(56px, 7.5vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F4F5F7;
    --bg-2: #EDEFF2;
    --surface: #FFFFFF;
    --surface-2: #ECEEF2;
    --surface-3: #DCDFE5;
    --line: rgba(13, 15, 18, 0.08);
    --line-strong: rgba(13, 15, 18, 0.13);
    --fg: #0D0F12;
    --fg-2: #5F6571;
    --fg-3: #666C78;
    --fg-4: #A4A9B3;
    --accent: #3355FF;
    --accent-t: #2945E0;
    --accent-fill: #3355FF;
    --accent-fill-hover: #2445F0;

    --task: #3355FF;     --task-t: #2E4BE6;
    --reminder: #C77700; --reminder-t: #A35F00;
    --event: #E5484D;    --event-t: #CE2C31;
    --habit: #0E9F6E;    --habit-t: #0A7F58;
    --log: #7A5AF8;      --log-t: #6B4AE8;
    --note: #5F6571;     --note-t: #5F6571;
    --tint: 13%;

    --card-top: #FFFFFF;
    --card-bottom: #FCFCFD;
    --edge-top: rgba(13, 15, 18, 0.07);
    --edge-bottom: rgba(13, 15, 18, 0.11);
    --card-shadow: 0 1px 2px rgba(13, 15, 18, 0.04), 0 14px 32px -18px rgba(22, 28, 52, 0.16);
    --float-shadow: 0 1px 2px rgba(13, 15, 18, 0.05), 0 22px 44px -18px rgba(22, 28, 52, 0.24), 0 4px 10px -4px rgba(22, 28, 52, 0.08);
    --inset-bg: #F7F8FA;
    --spot: rgba(51, 85, 255, 0.045);

    --stage-top: #FFFFFF;
    --stage-bottom: #EEF0F4;
    --stage-light: rgba(255, 255, 255, 0);
    --dot: rgba(13, 15, 18, 0.085);
    --glow: rgba(51, 85, 255, 0.13);
    --glow-soft: rgba(51, 85, 255, 0.06);

    --device-shadow: rgba(22, 28, 52, 0.3);
    --device-contact: rgba(22, 28, 52, 0.28);

    --headline-fade: rgba(13, 15, 18, 0.66);
    --grain-opacity: 0.025;
  }
}

/* ── Base ──────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Fine grain over everything, so big gradients don't band and dark reads as a surface. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: url("/assets/grain.svg");
  opacity: var(--grain-opacity);
}

/* Glows reach past the edges on purpose; keep them from widening the page. */
main, .footer { overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
picture { display: contents; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent-fill); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}

/* ── Type ──────────────────────────────────────────────────────────────────── */

.display, .title, .page-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(4.5rem, 2rem + 10vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}
.display em, .title em, .page-title em { font-style: italic; color: var(--accent); }

/* Section titles fade a little toward the bottom, like ink on a slate. */
.title {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  line-height: 0.98;
  background: linear-gradient(180deg, var(--fg) 40%, var(--headline-fade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.title em { -webkit-text-fill-color: var(--accent); }
.title--sm { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); }

.page-title {
  font-size: clamp(3.25rem, 1.8rem + 6vw, 6.25rem);
  line-height: 0.92;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 40ch;
}
.lede strong { color: var(--fg); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow .i { width: 15px; height: 15px; color: var(--fg-2); }

.h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.muted { color: var(--fg-2); }
.small { font-size: 0.9375rem; line-height: 1.55; }
.tiny { font-size: 0.8125rem; color: var(--fg-3); }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--fg-3); }
.serif { font-family: var(--font-display); font-weight: 400; }

/* ── Buttons, links, pills and badges ──────────────────────────────────────── */

.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease), color 0.2s, filter 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn .i { width: 1.1em; height: 1.1em; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 0.9375rem; }

.btn--primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, #4C6BFF, var(--accent-fill));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(10, 20, 80, 0.35),
    0 10px 28px -10px rgba(51, 85, 255, 0.7);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(10, 20, 80, 0.35), 0 14px 34px -10px rgba(51, 85, 255, 0.85); }

.btn--ghost {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }

/* Before launch, store buttons are labels, not links. */
.btn--soon { cursor: default; }
.btn--soon:active { transform: none; }
.btn--soon.btn--primary:hover { filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(10, 20, 80, 0.35), 0 10px 28px -10px rgba(51, 85, 255, 0.7); }
.btn--soon.btn--ghost:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--accent);
}
.link-arrow:hover { text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-fill);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-fill) 24%, transparent), 0 0 12px 2px color-mix(in srgb, var(--accent-fill) 50%, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: 0.14em;
  white-space: nowrap;
}
.badge--pro { color: var(--accent-t); background: color-mix(in srgb, var(--accent-fill) 16%, transparent); }
.badge--new { color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--accent { color: var(--on-accent); background: var(--accent-fill); }
.badge--quiet { color: var(--fg-2); background: color-mix(in srgb, var(--fg) 7%, transparent); }

/* ── Navigation ────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); }

.nav__inner {
  position: relative;
  height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 28px; height: 28px; }

.nav__links { display: none; gap: 2px; }
.nav__links a, .menu__panel a {
  color: var(--fg-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .menu__panel a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.nav__links a[aria-current="page"], .menu__panel a[aria-current="page"] { color: var(--fg); }

.nav__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__cta { white-space: nowrap; }

.menu { position: relative; }
.menu__button {
  list-style: none;
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--fg); cursor: pointer;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.menu__button::-webkit-details-marker { display: none; }
.menu__button .i { width: 20px; height: 20px; grid-area: 1 / 1; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: fixed;
  left: 12px; right: 12px;
  top: calc(var(--nav-h) + 4px);
  padding: 8px;
  display: grid;
  /* Solid: the nav's backdrop-filter is a backdrop root, so a blur here couldn't see the page. */
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--float-shadow);
}
.menu__panel a { padding: 13px 14px; border-radius: 12px; font-size: 1.0625rem; color: var(--fg); }
.menu__panel a + a { box-shadow: 0 -1px 0 var(--line); }
.menu__panel a:hover + a { box-shadow: none; }

@media (min-width: 900px) {
  .nav__links { display: flex; position: absolute; left: 50%; translate: -50% 0; }
  .menu { display: none; }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */

.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* A hairline that fades out at both ends, between chapters. */
.section--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
}

.section-head { display: grid; gap: 18px; max-width: 780px; justify-items: start; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { max-width: 46ch; }
.section-head + * { margin-top: clamp(40px, 5vw, 64px); }

.center-link { margin-top: 32px; text-align: center; }
.note-line { margin-top: 24px; text-align: center; font-size: 0.9375rem; color: var(--fg-3); }

/* ── Cards and insets ──────────────────────────────────────────────────────── */

.card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--r-panel);
  background:
    linear-gradient(180deg, var(--card-top), var(--card-bottom)) padding-box,
    linear-gradient(180deg, var(--edge-top), var(--edge-bottom)) border-box;
  box-shadow: var(--card-shadow);
}
/* A soft light that follows the pointer (site.js sets --mx and --my). */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.inset {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 16px;
  background: var(--inset-bg);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 10px 24px -14px rgba(0, 0, 0, 0.35);
}
.inset::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.5px) center / 18px 18px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 10%, transparent 90%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 10%, transparent 90%);
}

.icon-tile {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--fg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 9%, transparent), color-mix(in srgb, var(--fg) 4%, transparent));
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 color-mix(in srgb, var(--fg) 8%, transparent);
}
.icon-tile .i { width: 20px; height: 20px; }

/* ── Stage: the backdrop for every product shot ───────────────────────────── */

.stage {
  --pad: clamp(32px, 5vw, 56px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  padding: var(--pad) clamp(16px, 4vw, 40px);
  border: 1px solid transparent;
  border-radius: var(--r-stage);
  background:
    radial-gradient(90% 55% at 50% 0%, var(--stage-light), transparent 70%) padding-box,
    linear-gradient(180deg, var(--stage-top), var(--stage-bottom)) padding-box,
    linear-gradient(180deg, var(--edge-top), var(--edge-bottom)) border-box;
  box-shadow: var(--card-shadow);
}
/* Notebook dots, fading out toward the edges. */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.5px) center / 22px 22px;
  -webkit-mask-image: radial-gradient(70% 62% at 50% 42%, #000 15%, transparent 100%);
  mask-image: radial-gradient(70% 62% at 50% 42%, #000 15%, transparent 100%);
}
/* One cobalt glow behind the subject. */
.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 54%;
  width: min(92%, 560px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), var(--glow-soft) 50%, transparent 100%);
  pointer-events: none;
}

/* Feature stages share one size, so every row has the same rhythm. */
.feature__media { container-type: inline-size; }
.feature__media .stage { --dev: min(72cqw, 300px); }
@container (min-width: 480px) {
  .feature__media .stage { --dev: 54cqw; }
}
.feature__media .device { --device-w: var(--dev); }
.stage--ui { min-height: calc(var(--dev) * 1.72 + var(--pad) * 2); }

/* ── Device frame (a CSS take on render.swift's Phone) ────────────────────── */

.device {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  width: var(--device-w, min(300px, 72vw));
  margin: 0;
}
/* Contact shadow where the phone meets the stage. */
.device::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: 14%;
  right: 14%;
  bottom: -2.5cqw;
  height: 9cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--device-contact), transparent);
  filter: blur(2.5cqw);
  pointer-events: none;
}
.device__frame {
  position: relative;
  padding: 2.9cqw;
  border-radius: 15.6cqw;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 4%, transparent 96%, rgba(255, 255, 255, 0.14)),
    linear-gradient(160deg, var(--rim-hi), var(--rim-1) 14%, var(--rim-2) 42%, var(--rim-3) 70%, var(--rim-2) 88%, var(--rim-1));
  box-shadow:
    inset 0 0 0 0.28cqw rgba(255, 255, 255, 0.16),
    inset 0 0 0 0.75cqw rgba(0, 0, 0, 0.3),
    0 0 0 0.22cqw rgba(0, 0, 0, 0.45),
    0 2cqw 5cqw -1cqw var(--device-contact),
    0 16cqw 30cqw -6cqw var(--device-shadow);
}
/* Side buttons: action and volume on the left, side button on the right. */
.device__frame::before,
.device__frame::after {
  content: "";
  position: absolute;
  width: 1.3cqw;
  z-index: -1;
  border-radius: 0.6cqw;
}
.device__frame::before {
  left: -0.8cqw;
  top: 33cqw;
  height: 42cqw;
  background: linear-gradient(180deg,
    var(--rim-1) 0 6.6cqw, transparent 6.6cqw 14.6cqw,
    var(--rim-1) 14.6cqw 26.8cqw, transparent 26.8cqw 29.6cqw,
    var(--rim-1) 29.6cqw 41.8cqw, transparent 41.8cqw);
}
.device__frame::after {
  right: -0.7cqw;
  top: 54cqw;
  height: 18.8cqw;
  background: var(--rim-1);
}
.device__screen {
  position: relative;
  z-index: 1;
  aspect-ratio: 1170 / 2532;
  border-radius: 12.7cqw;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2.2cqw #050506;
  container-type: inline-size;
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; }
/* A faint glass sheen across the screen. */
.device__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
  z-index: 5;
}
.device__island {
  position: absolute;
  z-index: 6;
  top: 5.6cqw;
  left: 50%;
  translate: -50% 0;
  width: 29.5cqw;
  height: 8.6cqw;
  border-radius: 999px;
  background: #000;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(36px, 7vw, 88px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: clip;
}
/* Light from above and one cobalt bloom behind the phone. */
.hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--nav-h) * -1) 0 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 50% 0%, var(--stage-light), transparent 70%),
    radial-gradient(38% 46% at 50% 72%, var(--glow-soft), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: calc(var(--nav-h) * -1) 0 0;
  z-index: -1;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.5px) center top / 24px 24px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: clamp(56px, 8vw, 72px);
  align-items: center;
}
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__lede { max-width: 31ch; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9375rem; color: var(--fg-3); }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .i { width: 16px; height: 16px; color: var(--fg-2); }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(150%, 760px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), var(--glow-soft) 45%, transparent 100%);
  pointer-events: none;
}
/* Two hairline arcs, like rings on the slate. */
.hero__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(128%, 640px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 clamp(48px, 7vw, 88px) transparent, 0 0 0 calc(clamp(48px, 7vw, 88px) + 1px) color-mix(in srgb, var(--fg) 4%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero__visual .device { --device-w: min(310px, 76vw); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  .hero::before {
    background:
      radial-gradient(70% 55% at 50% 0%, var(--stage-light), transparent 70%),
      radial-gradient(32% 52% at 74% 52%, var(--glow-soft), transparent 70%);
  }
  .hero::after {
    -webkit-mask-image: radial-gradient(48% 62% at 74% 40%, #000 0%, transparent 80%);
    mask-image: radial-gradient(48% 62% at 74% 40%, #000 0%, transparent 80%);
  }
  .hero__visual .device { --device-w: clamp(300px, 25vw, 350px); }
}

.demo-wrap { position: relative; }
.demo-toggle {
  position: absolute;
  right: -4px;
  bottom: -56px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 0;
  color: var(--fg);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--float-shadow);
  cursor: pointer;
  transition: background-color 0.2s;
}
.demo-toggle:hover { background: var(--surface-2); }
.demo-toggle .i { width: 16px; height: 16px; }
@media (min-width: 960px) { .demo-toggle { right: -64px; bottom: 32px; } }
.demo-toggle[hidden] { display: none; }

/* ── The live jot demo inside the hero phone ──────────────────────────────── */
/* Units are cqw of the phone screen: 100cqw = 390 pt, so 1 pt ≈ 0.256cqw. */

.demo {
  --d-bg: #07080A;
  --d-sheet: #17191E;
  --d-card: #1F2228;
  --d-fg: #F4F5F7;
  --d-fg-2: #A3A9B4;
  --d-fg-3: #6E7480;
  --d-hl: #7088FF;
  --d-line: rgba(255, 255, 255, 0.1);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--d-bg);
  color: var(--d-fg);
  font-family: var(--font-app);
  font-size: 4.36cqw;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-align: left;
  user-select: none;
}
.demo .i { width: 1em; height: 1em; }

.demo__status {
  position: absolute;
  inset: 0 0 auto;
  height: 13.8cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5cqw 8.5cqw 0 10cqw;
  font-size: 4.3cqw;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: 3;
}
.demo__status-icons { display: flex; gap: 1.6cqw; align-items: center; }
.demo__status-icons svg:nth-child(1) { width: 4.6cqw; height: 3cqw; }
.demo__status-icons svg:nth-child(2) { width: 4.3cqw; height: 3.1cqw; }
.demo__status-icons svg:nth-child(3) { width: 7cqw; height: 3.4cqw; }

.demo__sheet {
  position: absolute;
  inset: 12cqw 0 0;
  background: var(--d-sheet);
  border-radius: 9cqw 9cqw 0 0;
  overflow: hidden;
}

.demo__bar {
  position: absolute;
  inset: 0 0 auto;
  height: 18cqw;
  padding: 4cqw 4.1cqw 0;
  display: flex;
  align-items: flex-start;
  gap: 3cqw;
  z-index: 3;
  background: linear-gradient(180deg, var(--d-sheet) 70%, transparent);
}
.demo__btn {
  width: 11.3cqw; height: 11.3cqw;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 0.3cqw rgba(255, 255, 255, 0.1) inset;
  color: var(--d-hl);
  position: relative;
}
.demo__btn .i { width: 5.4cqw; height: 5.4cqw; position: absolute; transition: opacity 0.3s, scale 0.3s; }
.demo__btn--done { background: #5470FF; color: #fff; box-shadow: none; }
.demo__btn--left { margin-right: auto; }
.demo__btn .i-alt { opacity: 0; scale: 0.6; }

.demo__scroll {
  position: absolute;
  inset: 16cqw 0 0;
  overflow: hidden;
}
.demo__content {
  padding: 2cqw 6.2cqw 30cqw;
  transition: translate 4.2s cubic-bezier(0.45, 0, 0.2, 1);
}

.demo__date {
  text-align: center;
  font-size: 3.3cqw;
  color: var(--d-fg-3);
  margin-bottom: 1.6cqw;
}
.demo__summary {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.4s;
  opacity: 0;
}
.demo__summary > div { overflow: hidden; }
.demo__sorted-label {
  display: flex; align-items: center; gap: 1.6cqw;
  font-size: 3.3cqw; font-weight: 600; color: #3DD68C;
  margin-top: 2cqw;
}
.demo__sorted-label .dot {
  width: 4.4cqw; height: 4.4cqw; border-radius: 50%;
  background: #3DD68C; color: #0D0F12; display: grid; place-items: center;
}
.demo__sorted-label .dot .i { width: 3cqw; height: 3cqw; }
.demo__headline {
  font-family: var(--font-app-serif);
  font-size: 6.1cqw;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 2cqw 0 2.6cqw;
}
.demo__chips { display: flex; flex-wrap: wrap; gap: 1.6cqw; padding-bottom: 5cqw; }

.demo__title {
  font-family: var(--font-app-serif);
  font-weight: 700;
  font-size: 7.4cqw;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 2.4cqw;
}

.jl { padding-block: 1.25cqw; }
.jl__text { white-space: pre-wrap; min-height: 1.32em; }
.jl__text .hl { color: var(--d-hl); font-weight: 500; transition: color 0.5s, font-weight 0.5s; }
.jl.is-hidden { display: none; }
.caret {
  display: inline-block;
  width: 0.55cqw;
  height: 1.12em;
  margin-left: 0.2cqw;
  vertical-align: -0.2em;
  background: var(--d-hl);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.jr {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  translate: 0 1.5cqw;
  scale: 0.96;
  transform-origin: top center;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.45s, translate 0.5s var(--ease), scale 0.5s var(--ease);
}
.jr__inner { overflow: hidden; display: grid; gap: 1.8cqw; }
.jr__inner > :first-child { margin-top: 2cqw; }
.jr__inner > :last-child { margin-bottom: 1.6cqw; }

.rcard {
  --k: var(--task);
  display: flex;
  align-items: center;
  gap: 2.8cqw;
  padding: 2.6cqw 3cqw;
  border-radius: 3.6cqw;
  background: color-mix(in srgb, var(--k) 12%, var(--d-sheet));
}
.rcard__sub { color: var(--d-fg-3); width: 4cqw; height: 4cqw; flex: none; }
.rcard__icon {
  width: 7.6cqw; height: 7.6cqw; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--k) 24%, transparent);
  color: var(--k);
}
.rcard__icon .i { width: 4cqw; height: 4cqw; }
.rcard__body { min-width: 0; flex: 1; }
.rcard__title { display: block; font-size: 3.95cqw; font-weight: 600; line-height: 1.25; }
.rcard__meta { display: block; font-size: 3.3cqw; color: var(--k); line-height: 1.3; }
.rcard__chev { width: 3.6cqw; height: 3.6cqw; color: var(--d-fg-3); flex: none; }

/* The demo uses the app's dark kind colors whatever the page theme. */
.demo .k-event, .demo .rcard.k-event { --k: #FF6369; }
.demo .k-reminder { --k: #FFB224; }
.demo .k-task { --k: #6680FF; }
.demo .k-habit { --k: #3DD68C; }
.demo .k-log { --k: #9E8CFC; }

.demo__found {
  position: absolute;
  inset: auto 0 0;
  padding: 3cqw 4.1cqw 7cqw;
  background: linear-gradient(0deg, var(--d-sheet) 75%, transparent);
  display: grid;
  gap: 2.6cqw;
  z-index: 3;
  transition: opacity 0.35s, translate 0.45s var(--ease);
}
.demo__found-row { display: flex; align-items: center; gap: 1.8cqw; font-size: 3.6cqw; color: var(--d-fg-2); }
.demo__found-row .dchip { transition: opacity 0.3s, scale 0.3s var(--ease); }
.demo__found-row .dchip.is-zero { opacity: 0; scale: 0.7; }
.demo__tools { display: flex; gap: 2cqw; }
.demo__tool {
  display: inline-flex; align-items: center; gap: 1.6cqw;
  padding: 2cqw 3.6cqw;
  border-radius: 999px;
  box-shadow: 0 0 0 0.3cqw rgba(255, 255, 255, 0.1) inset;
  font-size: 3.6cqw;
  color: var(--d-fg);
  white-space: nowrap;
}
.demo__tool .i { width: 3.8cqw; height: 3.8cqw; }

.dchip {
  --k: var(--task);
  display: inline-flex; align-items: center; gap: 1.2cqw;
  padding: 1cqw 2.4cqw;
  border-radius: 999px;
  font-size: 3.3cqw;
  font-weight: 600;
  color: var(--k);
  background: color-mix(in srgb, var(--k) 20%, transparent);
  white-space: nowrap;
}
.dchip .i { width: 3.4cqw; height: 3.4cqw; }

.demo__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.demo__overlay-card {
  display: grid;
  justify-items: center;
  gap: 1.6cqw;
  padding: 5cqw 8cqw;
  border-radius: 5cqw;
  background: rgba(40, 43, 51, 0.92);
  box-shadow: 0 6cqw 14cqw rgba(0, 0, 0, 0.5);
  scale: 0.92;
  transition: scale 0.45s var(--ease);
}
.demo__overlay-card .i { width: 6.4cqw; height: 6.4cqw; color: var(--d-hl); animation: pulse 1.2s ease-in-out infinite; }
.demo__overlay-card strong { font-family: var(--font-app-serif); font-weight: 400; font-size: 5.2cqw; }
.demo__overlay-card span { font-size: 3cqw; color: var(--d-fg-3); }
@keyframes pulse { 50% { scale: 0.82; opacity: 0.6; } }

/* States. Default (no script, reduced motion) is the sorted view. */
.demo .jr { grid-template-rows: 1fr; opacity: 1; translate: 0 0; scale: 1; }
.demo .demo__summary { grid-template-rows: 1fr; opacity: 1; }
.demo .demo__found { opacity: 0; translate: 0 8cqw; pointer-events: none; }
.demo .demo__btn--more { display: none; }
.demo .demo__btn--left .i-main { opacity: 0; scale: 0.6; }
.demo .demo__btn--left .i-alt { opacity: 1; scale: 1; }
.demo .jl__text .hl { color: inherit; font-weight: inherit; }

.demo.is-compose .jr, .demo.is-sorting .jr { grid-template-rows: 0fr; opacity: 0; translate: 0 1.5cqw; scale: 0.96; }
.demo.is-sorted .jr:not(.is-open) { grid-template-rows: 0fr; opacity: 0; translate: 0 1.5cqw; scale: 0.96; }
.demo.is-compose .demo__summary, .demo.is-sorting .demo__summary { grid-template-rows: 0fr; opacity: 0; }
.demo.is-compose .demo__found { opacity: 1; translate: 0 0; }
.demo.is-compose .demo__btn--more, .demo.is-sorting .demo__btn--more { display: grid; }
.demo.is-compose .demo__btn--left .i-main, .demo.is-sorting .demo__btn--left .i-main { opacity: 1; scale: 1; }
.demo.is-compose .demo__btn--left .i-alt, .demo.is-sorting .demo__btn--left .i-alt { opacity: 0; scale: 0.6; }
.demo.is-compose .jl__text .hl, .demo.is-sorting .jl__text .hl { color: var(--d-hl); font-weight: 500; }
.demo.is-sorting .demo__content { opacity: 0.35; transition: opacity 0.35s, translate 4.2s cubic-bezier(0.45, 0, 0.2, 1); }
.demo.is-sorting .demo__overlay { opacity: 1; }
.demo.is-sorting .demo__overlay-card { scale: 1; }
.demo.is-pressing .demo__btn--done { scale: 0.86; transition: scale 0.15s; }
.demo .demo__btn--done { transition: scale 0.3s var(--ease); }
.demo .demo__content { transition: opacity 0.35s, translate 4.2s cubic-bezier(0.45, 0, 0.2, 1); }
.demo.is-fading .demo__scroll, .demo.is-fading .demo__found { opacity: 0; transition: opacity 0.45s; }

/* ── How it works ──────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.step { padding: 10px; display: grid; align-content: start; }
.step__visual { height: 184px; }
.step__text { padding: 22px 16px 16px; display: grid; gap: 8px; }
.step__num {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-variant-numeric: tabular-nums;
}
.step p { color: var(--fg-2); font-size: 0.9875rem; line-height: 1.55; }

.mini-jot { width: 100%; max-width: 300px; font-family: var(--font-app); font-size: 1rem; line-height: 1.5; display: grid; gap: 4px; }
.mini-jot .hl { color: var(--accent); font-weight: 500; }
.mini-jot__title { font-family: var(--font-app-serif); font-weight: 700; font-size: 1.3125rem; margin-bottom: 2px; }
.mini-jot__caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em;
  background: var(--accent); border-radius: 1px;
}

.mini-done { display: grid; justify-items: center; gap: 16px; }
.mini-done__btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(180deg, #5C78FF, #3355FF); color: #fff; display: grid; place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 9px color-mix(in srgb, #5470FF 14%, transparent),
    0 0 0 19px color-mix(in srgb, #5470FF 6%, transparent),
    0 14px 32px -8px rgba(51, 85, 255, 0.7);
}
.mini-done__btn .i { width: 28px; height: 28px; }
.mini-done__label {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.875rem; font-weight: 500; color: var(--fg-2);
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-done__label .i { color: var(--accent); }

.mini-results { width: 100%; max-width: 300px; display: grid; gap: 8px; }

/* ── Kinds: result rows and chips outside the phone ───────────────────────── */

.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-row);
  background: color-mix(in srgb, var(--k) calc(var(--tint) * 0.55), var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 14%, transparent);
  min-width: 0;
  text-align: left;
}
.row-item__icon {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--k) var(--tint), transparent);
  color: var(--k);
}
.row-item__icon .i { width: 17px; height: 17px; }
.row-item__body { min-width: 0; flex: 1; }
.row-item__title { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; color: var(--fg); }
.row-item__meta { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--kt); }
.row-item__chev { width: 14px; height: 14px; color: var(--fg-4); flex: none; }

:where(.kchip, .row-item) { --k: var(--task); --kt: var(--task-t); }
.k-task { --k: var(--task); --kt: var(--task-t); }
.k-reminder { --k: var(--reminder); --kt: var(--reminder-t); }
.k-event { --k: var(--event); --kt: var(--event-t); }
.k-habit { --k: var(--habit); --kt: var(--habit-t); }
.k-log { --k: var(--log); --kt: var(--log-t); }
.k-note { --k: var(--note); --kt: var(--note-t); }

.kchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--kt);
  background: color-mix(in srgb, var(--k) var(--tint), transparent);
  white-space: nowrap;
}
.kchip .i { width: 15px; height: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  white-space: nowrap;
}
.tool .i { width: 16px; height: 16px; color: var(--fg-2); }
code.tag, .tag {
  font-family: var(--font-ui);
  font-size: 0.9375em;
  color: var(--accent);
  font-weight: 600;
}

/* ── Feature rows ──────────────────────────────────────────────────────────── */

.feature {
  display: grid;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.feature__copy { display: grid; gap: 20px; align-content: center; justify-items: start; }
.feature__copy .lede { max-width: 36ch; }
.feature__copy .muted.small { max-width: 46ch; }
.feature__media { min-width: 0; }

@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .feature--flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .feature--flip .feature__media { order: -1; }
}

.facts { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 4px; max-width: 46ch; }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: var(--fg-2); font-size: 0.9875rem; line-height: 1.55; }
.facts li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--fg-3); }
.facts li strong { color: var(--fg); font-weight: 600; }

/* Real UI lifted off the screen, like the App Store callouts. */
.callout {
  position: absolute;
  z-index: 8;
  width: min(292px, 76%);
  padding: 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--float-shadow);
  display: grid;
  gap: 10px;
}
.callout--right { right: 4%; bottom: 9%; }
.callout--left { left: 4%; bottom: 9%; }
.callout__head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; font-size: 0.8125rem; font-weight: 600; color: var(--reminder-t); }
.callout__head .i { width: 15px; height: 15px; }
.callout__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev {
  padding: 9px 10px 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--event) var(--tint), var(--surface));
  position: relative;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.ev::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--event); }
.ev strong { display: block; font-weight: 600; font-size: 0.875rem; }
.ev span { color: var(--fg-2); }

/* The "Found so far" sheet. */
.sheet { gap: 6px; padding: 12px 10px 10px; }
.sheet__title { text-align: center; font-size: 0.9375rem; font-weight: 600; padding-bottom: 4px; }
.sheet__section { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); padding: 6px 6px 0; }
.sheet__rows { display: grid; gap: 6px; }
.sheet .row-item { padding: 8px 10px; gap: 10px; }
.sheet .row-item__icon { width: 28px; height: 28px; }
.sheet .row-item__icon .i { width: 15px; height: 15px; }
.sheet .row-item__title { font-size: 0.875rem; }
.sheet .row-item__meta { font-size: 0.75rem; }

@media (max-width: 520px) {
  .callout { width: 82%; }
  .callout--right { right: 3%; bottom: 5%; }
  .callout--left { left: 3%; bottom: 5%; }
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */

.alerts-visual {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
}
.jot-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--float-shadow);
  font-family: var(--font-app);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.jot-card .hl { color: var(--accent); font-weight: 500; }
.alerts-visual .row-item { padding: 12px 14px; }
.flow-arrow { display: grid; place-items: center; color: var(--fg-4); height: 12px; }
.flow-arrow .i { width: 18px; height: 18px; }
.alert-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 2px; }
.alert-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--reminder-t);
  background: color-mix(in srgb, var(--reminder) var(--tint), transparent);
}
.alert-pill .i { width: 15px; height: 15px; }
.notif {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--float-shadow);
  margin-top: 8px;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.notif span { display: block; font-size: 0.875rem; color: var(--fg-2); line-height: 1.35; }
.notif time { align-self: start; font-size: 0.8125rem; color: var(--fg-3); }

/* ── Widgets and Live Activities ──────────────────────────────────────────── */

.stage--wide { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.stage--wide::after { top: 46%; width: min(80%, 820px); }
.stage--wide::before {
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 15%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 15%, transparent 100%);
}
.trio {
  --w: min(236px, 64vw);
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--w);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 4px calc(50% - var(--w) / 2) 28px;
  scrollbar-width: none;
}
.trio::-webkit-scrollbar { display: none; }
.trio > figure { scroll-snap-align: center; display: grid; gap: 22px; justify-items: center; align-content: start; }
.trio .device { --device-w: 100%; }
.trio figcaption { text-align: center; display: grid; gap: 3px; }
.trio figcaption strong { font-weight: 600; }
.trio figcaption span { font-size: 0.9375rem; color: var(--fg-2); max-width: 26ch; }

@media (min-width: 980px) {
  .trio {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
    overflow: visible;
    padding: 0 clamp(40px, 6vw, 96px);
    max-width: 1040px;
  }
  .trio > figure:nth-child(odd) { margin-top: 64px; }
}

/* ── Bento ─────────────────────────────────────────────────────────────────── */

.bento { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .tile--siri { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > * { grid-column: span 2; }
  .bento > .tile--siri { grid-column: span 4; }
}
.tile { padding: 10px; display: flex; flex-direction: column; }
.tile__visual { min-height: 196px; }
@media (min-width: 720px) { .tile__visual { height: 204px; min-height: 0; } }
.tile__visual--flush { padding: 0; }
.tile .h3 { margin: 20px 14px 6px; }
.tile > p { margin: 0 14px 14px; color: var(--fg-2); font-size: 0.9375rem; line-height: 1.55; }

.siri { width: min(420px, 100%); display: grid; gap: 8px; justify-items: start; }
.siri__said {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 18px 18px 18px 6px;
  font-size: 0.9375rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.siri__said .i { width: 16px; height: 16px; color: var(--accent); }
.siri__said--2 { margin-left: 18px; color: var(--fg-2); }
.siri .row-item { width: 100%; margin-top: 6px; }

.share { display: flex; gap: clamp(12px, 3vw, 18px); align-items: flex-start; }
.share__app { display: grid; justify-items: center; gap: 8px; font-size: 0.75rem; font-weight: 500; color: var(--fg-2); }
.share__icon, .share__app img {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--fg-2);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.share__icon .i { width: 22px; height: 22px; }
.share__app--js { color: var(--fg); }
.share__app--js img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-fill), 0 8px 20px -6px rgba(51, 85, 255, 0.6); }

.reset {
  width: min(280px, 100%);
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--float-shadow);
  display: grid;
  gap: 12px;
}
.reset__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-app-serif); font-size: 1.0625rem; font-weight: 600; }
.reset__title .i { width: 16px; height: 16px; color: var(--accent); }
.reset__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.875rem; color: var(--fg-2); }
.reset__row b { font-weight: 600; font-size: 0.8125rem; color: var(--accent-t); padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent-fill) 14%, transparent); white-space: nowrap; }
.reset__week { display: flex; gap: 6px; }
.reset__week i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--habit) 55%, transparent); }
.reset__week i.on { background: var(--habit); box-shadow: none; }

.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 320px; }

.split-shot {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

/* ── Switching ────────────────────────────────────────────────────────────── */

.import {
  width: min(340px, 100%);
  padding: 8px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--float-shadow);
}
.import__title { padding: 10px 12px 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.import__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.9875rem;
}
.import__list li + li { box-shadow: 0 -1px 0 var(--line); }
.import__icon {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  color: var(--fg-2);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.import__icon .i { width: 17px; height: 17px; }
.import__chev { width: 14px; height: 14px; margin-left: auto; color: var(--fg-4); }
.import__done {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 4cqw, 28px);
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--float-shadow);
}
.import__tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--habit); color: #0D0F12; }
.import__tick .i { width: 14px; height: 14px; }
.stage--ui .import { margin-bottom: 40px; }

/* ── Privacy and sorting ──────────────────────────────────────────────────── */

.privacy {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border: 1px solid transparent;
  border-radius: clamp(28px, 4vw, 40px);
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5.5vw, 80px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(60% 70% at 50% 0%, var(--glow-soft), transparent 70%) padding-box,
    linear-gradient(180deg, var(--stage-top), var(--bg)) padding-box,
    linear-gradient(180deg, var(--edge-top), transparent) border-box;
}
.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.5px) center top / 22px 22px;
  -webkit-mask-image: radial-gradient(60% 45% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 45% at 50% 0%, #000 0%, transparent 100%);
}
.privacy__head { display: grid; gap: 18px; justify-items: start; max-width: 760px; }
.privacy__head .lede { max-width: 48ch; }
.privacy__no { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.privacy__no li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.privacy__no .i { width: 16px; height: 16px; color: var(--fg-3); }

.engines {
  display: grid;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.engines__title { padding: 22px 0 6px; font-size: 0.9375rem; font-weight: 500; color: var(--fg-2); }
.engine { display: grid; gap: 10px; align-content: start; padding: 22px 0; }
.engine + .engine { border-top: 1px solid var(--line); }
.engine .icon-tile { margin-bottom: 6px; }
.engine p { color: var(--fg-2); font-size: 0.9875rem; }
.engine .engine__meta { font-size: 0.8125rem; color: var(--fg-3); }
@media (min-width: 880px) {
  .engines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .engines__title { grid-column: 1 / -1; }
  .engine { padding: 22px 32px 8px 0; }
  .engine + .engine { border-top: 0; border-left: 1px solid var(--line); padding-left: 32px; }
}
.privacy__foot {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--fg-2);
}
.privacy__foot .link-arrow { margin-left: 4px; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }

.plan { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.plan__name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.plan--featured {
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent-fill) 15%, transparent), transparent 70%) padding-box,
    linear-gradient(180deg, var(--card-top), var(--card-bottom)) padding-box,
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent) 22%, transparent)) border-box;
  box-shadow: 0 30px 70px -34px rgba(51, 85, 255, 0.6), var(--card-shadow);
}

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }
.price__now {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.price__cur { font-size: 0.55em; vertical-align: 0.62em; margin-right: 0.04em; color: var(--fg-2); }
.price__per { color: var(--fg-2); font-size: 0.9375rem; }
.price__was { color: var(--fg-3); font-size: 1.0625rem; text-decoration-thickness: 1.5px; white-space: nowrap; }
.price__note { color: inherit; }
.plan__sub { color: var(--fg-2); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 900px) { .plan__sub { min-height: 3em; } }
.plan__perk {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan__perk .i { width: 18px; height: 18px; color: var(--fg-2); }
.plan__perk strong { font-weight: 600; }
.plan--featured .plan__perk { background: color-mix(in srgb, var(--accent-fill) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.plan--featured .plan__perk .i { color: var(--accent); }
.plan__action { margin-top: auto; padding-top: 6px; display: grid; gap: 12px; }
.plan__action .btn { width: 100%; }
.plan__fine { font-size: 0.8125rem; line-height: 1.5; color: var(--fg-3); text-align: center; }
@media (min-width: 900px) { .plan__fine { min-height: 3em; } }
.plans__note { margin: 20px auto 0; max-width: 60ch; text-align: center; font-size: 0.875rem; color: var(--fg-3); }

.tiers { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); } }
.tier { padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.tier__head { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tier__name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.tier__price .price__now { font-size: 2.5rem; }
.tier__sub { color: var(--fg-2); font-size: 0.9375rem; }
.tier--pro .tier__name { display: flex; align-items: center; gap: 10px; }
.tier--pro .tier__head { padding-top: 0; }
.tier--pro {
  background:
    radial-gradient(80% 50% at 100% 0%, color-mix(in srgb, var(--accent-fill) 10%, transparent), transparent 70%) padding-box,
    linear-gradient(180deg, var(--card-top), var(--card-bottom)) padding-box,
    linear-gradient(180deg, var(--edge-top), var(--edge-bottom)) border-box;
}
.tier__foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--fg-2);
}
.tier__foot .i { width: 16px; height: 16px; color: var(--accent); }

.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; align-content: start; }
@media (min-width: 640px) { .feats--pro { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px; } }
.feat { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; line-height: 1.45; }
.feat__icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  margin-top: 1px;
  color: var(--fg-2);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}
.feat__icon .i { width: 12px; height: 12px; }
.feats--pro .feat__icon { color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 18%, transparent); }
.feat__title { color: var(--fg); font-weight: 500; }
.feat__title .badge { margin-left: 4px; }
.feat__detail { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--fg-2); }

/* The comparison table */
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: clip;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  box-shadow: var(--card-shadow);
}
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; }
.compare thead th {
  position: sticky;
  top: var(--nav-h);
  z-index: 2;
  font-size: 0.9375rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.compare th:not(:first-child), .compare td { width: 25%; }
.compare thead th:last-child, .compare td:last-child { background-color: color-mix(in srgb, var(--accent-fill) 6%, transparent); }
.compare thead th:last-child { color: var(--accent-t); background: color-mix(in srgb, var(--surface) 88%, var(--accent-fill)); }
.compare tbody tr:not(.compare__group) > * { border-top: 1px solid var(--line); }
.compare tbody tr.compare__group + tr > * { border-top: 0; }
.compare__group th {
  padding-top: 30px;
  padding-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.compare tbody:first-of-type .compare__group th { padding-top: 20px; }
.compare tbody th[scope="row"] { font-weight: 500; color: var(--fg); }
.compare tbody th[scope="row"] .badge { margin-left: 4px; }
.compare td { color: var(--fg-2); }
.compare .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 16%, transparent); }
.compare .yes .i { width: 13px; height: 13px; }
.compare .no { color: var(--fg-4); font-weight: 600; }
@media (max-width: 640px) {
  .compare { font-size: 0.875rem; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare th:first-child, .compare td:first-child { padding-left: 14px; }
  .compare th:not(:first-child), .compare td { width: 27%; }
  .compare thead th { top: var(--nav-h); }
}

.note-grid { display: grid; gap: 16px; }
@media (min-width: 880px) { .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note-card { padding: 28px; display: grid; gap: 12px; align-content: start; }
.note-card .icon-tile { margin-bottom: 4px; }
.note-card h2 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.012em; }
.note-card p, .note-card li { color: var(--fg-2); font-size: 0.9875rem; }
.note-card ul { padding-left: 1.1em; display: grid; gap: 8px; margin: 0; }
.note-card li::marker { color: var(--fg-4); }
.note-card strong { color: var(--fg); font-weight: 600; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 8px;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i {
  width: 28px; height: 28px; padding: 5px;
  border-radius: 50%;
  color: var(--fg-3);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  transition: transform 0.35s var(--ease), color 0.2s, background-color 0.2s;
  flex: none;
}
.faq details[open] summary .i { transform: rotate(180deg); color: var(--fg); }
.faq summary:hover .i { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.faq__a { padding: 0 2px 22px; color: var(--fg-2); max-width: 66ch; display: grid; gap: 12px; }
.faq__a strong { color: var(--fg); font-weight: 600; }
.faq-layout { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--nav-h) + 40px); }
  .faq-layout .section-head + * { margin-top: 0; }
}
/* Open and close smoothly where the browser can animate to auto. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

.faq-group { scroll-margin-top: calc(var(--nav-h) + 24px); }
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 88px); }
.faq-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.faq-group__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; }

.mt-link { margin-top: clamp(32px, 4vw, 48px); }

/* ── Final call to action ─────────────────────────────────────────────────── */

.final-section { padding-bottom: calc(var(--section) * 1.25); }
.final {
  position: relative;
  isolation: isolate;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(900px, 140%);
  height: 520px;
  translate: -50% -22%;
  background:
    radial-gradient(closest-side, var(--glow-soft), transparent),
    radial-gradient(circle, var(--dot) 1px, transparent 1.5px) center / 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
  pointer-events: none;
}
.final__mark { position: relative; margin-bottom: 8px; }
.final__mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 4% -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(18px);
}
.final__icon {
  width: 112px; height: 112px;
  filter: drop-shadow(0 18px 30px rgba(10, 16, 40, 0.45)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.final .lede { margin-inline: auto; }
.final .cta-row { justify-content: center; margin-top: 4px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  padding-block: 72px 36px;
  background: linear-gradient(180deg, transparent, var(--bg-2) 60%);
  box-shadow: 0 -1px 0 var(--line);
}
.footer__inner { display: grid; gap: 48px; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.footer__brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.footer__tag { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; margin-top: 10px; }
.footer__line { color: var(--fg-2); font-size: 0.9375rem; margin-bottom: 6px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.footer__head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a { color: var(--fg-2); text-decoration: none; font-size: 0.9375rem; overflow-wrap: anywhere; transition: color 0.2s; }
.footer__cols a:hover { color: var(--fg); }
.footer__base {
  margin-top: 56px;
  padding-top: 24px;
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - var(--gutter) * 2) 1px;
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  font-size: 0.8125rem; color: var(--fg-3);
}

/* ── Inner pages ──────────────────────────────────────────────────────────── */

.page-head {
  padding-top: clamp(48px, 9vw, 112px);
  padding-bottom: clamp(32px, 5vw, 56px);
  display: grid;
  gap: 20px;
  justify-items: start;
  position: relative;
}
.page-head--center { text-align: center; justify-items: center; }
.page-head .lede { max-width: 48ch; }
.page-lede { color: var(--fg-3); font-size: 0.9375rem; }

.page-glow { position: relative; isolation: isolate; }
.page-glow::before {
  content: "";
  position: absolute;
  inset: calc(var(--nav-h) * -1) 0 auto;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 50% 0%, var(--glow-soft), transparent 75%),
    radial-gradient(70% 50% at 50% 0%, var(--stage-light), transparent 70%);
  pointer-events: none;
}
.page-glow::after {
  content: "";
  position: absolute;
  inset: calc(var(--nav-h) * -1) 0 auto;
  height: 560px;
  z-index: -1;
  background: radial-gradient(circle, var(--dot) 1px, transparent 1.5px) center top / 24px 24px;
  -webkit-mask-image: radial-gradient(50% 70% at 50% 0%, #000 0%, transparent 90%);
  mask-image: radial-gradient(50% 70% at 50% 0%, #000 0%, transparent 90%);
  pointer-events: none;
}

/* Legal reading layout */
.legal { padding-bottom: var(--section); }
.legal__layout { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .legal__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start; }
  .legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); max-height: calc(100vh - var(--nav-h) - 64px); overflow: auto; }
}
.legal__toc {
  font-size: 0.9375rem;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.legal__toc-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.legal__toc ol { list-style: none; padding: 0; display: grid; gap: 7px; margin: 0; }
.legal__toc a { color: var(--fg-2); text-decoration: none; }
.legal__toc a:hover { color: var(--fg); }

.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-2);
  min-width: 0;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; font-weight: 600; color: var(--fg); margin-top: 1.8em; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.55em; }
.prose li::marker { color: var(--fg-3); }
.prose ol > li::marker { font-variant-numeric: tabular-nums; color: var(--fg-2); font-weight: 600; }
.prose li > ul, .prose li > ol { margin-top: 0.55em; }
.prose a { color: var(--accent); }
.prose code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface-2); }
.prose blockquote { margin-inline: 0; padding-left: 1em; border-left: 2px solid var(--line-strong); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose th, .prose td { border-top: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal__foot { font-size: 0.9375rem; }

/* Support */
.contact {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.contact h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; }
.contact p { color: var(--fg-2); margin-top: 10px; max-width: 54ch; }
.contact .btn { overflow-wrap: anywhere; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  text-decoration: none; color: var(--fg-2); font-size: 0.9375rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color 0.2s, background-color 0.2s;
}
.jump a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }

/* Press */
.press-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .press-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.press-about { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; align-content: start; }
.press-about p { color: var(--fg-2); font-size: 1.0625rem; line-height: 1.7; }
.facts-list { padding: clamp(24px, 4vw, 36px); display: grid; gap: 0; align-content: start; }
.facts-list div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts-list div:first-child { border-top: 0; padding-top: 0; }
.facts-list div:last-child { padding-bottom: 0; }
.facts-list dt { color: var(--fg-3); font-size: 0.9375rem; }
.facts-list dd { color: var(--fg); font-size: 0.9375rem; overflow-wrap: anywhere; }
.facts-list dd .price__was { font-size: inherit; }

.press-section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 20px; }
.press-about .press-section-title { margin-bottom: 0; }
.press-note { margin: -8px 0 20px; }

.brand-assets { display: grid; gap: 16px; }
@media (min-width: 760px) { .brand-assets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.asset { padding: 10px; display: grid; gap: 0; align-content: start; }
.asset__preview { height: 168px; }
.asset__preview img { width: 96px; height: 96px; }
.asset__preview--icon img { border-radius: 22.37%; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5); }
.asset__colors { position: absolute; inset: 0; display: flex; }
.asset__colors span { flex: 1; display: flex; align-items: flex-end; padding: 12px; font-size: 0.75rem; font-weight: 600; }
.asset__colors .c-ink { background: #0D0F12; color: #F4F5F7; flex: 1.2; }
.asset__colors .c-chalk { background: #F4F5F7; color: #0D0F12; }
.asset__colors .c-cobalt { background: #3355FF; color: #FFFFFF; flex: 0.6; }
.asset__body { padding: 18px 14px 14px; display: grid; gap: 8px; }
.asset h3 { font-size: 1.0625rem; font-weight: 600; }
.asset p { color: var(--fg-2); font-size: 0.9375rem; }
.asset__links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.9375rem; font-weight: 600; margin-top: 4px; }
.asset__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.asset__links .i { width: 16px; height: 16px; }

.shots { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shots { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.shot { padding: 8px 8px 12px; display: grid; gap: 10px; }
.shot img { width: 100%; height: auto; border-radius: 16px; aspect-ratio: 1320 / 2868; object-fit: cover; background: var(--surface-2); }
.shot__links { display: flex; justify-content: center; gap: 16px; font-size: 0.875rem; font-weight: 600; }
.shot__links a { text-decoration: none; }

.film-card { padding: 10px; display: grid; gap: 0; }
@media (min-width: 760px) { .film-card { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; } }
.film-card video { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--surface-2); object-fit: cover; }
.film-card .asset__body { padding: 20px clamp(14px, 3vw, 32px); }

/* 404 */
.notfound { min-height: calc(100svh - var(--nav-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 72px; }
.notfound__inner { display: grid; gap: 24px; justify-items: center; }
.notfound .stage { width: min(440px, 100%); padding: 32px 24px; }
.notfound .jot-card { text-align: left; width: 100%; display: grid; gap: 12px; }
.notfound .cta-row { justify-content: center; }

/* ── Motion ────────────────────────────────────────────────────────────────── */
/* Scroll-driven reveals, CSS only. Browsers without support, and Reduce Motion, just show the content. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 44%;
    }
    [data-reveal="late"] { animation-name: reveal-late; animation-range: entry 24% entry 70%; }
    .steps > :nth-child(2), .bento > :nth-child(2), .bento > :nth-child(4) { animation-range: entry 10% entry 50%; }
    .steps > :nth-child(3), .bento > :nth-child(5) { animation-range: entry 16% entry 56%; }
    .device.rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes reveal-late {
  from { opacity: 0; translate: 0 16px; scale: 0.97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes rise {
  from { opacity: 0.35; translate: 0 56px; }
  to { opacity: 1; translate: 0 0; }
}

/* Load-in for the hero and the page heads. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .page-head > * { animation: enter 1s var(--ease) both; }
  .hero__copy > :nth-child(2), .page-head > :nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > :nth-child(3), .page-head > :nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero__visual { animation: enter-up 1.3s var(--ease) 0.15s both; }
}
@keyframes enter { from { opacity: 0; translate: 0 14px; filter: blur(6px); } }
@keyframes enter-up { from { opacity: 0; translate: 0 44px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .caret { animation: none; }
  .faq details::details-content { transition: none; }
}
