/* Same palette and type as the app: paper, stone and charcoal with one tomato-red accent. */
:root {
  --paper: #f7f5f0;
  --surface: #ffffff;
  --sunken: #efece5;
  --line: #e4dfd5;
  --line-strong: #d2cbbd;
  --ink: #1d1b18;
  --ink-2: #57524a;
  --ink-3: #8f887c;
  --accent: #c2462b;
  --accent-soft: #f7e4dc;
  --ok: #3d6a4c;
  --danger: #b3321f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(29, 27, 24, .04), 0 18px 40px -18px rgba(29, 27, 24, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.display { font-family: var(--serif); letter-spacing: -.015em; line-height: 1.02; }
.display em { color: var(--accent); }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 36px; }
.section-title em { color: var(--accent); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 28px; background: rgba(247, 245, 240, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.brand em { color: var(--accent); }
.top-cta { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); border: 1px solid var(--line-strong); padding: 7px 14px; border-radius: 999px; }
.top-cta:hover { border-color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }
@media (max-width: 640px) { main { padding: 0 16px; } .top { padding: 0 16px; } section { padding: 60px 0; } }

/* ---------- buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); padding: 14px 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 500; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #34302b; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: default; }

.join { margin-top: 36px; max-width: 560px; }
.join-form { display: flex; gap: 10px; flex-wrap: wrap; }
.join-form input[type=email] {
  flex: 1; min-width: 220px; padding: 14px 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 16px;
}
.join-form input:focus, .survey input[type=text]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 27, 24, .08); }
.join-note { margin: 12px 0 0 6px; font-size: 14px; color: var(--ink-2); }
.join-error { margin: 10px 0 0 6px; font-size: 14px; color: var(--danger); font-weight: 500; }
.joined { margin: 0; font-size: 17px; font-weight: 500; color: var(--ok); }

.survey { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); text-align: left; }
.survey-intro { margin: 10px 0 4px; color: var(--ink-2); font-size: 15px; }
.survey-intro span { color: var(--ink-3); }
.survey fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.survey legend { font-weight: 500; font-size: 15px; margin-bottom: 8px; padding: 0; }
.survey input[type=text] { width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29, 27, 24, .15); }
.check { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.survey-actions { display: flex; gap: 8px; margin-top: 22px; }

/* ---------- hero ---------- */
.hero { padding-top: 96px; max-width: 880px; }
.hero .display { font-size: clamp(48px, 8vw, 96px); margin: 18px 0 26px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 620px; margin: 0; }

/* ---------- before / after ---------- */
.before-after { border-top: 1px solid var(--line); }
.ba-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: 32px; align-items: center; }
.ba-grid figure { margin: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.said { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.said blockquote { margin: 18px 0 14px; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
.said blockquote em { color: var(--accent); }
.said figcaption, .page figcaption { font-size: 14px; color: var(--ink-3); }
.wave { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--sunken); }
.wave span { width: 3px; border-radius: 2px; background: var(--ink-3); height: 30%; }
.wave span:nth-child(3n) { height: 70%; } .wave span:nth-child(4n) { height: 50%; } .wave span:nth-child(5n) { height: 90%; }
.wave span:nth-child(7n) { height: 40%; } .wave span:nth-child(-n+6) { background: var(--accent); }
.arrow { font-family: var(--serif); font-size: 48px; color: var(--accent); }
.page img { border-radius: 6px; box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: rotate(1deg); }
.page figcaption { margin-top: 18px; }
.page figcaption strong { color: var(--accent); }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- how it works ---------- */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--ink); padding-top: 32px; }
.steps .n { font-family: var(--serif); font-size: 44px; color: var(--accent); line-height: 1; }
.steps h3 { font-family: var(--serif); font-size: 30px; margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; gap: 28px; } }

.quote-band { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-band p { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -.01em; }
.quote-band em { color: var(--accent); }

/* ---------- offer ---------- */
.offer { display: flex; justify-content: center; }
.offer-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px; text-align: center; box-shadow: var(--shadow); }
.price { font-family: var(--serif); font-size: 84px; line-height: 1; margin: 14px 0 10px; }
.price span { font-family: var(--sans); font-size: 16px; color: var(--ink-3); letter-spacing: 0; }
.offer-sub { margin: 0 0 22px; color: var(--ink-2); }
.offer-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: inline-block; }
.offer-card li { padding: 6px 0 6px 28px; position: relative; }
.offer-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.offer-card .btn { width: 100%; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--ink-2); max-width: 640px; }

/* ---------- final call ---------- */
.final { text-align: center; }
.final .display { font-size: clamp(40px, 6.5vw, 76px); max-width: 900px; margin: 0 auto; }
.final .join { margin-left: auto; margin-right: auto; }
.final .join-note, .final .join-error { margin-left: 0; }
.final .join-form { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 32px 28px 48px; text-align: center; font-size: 13px; color: var(--ink-3); }
.foot p { margin: 4px auto; max-width: 620px; }

@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .join-form .btn { width: 100%; }
  .top-cta { padding: 6px 12px; font-size: 13px; }
}

/* brand and footer links */
a.brand { color: var(--ink); text-decoration: none; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }
