/* Tenfold website. Editorial and product-first: warm paper, ink type, one
   accent for money and the Me pocket. Onest for all text, Unbounded only for
   the wordmark and money numerals. Light by default, dark follows the system. */

@font-face { font-family: "Onest"; src: url(/assets/fonts/Onest-Regular.woff?v=301b7a3735) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/Onest-Medium.woff?v=5313a80579) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/Onest-SemiBold.woff?v=513681e13f) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url(/assets/fonts/Onest-Bold.woff?v=50125f9359) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(/assets/fonts/Unbounded-Bold.woff?v=e2bad360d9) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(/assets/fonts/Unbounded-ExtraBold.woff?v=09f9c0e394) format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light dark;
  /* CLAUDE.md tokens. Muted is a shade deeper than the app's #77736C so body
     text on paper passes AA (4.85:1). */
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --sunk: #ECE8E1;
  --ink: #151414;
  --muted: #6E6A63;
  --line: #E3DED5;
  --accent: #FF4A1C;
  --accent-hover: #F03E10;
  --violet: #7B5CFF;
  --good: #1E9E5A;
  --good-text: #17804A;
  --warn: #E8890C;

  --p-me: #FF4A1C;
  --p-debt: #151414;
  --p-wife: #FF9C78;
  --p-living: #FFD9CB;
  --on-me: #FFFFFF;
  --on-debt: #F5F3EF;
  --on-wife: #151414;
  --on-living: #151414;
  /* Same tint the canvas jars draw (jars.js), so both versions match. */
  --jar: rgb(21 20 20 / 0.07);
  --tick: rgb(21 20 20 / 0.14);

  --panel: #151414;
  --on-panel: #F4F1EC;
  --panel-muted: #A8A39A;
  --panel-line: rgb(244 241 236 / 0.14);

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-device: 0 60px 90px -50px rgb(70 40 20 / 0.42), 0 24px 40px -30px rgb(21 20 20 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E0D;
    --surface: #1B1A18;
    --sunk: #262421;
    --ink: #F4F1EC;
    --muted: #9A958C;
    --line: #2E2B27;
    --accent: #FF5A2E;
    --accent-hover: #FF6E46;
    --violet: #6E4BFF;
    --good: #3CCB7F;
    --good-text: #3CCB7F;
    --warn: #F2B441;

    --p-me: #FF5A2E;
    --p-debt: #F4F1EC;
    --p-living: #5B3326;
    --on-debt: #151414;
    --on-living: #F4F1EC;
    --jar: rgb(244 241 236 / 0.08);
    --tick: rgb(244 241 236 / 0.16);

    --panel: #1B1A18;
    --on-panel: #F4F1EC;
    --panel-muted: #9A958C;
    --panel-line: #2E2B27;
    --shadow-device: 0 60px 90px -50px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.06);
  }
}

/* MARK: Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 600; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }

/* MARK: Type */

.h1 {
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: clamp(2.125rem, 1.2rem + 3.3vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.55; color: var(--muted); }
.hl { color: var(--accent); }

/* MARK: Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 40px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.wordmark { font: 700 18px/1 var(--display); letter-spacing: -0.035em; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  padding: 6px 7px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* MARK: Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; margin: 0; padding: 0 26px; border-radius: 16px;
  font: 700 19px/1.1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ink { background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 600; }
/* Not live yet: a quiet status, not a button. */
.btn--soon {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; font-weight: 600; cursor: default;
}
.btn--soon:active { transform: none; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.btn--sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; gap: 8px; }
.btn--sm .soon-dot { width: 6px; height: 6px; }
.store-badge img { height: 54px; width: auto; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-note { color: var(--muted); font-size: 16px; }

.more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
}
.more .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.more:hover { text-decoration: underline; }
.more:hover .icon { transform: translateX(3px); }

/* MARK: Device (CSS iPhone around a screenshot) */

.device { container-type: inline-size; width: 100%; }
.phone {
  position: relative;
  padding: 3.1cqi;
  border-radius: 15.6cqi;
  background: #0D0D0F;
  box-shadow:
    inset 0 0 0 0.5cqi #2B2B30,
    inset 0 0 0 0.9cqi #0D0D0F,
    0 0 0 1px rgb(21 20 20 / 0.12),
    var(--shadow-device);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 0.9cqi; border-radius: 1cqi; background: #26262A;
}
.phone::before { left: -0.7cqi; top: 20%; height: 7%; box-shadow: 0 11cqi 0 #26262A; }
.phone::after { right: -0.7cqi; top: 27%; height: 11%; }
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 720 / 1564;
  border-radius: 12.6cqi;
  background: var(--sunk);
  isolation: isolate;
}
.screen img, .screen picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.screen-video.is-playing { opacity: 1; }
.island {
  position: absolute; z-index: 2; left: 50%; top: 1.55%;
  width: 31%; aspect-ratio: 3.55; border-radius: 999px;
  background: #000; transform: translateX(-50%);
}

/* MARK: Sections */

.section { padding-block: var(--section) 0; }
main > .section:last-child { padding-bottom: var(--section); }
.section-title { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 88px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-lead { font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem); line-height: 1.5; color: var(--muted); max-width: 26em; }
.hero-copy .cta-row { margin-top: 12px; }
.hero-phone { justify-self: center; width: min(100%, 380px); }

/* Just say it: the chat */
.chat-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px); align-items: center;
}
.chat-copy { display: grid; gap: 24px; order: 2; max-width: 520px; }
.ticks { list-style: none; display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.ticks li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }

.chat {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 500px; justify-self: start;
  display: grid; gap: 18px;
  padding: 18px 18px 18px;
  border-radius: 40px;
  background:
    radial-gradient(90% 50% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    radial-gradient(80% 40% at 0% 60%, color-mix(in srgb, var(--violet) 6%, transparent), transparent 70%),
    var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgb(70 40 20 / 0.45);
  font-family: var(--font);
}
.chat-head { text-align: center; display: grid; gap: 2px; padding-top: 6px; }
.chat-title { font: 700 17px/1.2 var(--display); letter-spacing: -0.03em; }
.chat-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.chat-thread { display: grid; gap: 14px; align-content: start; }
.msg-me {
  justify-self: end; max-width: 88%;
  padding: 11px 16px; border-radius: 22px 22px 6px 22px;
  background: var(--accent); color: #FFFFFF;
  font-size: 16px; font-weight: 500; line-height: 1.35;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.msg-ai { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; padding-right: 18px; }
.ai-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #FFFFFF;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}
.ai-avatar .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.ai-card {
  display: grid; gap: 10px; padding: 14px 16px;
  border-radius: 6px 22px 22px 22px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface)),
    color-mix(in srgb, var(--violet) 8%, var(--surface)));
}
.ai-label { font: 500 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.r-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.r-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.r-icon--warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.r-icon--good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.r-text { display: grid; min-width: 0; line-height: 1.3; }
.r-text b { font-size: 15px; font-weight: 600; }
.r-text span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.r-amount { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-amount--in { color: var(--good-text); }
.ai-card hr { width: 100%; margin: 2px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.ai-foot { font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--muted); }
.r-split { list-style: none; display: grid; gap: 7px; }
.r-split li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; line-height: 1.3; }
.r-split b { font-weight: 700; font-variant-numeric: tabular-nums; }
.swatch { display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--ink) 22%, transparent); }
.swatch--me { --c: var(--p-me); }
.swatch--debt { --c: var(--p-debt); }
.swatch--wife { --c: var(--p-wife); }
.swatch--living { --c: var(--p-living); }
.ai-dots {
  position: absolute; left: 36px; top: 0; height: 36px; padding: 0 14px;
  display: flex; align-items: center; gap: 5px;
  border-radius: 6px 18px 18px 18px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  opacity: 0; pointer-events: none;
}
.ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.chat-input { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
.chat-field {
  position: relative; display: flex; align-items: center; gap: 0;
  height: 52px; padding: 0 56px 0 20px; border-radius: 999px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; white-space: nowrap; overflow: hidden;
}
.chat-placeholder { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.chat-typed { display: none; }
.chat-send {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.chat-send .icon { width: 18px; height: 18px; }
.chat-mic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.chat-mic .icon { width: 22px; height: 22px; }

/* The scripted exchange (site.js): type, send, think, answer. */
.chat.is-armed .msg-me,
.chat.is-armed .ai-card,
.chat.is-armed .ai-avatar { opacity: 0; transform: translateY(10px); }
.chat .msg-me, .chat .ai-card, .chat .ai-avatar { transition: opacity 0.45s ease, transform 0.6s var(--ease); }
.chat .ai-dots { transition: opacity 0.25s ease; }
.chat.is-typing .chat-placeholder { display: none; }
.chat.is-typing .chat-typed { display: inline; }
.chat.is-typing .chat-typed::after {
  content: ""; display: inline-block; width: 2px; height: 1.15em; margin-left: 1px;
  vertical-align: -0.2em; background: var(--accent); animation: caret 1s steps(1) infinite;
}
.chat.is-sent .msg-me { opacity: 1; transform: none; }
.chat.is-thinking .msg-ai--a .ai-avatar { opacity: 1; transform: none; }
.chat.is-thinking .ai-dots { opacity: 1; }
.chat.is-thinking .ai-dots i { animation: dot 1.1s ease-in-out infinite; }
.chat.is-thinking .ai-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat.is-thinking .ai-dots i:nth-child(3) { animation-delay: 0.3s; }
.chat.is-answered .msg-ai .ai-avatar,
.chat.is-answered .msg-ai .ai-card { opacity: 1; transform: none; }
.chat.is-answered .msg-ai--b .ai-avatar,
.chat.is-answered .msg-ai--b .ai-card { transition-delay: 0.9s; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Pockets */
.pockets-head { display: grid; gap: 28px; }
.pockets-title { max-width: 19.5em; font-size: clamp(2rem, 1.2rem + 2.9vw, 3.5rem); line-height: 1.08; }
.pockets-head .lead { max-width: 34em; }

.jars { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.jar-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--jar-gap); }
.jars, .legend { --jar-gap: clamp(10px, 2vw, 24px); --jar-radius: clamp(18px, 2.4vw, 30px); }
.jar {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(220px, 30vw, 400px);
  border-radius: var(--jar-radius);
  background: var(--jar);
}
.jar::after {
  /* the tick marks on the side of the app's jars */
  content: ""; position: absolute; z-index: 2; right: 10%; top: 8%; bottom: 8%; width: 8%; max-width: 12px;
  background: repeating-linear-gradient(to bottom, var(--tick) 0 1.5px, transparent 1.5px 12.5%);
  pointer-events: none;
}
.jar-liquid {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: var(--lvl);
  background: var(--c); color: var(--c);
  transition: transform 1.4s var(--ease);
}
.wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; max-width: none; height: 14px; fill: currentColor; animation: wave 6s linear infinite; }
.wave--back { opacity: 0.45; bottom: calc(100% - 3px); animation-duration: 9s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-50%); } }
.jar-icon { position: absolute; z-index: 3; top: clamp(12px, 1.6vw, 20px); left: clamp(12px, 1.6vw, 20px); width: clamp(18px, 1.8vw, 24px); height: clamp(18px, 1.8vw, 24px); color: var(--ink); }
.jar-pct {
  position: absolute; z-index: 3; left: clamp(12px, 1.6vw, 20px);
  bottom: min(calc(var(--lvl) + 14px), calc(100% - 4.4em));
  font: 700 clamp(16px, 2.1vw, 28px)/1 var(--display); letter-spacing: -0.03em;
  color: var(--ink);
}
.jar--me { --c: var(--p-me); }
.jar--debt { --c: var(--p-debt); }
.jar--wife { --c: var(--p-wife); }
.jar--living { --c: var(--p-living); }
.lvl-30 { --lvl: 30%; } .lvl-44 { --lvl: 44%; } .lvl-80 { --lvl: 80%; }
/* The canvas module (jars.js) draws the liquid; the CSS jars keep the labels. */
.jar-canvas { position: absolute; inset: 0; z-index: 0; }
.jars.is-live .jar-row { position: relative; z-index: 1; pointer-events: none; }
.jars.is-live .jar { background: transparent; }
.jars.is-live .jar-liquid { display: none; }

.legend { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--jar-gap); margin-top: 24px; }
.pocket { display: grid; gap: 2px; align-content: start; }
.pocket .swatch { display: none; }
.pocket-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.pocket-share { display: none; }
.pocket-amount { font: 700 clamp(22px, 2.3vw, 32px)/1.2 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.pocket-note { color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 6px; }

.notes {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line);
}
.notes h3 { font-size: 17px; letter-spacing: -0.01em; }
.notes p { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 6px; }

/* Budgets, goals, answers */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.shot { display: grid; gap: 22px; align-content: start; }
.shot-stage {
  position: relative; overflow: hidden;
  height: clamp(420px, 44vw, 600px);
  display: flex; justify-content: center;
  padding-top: clamp(36px, 4.4vw, 64px);
  border-radius: 32px;
  background: var(--sunk);
}
.shot-stage .device { width: min(78%, 330px); flex: none; }
.shot figcaption { display: grid; gap: 6px; padding-right: 12px; }
.shot figcaption p { color: var(--muted); font-size: 17px; line-height: 1.5; }

/* Privacy: one quiet, solid panel */
.privacy {
  display: grid; gap: clamp(40px, 5vw, 64px);
  padding: clamp(36px, 6vw, 88px);
  border-radius: 36px;
  background: var(--panel); color: var(--on-panel);
  box-shadow: 0 0 0 1px var(--panel-line);
}
.privacy .h2 { max-width: 12em; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.facts li { display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--panel-line); }
.facts p { color: var(--panel-muted); font-size: 17px; line-height: 1.55; }
.privacy .more { color: var(--on-panel); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.pricing-copy { display: grid; gap: 24px; position: sticky; top: 120px; }
.plan {
  display: grid; gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plan-name { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.plan-period { color: var(--muted); font-size: 15px; font-weight: 500; }
.plan-price { display: grid; gap: 10px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.price-num { font: 800 clamp(3.5rem, 2.4rem + 4vw, 5.5rem)/0.95 var(--display); letter-spacing: -0.05em; }
.price-cents { font-size: 0.44em; letter-spacing: -0.02em; vertical-align: top; position: relative; top: 0.14em; margin-left: 0.04em; }
.price-per { color: var(--muted); font-size: 18px; font-weight: 500; }
.price-after { font-size: 17px; font-weight: 500; }
.plan-features { list-style: none; display: grid; border-top: 1px solid var(--line); }
.plan-features li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.plan-features .icon { width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.2; }
.plan-cta .btn { width: 100%; }
.fine { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { display: grid; gap: 20px; position: sticky; top: 120px; }
.faq-more { color: var(--muted); font-size: 17px; }
.faq-more a { color: var(--ink); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--muted); }
.qa-a { padding: 0 48px 24px 0; }
.qa-a p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 38em; }
.qa-a a { color: var(--ink); }

/* MARK: Footer */

.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-cta { display: grid; gap: 28px; padding-bottom: clamp(56px, 7vw, 96px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.footer-tagline { font-size: clamp(2.125rem, 1.2rem + 3.3vw, 3.75rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; width: fit-content; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 40px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-legal > div { display: grid; gap: 6px; max-width: 760px; }
.footer-tm { font-size: 13px; }

/* MARK: Documents (privacy, terms, subscription, support) */

.doc {
  display: grid; grid-template-columns: minmax(0, 720px); justify-content: center;
  row-gap: clamp(32px, 4vw, 48px);
  padding-block: clamp(48px, 7vw, 104px) clamp(88px, 10vw, 144px);
}
.doc-head { display: grid; gap: 14px; }
.doc-title { font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; }
.doc-updated { color: var(--muted); font-size: 16px; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.doc-meta dt { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.doc-meta dd { font-weight: 500; }

.toc { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.toc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; font-size: 15px; font-weight: 600;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease;
}
.toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ul { list-style: none; padding: 0 18px 16px; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); }

@media (min-width: 1080px) {
  .doc--toc { grid-template-columns: 220px minmax(0, 720px); column-gap: clamp(56px, 6vw, 96px); }
  .doc--toc > * { grid-column: 2; }
  .doc--toc .doc-aside { grid-column: 1; grid-row: 2 / span 2; }
  .doc--toc .toc { position: sticky; top: 96px; background: none; box-shadow: none; border-radius: 0; }
  .doc--toc .toc summary { padding: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 500; cursor: default; pointer-events: none; }
  .doc--toc .toc summary::after { display: none; }
  .doc--toc .toc ul { padding: 0; gap: 0; border-left: 1px solid var(--line); }
  .doc--toc .toc a { padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; }
  .doc--toc .toc a[aria-current="true"] { border-left-color: var(--ink); }
}

.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); line-height: 1.25; letter-spacing: -0.025em; margin-top: 64px; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.015em; margin-top: 36px; }
.prose h4 { font-size: 1.0625rem; margin: 28px 0 0; font-weight: 600; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 8px 0; padding-left: 0.2em; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration-color: color-mix(in srgb, var(--accent) 75%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose code { font: 0.86em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--sunk); overflow-wrap: anywhere; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--line); color: var(--muted); }
.prose .note { padding: 20px 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.prose .note > * + * { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; font-weight: 600; color: var(--muted); }

.doc-more { padding-top: 32px; border-top: 1px solid var(--line); }
.doc-more h2 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.doc-more ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; }
.doc-more a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 600; text-decoration: none; }
.doc-more a .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.doc-more a:hover { text-decoration: underline; }
.doc-more a:hover .icon { transform: translateX(3px); }

.not-found { min-height: 50vh; align-content: start; }
.not-found .lead { margin-top: 8px; }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* MARK: Motion. Only below the fold, only with JS, never with reduced motion. */

.js .reveal.pending { opacity: 0; transform: translateY(12px); }
.js .reveal { transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.js .jars.pending .jar-liquid { transform: translateY(100%); }
.jar:nth-child(2) .jar-liquid { transition-delay: 0.1s; }
.jar:nth-child(3) .jar-liquid { transition-delay: 0.2s; }
.jar:nth-child(4) .jar-liquid { transition-delay: 0.3s; }
.shots .shot:nth-child(2) { transition-delay: 0.08s; }
.shots .shot:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
  .js .jars.pending .jar-liquid { transform: none; }
  .screen-video { display: none; }
}

/* MARK: Responsive */

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .chat-grid, .pricing-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { width: min(76%, 340px); margin-top: 8px; }
  .chat-copy { order: 0; }
  .pricing-copy, .faq-head { position: static; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts li { padding: 24px 0; }
  .facts li:last-child { padding-bottom: 0; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .shot-stage { height: 540px; }
  .chat { justify-self: center; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .prose { font-size: 17px; }
  .header-in { gap: 12px; height: 60px; }
  .header-actions { gap: 8px; }
  .shot-stage { height: 460px; }
  .shot-stage .device { width: min(74%, 300px); }
  .notes { margin-top: 40px; padding-top: 0; border-top: 0; }
  .jar { height: 230px; }
  .jar-icon { top: 10px; left: 10px; }
  .jar-pct { left: 10px; }
  .jar::after { right: 8%; }
  .legend { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
  .pocket {
    grid-template-columns: 12px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px;
    align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .pocket .swatch { display: block; width: 12px; height: 12px; border-radius: 4px; align-self: center; }
  .pocket-name { font-size: 17px; }
  .pocket-share { display: inline; color: var(--muted); font-weight: 500; margin-left: 4px; }
  .pocket-amount { grid-row: 1; grid-column: 3; font-size: 18px; margin: 0; }
  .pocket-note { grid-column: 2 / -1; font-size: 15px; margin: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { border-radius: 32px; padding: 14px 12px 12px; }
  .msg-ai { padding-right: 0; }
  .qa summary { font-size: 18px; }
  .qa-a { padding-right: 0; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 16px; }
  .brand { gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .lang a { padding: 6px 4px; font-size: 13px; }
  .btn--sm { padding: 0 11px; font-size: 13px; }
}

@media print {
  .site-header, .site-footer, .doc-more, .doc-aside, .skip { display: none; }
  body { background: #FFFFFF; color: #000000; }
  .doc { display: block; padding: 0; }
}
