/* Daylight website · macrostructure: sky-led long page · tone: quiet, factual · anchor hue: sunlit amber
 * Tokens mirror DesignSystem/tokens (Sunlit). The design system is the source of truth:
 * change a colour there first, then here. No webfonts: SF on Apple devices, New York for display.
 */

:root {
  /* Sunlit — colors.css */
  --paper: #f8f6f1;
  --surface: #ffffff;
  --fill: #eeeae1;
  --fill-2: #efe9dd;
  --hairline: #f0ece4;
  --stroke: #d9d2c4;
  --ink: #1c1a17;
  --ink-body: #4d483f;
  --ink-2: #8a857c;
  --ink-3: #a39d92;
  --accent: #d98324;
  --accent-deep: #c1701c;
  --accent-text: #9a5712;          /* amber text on paper at 4.5:1 */
  --accent-label: #b0834a;
  --accent-soft: rgba(217, 131, 36, 0.13);
  --accent-muted: #dcb26b;
  --accent-track: #eae5db;
  --now: #d94f24;
  --on-accent: #ffffff;

  /* Sunlit — daylight.css */
  --daylight-morning: linear-gradient(175deg, #cfe0f4 0%, #e8ecf0 34%, #f5efe4 68%, #f3e6d2 100%);
  --daylight-midday: linear-gradient(175deg, #d8ebf8 0%, #ecf0ec 45%, #f8f3e6 100%);
  --daylight-evening: linear-gradient(175deg, #f5dcb4 0%, #efd0bb 40%, #d9bfc4 75%, #bfb3c6 100%);
  --daylight-night: linear-gradient(175deg, #1c2233 0%, #242331 55%, #2b2622 100%);
  --glass-surface: rgba(255, 255, 255, 0.6);
  --glass-ring: inset 0 0 0 0.5px rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 28px rgba(90, 70, 40, 0.1);
  --ink-on-sky: #4d483f;
  --ink-on-night: #f3efe7;
  --ink-on-night-2: #c9c1b3;

  /* Sunlit — effects.css */
  --shadow-card: 0 1px 2px rgba(60, 45, 20, 0.05), 0 4px 14px rgba(60, 45, 20, 0.05);
  --shadow-float: 0 8px 24px rgba(60, 45, 20, 0.12);

  /* Type — typography.css, plus a display role */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --text-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --text-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --text-h3: 1.1875rem;
  --text-lede: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;
  --tracking-title: -0.02em;
  --tracking-label: 0.08em;

  /* Space — 4pt scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --measure: 66ch;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 200ms;

  --focus: #b35f0f;

  color-scheme: light dark;
}

/* Sunlit — dark.css */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171512;
    --surface: #23201b;
    --fill: #2e2a24;
    --fill-2: #322d26;
    --hairline: #33302a;
    --stroke: #4a443a;
    --ink: #f3efe7;
    --ink-body: #cfc8bb;
    --ink-2: #9a9385;
    --ink-3: #7d766a;
    --accent: #e59136;
    --accent-deep: #eda54f;
    --accent-text: #eda54f;
    --accent-label: #d0a06a;
    --accent-soft: rgba(229, 145, 54, 0.16);
    --accent-muted: #8a6a3a;
    --accent-track: #322d26;
    --now: #ff6a45;
    --on-accent: #1c1a17;
    --glass-surface: rgba(35, 32, 27, 0.55);
    --glass-ring: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.5);
    --focus: #f0b061;
  }
}

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

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

html, body { overflow-x: clip; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--space-24);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font: 400 var(--text-body)/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  color: var(--ink);
  font-style: normal;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: var(--tracking-title);
  line-height: 1.08;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h2); }
h3 { font: 600 var(--text-h3)/1.3 var(--font-ui); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent-deep); }

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

strong { color: var(--ink); font-weight: 600; }

.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip-link:focus { top: var(--space-4); }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font: 600 0.75rem/1.2 var(--font-ui);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.5;
  color: var(--ink-body);
  max-width: 40ch;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: var(--space-3);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: var(--glass-ring), var(--glass-shadow);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  text-decoration: none;
  font: 700 1.0625rem/1 var(--font-ui);
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 28px; height: 28px; border-radius: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}

.site-nav a {
  color: var(--ink-body);
  text-decoration: none;
  font: 500 var(--text-small)/1 var(--font-ui);
  padding: var(--space-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.site-nav a.button, .site-nav a.button:hover { color: var(--paper); background: var(--ink); padding: 0 var(--space-4); }

@media (max-width: 720px) {
  .site-nav .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font: 600 var(--text-small)/1 var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.button:hover { color: var(--paper); opacity: 0.88; }
.button:active { transform: scale(0.97); }
.button svg { width: 18px; height: 18px; }

.button.small { min-height: 36px; padding: 0 var(--space-4); font-size: 0.875rem; }

.button.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.button.quiet:hover { color: var(--ink); background: var(--accent-soft); opacity: 1; }

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

.hero {
  position: relative;
  margin-top: calc(-1 * (44px + 2 * var(--space-3) + 2 * var(--space-2)));
  padding-top: calc(var(--space-32) + var(--space-8));
  padding-bottom: var(--space-24);
  background: var(--daylight-midday);
  color: var(--ink-on-sky);
  transition: background var(--dur) var(--ease-out);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: var(--space-24);
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero[data-phase="morning"] { background: var(--daylight-morning); }
.hero[data-phase="midday"] { background: var(--daylight-midday); }
.hero[data-phase="evening"] { background: var(--daylight-evening); }
.hero[data-phase="night"] { background: var(--daylight-night); }
.hero[data-phase="night"] { color: var(--ink-on-night-2); }
.hero[data-phase="night"] h1 { color: var(--ink-on-night); }
.hero[data-phase="night"] .lede,
.hero[data-phase="night"] .hero-note { color: var(--ink-on-night-2); }
.hero[data-phase="night"] .button { background: var(--ink-on-night); color: #1c1a17; }

@media (prefers-color-scheme: dark) {
  .hero, .hero[data-phase] { background: var(--daylight-night); color: var(--ink-on-night-2); }
  .hero h1 { color: var(--ink-on-night); }
  .hero .lede, .hero .hero-note { color: var(--ink-on-night-2); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

.hero h1 { margin-bottom: var(--space-6); max-width: 12ch; }
.hero .lede { margin-bottom: var(--space-8); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.hero-note { font-size: var(--text-small); color: var(--ink-body); max-width: 44ch; }

.dial { width: 100%; max-width: 440px; margin-inline: auto; }

.hero-phase {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--ink-body);
}
.hero[data-phase="night"] .hero-phase { color: var(--ink-on-night-2); }
@media (prefers-color-scheme: dark) { .hero .hero-phase { color: var(--ink-on-night-2); } }

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--space-24) + var(--space-8)); padding-bottom: var(--space-16); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .dial { max-width: 320px; }
}

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

.section { padding-block: var(--space-24); }
.section + .section { padding-top: 0; }

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  margin-bottom: var(--space-12);
}
.section-head p { font-size: var(--text-lede); line-height: 1.5; }

@media (max-width: 640px) {
  .section { padding-block: var(--space-16); }
  .section-head { margin-bottom: var(--space-8); }
}

/* The day, hour by hour — four sky phases as one strip */

.sky-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sky-strip li {
  list-style: none;
  padding: var(--space-8) var(--space-6) var(--space-10);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--ink-on-sky);
}
.sky-strip li:nth-child(1) { background: var(--daylight-morning); }
.sky-strip li:nth-child(2) { background: var(--daylight-midday); }
.sky-strip li:nth-child(3) { background: var(--daylight-evening); }
.sky-strip li:nth-child(4) { background: var(--daylight-night); color: var(--ink-on-night-2); }
.sky-strip li:nth-child(4) h3 { color: var(--ink-on-night); }
.sky-strip .time { font: 600 var(--text-caption)/1 var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; opacity: 0.8; }
.sky-strip h3 { color: #1c1a17; margin-top: auto; }
.sky-strip p { font-size: var(--text-small); line-height: 1.5; }

.sky-strip { padding: 0; margin: 0; }

@media (max-width: 860px) {
  .sky-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .sky-strip { grid-template-columns: minmax(0, 1fr); }
  .sky-strip li { min-height: 0; }
  .sky-strip h3 { margin-top: var(--space-6); }
}

/* One page — the day sample */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
}

.points { display: grid; gap: var(--space-8); margin: 0; padding: 0; }
.points li { list-style: none; display: grid; gap: var(--space-2); }
.points h3 { display: flex; align-items: baseline; gap: var(--space-2); }
.points p { max-width: 46ch; }

@media (max-width: 860px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}

/* Sample day — built from the design system's agenda components, no device chrome */

.sample {
  background: var(--daylight-morning);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
}
@media (prefers-color-scheme: dark) { .sample { background: var(--daylight-night); } }

.sample-date { color: var(--ink-on-sky); display: grid; gap: var(--space-1); padding-inline: var(--space-1); }
.sample-date .label { color: #74410c; }
.sample-date strong { font: 700 1.75rem/1.1 var(--font-ui); letter-spacing: -0.01em; color: #1c1a17; }
@media (prefers-color-scheme: dark) {
  .sample-date .label { color: var(--accent-label); }
  .sample-date strong { color: var(--ink-on-night); }
}

.card {
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--glass-ring), var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.card .label { margin-bottom: var(--space-3); }

.event {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: stretch;
  font-size: var(--text-small);
}
.event + .event { margin-top: var(--space-3); }
.event time { color: var(--ink-2); font-size: var(--text-caption); padding-top: 2px; }
.event div {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-3);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.event div span { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--text-caption); }
.event.later div { border-left-color: var(--accent-muted); }

.now-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  margin-block: var(--space-3);
  color: var(--now);
  font: 600 var(--text-caption)/1 var(--font-ui);
}
.now-line i {
  position: relative;
  height: 1.5px;
  background: var(--now);
}
.now-line i::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--now);
}

.reminder {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-small);
  color: var(--ink);
}
.reminder + .reminder { margin-top: var(--space-3); }
.reminder .box {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--stroke);
  flex: none;
  display: grid;
  place-items: center;
}
.reminder.done { color: var(--ink-3); text-decoration: line-through; }
.reminder.done .box { background: var(--accent); box-shadow: none; }
.reminder.done .box svg { width: 12px; height: 12px; }

.entry-title { font: 600 1.0625rem/1.3 var(--font-serif); color: var(--ink); margin-bottom: var(--space-2); }
.entry-body { font: 400 0.9375rem/1.6 var(--font-serif); color: var(--ink-body); margin-bottom: var(--space-3); }
.entry-body mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.chip {
  font: 500 var(--text-caption)/1 var(--font-ui);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  white-space: nowrap;
}
.chip.mood { background: var(--fill); color: var(--ink-body); display: inline-flex; gap: 6px; align-items: center; }
.chip.mood svg { width: 14px; height: 14px; }

/* ---------- Pro marker (the sun glyph) ---------- */

.pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 600 0.6875rem/1 var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 4px 7px 4px 5px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  vertical-align: 0.15em;
}
.pro svg { width: 12px; height: 12px; }

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: var(--space-6);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: var(--space-2) var(--gutter) var(--space-6);
  margin: 0 calc(-1 * var(--gutter));
  list-style: none;
  scrollbar-width: thin;
}

.shots li { scroll-snap-align: start; }

.shots figure { margin: 0; display: grid; gap: var(--space-3); }

.shot-frame {
  aspect-ratio: 1320 / 2868;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--fill-2);
  box-shadow: 0 0 0 0.5px var(--stroke);
  position: relative;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Shown until the D2 screenshot for this slot lands in /screenshots */
.shot-frame.pending { display: grid; place-items: center; text-align: center; padding: var(--space-6); }
.shot-frame.pending span { font: 500 var(--text-caption)/1.4 var(--font-ui); color: var(--ink-3); }

.shots figcaption { display: grid; gap: 2px; }
.shots figcaption strong { font-size: var(--text-small); line-height: 1.35; }
.shots figcaption span { font-size: var(--text-caption); color: var(--ink-2); line-height: 1.4; }

/* ---------- Free / Pro ---------- */

.tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
}

.tier {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  display: grid;
  align-content: start;
  gap: var(--space-4);
}
.tier h3 { font: 700 1.5rem/1.2 var(--font-serif); display: flex; gap: var(--space-2); align-items: center; }
.tier h3 svg { width: 22px; height: 22px; }
.tier .price { font: 600 var(--text-small)/1.4 var(--font-ui); color: var(--ink-2); }
.tier ul { margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.tier li {
  list-style: none;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--space-3);
  font-size: var(--text-small);
  line-height: 1.5;
}
.tier li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0.55em 0 0 6px;
}

@media (max-width: 760px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier { padding: var(--space-6); }
}

.fine { font-size: var(--text-caption); color: var(--ink-2); line-height: 1.55; max-width: var(--measure); margin-top: var(--space-6); }

/* ---------- Leaves-the-device list ---------- */

.ledger { display: grid; gap: 0; margin: 0; padding: 0; border-top: 0.5px solid var(--stroke); }
.ledger li {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-bottom: 0.5px solid var(--stroke);
}
.ledger li > strong { font-size: var(--text-body); }
.ledger li p { max-width: 58ch; }
@media (max-width: 640px) {
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
}

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

.closing {
  border-radius: var(--radius-xl);
  background: var(--daylight-evening);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}
.closing h2 { color: #1c1a17; max-width: 18ch; }
.closing p { color: #3d3830; max-width: 44ch; }
.closing .button { background: #1c1a17; color: #f8f6f1; }
@media (max-width: 640px) { .closing { padding: var(--space-12) var(--space-5); } }

/* ---------- Document pages (privacy, terms, support, press, compare) ---------- */

.doc-head {
  padding-top: var(--space-16);
  padding-bottom: var(--space-10);
  display: grid;
  gap: var(--space-4);
  max-width: 48rem;
}
.doc-head h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem); }
.doc-head p { font-size: var(--text-lede); line-height: 1.5; }
.doc-head .meta { font-size: var(--text-small); color: var(--ink-2); }

.doc {
  max-width: var(--measure);
  padding-bottom: var(--space-24);
}
.doc h2 { font-size: 1.625rem; margin: var(--space-12) 0 var(--space-4); }
.doc h3 { margin: var(--space-8) 0 var(--space-3); }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 var(--space-4); }
.doc li { margin-bottom: var(--space-2); }
.doc li::marker { color: var(--accent); }

.doc table { width: 100%; border-collapse: collapse; font-size: var(--text-small); margin-bottom: var(--space-6); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 0.5px solid var(--stroke); }
.doc th { color: var(--ink); font-weight: 600; }
.doc .table-scroll { overflow-x: auto; margin-bottom: var(--space-6); }
.doc .table-scroll table { min-width: 560px; margin: 0; }

.callout {
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.callout p { font-size: var(--text-body); }

.toc { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-8); padding: 0; }
.toc li { list-style: none; }
.toc a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--fill);
  color: var(--ink-body);
  text-decoration: none;
  font-size: var(--text-caption);
  white-space: nowrap;
}
.toc a:hover { background: var(--accent-soft); color: var(--accent-text); }

details.faq {
  border-bottom: 0.5px solid var(--stroke);
  padding-block: var(--space-4);
}
details.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 28px;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "›";
  color: var(--ink-3);
  font-size: 1.25rem;
  transform: rotate(90deg);
  transition: transform var(--dur-fast) var(--ease-out);
  flex: none;
}
details.faq[open] summary::after { transform: rotate(-90deg); }
details.faq > div { padding-top: var(--space-3); }

.downloads { display: grid; gap: var(--space-3); padding: 0; margin: 0 0 var(--space-6); }
.downloads li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}
.downloads li span { font-size: var(--text-caption); color: var(--ink-2); display: block; }

.yes { color: var(--ink); }
.no { color: var(--ink-2); }

/* ---------- Hero screenshot (real app capture, no drawn chrome) ---------- */

.hero-shot { margin: 0; display: grid; justify-items: center; gap: var(--space-4); }
.hero-shot img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 36px;
  box-shadow: 0 0 0 0.5px var(--stroke), var(--shadow-float);
}
.hero-shot figcaption { font-size: var(--text-caption); text-align: center; max-width: 34ch; }

/* ---------- Practices (home) ---------- */

.practices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}
.practices li { list-style: none; }
.practices a {
  display: grid;
  gap: var(--space-2);
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  color: var(--ink-body);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.practices a:hover { color: var(--ink-body); transform: translateY(-2px); }
.practices a:active { transform: scale(0.99); }
.practices h3 { font: 700 1.25rem/1.25 var(--font-serif); }
.practices .cadence { font: 600 var(--text-caption)/1.3 var(--font-ui); color: var(--accent-text); }
.practices p { font-size: var(--text-small); line-height: 1.5; margin: 0; }
.practices .source { font-size: var(--text-caption); color: var(--ink-2); margin-top: auto; padding-top: var(--space-2); }
@media (max-width: 900px) { .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .practices { grid-template-columns: minmax(0, 1fr); } }

.evidence-note {
  margin-top: var(--space-8);
  max-width: var(--measure);
  font-size: var(--text-small);
  color: var(--ink-body);
}

/* Daylight facts — the Day Circle section */

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin: 0; padding: 0; }
.facts li { list-style: none; display: grid; gap: var(--space-2); align-content: start; border-top: 1.5px solid var(--accent); padding-top: var(--space-4); }
.facts p { font-size: var(--text-small); line-height: 1.55; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--space-16);
  align-items: center;
}
.split .hero-shot img { width: min(100%, 300px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); } }

/* ---------- Blog ---------- */

.post-list { display: grid; gap: 0; margin: 0 0 var(--space-24); padding: 0; border-top: 0.5px solid var(--stroke); max-width: 48rem; }
.post-list li { list-style: none; border-bottom: 0.5px solid var(--stroke); }
.post-list a { display: grid; gap: var(--space-2); padding-block: var(--space-6); text-decoration: none; color: var(--ink-body); }
.post-list a:hover h2 { color: var(--accent-text); }
.post-list h2 { font-size: 1.5rem; transition: color var(--dur-fast) var(--ease-out); }
.post-list p { margin: 0; }
.post-list .meta { font-size: var(--text-caption); color: var(--ink-2); }

.post .doc-head h1 { max-width: 20ch; }
.post .doc h2 { font-size: 1.5rem; }
.post .doc p, .post .doc li { font-size: 1.125rem; line-height: 1.7; }

.prompt-card {
  background: var(--daylight-morning);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-6) 0 var(--space-8);
  box-shadow: var(--shadow-card);
}
@media (prefers-color-scheme: dark) { .prompt-card { background: var(--daylight-night); } }
.prompt-card .label { color: #74410c; margin-bottom: var(--space-3); display: block; }
.prompt-card .inner { background: var(--glass-surface); box-shadow: var(--glass-ring); border-radius: var(--radius-lg); padding: var(--space-5); }
.prompt-card .inner p { font: 400 1.0625rem/1.65 var(--font-serif); color: var(--ink-body); }
.prompt-card .inner strong { font-family: var(--font-ui); font-size: 0.9375rem; }
@media (prefers-color-scheme: dark) { .prompt-card .label { color: var(--accent-label); } }

.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0 0 var(--space-8);
  padding: 0;
}
.at-a-glance li { list-style: none; background: var(--surface); box-shadow: var(--shadow-card); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: 2px; }
.post .doc .at-a-glance li { font-size: var(--text-small); margin: 0; }
.at-a-glance .label { margin-bottom: var(--space-1); }
@media (max-width: 560px) { .at-a-glance { grid-template-columns: minmax(0, 1fr); } }

.post .doc blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--accent-muted);
  color: var(--ink);
}

.sources { font-size: var(--text-small); }
.post .doc .sources li { font-size: var(--text-small); line-height: 1.55; }

.aside {
  background: var(--fill);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
}
.post .doc .aside p { font-size: var(--text-small); }

.next-post { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; border-top: 0.5px solid var(--stroke); padding-top: var(--space-6); margin-top: var(--space-12); }
.next-post a { white-space: nowrap; }

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

.site-footer {
  border-top: 0.5px solid var(--stroke);
  padding-block: var(--space-12) var(--space-16);
  font-size: var(--text-small);
  color: var(--ink-2);
}
.site-footer .wrap { display: grid; gap: var(--space-6); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; padding: 0; }
.site-footer nav li { list-style: none; }
.site-footer nav a { color: var(--ink-body); text-decoration: none; white-space: nowrap; display: inline-block; padding-block: var(--space-2); }
.site-footer nav a:hover { color: var(--accent-text); }
.site-footer p { max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; scroll-behavior: auto !important; }
}
