/* Styles of every page of the site (index.html, help.html, privacy-policy.html).
   Colours, fonts and spacing come from the brand kit (brand/brand-guidelines.md): Day tokens in
   light, Night tokens in dark, following the visitor's system. Fraunces for the wordmark, the
   score and titles (light and regular only, never bold), DM Sans for everything you read.
   The app replicas (.phone, .watch) are always dark, as the app is (DESIGN.md). */

/* ---------- Fonts (served by the site: no third-party call, as the privacy policy says) ---------- */

@font-face { font-family: 'Fraunces'; font-weight: 300; font-display: swap; src: url('fonts/fraunces-72pt-light.ttf') format('truetype'); }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-display: swap; src: url('fonts/fraunces-36pt-regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-600.woff2') format('woff2'); }

/* ---------- Tokens (brand kit: Day in light, Night in dark) ---------- */

:root {
  color-scheme: light dark;
  --canvas: #FBF4EE;
  --surface: #FFFFFF;
  --raised: #F3E9E0;
  --ink: #1C1622;
  --ink-2: #665B6B;          /* ink-muted: ≥5.4:1 on canvas and surface */
  --line: #D9CCC3;           /* hairline: decorative only */
  --accent: #A84F28;         /* links, focus, the badge */
  --accent-soft: #F6E2D4;
  --horizon: #E07A4F;        /* decorative glow only, never text */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius: 24px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #100E16;
    --surface: #1A1621;
    --raised: #262030;
    --ink: #F6EFE9;
    --ink-2: #A89FB0;
    --line: #3A3244;
    --accent: #F4A672;
    --accent-soft: #2E2229;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
h3 { font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* ---------- The other apps' banner, above the header (as on Ration's and Reachable's sites) ---------- */

.more-apps { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.more-apps .wrap { display: flex; align-items: center; gap: 14px; height: 34px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.more-apps .wrap::-webkit-scrollbar { display: none; }
.more-apps a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.more-apps a:hover { opacity: .75; }
.more-apps a::after { content: "↗"; color: var(--ink-2); font-size: 11px; }
.more-apps img { width: 16px; height: 16px; border-radius: 4px; flex: none; }

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

.header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font: 300 28px/1 var(--font-display); letter-spacing: -.01em; }
.header nav { margin-left: auto; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang {
  flex: none; font: 600 13px var(--font-body); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.lang:hover { border-color: var(--ink-2); }
@media (max-width: 820px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Phone menu: below 820 px the links leave the header for a panel the menu button opens
   (site.js toggles .header.open). */
.nav-menu {
  display: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
  color: var(--ink); place-items: center; cursor: pointer; flex: none;
}
@media (max-width: 820px) {
  .header .wrap { position: relative; gap: 8px; }
  .nav-menu { display: grid; }
  .header .wrap > .lang { margin-left: auto; }
  .header nav { margin-left: 0; }
  .header.open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .header.open .nav a { display: block; padding: 12px 8px; font-size: 17px; }
}

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

.hero {
  padding: 72px 0 0; text-align: center; position: relative; overflow: hidden;
}
/* The one gradient the brand allows: night to dawn, at the bottom of hero screens. */
.hero::after {
  content: ''; position: absolute; left: 50%; bottom: -220px; width: 1100px; height: 420px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--horizon) 26%, transparent), transparent);
}
.badge {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 14px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(46px, 8.4vw, 92px); }
.hero-sub { max-width: 620px; margin: 24px auto 0; font-size: 20px; color: var(--ink-2); }
.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--ink-2);
}
.facts li::before { content: '·'; color: var(--accent); font-weight: 600; margin-right: 8px; }
.hero-visual {
  margin-top: 56px; display: flex; justify-content: center; align-items: flex-end; gap: 36px;
  padding-bottom: 72px;
}
.caption { font-size: 14px; color: var(--ink-2); text-align: center; margin-top: 14px; }

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

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
.section h2 { font-size: clamp(32px, 4.6vw, 48px); max-width: 720px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 600px; margin-top: 18px; }
.lead + .lead { margin-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .visual { display: flex; justify-content: center; }
/* A replica with its captions under it: as wide as the phone, so the captions centre on it. */
.with-caption { width: 300px; max-width: 100%; }
.with-caption .caption { margin-top: 14px; }
/* Two phones side by side under a centred section text (section 03). */
.duo { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 56px; }
/* Phone: the phones side by side in a row swiped sideways, the next one peeking, instead of
   stacked (seven stacked phones made the page about fifteen screens long). */
@media (max-width: 700px) {
  .duo {
    flex-wrap: nowrap; justify-content: flex-start; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 12px 16px 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .duo::-webkit-scrollbar { display: none; }
  .duo > * { flex: none; scroll-snap-align: center; }
}
/* Phone and watch side by side; the watch goes under the phone when both don't fit. */
.split .visual.pair { flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.split .visual.pair .watch { margin: 0 0 -24px -96px; z-index: 1; }
@media (max-width: 560px) { .split .visual.pair .watch { margin: 0; } }
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .split.flip > :first-child { order: 0; }
}
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { padding-left: 24px; position: relative; color: var(--ink-2); }
.points li::before {
  content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.points b { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

/* Privacy trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.trio div { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.trio h3 { font-size: 17px; margin-bottom: 6px; }
/* A card's icon: a line drawing in accent on a soft tile (site's own, not an SF Symbol). */
.trio .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.trio .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#morning .duo { margin-top: 48px; }
#morning .caption.reveal { margin-top: 28px; }
.trio p { font-size: 15px; color: var(--ink-2); }

/* Comparison table (section 04), as on Ration's and Reachable's sites */
.table-wrap { margin-top: 40px; overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.compare thead th.us { color: var(--accent); font: 400 22px/1 var(--font-display); }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); font-weight: 500; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare tbody th { font-weight: 600; width: 28%; }
/* Phone: one card per criterion, each answer under its column's name (data-label). */
@media (max-width: 680px) {
  .table-wrap { overflow: visible; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; padding: 3px 0; border: 0; width: auto; background: none; }
  .compare td.us { background: none; }
  .compare tbody th { margin-bottom: 4px; width: auto; }
  .compare td::before { content: attr(data-label) ' : '; color: var(--ink-2); font-weight: 600; }
  :root:not([lang="fr"]) .compare td::before { content: attr(data-label) ': '; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--ink-2); }
details[open] summary::after { content: '–'; }
details > div { padding: 0 0 18px; color: var(--ink-2); }
details > div p + p { margin-top: 10px; }

/* Final call */
.final { text-align: center; padding: 104px 0 112px; border-top: 1px solid var(--line); }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; }
.final h2 { font-size: clamp(36px, 6vw, 60px); }
.final .badge { margin: 28px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--ink-2); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer .cols > :first-child { grid-column: 1 / -1; } }
.footer h4 { color: var(--ink); font-size: 14px; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .brand { margin-bottom: 12px; }
.footer .legal { margin-top: 36px; }
.footer .lang { padding: 4px 10px; }

/* Reveal on scroll (site.js); nothing hidden without JavaScript or with reduced motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Long-form pages (help, privacy) ---------- */

.doc { max-width: 720px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.doc .short { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; margin-top: 28px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 15px; }
.doc .toc li + li { margin-top: 0; }

/* ============================================================================================
   App replicas (replicas.js). They copy the app's screens (app/Shared/Morning/MorningRatingView,
   app/iOS/Screens/NightDetailView, WhatMattersView, app/Watch/WatchTodayView), in the app's own
   Night colours (app/Shared/Design/AubeColors.xcassets, dark), whatever the visitor's theme:
   the app is always dark.
   ============================================================================================ */

.phone, .watch {
  --a-canvas: #100E16; --a-surface: #1A1621; --a-raised: #262030; --a-ink: #F6EFE9; --a-ink-2: #A89FB0;
  --a-line: #3A3244; --a-accent: #F4A672; --a-on-accent: #1A1621; --a-fair: #C4A08A; --a-high: #E8743A;
  color: var(--a-ink); background: var(--a-canvas); text-align: left; letter-spacing: 0;
  font-family: var(--font-body); position: relative; flex: none;
}
.phone {
  width: 300px; height: 620px; border-radius: 48px; padding: 14px;
  box-shadow: 0 0 0 2px #2C2733, 0 0 0 9px #0B0A0F, 0 30px 80px rgba(16, 14, 22, .35);
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 2px #3A3244, 0 0 0 9px #050407, 0 30px 80px rgba(0, 0, 0, .6); }
}
.phone .screen { height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 88px; height: 26px; border-radius: 13px; background: #000; }
.phone .status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 13px; font-weight: 600; height: 40px; }
.phone .body { flex: 1; display: flex; flex-direction: column; padding: 0 20px; min-height: 0; overflow: hidden; }
/* Only the top of the screen, fading out: the night's header without the score table below it
   (no metric grid in marketing, PDD.md §2). */
/* A mask clips anything drawn outside the box, so the bezel is a border here, not a shadow. */
.phone.crop { height: 420px; box-shadow: none; border: 9px solid #0B0A0F; outline: 2px solid #3A3244; outline-offset: -11px; padding: 5px; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
/* The floating tab bar of iOS 26: a glass capsule over the content, the selected tab in a pill. */
.phone .tabs {
  position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; justify-content: space-around;
  padding: 4px; border-radius: 999px; font-size: 9px; font-weight: 500; color: var(--a-ink);
  background: rgba(38, 32, 48, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.phone .tabs span { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 0 5px; border-radius: 999px; }
.phone .tabs span.on { color: var(--a-accent); background: rgba(255, 255, 255, .08); }
.phone .tabs svg { width: 19px; height: 19px; }
.phone .body { padding-bottom: 64px; }
.phone.crop .body { padding-bottom: 0; }

/* A pushed page's navigation bar: round back button, centred title, the night arrows. */
.navbar { display: grid; grid-template-columns: 34px 1fr 64px; align-items: center; padding: 2px 0 16px; }
.navbar b { text-align: center; font-size: 14px; font-weight: 600; }
.navbar .round, .navbar .pair-btn {
  height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center;
}
.navbar .round { width: 32px; }
.navbar .pair-btn { gap: 8px; color: var(--a-accent); }
.navbar .pair-btn i { color: var(--a-ink-2); display: flex; }
.navbar svg { width: 15px; height: 15px; }

/* The Night tab's list (NightView): title, the 7 mornings' bars (ScoreBars), the rows (NightRow). */
.nl-title { font: 400 25px/1.2 var(--font-display); padding: 2px 0 10px; }
.nbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 132px; margin-bottom: 8px; }
.nb { display: grid; grid-template-rows: 1fr 24px; justify-items: center; gap: 4px; min-width: 0; }
.nb-val { font-size: 10px; font-weight: 600; }
.nb-track { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.nb-bar { display: block; width: 78%; border-radius: 5px; }
.nb-bar.focus { box-shadow: 0 0 0 1.5px var(--a-ink); }
.nb-none { display: block; width: 78%; height: 2px; border-radius: 1px; background: var(--a-line); }
.nb-day { font-size: 8.5px; font-weight: 600; color: var(--a-ink-2); text-align: center; line-height: 1.2; }
.nr {
  display: grid; grid-template-columns: 50px 1.25fr .7fr .95fr 32px 9px; align-items: center; gap: 2px;
  padding: 8px 0; border-bottom: 1px solid var(--a-line); font-size: 11.5px; font-weight: 500; text-align: center;
}
/* A value stays on one line: in French, « 7h 32min » broke after the hours. */
.nr > span { white-space: nowrap; }
.nr-head { padding: 4px 0; font-size: 8.5px; font-weight: 500; color: var(--a-ink-2); }
.nr-day { display: grid; text-align: left; line-height: 1.2; }
.nr-day small { font-size: 9.5px; color: var(--a-ink-2); font-weight: 400; white-space: nowrap; }
.nr-day b { font-size: 12px; font-weight: 600; }
.nr-score { font: 300 21px/1 var(--font-display); }
.nr-head .nr-score { font: 500 8.5px var(--font-body); }
.nr-chev { color: var(--a-ink-2); display: flex; }
.nr-chev svg { width: 9px; height: 9px; }
.nl-week {
  display: flex; justify-content: space-between; padding: 14px 0 6px; border-bottom: 1px solid var(--a-line);
  font-size: 8.5px; font-weight: 600; letter-spacing: .04em; color: var(--a-ink-2); text-transform: uppercase;
}

/* A measure's page (MetricView): the value, the date, then two cards with their charts. */
.mp-value { font: 400 26px/1.1 var(--font-display); }
.mp-sub { font-size: 12px; color: var(--a-ink-2); margin-top: 3px; }
.mp-date { font-size: 11px; color: var(--a-ink-2); margin-top: 2px; }
.mp-note { font-size: 11.5px; margin-top: 10px; }
.card { background: var(--a-surface); border-radius: 16px; padding: 10px 12px 8px; margin-top: 12px; }
.card-t { font-size: 8.5px; font-weight: 600; letter-spacing: .04em; color: var(--a-ink-2); text-transform: uppercase; margin-bottom: 6px; }
.chart { width: 100%; height: auto; overflow: visible; }
.card-cap { font-size: 9.5px; line-height: 1.35; color: var(--a-ink-2); margin: 6px 0 2px; }
.chart .tx { font: 500 7.5px var(--font-body); fill: #A89FB0; }
.chart .tl { font: 500 7.5px var(--font-body); fill: #A89FB0; }
.chart .tl tspan { fill: #F6EFE9; font-weight: 600; }

/* The morning question: centred, alone on the Night tab's morning page (DESIGN.md, MorningRatingView). */
.m-page { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 22px; }
.m-q { font-size: 18px; font-weight: 600; line-height: 1.3; }
.m-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; }
.m-row button {
  display: grid; justify-items: center; gap: 1px; padding: 7px 0; min-height: 44px; border: 0; border-radius: 12px;
  background: var(--a-raised); color: var(--a-ink); font: inherit; cursor: pointer;
}
.m-row button b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.m-row button small { font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.m-row button.on { background: var(--a-accent); color: var(--a-on-accent); }
.m-row button:focus-visible, .m-cta:focus-visible, .w-pills button:focus-visible { outline-color: var(--a-accent); }
.m-skip { font-size: 12px; color: var(--a-ink-2); background: none; border: 0; font-family: inherit; cursor: pointer; padding: 4px 8px; }
.m-check { width: 88px; height: 88px; color: var(--a-accent); }
.m-check.small { width: 30px; height: 30px; }
.m-check circle { stroke-dasharray: 260; stroke-dashoffset: 0; }
.m-check path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.m-check.draw circle { animation: draw-c .7s ease-out both; }
.m-check.draw path { animation: draw-p .4s .55s ease-out both; }
@keyframes draw-c { from { stroke-dashoffset: 260; } }
@keyframes draw-p { from { stroke-dashoffset: 60; } }
.m-noted { font-size: 18px; font-weight: 600; }
.m-word { font-size: 12px; color: var(--a-ink-2); margin-top: -16px; }
.m-cta {
  border: 0; border-radius: 999px; background: var(--a-accent); color: var(--a-on-accent); cursor: pointer;
  font: 600 15px var(--font-body); padding: 12px 20px; min-height: 44px;
}
.m-link { font-size: 13px; color: var(--a-accent); background: none; border: 0; font-family: inherit; cursor: pointer; }
/* "Start over", under the interactive replica: site's own control, in the page's colours. */
.m-replay {
  font: 600 14px var(--font-body); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-top: 18px;
}
.m-replay:hover { border-color: var(--ink-2); }
.m-replay[hidden] { display: none; }
.fade-in { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .m-check.draw circle, .m-check.draw path, .fade-in { animation: none; }
}

/* The top of a night's detail: date, score, the morning answer, the sentence (NightDetailView). */
.n-felt svg { display: inline-block; width: 11px; height: 11px; margin-left: 6px; vertical-align: -1px; }
.n-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.n-score { font: 300 78px/1 var(--font-display); }
.n-felt { font-size: 12px; font-weight: 500; color: var(--a-ink-2); }
.n-sentence { font-size: 16px; line-height: 1.45; margin-top: 10px; }

/* What matters for you (WhatMattersView, unlocked). */
.w-title { font: 400 21px/1.2 var(--font-display); padding: 4px 0 12px; white-space: nowrap; }
.w-head { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.w-row { padding: 9px 0; }
.w-row div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.w-row small { font-size: 11px; font-weight: 500; color: var(--a-ink-2); white-space: nowrap; }
.w-row small.clear { color: var(--a-accent); }
.w-bar { height: 4px; border-radius: 2px; background: var(--a-line); margin-top: 8px; overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: 2px; background: var(--a-ink-2); }
.w-bar i.clear { background: var(--a-accent); }
.w-foot { font-size: 11px; color: var(--a-ink-2); margin-top: 12px; line-height: 1.4; }

/* The watch (WatchTodayView): one screen, the question in pills, then the score and sentence. */
.watch {
  width: 184px; height: 224px; border-radius: 52px; padding: 12px;
  box-shadow: 0 0 0 7px #1C1A22, 0 0 0 9px #33303B, 0 24px 60px rgba(16, 14, 22, .35);
}
.watch::after { /* the crown */
  content: ''; position: absolute; right: -15px; top: 62px; width: 7px; height: 34px; border-radius: 3px; background: #33303B;
}
.watch .screen { height: 100%; border-radius: 40px; overflow: hidden; padding: 16px 14px; display: flex; flex-direction: column; }
.w-q { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.w-pills { display: grid; gap: 6px; }
.w-pills button { border: 0; border-radius: 999px; background: var(--a-raised); color: var(--a-ink); font: 500 12px var(--font-body); padding: 8px 10px; text-align: center; }
.w-pills button.on { background: var(--a-accent); color: var(--a-on-accent); }
.w-score { font: 300 56px/1 var(--font-display); text-align: center; margin-top: 18px; }
.w-sentence { font-size: 12px; line-height: 1.35; text-align: center; margin-top: 10px; }

@media (max-width: 700px) {
  .hero-visual .watch { display: none; }
}
@media (max-width: 360px) {
  .phone { width: 280px; height: 590px; }
}
