/* Daybreak marketing site. Tokens mirror app/assets/stylesheets/application.css
   so the site and the app read as one product. Bump ?v= in index.html when
   this file changes (assets are cached as immutable). */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --canvas: oklch(98.6% 0.008 60);
  --panel: oklch(96.6% 0.011 60);
  --surface: oklch(100% 0 0);
  --ink-darkest: oklch(32.09% 0.0204 233.83);
  --ink-darker: oklch(42% 0.018 234);
  --ink-dark: oklch(50% 0.015 234);
  --ink-medium: oklch(55% 0.01 234);
  --ink-light: oklch(84% 0.006 234);
  --ink-lighter: oklch(92% 0.004 234);
  --dawn: oklch(73.27% 0.1818 50.86);
  --dawn-text: oklch(50% 0.15 50.86);
  --dawn-wash: oklch(96.5% 0.03 70);
  --sky-text: oklch(46% 0.1 245);
  --hey-text: oklch(42% 0.11 148);
  --link: oklch(50% 0.16 254);
  --line: oklch(0% 0 0 / 7%);
  --stamp-red: #B03A2E;
  --stamp-navy: #1F3D5C;
  --stamp-green: #2D6A4F;
  --shadow: 0 0 0 1px oklch(0% 0 0 / 5%), 0 0.1em 0.2em oklch(0% 0 0 / 4%), 0 0.3em 0.5em oklch(0% 0 0 / 4%);
  --shadow-lg: 0 0 0 1px oklch(0% 0 0 / 6%), 0 0.4em 1em oklch(30% 0.03 240 / 10%), 0 2em 4em oklch(30% 0.03 240 / 14%);
  --sunset-1: oklch(94% 0.035 70);
  --sunset-2: oklch(84% 0.09 58);
  --sunset-3: oklch(64% 0.13 38);
  --sunset-4: oklch(38% 0.08 320);

  /* Fixed: these sit on painted skies, so they don't follow the theme */
  --sky-ink: oklch(25% 0.03 240);
  --sky-ink-soft: oklch(31% 0.03 240);
  --sky-glass: oklch(100% 0 0 / 62%);
  --sky-glass-line: oklch(100% 0 0 / 80%);
  --night: rgb(10, 14, 34);
  --night-ink: oklch(96% 0.008 260);
  --night-ink-soft: oklch(88% 0.018 260);
  --night-accent: oklch(84% 0.11 65);
  --night-card: oklch(14% 0.035 268 / 55%);
  --night-line: oklch(100% 0 0 / 12%);
  --night-glass: oklch(14% 0.035 268 / 70%);
  --stage: oklch(27% 0.045 292);
  --stage-ink: oklch(96% 0.01 290);
  --stage-ink-soft: oklch(86% 0.025 290);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: oklch(20% 0.0195 232.58);
    --panel: oklch(23% 0.02 232);
    --surface: oklch(27% 0.02 232);
    --ink-darkest: oklch(96% 0.0034 260);
    --ink-darker: oklch(88% 0.006 250);
    --ink-dark: oklch(78% 0.01 240);
    --ink-medium: oklch(66% 0.012 236);
    --ink-light: oklch(42% 0.015 234);
    --ink-lighter: oklch(33% 0.017 234);
    --dawn-text: oklch(80% 0.13 55);
    --dawn-wash: oklch(30% 0.05 55);
    --sky-text: oklch(80% 0.09 240);
    --hey-text: oklch(80% 0.12 148);
    --link: oklch(78% 0.11 250);
    --line: oklch(100% 0 0 / 9%);
    --stamp-red: #D0604F;
    --stamp-navy: #6E92C4;
    --stamp-green: #5FA882;
    --shadow: 0 0 0 1px oklch(100% 0 0 / 7%), 0 0.2em 0.6em oklch(0% 0 0 / 25%);
    --shadow-lg: 0 0 0 1px oklch(100% 0 0 / 8%), 0 2em 4em oklch(0% 0 0 / 45%);
    --sunset-1: oklch(26% 0.04 50);
    --sunset-2: oklch(34% 0.08 45);
    --sunset-3: oklch(34% 0.09 25);
    --sunset-4: oklch(24% 0.06 310);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: oklch(20% 0.0195 232.58);
  --panel: oklch(23% 0.02 232);
  --surface: oklch(27% 0.02 232);
  --ink-darkest: oklch(96% 0.0034 260);
  --ink-darker: oklch(88% 0.006 250);
  --ink-dark: oklch(78% 0.01 240);
  --ink-medium: oklch(66% 0.012 236);
  --ink-light: oklch(42% 0.015 234);
  --ink-lighter: oklch(33% 0.017 234);
  --dawn-text: oklch(80% 0.13 55);
  --dawn-wash: oklch(30% 0.05 55);
  --sky-text: oklch(80% 0.09 240);
  --hey-text: oklch(80% 0.12 148);
  --link: oklch(78% 0.11 250);
  --line: oklch(100% 0 0 / 9%);
  --stamp-red: #D0604F;
  --stamp-navy: #6E92C4;
  --stamp-green: #5FA882;
  --shadow: 0 0 0 1px oklch(100% 0 0 / 7%), 0 0.2em 0.6em oklch(0% 0 0 / 25%);
  --shadow-lg: 0 0 0 1px oklch(100% 0 0 / 8%), 0 2em 4em oklch(0% 0 0 / 45%);
  --sunset-1: oklch(26% 0.04 50);
  --sunset-2: oklch(34% 0.08 45);
  --sunset-3: oklch(34% 0.09 25);
  --sunset-4: oklch(24% 0.06 310);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-darker);
  font: 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
code { font-family: var(--font-mono); font-size: 0.86em; overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink-darkest); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); color: var(--ink-darkest); padding: 8px 12px; border-radius: 8px; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Pills */
.pill .gh { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 9999px;
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; }
.pill--ink { background: oklch(30% 0.022 234); color: #fff; box-shadow: 0 6px 18px oklch(30% 0.03 240 / 25%); }
.pill--ink:hover { background: oklch(24% 0.022 234); }
.pill--glass { background: var(--sky-glass); color: var(--sky-ink); box-shadow: inset 0 0 0 1px var(--sky-glass-line); backdrop-filter: blur(8px); }
.pill--glass:hover { background: oklch(100% 0 0 / 80%); }
.pill--light { background: var(--night-ink); color: oklch(22% 0.03 260); }
.pill--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* Basecamp and HEY, named in running text, get their tile in a pill */
.mention {
  /* Plain inline text so it sits on the same baseline as the words around it */
  display: inline;
  padding: 0.12em 0.5em 0.12em 0.32em;
  border-radius: 9999px;
  background: var(--surface); box-shadow: var(--shadow);
  color: var(--ink-darkest); font-weight: 600;
  white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mention img { display: inline; width: 0.9em; height: 0.9em; margin-right: 0.28em; border-radius: 0.22em; vertical-align: -0.1em; }
.hero .mention { background: oklch(100% 0 0 / 72%); color: var(--sky-ink); box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 85%), 0 2px 6px oklch(30% 0.03 240 / 10%); }
.night .mention, .focus-stage .mention { background: oklch(100% 0 0 / 12%); color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line); }

/* Masthead: clear over the sunrise, glass once you scroll, dark glass at night */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.masthead.is-scrolled {
  background: color-mix(in oklch, var(--canvas) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.masthead__inner {
  max-width: 1240px; margin: 0 auto;
  height: 64px; display: flex; align-items: center; gap: 28px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--sky-ink); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--sky-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.masthead.is-scrolled .brand { color: var(--ink-darkest); }
.masthead.is-scrolled .nav a { color: var(--ink-darker); }
.masthead.is-night { background: var(--night-glass); box-shadow: 0 1px 0 var(--night-line); }
.masthead.is-night .brand, .masthead.is-night .nav a { color: var(--night-ink); }
.masthead.is-night .pill--ink { background: var(--night-ink); color: oklch(22% 0.03 260); }
@media (max-width: 760px) {
  .nav { display: none; }
  .masthead__inner .pill { margin-left: auto; }
}

/* Skies */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }

/* Hero: morning */
.hero {
  position: relative; isolation: isolate; overflow-x: clip;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  /* A bright, high morning; the painted sky sits over it at low strength */
  background: linear-gradient(to bottom, oklch(96% 0.022 225), oklch(98.2% 0.012 215) 34%, oklch(98.4% 0.03 82) 66%, var(--canvas));
}
.hero > .sky { opacity: 0.2; }
/* The sun's light, washed across the whole morning sky */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(150% 100% at 50% 82%, rgb(255 218 130 / 70%), rgb(255 230 170 / 42%) 38%, rgb(255 238 200 / 16%) 64%, rgb(255 244 220 / 0) 88%);
}
/* The sunrise gives way to the page behind the app window */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: min(52%, 520px); z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--canvas) 72%);
}
.hero__copy {
  max-width: 1160px; margin: 0 auto; text-align: center;
  padding: clamp(56px, 9vw, 112px) var(--gutter-r) 0 var(--gutter-l);
  display: grid; justify-items: center; gap: 24px;
  color: var(--sky-ink-soft);
  position: relative; z-index: 1;
}
.hero__copy > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.15s; }
.hero__copy > :nth-child(3) { animation-delay: 0.3s; }
.hero__copy > :nth-child(4) { animation-delay: 0.45s; }
.hero__copy > :nth-child(5) { animation-delay: 0.55s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.eyebrow-chip {
  padding: 6px 14px; border-radius: 9999px;
  background: var(--sky-glass); box-shadow: inset 0 0 0 1px var(--sky-glass-line);
  backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; color: var(--sky-ink);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.045em;
  color: var(--sky-ink);
}
@media (min-width: 760px) { .hero h1 { white-space: nowrap; } }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 37em; color: var(--sky-ink-soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { font-size: 14px; color: var(--sky-ink-soft); text-wrap: balance; }

/* App mock */
.app {
  position: relative; isolation: isolate;
  margin: clamp(120px, 15vw, 200px) auto 0;
  max-width: 1280px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  animation: rise 1.2s 0.6s cubic-bezier(.2,.7,.2,1) both;
}
/* The sun: a soft, blurred light behind the product, not a disc */
.sun {
  position: absolute; left: 50%; top: 0; z-index: 0; pointer-events: none;
  width: min(1100px, 150vw); aspect-ratio: 1.6;
  translate: -50% -52%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 50% 62%, rgb(255 250 225) 0%, rgb(255 226 140 / 95%) 18%, rgb(255 198 100 / 62%) 40%, rgb(255 205 130 / 22%) 66%, rgb(255 215 160 / 0) 100%);
  filter: blur(36px);
  animation: sunrise 2.6s 0.3s cubic-bezier(.2,.7,.2,1) both, glow 9s 3s ease-in-out infinite alternate;
}
@keyframes sunrise { from { translate: -50% -30%; opacity: 0; } }
@keyframes glow { to { scale: 1.06 1.03; filter: blur(44px) brightness(1.04); } }
/* With Motion loaded, it runs the entrances instead of these keyframes */
.motion .hero__copy > *, .motion .app { animation: none; }
.motion .sun { animation: glow 9s 3s ease-in-out infinite alternate; }
.motion [data-reveal] > * { opacity: 0; }
.app__window {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 196px minmax(0, 1fr) 232px;
  background: var(--canvas);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 14px; color: var(--ink-darker);
  min-height: 620px;
}
.app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app__side { background: var(--panel); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.app__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-darkest); padding: 4px 8px 14px; }
.app__menu { display: grid; gap: 2px; }
.app__menu li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-dark); font-weight: 500; }
.app__menu li.is-on { background: var(--ink-lighter); color: var(--ink-darkest); font-weight: 600; }
.app__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dark); padding: 16px 10px 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.app__me { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--ink-darker); }
.app__me span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: oklch(55% 0.16 45); color: #fff; font-weight: 700; font-size: 12px; }

.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__bar { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.app__range { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-darkest); }
.app__year { color: var(--ink-medium); font-size: 13px; }
.app__goal { margin-left: auto; font-size: 13px; color: var(--ink-darker); background: var(--surface); box-shadow: var(--shadow); padding: 4px 12px; border-radius: 9999px; white-space: nowrap; }
.app__goal b { color: var(--dawn-text); font-weight: 700; margin-right: 4px; }
.app__days { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px 14px 20px; }
.day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day__head { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; color: var(--ink-darkest); padding: 2px 4px 6px; letter-spacing: -0.02em; }
.day__head b { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dark); }
.is-today .day__head b, .phone .day__head b { color: var(--dawn-text); }
.chip-today { background: var(--dawn); color: oklch(22% 0.04 50); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 9999px; letter-spacing: 0; }

.card {
  position: relative;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 11px 12px;
  min-width: 0;
}
.card > div { min-width: 0; }
.card p:first-child { color: var(--ink-darkest); font-weight: 500; line-height: 1.3; }
.card .src { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; font-size: 12px; color: var(--ink-dark); }
.card .src img { width: 14px; height: 14px; border-radius: 3px; }
.tick { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-medium); }
.tick--done { background: oklch(55% 0.15 148); box-shadow: none; position: relative; }
.tick--done::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-done p:first-child { text-decoration: line-through; color: var(--ink-medium); }
.time { font-weight: 700; color: var(--hey-text); }
.card--event { padding-left: 14px; }
.card:has(> .stamp) > div { padding-right: 40px; }
.card .stage { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 9999px; background: var(--ink-lighter); color: var(--ink-darker); }
.box { font-size: 11px; font-weight: 700; color: var(--dawn-text); background: var(--dawn-wash); padding: 2px 7px; border-radius: 9999px; }
.add { font-size: 13px; color: var(--ink-dark); padding: 4px 6px; }
.app__tray { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); }
.app__tray b, .phone__tray b { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dark); }
.tray-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 9999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-darkest); }
.tray-chip .tick { width: 14px; height: 14px; margin: 0; }

.stamp { display: inline-block; background-color: currentColor; -webkit-mask: var(--stamp-mask) center / contain no-repeat; mask: var(--stamp-mask) center / contain no-repeat; }
.stamp--red { --stamp-mask: url("stamps/red_done.png"); color: var(--stamp-red); }
.stamp--navy { --stamp-mask: url("stamps/navy_star.png"); color: var(--stamp-navy); }
.stamp--green { --stamp-mask: url("stamps/green_check.png"); color: var(--stamp-green); }
.card .stamp { position: absolute; right: 8px; top: 50%; width: 44px; height: 44px; transform: translateY(-50%) rotate(-10deg); opacity: 0.92; }

.app__panel { background: var(--panel); border-left: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.panel__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-darkest); padding: 0 4px 6px; }
.panel__title img { width: 18px; height: 18px; border-radius: 4px; }
.panel__title span { margin-left: auto; font-size: 12px; color: var(--dawn-text); }
.card--sm { padding: 9px 10px; font-size: 13px; }
.panel__hint { font-size: 12px; color: var(--ink-dark); text-align: center; padding-top: 6px; }

@media (max-width: 1200px) {
  .app__window { grid-template-columns: 180px minmax(0, 1fr); }
  .app__panel { display: none; }
}
@media (max-width: 940px) {
  .app__window { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app__side { display: none; }
  .app__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app__days .day:nth-child(1), .app__days .day:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
  .app__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__days .day:nth-child(2) { display: none; }
  .app__goal { display: none; }
}

/* Sections */
.band { padding-block: clamp(80px, 11vw, 136px); }
.band--panel { background: var(--panel); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dawn-text); }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.section-lede { font-size: 19px; color: var(--ink-dark); max-width: 36em; text-wrap: pretty; }
.small { font-size: 14px; color: var(--ink-dark); }

/* Basecamp and HEY */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sheet { color: var(--ink-dark); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 28px; align-content: start; }
.sheet__title { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.sheet__title img { border-radius: 10px; }
.section-sign { font-size: 15px; font-weight: 600; color: var(--ink-dark); }
.section-sign::before { content: "— "; }
.sheet__title small { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-dark); }
.optional { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 4px 10px; border-radius: 9999px; background: var(--ink-lighter); color: var(--ink-darker); }
.flow { display: grid; gap: 12px; }
.flow__label { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-text); }
.flow__label::before { content: "↓"; font-size: 14px; letter-spacing: 0; }
.flow__label--out { color: var(--dawn-text); }
.flow__label--out::before { content: "↑"; }
.flow__list { display: grid; gap: 10px; }
.flow__list li { position: relative; padding-left: 28px; color: var(--ink-darker); }
.flow__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-light); }
.flow + .flow { padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* The week */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split__copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.split__copy > p:not(.eyebrow) { font-size: 18px; color: var(--ink-dark); max-width: 32em; }
.split__copy em { font-style: normal; font-weight: 600; color: var(--ink-darkest); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.facts { margin-top: 14px; display: grid; gap: 18px; }
.facts li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; color: var(--ink-dark); }
.facts b { color: var(--ink-darkest); font-weight: 600; }
.fact__mark { width: 76px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-darker); }
.fact__mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact__mark--stamps { display: flex; justify-content: center; }
.fact__mark--stamps .stamp { width: 34px; height: 34px; margin: 0 -6px; }
.fact__mark--stamps .stamp:nth-child(1) { transform: rotate(-12deg); }
.fact__mark--stamps .stamp:nth-child(3) { transform: rotate(10deg); }

.phone {
  margin: 0 auto; width: 100%; max-width: 340px;
  padding: 10px; border-radius: 46px;
  background: oklch(24% 0.02 240);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px oklch(100% 0 0 / 10%);
}
.phone__screen {
  position: relative;
  aspect-ratio: 390 / 800;
  max-width: 100%;
  background: var(--canvas); border-radius: 37px; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 44px 14px 0;
  font-size: 14px;
}
.phone__range { text-align: center; font-weight: 800; font-size: 17px; color: var(--ink-darkest); letter-spacing: -0.02em; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin: 0 -14px 4px; }
.phone .card .stamp { width: 40px; height: 40px; }
.phone__tray { margin: auto -14px 0; padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; }
.phone__tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 -14px; padding: 8px 4px 20px; border-top: 1px solid var(--line); background: var(--canvas); }
.phone__tabs span { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--ink-dark); }
.phone__tabs span.is-on { color: var(--ink-darkest); font-weight: 600; }
.phone__tabs svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Rituals */
.rituals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ritual { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); min-height: 540px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.ritual .sky { border-radius: inherit; }
.ritual__body { display: grid; gap: 14px; padding: clamp(24px, 4vw, 44px); max-width: 30em; }
.ritual h3 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.ritual__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ritual--sunrise { color: var(--sky-ink-soft); background: linear-gradient(oklch(72% 0.08 245), oklch(86% 0.07 60)); }
.ritual--sunrise h3 { color: var(--sky-ink); }
.ritual--sundown { color: var(--night-ink-soft); background: linear-gradient(oklch(22% 0.05 270), oklch(32% 0.06 320)); }
.ritual--sundown h3 { color: var(--night-ink); }
.ritual__steps { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: s; }
.ritual__steps li { counter-increment: s; font-size: 14px; font-weight: 600; color: var(--sky-ink); background: oklch(100% 0 0 / 62%); padding: 6px 12px; border-radius: 9999px; backdrop-filter: blur(6px); }
.ritual__steps li::before { content: counter(s) "  "; color: oklch(48% 0.15 50); }
.journal { margin-top: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--night-card); box-shadow: inset 0 0 0 1px var(--night-line); backdrop-filter: blur(8px); display: grid; gap: 6px; }
.journal__head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--night-ink-soft); }
.journal__head img { border-radius: 4px; }
.journal .serif { font-size: 19px; color: var(--night-ink); line-height: 1.4; }
.ritual-notes { margin: 28px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; color: var(--ink-dark); font-size: 15px; }
.ritual-notes li { text-align: center; }
.ritual-notes b { display: block; color: var(--ink-darkest); font-weight: 600; }
@media (max-width: 860px) { .rituals { grid-template-columns: minmax(0, 1fr); } .ritual { min-height: 460px; } }
@media (max-width: 560px) { .ritual-notes { grid-template-columns: minmax(0, 1fr); } }

/* Focus: a dark stage, the same in both themes */
.focus-stage {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  background: radial-gradient(120% 90% at 80% 20%, oklch(34% 0.05 292), var(--stage));
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 64px);
  color: var(--stage-ink-soft);
  box-shadow: var(--shadow-lg);
}
.focus-stage__copy { display: grid; gap: 18px; min-width: 0; }
.focus-stage h2 { color: var(--stage-ink); font-size: clamp(30px, 3.6vw, 44px); }
#focus { padding-top: 0; }
.focus-stage .eyebrow { color: var(--night-accent); }
.focus-stage .small { color: var(--stage-ink-soft); }
.focus-stage__copy > p:not(.eyebrow):not(.small) { font-size: 18px; }
.focus-stage__shot { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px oklch(100% 0 0 / 10%), 0 1.5em 3em oklch(0% 0 0 / 35%); }
.focus-stage__shot img { width: 100%; height: auto; }
.sounds { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 9999px; background: oklch(100% 0 0 / 8%); box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 12%); justify-self: start; }
.sounds span { padding: 7px 14px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: var(--stage-ink-soft); }
.sounds span.is-on { background: oklch(100% 0 0 / 16%); color: var(--stage-ink); }
@media (max-width: 860px) { .focus-stage { grid-template-columns: minmax(0, 1fr); } }

/* How it's built */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.values li { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; color: var(--ink-dark); }
.values svg { width: 26px; height: 26px; fill: none; stroke: var(--dawn-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.values b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-darkest); margin-bottom: 8px; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Evening: the page's only sunset, ending in the night sky's own colour */
.sunset {
  height: clamp(240px, 34vw, 440px);
  background: linear-gradient(to bottom, var(--panel), var(--sunset-1) 18%, var(--sunset-2) 38%, var(--sunset-3) 58%, var(--sunset-4) 80%, var(--night));
}

/* Night: self-host and footer */
.night { position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink-soft); background: var(--night); padding-top: clamp(40px, 6vw, 80px); }
.night h2, .night h3 { color: var(--night-ink); }
.night .eyebrow { color: var(--night-accent); }
.night .section-lede { color: var(--night-ink-soft); }
.night a:not(.pill):not(.brand) { color: oklch(84% 0.08 245); }
.night code { color: var(--night-ink); }
.host { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.host__card { background: var(--night-card); box-shadow: inset 0 0 0 1px var(--night-line); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.host__card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.host__card .pill { justify-self: start; }
.steps { display: grid; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; display: grid; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: oklch(22% 0.03 260); background: var(--night-accent); }
.steps b { color: var(--night-ink); font-weight: 600; }
.steps p { font-size: 15px; }
.code { position: relative; background: oklch(10% 0.03 268 / 80%); border-radius: 10px; min-width: 0; }
.code pre { margin: 0; padding: 16px 84px 16px 18px; font: 13.5px/1.75 var(--font-mono); color: var(--night-ink); white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; }
.code code { font-size: inherit; }
.copy { position: absolute; top: 10px; right: 10px; font: 600 12px var(--font-sans); color: var(--night-ink); background: oklch(100% 0 0 / 12%); border: 0; border-radius: 9999px; padding: 6px 12px; cursor: pointer; }
.copy:hover { background: oklch(100% 0 0 / 20%); }
@media (max-width: 860px) { .host { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .code pre { padding: 48px 16px 16px; } .steps li { padding-left: 40px; } }

.foot { margin-top: clamp(80px, 10vw, 128px); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--night-line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; }
.brand--night { color: var(--night-ink); font-size: 18px; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot nav a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy > *, .app, .sun { animation: none; }
  .pill { transition: none; }
}
