/* Lifecharts marketing site. Same palette and type as the app (styles.css), light and dark. */

:root {
  --bg: #F8F2EA;
  --bg-alt: #F2EADF;
  --surface: #FFFCF7;
  --ink: #2A221D;
  --ink2: #5F534A;
  --muted: #8C7F75;
  --hairline: #ECE2D6;
  --hairline-strong: #DED1C1;
  --accent: #A3482B;
  --accent-soft: rgba(163, 72, 43, 0.1);
  --on-accent: #FFFFFF;
  --rise: #C98316;
  --fall: #3E6AB0;
  --band-bg: #1A1520;
  --band-surface: #231C2B;
  --band-ink: #F4ECE4;
  --band-ink2: #CBBEC6;
  --band-hairline: #382E42;
  --band-accent: #F0AE86;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(60, 35, 15, 0.06);
  --shadow: 0 1px 2px rgba(60, 35, 15, 0.05), 0 10px 34px rgba(60, 35, 15, 0.08);
  --shadow-lg: 0 2px 6px rgba(40, 22, 8, 0.06), 0 30px 80px rgba(40, 22, 8, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1520;
    --bg-alt: #1F1926;
    --surface: #251E2D;
    --ink: #F4ECE4;
    --ink2: #CBBEC6;
    --muted: #978B97;
    --hairline: #382E42;
    --hairline-strong: #4A3E56;
    --accent: #F0AE86;
    --accent-soft: rgba(240, 174, 134, 0.12);
    --on-accent: #1B1410;
    --rise: #C4862C;
    --fall: #6A8BDB;
    --band-bg: #120E17;
    --band-surface: #1D1724;
    --band-hairline: #2E2638;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 36px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.35), 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right)); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--on-accent); }
.brand-mark .icon { width: 22px; height: 22px; stroke-width: 2.3; }
.brand-mark.small { width: 28px; height: 28px; border-radius: 9px; }
.brand-mark.small .icon { width: 17px; height: 17px; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ App Store badge (placeholder until the app is live) */

.appstore {
  display: inline-flex; align-items: center; gap: 7px;
  background: #000; color: #fff;
  border: 1px solid #A6A6A6;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.appstore[href] { cursor: pointer; }
.appstore[href]:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.appstore-logo { fill: currentColor; flex: none; }
.appstore-text { display: flex; flex-direction: column; line-height: 1; font-family: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; }
.appstore-small { font-size: 0.5em; font-weight: 500; letter-spacing: 0.01em; }
.appstore-big { font-size: 1em; font-weight: 600; letter-spacing: -0.02em; margin-top: 0.12em; }
.appstore-sm { height: 40px; padding: 0 13px 0 10px; font-size: 18px; margin-left: 8px; }
.appstore-sm .appstore-logo { width: 19px; height: 19px; }
.appstore-lg { height: 56px; padding: 0 20px 0 15px; font-size: 25px; gap: 9px; border-radius: 13px; }
.appstore-lg .appstore-logo { width: 27px; height: 27px; }

.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rise); box-shadow: 0 0 0 0 color-mix(in srgb, var(--rise) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rise) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
html.app-live .soon { display: none; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding: 64px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2);
  box-shadow: var(--shadow-sm);
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 7.4vw, 86px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { margin: 22px auto 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink2); }
.cta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 32px; }

/* ------------------------------------------------------------------ demo chart card */

.demo {
  margin: 56px 0 0; padding: 22px 22px 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 4px; }
.quote { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-height: 40px; }
.ticker {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent);
  align-self: center;
}
.quote-price { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.quote-change { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.quote-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.up { color: var(--rise); }
.down { color: var(--fall); }
.flat { color: var(--muted); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg); border: 1px solid var(--hairline); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--hairline); }
.seg-sm button { padding: 5px 11px; font-size: 13px; }

.demo-chart { position: relative; height: 420px; margin: 12px 0 6px; touch-action: pan-y; cursor: crosshair; outline: none; }
.demo-chart:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 14px; }
.demo-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px 0; }
.demo-hint { font-size: 13px; color: var(--muted); }

.tip {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none;
  min-width: 150px; max-width: 250px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.4;
}
.tip-date { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tip-title { font-family: var(--serif); font-size: 15px; font-weight: 600; margin-top: 2px; }
.tip-row { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.tip-row b { color: var(--ink); font-weight: 600; }
.tip-grid { display: grid; grid-template-columns: auto auto; gap: 1px 16px; margin-top: 4px; }

/* chart internals (colors come from tokens, so the color presets restyle everything live) */
.c-grid { stroke: var(--hairline); stroke-width: 1; }
.c-axis { fill: var(--muted); font: 500 11px var(--sans); font-variant-numeric: tabular-nums; }
.c-today { stroke: var(--hairline-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.c-today-label { fill: var(--muted); font: 600 10.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-line-future { stroke-dasharray: 1 6; stroke-width: 2.6; }
.c-area-stop { stop-color: var(--accent); }
.c-dot { stroke: var(--surface); stroke-width: 2.5; }
.c-dot.rise, .c-up { fill: var(--rise); }
.c-dot.fall, .c-down { fill: var(--fall); }
.c-dot.first { fill: var(--accent); }
.c-dot.future { fill: var(--surface); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 2.4; }
.c-wick-up { stroke: var(--rise); }
.c-wick-down { stroke: var(--fall); }
.c-ma { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.85; }
.c-vol-up { fill: var(--rise); opacity: 0.28; }
.c-vol-down { fill: var(--fall); opacity: 0.28; }
.c-label { fill: var(--ink2); font: 500 11.5px var(--sans); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.c-cross { stroke: var(--ink); stroke-width: 1; opacity: 0.25; }
.c-hover { stroke: var(--surface); stroke-width: 3; }
.c-hover-ring { fill: none; stroke-width: 2; opacity: 0.35; }
.c-hl { fill: var(--ink); opacity: 0.05; }

.draw .c-line-solid { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.4s cubic-bezier(0.55, 0.1, 0.25, 1) forwards; }
.draw .c-area { opacity: 0; animation: fadein 1s 1.6s forwards; }
.draw .c-pop { opacity: 0; animation: pop 0.45s var(--d, 0s) both; }
.draw .c-line-future { opacity: 0; animation: fadein 0.6s 2.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ ticker tape */

.tape { overflow: hidden; background: var(--ink); color: var(--bg); border-block: 1px solid var(--ink); }
.tape-track { display: flex; width: max-content; animation: tape 70s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 13px 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; border-right: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
.tape-item b { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.tape-item .t-up { color: color-mix(in srgb, var(--rise) 72%, #fff); }
.tape-item .t-down { color: color-mix(in srgb, var(--fall) 60%, #fff); }
.tape-item .t-flat { opacity: 0.6; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-color-scheme: dark) {
  .tape { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
  .tape-item { border-right-color: var(--hairline); }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 104px 0; scroll-margin-top: 40px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--hairline); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section-head h2, .split-copy h2 { margin-top: 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--ink2); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.step h3 { margin-top: 14px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.step p { margin-top: 10px; color: var(--ink2); font-size: 16px; }
.step strong { color: var(--ink); font-family: var(--mono); font-size: 0.92em; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-wide { grid-column: span 3; }
.card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.card-copy p { margin-top: 8px; color: var(--ink2); font-size: 15.5px; }
.mock { margin-top: auto; border-radius: 16px; background: var(--bg); border: 1px solid var(--hairline); padding: 16px; }

/* editor mock */
.editor { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field-input { display: block; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-input.num { font-weight: 650; font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor-move { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.editor-move span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--surface); font-variant-numeric: tabular-nums; }

/* mini candles */
.mini-chart { height: 214px; padding: 10px 6px 4px; }
.mini-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ticker card */
.listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.listing-field { display: flex; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline-strong); font-family: var(--mono); font-size: 22px; font-weight: 700; cursor: text; }
.listing-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.listing-dollar { color: var(--accent); }
.listing-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font: inherit; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em; padding: 0; }
.listing-field input::placeholder { color: var(--muted); opacity: 0.6; }
.listing-hint { font-size: 14px; color: var(--ink2); }
.listing-hint strong { font-family: var(--mono); color: var(--ink); }
.try { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* watchlist */
.watchlist { list-style: none; margin: 0; padding: 0; display: grid; }
.wl-row { display: grid; grid-template-columns: 1fr 64px auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.wl-row:last-child { border-bottom: 0; }
.wl-tick { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.wl-price { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 1px; font-family: var(--sans); font-weight: 500; }
.wl-spark { width: 64px; height: 26px; overflow: visible; }
.wl-spark path { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wl-chg { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 7px; border-radius: 7px; min-width: 66px; text-align: right; }
.wl-chg.up { background: color-mix(in srgb, var(--rise) 14%, transparent); }
.wl-chg.down { background: color-mix(in srgb, var(--fall) 14%, transparent); }

/* colors */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.swatch:hover { color: var(--ink); border-color: var(--muted); }
.swatch[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sw { display: inline-flex; }
.sw i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); }
.sw i + i { margin-left: -5px; }
.sw-mono i:first-child { background: var(--ink); }
.sw-mono i:last-child { background: var(--muted); }

/* today */
.today { display: grid; gap: 10px; justify-items: start; }
.today-q { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.today-q .icon { color: var(--rise); }
.today-prompt { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; min-height: 2.7em; transition: opacity 0.2s; }
.today-prompt.swap { opacity: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; font-size: 14px; font-weight: 650; color: var(--accent); cursor: pointer; }
.link-btn .icon { width: 17px; height: 17px; }

/* memory */
.memory { display: flex; align-items: center; gap: 12px; }
.memory > div { flex: 1; min-width: 0; }
.memory-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rise); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rise) 20%, transparent); flex: none; }
.memory-when { font-size: 12px; color: var(--muted); }
.memory-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.mini-btn { font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline-strong); }

/* catalysts */
.catalysts-q { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.catalysts ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.catalysts li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink2); }
.catalysts li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--rise); }

/* story split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split-copy p:not(.eyebrow) { margin-top: 18px; font-size: 18px; color: var(--ink2); }
.split-copy p strong { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink2); }
.ticks .icon { color: var(--accent); margin-top: 2px; stroke-width: 2.2; }

.story-stage { display: grid; place-items: center; padding: 20px 0; position: relative; }
.story-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); z-index: 0; }
.story {
  position: relative; z-index: 1;
  width: min(330px, 100%); aspect-ratio: 9 / 16;
  display: flex; flex-direction: column;
  padding: 30px 26px 26px; border-radius: 34px;
  background: linear-gradient(165deg, #C46F45 0%, #A3482B 55%, #7E3420 100%);
  color: #FFF7EE;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(2.5deg);
  overflow: hidden;
}
.story-brand { display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 15px; font-weight: 600; opacity: 0.9; }
.story-brand .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.story-ticker { margin-top: auto; font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.85; }
.story-price { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 2px; }
.story-change { font-size: 15px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.story .up, .story .down { color: #FFE2B8; }
.story .down { color: #DCE6FF; }
.story-chart { height: 150px; margin: 18px -26px 6px; }
.story-chart svg { width: 100%; height: 100%; display: block; }
.story-stats { margin: 10px 0 0; display: grid; gap: 8px; }
.story-stats div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding-top: 8px; border-top: 1px solid rgba(255, 247, 238, 0.2); }
.story-stats dt { opacity: 0.75; }
.story-stats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }

/* privacy band */
.band { padding: 104px 0; background: var(--band-bg); color: var(--band-ink); scroll-margin-top: 40px; }
.band .eyebrow { color: var(--band-accent); }
.band .section-sub { color: var(--band-ink2); }
.privacy-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--band-hairline); border: 1px solid var(--band-hairline); border-radius: var(--radius); overflow: hidden; }
.privacy-grid li { background: var(--band-surface); padding: 30px 28px; }
.privacy-grid .icon { width: 26px; height: 26px; color: var(--band-accent); stroke-width: 1.7; }
.privacy-grid h3 { margin-top: 16px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.privacy-grid p { margin-top: 8px; font-size: 15px; color: var(--band-ink2); }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.tiers span { font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--band-hairline); color: var(--band-ink); background: rgba(255, 255, 255, 0.04); }

/* faq */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 4px 24px; color: var(--ink2); font-size: 16.5px; max-width: 680px; }

/* final cta */
.final { padding: 40px 0 120px; }
.final-inner { text-align: center; display: grid; justify-items: center; }
.final-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { margin-top: 26px; max-width: 760px; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.08; letter-spacing: -0.015em; }
.final h2 span { font-family: var(--mono); font-size: 0.8em; color: var(--accent); letter-spacing: -0.02em; word-break: break-all; }
.final p { margin-top: 14px; font-size: 18px; color: var(--ink2); }
.cta-center { margin-top: 28px; }

/* footer */
.footer { border-top: 1px solid var(--hairline); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 15px; color: var(--ink2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-fine { grid-column: 1 / -1; font-size: 13px; color: var(--muted); max-width: 760px; }

/* ------------------------------------------------------------------ friends: watchlist + a check-in text */

.friends-stage { position: relative; display: grid; padding: 10px 0 20px; }
.phone-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; box-shadow: var(--shadow-lg); }
.watch-card { width: 86%; padding: 18px 20px 12px; }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.pc-title { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.pc-sub { font-size: 13px; color: var(--muted); }
.wl-row.flag { margin: 2px -10px; padding: 10px; border-radius: 14px; border-bottom-color: transparent; background: color-mix(in srgb, var(--fall) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fall) 28%, transparent); }
.wl-tag { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 6px; font: 700 10.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; color: var(--rise); background: color-mix(in srgb, var(--rise) 14%, transparent); }
.chat { justify-self: end; width: 78%; margin-top: -10px; padding: 14px 16px 16px; display: grid; gap: 8px; position: relative; z-index: 1; }
.chat-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 2px; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--fall) 18%, var(--surface)); color: var(--fall); font-size: 12px; font-weight: 750; }
.bubble { max-width: 84%; padding: 9px 14px; border-radius: 19px; font-size: 15px; line-height: 1.35; }
.bubble.out { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.in { justify-self: start; background: var(--bg); border: 1px solid var(--hairline); border-bottom-left-radius: 6px; }
.chat.ready .bubble { opacity: 0; transform: translateY(8px) scale(0.98); }
.chat.ready.in-view .bubble { animation: bubble 0.45s var(--d, 0s) cubic-bezier(0.2, 0.8, 0.3, 1.2) forwards; }
@keyframes bubble { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ back to your high */

.split-rev { grid-template-columns: 0.95fr 1.05fr; }
.split-rev > .split-copy { order: 2; }
.ath-stage { position: relative; }
.ath-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 20px 20px 18px; }
.ath-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ath-price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ath-chart { height: 230px; margin: 10px 0 6px; }
.ath-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ath-list { border-top: 1px solid var(--hairline); padding-top: 14px; }
.c-ath { stroke: var(--rise); stroke-width: 1.3; stroke-dasharray: 5 5; opacity: 0.8; }
.c-ath-label { fill: var(--rise); font: 700 11px var(--sans); letter-spacing: 0.03em; }
.c-gap { stroke: var(--fall); stroke-width: 1.5; stroke-dasharray: 2 3; }
.c-gap-label { fill: var(--fall); font: 700 11.5px var(--sans); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }

/* ------------------------------------------------------------------ see what's coming */

.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight { padding: 22px 24px 28px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.insight-art { display: block; width: 100%; height: auto; aspect-ratio: 300 / 144; padding: 12px 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--hairline); overflow: visible; }
.insight .c-line { stroke-width: 2.4; }
.ins-band { fill: var(--accent-soft); }
.ins-label { fill: var(--muted); font: 600 11px var(--sans); letter-spacing: 0.02em; }
.insight h3 { margin-top: 20px; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; }
.insight p { margin-top: 8px; color: var(--ink2); font-size: 15.5px; }

.card .swatches { margin-top: -6px; }
.faq details p a { color: var(--accent); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card-wide { grid-column: span 1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .split-rev > .split-copy { order: 0; }
  .insights { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .friends-stage, .ath-stage { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; height: 60px; }
  .appstore-sm { margin-left: auto; height: 36px; font-size: 16px; padding: 0 11px 0 9px; }
  .appstore-sm .appstore-logo { width: 17px; height: 17px; }
  .hero { padding: 40px 0 48px; }
  .demo { margin-top: 40px; padding: 16px 12px 12px; border-radius: 22px; margin-inline: -4px; }
  .demo-chart { height: 300px; }
  .demo-head .seg { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .section, .band { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .story { width: min(290px, 84%); padding: 26px 22px 22px; }
  .story-chart { margin-inline: -22px; }
  .story-price { font-size: 38px; }
  .footer-inner { grid-template-columns: 1fr; }
  .final { padding-bottom: 88px; }
}
@media (max-width: 400px) {
  .appstore-sm .appstore-small { display: none; }
  .appstore-lg { height: 52px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  .soon-dot { animation: none; }
  .draw .c-line-solid, .draw .c-area, .draw .c-pop, .draw .c-line-future { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

/* story card chart: cream line on the terracotta card */
.story-chart .c-line { stroke: #FFF7EE; stroke-width: 2.4; }
.story-chart .c-area-stop { stop-color: #FFF7EE; }
