/* The site's look: the dashboard's own palette and fonts (charcoal, cream and gold; Fraunces and Inter, served
   from /fonts by tools/build_site.py). Light sections follow the reader's light or dark setting; the dark bands
   stay dark in both. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f1e7; --panel: #fffcf6; --ink: #1f1c18; --muted: #5f584c; --line: #e2d9c8;
  --accent: #8a5f12; --accent-ink: #fffcf6; --note: #efe6d3;
  --band: #1f1c18; --band-ink: #fffcf6; --band-muted: #c9bfac; --gold: #d4a73c;
  --shadow: 0 18px 48px rgba(31, 28, 24, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1815; --panel: #24211d; --ink: #f2ede4; --muted: #b9b0a1; --line: #3a352e;
    --accent: #e0b25a; --accent-ink: #1a1815; --note: #2c2823; --band: #121110;
    --shadow: 0 18px 48px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1815; --panel: #24211d; --ink: #f2ede4; --muted: #b9b0a1; --line: #3a352e;
  --accent: #e0b25a; --accent-ink: #1a1815; --note: #2c2823; --band: #121110;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; margin: .4rem 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15; margin: 0 0 .8rem; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 1.4rem 0 .5rem; }
.wrap, header, main, footer { max-width: 72rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* the header, kept in view: charcoal in light and dark alike, so the gilt name has its contrast (Kai) */
header { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, #1f1c18 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 252, 246, .08); }
header .name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink);
  text-decoration: none; margin-right: auto; }
/* the name in spaced gilt capitals between two fading rules, like the lettering on a book's spine
   (Kai), in bright foil on the charcoal header */
.wordmark { display: inline-flex; align-items: center; gap: .55em; line-height: 1; white-space: nowrap; text-decoration: none;
  --wm-foil: linear-gradient(100deg, #9c7726 0%, #d9be7f 28%, #f3e2ae 46%, #c49a45 64%, #8e6a1e 100%); --wm-rule: #c9a45c; }
.wordmark .wm-t { font: 500 .62em "Fraunces", Georgia, serif; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase;
  background: var(--wm-foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .wm-rule { width: 1.6em; height: 1px; flex: none; background: linear-gradient(90deg, transparent, var(--wm-rule), transparent); }
header .name.wordmark { font-size: 42px; margin-right: auto; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; }
header nav a { color: #f2ede4; text-decoration: none; }
header nav a:hover { color: var(--gold); }
header .btn.primary { background: var(--gold); border-color: var(--gold); color: #1f1c18; }
header nav .btn { padding: 7px 14px; font-size: 14px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 .8rem; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dark .btn { background: transparent; color: var(--band-ink); border-color: rgba(255, 252, 246, .35); }
.dark .btn.primary { background: var(--gold); border-color: var(--gold); color: #1f1c18; }

/* the dark bands: the hero, privacy and the last call */
.dark { background: var(--band); color: var(--band-ink); }
.dark a:not(.btn) { color: var(--gold); }
.dark .lede, .dark p { color: var(--band-muted); }
.dark h1, .dark h2, .dark h3 { color: var(--band-ink); }
.eyebrow { display: inline-block; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 40rem; }
.reassure { font-size: 14px; margin: 0; }

.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-art { position: relative; min-height: 420px; }
.hero-art img { position: absolute; display: block; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hero-art .back { width: 92%; right: -14%; top: 8px; opacity: .9; border: 1px solid rgba(255, 252, 246, .12); }
.hero-art .front { width: 62%; left: 0; top: 60px; background: #fff; transform: rotate(-2deg); }

/* the facts band */
.facts { padding: 34px 0; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact b { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.35rem, 4.6vw, 1.9rem); line-height: 1.1; font-weight: 600; }
.fact span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

section.block { padding: 72px 0; }
.intro { max-width: 46rem; margin-bottom: 2rem; }
.intro p { color: var(--muted); font-size: 1.08rem; }

/* the meeting in three steps */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.step h3 { margin-top: 0; }
.step p { margin: 0; color: var(--muted); }

/* the features, picture and words side by side */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; padding: 36px 0; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: 1.6rem; margin-top: 0; }
.feature-text p { color: var(--muted); }
.feature-text ul { padding-left: 1.1rem; color: var(--muted); }
.feature-text li { margin: .3rem 0; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot.paper img { background: #fff; max-width: 30rem; margin: 0 auto; }
.shot figcaption { margin-top: .7rem; color: var(--muted); font-size: 14px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 20px 24px; margin-top: 24px; }
.callout h3 { margin-top: 0; }
.callout p { margin: 0; color: var(--muted); }

/* privacy */
.privacy { padding: 64px 0; }
.privacy-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; max-width: 56rem; }
.privacy svg { width: 56px; height: 56px; color: var(--gold); }
.privacy p { font-size: 1.1rem; }

/* pricing */
.price-card { max-width: 34rem; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow); text-align: center; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 3.4rem; line-height: 1; font-weight: 600; margin: .2rem 0; }
.price small { font-family: "Inter", system-ui, sans-serif; font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-alt { color: var(--muted); margin: .4rem 0 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem auto; text-align: left; max-width: 24rem; }
.ticks li { padding-left: 28px; position: relative; margin: .55rem 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-card .actions { justify-content: center; }

/* questions */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* the last call */
.last { padding: 64px 0; text-align: center; }
.last ol { display: inline-block; text-align: left; margin: .4rem 0 0; color: var(--band-muted); }
.last .actions { justify-content: center; }

/* the other pages and the shared pieces */
main { padding-bottom: 8px; }
.top + main { padding-top: 40px; }
.film { margin: 1.6rem 0; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.film video { display: block; width: 100%; height: 100%; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; margin: 1rem 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card.mine { outline: 2px solid var(--accent); }
.note { background: var(--note); border-radius: 12px; padding: 14px 18px; }
ol.steps li { margin: .5rem 0; }
.small { font-size: 14px; color: var(--muted); }
code { font-size: .92em; }
.household { margin: 28px auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); max-width: 72rem; }
.notify { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type="email"] { flex: 1 1 14rem; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; }
.notify .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
footer { padding-top: 2rem; padding-bottom: 2.4rem; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 3rem; }

/* a phone or a narrow window: one column */
@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .feature, .steps3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .hero-art { min-height: 0; }
  .hero-art img { position: static; }
  .hero-art .back { display: none; }
  .hero-art .front { width: 100%; max-width: 26rem; margin: 0 auto; transform: none; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  section.block { padding: 48px 0; }
  header nav .hide-narrow { display: none; }
  header .name.wordmark { font-size: 34px; }
}
/* a phone: the name and the download button share the header's one line */
@media (max-width: 600px) {
  header .name.wordmark { font-size: 22px; }
  header .name.wordmark .wm-rule { width: .5em; }
}

/* What it models: the hub's cards, and each area's page with its contents beside the text */
.page-hero { padding: 48px 0 52px; }
.crumb { font-size: 14px; margin: 0 0 .6rem; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 20px; }
.area { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.area:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.area img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left;
  border-bottom: 1px solid var(--line); }
.area .area-text { padding: 16px 18px 20px; }
.area h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.area p { margin: 0; color: var(--muted); font-size: 15px; }
.area .more { margin-top: .7rem; color: var(--accent); font-weight: 600; font-size: 15px; }
.doc-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 24px; }
.toc { position: sticky; top: 84px; font-size: 15px; }
.toc p { margin: 0 0 .5rem; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; }
.toc li a:hover { color: var(--accent); }
.doc { max-width: 46rem; }
.doc > section { scroll-margin-top: 84px; padding-bottom: 12px; }
.doc h2 { font-size: 1.7rem; margin: 0 0 .7rem; padding-top: 8px; }
.doc h3 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.15rem; }
.doc li { margin: .35rem 0; }
.doc .shot { margin: 1.6rem 0 2rem; }
.example { background: var(--note); border-radius: 14px; padding: 18px 22px; margin: 1.4rem 0; }
.example b.tag { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.example p { margin: .3rem 0 0; }
.next-prev { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 8px; padding-top: 20px;
  border-top: 1px solid var(--line); }
.next-prev a { text-decoration: none; font-weight: 600; }
.next-prev span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 28px; }
  .doc h2 { font-size: 1.45rem; }
  .toc { position: static; }
}
.shot a { display: block; cursor: zoom-in; }
/* a phone: the areas three across, each card the computer's own scaled down */
@media (max-width: 600px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .area { border-radius: 10px; }
  .area .area-text { padding: 7px 7px 9px; }
  .area h3 { font-size: 11.5px; line-height: 1.25; margin: 0 0 .25rem; }
  .area p { font-size: 9.5px; line-height: 1.4; }
  .area .more { margin-top: .4rem; font-size: 9.5px; }
}
