:root {
  --bg: #FFF8F1;
  --cream: #FFF1E4;
  --peach: #FFE7D3;
  --orange: #F2762E;
  --orange-d: #DE5A22;
  --ink: #1B1411;
  --muted: #776860;
  --line: rgba(27, 20, 17, .1);
  --card: #FFFFFF;
  --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 24px 48px -32px rgba(120, 60, 20, .35), 0 2px 6px rgba(120, 60, 20, .05);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1; }
h1 { font-size: clamp(2.9rem, 6vw, 5.6rem); font-weight: 750; letter-spacing: -.05em; line-height: .96; }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.08; }
em { font-style: normal; color: var(--orange); }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); margin-bottom: .9rem; }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.fine { margin-top: 16px; font-size: .78rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 1.05em 1.65em; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 14px 30px -14px rgba(222, 90, 34, .9), inset 0 -3px 0 rgba(0,0,0,.08); }
.btn-orange:hover { background: var(--orange-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .8em 1.2em; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 40; top: 12px; left: 12px; right: 12px; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 8px 20px -16px rgba(120, 60, 20, .4); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-login { white-space: nowrap; padding: .55em .9em; font-size: .92rem; font-weight: 500; }
.brand { display: flex; align-items: center; }
.brand img { height: 31px; width: auto; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { padding: .55em .95em; border-radius: 999px; font-size: .92rem; font-weight: 500; transition: background .2s; }
.nav nav a:hover { background: rgba(242, 118, 46, .12); }
@media (max-width: 860px) { .nav nav { display: none; } }
@media (max-width: 480px) { .brand img { height: 26px; } .nav { gap: 8px; padding-left: 12px; } .nav-login { padding: .55em .5em; } }

/* ---------- phone frame ---------- */
/* iPhone 17 Pro proportions: thin black bezel, titanium rim, screen corners matched to the frame */
/* --pw is the phone width; the bezel is derived from it (padding % would resolve against the parent, not the phone) */
.phone { --pw: 300px; position: relative; flex: none; width: var(--pw); padding: calc(var(--pw) * .022); border-radius: calc(var(--pw) * .155); background: #0B0908; box-shadow: inset 0 0 0 1.5px #A39388, inset 0 0 0 3px #3A322D, 0 24px 40px -24px rgba(90, 40, 10, .4); }
.phone img { width: 100%; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .133); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1240px; margin: 0 auto; padding: 104px var(--pad) 40px; }
.pill { display: inline-flex; align-items: center; gap: .6em; padding: .5em 1em .5em .8em; margin-bottom: 22px; border-radius: 999px; background: #fff; box-shadow: 0 6px 24px -12px rgba(120, 60, 20, .35); font-size: .86rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2BC46A; }
.life { position: relative; display: inline-block; padding-right: .04em; }
.life svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .3em; overflow: visible; }
.life path { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; animation: draw .8s .5s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-sub { margin: 24px 0 28px; max-width: 480px; font-size: 1.15rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-copy, .stage { animation: rise .7s var(--ease) both; }
.stage { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.stage { position: relative; height: min(calc(100svh - 150px), 640px); min-height: 460px; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #FFDCC0 0%, #FFE9D6 55%, #FFF3E7 100%); }
.sun { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #FFC98F; top: 7%; right: 9%; }
.hill { position: absolute; border-radius: 50% 50% 0 0; }
.h1 { width: 90%; height: 30%; left: -20%; bottom: -8%; background: #BFE3B4; }
.h2 { width: 95%; height: 26%; right: -25%; bottom: -10%; background: #9ED39A; }
/* the phone sits low and runs off the bottom edge: the top of the screen tells the story */
.stage-phone { --pw: min(290px, 66%); position: absolute; left: 50%; top: 11%; margin-left: calc(var(--pw) / -2); }
.stage-mascot { position: absolute; width: 36%; max-width: 190px; right: -2%; bottom: 0; }
.chip { position: absolute; left: 4%; bottom: 8%; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: .84rem; line-height: 1.25; }
.chip b { display: block; font-weight: 600; }
.chip small { color: var(--muted); font-size: .74rem; }
.chip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--peach); font-size: 1rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 92px; text-align: center; }
  .hero-sub { margin: 18px auto 22px; font-size: 1.05rem; }
  .hero-ctas { justify-content: center; }
  .stage { height: 380px; min-height: 0; border-radius: 28px; }
  .stage-phone { --pw: min(230px, 56%); top: 9%; }
}

/* ---------- sections ---------- */
.how, .money, .faq { max-width: 1240px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--pad); }
.sec-head { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--tone); }
.step-copy { padding: 26px 26px 20px; }
.step-copy p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.tag { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: #fff; font-size: .9rem; font-weight: 700; color: var(--orange-d); }
.step-shot { display: flex; justify-content: center; height: 300px; margin-top: auto; overflow: hidden; }
.step-shot .phone { --pw: 240px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 1fr 130px; align-items: stretch; border-radius: 24px; }
  .step-copy { padding: 18px 8px 18px 18px; }
  .step-copy p { font-size: .94rem; line-height: 1.45; }
  .tag { width: 28px; height: 28px; margin-bottom: 10px; font-size: .8rem; }
  h3 { font-size: 1.3rem; }
  .step-shot { height: auto; min-height: 100%; position: relative; }
  .step-shot .phone { --pw: 116px; position: absolute; top: 18px; left: 0; }
}

/* ---------- statement ---------- */
.statement { padding: clamp(56px, 10vw, 120px) var(--pad); }
.say { max-width: 1040px; margin: 0 auto; font-weight: 650; font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: 1.1; letter-spacing: -.035em; text-align: center; }
.say .w { display: inline-block; }
.inline-pic { display: inline-block; width: 1.5em; height: 1em; object-fit: cover; border-radius: .5em; vertical-align: -.12em; margin: 0 .05em; transform: rotate(-4deg); box-shadow: 0 10px 20px -10px rgba(120,60,20,.5); }
.say .inline-pic:nth-of-type(2) { transform: rotate(5deg); }

/* ---------- adds up ---------- */
.adds { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--pad); text-align: center; }
.adds-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); }
.adds-stack { display: grid; place-items: center; margin: 20px 0 4px; }
.add { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(28px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.add.on { opacity: 1; transform: none; }
.add.past { opacity: 0; transform: translateY(-28px) scale(.96); }
.add img { width: clamp(150px, 24vh, 220px); border-radius: 30px; box-shadow: var(--shadow); margin-bottom: 18px; }
.add strong { font-weight: 800; font-size: clamp(4rem, 12vw, 7.5rem); line-height: .95; letter-spacing: -.06em; background: linear-gradient(180deg, #FF9C55, var(--orange-d)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em .14em; margin-bottom: -.08em; }
.add span { font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

/* ---------- money ---------- */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.money-head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 440px; }
.money-mascot { width: min(240px, 56%); margin-top: 24px; }
.calc { padding: clamp(22px, 3vw, 38px); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.calc h3 { margin-bottom: 22px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.field b { color: var(--ink); font-size: 1.1rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--cream); }
.seg button { padding: .7em; border-radius: 12px; font-weight: 600; transition: background .2s, color .2s; }
.seg button.on { background: var(--orange); color: #fff; }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border-radius: 6px; background: var(--cream); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; cursor: grab; box-shadow: 0 4px 12px rgba(120,60,20,.35); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; cursor: grab; }
.calc-out { padding: 20px 22px; border-radius: 22px; background: var(--peach); }
.calc-label { color: var(--muted); font-size: .92rem; }
.calc-total { font-weight: 800; font-size: clamp(2.8rem, 5vw, 4rem); font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1; margin: 6px 0; color: var(--orange-d); }
.calc-break { font-weight: 600; }
.pot-bar { height: 8px; border-radius: 8px; margin: 14px 0 8px; background: rgba(255,255,255,.7); overflow: hidden; }
.pot-bar i { display: block; height: 100%; border-radius: 8px; background: var(--orange); transform: scaleX(.25); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.calc-pot { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) {
  .money-grid { grid-template-columns: 1fr; gap: 22px; }
  .money-head { text-align: center; }
  .money-head p { margin-left: auto; margin-right: auto; }
  .money-mascot { display: none; }
}

/* ---------- faq ---------- */
.faq-items { max-width: 760px; margin: 0 auto; }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; cursor: pointer; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px -6px rgba(120,60,20,.4); transition: background .2s; }
.faq-items summary i::before, .faq-items summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), background .2s; }
.faq-items summary i::after { transform: rotate(90deg); }
.faq-items details[open] summary i { background: var(--orange); }
.faq-items details[open] summary i::before, .faq-items details[open] summary i::after { background: #fff; }
.faq-items details[open] summary i::after { transform: rotate(0); }
.faq-items details p { padding: 0 44px 20px 0; color: var(--muted); }

/* ---------- final ---------- */
.final { padding: 12px var(--pad) clamp(36px, 6vw, 72px); }
.final-card { position: relative; max-width: 1096px; margin: 0 auto; padding: 32px var(--pad) 40px; border-radius: 36px; text-align: center; background: linear-gradient(180deg, #FFD9BC, #FFEBDB); overflow: hidden; }
.final-mascot { width: min(170px, 42vw); margin: 0 auto 8px; }
.final h2 { margin-bottom: 22px; }
.join { display: flex; gap: 6px; width: min(520px, 100%); margin: 0 auto; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 16px 36px -22px rgba(90,30,0,.5); }
.join input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 0 18px; font: inherit; color: var(--ink); }
.join input::placeholder { color: #B7A79B; }
.join-status { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: 40%; left: 50%; width: 10px; height: 14px; border-radius: 3px; }
@media (max-width: 520px) { .join { flex-direction: column; border-radius: 26px; } .join input { padding: 14px 16px; } }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 20px var(--pad) 28px; font-size: .86rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; }
.foot nav a:hover { color: var(--orange-d); }

/* ---------- motion ---------- */
/* opacity and transform only: both run on the GPU and never touch layout */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .say .w { opacity: .14; transition: opacity .3s linear; }
.js .say .w.lit { opacity: 1; }
.js .say .inline-pic { transform: scale(0) rotate(-30deg); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.js .say .inline-pic.lit { transform: rotate(-4deg); }
.js .say .inline-pic.lit:nth-of-type(2) { transform: rotate(5deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}
