/* visual-website-r1 v007 — direction B, At the table
   Design tokens. Copied into each Cloudflare Pages root as tokens.css.
   site.css imports this file. See HANDOFF.md and tokens.json for documentation. */
:root {
  /* Colour */
  --color-ink: #1E2235;
  --color-ink-2: #4A4F63;
  --color-ink-3: #5E6375;
  --color-bg: #F4EFE8;
  --color-surface: #FBF7F2;
  --color-card: #FFFFFF;
  --color-line: #E4DCD1;
  --color-brand: #A63D2E;
  --color-coral: #E5684F;          /* decoration only; never body text on off-white */
  --color-brand-soft: #FFF6F3;
  --color-soft: #F8E6E1;
  --color-primary: #24294A;
  --color-tag-ink: #7A3022;
  --color-tag-bg: #FFF6F3;
  --color-trial-border: #F0C7BB;
  --color-nav-hover: #EFE8DF;
  --color-focus: #A63D2E;
  --color-example-btn-bg: #E8E4DE;
  --color-example-btn-border: #B8B3AB;
  --color-example-btn-ink: #5C5C5C;

  /* Backward-compatible aliases used in site.css (v002 names) */
  --ink: var(--color-ink);
  --ink2: var(--color-ink-2);
  --ink3: var(--color-ink-3);
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --card: var(--color-card);
  --line: var(--color-line);
  --brand: var(--color-brand);
  --coral: var(--color-coral);
  --brandsoft: var(--color-brand-soft);
  --soft: var(--color-soft);
  --primary: var(--color-primary);
  --tagink: var(--color-tag-ink);
  --tagbg: var(--color-tag-bg);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-weight-body: 430;
  --font-weight-medium: 600;
  --font-weight-semibold: 650;
  --font-weight-bold: 700;
  --font-weight-display: 600;

  --text-body: 17px;
  --text-body-sm: 16px;
  --leading-body: 1.55;
  --text-kicker: 13px;
  --text-kicker-tight: 12px;
  --leading-kicker: 1.3;
  --text-nav: 14px;
  --text-meta: 14px;
  --text-footer: 14px;
  --text-h1-home: 44px;
  --text-h1-home-sm: 30px;
  --text-h1-page: 42px;
  --text-h1-page-sm: 32px;
  --text-h1-chd: 34px;
  --text-h1-chd-sm: 26px;
  --text-h2: 28px;
  --text-h2-sm: 24px;
  --text-h3: 22px;
  --text-h3-sm: 20px;
  --text-h4: 16px;
  --leading-display: 1.12;
  --leading-heading: 1.2;
  --tracking-display: -0.025em;
  --tracking-heading: -0.02em;
  --tracking-kicker: 0.04em;

  /* Space (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --radius-3xl: 24px;
  --radius-pill: 999px;

  /* Layout */
  --measure-page: 1160px;
  --measure-narrow: 800px;
  --measure-home: 820px;
  --gutter: 40px;
  --gutter-sm: 20px;
  --rail-width: 260px;
  --bp-stack: 800px;
  --tap: 44px;
  --header-min: 72px;
  --lockup-height: 44px;
  --lockup-height-sm: 40px;

  /* v005 additions: direction-B home (hero, phone preview, cards, bands, CTA) */
  --color-lilac: #ECE4F6;
  --color-lilac-ink: #553A86;     /* 7.28:1 on lilac */
  --color-amber: #FBEAC6;
  --color-amber-ink: #6E4600;     /* 6.97:1 on amber */
  --color-teal: #D8EEE9;
  --color-teal-ink: #1C625A;      /* 5.89:1 on teal */
  --color-phone-shell: #14151B;
  --color-btn-fg: #FFFFFF;        /* 6.31:1 on brand */
  --lilac: var(--color-lilac);
  --lilink: var(--color-lilac-ink);
  --amber: var(--color-amber);
  --ambink: var(--color-amber-ink);
  --teal: var(--color-teal);
  --tealink: var(--color-teal-ink);

  --text-h1-hero: 56px;
  --text-h1-hero-sm: 34px;
  --leading-hero: 1.08;
  --text-lead: 19px;
  --text-lead-sm: 17px;
  --text-card-title: 24px;
  --text-card-body: 15.5px;
  --text-band-h: 28px;
  --phone-width: 260px;
  --radius-phone: 36px;
  --radius-phone-screen: 28px;
  --radius-hero-stage: 32px;
  --shadow-phone: 0 18px 40px rgba(30, 34, 53, 0.22);
  --hero-gap: 56px;
}

/* visual-website-r1 v005 — direction B, At the table */

/* Skip link: visually hidden until focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--color-card);
  color: var(--color-brand);
  font-weight: 650;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid var(--color-brand);
  text-decoration: none;
  transform: translateY(-200%);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* Visible focus for keyboard users (WCAG 2.4.7) */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.nav-links a:focus-visible,
footer.site nav a:focus-visible,
.toc-in a:focus-visible,
.legal-links a:focus-visible,
.rail a:focus-visible,
.brand:focus-visible,
.head-link:focus-visible {
  outline-offset: 2px;
  border-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 16px; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.ph-token, .ph {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.92em;
  font-weight: 650;
  color: var(--tagink);
  border: 1.5px dashed var(--brand);
  border-radius: 6px;
  padding: 0 5px;
  background: var(--tagbg);
  line-height: 1.3;
  white-space: nowrap;
}
.mailto { font-weight: 650; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 40px; }

/* Header */
.nav-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  min-height: 72px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; color: inherit; }
.lockup { height: 44px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a, .nav-links span.on {
  color: var(--ink2);
  text-decoration: none;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  line-height: 1.25;
}
.nav-links a:hover { color: var(--ink); background: #EFE8DF; }
.nav-links span.on, .nav-links a.on { color: var(--ink); background: #EFE8DF; }
.nav-links a.lang { color: var(--brand); }
.nav-links a.chd { max-width: none; }

/* Home */
.home-main { padding: 48px 0 24px; }
.home-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 44px 44px;
  box-shadow: 0 1px 0 rgba(30,34,53,.03);
  max-width: 820px;
}
.home-card .kicker {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.home-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.publisher { font-size: 18px; color: var(--ink2); margin-bottom: 22px; }
.trial {
  background: var(--brandsoft);
  border: 1px solid #F0C7BB;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 28px;
}
.legal-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 28px; }
.legal-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.3;
}
.legal-links a:hover { border-color: var(--brand); color: var(--brand); }
.legal-links a .arrow { margin-left: auto; color: var(--brand); font-weight: 700; padding-left: 12px; }
.store-row p { font-size: 14px; color: var(--ink2); margin-bottom: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-ph {
  width: 220px; height: 58px;
  background: var(--badge);
  border: 1.5px solid var(--badgeborder);
  border-radius: 10px;
  color: var(--ink);
  font-size: 12.5px; font-weight: 650;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8px 12px; line-height: 1.25;
}

/* Footer */
footer.site {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.5;
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 4px; }
footer.site nav a, footer.site nav span {
  color: var(--ink2);
  text-decoration: none;
  min-height: 44px;
  padding: 10px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
footer.site nav a:hover { color: var(--brand); }
footer.site strong { color: var(--ink); font-weight: 650; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand p, .foot-meta { margin: 0; }
.foot-meta { color: var(--ink2); }

.foot-note { margin-top: 12px; font-size: 13px; }
footer.site .stores { margin-top: 8px; }
.lockup-foot { height: 36px; width: auto; }

/* Inner pages */
.page-pad { padding: 40px 0 8px; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 8px 0 12px;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  font-size: 15px;
  margin: 0 0 8px;
}
.intro { font-size: 18px; max-width: 46em; margin: 8px 0 12px; }
.intro p + p { margin-top: 12px; }
.meta { font-size: 14px; color: var(--ink2); margin: 0 0 24px; }

/* Prelaunch notice (prelaunch-notice-v002): under the title/version line on privacy and CHD only */
.page-head .prelaunch-notice { margin: 0 0 8px; }
.prelaunch-notice {
  background: var(--brandsoft);
  border: 1px solid var(--color-trial-border);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.prelaunch-notice h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
.prelaunch-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

/* In-page nav */
.toc-in {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px 18px;
  margin: 0 0 28px;
}
.toc-in h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.toc-in ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc-in a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
}
.toc-in a:hover { border-color: var(--brand); color: var(--brand); }
.toc-in a.out { color: var(--brand); }

/* Policy layout */
.policy-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 28px;
}
.rail {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 24px 20px 36px;
}
.rail h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.rail ol { list-style: none; }
.rail li { font-size: 13px; padding: 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.rail a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 0;
}
.rail a span { color: var(--brand); font-weight: 650; margin-right: 6px; flex: none; }
.rail a:hover { color: var(--brand); }
.article { padding: 32px 40px 48px; }
.article h2, .block h2, .chd-body h1, .chd-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.article h2, .block h2 { font-size: 28px; margin: 36px 0 12px; }
.article h2:first-child, .block h2:first-child { margin-top: 0; }
.article h3, .chd-body h3, .notice h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
  line-height: 1.25;
}
.article h4, .chd-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.article p, .article li, .block p, .block li, .chd-body p, .chd-body li {
  font-size: 16px;
  line-height: 1.55;
}
.article p + p, .block p + p, .chd-body p + p { margin-top: 10px; }
.article ul, .article ol, .block ul, .chd-body ul { margin: 10px 0 14px 1.15em; }
.article li, .block li, .chd-body li { margin: 0 0 6px; }
.article table, .chd-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
  table-layout: fixed;
}
.article th, .article td, .chd-body th, .chd-body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.article th, .chd-body th {
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink2);
  font-weight: 700;
}

.short-box {
  background: var(--brandsoft);
  border: 1px solid #F0C7BB;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 0 0 8px;
}
.short-box h2, .short-box h3 { margin-top: 0; font-size: 24px; }
.short-box ul { list-style: none; margin-left: 0; }
.short-box li {
  position: relative;
  padding: 0 0 10px 20px;
  margin: 0;
}
.short-box li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* Notice */
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 16px 0;
}
.example-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}
.ex-btn {
  min-height: 44px;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid #B8B3AB;
  background: #E8E4DE;
  color: #5C5C5C;
  font-weight: 650;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.notice-note { font-size: 14px; color: var(--ink2); margin-top: 8px; }
.other-versions { margin: 18px 0 0; }
.other-versions h3 { font-size: 18px; margin-bottom: 8px; }
.other-versions ul { list-style: none; margin: 0; }
.other-versions li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  min-height: 44px;
  font-weight: 600;
}
details.more {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
details.more summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--brand);
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more .more-body { margin-top: 12px; }

/* FAQ */
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 0 0 8px; }
.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 32px 32px;
  margin: 0 0 20px;
}
.help-box {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 4px 16px 16px 4px;
  padding: 16px 18px;
  margin-top: 14px;
}

/* CHD page */
.chd-page .article-solo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 44px 48px;
}
.chd-body h1 {
  font-size: 34px;
  margin: 0 0 12px;
}
.chd-page footer.site .stores { display: none; }

@media (max-width: 800px) {
  html, body { font-size: 16px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0 14px; }
  .nav-links { justify-content: flex-start; width: 100%; }
  .nav-links a, .nav-links span.on { padding: 10px 10px; }
  .nav-links a.chd { max-width: none; }
  .lockup { height: 40px; }
  .home-main { padding: 24px 0 16px; }
  .home-card { padding: 24px 20px 28px; border-radius: 20px; }
  .home-card h1 { font-size: 30px; }
  .page-pad { padding-top: 24px; }
  .page-head h1 { font-size: 32px; }
  .policy-grid { grid-template-columns: 1fr; border-radius: 18px; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .article { padding: 22px 16px 32px; }
  .block, .chd-page .article-solo { padding: 22px 16px 28px; border-radius: 18px; }
  .chd-body h1 { font-size: 26px; }
  .article h2, .block h2 { font-size: 24px; }
  .badge-ph { width: 100%; max-width: 280px; }
  footer.site { margin-top: 36px; padding: 24px 0 36px; }
  /* stacked tables */
  .article table, .chd-body table { table-layout: auto; font-size: 15px; }
  .article thead, .chd-body thead { display: none; }
  .article table, .article tbody, .article tr, .article td,
  .chd-body table, .chd-body tbody, .chd-body tr, .chd-body td { display: block; width: 100%; }
  .article tr, .chd-body tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .article td, .chd-body td { padding: 2px 0; border: 0; }
  .article td:first-child, .chd-body td:first-child { font-weight: 650; }
}

/* Long URLs and placeholders wrap instead of overflowing */
.article p, .article li, .block p, .block li, .chd-body p, .chd-body li,
.intro, .meta, .notice, .trial, .prelaunch-notice, .publisher, .foot-note, footer.site {
  overflow-wrap: break-word;
}
.ph-token, .ph, .var-token {
  white-space: normal;
  overflow-wrap: break-word;
}
.var-token {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.92em;
  font-weight: 650;
  color: var(--tagink);
  border: 1.5px dashed var(--brand);
  border-radius: 6px;
  padding: 0 5px;
  background: var(--tagbg);
  line-height: 1.3;
}

/* 404 */
.notfound {
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 44px;
  margin: 48px auto;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 12px;
}
.notfound p { margin: 0 0 16px; color: var(--ink2); font-size: 18px; }
.notfound ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.notfound a.row {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.notfound a.row:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 800px) {
  .notfound { padding: 24px 20px; border-radius: 20px; margin: 24px auto; }
  .notfound h1 { font-size: 32px; }
}


/* ========================================================================
   v005 home — full direction B structure (hero + phone, cards, bands, CTA)
   Scoped under body.home so privacy, CHD and 404 styles are unchanged.
   New custom properties are in tokens.css and documented in HANDOFF.md.
   ======================================================================== */

body.home .home-hero {
  padding: 64px 0 28px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--hero-gap);
  align-items: center;
}
body.home .eyebrow {
  font-size: var(--text-kicker);
  font-weight: 650;
  color: var(--color-brand);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: var(--leading-kicker);
}
body.home .home-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h1-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-display);
}
body.home .lead {
  margin-top: 20px;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-ink);
  overflow-wrap: break-word;
  max-width: 38em;
}
body.home .hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
body.home .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 22px;
  background: var(--color-brand);
  color: var(--color-btn-fg);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
}
body.home .btn-primary:hover {
  background: var(--color-ink);
  color: var(--color-btn-fg);
}

/* Phone preview (HTML/CSS, not an image) */
body.home .phone-figure {
  margin: 0;
}
body.home .phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 40%, var(--color-soft) 0%, var(--color-bg) 68%);
  border-radius: var(--radius-hero-stage);
  padding: 36px 16px 28px;
}
body.home .phone {
  width: var(--phone-width);
  background: var(--color-phone-shell);
  border-radius: var(--radius-phone);
  padding: 8px;
  box-shadow: var(--shadow-phone);
}
body.home .phone-screen {
  background: var(--color-surface);
  border-radius: var(--radius-phone-screen);
  overflow: hidden;
  padding: 0 0 16px;
  position: relative;
}
body.home .phone-status {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 0;
  font-size: 11px;
  font-weight: 650;
  color: var(--color-ink);
}
body.home .island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #000;
  border-radius: 12px;
}
body.home .phone-body { padding: 8px 14px 0; }
body.home .phone-body .screen-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: var(--tracking-heading);
  margin: 0 0 8px;
  line-height: 1.2;
}
body.home .chip {
  display: block;
  background: var(--color-amber);
  color: var(--color-amber-ink);
  font-size: 11px;
  font-weight: 650;
  border-radius: 12px;
  padding: 8px 10px;
  line-height: 1.35;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
body.home .chip-range {
  font-weight: 650;
  margin-top: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
body.home .sig {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
body.home .sig i {
  display: block;
  width: 3px;
  background: var(--color-ink);
  border-radius: 1px;
}
body.home .sig i:nth-child(1) { height: 4px; }
body.home .sig i:nth-child(2) { height: 6px; }
body.home .sig i:nth-child(3) { height: 8px; }
body.home .sig i:nth-child(4) { height: 10px; }
body.home .est {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
  border: 1px solid #BDB5AA;
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.3;
}
body.home .phone-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-ink-2);
  margin: 0 0 10px;
  overflow-wrap: break-word;
}
body.home .tip {
  background: var(--color-brand-soft);
  border: 1px solid var(--color-trial-border);
  border-radius: 14px;
  padding: 10px 12px;
}
body.home .tip .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 4px;
  overflow-wrap: break-word;
}
body.home .tip p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: break-word;
}
body.home .phone-caption {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-ink-2);
  margin: 12px 8px 0;
  overflow-wrap: break-word;
}

/* Three cards */
body.home .home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 12px 0 8px;
}
body.home .home-cards > .home-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  padding: 24px 22px 26px;
  box-shadow: 0 1px 0 rgba(30, 34, 53, 0.03);
  min-width: 0;
}
body.home .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
body.home .icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.home .icon.cal { background: var(--color-lilac); color: var(--color-lilac-ink); }
body.home .icon.heart { background: var(--color-soft); color: var(--color-brand); }
body.home .icon.shield { background: var(--color-teal); color: var(--color-teal-ink); }
body.home .home-cards .home-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-card-title);
  letter-spacing: var(--tracking-heading);
  line-height: 1.2;
  margin: 0 0 10px;
}
body.home .home-cards .home-card p {
  font-size: var(--text-card-body);
  line-height: 1.5;
  color: var(--color-ink);
  overflow-wrap: break-word;
  margin: 0;
}

/* Consent and privacy bands */
body.home .home-bands { padding-bottom: 8px; }
body.home .home-band {
  margin: 36px 0 0;
  border-radius: 28px;
  padding: 36px 40px;
}
body.home .home-band.consent {
  background: var(--color-brand-soft);
  border: 1px solid var(--color-trial-border);
}
body.home .home-band.privacy {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  margin-top: 18px;
}
body.home .home-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-band-h);
  letter-spacing: var(--tracking-heading);
  margin: 10px 0 12px;
  line-height: 1.2;
}
body.home .home-band p {
  font-size: 17px;
  max-width: 46em;
  overflow-wrap: break-word;
  margin: 0;
}
body.home .home-band ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
body.home .home-band li {
  position: relative;
  padding: 0 0 8px 22px;
  font-size: 16px;
  overflow-wrap: break-word;
}
body.home .home-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
}
body.home .rule {
  width: 40px;
  height: 3px;
  background: var(--color-coral);
  border-radius: 2px;
}
body.home .privacy-note {
  margin-top: 16px !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink-2);
  max-width: 46em;
}
body.home .privacy-link {
  margin-top: 12px !important;
}
body.home .privacy-link a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 650;
}

/* Get the app (badges hidden until listings are live) */
body.home .store-block {
  padding: 48px 0 8px;
}
body.home .store-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-band-h);
  letter-spacing: var(--tracking-heading);
  margin: 10px 0 12px;
  line-height: 1.2;
}
body.home .prelaunch {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0 0 20px;
  max-width: 40em;
  overflow-wrap: break-word;
}
body.home .store-block .trial { margin-bottom: 20px; }
body.home .store-block .legal-links { margin-bottom: 0; }

@media (max-width: 800px) {
  body.home .home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 8px;
  }
  body.home .home-hero h1 { font-size: var(--text-h1-hero-sm); }
  body.home .lead { font-size: var(--text-lead-sm); max-width: none; }
  body.home .phone-stage { padding: 24px 12px 16px; }
  body.home .home-cards { grid-template-columns: 1fr; }
  body.home .home-band {
    padding: 24px 20px;
    border-radius: 22px;
    margin-top: 16px;
  }
  body.home .home-band h2,
  body.home .store-block h2 { font-size: var(--text-h2-sm); }
  body.home .store-block { padding: 36px 0 8px; }
}
