:root {
  --maroon: #3d0000;
  --maroon-2: #5a0f0f;
  --ink: #2a0a0a;
  --muted: #7d6161;
  --cream: #fffcf2;
  --peach: #fde3c8;
  --peach-2: #fbd2ab;
  --orange: #f7a043;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(61, 0, 0, 0.1);
  --display: "Outfit", system-ui, sans-serif;
  --body: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; margin: 0; color: var(--maroon); }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.header {
  position: fixed; inset: 16px 16px auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; text-decoration: none;
  font: 600 14px/1 var(--body); border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pill:active { transform: scale(0.97); }
.pill-black { background: #0b0b0b; color: #fff; justify-self: start; font-family: var(--display); font-weight: 500; font-size: 15px; }
.pill-black img { width: 18px; height: 18px; }
.pill-light { background: rgba(255, 255, 255, 0.86); color: #111; border: 1px solid rgba(61, 0, 0, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill-peach { background: var(--peach-2); color: var(--maroon); justify-self: end; }
.pill-peach:hover { background: #f8c592; }
.pill-maroon { background: var(--maroon); color: #fff; height: 46px; padding: 0 22px; font-size: 15px; }
.pill-maroon:hover { background: var(--maroon-2); box-shadow: 0 10px 24px rgba(61, 0, 0, 0.25); }

/* Hero */
.hero {
  position: relative; text-align: center; padding: 120px 0 0; overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 55%, var(--peach-2) 100%);
  border-radius: 0 0 40px 40px;
}
.hero h1 { font-size: clamp(52px, 9vw, 104px); line-height: 0.98; }
.hero h1 span { display: block; }
.hero .rotator { display: inline-block; position: relative; }
.hero p { max-width: 520px; margin: 22px auto 30px; color: var(--ink); font-size: 17px; }
.hero .phone { width: min(330px, 72vw); margin: 56px auto -60px; }

/* How it works */
.how { padding: 140px 0 100px; }
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.how h2 { font-size: clamp(40px, 5.4vw, 60px); line-height: 1.02; }
.how .sub { margin: 18px 0 40px; color: var(--muted); max-width: 380px; }
.how .sub strong { color: var(--ink); display: block; }
.steps { display: grid; gap: 10px; counter-reset: step; }
.step {
  text-align: left; border: 0; background: transparent; padding: 18px 20px; border-radius: 16px; cursor: pointer;
  font: inherit; color: inherit; transition: background 0.25s ease, box-shadow 0.25s ease;
  max-width: 420px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step[aria-selected="true"] { background: #fff; box-shadow: 0 10px 30px rgba(61, 0, 0, 0.08); }
.step .bar { height: 2px; border-radius: 2px; background: var(--line); margin-top: 14px; overflow: hidden; display: none; }
.step[aria-selected="true"] .bar { display: block; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.step[aria-selected="true"] .bar i { animation: fill 5s linear forwards; }
@keyframes fill { to { width: 100%; } }

.screens { display: grid; place-items: center; }
.device { position: relative; width: 280px; aspect-ratio: 722 / 1470; filter: drop-shadow(0 30px 50px rgba(61, 0, 0, 0.18)); }
.device .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device .scr { position: absolute; left: 5.1%; right: 5%; top: 2.2%; bottom: 2.2%; border-radius: 13% / 6%; overflow: hidden; background: #fff; }
.device .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.device .scr img.on, .hero .device .scr img { opacity: 1; transform: none; }

/* Goodbye */
.goodbye { padding: 80px 0 120px; }
.goodbye .row { display: flex; align-items: center; justify-content: center; gap: 22px; font-family: var(--display); font-size: clamp(30px, 4.6vw, 48px); color: var(--maroon); }
.goodbye .lead { white-space: nowrap; position: relative; }
.goodbye .lead::before { content: ""; position: absolute; left: -18px; top: -6px; width: 12px; height: 12px; border-left: 2px solid var(--maroon); border-top: 2px solid var(--maroon); transform: rotate(-20deg); border-radius: 2px 0 0 0; opacity: 0.6; }
.wheel { position: relative; height: 4.4em; overflow: hidden; min-width: 11.5em; font-size: 1em;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.wheel ul { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wheel li { height: 1.1em; line-height: 1.1em; color: rgba(42, 10, 10, 0.32); transition: color 0.5s ease; white-space: nowrap; }
.wheel li.on { color: var(--maroon); }

/* FAQ */
.faq-sec { padding: 40px 0 100px; text-align: center; }
.faq-sec h2 { font-size: clamp(36px, 4.8vw, 52px); }
.faq-sec > .wrap > p { color: var(--muted); margin: 14px 0 44px; }
.faq { max-width: 640px; margin: 0 auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-size: 20px; color: var(--maroon); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--peach-2); color: var(--maroon);
  display: grid; place-items: center; font: 500 18px/24px var(--body); text-align: center; transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); font-size: 15px; max-width: 560px; }
.faq-sec .pill { margin-top: 40px; }

/* Waitlist CTA */
.cta { text-align: center; padding: 60px 0 100px; }
.cta h2 { font-size: clamp(40px, 5vw, 56px); }
.cta p { margin: 12px 0 26px; }

/* Footer */
.footer { background: linear-gradient(180deg, var(--cream), var(--peach-2)); padding: 60px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .tag { font-family: var(--display); font-size: 22px; line-height: 1.3; color: var(--maroon); }
.footer-cols { display: flex; gap: 56px; }
.footer-cols h4 { margin: 0 0 14px; font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.footer-cols a { display: block; text-decoration: none; color: var(--maroon); font-size: 14px; margin-bottom: 10px; }
.footer-cols a:hover { text-decoration: underline; }
.footer .copy { margin-top: 90px; font-size: 13px; color: var(--ink); }

/* Contact */
.contact-hero { padding: 130px 0 80px; text-align: center; background: linear-gradient(180deg, var(--cream), var(--peach-2)); border-radius: 0 0 40px 40px; }
.contact-hero h1 { font-size: clamp(48px, 7vw, 80px); line-height: 1; }
.contact-hero > .wrap > p { color: var(--muted); margin: 16px 0 36px; }
.form { max-width: 440px; margin: 0 auto; display: grid; gap: 14px; text-align: left; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.form input, .form textarea { font: 15px var(--body); color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.form input:focus, .form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247, 160, 67, 0.2); }
.form textarea { min-height: 120px; resize: vertical; }
.form .pill { width: 100%; border-radius: 10px; height: 44px; }
.form .hp { display: none; }
.form-status { font-size: 14px; min-height: 1.2em; margin: 0; }
.form-status.ok { color: #1f6b2e; }
.form-status.err { color: #a11a1a; }

.notfound { padding: 180px 0 120px; text-align: center; }
.notfound h1 { font-size: clamp(48px, 7vw, 84px); }
.notfound p { color: var(--muted); margin: 16px 0 30px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.8s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .step[aria-selected="true"] .bar i { animation: none; width: 100%; }
  .device .scr img, .wheel ul { transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how { padding: 110px 0 60px; }
  .screens .device { width: 240px; }
  .goodbye .row { flex-direction: column; gap: 8px; text-align: center; }
  .goodbye .lead::before { display: none; }
  .wheel li { text-align: center; }
  .wheel ul { left: 0; right: 0; }
}
@media (max-width: 520px) {
  .header { inset: 12px 12px auto; }
  .header .pill-light { display: none; }
  .header { grid-template-columns: 1fr 1fr; }
  .footer-cols { gap: 36px; }
  .hero { padding-top: 100px; }
}

/* Hover polish */
@media (hover: hover) {
  .pill { transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease; }
  .pill:hover { transform: translateY(-2px); }
  .pill-black:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
  .pill-light:hover { background: #fff; box-shadow: 0 8px 20px rgba(61, 0, 0, 0.08); }
  .step:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, 0.5); }
  .faq summary:hover::after { background: #f8c592; }
}

/* Waitlist form */
.waitlist { display: inline-flex; align-items: center; gap: 6px; padding: 5px; background: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(61, 0, 0, 0.08); max-width: 100%; }
.waitlist input[type=email] { border: 0; outline: 0; background: transparent; font: 15px var(--body); color: var(--ink); padding: 0 14px; width: 230px; min-width: 0; height: 40px; }
.waitlist input::placeholder { color: rgba(42, 10, 10, 0.4); }
.waitlist .pill { height: 40px; }
.waitlist .hp { display: none; }
.waitlist.done { padding: 12px 22px; font-size: 15px; color: var(--maroon); }
.form-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; min-height: 1em; }
@media (max-width: 420px) { .waitlist input[type=email] { width: 160px; } }
