/* ==========================================================
   The Build Challenge — landing page
   Dark gold theme. Tokens first, then sections, then the modal.
   ========================================================== */

:root {
  --surface: #0a0a0b;
  --surface-2: #121315;
  --card: #17181a;
  --ink-deep: #050506;
  --ink: #f2f3f5;
  --ink-2: #d7d9dd;
  --slate: #b5b8bf;
  --muted: #85888f;
  --faint: #5f6268;
  --line: #232528;
  --line-2: #32353a;
  --gold: #dcae45;
  --gold-top: #f0cd77;
  --gold-deep: #c9973a;
  --gold-soft: #2a2317;
  --gold-line: #4a3c1e;
  --green: #2bd673;
  --green-soft: #15251c;
  --red: #e5876f;
  --paper: #f5f2ea;      /* light text on dark cards */
  --paper-2: #f7f5f0;    /* countdown tiles inside dark cards */
  --paper-ink: #17140d;
  --paper-muted: #7b7466;

  --cta-from: #f0cd77;
  --cta-to: #c28f22;
  --cta-ink: #1a1408;
  --cta-lift: rgba(255, 255, 255, .45);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;

  --container: 70rem;
  --gutter: 20px;
  --radius-card: 1.75rem;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

::selection { background: var(--gold); color: #14110b; }

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- type helpers ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.035em;
  max-width: 20ch;
  text-wrap: balance;
}
@media (min-width: 768px) { .h2 { font-size: 38px; } }
.h2-light { color: var(--paper); margin-inline: auto; max-width: 18ch; margin-top: 12px; letter-spacing: -.03em; }
@media (min-width: 768px) { .h2-light { font-size: 36px; } }

.lead { margin-top: 16px; max-width: 52ch; font-size: 16.5px; line-height: 1.6; color: var(--slate); }
.small { font-size: 13.5px; line-height: 1.6; }
.muted { color: var(--muted); }
.dim { color: rgba(245, 242, 234, .55); }
.gold { color: var(--gold); font-weight: 600; }
.caps { text-transform: uppercase; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.sep { color: var(--line-2); }

/* ---------- gold headline ---------- */
.hl-gold {
  position: relative;
  background: linear-gradient(172deg, var(--gold-top), var(--gold) 52%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl-gold::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--gold);
  filter: blur(16px);
  opacity: .34;
  pointer-events: none;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 62px;
  padding-inline: 32px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cta-from), var(--cta-to));
  color: var(--cta-ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 var(--cta-lift), 0 14px 30px -12px rgba(220, 174, 69, .5);
  transition: filter .15s ease, transform .15s ease;
}
.cta:hover { filter: brightness(1.1); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--gold-top); outline-offset: 3px; }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 34%, rgba(255,255,255,.14) 44%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.14) 56%, transparent 66%);
  transform: translateX(-130%);
  animation: cta-sweep 3s cubic-bezier(.33, 0, .2, 1) infinite;
}
@keyframes cta-sweep {
  0%, 4% { transform: translateX(-130%); }
  34%, 100% { transform: translateX(130%); }
}

/* ---------- avatar ring + pill ---------- */
.avatar-ring {
  --size: 46px;
  width: var(--size);
  height: var(--size);
  flex: 0 0 auto;
  display: flex;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(from 215deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
}
.avatar-ring > span {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: 999px;
  background: var(--card);
}
.avatar-ring img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }

.verified { width: 13px; height: 13px; flex: 0 0 auto; }
.verified-md { width: 15px; height: 15px; }

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 2px 22px rgba(0, 0, 0, .08), 0 30px 60px -28px rgba(0, 0, 0, .28);
}
.pill-text { display: flex; flex-direction: column; line-height: 1; }
.pill-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: -.02em;
}
.pill-sub { margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: 8px; }
.cd-cell {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.cd-num {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-lbl { margin-top: 4px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.countdown-mini { gap: 4px; }
.countdown-mini .cd-cell { min-width: 36px; padding: 4px 6px; border: 0; border-radius: 6px; background: var(--paper-2); box-shadow: none; }
.countdown-mini .cd-num { font-size: 13.5px; color: var(--paper-ink); }
.countdown-mini .cd-lbl { margin-top: 2px; font-size: 8px; font-weight: 600; color: var(--paper-muted); }
.countdown-mini .cd-sec { display: none; }
@media (min-width: 640px) { .countdown-mini .cd-sec { display: flex; } }

.countdown-lg .cd-cell {
  min-width: 60px; padding: 10px; border: 0;
  background: var(--paper-2);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .85);
}
.countdown-lg .cd-num { font-size: 22px; color: var(--paper-ink); }
.countdown-lg .cd-lbl { font-weight: 600; color: var(--paper-muted); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: block;
  text-decoration: none;
  background: var(--ink-deep);
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 242, 234, .1);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 46px;
}
.topbar-text { font-size: 12.5px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-text strong { color: var(--gold-top); font-weight: 600; }
.topbar-long { display: none; }
@media (min-width: 640px) { .topbar-long { display: inline; } .topbar-short { display: none; } }
@media (min-width: 768px) { .topbar-inner { height: 50px; gap: 20px; } .topbar-text { font-size: 13.5px; } }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-visual { position: relative; height: 286px; overflow: hidden; }
@media (min-width: 640px) { .hero-visual { height: 350px; } }
@media (min-width: 768px) { .hero-visual { height: 440px; } }

.hero-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(72% 96% at 50% 44%, transparent 8%, rgba(10, 10, 11, .88) 58%, var(--surface) 97%);
}
.hero-mo {
  position: absolute; bottom: -9%; left: 50%;
  height: 104%; width: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 44px rgba(220, 174, 69, .12)) drop-shadow(0 20px 44px rgba(0, 0, 0, .85));
}
.hero-fade {
  position: absolute; inset-inline: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--surface) 88%);
}

.hero-copy {
  position: relative; z-index: 10;
  margin-top: -56px;
  padding-bottom: 64px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 768px) { .hero-copy { margin-top: -80px; padding-bottom: 80px; } }

.hero-copy .profile-pill { margin-bottom: 24px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 37px;
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 16ch;
}
@media (min-width: 768px) { .hero-title { font-size: 50px; max-width: 20ch; } }

.hero-sub { margin-top: 20px; max-width: 52ch; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 768px) { .hero-sub { font-size: 20px; } }

.hero-cta { width: 100%; margin-top: 32px; display: flex; justify-content: center; }

.hero-deadline { margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
.hero-deadline .eyebrow { margin-bottom: 10px; }

.checks {
  margin-top: 32px; max-width: 52rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: 28px; row-gap: 12px;
}
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.375; color: var(--slate); }
.tick {
  display: flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700;
}

/* ---------- dark cards (shared) ---------- */
.dark-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(74, 60, 30, .45);
  background: var(--ink-deep);
  color: var(--paper);
}
@media (min-width: 768px) { .dark-card { border-radius: 2.25rem; } }

.sparkles { position: absolute; inset: 0; z-index: -5; width: 100%; height: 100%; pointer-events: none; }

.orb {
  position: absolute; z-index: -20; pointer-events: none;
  border-radius: 999px;
  filter: blur(90px);
  will-change: transform;
}
.orb-a {
  left: -22rem; top: -24rem; width: 52rem; height: 52rem;
  background: radial-gradient(circle, rgba(220,174,69,.34) 0%, rgba(220,174,69,.16) 34%, rgba(220,174,69,.05) 56%, transparent 74%);
  animation: orb-a 26s ease-in-out infinite;
}
.orb-b {
  right: -16rem; bottom: -20rem; width: 46rem; height: 46rem;
  background: radial-gradient(circle, rgba(194,143,34,.30) 0%, rgba(194,143,34,.14) 34%, rgba(194,143,34,.04) 58%, transparent 76%);
  animation: orb-b 34s ease-in-out infinite;
}
.orb-sm { filter: blur(80px); }
.orb-a.orb-sm { left: -18rem; top: -20rem; width: 40rem; height: 40rem; }
.orb-b.orb-sm { right: -14rem; bottom: -18rem; width: 36rem; height: 36rem; }
@keyframes orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(7%, 9%) scale(1.14); }
  66% { transform: translate(-4%, 3%) scale(1.04); }
}
@keyframes orb-b {
  0%, 100% { transform: translate(0, 0) scale(1.06); }
  40% { transform: translate(-8%, -7%) scale(.9); }
  75% { transform: translate(3%, -3%) scale(1); }
}

/* ---------- first place ---------- */
.section-prize { padding-block: 40px; }
@media (min-width: 768px) { .section-prize { padding-block: 56px; } }

.prize-inner { position: relative; z-index: 10; padding: 44px 24px; }
@media (min-width: 768px) { .prize-inner { padding: 56px 48px; } }
.prize-inner {
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 1024px) {
  .prize-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
}

.prize-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1024px) { .prize-copy { text-align: left; align-items: flex-start; } }

.tag-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(220, 174, 69, .14); color: var(--gold-top);
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
}

.fifty { position: relative; width: 100%; max-width: 440px; margin-top: 24px; }
.fifty img { width: 100%; }
.twinkles { position: absolute; inset: 0; pointer-events: none; }
.twinkle {
  --tw: 16px;
  position: absolute;
  width: var(--tw); height: var(--tw);
  margin-left: calc(var(--tw) / -2); margin-top: calc(var(--tw) / -2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.18 8.4 3.4 11.8 12 12-8.6.2-11.82 3.6-12 12-.18-8.4-3.4-11.8-12-12C8.6 11.8 11.82 8.4 12 0Z' fill='%23fff6dd'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 232, 170, .9));
  opacity: 0;
  animation: twinkle 3s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes twinkle {
  0%, 72%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  84% { opacity: 1; transform: scale(1) rotate(70deg); }
}

.prize-text { margin-top: 24px; max-width: 42ch; font-size: 17px; line-height: 1.6; color: rgba(245, 242, 234, .75); }
@media (min-width: 768px) { .prize-text { font-size: 18px; } }

.prize-visual { position: relative; width: 100%; max-width: 360px; margin-inline: auto; }
.invests-badge {
  position: absolute; right: 0; bottom: -4px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
}
.invests-badge .avatar-ring > span { background: var(--paper); }
.invests-badge figcaption { display: flex; flex-direction: column; line-height: 1; color: var(--paper-ink); }
.invests-badge .pill-name { font-size: 14px; }
.invests-badge .pill-sub { margin-top: 6px; font-size: 12.5px; color: rgba(20, 16, 10, .65); }

/* ---------- tiers ---------- */
.section-tiers { padding-block: 64px; }
@media (min-width: 768px) { .section-tiers { padding-block: 96px; } }

.tiers { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.tier {
  display: flex; flex-direction: column;
  padding: 24px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.tier-art { display: flex; align-items: center; justify-content: center; height: 128px; }
.tier-art img { height: 100%; width: auto; object-fit: contain; }
.tier-rank { margin-top: 20px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); }
.tier-title { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.035em; }
.tier-text { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--slate); }

.tiers-note { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 768px) { .tiers-note { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; } }
.free-note {
  padding: 16px 20px; border-radius: 16px;
  border: 1px solid rgba(43, 214, 115, .25); background: var(--green-soft);
  font-size: 15.5px; font-weight: 500; line-height: 1.55;
}
.tiers-note a { color: var(--gold-deep); font-weight: 500; text-underline-offset: 4px; }
.tiers-note a:hover { color: var(--ink); }

/* ---------- final CTA ---------- */
.section-final { padding-top: 28px; padding-bottom: 16px; }
@media (min-width: 768px) { .section-final { padding-bottom: 24px; } }
.final-wrap { position: relative; }

.final-bg { position: absolute; inset: 0; z-index: -30; width: 100%; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; }
.final-shade { position: absolute; inset: 0; z-index: -25; background: radial-gradient(118% 104% at 50% 50%, rgba(5,5,6,.68), rgba(5,5,6,.95)); pointer-events: none; }

.final-inner {
  position: relative; z-index: 10;
  padding: 48px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 768px) { .final-inner { padding: 64px 48px; } }
.final-inner .eyebrow { font-size: 11.5px; letter-spacing: .14em; }
.final-inner .countdown { margin-top: 28px; }
.final-cta { width: 100%; margin-top: 32px; display: flex; justify-content: center; }

.final-pill { position: absolute; left: 50%; top: 0; z-index: 10; transform: translate(-50%, -50%); }

.secure {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--green); text-align: center;
}
.secure svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- footer ---------- */
.footer { padding-top: 16px; padding-bottom: 56px; }
.footer-card {
  padding: 24px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
@media (min-width: 768px) { .footer-card { padding: 32px; } }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-id { display: flex; align-items: center; gap: 14px; }
.footer-name { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.footer-stats { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; color: var(--muted); }
.footer-stats strong { font-weight: 500; color: var(--slate); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13.5px; }
.footer-links a { color: var(--slate); font-weight: 500; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12.5px; line-height: 1.625; color: var(--muted);
}
.footer-legal p { max-width: 78ch; }
.footer-legal a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- entry modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 24px); max-width: 420px;
  max-height: calc(100% - 24px); overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(220, 174, 69, .6);
  background: var(--card);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9);
  animation: modal-in .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px; border: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--slate);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--gold-top); outline-offset: 2px; }

.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; text-align: center; }
.modal-sub { margin-top: 6px; text-align: center; font-size: 14px; color: var(--slate); }

.fields { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.field input, .dial {
  width: 100%; min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--surface-2); color: var(--ink);
  font-size: 16px;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220, 174, 69, .2); }
.field input[aria-invalid="true"] { border-color: var(--red); }

.field-phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.dial { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; }
.dial-flag { font-size: 18px; line-height: 1; }
.dial select {
  appearance: none; -webkit-appearance: none;
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; padding-right: 14px; cursor: pointer;
}
.dial select:focus { outline: 0; }
.dial:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220, 174, 69, .2); }
.dial-caret { position: absolute; right: 10px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }

.form-error { margin-top: 12px; font-size: 13px; color: var(--red); text-align: center; }
.form-note { margin-top: 18px; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--slate); }
.form-note strong { color: var(--ink); font-weight: 600; }

.cta-form { margin-top: 18px; max-width: none; min-height: 58px; text-transform: none; font-size: 17px; }
.cta-form[disabled] { filter: saturate(.6) brightness(.85); cursor: wait; }
.cta-form[disabled]::after { animation: none; }

.consent { margin-top: 14px; text-align: center; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.consent a { color: var(--slate); text-underline-offset: 3px; }

.entry-done { text-align: center; padding-block: 12px; }
.done-mark {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
}
.done-mark svg { width: 28px; height: 28px; }
.btn-ghost {
  margin-top: 22px; min-height: 48px; padding-inline: 22px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); }

body.modal-open { overflow: hidden; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cta::after, .orb, .twinkle { animation: none; }
  .twinkle { opacity: .8; transform: scale(1); }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages (rules, privacy) ---------- */
.legal { padding-block: 40px 80px; }
.legal-wrap { max-width: 44rem; margin-inline: auto; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--slate); text-decoration: none; }
.legal-back:hover { color: var(--ink); }
.legal h1 { margin-top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.035em; line-height: 1.1; }
@media (min-width: 768px) { .legal h1 { font-size: 44px; } }
.legal-updated { margin-top: 8px; font-size: 13px; color: var(--muted); }
.legal-summary {
  margin-top: 24px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid rgba(220,174,69,.35); background: var(--gold-soft);
  font-size: 15.5px; line-height: 1.6;
}
.legal-summary a, .legal-body a { color: var(--gold-top); text-underline-offset: 4px; }
.legal-body { margin-top: 40px; display: flex; flex-direction: column; gap: 36px; }
.legal-body section { display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; line-height: 1.2;
}
.legal-body h2 .n { flex: 0 0 auto; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold-deep); }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.legal-body ul { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.legal-body ul li { padding-left: 18px; position: relative; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.score { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.score li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.score li::before { display: none; }
.score li { padding-left: 16px; }
.score strong { font-variant-numeric: tabular-nums; color: var(--gold-top); }
.todo { color: var(--red); font-size: 13px; }
.legal-note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- thanks page ---------- */
.thanks { position: relative; isolation: isolate; overflow: hidden; }
.thanks-wall { position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -10; pointer-events: none; }
.thanks-wall img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.thanks-wall-shade { position: absolute; inset: 0; background: radial-gradient(70% 80% at 50% 30%, rgba(10, 10, 11, .2), var(--surface) 78%); }
.thanks-wall-fade { position: absolute; inset: auto 0 0 0; height: 192px; background: linear-gradient(to bottom, transparent, var(--surface)); }

.thanks-inner { padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .thanks-inner { padding-top: 80px; padding-bottom: 56px; } }

.thanks-head { max-width: 640px; margin-inline: auto; text-align: center; }
.call-mark { position: relative; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-inline: auto; }
.call-core { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 999px; background: var(--green-soft); box-shadow: 0 0 0 1px rgba(43, 214, 115, .3); color: var(--green); }
.call-core svg { width: 32px; height: 32px; }
.ringpulse { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--green); animation: ringpulse 2.1s cubic-bezier(.2, .6, .3, 1) infinite; }
.ringpulse-2 { animation-delay: 1.05s; }
@keyframes ringpulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

.thanks-eyebrow { margin-top: 28px; color: var(--green); letter-spacing: .16em; }
.thanks-title { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
@media (min-width: 768px) { .thanks-title { font-size: 54px; } }
.thanks-sub { margin: 16px auto 0; max-width: 34ch; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 768px) { .thanks-sub { font-size: 20px; } }

.thanks-card { border: 1px solid var(--line); border-radius: 1.5rem; background: var(--card); padding: 24px; }
@media (min-width: 768px) { .thanks-card { padding: 36px; } }

.thanks-call { position: relative; max-width: 640px; margin: 64px auto 0; }
.thanks-card-call { padding-top: 48px; text-align: center; }
@media (min-width: 768px) { .thanks-card-call { padding-top: 56px; } }
.thanks-pill { position: absolute; left: 50%; top: 0; z-index: 10; transform: translate(-50%, -50%); }
.thanks-h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 768px) { .thanks-h2 { font-size: 30px; } }
.thanks-lead { margin: 12px auto 0; max-width: 40ch; font-size: 16px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
@media (min-width: 768px) { .thanks-lead { font-size: 17px; } }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); padding: 6px 14px; font-size: 13px; color: var(--slate); }
.thanks-missed { margin: 8px auto 0; max-width: 44ch; font-size: 13px; line-height: 1.625; color: var(--muted); }

.thanks-idea { max-width: 640px; margin: 24px auto 0; }
.thanks-idea-eyebrow { font-size: 11.5px; letter-spacing: .14em; color: var(--gold); }
.thanks-idea-title { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
@media (min-width: 768px) { .thanks-idea-title { font-size: 24px; } }
.thanks-idea-text { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--slate); }
.idea-box { margin-top: 20px; width: 100%; resize: none; border: 1px solid var(--line-2); border-radius: 1rem; background: var(--surface-2); padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.625; color: var(--ink); }
.idea-box::placeholder { color: var(--muted); }
.idea-box:focus { outline: 0; border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) { .ringpulse { animation: none; opacity: 0; } }
