/* FSD Radar - landing page */

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(62, 230, 168, .13), transparent 70%),
    radial-gradient(520px 340px at 12% 10%, rgba(90, 184, 255, .09), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); text-wrap: balance; margin: 18px 0 20px; font-weight: 680; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #3ee6a8, #5ab8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .86rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--radar); }

/* radar visual */
.scope { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; }
.scope-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 38, 31, .9) 0%, rgba(8, 18, 15, .85) 62%, rgba(7, 11, 18, 0) 71%);
}
.scope svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.sweep {
  position: absolute; inset: 7%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(62, 230, 168, .5), rgba(62, 230, 168, .12) 14%, transparent 26%);
  animation: sweep 4.8s linear infinite;
  mask-image: radial-gradient(circle, #000 69%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 69%, transparent 70%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #eafff6; box-shadow: 0 0 0 5px rgba(62,230,168,.25), 0 0 22px 4px rgba(62,230,168,.55); animation: ping 4.8s ease-out infinite; }
.blip.dim { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--muted); box-shadow: none; animation: none; opacity: .7; }
@keyframes ping { 0%, 100% { opacity: .35; transform: scale(.8); } 8% { opacity: 1; transform: scale(1.25); } 40% { opacity: .85; transform: scale(1); } }

.alert-card {
  position: absolute; right: -4%; bottom: 6%; width: min(78%, 330px);
  background: rgba(15, 23, 36, .92); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(62,230,168,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.alert-top { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-bottom: 8px; }
.alert-top b { display: inline-flex; align-items: center; gap: 6px; color: var(--radar); font-weight: 600; }
.alert-top b i { width: 7px; height: 7px; border-radius: 50%; background: var(--radar); display: inline-block; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }
.alert-title { font: 600 1rem/1.3 var(--display); margin-bottom: 4px; }
.alert-meta { color: var(--text-2); font-size: .84rem; margin-bottom: 10px; }
.alert-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-note { position: absolute; left: 0; top: 6%; font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* sections */
.section { padding: 84px 0 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 14px; }
.section-head p { color: var(--text-2); font-size: 1.06rem; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: linear-gradient(180deg, var(--surface), rgba(15, 23, 36, .6)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.card p { color: var(--text-2); margin: 0; font-size: .96rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--radar-dim); color: var(--radar); border: 1px solid rgba(62,230,168,.25); }
.icon svg { width: 22px; height: 22px; }
.pillars .card { display: flex; flex-direction: column; }
.big-num { font: 650 2rem/1 var(--display); color: var(--text); margin-top: auto; padding-top: 18px; letter-spacing: -.03em; }
.big-num small { font-size: .9rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 .78rem/1 var(--mono); color: var(--radar); letter-spacing: .1em; }
.step h3 { font-size: 1.04rem; margin: 12px 0 6px; }
.step p { color: var(--text-2); font-size: .92rem; margin: 0; }

/* verdict demo */
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.listing { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.listing-top { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.listing-top h3 { font-size: 1.1rem; margin: 0 0 4px; }
.listing-top p { color: var(--text-2); font-size: .86rem; margin: 0; }
.price { font: 650 1.3rem/1 var(--display); white-space: nowrap; }
.rows { padding: 8px 20px 18px; }
.vrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.vrow:last-child { border-bottom: 0; }
.vrow span:first-child { color: var(--text-2); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; width: 120px; }
.meter i { display: block; height: 100%; width: 96%; background: linear-gradient(90deg, var(--radar-2), var(--radar)); border-radius: 99px; }
.tick-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; color: var(--text-2); }
.tick-list svg { flex: none; width: 20px; height: 20px; color: var(--radar); margin-top: 2px; }
.tick-list b { color: var(--text); font-weight: 600; }
.verdict h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 14px; }
.conf { display: flex; align-items: center; gap: 10px; }
.illus { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* waitlist */
.join { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(62,230,168,.25); padding: 44px; background: radial-gradient(700px 300px at 90% 0%, rgba(62,230,168,.14), transparent 70%), var(--surface); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.join h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 12px; }
.join-copy p { color: var(--text-2); margin: 0; }
.join-form { position: relative; background: rgba(7, 11, 18, .55); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field .opt { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.field input, .field select {
  width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; border-radius: 11px;
  font: 500 1rem/1.3 var(--font); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--muted); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b6c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--radar); box-shadow: 0 0 0 3px var(--radar-dim); }
.join-form .btn { width: 100%; }
.join-form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.join-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.join-msg { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; border: 1px solid; }
.join-msg:focus { outline: none; }
.join-msg.ok { color: var(--good); background: rgba(62,230,168,.08); border-color: rgba(62,230,168,.3); }
.join-msg.bad { color: var(--bad); background: rgba(255,122,138,.08); border-color: rgba(255,122,138,.3); }
.join-msg:target, .join-msg.show { display: block; }
.join-form.is-done .join-fields { display: none; }
.join-form.is-done .join-msg.ok { margin: 0; padding: 22px 18px; font: 600 1.05rem/1.45 var(--display); text-align: center; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .15s ease; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--radar); border-bottom: 2px solid var(--radar);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover h3 { color: #fff; }
.faq summary h3 { font-size: 1.04rem; margin: 0; line-height: 1.35; }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }
.faq .answer p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid, .verdict, .join { grid-template-columns: minmax(0, 1fr); }
  .scope { width: min(100%, 440px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .join { padding: 28px 20px; gap: 26px; }
  .join-form { padding: 20px 16px; }
  .section { padding-top: 64px; }
  .alert-card { right: 0; bottom: 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { flex: 1 1 100%; }
  .listing-top { flex-direction: column; }
}

/* Keep "Full Self-Driving" (and its gradient) on one line wherever the hero is wide enough. */
@media (min-width: 700px) { .hero h1 em { white-space: nowrap; } }
/* 1024-ish: the alert card must not touch the viewport edge. */
@media (max-width: 1180px) { .alert-card { right: 0; } }

/* ---- layout polish (design QA 2026-09-23) ---- */
/* Wide screens: "Why it matters" puts the intro beside the headline, the FAQ gets a sticky heading
   column, so neither section leaves half the page empty. */
@media (min-width: 981px) {
  .hero + .section .section-head {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: 56px; align-items: end;
  }
  .hero + .section .section-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .hero + .section .section-head p { margin: 0 0 .5em; }
  #faq .wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
  #faq .section-head { position: sticky; top: 100px; margin-bottom: 0; }
  #faq .faq { max-width: none; }
}
/* Stacked hero (tablet): a smaller scope so the CTA and the next section are not a screen apart. */
@media (max-width: 980px) and (min-width: 561px) { .scope { width: min(100%, 400px); margin-top: 8px; } }
/* Phones: centre the alert card under the scope instead of letting it cover most of the rings. */
@media (max-width: 560px) {
  .scope { width: min(100%, 360px); margin-bottom: 64px; }
  .alert-card { left: 50%; right: auto; bottom: -58px; width: min(94%, 320px); transform: translateX(-50%); }
}
/* Example listing on small phones: labels stay on one line, values drop below them only when they must. */
.vrow span:first-child { white-space: nowrap; }
@media (max-width: 400px) {
  .listing-top { padding: 16px; }
  .rows { padding: 6px 16px 14px; }
  .vrow { flex-wrap: wrap; row-gap: 6px; }
  .meter { width: 88px; }
}

/* ---- founding offers (Stripe presale; owner: general-stripe session, see app/src/Founders.php) ---- */
#founders .section-head { margin-inline: auto; text-align: center; }
#founders .section-head h2, #founders .section-head p { text-wrap: balance; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 940px; margin: 0 auto; }
.offer { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px 28px; box-shadow: var(--shadow); }
.offer-main { border-color: rgba(62,230,168,.45); background: radial-gradient(520px 260px at 80% 0%, rgba(62,230,168,.13), transparent 70%), var(--surface); }
.offer h3 { font-size: 1.35rem; margin: 0 0 12px; }
.offer-badge { position: absolute; top: -12px; left: 26px; font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--radar); color: #03140d; }
.offer-badge.alt { background: var(--surface-3); color: var(--amber); border: 1px solid rgba(245,185,74,.4); }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; }
.offer-price b { font: 650 2.9rem/1 var(--display); letter-spacing: -.03em; color: var(--text); }
.offer-price span { color: var(--text-2); font-size: .95rem; }
.offer-price s { flex-basis: 100%; color: var(--muted); font-size: .88rem; }
.offer-lede { color: var(--text-2); margin: 0 0 4px; }
.offer .tick-list { margin: 16px 0 24px; gap: 10px; }
.offer .tick-list li { font-size: .95rem; }
.offer-form { margin-top: auto; }
.offer-form .btn { width: 100%; }
.offer-form .btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.offer.is-soldout { opacity: .6; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; max-width: 940px; margin: 22px auto 0; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(62,230,168,.35); background: rgba(62,230,168,.05); }
.guarantee svg { flex: none; width: 26px; height: 26px; color: var(--radar); margin-top: 1px; }
.guarantee p { margin: 0; color: var(--text-2); font-size: .95rem; }
.guarantee b { color: var(--text); }
.offer-foot { max-width: 940px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: .84rem; }
.offer-msg { max-width: 940px; margin: 0 auto 22px; padding: 12px 14px; border-radius: 10px; font-size: .94rem; border: 1px solid rgba(255,122,138,.35); color: var(--bad); background: rgba(255,122,138,.08); }
.offer-msg.soft { border-color: var(--line-2); color: var(--text-2); background: var(--surface); }
.offer-msg:focus { outline: none; }
@media (max-width: 760px) {
  .offers { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .offer { padding: 28px 20px 22px; }
}
@media (max-width: 560px) { #founders .section-head { text-align: left; margin-inline: 0; } }
