/* ============================================================
   Rung — brand system (from Product Spec §1)
   Clay #D97A57 · Sage #6FA287 · Gold #F4B942 · Ink #1F2321
   Cream #FBF6EE · Soft Clay Tint #F3DFD4 · Brick #B5482F
   Type: Fraunces (display/serif) + Inter (UI/body)
   ============================================================ */

:root {
  --clay: #D97A57;
  --clay-dark: #C4623E;
  --sage: #6FA287;
  --sage-dark: #4F8168;
  --gold: #F4B942;
  --ink: #1F2321;
  --ink-soft: #55514c;
  --cream: #FBF6EE;
  --clay-tint: #F3DFD4;
  --brick: #B5482F;
  --white: #fffdfa;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(31, 35, 33, 0.06);
  --shadow: 0 12px 34px rgba(31, 35, 33, 0.10);
  --shadow-lg: 0 26px 60px rgba(31, 35, 33, 0.16);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.serif { font-family: var(--font-serif); }
.sage-text { color: var(--sage-dark); }
.clay-text { color: var(--clay-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.02rem;
  border: none; border-radius: 999px; padding: 16px 30px; cursor: pointer;
  text-decoration: none; transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s, background .16s;
  will-change: transform;
}
.btn-primary { background: var(--clay); color: var(--white); box-shadow: 0 8px 20px rgba(217,122,87,.34); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); background: var(--clay-dark); box-shadow: 0 12px 26px rgba(217,122,87,.42); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(244,185,66,.4); }
.btn-gold:hover { transform: translateY(-2px) scale(1.02); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(31,35,33,.16); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-dark); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(251,246,238,.82);
  border-bottom: 1px solid rgba(31,35,33,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; color: var(--clay-dark); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; }
.nav .btn { padding: 10px 20px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 30px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clay-tint); color: var(--clay-dark);
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.05rem); }
.hero h1 .accent { color: var(--clay-dark); }
.hero-sub { font-size: 1.22rem; color: var(--ink-soft); max-width: 30ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--ink-soft); font-size: .95rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--cream); margin-left: -10px; background-size: cover; }
.avatars span:first-child { margin-left: 0; }
.a1 { background: linear-gradient(135deg,#e9a27f,#c4623e); }
.a2 { background: linear-gradient(135deg,#8fbfa5,#4f8168); }
.a3 { background: linear-gradient(135deg,#f4cd7a,#d99b2f); }
.a4 { background: linear-gradient(135deg,#e6b9a4,#b5482f); }

.phone-hero { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 78vw; border-radius: 40px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 9px solid #16130f; background: #16130f;
  transform: rotate(2.2deg);
}
.phone img { display: block; width: 100%; }
.hero-float {
  position: absolute; background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow); padding: 12px 16px; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-float .dot { font-size: 1.2rem; }
.float-1 { top: 30px; left: -6px; color: var(--sage-dark); transform: rotate(-4deg); }
.float-2 { bottom: 40px; right: -8px; color: var(--clay-dark); transform: rotate(3deg); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding: 68px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--clay-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-top: 8px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--ink); color: var(--cream); }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 34px 0; text-align: center; }
.stat .n { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); line-height: 1; }
.stat .l { color: rgba(251,246,238,.72); font-size: .96rem; margin-top: 6px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(31,35,33,.05); position: relative;
}
.step .num {
  width: 42px; height: 42px; border-radius: 12px; background: var(--clay-tint);
  color: var(--clay-dark); font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Viral features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 46px; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { transform: rotate(-2deg); width: 270px; }
.feature:nth-child(even) .feature-media .phone { transform: rotate(2deg); }
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.tag-viral { background: rgba(244,185,66,.22); color: #9a7413; }
.tag-viral::before { content: "🔥"; }
.feature h3 { font-size: clamp(1.7rem,3.2vw,2.3rem); }
.feature p { font-size: 1.1rem; color: var(--ink-soft); }
.feature .why { font-size: .95rem; color: var(--sage-dark); font-weight: 600; margin-top: 4px; }

/* ---------- Trust ---------- */
.trust { background: var(--clay-tint); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 8px; }
.trust-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.trust-card .ic { font-size: 1.6rem; }
.trust-card h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.trust-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- Signup form ---------- */
.signup { background: linear-gradient(180deg, var(--cream), #f6ead9); }
.form-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 560px; margin: 0 auto; padding: 34px 30px 30px; position: relative; overflow: hidden;
}
.rungs { display: flex; gap: 6px; margin-bottom: 22px; }
.rungs .r { height: 7px; flex: 1; border-radius: 999px; background: var(--clay-tint); transition: background .3s; }
.rungs .r.done { background: var(--gold); }
.rungs .r.active { background: var(--clay); }

.q-step { display: none; animation: slideIn .34s cubic-bezier(.34,1.56,.64,1); }
.q-step.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.q-count { color: var(--clay-dark); font-weight: 800; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.q-title { font-family: var(--font-serif); font-size: 1.7rem; margin: 6px 0 4px; }
.q-help { color: var(--ink-soft); font-size: .98rem; margin-bottom: 20px; }

.opts { display: grid; gap: 12px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--cream); border: 2px solid transparent; border-radius: var(--radius);
  padding: 17px 18px; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .16s, transform .12s, background .16s;
}
.opt:hover { border-color: var(--clay); transform: translateY(-1px); }
.opt.selected { border-color: var(--clay); background: var(--clay-tint); }
.opt .emoji { font-size: 1.4rem; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; }
.field input {
  width: 100%; font-family: var(--font-sans); font-size: 1.05rem; padding: 15px 16px;
  border: 2px solid var(--clay-tint); border-radius: var(--radius); background: var(--cream); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--clay); background: var(--white); }
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.back-link { background: none; border: none; color: var(--ink-soft); font-weight: 600; cursor: pointer; font-size: .95rem; padding: 8px; }
.fineprint { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }

/* success */
.form-success { display: none; text-align: center; padding: 18px 6px 6px; }
.form-success.show { display: block; animation: slideIn .4s ease; }
.form-success .big { font-size: 3.4rem; }
.form-success h3 { font-size: 2rem; margin: 8px 0 6px; }
.spot { display: inline-block; background: var(--clay-tint); color: var(--clay-dark); font-weight: 800; padding: 8px 18px; border-radius: 999px; margin: 10px 0; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 22px; font-family: var(--font-sans); font-weight: 700; font-size: 1.06rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.faq-q .chev { transition: transform .2s; color: var(--clay-dark); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; padding: 0 22px; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 260px; padding: 0 22px 20px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: 56px 26px; margin: 20px auto; }
.final-cta h2 { color: var(--white); font-size: clamp(2rem,4.5vw,3rem); }
.final-cta p { color: rgba(251,246,238,.78); font-size: 1.14rem; max-width: 40ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 60px; color: var(--ink-soft); font-size: .9rem; }
.footer .brand { font-size: 1.25rem; margin-bottom: 10px; }
.footer .disc { max-width: 720px; font-size: .8rem; opacity: .85; }

/* ---------- Confetti ---------- */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero .phone-hero { order: -1; }
  .feature { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media .phone, .feature:nth-child(even) .feature-media .phone { transform: none; }
  .steps, .trust-grid, .stat-row { grid-template-columns: 1fr; }
  .stat-row { gap: 26px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section-pad { padding: 48px 0; }
  .nav .btn.hide-sm { display: none; }
  .opts.two { grid-template-columns: 1fr; }
  .form-card { padding: 26px 18px; }
  .phone { width: 260px; }
}
