:root {
  --saffron: #f37021;
  --saffron-dark: #c6530f;
  --ink: #1c140e;
  --muted: #6a5849;
  --cream: #fff6ec;
  --card: #ffffff;
  --line: #edd9c4;
  --ok: #1f7a4d;
  --shadow: 0 14px 40px rgba(198, 83, 15, 0.1);
  --serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(1000px 420px at 50% -8%, rgba(243, 112, 33, 0.2), transparent 58%),
    linear-gradient(180deg, #fffaf3 0%, var(--cream) 100%);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(560px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.logo {
  display: block;
  width: min(210px, 68vw);
  margin: 6px auto 16px;
}

.hero { text-align: center; }

.hero h1,
.thanks h2,
.quote-card blockquote,
.section-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
}

.hero h1 {
  font-size: clamp(2.35rem, 9vw, 3.35rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 10px 0 16px;
  line-height: 1.5;
}

.when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 8px;
}

.tick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow);
}

.tick b {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--saffron-dark);
}
.tick span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.live {
  background: #ecfff4;
  color: var(--ok);
  border: 1px solid #b7ebc9;
  border-radius: 16px;
  padding: 16px;
  font-weight: 800;
  text-align: center;
  margin: 18px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.form-stack { margin-top: 6px; }

.block-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}

.field {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 18px 0 10px;
  line-height: 1.35;
}

.field:first-child,
.block-kicker + .field {
  margin-top: 0;
}

.req {
  color: var(--saffron-dark);
}

input[type="text"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  background: #fffdfb;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.choice:has(:checked) {
  border-color: var(--saffron);
  background: #fff4eb;
  font-weight: 700;
}

.choice input { margin-top: 3px; flex-shrink: 0; }

.actions {
  margin-top: 8px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #ff8a3d, var(--saffron-dark));
  color: #fff;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 10px 24px rgba(212, 90, 18, 0.28);
}

.btn.secondary {
  background: #fff;
  color: var(--saffron-dark);
  border: 1px solid var(--saffron);
  box-shadow: none;
}

.passcode {
  text-align: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.error {
  color: #b42318;
  background: #fff1f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 12px;
  font-weight: 700;
}

.hidden { display: none !important; }

.cal {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.thanks h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
}

.thanks p { text-align: center; color: var(--muted); }

.section-title {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.learn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.learn-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.4;
}

.num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4eb;
  color: var(--saffron-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.quote-card {
  background: linear-gradient(180deg, #2b1a12 0%, #3d2418 100%);
  color: #fff8ef;
  border: 0;
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
}

.quote-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffc089;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.admin-bar input, .admin-bar select {
  flex: 1 1 140px;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}

.table-wrap { overflow-x: auto; }

.mini { display: flex; gap: 6px; flex-wrap: wrap; }
.mini button, .wa-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.45);
  display: grid;
  place-items: end center;
  z-index: 20;
}

.sheet {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 18px;
  max-height: 85dvh;
  overflow: auto;
}

.wa-list { display: grid; gap: 8px; }

@media (min-width: 720px) {
  .wrap { width: min(640px, calc(100% - 48px)); }
  .modal { place-items: center; }
  .sheet { border-radius: 24px; }
}
