/* Vela: mobile app template (demo app: Lull, a sleep planner).
   Every custom property in :root is a design token; every BEM block is a component. */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --pine-950: #0A120F;   /* page background at night, text on paper */
  --pine-900: #111C18;   /* dark surfaces */
  --pine-800: #1A2A24;   /* raised dark surfaces */
  --pine-700: #2B3E36;   /* lines on dark */
  --paper: #EDE9E0;      /* light sections */
  --paper-2: #E2DDD0;    /* cards on paper */
  --paper-3: #F6F3EC;    /* lightest */
  --fog: #A9B8B0;        /* secondary text on dark (AA on pine-950 and pine-900) */
  --slate: #4A5A52;      /* secondary text on paper (AA) */
  --ember: #FF6A3D;      /* the one accent: buttons, the arc, the lit cycle */
  --ember-ink: #A83A12;  /* ember as text on paper (AA) */
  --ember-soft: #FFB08F; /* ember as text on dark, small sizes */
  --lamp: #F2C66D;       /* REM in charts, stars */
  --moss: #8DB8A6;       /* light sleep in charts */
  --deep: #3F7A68;       /* deep sleep in charts */
  --line-dark: rgb(238 241 234 / .12);
  --line-paper: rgb(10 18 15 / .14);

  /* type */
  --f-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Red Hat Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --t-display: clamp(3.4rem, 9.6vw, 10rem);   /* 160 px max, 138 px at 1440 */
  --t-h2: clamp(2.75rem, 8.4vw, 8.5rem);         /* 136 px max, 121 px at 1440 */
  --t-h3: clamp(1.625rem, 2.4vw, 2.25rem);
  --t-h4: clamp(1.25rem, 1.5vw, 1.375rem);
  --t-lead: clamp(1.125rem, 1.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .75rem;

  /* space and shape */
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --section: clamp(5.5rem, 11vw, 10.5rem);
  --maxw: 1440px;
  --r-lg: clamp(1.25rem, 2.2vw, 2rem);
  --r-md: 1.25rem;
  --r-sm: .75rem;

  /* motion: one curve, three durations */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --d-hover: .4s;
  --d-appear: .7s;
  --d-reveal: .9s;

  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--pine-950); color: #EEF1EA;
  font: 400 var(--t-body)/1.55 var(--f-sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; font-feature-settings: 'ss01', 'cv11';
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--ember); color: var(--pine-950); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--ember-ink); }
.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: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ember); color: var(--pine-950); padding: .75rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.nums { font-variant-numeric: tabular-nums; }

/* surfaces */
.paper { background: var(--paper); color: var(--pine-950); color-scheme: light; }
.paper-3 { background: var(--paper-3); color: var(--pine-950); color-scheme: light; }
.night { background: var(--pine-950); color: #EEF1EA; }

/* ---------- 3. Type ---------- */
.display { font-size: var(--t-display); font-weight: 600; line-height: .86; letter-spacing: -.035em; }
.h2 { font-size: var(--t-h2); font-weight: 600; line-height: .9; letter-spacing: -.032em; text-wrap: balance; }
.h2--md { font-size: clamp(2.5rem, 5.6vw, 5.5rem); line-height: .95; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.h4 { font-size: var(--t-h4); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fog); max-width: 36em; text-wrap: pretty; }
.paper .lead, .paper-3 .lead { color: var(--slate); }
.label { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); }
.paper .label, .paper-3 .label { color: var(--slate); }
.label--accent { color: var(--ember-soft); }
.paper .label--accent, .paper-3 .label--accent { color: var(--ember-ink); }
.muted { color: var(--fog); }
.paper .muted, .paper-3 .muted { color: var(--slate); }

/* split text (motion.js wraps each word; the mask hides the rise) */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .08em; vertical-align: top; padding-bottom: .09em; margin-bottom: -.09em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- 4. Buttons, badges, chips ---------- */
.btn {
  --bg: var(--ember); --fg: var(--pine-950);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .85rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background var(--d-hover) var(--ease), color var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease), transform var(--d-hover) var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; transition: transform var(--d-hover) var(--ease); }
.btn:hover { --bg: #FF855F; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: var(--line-dark); }
.btn--ghost:hover { --bg: rgb(238 241 234 / .08); }
.paper .btn--ghost, .paper-3 .btn--ghost { border-color: var(--line-paper); }
.paper .btn--ghost:hover, .paper-3 .btn--ghost:hover { --bg: rgb(10 18 15 / .06); }
.btn--ink { --bg: var(--pine-950); --fg: #EEF1EA; }
.btn--ink:hover { --bg: var(--pine-800); }
.btn--sm { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .9375rem; }

/* store buttons: generic, no store logos (swap for the official badges from Apple and Google) */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .6rem 1.25rem .6rem 1rem; border-radius: 1rem;
  background: #EEF1EA; color: var(--pine-950); text-decoration: none; line-height: 1.1;
  transition: background var(--d-hover) var(--ease), transform var(--d-hover) var(--ease);
}
.store:hover { background: #fff; transform: translateY(-2px); }
.store svg { width: 1.6rem; height: 1.6rem; flex: none; }
.store small { display: block; font-size: .72rem; font-weight: 500; opacity: .75; letter-spacing: 0; }
.store b { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.store--dark { background: var(--pine-950); color: #EEF1EA; }
.store--dark:hover { background: var(--pine-800); }

.chip { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .5rem; border-radius: 999px; background: rgb(238 241 234 / .1); border: 1px solid var(--line-dark); font-size: .875rem; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--d-hover) var(--ease); }
.chip:hover { background: rgb(238 241 234 / .16); }
.chip__tag { background: var(--ember); color: var(--pine-950); font-weight: 600; font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; }
.chip svg { width: 1rem; height: 1rem; }

.tag { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; }
.tag--new { color: var(--ember-soft); }
.tag--improved { color: var(--moss); }
.tag--fixed { color: var(--lamp); }
.paper .tag--new, .paper-3 .tag--new { color: var(--ember-ink); }
.paper .tag--improved, .paper-3 .tag--improved { color: #2C6352; }
.paper .tag--fixed, .paper-3 .tag--fixed { color: #7A5A12; }
.tag--plus { background: var(--ember); color: var(--pine-950); border-color: var(--ember); }
.tag--free { color: var(--moss); }
.paper .tag--free, .paper-3 .tag--free { color: #2C6352; }

.ico { width: 1.25rem; height: 1.25rem; flex: none; }

/* rating */
.rating { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.rating__faces { display: flex; }
.rating__faces img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--pine-950); margin-left: -.6rem; }
.rating__faces img:first-child { margin-left: 0; }
.rating__txt { font-size: .9375rem; line-height: 1.3; }
.rating__txt b { font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--lamp); vertical-align: -2px; }
.stars svg { width: .95rem; height: .95rem; }
.paper .stars, .paper-3 .stars { color: #B7831D; }

/* ---------- 5. Header and menu ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: .75rem; transition: transform .5s var(--ease); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; height: 4rem; padding: 0 .75rem 0 1.25rem; border-radius: 999px; transition: background var(--d-hover) var(--ease), box-shadow var(--d-hover) var(--ease); }
.site-header.is-scrolled .site-header__bar { background: rgb(17 28 24 / .78); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 0 0 1px var(--line-dark); }
.site-header.is-hidden { transform: translateY(-120%); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; font-size: 1.375rem; letter-spacing: -.04em; color: #EEF1EA; }
.brand svg { width: 1.75rem; height: 1.75rem; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; font-size: .9375rem; color: #DDE3DD; transition: background var(--d-hover) var(--ease), color var(--d-hover) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background: rgb(238 241 234 / .1); color: #fff; }
.lang { display: flex; gap: .15rem; font-family: var(--f-mono); font-size: .8rem; }
.lang a { padding: .4rem .5rem; border-radius: 8px; text-decoration: none; color: var(--fog); }
.lang a[aria-current="true"] { color: #EEF1EA; background: rgb(238 241 234 / .1); }
.menu-btn { display: none; margin-left: auto; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line-dark); background: rgb(17 28 24 / .6); align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 1.1rem; height: 1.5px; background: #EEF1EA; position: relative; transition: transform var(--d-hover) var(--ease), background var(--d-hover); }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: #EEF1EA; transition: transform var(--d-hover) var(--ease); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--pine-950); padding: 6.5rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--ease); }
.menu__links { list-style: none; display: grid; }
.menu__links a { display: block; padding: .35rem 0; font-size: clamp(2.25rem, 10vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; text-decoration: none; }
.menu__foot { margin-top: auto; display: grid; gap: 1.25rem; }
@media (max-width: 1023px) {
  .nav, .site-header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__bar { gap: .75rem; }
  .site-header .lang { margin-left: auto; }
  .site-header .menu-btn { margin-left: 0; }
}

/* ---------- 6. Hero ---------- */
.hero { padding:0; }
.hero__card { position: relative; isolation: isolate; min-height: max(46rem, calc(100svh - 1.5rem)); border-radius:0; overflow: hidden; background: var(--pine-950); display: flex; }
.hero__photo { position: absolute; inset: 0 0 0 28%; z-index: -2; }
@media (max-width: 1023px) { .hero__photo { inset: 0 0 auto; height: 70%; } }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 58%; }
.hero__card::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, var(--pine-950) 0%, var(--pine-950) 28%, rgb(10 18 15 / .55) 40%, rgb(10 18 15 / .05) 60%, rgb(10 18 15 / .5) 100%),
  linear-gradient(180deg, rgb(10 18 15 / .35) 0%, transparent 30%, transparent 55%, rgb(10 18 15 / .92) 100%); }
.hero__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 5vw, 6rem); align-items: end; padding: clamp(7rem, 12vh, 9rem) clamp(1.25rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); }
.hero__copy { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); align-content: end; padding-bottom: .5rem; }
.hero__title { max-width: 7.2ch; }
.hero__lead { color: #D5DDD7; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.hero__side { display: grid; justify-items: center; gap: 1rem; }
@media (max-width: 1023px) {
  .hero__card { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 7.5rem; }
  .hero__photo img { object-position: 30% 40%; }
  .hero__card::before { background: linear-gradient(180deg, rgb(10 18 15 / .55) 0%, rgb(10 18 15 / .35) 22%, rgb(10 18 15 / .82) 48%, var(--pine-950) 78%); }
  .hero__side { padding-top: 1rem; }
}

/* ---------- 7. Phone frame (component: Phone, variants by screen) ---------- */
.phone { container-type: inline-size; position: relative; width: var(--phone-w, 20rem); aspect-ratio: 1 / 2.06; flex: none; }
.phone__body { position: absolute; inset: 0; border-radius: 15.5cqw; padding: 3.1cqw;
  background: linear-gradient(150deg, #535a57 0%, #1b201e 14%, #0c0f0e 48%, #1f2423 84%, #4c5350 100%);
  box-shadow: inset 0 0 0 .45cqw #69706d, inset 0 0 0 1.1cqw #090b0a, 0 6cqw 14cqw -4cqw rgb(0 0 0 / .6), 0 2cqw 5cqw rgb(0 0 0 / .28); }
.phone__screen { position: relative; height: 100%; border-radius: 12.6cqw; overflow: hidden; background: #0E1714; transform: translateZ(0); }
.phone__inner { height: 100%; }
.phone__island { position: absolute; top: 5.4cqw; left: 50%; width: 28cqw; height: 8.2cqw; margin-left: -14cqw; background: #000; border-radius: 6cqw; z-index: 6; }
.phone__btn { position: absolute; width: 1.1cqw; background: linear-gradient(90deg, #1c201f, #50575a); border-radius: 1cqw; }
.phone__btn--l1 { left: -.8cqw; top: 21%; height: 6%; }
.phone__btn--l2 { left: -.8cqw; top: 30%; height: 10.5%; }
.phone__btn--r { right: -.8cqw; top: 26%; height: 14%; transform: scaleX(-1); }
.phone--hero { --phone-w: clamp(15rem, min(19vw, 33vh), 19.5rem); }
.phone--lg { --phone-w: clamp(16rem, 24vw, 23rem); }
.phone--md { --phone-w: clamp(14rem, 19vw, 18.5rem); }
.phone--sm { --phone-w: clamp(12rem, 15vw, 15rem); }
.phone--tilt-l { rotate: -4deg; }
.phone--tilt-r { rotate: 4deg; }

/* ---------- 8. App UI (inside the phone; all sizes in cqw of the phone) ---------- */
.app {
  --a-bg: #0E1714; --a-surface: #17231E; --a-line: #26352F; --a-text: #EEF1EA; --a-mute: #9DAFA6;
  --a-accent: var(--lull-accent, #FF6A3D); --a-accent-ink: #1A0B05; --a-rem: #F2C66D; --a-light: #8DB8A6; --a-deep: #3F7A68; --a-awake: #FF6A3D; --a-sel: #2C3B35;
  height: 100%; display: flex; flex-direction: column; background: var(--a-bg); color: var(--a-text);
  font-family: var(--f-sans); font-size: 3.6cqw; line-height: 1.3; letter-spacing: -.01em; text-align: left; font-variant-numeric: tabular-nums;
}
.app--light { --a-bg: #F3F0E8; --a-surface: #FFFFFF; --a-line: #E3DED2; --a-text: #10201A; --a-mute: #5B6B63; --a-deep: #2F6B59; --a-rem: #E0A93B; --a-sel: #10201A; }
.app--dim { --a-bg: #060A08; --a-surface: #0E1512; --a-line: #18221E; --a-text: #9AA79F; --a-mute: #66736C; }
.app--dawn { background: linear-gradient(180deg, #1A120E 0%, #4E2415 28%, #B34A26 55%, #F28A55 78%, #FFD2A2 100%); --a-text: #FFF4EA; --a-mute: rgb(255 244 234 / .8); }
:where(.app) :where(button) { all: unset; box-sizing: border-box; cursor: pointer; }
.app__tabs[hidden] { display: none; }
.app button:focus-visible { outline: .6cqw solid var(--a-accent); outline-offset: .6cqw; }
.app__status { display: flex; justify-content: space-between; align-items: center; height: 13.5cqw; padding: 5cqw 7.5cqw 0 9cqw; font-size: 3.7cqw; font-weight: 600; flex: none; }
.app__icons svg { width: 15cqw; height: auto; }
.app__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2.8cqw; padding: 3cqw 6cqw 4cqw; overflow: hidden; }
.app__body--center { align-items: center; text-align: center; justify-content: safe center; }
.app__tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 2.6cqw 3cqw 6.5cqw; border-top: 1px solid var(--a-line); font-size: 2.55cqw; color: var(--a-mute); }
.app__tab { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.app__tab svg { width: 5.6cqw; height: 5.6cqw; }
.app__tab.is-active { color: var(--a-text); }
.app__tab.is-active svg { color: var(--a-accent); }
.app .ico { width: 4.6cqw; height: 4.6cqw; }
.app .ico--in { width: 3.8cqw; height: 3.8cqw; }
.app-label { font-family: var(--f-mono); font-size: 2.6cqw; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--a-mute); }
.app-lead { font-size: 4.4cqw; color: var(--a-mute); }
.app-title { font-size: 6.4cqw; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.app-title--center { text-align: center; }
.app-sub { font-size: 3.3cqw; color: var(--a-mute); display: flex; align-items: center; gap: 1.6cqw; justify-content: center; }
.app-sub--left { display: block; text-align: left; line-height: 1.35; }
.app-sub--wide { display: block; max-width: 70cqw; line-height: 1.35; }
.app-note { font-size: 3cqw; color: var(--a-mute); margin-top: auto; line-height: 1.35; }
.app-hero-time { margin-top: 0; }
.app-hero-time b { display: block; font-size: 19cqw; font-weight: 600; letter-spacing: -.035em; line-height: .88; }
.app-arc { position: relative; width: 74cqw; align-self: center; }
.arc { width: 100%; height: auto; }
.arc__seg { fill: none; stroke: var(--a-line); stroke-width: 9; stroke-linecap: round; transition: stroke .5s var(--ease); }
.arc__seg.is-on { stroke: var(--a-accent); }
.arc__seg.is-on:nth-child(odd) { stroke: color-mix(in srgb, var(--a-accent) 78%, var(--a-rem)); }
.app-arc__note { position: absolute; left: 0; right: 0; bottom: .5cqw; text-align: center; font-size: 3cqw; color: var(--a-mute); }
.app-opts { display: grid; gap: 1.6cqw; }
.app-opt { display: flex; align-items: center; gap: 2.4cqw; padding: 2.5cqw 3.4cqw; background: var(--a-surface); border-radius: 3.4cqw; border: .35cqw solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.app-opt.is-picked { border-color: var(--a-accent); }
.app-opt__time { font-size: 4.6cqw; font-weight: 600; letter-spacing: -.02em; }
.app-opt__meta { font-size: 3cqw; color: var(--a-mute); }
.app-opt__tag { margin-left: auto; background: var(--a-accent); color: var(--a-accent-ink); font-size: 2.5cqw; font-weight: 600; padding: .8cqw 2.2cqw; border-radius: 99px; }
.app-btn { display: flex; align-items: center; justify-content: center; gap: 2cqw; margin-top: auto; padding: 3.6cqw; border-radius: 99px; background: var(--a-accent); color: var(--a-accent-ink); font-weight: 600; font-size: 3.9cqw; text-align: center; width: 100%; }
.app-btn + .app-btn { margin-top: 0; }
.app-btn--ghost { background: transparent; color: var(--a-text); box-shadow: inset 0 0 0 .35cqw var(--a-line); }
.app--dawn .app-btn { background: #10201A; color: #FFF3E6; }
.app--dawn .app-btn--ghost { background: transparent; color: #10201A; box-shadow: inset 0 0 0 .35cqw rgb(16 32 26 / .35); }
.app-ring { position: relative; width: 50cqw; align-self: center; margin-block: 1cqw; }
.app-ring svg, .app-score__ring svg { width: 100%; height: auto; transform: rotate(-90deg); }
.app-ring__bg { fill: none; stroke: var(--a-line); stroke-width: 8; }
.app-ring__fg { fill: none; stroke: var(--a-accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; transition: stroke-dasharray .6s var(--ease); }
.app-ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 3cqw; color: var(--a-mute); }
.app-ring__txt b { font-size: 13cqw; font-weight: 600; letter-spacing: -.035em; color: var(--a-text); line-height: 1; }
.app-checks { display: grid; gap: 1.8cqw; }
.app-check { display: flex; align-items: center; gap: 2.6cqw; padding: 2.8cqw 3.2cqw; background: var(--a-surface); border-radius: 3.4cqw; font-size: 3.4cqw; width: 100%; }
.app-check__box { width: 5.2cqw; height: 5.2cqw; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 .4cqw var(--a-mute); display: grid; place-items: center; color: transparent; transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s; }
.app-check__box svg { width: 3.6cqw; height: 3.6cqw; }
.app-check__ico { color: var(--a-mute); display: grid; }
.app-check.is-done .app-check__box { background: var(--a-accent); box-shadow: none; color: var(--a-accent-ink); }
.app-check.is-done .app-check__txt { color: var(--a-mute); }
.app-orb { position: relative; width: 60cqw; aspect-ratio: 1; display: grid; place-items: center; margin: 3cqw 0 2cqw; }
.app-orb span { position: absolute; border-radius: 50%; }
.app-orb span:nth-child(1) { inset: 0; background: radial-gradient(circle, rgb(255 106 61 / .14), transparent 70%); box-shadow: inset 0 0 0 .3cqw rgb(255 106 61 / .28); }
.app-orb span:nth-child(2) { inset: 13%; box-shadow: inset 0 0 0 .3cqw rgb(255 106 61 / .4); }
.app-orb span:nth-child(3) { inset: 26%; background: radial-gradient(circle at 36% 30%, #FFC4A6, var(--a-accent) 72%); box-shadow: 0 0 10cqw rgb(255 106 61 / .45); }
.app-orb__n { position: relative; font-size: 11cqw; font-weight: 600; color: var(--a-accent-ink); letter-spacing: -.04em; }
.app-now { display: grid; grid-template-columns: auto 1fr; gap: 2.4cqw 3cqw; align-items: center; background: var(--a-surface); border-radius: 4cqw; padding: 3.4cqw; }
.app-now__play { width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--a-accent); color: var(--a-accent-ink); display: grid; place-items: center; }
.app-now__play svg { width: 4.4cqw; height: 4.4cqw; }
.app-now__txt { display: grid; gap: .4cqw; font-size: 3.5cqw; }
.app-now__txt b { font-weight: 600; }
.app-now__meta { font-size: 2.9cqw; color: var(--a-mute); }
.app-wave { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: .9cqw; height: 8cqw; }
.app-wave i { flex: 1; height: calc(var(--b) * 100%); background: var(--a-accent); opacity: .75; border-radius: 1cqw; transform-origin: bottom; }
.app-sounds { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.app-sound { display: flex; flex-direction: column; gap: 2.2cqw; min-height: 25cqw; padding: 3.2cqw; background: var(--a-surface); border-radius: 4cqw; font-size: 3.3cqw; box-shadow: inset 0 0 0 .35cqw transparent; transition: box-shadow .3s var(--ease); }
.app-sound svg { width: 6cqw; height: 6cqw; color: var(--a-mute); }
.app-sound.is-on { box-shadow: inset 0 0 0 .35cqw var(--a-accent); }
.app-sound.is-on svg { color: var(--a-accent); }
.app-sound__name { margin-top: auto; }
.app-sound__vol { position: relative; height: 1.1cqw; border-radius: 1cqw; background: var(--a-line); overflow: hidden; }
.app-sound__vol::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--a-accent); border-radius: inherit; }
.app-seg { display: flex; background: var(--a-surface); border-radius: 99px; padding: 1cqw; font-size: 3cqw; }
.app-seg > span, .app-seg > button { flex: 1; text-align: center; padding: 2cqw 1cqw; border-radius: 99px; color: var(--a-mute); }
.app-seg .is-on { background: var(--a-sel); color: #EEF1EA; }
.app--light .app-seg .is-on { color: #F3F0E8; }
.app-seg--sm { width: 38cqw; }
.app-clock-xl { font-size: 23cqw; font-weight: 500; letter-spacing: -.06em; line-height: 1; margin: 2cqw 0 1cqw; }
.app-slide { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 3cqw; padding: 1.6cqw; border-radius: 99px; background: var(--a-surface); color: var(--a-mute); font-size: 3.3cqw; }
.app-slide__knob { width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--a-line); display: grid; place-items: center; color: var(--a-text); }
.app-score { display: flex; justify-content: space-between; align-items: center; }
.app-score__big { display: grid; font-size: 3.3cqw; color: var(--a-mute); }
.app-score__big b { font-size: 12cqw; font-weight: 600; letter-spacing: -.05em; color: var(--a-text); line-height: 1; }
.app-score__ring { position: relative; width: 21cqw; display: grid; place-items: center; }
.app-score__ring > b { position: absolute; font-size: 6.2cqw; font-weight: 600; }
.app-hyp { background: var(--a-surface); border-radius: 4cqw; padding: 3cqw 3cqw 2.2cqw; }
.hyp { width: 100%; height: 29cqw; }
.hyp__grid line { stroke: var(--a-line); stroke-width: .6; }
.hyp__line { fill: none; stroke: var(--a-text); stroke-opacity: .22; stroke-width: .8; }
.hyp__deep { fill: var(--a-deep); } .hyp__light { fill: var(--a-light); } .hyp__rem { fill: var(--a-rem); } .hyp__awake { fill: var(--a-awake); }
.app-hyp__axis, .app-energy__axis { display: flex; justify-content: space-between; margin-top: 1.4cqw; font-family: var(--f-mono); font-size: 2.5cqw; color: var(--a-mute); }
.app-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw 4cqw; }
.app-stage { display: grid; grid-template-columns: 1fr auto; gap: 1cqw; font-size: 3cqw; }
.app-stage b { font-weight: 600; }
.app-stage i { grid-column: 1 / -1; position: relative; height: 1.3cqw; border-radius: 1cqw; background: var(--a-line); overflow: hidden; }
.app-stage i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: inherit; }
.app-stage--deep { --c: var(--a-deep); } .app-stage--light { --c: var(--a-light); } .app-stage--rem { --c: var(--a-rem); } .app-stage--awake { --c: var(--a-awake); }
.week { position: relative; display: flex; align-items: flex-end; gap: 2.4cqw; height: 40cqw; margin: 2cqw 0 5.5cqw; }
.week__col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.week__bar { width: 100%; height: var(--h); background: var(--a-deep); border-radius: 2cqw 2cqw 1cqw 1cqw; }
.week__bar.is-short { background: var(--a-accent); }
.week__day { position: absolute; top: 100%; left: 0; right: 0; margin-top: 1.4cqw; text-align: center; font-family: var(--f-mono); font-size: 2.6cqw; color: var(--a-mute); }
.week__target { position: absolute; left: 0; right: 0; bottom: var(--h); border-top: .35cqw dashed var(--a-mute); opacity: .7; z-index: 1; }
.app-card { display: grid; gap: .8cqw; padding: 3.2cqw 3.6cqw; background: var(--a-surface); border-radius: 4cqw; }
.app-card__k { font-family: var(--f-mono); font-size: 2.5cqw; letter-spacing: .08em; text-transform: uppercase; color: var(--a-mute); }
.app-card__v { font-size: 5.2cqw; font-weight: 600; letter-spacing: -.03em; }
.app-card__t { font-size: 3.1cqw; color: var(--a-mute); line-height: 1.35; }
.app-card--row { display: flex; gap: 2.6cqw; align-items: flex-start; }
.app-card--row .ico { width: 5.6cqw; height: 5.6cqw; color: var(--a-accent); }
.app--light .app-card--row .ico { color: #C4491E; }
.app-chips { display: flex; flex-wrap: wrap; gap: 1.8cqw; }
.app-chip { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 2cqw 3cqw; border-radius: 99px; background: var(--a-surface); box-shadow: inset 0 0 0 .3cqw var(--a-line); font-size: 3.1cqw; transition: background .3s var(--ease), color .3s; }
.app-chip .ico { width: 3.8cqw; height: 3.8cqw; }
.app-chip.is-on { background: var(--a-text); color: var(--a-bg); box-shadow: none; }
.app-insight { margin-top: auto; background: #10201A; color: #EEF1EA; border-radius: 4cqw; padding: 4cqw; }
.app-insight__k { font-family: var(--f-mono); font-size: 2.5cqw; letter-spacing: .08em; text-transform: uppercase; color: #FF9B78; }
.app-insight p { margin-top: 1.4cqw; font-size: 4cqw; line-height: 1.3; }
.app-insight b { color: #FFB08F; font-weight: 600; }
.app-energy { background: var(--a-surface); border-radius: 4cqw; padding: 3cqw; }
.energy { width: 100%; height: auto; overflow: visible; }
.energy__dip { fill: var(--a-rem); opacity: .2; }
.energy__line { fill: none; stroke: var(--a-deep); stroke-width: 2.4; stroke-linecap: round; }
.energy__now { stroke: var(--a-accent); stroke-width: 1.4; stroke-dasharray: 2 3; }
.energy__dot { fill: var(--a-accent); }
.app--light .energy__now { stroke: #C4491E; } .app--light .energy__dot { fill: #C4491E; }
.app-nav { display: inline-flex; align-items: center; gap: .6cqw; color: var(--a-accent); font-size: 3.3cqw; }
.app-nav .ico { width: 4.2cqw; height: 4.2cqw; }
.app-wheel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 4cqw; padding: 1cqw 14cqw; text-align: center; font-size: 6.4cqw; color: var(--a-mute); opacity: .9;
  background: linear-gradient(transparent 34%, var(--a-surface) 34% 66%, transparent 66%); border-radius: 4cqw; }
.app-wheel span { padding: 1cqw 0; opacity: .45; }
.app-wheel .is-on { font-size: 10cqw; font-weight: 600; color: var(--a-text); opacity: 1; letter-spacing: -.04em; }
.app-wheel--big { padding-block: 3cqw; }
.app-setting { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 2.8cqw 0; border-bottom: .3cqw solid var(--a-line); font-size: 3.5cqw; }
.app-setting__v { display: inline-flex; align-items: center; gap: 1cqw; color: var(--a-mute); }
.app-setting__v .ico { width: 3.6cqw; height: 3.6cqw; }
.app-switch { position: relative; width: 11cqw; height: 6.4cqw; border-radius: 99px; background: var(--a-line); }
.app-switch::after { content: ''; position: absolute; top: .7cqw; left: .7cqw; width: 5cqw; height: 5cqw; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.app-switch.is-on { background: var(--a-accent); }
.app-switch.is-on::after { transform: translateX(4.6cqw); }
.app-dots { display: flex; gap: 1.4cqw; margin-bottom: 2cqw; }
.app-dots i { width: 6cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--a-line); }
.app-dots i.is-on { background: var(--a-accent); }
.app-days { display: flex; gap: 1.5cqw; }
.app-day { flex: 1; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--a-surface); color: var(--a-mute); font-size: 3.2cqw; }
.app-day.is-on { background: var(--a-accent); color: var(--a-accent-ink); font-weight: 600; }

/* live motion inside screens (off with reduced motion) */
@keyframes orb { 0% { transform: scale(.74); } 21% { transform: scale(1); } 58% { transform: scale(1); } 100% { transform: scale(.74); } }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.app-orb span { animation: orb 19s var(--ease) infinite; }
.app-orb span:nth-child(2) { animation-delay: .15s; } .app-orb span:nth-child(3) { animation-delay: .3s; }
.app-wave i { animation: wave 1.6s ease-in-out infinite; }
.app-wave i:nth-child(3n) { animation-duration: 2.1s; } .app-wave i:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -.4s; }

/* ---------- 9. Signature: live Lull phone (js/lull-phone.js) ---------- */
.lull { display: grid; justify-items: center; gap: 1rem; }
.lull__caption { max-width: 22rem; text-align: center; font-size: .9375rem; line-height: 1.4; color: #D5DDD7; min-height: 2.8em; }
.lull__caption b { color: #fff; font-weight: 600; }
.lull__scrub { width: min(100%, 21rem); display: grid; gap: .45rem; }
.lull__scrub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .8125rem; color: var(--fog); }
.lull__scrub-head output { font-family: var(--f-mono); color: #EEF1EA; }
.lull__now { background: none; border: 0; padding: .2rem .1rem; color: var(--ember-soft); font-size: .8125rem; text-decoration: underline; text-underline-offset: .2em; }
.lull__now[hidden] { display: none; }
.lull__range { -webkit-appearance: none; appearance: none; width: 100%; height: 2.25rem; background: transparent; margin: 0; }
.lull__range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #22324B 0%, #F2C66D 26%, #A9C6B8 50%, #FF6A3D 77%, #22324B 100%); }
.lull__range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #22324B 0%, #F2C66D 26%, #A9C6B8 50%, #FF6A3D 77%, #22324B 100%); }
.lull__range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -.5625rem; border-radius: 50%; background: #EEF1EA; border: 4px solid var(--pine-950); box-shadow: 0 0 0 1px #EEF1EA; }
.lull__range::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 50%; background: #EEF1EA; border: 4px solid var(--pine-950); box-shadow: 0 0 0 1px #EEF1EA; }
.lull__range:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.lull__ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .6875rem; color: var(--fog); }
.lull .app__tab { background: none; }
.lull .app__tab:hover { color: var(--a-text); }
.lull .app-opt, .lull .app-check, .lull .app-sound, .lull .app-chip { cursor: pointer; }
.lull .app-opt:hover { background: color-mix(in srgb, var(--a-surface) 80%, var(--a-text)); }
.lull [data-view] { display: none; }
.lull [data-view].is-current { display: flex; }
.lull .app__views { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lull .app__views > .app__body { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(2cqw); } to { opacity: 1; transform: none; } }
.lull.is-static .lull__scrub { display: none; }

/* ---------- 10. Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section__head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 2rem 4rem; }
.section__head--center { justify-items: center; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
@media (max-width: 899px) { .section__head--split { grid-template-columns: 1fr; } }
.section__more { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; gap: 1rem; flex-wrap: wrap; }

/* marquee (press) */
.marquee { overflow: hidden; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-block: 1px solid var(--line-dark); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__label { text-align: center; margin-bottom: 1.75rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); padding-right: clamp(3rem, 6vw, 5.5rem); }
.marquee__group svg { height: 1.9rem; width: auto; color: #C9D2CC; opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* manifesto (words light up on scroll) */
.manifesto__text { font-size: clamp(2rem, 4.6vw, 4.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; max-width: 19ch; text-wrap: balance; }
.manifesto__text .sw { transition: color .3s; }
.js .manifesto__text .sw { color: rgb(238 241 234 / .2); }
.js .manifesto__text .sw.is-lit { color: #EEF1EA; }
.manifesto__text em { font-style: normal; color: var(--ember-soft); }
.js .manifesto__text em .sw.is-lit { color: var(--ember); }
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); gap: 3rem; align-items: end; }
.manifesto__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; }
.manifesto__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .manifesto__grid { grid-template-columns: 1fr; } .manifesto__photo { max-width: 24rem; } }

/* sticky phone scroller: one night, four moves */
.scroller { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 7vw, 8rem); }
.scroller__steps { list-style: none; }
.scroller__step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; padding-block: 2rem; max-width: 34rem; opacity: .32; transition: opacity .5s var(--ease); }
.scroller__step.is-active { opacity: 1; }
.no-js .scroller__step, .reduced .scroller__step { opacity: 1; }
.scroller__num { font-family: var(--f-mono); font-size: .875rem; color: var(--ember-soft); display: flex; gap: .75rem; align-items: center; }
.scroller__num::after { content: ''; width: 3rem; height: 1px; background: currentColor; }
.scroller__step .h2 { font-size: clamp(2.75rem, 6.8vw, 7.25rem); }
.scroller__stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.scroller__phone { position: relative; }
.scroller__glow { position: absolute; inset: -18% -40%; z-index: -1; background: radial-gradient(closest-side, rgb(255 106 61 / .22), transparent); filter: blur(10px); transition: background .6s var(--ease); }
.scroller__screens { position: absolute; inset: 0; }
.scroller__screens .phone__inner { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: scale(1.03); }
.scroller__screens .phone__inner.is-current { opacity: 1; transform: none; }
.scroller__mobile { display: none; }
@media (max-width: 1023px) {
  .scroller { grid-template-columns: 1fr; }
  .scroller__stage { display: none; }
  .scroller__step { min-height: 0; opacity: 1; padding-block: 2.5rem; max-width: none; }
  .scroller__mobile { display: flex; justify-content: center; padding-top: 1.5rem; }
}

/* feature cards (CMS: features) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); text-decoration: none; isolation: isolate; transition: transform var(--d-hover) var(--ease); }
.feature-card__media { position: relative; height: 20rem; overflow: hidden; display: grid; place-items: end center; }
.feature-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(10 18 15 / .45)); }
.feature-card__media .phone { --phone-w: 9.5rem; margin-bottom: -9rem; z-index: 1; transition: transform var(--d-hover) var(--ease); }
.feature-card__body { display: grid; gap: .75rem; padding: 1.75rem 1.75rem 2rem; margin-top: auto; }
.feature-card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.feature-card__arrow { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--pine-950); color: #EEF1EA; transition: background var(--d-hover) var(--ease), transform var(--d-hover) var(--ease); }
.feature-card__arrow svg { width: 1.1rem; height: 1.1rem; }
.feature-card:hover .feature-card__media > img { transform: scale(1.05); }
.feature-card:hover .phone { transform: translateY(-.75rem); }
.feature-card:hover .feature-card__arrow { background: var(--ember); color: var(--pine-950); transform: rotate(-45deg); }
@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; } .feature-card { min-height: 0; } }

/* screens gallery (horizontal rail) */
.rail { display: flex; gap: clamp(1.5rem, 3vw, 3rem); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2rem var(--gutter) 2.5rem; scrollbar-width: thin; scrollbar-color: var(--pine-700) transparent; }
.rail__item { scroll-snap-align: center; display: grid; gap: 1.25rem; justify-items: center; flex: none; }
.rail__item figcaption { text-align: center; display: grid; gap: .25rem; max-width: 16rem; }
.rail__item:nth-child(even) { padding-top: 3rem; }
.rail__hint { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rail__btns { display: flex; gap: .5rem; }
.rail__btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #EEF1EA; display: grid; place-items: center; transition: background var(--d-hover) var(--ease); }
.rail__btn:hover { background: rgb(238 241 234 / .1); }
.rail__btn svg { width: 1.1rem; height: 1.1rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-paper); }
.stat { padding: 2.5rem 2rem 0 0; display: grid; gap: .75rem; align-content: start; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid var(--line-paper); }
.stat__n { font-size: clamp(4rem, 9vw, 8.75rem); font-weight: 600; letter-spacing: -.06em; line-height: .85; }
.stat__n small { font-size: .4em; letter-spacing: -.03em; margin-left: .08em; }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-paper); } .stat { padding-bottom: 2rem; } }

/* photo mosaic: real nights */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(8rem, 12vw, 11rem); gap: 1rem; }
.mosaic__item { position: relative; border-radius: var(--r-md); overflow: hidden; margin: 0; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__item figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: .75rem; color: #EEF1EA; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.mosaic__item:nth-child(1) { grid-column: 1 / 6; grid-row: span 3; }
.mosaic__item:nth-child(2) { grid-column: 6 / 9; grid-row: span 2; }
.mosaic__item:nth-child(3) { grid-column: 9 / 13; grid-row: span 2; }
.mosaic__item:nth-child(4) { grid-column: 6 / 10; grid-row: span 2; }
.mosaic__item:nth-child(5) { grid-column: 10 / 13; grid-row: span 2; }
.mosaic__item:nth-child(6) { grid-column: 1 / 6; grid-row: span 1; }
@media (max-width: 767px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 11rem; }
  .mosaic__item:nth-child(n) { grid-column: auto; grid-row: span 1; }
  .mosaic__item:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
}

/* reviews (CMS: reviews) */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.review { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem; border-radius: var(--r-md); background: var(--pine-900); border: 1px solid var(--line-dark); transition: transform var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease); }
.review:hover { transform: translateY(-4px); border-color: rgb(238 241 234 / .24); }
.review__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.review__text { color: #D5DDD7; }
.review__who { margin-top: auto; display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); }
.review__who img, .review__initials { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; }
.review__initials { display: grid; place-items: center; background: var(--pine-700); font-weight: 600; }
.review__name { font-weight: 600; line-height: 1.2; }
.review__meta { font-size: .875rem; color: var(--fog); }
.review--photo { padding: 0; overflow: hidden; }
.review--photo .review__img { aspect-ratio: 4 / 3; overflow: hidden; }
.review--photo .review__img img { width: 100%; height: 100%; object-fit: cover; }
.review--photo .review__in { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem 2rem 2rem; flex: 1; }
@media (max-width: 1023px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .reviews { grid-template-columns: 1fr; } }
.wall { columns: 3 20rem; column-gap: 1rem; }
.wall .review { break-inside: avoid; margin-bottom: 1rem; }
.score-band { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; }
.score-band__n { font-size: clamp(5rem, 12vw, 10rem); font-weight: 600; letter-spacing: -.06em; line-height: .85; }

/* pricing */
.billing { display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--paper-2); gap: .2rem; }
.billing button { border: 0; background: transparent; padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--slate); transition: background var(--d-hover) var(--ease), color var(--d-hover); }
.billing button[aria-pressed="true"] { background: var(--pine-950); color: #EEF1EA; }
.billing__save { font-family: var(--f-mono); font-size: .72rem; margin-left: .35rem; color: var(--ember-ink); }
.billing button[aria-pressed="true"] .billing__save { color: var(--ember-soft); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.plan { display: flex; flex-direction: column; gap: 1.5rem; padding: 2.25rem 2rem 2rem; border-radius: var(--r-md); background: var(--paper-3); border: 1px solid var(--line-paper); }
.plan--main { background: var(--pine-950); color: #EEF1EA; border-color: var(--pine-950); position: relative; }
.plan--main .muted { color: var(--fog); }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plan__name { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.plan__price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan__price b { font-size: clamp(3rem, 4.8vw, 4.25rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.plan__list { list-style: none; display: grid; gap: .7rem; font-size: .9875rem; }
.plan__list li { display: flex; gap: .65rem; align-items: flex-start; }
.plan__list svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .2em; color: #2C6352; }
.plan--main .plan__list svg { color: var(--ember); }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr; max-width: 34rem; } }

/* FAQ accordion */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem clamp(3rem, 8vw, 8rem); }
.faq__list { border-top: 1px solid var(--line-paper); }
.acc { border-bottom: 1px solid var(--line-paper); }
.night .faq__list, .night .acc { border-color: var(--line-dark); }
.acc summary { list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.5rem 0; cursor: pointer; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); font-weight: 600; letter-spacing: -.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc__icon { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; border: 1px solid currentColor; opacity: .5; position: relative; transition: transform var(--d-hover) var(--ease), opacity var(--d-hover); }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.5px; margin: -.75px 0 0 -.4rem; background: currentColor; }
.acc__icon::after { transform: rotate(90deg); transition: transform var(--d-hover) var(--ease); }
.acc[open] .acc__icon { opacity: 1; transform: rotate(180deg); }
.acc[open] .acc__icon::after { transform: rotate(0); }
.acc summary:hover .acc__icon { opacity: 1; }
.acc__body { padding: 0 3.5rem 1.75rem 0; color: var(--slate); max-width: 44rem; }
.night .acc__body { color: var(--fog); }
@media (max-width: 899px) { .faq { grid-template-columns: 1fr; } .acc__body { padding-right: 0; } }

/* posts (CMS: posts) */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
.post-card { display: grid; gap: 1rem; text-decoration: none; align-content: start; }
.post-card__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__meta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.post-card__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.post-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
.post-card--wide .post-card__img { aspect-ratio: 16 / 10; }
.post-card--wide .post-card__title { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -.04em; }
.post-card--wide .post-card__in { display: grid; gap: 1.25rem; }
@media (max-width: 1023px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .posts { grid-template-columns: 1fr; } .post-card--wide { grid-template-columns: 1fr; } }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter { border: 1px solid var(--line-paper); background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: background var(--d-hover) var(--ease), color var(--d-hover); }
.filter:hover { background: rgb(10 18 15 / .06); }
.filter[aria-pressed="true"] { background: var(--pine-950); color: #EEF1EA; border-color: var(--pine-950); }

/* final CTA with QR */
.cta { padding: .75rem; }
.cta__card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); background: var(--ember); color: var(--pine-950); padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; color-scheme: light; }
.cta__title { max-width: 9ch; }
.cta__copy { display: grid; gap: 1.75rem; }
.cta__copy .lead { color: #3A1407; }
.cta__qr { display: grid; gap: .9rem; justify-items: center; background: var(--paper-3); border-radius: var(--r-md); padding: 1.25rem 1.25rem 1rem; }
.cta__qr svg { width: 11rem; height: 11rem; }
.cta__qr p { font-size: .875rem; text-align: center; max-width: 12rem; line-height: 1.35; }
.cta__phone { position: absolute; right: clamp(15rem, 20vw, 18rem); bottom: -9rem; z-index: -1; rotate: 8deg; }
.cta .store { background: var(--pine-950); color: #EEF1EA; }
.cta .store:hover { background: var(--pine-800); }
.cta .label { color: #4A1A08; }
@media (max-width: 1199px) { .cta__phone { display: none; } }
@media (max-width: 767px) { .cta__card { grid-template-columns: 1fr; } .cta__qr { justify-self: start; } }

/* form */
.form { display: grid; gap: 1rem; }
.form__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.field { display: grid; gap: .45rem; flex: 1 1 14rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: .8rem 1.1rem; border-radius: .9rem; border: 1px solid var(--line-paper); background: var(--paper-3); color: var(--pine-950); font-size: 1rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ember-ink); outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.form__msg { font-size: .9375rem; min-height: 1.4em; }
.form__msg.is-error { color: #9E1F17; }
.form__msg.is-ok { color: #1F5C4A; font-weight: 600; }
.night .field input, .night .field textarea, .night .field select { background: var(--pine-900); border-color: var(--line-dark); color: #EEF1EA; }
.night .form__msg.is-error { color: #FF9B8F; } .night .form__msg.is-ok { color: var(--moss); }

/* footer */
.site-footer { padding: clamp(4rem, 8vw, 7rem) 0 1.5rem; overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.site-footer__intro { display: grid; gap: 1.5rem; align-content: start; max-width: 24rem; }
.site-footer__col h2 { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); margin-bottom: 1.1rem; }
.site-footer__col ul { list-style: none; display: grid; gap: .6rem; }
.site-footer__col a { text-decoration: none; color: #DDE3DD; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.footer-mark { margin-top: clamp(3rem, 7vw, 6rem); font-size: clamp(7rem, 30vw, 30rem); gap: 2rem; flex-wrap: wrap; font-weight: 700; letter-spacing: -.075em; line-height: .74; color: #EEF1EA; display: flex; justify-content: space-between; align-items: flex-end; user-select: none; }
.footer-mark__word { display: block; line-height: .9; padding-bottom: .04em; }
.footer-mark__dot { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--ember); margin-left: .02em; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .875rem; color: var(--fog); }
.site-footer__base a { color: inherit; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__intro { grid-column: 1 / -1; } }

/* ---------- 11. Inner pages ---------- */
.page-head { padding: clamp(9rem, 16vw, 13rem) 0 clamp(3.5rem, 7vw, 6rem); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.page-head__crumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head__crumbs a { text-decoration: none; }
.page-head__crumbs a:hover { text-decoration: underline; }
@media (max-width: 899px) { .page-head__grid { grid-template-columns: 1fr; } }

/* feature detail */
.fd-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem clamp(3rem, 8vw, 8rem); align-items: center; }
.fd-hero__copy { display: grid; gap: 1.5rem; }
.fd-hero__stat { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.fd-hero__stat b { font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.fd-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fd-point { padding: 2rem; border-radius: var(--r-md); background: var(--paper-3); display: grid; gap: .9rem; align-content: start; }
.fd-point__n { font-family: var(--f-mono); color: var(--ember-ink); font-size: .875rem; }
.fd-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; }
.fd-photo img { width: 100%; height: 100%; object-fit: cover; }
.fd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fd-nav a { display: grid; gap: .5rem; padding: 2rem; border-radius: var(--r-md); border: 1px solid var(--line-dark); text-decoration: none; transition: background var(--d-hover) var(--ease); }
.fd-nav a:hover { background: var(--pine-900); }
.fd-nav a:last-child { text-align: right; }
@media (max-width: 1023px) { .fd-hero { grid-template-columns: 1fr; justify-items: start; } .fd-points { grid-template-columns: 1fr; } .fd-photo { aspect-ratio: 4 / 3; } }
@media (max-width: 639px) { .fd-nav { grid-template-columns: 1fr; } .fd-nav a:last-child { text-align: left; } }

/* feature list page: alternating rows */
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-dark); }
.frow__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center; }
.frow__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frow__media::after { content: ''; position: absolute; inset: 0; background: rgb(10 18 15 / .35); }
.frow__media .phone { --phone-w: clamp(10rem, 15vw, 13.5rem); z-index: 1; margin-top: 30%; }
.frow__copy { display: grid; gap: 1.25rem; align-content: center; }
.frow:nth-child(even) .frow__media { order: 2; }
@media (max-width: 899px) { .frow { grid-template-columns: 1fr; } .frow:nth-child(even) .frow__media { order: 0; } }

/* article (post, help, legal) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42rem) minmax(0, 1fr); }
.article > * { grid-column: 2; }
.article__cover { grid-column: 1 / -1; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: clamp(3rem, 6vw, 5rem); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.1875rem; line-height: 1.65; display: grid; gap: 1.4rem; }
.prose h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; margin-top: 1.5rem; }
.prose blockquote { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; padding-left: 1.5rem; border-left: 3px solid var(--ember-ink); margin-block: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .6rem; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; gap: .75rem; }
.prose ol.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.25rem; background: var(--paper-2); border-radius: var(--r-sm); }
.prose ol.steps li::before { content: counter(s); width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--pine-950); color: #EEF1EA; font-weight: 600; font-size: .9375rem; }
.prose .note { padding: 1.25rem 1.5rem; background: #F6E3D3; border-radius: var(--r-sm); font-size: 1.0625rem; }
.article__author { display: flex; align-items: center; gap: 1rem; padding-block: 1.5rem; margin-top: 3rem; border-top: 1px solid var(--line-paper); }
.article__author img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--ember); transform-origin: 0 50%; transform: scaleX(0); }
.aside-card { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem; border-radius: var(--r-md); background: var(--pine-950); color: #EEF1EA; margin-top: 2.5rem; text-decoration: none; }
.aside-card .phone { --phone-w: 6.5rem; }
.aside-card:hover .btn { --bg: #FF855F; }

/* help centre */
.help-search { position: relative; max-width: 40rem; }
.help-search input { width: 100%; min-height: 4rem; padding: 1rem 1.25rem 1rem 3.4rem; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--pine-900); color: #EEF1EA; font-size: 1.0625rem; }
.help-search svg { position: absolute; left: 1.25rem; top: 50%; translate: 0 -50%; width: 1.3rem; height: 1.3rem; color: var(--fog); }
.help-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.help-cat { display: grid; gap: 1rem; padding: 1.75rem; border-radius: var(--r-md); background: var(--paper-3); align-content: start; }
.help-cat ul { list-style: none; display: grid; gap: .6rem; }
.help-cat a { text-decoration: none; }
.help-cat a:hover { text-decoration: underline; }
.help-cat__count { font-family: var(--f-mono); font-size: .8rem; color: var(--slate); }
.help-results { list-style: none; display: grid; gap: .5rem; margin-top: 1.5rem; max-width: 40rem; }
.help-results a { display: block; padding: 1rem 1.25rem; border-radius: var(--r-sm); background: var(--pine-900); text-decoration: none; }
.help-results a:hover { background: var(--pine-800); }
.help-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem clamp(3rem, 7vw, 7rem); }
.help-side { position: sticky; top: 7rem; align-self: start; display: grid; gap: 1.5rem; }
.help-side ul { list-style: none; display: grid; gap: .35rem; }
.help-side a { display: block; padding: .45rem .75rem; border-radius: .6rem; text-decoration: none; font-size: .9375rem; }
.help-side a:hover { background: var(--paper-2); }
.help-side a[aria-current="page"] { background: var(--pine-950); color: #EEF1EA; }
@media (max-width: 1023px) { .help-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-layout { grid-template-columns: 1fr; } .help-side { position: static; } }
@media (max-width: 559px) { .help-cats { grid-template-columns: 1fr; } }
.rate-article { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-paper); }

/* changelog (CMS: changelog) */
.releases { list-style: none; display: grid; }
.release { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem 3rem; padding-block: 3rem; border-top: 1px solid var(--line-dark); }
.release__meta { display: grid; gap: .5rem; align-content: start; position: sticky; top: 7rem; }
.release__v { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.release__items { list-style: none; display: grid; gap: .9rem; margin-top: 1.5rem; }
.release__items li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; }
.release__links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 767px) { .release { grid-template-columns: 1fr; } .release__meta { position: static; } .release__items li { grid-template-columns: 1fr; gap: .35rem; } }

/* about */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.person { display: grid; gap: .9rem; align-content: start; }
.person__img { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; }
.person__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.2s var(--ease); }
.person:hover .person__img img { transform: scale(1.04); }
@media (max-width: 1023px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.value { padding: 2rem; border-radius: var(--r-md); background: var(--pine-900); display: grid; gap: .9rem; align-content: start; }
@media (max-width: 899px) { .values { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: center; }
.split__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split__img { aspect-ratio: 4 / 3; } }

/* press kit */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-paper); border: 1px solid var(--line-paper); border-radius: var(--r-md); overflow: hidden; }
.facts div { background: var(--paper-3); padding: 1.5rem; display: grid; gap: .4rem; }
.facts dd { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 767px) { .facts { grid-template-columns: 1fr 1fr; } }
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.asset { display: grid; gap: 1rem; padding: 1.25rem; border-radius: var(--r-md); background: var(--paper-2); }
.asset__preview { aspect-ratio: 16 / 10; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; }
.asset__preview--dark { background: var(--pine-950); color: #EEF1EA; }
.asset__preview--light { background: var(--paper-3); color: var(--pine-950); }
.asset__preview--ember { background: var(--ember); color: var(--pine-950); }
.asset__preview svg { width: 55%; height: auto; }
.asset__row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
@media (max-width: 899px) { .assets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .assets { grid-template-columns: 1fr; } }
.coverage { list-style: none; border-top: 1px solid var(--line-dark); }
.coverage li { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line-dark); }
.coverage svg { height: 1.6rem; width: auto; color: #DDE3DD; }
.coverage q { font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; quotes: '“' '”'; }
@media (max-width: 767px) { .coverage li { grid-template-columns: 1fr; } }

/* download */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem clamp(3rem, 8vw, 8rem); align-items: center; }
.dl-qr { display: grid; gap: 1rem; justify-items: start; }
.dl-qr__box { background: var(--paper-3); border-radius: var(--r-md); padding: 1.25rem; }
.dl-qr__box svg { width: 12rem; height: 12rem; }
.dl-phones { display: flex; gap: 1.5rem; align-items: flex-end; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.req div { padding: 1.75rem; border-radius: var(--r-md); background: var(--paper-2); display: grid; gap: .6rem; align-content: start; }
@media (max-width: 1023px) { .dl-hero { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .req { grid-template-columns: 1fr; } .dl-phones .phone:last-child { display: none; } }

/* 404: the alarm that went off in the wrong place */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 8rem 0 4rem; }
.lost__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem clamp(3rem, 8vw, 8rem); align-items: center; }
.lost__code { font-family: var(--f-mono); color: var(--ember-soft); }
.lost__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 899px) { .lost__grid { grid-template-columns: 1fr; justify-items: start; } }

/* legal */
.legal { display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: 3rem clamp(3rem, 8vw, 8rem); }
.legal__toc { position: sticky; top: 7rem; align-self: start; display: grid; gap: .35rem; list-style: none; }
.legal__toc a { display: block; padding: .4rem .7rem; border-radius: .6rem; text-decoration: none; font-size: .9375rem; }
.legal__toc a:hover { background: var(--paper-2); }
.legal .prose h2 { scroll-margin-top: 7rem; }
@media (max-width: 899px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* style guide */
.sg-block { display: grid; gap: 2rem; padding-block: 3.5rem; border-top: 1px solid var(--line-paper); }
.swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.swatch { display: grid; gap: .3rem; font-size: .875rem; }
.swatch__chip { height: 6.5rem; border-radius: var(--r-sm); border: 1px solid var(--line-paper); margin-bottom: .5rem; }
.swatch__hex { font-family: var(--f-mono); color: var(--slate); }
.type-rows { list-style: none; display: grid; }
.type-row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem 2rem; align-items: baseline; padding-block: 1.5rem; border-bottom: 1px solid var(--line-paper); }
.type-row__meta { display: grid; gap: .2rem; font-size: .875rem; }
.type-row__meta span { font-family: var(--f-mono); color: var(--slate); font-size: .8rem; }
.type-row__sample { overflow-wrap: anywhere; }
@media (max-width: 767px) { .type-row { grid-template-columns: 1fr; } }
.sg-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.5rem; border-radius: var(--r-md); }
.sg-row--dark { background: var(--pine-950); color: #EEF1EA; }
.sg-phones { display: flex; flex-wrap: wrap; gap: 2rem 1.5rem; padding: 2rem; border-radius: var(--r-md); background: var(--pine-950); justify-content: center; }
.sg-phones figure { display: grid; gap: .75rem; justify-items: center; color: #EEF1EA; }
.sg-phones figcaption { font-family: var(--f-mono); font-size: .75rem; color: var(--fog); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-paper); border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 36rem; }
.table th, .table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-paper); vertical-align: top; }
.table th { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); background: var(--paper-2); }
.table tr:last-child td { border-bottom: 0; }
.table code, .prose code { font-family: var(--f-mono); font-size: .88em; background: rgb(10 18 15 / .07); padding: .1em .35em; border-radius: .3em; }
.credits { list-style: none; display: grid; gap: 0; }
.credit { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: .5rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--line-paper); align-items: baseline; font-size: .9375rem; }
.credit__name { font-size: 1rem; font-weight: 600; }
.credit__detail { color: var(--slate); }
@media (max-width: 767px) { .credit { grid-template-columns: 1fr; } }

/* ---------- 12. Motion states (set by motion.js) ---------- */
.js [data-appear] { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.js [data-appear].is-in { opacity: 1; transform: none; filter: none; transition: opacity var(--d-appear) var(--ease), transform var(--d-appear) var(--ease), filter var(--d-appear) var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal] { clip-path: inset(100% 0 0 0 round var(--r-md)); }
.js [data-reveal] img { transform: scale(1.08); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-md)); transition: clip-path var(--d-reveal) var(--ease); }
.js [data-reveal].is-in img { transform: none; transition: transform 1.4s var(--ease); }
.js .w > span { transform: translateY(105%); }
.js [data-lines].is-in .w > span { transform: none; transition: transform var(--d-reveal) var(--ease); transition-delay: calc(var(--line, 0) * 70ms + var(--delay, 0s)); }

/* page transition (pine curtain wipe) */
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--pine-900); pointer-events: none; transform: translateY(100%); display: grid; place-items: center; }
.curtain svg { width: 3rem; height: 3rem; opacity: 0; transition: opacity .2s; }
.curtain.is-cover { transform: none; transition: transform .55s var(--ease); pointer-events: auto; }
.curtain.is-cover svg { opacity: 1; }
.curtain.is-leave { transform: translateY(-100%); transition: transform .7s var(--ease); }
@view-transition { navigation: auto; }

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-appear], .js [data-reveal], .js [data-reveal] img, .js .w > span { opacity: 1; transform: none; filter: none; clip-path: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 2rem; padding-right: 0; }
  .marquee { -webkit-mask: none; mask: none; }
  .curtain { display: none; }
  .js .manifesto__text .sw { color: #EEF1EA; }
  .js .manifesto__text em .sw { color: var(--ember); }
  @view-transition { navigation: none; }
}

/* ---------- 14. Late additions: billing states, phone sizes in cards ---------- */
.plans[data-billing-state="monthly"] .y, .plans[data-billing-state="yearly"] .m { display: none; }
.phone--card { --phone-w: 9.5rem; }
.phone--aside { --phone-w: 6.5rem; }
.feature-card__media .phone { --phone-w: 9.5rem; }
.footer-mark__aside { font-size: clamp(1.375rem, 2.4vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; max-width: 14ch; display: grid; gap: .9rem; padding-bottom: .4em; }
.footer-mark__aside b { color: var(--ember); font-weight: 600; }
.app-card--glass { width: 100%; margin-top: 1cqw; text-align: left; background: rgb(255 244 234 / .12); backdrop-filter: blur(6px); }
.app--dawn .app-card__t, .app--dawn .app-card__k { color: rgb(255 244 234 / .8); }
.cta .form { max-width: 26rem; }
.curtain { visibility: hidden; }
.curtain.is-cover, .curtain.is-leave { visibility: visible; }
.help-results a { color: #EEF1EA; }
.help-results .muted { color: var(--fog); }
.fd-nav a[data-sib="next"] { grid-column: 2; }
@media (max-width: 639px) { .fd-nav a[data-sib="next"] { grid-column: auto; } }
@media (max-width: 639px) { .footer-mark { font-size: 44vw; } }
.app--dawn .app-clock-xl { font-size: 20cqw; }
.aside-card .label--accent, .sg-row--dark .label--accent { color: var(--ember-soft); }
.aside-card .muted, .sg-row--dark .muted { color: var(--fog); }
.sg-row--dark .tag--new { color: var(--ember-soft); }
.sg-row--dark .tag--improved, .sg-row--dark .tag--free { color: var(--moss); }
.sg-row--dark .tag--fixed { color: var(--lamp); }
.table--compare { min-width: 0; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } }
.hero__grid { max-width: calc(var(--maxw) + 8rem); margin-inline: auto; }

/* ---------- 15. QA polish (26-sep-2026) ---------- */
/* display: a touch more leading so descenders (g, y) never touch the next line's ascenders */
.display { line-height: .9; }
.h2 { line-height: .94; }
h3, h4, .h3, .h4, .review__title { text-wrap: balance; }
p { text-wrap: pretty; }
/* footer wordmark: its glyph box used to hang over the © line and the aside */
.footer-mark { line-height: 1; align-items: flex-end; row-gap: 1.5rem; }
.footer-mark__word { line-height: .74; padding-bottom: 0; margin-bottom: -.02em; }
.footer-mark__aside { padding-bottom: .2em; }
@media (max-width: 767px) { .footer-mark { flex-direction: column; align-items: flex-start; } }
/* mosaic captions: a scrim so the mono caption reads on bright windows, and stacked on narrow tiles */
.mosaic__item::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgb(6 10 8 / .72)); pointer-events: none; }
.mosaic__item figcaption { z-index: 1; align-items: flex-end; }
.mosaic__item figcaption span:last-child { text-align: right; }
@media (max-width: 767px) {
  .mosaic__item figcaption { left: .85rem; right: .85rem; bottom: .8rem; flex-direction: column; align-items: flex-start; gap: .2rem; line-height: 1.35; }
  .mosaic__item figcaption span:last-child { text-align: left; }
}
/* store buttons: store-badge proportions, hairline edge, both side by side down to 360 px */
.store { min-height: 3.25rem; padding: .5rem 1.1rem .5rem .85rem; gap: .6rem; border-radius: .8rem; border: 1px solid rgb(10 18 15 / .12); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 6px 18px -10px rgb(0 0 0 / .5); }
.store svg { width: 1.45rem; height: 1.45rem; }
.store small { font-size: .6875rem; line-height: 1.1; opacity: .7; white-space: nowrap; }
.store b { font-size: 1.0625rem; line-height: 1.1; white-space: nowrap; }
.store--dark { border-color: rgb(238 241 234 / .16); box-shadow: 0 6px 18px -10px rgb(0 0 0 / .6); }
@media (max-width: 480px) {
  .stores { flex-wrap: nowrap; gap: .5rem; }
  .store { flex: 1 1 auto; min-width: 0; padding-inline: .6rem .7rem; gap: .45rem; }
  .store svg { width: 1.25rem; height: 1.25rem; }
  .store b { font-size: clamp(.875rem, 3.9vw, .96rem); }
  .store small { font-size: .625rem; letter-spacing: -.01em; }
}
/* contrast: unlit manifesto words stay at 3:1 on pine; dimmed app text at 4.5:1 */
.js .manifesto__text .sw { color: rgb(238 241 234 / .4); }
.app--dim { --a-mute: #7E8B83; }
.display, .prose h2, h2 { text-wrap: balance; }
/* steps that aren't active yet stay readable on desktop (they were at 32 %: under 2:1); phones show every step at full strength */
.scroller__step:not(.is-active) { opacity: .7; }
@media (max-width: 1023px) { .scroller__step:not(.is-active) { opacity: 1; } }
.no-js .scroller__step, .reduced .scroller__step { opacity: 1; }
/* screens that aren't showing are hidden once they have faded (no half-visible text for screen readers or contrast checks) */
.scroller__screens .phone__inner { visibility: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.scroller__screens .phone__inner.is-current { visibility: visible; transition-delay: 0s; }
/* film grain over every photo: the WebP files are clean, so the grade's grain lives here (one 128 px tile, soft-light). */
:is(.hero__photo, .manifesto__photo, .mosaic__item, .feature-card__media, .frow__media, .split__img, .article__cover, .fd-photo, .post-card__img, .review__img, .person__img) { position: relative; }
:is(.hero__photo, .manifesto__photo, .split__img, .article__cover, .fd-photo, .post-card__img, .review__img, .person__img)::before,
:is(.mosaic__item, .feature-card__media, .frow__media)::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(../img/grain.png) 0 0 / 128px 128px; mix-blend-mode: soft-light; opacity: .55;
}
@media (prefers-reduced-transparency: reduce) { :is(.hero__photo, .manifesto__photo, .mosaic__item, .feature-card__media, .frow__media, .split__img, .article__cover, .fd-photo, .post-card__img, .review__img, .person__img)::before { display: none; } }
