:root {
  --cream: #fbf4e8;
  --paper: #fffaf2;
  --tomato: #c8361f;
  --tomato-dark: #a12a17;
  --ink: #2a1a14;
  --muted: #6b5a50;
  --basil: #4e6b3a;
  --line: #ead9c3;
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { padding: 22px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 28px; text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 64px; height: 64px; display: block; }
.logo .wordmark span { color: var(--tomato); }
.badge {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--basil); border: 1.5px solid var(--basil); border-radius: 999px; padding: 6px 14px;
}

/* Hero */
.hero { padding: 40px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tomato); margin-bottom: 18px; }
.eyebrow.light { color: #f6c7a8; }
h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; }
.lede { font-size: 20px; color: var(--muted); margin-top: 22px; max-width: 34ch; }

.cubes { display: flex; gap: 14px; margin-top: 40px; }
.cube {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(145deg, #e0553a, var(--tomato) 55%, var(--tomato-dark));
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.35), 0 10px 20px rgba(161,42,23,0.25);
  position: relative;
}
.cube::after {
  content: ""; position: absolute; top: 10px; left: 10px; width: 18px; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.55);
}
.c1 { transform: rotate(-8deg); }
.c2 { transform: rotate(5deg) translateY(-10px); }
.c3 { transform: rotate(-3deg) translateY(4px); }
.c4 { transform: rotate(10deg) translateY(-6px); opacity: 0.85; }

/* Signup card */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: 0 24px 60px rgba(42,26,20,0.10);
}
.card h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.card-sub { color: var(--muted); margin-top: 10px; margin-bottom: 26px; }
.loading { color: var(--muted); font-style: italic; }

.field { margin-bottom: 22px; border: 0; padding: 0; }
.field > label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.req { color: var(--tomato); margin-left: 2px; }
input[type="email"], input[type="text"] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="email"]:focus, input[type="text"]:focus {
  outline: none; border-color: var(--tomato); box-shadow: 0 0 0 4px rgba(200,54,31,0.14);
}
input[aria-invalid="true"] { border-color: var(--tomato); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 12px 10px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 15px;
  transition: border-color .15s, background .15s, color .15s;
}
.choice span:hover { border-color: #d9b896; }
.choice input:checked + span { border-color: var(--tomato); background: #fdebe5; color: var(--tomato-dark); font-weight: 700; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(200,54,31,0.18); }
.other-input { margin-top: 10px; }
.other-input[hidden] { display: none; }

.help { font-size: 14px; color: var(--muted); margin-top: 6px; }
.error { font-size: 14px; color: var(--tomato-dark); margin-top: 6px; font-weight: 500; }
.form-error { background: #fdebe5; color: var(--tomato-dark); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }

.btn {
  display: inline-block; width: auto; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  color: #fff; background: var(--tomato); border: 0; border-radius: 999px; padding: 16px 30px; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--tomato-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
#form-root .btn { width: 100%; }

.thanks { text-align: center; padding: 12px 0; }
.thanks .big { font-family: var(--display); font-size: 28px; font-weight: 700; }
.thanks p { color: var(--muted); margin-top: 8px; }

/* Sections */
.section-title { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; }

.how { padding: 88px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { padding-top: 4px; }
.num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tomato); color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 18px;
}
.steps h3, .why h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.steps p, .why p { color: var(--muted); }

.story { background: var(--ink); color: #fbefe2; padding: 100px 0; }
.story-inner { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.story-logo { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35)); }
.story h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
.story blockquote { margin: 30px 0 0; }
.story blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; }
.story blockquote footer { margin-top: 22px; color: #f6c7a8; font-weight: 700; }
.story blockquote footer::before { content: "— "; }

.why { padding: 88px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.why article h3 { color: var(--ink); }

.closer { padding: 20px 0 100px; }
.closer-inner {
  background: var(--tomato); color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center;
}
.closer h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.closer p { margin: 14px 0 28px; font-size: 19px; opacity: 0.92; }
.closer .btn { background: #fff; color: var(--tomato-dark); }
.closer .btn:hover { background: var(--cream); }

.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }

@media (max-width: 880px) {
  .hero { padding: 20px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cubes { margin-top: 28px; }
  .cube { width: 52px; height: 52px; }
  .steps, .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 26px; }
  .how, .why { padding: 64px 0; }
  .story { padding: 72px 0; }
  .story-inner { grid-template-columns: 1fr; gap: 32px; }
  .story-logo { max-width: 220px; margin: 0 auto; }
  .logo img { width: 52px; height: 52px; }
  .logo { font-size: 24px; gap: 10px; }
  .closer-inner { padding: 48px 24px; }
}
