:root {
  color-scheme: light dark;
  --bg: #fff8f2;
  --panel: #ffffff;
  --ink: #1a1410;
  --muted: #6f625a;
  --soft: #f6ece4;
  --line: #efe2d8;
  --flame: #ea580c;
  --flame-soft: #fde7d6;
  --button: #1a1410;
  --button-ink: #ffffff;
  --err: #c2410c;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #130f0d;
    --panel: #1d1815;
    --ink: #f6efe9;
    --muted: #b3a59b;
    --soft: #29211c;
    --line: #2f2621;
    --flame: #fb923c;
    --flame-soft: #3a2418;
    --button: #f6efe9;
    --button-ink: #130f0d;
    --err: #fdba74;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { width: min(100% - 40px, 620px); margin: 0 auto; padding: 72px 0 40px; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.hero { margin-bottom: 64px; }
.mark { width: 64px; height: 64px; display: block; margin-bottom: 28px; }
.badge {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--flame-soft); color: var(--flame); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
h1 { margin: 0 0 20px; font-size: clamp(36px, 7vw, 54px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
h1 span { color: var(--flame); }
.lead { margin: 0; font-size: clamp(17px, 2.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34em; }

/* How it works */
h2 { margin: 0 0 22px; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.how { margin-bottom: 56px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.how li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flame); color: #fff; font-weight: 700; font-size: 15px;
}
.how h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.how p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Panels */
.panel { background: var(--panel); border-radius: 24px; padding: 28px; margin-bottom: 20px; box-shadow: 0 1px 0 var(--line), 0 12px 32px -20px rgba(90, 40, 10, 0.18); }
.panel h2 { margin-bottom: 16px; font-size: 19px; }
.muted { margin: -8px 0 16px; color: var(--muted); font-size: 15px; }

.invite { display: flex; gap: 10px; }
.invite input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--soft); color: var(--ink); font: 500 16px var(--font); outline: none;
}
.invite input:focus { border-color: var(--flame); background: var(--panel); }
.invite button, .button-link {
  height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--button); color: var(--button-ink); font: 600 16px var(--font);
}
.button-link { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 4px; }
.result { margin: 12px 4px 0; font-size: 14.5px; color: var(--muted); min-height: 0; }
.result:empty { display: none; }
.result.err { color: var(--err); }
.waitlist { margin: 16px 4px 0; font-size: 15px; color: var(--muted); }
.waitlist a { color: var(--ink); font-weight: 600; }

/* Message Quema */
.phone-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.phone-tab {
  font: 600 14px var(--font); color: var(--ink); background: var(--soft); border: 0; border-radius: 999px;
  padding: 9px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.phone-tab[aria-selected="true"]:not(:disabled) { background: var(--button); color: var(--button-ink); }
.phone-tab:disabled { cursor: default; color: var(--muted); }
.phone-tab-soon { font-weight: 500; font-size: 12px; opacity: 0.8; }
.phone-body { text-align: center; }
.phone-soon { margin: 6px 0 2px; color: var(--muted); font-size: 15px; }
.phone-qr svg { width: 168px; height: 168px; display: block; margin: 4px auto 10px; background: #fff; border-radius: 12px; padding: 6px; }
.phone-hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.phone-open {
  display: inline-flex; height: 48px; padding: 0 22px; align-items: center; border-radius: 999px;
  background: var(--button); color: var(--button-ink); font-weight: 600; text-decoration: none;
}
.phone-open-mobile { display: none; }
@media (max-width: 560px) {
  .phone-open-mobile { display: inline; }
  .phone-open-desktop { display: none; }
  .phone-qr { display: none; }
}

footer { margin-top: 40px; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  main { padding-top: 44px; }
  .hero { margin-bottom: 48px; }
  .panel { padding: 22px; border-radius: 20px; }
  .invite { flex-direction: column; }
  .invite input { flex: none; width: 100%; }
  .invite button { width: 100%; }
  .phone-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .phone-tab { flex-direction: column; gap: 0; padding: 8px 4px; border-radius: 14px; font-size: 13.5px; }
  .phone-tab-soon { font-size: 11px; }
}
