:root {
  --bg: #faf7f1;
  --bg-2: #f4f0e8;
  --bg-3: #ece7dc;
  --ink: #181510;
  --muted: #6f675a;
  --faint: #a49a89;
  --line: #e6dfd2;
  --red: #c8102e;
  --red-ink: #9c0c24;
  --gold: #a98a3c;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 99; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 40px; height: 84px; }
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.portal {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.portal:hover { color: var(--red); border-color: var(--red); }
.hamburger {
  background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer;
  display: none; line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em; cursor: pointer; border: none;
  transition: background .18s, color .18s, transform .12s, border-color .18s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { background: none; color: var(--ink); padding: 16px 8px; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-text:hover { color: var(--red); border-color: var(--red); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; }
.hero-grid { max-width: 1140px; }
.eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(3.4rem, 9.5vw, 7.6rem);
  font-weight: 340;
  line-height: 0.98;
  max-width: 12ch;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 320;
  color: var(--red);
}
.lede {
  color: var(--muted); font-size: 1.18rem; line-height: 1.7;
  max-width: 46ch; margin: 34px 0 40px; font-weight: 400;
}
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 0; margin-top: 72px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { flex: 1; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 36px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.stat strong em { font-style: normal; color: var(--red); }
.stat span { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 8px; letter-spacing: 0.03em; }

/* ---------- Divider / statement ---------- */
.statement {
  padding: 0 0 120px;
}
.statement p {
  font-family: var(--font-display); font-weight: 350; font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.3; color: var(--ink); max-width: 28ch;
}
.statement p .accent { color: var(--red); font-style: italic; }

/* ---------- Counter strip ---------- */
.counter-strip { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.counter-inner { display: flex; align-items: center; gap: 40px; }
.strip-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.progress { flex: 1; height: 2px; background: var(--line); border-radius: 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); transition: width 1.4s cubic-bezier(.22,.9,.3,1); }
.progress-meta { display: flex; gap: 32px; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.progress-meta strong { color: var(--ink); font-family: var(--font-display); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 360; }
.sub { color: var(--muted); font-size: 1.06rem; max-width: 52ch; margin-top: 18px; }

/* Cards — refined, hairline */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--line); }
.card { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .2s; }
.card + .card { padding-left: 28px; border-left: 1px solid var(--line); }
.card-num { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.card h3 { margin: 14px 0 10px; font-size: 1.35rem; font-weight: 400; }
.card p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* Journey */
.journey { list-style: none; margin-top: 56px; border-top: 1px solid var(--line); }
.journey li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.step-num { font-family: var(--font-display); font-style: italic; color: var(--red); font-size: 1.3rem; }
.journey h3 { font-size: 1.4rem; font-weight: 400; }
.journey p { color: var(--muted); font-size: 0.95rem; text-align: right; max-width: 34ch; }

/* Pricing hint */
.pricing-hint { margin-top: 48px; border-top: 1px solid var(--line); }
.ph-item { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ph-item strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.ph-item span { color: var(--muted); text-align: right; }

/* ---------- Signup ---------- */
.section-join { background: var(--ink); color: #f4efe6; }
.section-join h2, .section-join .kicker, .section-join .sub { color: inherit; }
.section-join .kicker { color: #e06378; }
.join-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.join-copy h2 { margin: 0 0 18px; }
.join-copy > p { color: #b7aea0; }
.join-perks { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.join-perks li { color: #b7aea0; font-size: 1rem; display: flex; gap: 12px; align-items: baseline; }
.join-perks li span { color: #e06378; font-family: var(--font-display); font-style: italic; }

.signup-form {
  background: var(--bg); color: var(--ink); border-radius: 4px;
  padding: 44px 44px 40px; position: relative;
}
.form-head { margin-bottom: 28px; }
.form-title { font-size: 1.6rem; font-weight: 380; }
.form-sub { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.form-progress { height: 1px; background: var(--line); overflow: hidden; margin: 26px 0 12px; }
.form-progress span { display: block; height: 100%; width: 20%; background: var(--red); transition: width .35s cubic-bezier(.22,.9,.3,1); }
.step-label { color: var(--faint); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }

.steps { position: relative; min-height: 260px; }
.step { display: none; border: none; animation: stepIn .35s ease; }
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-title { font-size: 1.35rem; font-weight: 380; margin-bottom: 24px; }
.step-title-gap { margin-top: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 8px; color: var(--muted); }
.field small { color: var(--faint); font-size: 0.76rem; display: block; margin-top: 8px; }
.field em { color: var(--faint); font-style: normal; font-weight: 400; }

input, select {
  width: 100%; padding: 14px 0; border: none; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-size: 1.05rem; transition: border-color .15s;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-bottom-color: var(--red); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f675a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; cursor: pointer; }
select option { background: var(--bg); color: var(--ink); }

/* Pill choices — elegant underline-style chips */
.pill-group { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px;
  font-size: 0.95rem; font-weight: 400; transition: all .15s; user-select: none;
}
.pill .pill-emoji { margin-right: 6px; }
.pill:hover { border-color: var(--ink); }
.pill:has(input:checked) { border-color: var(--red); color: var(--red); }
.pill-group-sm .pill { padding: 10px 18px; font-size: 0.9rem; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 22px; font-size: 0.84rem; color: var(--muted); }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--red); flex: none; border: 1px solid var(--line); }
.check a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.form-nav { display: flex; gap: 14px; }
.form-nav .btn { flex: 1; }
.form-note { text-align: center; color: var(--faint); font-size: 0.78rem; margin-top: 18px; }

.form-msg { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 4px; font-size: 0.9rem; }
.form-msg.success { display: block; background: #eef4e6; border: 1px solid #cfe0b6; color: #4c6b2a; }
.form-msg.error { display: block; background: #fbecee; border: 1px solid #ecc2ca; color: var(--red-ink); }

/* ---------- App ---------- */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.app-copy h2 { margin: 0 0 18px; }
.app-copy > p { color: var(--muted); }
.app-features { list-style: none; margin: 28px 0 32px; display: grid; gap: 12px; }
.app-features li { color: var(--muted); display: flex; gap: 12px; align-items: baseline; }
.app-features li span { color: var(--red); font-family: var(--font-display); font-style: italic; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge { border: 1px solid var(--line); padding: 12px 20px; border-radius: 999px; font-size: 0.86rem; color: var(--muted); }

.app-mock { display: grid; place-items: center; }
.phone {
  width: 240px; height: 480px; border-radius: 40px; padding: 14px;
  background: var(--ink); box-shadow: 0 40px 80px rgba(24, 21, 16, 0.18);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; padding: 26px;
  background: #faf7f1; display: flex; flex-direction: column;
}
.phone-brand { font-family: var(--font-display); font-size: 1.2rem; }
.phone-balance { margin-top: 32px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--ink); }
.phone-balance small { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.phone-actions { margin-top: auto; display: flex; gap: 8px; }
.phone-actions span { flex: 1; text-align: center; background: var(--bg-2); border-radius: 999px; padding: 14px 4px; font-size: 0.8rem; font-weight: 500; color: var(--ink); }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.support-items { border-top: 1px solid var(--line); }
.support-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .15s;
}
a.support-item:hover { color: var(--red); }
.support-item strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.support-item span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 0; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: 0.92rem; max-width: 30ch; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--faint); font-weight: 600; margin-bottom: 6px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); }
.socials { display: flex; gap: 14px; margin-top: 12px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--muted); transition: border-color .15s, color .15s; }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-bottom p { color: var(--faint); font-size: 0.8rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .join-grid, .app-grid, .support-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card + .card { border-left: 0; padding-left: 0; }
  .nav { display: none; }
  .hamburger { display: block; }
  .nav.open {
    display: flex; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 24px 32px;
    border-bottom: 1px solid var(--line); gap: 20px; z-index: 60;
  }
  .counter-inner { flex-direction: column; gap: 20px; align-items: stretch; }
  .progress-meta { justify-content: space-between; }
  .journey li { grid-template-columns: 48px 1fr; }
  .journey p { text-align: left; grid-column: 2; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card + .card { border-left: 1px solid var(--line); padding-left: 28px; border-left: 0; padding-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .brand-logo { height: 38px; }
  .signup-form { padding: 30px 24px; }
  .portal { display: none; }
}
