/* Billfold marketing site. System type, racing-green brand, parallax kept light. */
:root {
  --racing-light: #3a966c; --racing: #146042; --racing-deep: #052c21; --accent: #18845a;
  --stage-a: #f7faf7; --stage-b: #e9f0eb; --stage-c: #d6e2da;
  --ink: #0f1c17; --sub: #566a60; --line: rgba(5,44,33,0.10);
  --gold: #c28e1e;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); background: var(--stage-a);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
.accent { color: var(--racing); }
.center { text-align: center; }
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: clamp(17px, 1.4vw, 21px); color: var(--sub); max-width: 62ch; }
.lede.center { margin: 18px auto 0; }
.muted { color: var(--sub); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 16px; line-height: 1.1; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-dark { background: #111; color: #fff; }
.btn-dark svg { width: 24px; height: 24px; fill: #fff; }
.btn-dark small { display: block; font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .01em; }
.btn-dark span { display: block; text-align: left; font-size: 18px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-green { background: linear-gradient(180deg, #22805a, var(--racing) 55%, var(--racing-deep)); color: #fff; box-shadow: 0 8px 20px rgba(5,44,33,0.28), inset 0 1px 0 rgba(255,255,255,0.18); justify-content: center; width: 100%; margin-top: 22px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 24px; background: rgba(247,250,247,0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--ink); font-weight: 500; font-size: 15px; opacity: .8; }
.nav nav a:hover { opacity: 1; text-decoration: none; color: var(--racing); }
@media (max-width: 720px) { .nav nav { display: none; } }
@media (max-width: 900px) { .nav { background: rgba(247,250,247,0.96); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 24px 0; min-height: 92vh; display: grid; grid-template-rows: auto 1fr; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 50% 0%, var(--stage-a) 0%, var(--stage-b) 65%, var(--stage-c) 100%); }
.hero-bg .blob { position: absolute; left: 0; right: 0; margin: 0 auto; top: 22%; width: 90vw; max-width: 1200px; height: 60vh; background: radial-gradient(50% 50% at 50% 50%, rgba(58,150,108,0.26), rgba(58,150,108,0) 72%); will-change: transform; }
.hero-bg .sheen { position: absolute; inset: -20% -10%; background: linear-gradient(112deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 60%); will-change: transform; }
.hero-copy { position: relative; z-index: 2; width: min(var(--maxw), 100%); margin: 0 auto; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 18px; }
.hero .lede { margin: 20px auto 0; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.cta-note { font-size: 14px; color: var(--sub); line-height: 1.45; }
.hero-device { position: relative; z-index: 2; width: min(1180px, 100%); margin: clamp(40px, 6vw, 72px) auto 0; will-change: transform; backface-visibility: hidden; }
.frame { position: relative; overflow: hidden; border-radius: 14px; background: #fff; transform: translateZ(0); isolation: isolate; box-shadow: 0 40px 90px rgba(6,40,28,0.28), 0 8px 22px rgba(6,40,28,0.12), 0 0 0 1px rgba(5,44,33,0.12); aspect-ratio: 16 / 10; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--racing-light), var(--racing) 45%, var(--racing-deep)); z-index: 3; }

/* Scroll story */
.story { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; padding: 40px 0 20px; }
.story .steps { order: 1; }
.story .stage { order: 2; position: sticky; top: 12vh; height: 76vh; display: flex; flex-direction: column; justify-content: center; }
.stage .frame { aspect-ratio: 16 / 10; width: 100%; box-shadow: 0 30px 70px rgba(6,40,28,0.24), 0 6px 18px rgba(6,40,28,0.10), 0 0 0 1px rgba(5,44,33,0.12); }
.stage .chip { position: absolute; left: 18px; bottom: 18px; background: rgba(15,28,23,0.86); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); transition: opacity .3s ease; }
.steps .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; opacity: .38; transition: opacity .45s ease; }
.steps .step.is-active { opacity: 1; }
.steps .step h2 { font-size: clamp(28px, 3vw, 40px); }
.steps .step p:not(.kicker) { margin-top: 16px; font-size: 18px; color: var(--sub); max-width: 46ch; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; padding-top: 16px; }
  .story .stage { order: 1; position: sticky; top: 58px; height: auto; z-index: 5; padding: 10px 0 12px; background: var(--stage-a); box-shadow: 0 14px 18px -12px rgba(6,40,28,0.18); }
  .stage .chip { position: static; display: inline-flex; margin: 10px auto 0; }
  .story .stage { display: flex; flex-direction: column; align-items: center; }
  .stage .frame { width: 100%; }
  .story .steps { order: 2; }
  .steps .step { min-height: 0; padding: 44px 0 40px; opacity: .55; }
  .steps .step.is-active { opacity: 1; }
  .steps .step p:not(.kicker) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .steps .step, .hero-device, .hero-bg .blob, .hero-bg .sheen { transition: none !important; transform: none !important; }
}

/* Why */
.why { padding: clamp(72px, 9vw, 110px) 0 20px; }
.why-grid .card { background: rgba(255,255,255,0.8); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(6,40,28,0.06); }
.why-grid .card h3 { font-size: 19px; }
.why-grid .card p { margin-top: 8px; color: var(--sub); font-size: 15.5px; }

/* Pricing */
.pro { padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 44px auto 0; }
.plan { position: relative; background: rgba(255,255,255,0.86); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 30px; box-shadow: 0 12px 34px rgba(6,40,28,0.08); }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 14px; color: var(--ink); }
.plan .price small { font-size: 17px; font-weight: 600; color: var(--sub); letter-spacing: 0; }
.plan .price-note { font-size: 13px; color: var(--sub); margin: -6px 0 16px; min-height: 18px; transition: opacity .3s ease; }
.plan .price [data-price] { display: inline-block; transition: opacity .25s ease; }
.plan .price.is-updating [data-price], .plan .price.is-updating + .price-note { opacity: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink); font-size: 16px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.plan li.muted::before { content: "•"; color: var(--sub); }
.plan-pro { border-color: rgba(20,96,66,0.35); background: linear-gradient(180deg, #ffffff, #f2f8f4); box-shadow: 0 24px 54px rgba(6,40,28,0.16); }
.plan-pro .price { background: linear-gradient(180deg, var(--racing-light), var(--racing) 55%, var(--racing-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan-pro .price small { -webkit-text-fill-color: var(--sub); }
.pro-badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; padding: 4px 9px; border-radius: 999px; background: linear-gradient(180deg, #22805a, var(--racing) 55%, var(--racing-deep)); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Privacy */
.privacy { padding: clamp(72px, 9vw, 120px) 0; background: var(--racing-deep); color: #eaf3ee; scroll-margin-top: 60px; }
.privacy .kicker { color: #7fd0a6; }
.privacy .accent { color: #6fe0a5; }
.privacy .lede { color: rgba(234,243,238,0.78); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.privacy .card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 24px; }
.privacy .card h3 { color: #fff; margin-top: 14px; }
.privacy .card p { color: rgba(234,243,238,0.72); margin-top: 8px; font-size: 15.5px; }
.privacy .ic { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(180deg, var(--racing-light), var(--racing)); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.privacy .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.policy { margin: 40px auto 0; max-width: 800px; border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; background: rgba(255,255,255,0.04); }
.policy summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: "+"; font-size: 22px; line-height: 1; color: #7fd0a6; }
.policy[open] summary::after { content: "–"; }
.policy-body { padding: 0 20px 22px; color: rgba(234,243,238,0.8); font-size: 15.5px; }
.policy-body h4 { color: #fff; margin: 20px 0 6px; font-size: 15px; letter-spacing: .02em; }
.policy-body a { color: #8fe3b6; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }

/* Support */
.support { padding: clamp(72px, 9vw, 110px) 0; scroll-margin-top: 60px; }
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--sub); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; background: var(--stage-b); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--sub); font-size: 14px; }
.brand.small { font-size: 16px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--sub); }
