/*
 * Spacend web. Colours are the app's roles (apps/mobile/src/shared/theme/tokens.ts),
 * light and dark. No web fonts and no third parties: the CSP allows 'self' only,
 * and the system stack is the app's own typeface on Apple devices.
 */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}
:root {
  color-scheme: light;
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --cream: #fbf7ef;
  --ink: #0f2e24;
  --coral: #ff8a5b;
  --sun: #ffd166;
  --sky: #8ccbff;
  --lilac: #bba6ff;
  --pink: #ff9ec7;
  --mint: #8ee3b5;
  --tile-edge: rgb(15 46 36 / 22%);
  --background: #fbf7ef;
  --canvas: #f4efe3;
  --surface: #ffffff;
  --sage: #e6f0e7;
  --text: #090d0c;
  --text-secondary: #5f6872;
  --separator: #e8e1d2;
  --accent: #245e4c;
  --accent-subtle: #eaf3ed;
  --action: #10392d;
  --on-action: #ffffff;
  --gold: #c9973f;
  --warning-subtle: #fff4d6;
  --warning-text: #6b4000;
  --shadow: 0 1px 2px rgb(16 57 45 / 6%), 0 12px 40px -12px rgb(16 57 45 / 18%);
  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --page: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--action); color: var(--on-action);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--background);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--separator); }
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform-origin: 0 50%;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; }
.wordmark { height: 26px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--text-secondary); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--text); }
.lang {
  display: inline-flex; align-items: center; list-style: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--separator); border-radius: 999px;
  padding: 5px 11px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.lang::-webkit-details-marker { display: none; }
.language-picker { position: relative; }
.language-options {
  position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; min-width: 205px;
  padding: 6px; display: grid; gap: 2px; border: 1px solid var(--separator);
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
}
.language-options a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--text-secondary); text-decoration: none; }
.language-options a:hover, .language-options a[aria-current='page'] { background: var(--canvas); color: var(--text); }
@media (max-width: 640px) { .site-nav .optional { display: none; } }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { color: var(--text); letter-spacing: -0.022em; }
.display { font-size: clamp(42px, 7.4vw, 84px); line-height: 1.02; font-weight: 700; margin: 18px 0 20px; letter-spacing: -0.035em; }
.display em { font-style: normal; color: var(--accent); }
.section-title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 700; margin: 12px 0 14px; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-secondary); max-width: 34em; margin: 0; }
p, li { color: var(--text-secondary); font-size: 17px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--action); color: var(--on-action);
  font-weight: 600; font-size: 17px; text-decoration: none;
  padding: 15px 24px; border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button:active { transform: scale(0.97); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--separator); }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--action); color: var(--on-action);
  padding: 10px 20px 10px 16px; border-radius: 14px; text-decoration: none;
}
.store-badge svg { width: 24px; height: 24px; fill: currentColor; }
.store-badge small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.2; }
.store-badge strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.store-badge[aria-disabled='true'] { cursor: default; }
.note { font-size: 14px; color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; }

.hero-blob {
  position: absolute; top: -18%; right: -14%; width: min(64vw, 820px); aspect-ratio: 1;
  border-radius: 50%; background: var(--sage); opacity: 0.7; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- Phone mockup (pure HTML/CSS: no screenshots to go stale) ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.orbit {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 1px dashed var(--separator);
}
.orbit span {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px;
  background: var(--background); border: 1px solid var(--separator); box-shadow: var(--shadow);
}
.orbit span:nth-child(1) { top: -26px; left: calc(50% - 26px); }
.orbit span:nth-child(2) { top: calc(50% - 26px); right: -26px; }
.orbit span:nth-child(3) { bottom: -26px; left: calc(50% - 26px); }
.orbit span:nth-child(4) { top: calc(50% - 26px); left: -26px; }
@media (max-width: 560px) { .orbit { width: 360px; height: 360px; } .stage { min-height: 560px; } }

.phone {
  position: relative; width: 300px; padding: 12px; border-radius: 52px;
  background: #0b0d0c; box-shadow: 0 40px 80px -30px rgb(16 57 45 / 45%), 0 0 0 1px rgb(255 255 255 / 6%) inset;
}
.phone-parallax { position: relative; z-index: 1; }
.screen {
  position: relative; border-radius: 40px; overflow: hidden;
  background: var(--background); padding: 44px 18px 20px; min-height: 560px;
  display: flex; flex-direction: column; gap: 14px;
}
.screen::before {
  content: ''; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  border-radius: 999px; background: #0b0d0c;
}
.screen-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 0; color: var(--text); }
.screen-sub { font-size: 13px; margin: 0; color: var(--text-secondary); }
.ring-card {
  background: var(--sage); border-radius: 26px; padding: 18px; display: grid; place-items: center; gap: 6px;
}
.ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring .track { stroke: var(--accent-subtle); }
.ring .fill {
  stroke: var(--accent); stroke-linecap: round;
}
.ring-wrap { position: relative; }
.ring-value {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--text);
}
.ring-value small { display: block; font-size: 11px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--background); color: var(--accent); border-radius: 999px;
  font-size: 12px; font-weight: 600; padding: 5px 10px;
}
.pill .spark { color: var(--gold); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini {
  background: var(--surface); border-radius: 18px; padding: 12px;
}
.mini b { display: block; font-size: 13px; color: var(--text); margin-top: 6px; }
.mini span { font-size: 12px; color: var(--text-secondary); }
.mini .emoji { font-size: 18px; }
.mini.add { background: transparent; border: 1px dashed var(--separator); }
.mini.add span { color: var(--accent); font-weight: 600; }

.float-card {
  position: absolute; background: var(--background); border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow); border: 1px solid var(--separator);
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); z-index: 2;
}
.float-card small { display: block; color: var(--text-secondary); font-size: 11px; }
.float-card .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent); font-weight: 700; }
.float-card.one { top: 31%; left: -10%; }
.float-card.two { bottom: 14%; right: -6%; }
@media (max-width: 560px) { .float-card.one { left: 0; } .float-card.two { right: 0; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--canvas); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feature {
  grid-column: span 4; background: var(--background); border: 1px solid var(--separator);
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature.wide { grid-column: span 8; background: var(--sage); border-color: transparent; }
.feature.accent { background: var(--sage); border-color: transparent; }
.feature.accent .icon { background: var(--background); }
.feature h3 { font-size: 22px; margin: 18px 0 8px; letter-spacing: -0.015em; }
.feature p { margin: 0; font-size: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-subtle); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.feature.wide .icon { background: var(--background); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--background);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--text); font-weight: 500;
}
.bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: 22px; }
.bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--accent); }
@media (max-width: 900px) {
  .feature, .feature.wide { grid-column: span 12; }
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: var(--background); border: 1px solid var(--separator); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--action); color: var(--on-action); font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 20px; margin: 18px 0 6px; }
.step p { margin: 0; font-size: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.promise {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--action); color: var(--on-action); border-radius: var(--radius-lg); padding: 56px;
}
.promise h2, .promise p, .promise li { color: var(--on-action); }
.promise .eyebrow { color: var(--on-action); opacity: 0.8; }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.promise li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.promise a { color: var(--on-action); }
@media (max-width: 800px) { .promise { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { border-radius: var(--radius); padding: 32px; border: 1px solid var(--separator); background: var(--background); }
.plan.plus { background: var(--sage); border-color: transparent; }
.plan h3 { font-size: 24px; margin: 0 0 4px; }
.plan ul { padding: 0; list-style: none; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 16px; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--separator); border-radius: var(--radius-sm); background: var(--background); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 16px; }

.cta { text-align: center; padding: 112px 0; }
.cta .actions { justify-content: center; }

/* ---------- Legal pages ---------- */
.doc { padding: 56px 0 24px; }
.doc h1 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 12px; }
.doc .meta { font-size: 14px; color: var(--text-secondary); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -0.015em; scroll-margin-top: 84px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--separator); color: var(--text-secondary); }
.doc th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.summary-box {
  background: var(--sage); border-radius: var(--radius); padding: 24px 26px; margin: 8px 0 8px;
}
.summary-box h2 { margin-top: 0; }
.summary-box ul { margin-bottom: 0; }
.toc { border: 1px solid var(--separator); border-radius: var(--radius-sm); padding: 18px 22px; margin: 28px 0; }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--text); font-size: 15px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; font-size: 15px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; }
.steps-list li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent); font-weight: 700; font-size: 14px;
}
.callout { border-left: 3px solid var(--accent); background: var(--canvas); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0; }
.callout p { margin: 0; }
mark.fill {
  background: var(--warning-subtle); color: var(--warning-text);
  padding: 1px 6px; border-radius: 6px; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--separator); padding: 48px 0 40px; margin-top: 48px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { font-size: 14px; margin: 12px 0 0; max-width: 28em; }
.fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--separator); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: var(--text-secondary); }
.fine a { color: inherit; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Small pages (join, 404) */
.page { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.page header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page header img { height: 28px; width: auto; }
.page h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 56px 0 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.card p { margin: 8px 0 0; }
.badge { display: inline-block; background: var(--accent-subtle); color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.page .button { display: flex; justify-content: center; margin-top: 20px; }
.muted { font-size: 15px; }
.page footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--separator); font-size: 14px; color: var(--text-secondary); }
.page footer a { color: inherit; }



/* ---------- Hero type ---------- */
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.word { display: inline-block; }
.word.accent { color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-subtle); }
.button.ghost span { display: inline-block; }

/* ---------- Life band ---------- */
.band { overflow: hidden; border-block: 1px solid var(--separator); padding: 18px 0; background: var(--background); }
.band-track { display: flex; gap: 12px; width: max-content; }
.band .chip { background: var(--surface); white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { position: relative; }
.steps-line {
  position: absolute; top: 46px; left: 8%; right: 8%; height: 2px; background: var(--separator);
  transform-origin: 0 50%; z-index: 0;
}
.step { position: relative; z-index: 1; }
.step::before { content: none; }
.step-number {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--action); color: var(--on-action); font-weight: 700; font-size: 15px;
}
@media (max-width: 800px) { .steps-line { display: none; } }

.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link span { display: inline-block; transition: transform 0.3s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }
.plan h3 { display: flex; align-items: center; gap: 8px; }
.plus-spark { color: var(--gold); display: inline-block; }

/* ---------- FAQ (button accordion) ---------- */
.faq-item { border: 1px solid var(--separator); border-radius: var(--radius-sm); background: var(--background); overflow: hidden; }
.faq-item.open { border-color: var(--accent-subtle); box-shadow: var(--shadow); }
.faq-item h3 { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq-item button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  padding: 18px 20px; font-weight: 600; font-size: 17px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius-sm); }
.faq-icon { color: var(--accent); font-size: 24px; line-height: 1; display: inline-block; }
.faq-panel { overflow: hidden; }
.faq-panel p { margin: 0; padding: 0 20px 18px; font-size: 16px; }

/* ---------- Legal layout ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; max-width: 1080px; }
.doc-layout .toc { position: sticky; top: 88px; margin: 0; border: 0; padding: 0; }
.doc-layout .toc ol { columns: 1; list-style: none; padding: 0; display: grid; gap: 2px; }
.doc-layout .toc a {
  position: relative; display: block; padding: 6px 12px; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none; font-size: 14px;
}
.doc-layout .toc a[aria-current='location'] { color: var(--accent); font-weight: 600; }
.toc-marker { position: absolute; inset: 0; border-radius: 10px; background: var(--accent-subtle); z-index: -1; }
.doc-layout .toc li { position: relative; z-index: 0; }
.doc-body { min-width: 0; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-layout .toc { position: static; order: -1; border: 1px solid var(--separator); border-radius: var(--radius-sm); padding: 16px; }
}
.footer-title { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arrow-link span { transition: none; }
}


/* =================================================================
 * Showcase (a1 references: Clockout, Tokens Studio)
 * ================================================================= */
.display, .section-title, .mega, .statement-title, .words, .cta .section-title {
  font-family: var(--display);
  font-stretch: 84%;
  font-weight: 800;
  color: var(--ink);
}
.display { font-size: clamp(44px, 5.6vw, 80px); line-height: 0.94; letter-spacing: -0.02em; margin: 0 0 24px; }
.section-title { font-size: clamp(38px, 5.4vw, 68px); line-height: 0.96; letter-spacing: -0.02em; }
.mega { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.88; letter-spacing: -0.025em; text-transform: uppercase; margin: 0 0 20px; }
.button, .store-badge { border-radius: 999px; }
.button.ghost { border-width: 1.5px; border-color: var(--ink); color: var(--ink); }

/* Hero */
.hero { padding: 48px 0 96px; }
.hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 56px; }
.hero-blob { display: none; }
.canvas-stage { position: relative; }
.canvas {
  position: relative; aspect-ratio: 6 / 5.4; border-radius: 36px; overflow: hidden;
  background: var(--pink);
  box-shadow: 0 50px 90px -40px rgb(15 46 36 / 45%);
}
.blobs { position: absolute; inset: 0; width: 100%; height: 100%; }
.blob { transform-box: fill-box; transform-origin: center; }
.blob.coral { fill: var(--coral); }
.blob.pink { fill: #ffb7d5; }
.blob.sun { fill: var(--sun); }
.ui-card {
  position: absolute; background: #fffdf8; color: #0f2e24; border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgb(15 46 36 / 55%), 0 0 0 1px rgb(15 46 36 / 6%);
}
.add-card { left: 9%; top: 11%; width: 54%; padding: 18px; display: grid; gap: 6px; font-size: 13px; }
.ui-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ui-head b { flex: 1; font-size: 15px; }
.ui-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); }
.ui-x { color: #8a8f88; font-size: 18px; }
.ui-label { font-size: 11px; font-weight: 600; color: #6c746b; margin-top: 4px; }
.ui-field {
  display: flex; align-items: center; gap: 8px; border: 1px solid #e7e1d4; border-radius: 12px;
  padding: 9px 12px; background: #fff;
}
.ui-field.amount { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 30px; padding: 10px 14px; }
.ui-field.muted { color: #8a8f88; }
.caret { display: inline-block; width: 2px; height: 26px; background: #245e4c; margin-left: -4px; }
.ui-save {
  justify-self: end; margin-top: 8px; background: #10392d; color: #fff; font-weight: 700;
  border-radius: 999px; padding: 8px 18px; font-size: 13px;
}
.ring-mini {
  right: 4%; bottom: 5%; width: 32%; padding: 16px; display: grid; justify-items: center; gap: 2px;
}
.ring-mini .ring { width: 70%; height: auto; transform: rotate(-90deg); }
.ring-mini .track { stroke: #eaf3ed; }
.ring-mini .fill { stroke: #245e4c; stroke-linecap: round; }
.ring-mini b { font-family: var(--display); font-stretch: 80%; font-size: 28px; line-height: 1; margin-top: -58%; margin-bottom: 38%; }
.ring-mini span { font-size: 11px; color: #6c746b; }
.ui-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #245e4c; text-transform: uppercase; letter-spacing: 0.06em; }
.member-chip {
  position: absolute; right: 6%; top: 8%; display: flex; align-items: center; gap: 8px;
  background: #fffdf8; color: #0f2e24; border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 13px; font-weight: 600; box-shadow: 0 18px 36px -18px rgb(15 46 36 / 55%);
}
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .canvas { aspect-ratio: 4 / 4.6; }
  .add-card { width: 62%; left: 5%; top: 17%; }
  .ring-mini { width: 29%; right: 3%; bottom: 5%; padding: 10px; }
  .ring-mini b { font-size: 20px; }
  .member-chip { top: 4%; right: auto; left: 4%; font-size: 12px; }
}

/* Stickers: chunky tiles with a hard bottom edge, like die-cut stickers / 3D tokens */
.sticker {
  position: absolute; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 24px; font-size: 38px;
  box-shadow: 0 6px 0 var(--tile-edge), 0 24px 40px -20px rgb(15 46 36 / 45%);
  border: 3px solid #fffdf8; cursor: default; user-select: none;
}
.sticker.coral, .tile.coral, .tone-coral { background: var(--coral); }
.sticker.sun, .tile.sun, .tone-sun { background: var(--sun); }
.sticker.sky, .tile.sky, .tone-sky { background: var(--sky); }
.sticker.lilac, .tile.lilac, .tone-lilac { background: var(--lilac); }
.sticker.pink, .tile.pink { background: var(--pink); }
.sticker.mint, .tile.mint { background: var(--mint); }

/* Statement */
.statement { position: relative; display: grid; place-items: center; padding: 140px 20px; overflow: hidden; background: var(--ink); }
.statement-title { font-size: clamp(40px, 6vw, 84px); line-height: 0.94; letter-spacing: -0.02em; text-align: center; margin: 0; position: relative; z-index: 3; }
.statement .statement-title { color: #fffdf8; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line { display: block; }
.statement .s1 { top: 14%; left: 18%; }
.statement .s2 { top: 10%; right: 22%; }
.statement .s3 { top: 46%; left: 8%; }
.statement .s4 { bottom: 12%; right: 16%; }
.statement .s5 { bottom: 8%; left: 30%; }
.statement .s6 { top: 50%; right: 7%; }
@media (max-width: 700px) {
  .sticker { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }
  /* Phones: stickers frame the sentence from above and below, never across it. */
  .statement { padding: 150px 16px; }
  .statement-title { font-size: 32px; }
  .statement .s1 { top: 6%; left: 8%; } .statement .s2 { top: 4%; right: 10%; }
  .statement .s4 { bottom: 6%; right: 8%; } .statement .s5 { bottom: 4%; left: 12%; }
  .statement .s3, .statement .s6 { display: none; }
}

/* Life words */
.life-words { padding: 40px 0 120px; background: var(--background); }
.life-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.life-side { position: sticky; top: 30vh; display: grid; gap: 28px; justify-items: start; }
.sticker.big { position: relative; width: 150px; height: 150px; font-size: 72px; border-radius: 40px; }
.words { list-style: none; margin: 0; padding: 0; font-size: clamp(40px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.02em; }
.words li { padding: 2px 0; font-size: inherit; color: var(--ink); }
@media (max-width: 800px) {
  .life-grid { grid-template-columns: 1fr; }
  .life-side { position: static; grid-auto-flow: column; align-items: center; }
  .sticker.big { width: 96px; height: 96px; font-size: 46px; border-radius: 28px; }
}

/* Month showcase */
.month-showcase { padding: 112px 0 176px; background: var(--canvas); overflow: hidden; }
.month-showcase .lead { margin-bottom: 40px; }
.dash-stage { position: relative; max-width: 760px; margin: 0 auto; padding: 72px 0 56px; }
.dash {
  position: relative; z-index: 1; background: var(--surface); border-radius: 28px; padding: 24px;
  box-shadow: 0 50px 100px -50px rgb(15 46 36 / 45%), 0 0 0 1px var(--separator);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--text); }
.dash-pill { background: var(--accent-subtle); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.dash-card { background: var(--canvas); border-radius: 20px; padding: 18px; display: grid; gap: 6px; }
.dash-card > span { font-size: 13px; color: var(--text-secondary); }
.dash-card strong { font-family: var(--display); font-stretch: 80%; font-size: 40px; line-height: 1; color: var(--ink); }
.dash-card.accent { background: var(--sage); justify-items: start; }
.dash-card .ring { width: 110px; height: 110px; transform: rotate(-90deg); justify-self: center; margin-top: 8px; }
.dash-card .ring .track { stroke: var(--background); }
.dash-card .ring .fill { stroke: var(--accent); stroke-linecap: round; }
.bars { display: grid; gap: 10px; margin-top: 10px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.bar-row b { color: var(--text); text-align: right; }
.bar-track { height: 10px; border-radius: 999px; background: var(--background); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; }
.tile {
  position: absolute; z-index: 2; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
  color: #0f2e24; min-width: 150px;
  box-shadow: 0 8px 0 var(--tile-edge), 0 30px 50px -24px rgb(15 46 36 / 50%);
  border: 3px solid #fffdf8;
}
.tile span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.tile b { font-family: var(--display); font-stretch: 82%; font-size: 22px; line-height: 1.1; }
.tile.t1 { top: -12%; left: -12%; }
.tile.t2 { top: 8%; right: -16%; }
.tile.t3 { top: 46%; left: -20%; }
.tile.t4 { top: 50%; right: -18%; }
.tile.t5 { bottom: -4%; left: 4%; }
.tile.t6 { bottom: -8%; right: 6%; }
@media (max-width: 1000px) {
  .tile.t1 { left: -2%; } .tile.t2 { right: -2%; } .tile.t3 { left: -4%; } .tile.t4 { right: -4%; }
}
@media (max-width: 700px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stage { padding: 96px 0 72px; }
  .tile { min-width: 0; padding: 10px 12px; }
  .tile b { font-size: 16px; }
  .tile.t2, .tile.t3, .tile.t4, .tile.t6 { display: none; }
  /* Tiles sit in the stage's own top and bottom padding, never over the copy. */
  .tile.t1 { top: 8px; left: 0; } .tile.t2 { top: 20px; right: 0; }
  .tile.t5 { bottom: 0; left: 8px; }
}

/* Feature and plan cards pick up the sticker palette */
.feature { background: var(--surface); }
.feature.wide { background: var(--sun); }
.feature.import { grid-column: span 8; background: var(--mint); border-color: transparent; }
.feature.import h3, .feature.import p { color: var(--ink); }
.feature.wide h3, .feature.wide p { color: #0f2e24; }
.feature.accent { background: var(--sky); }
.feature.accent h3, .feature.accent p { color: #0f2e24; }
.feature.wide .icon, .feature.import .icon, .feature.accent .icon { background: #fffdf8; color: #245e4c; }
.feature.wide .chip, .feature.import .chip { background: #fffdf8; color: #0f2e24; }
@media (max-width: 900px) {
  .feature.import { grid-column: span 12; }
}
.bar { background: rgb(255 253 248 / 70%); }
.bar i { background: #10392d; }
.plan.plus { background: var(--mint); }
.plan.plus h3, .plan.plus p, .plan.plus li { color: #0f2e24; }
.plan.plus li::before { color: #10392d; }
.cta .section-title { font-size: clamp(40px, 6vw, 84px); line-height: 0.9; }
