/* =========================================================
   TeslaReferralLinks — landing page styles.

   Visual references (from screenshots):
     * tesla.com — light surfaces, TESLA wordmark nav, rounded-pill
       blue primary CTAs with title case (NOT uppercase), white/border
       secondary buttons, full-bleed media sections, minimal inline footer.
     * referral landing reference — centered typographic hero, URL pill
       with inline arrow action, primary + secondary CTA row, small
       uppercase accent section labels, trust chip row, sticky bottom bar.

   Non-infringing choices: system font stack (Tesla uses proprietary
   Gotham — we intentionally do not substitute it), distinct blue accent
   (#3457dc, close to Tesla's production CTA blue but not a trademarked
   brand color reuse), no Tesla logo or wordmark.
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --bg-deep: #f9f9f9;
  --bg-dark: #171a20;

  /* Text */
  --fg: #171a20;
  --fg-soft: #393c41;
  --fg-muted: #5c5e62;
  --fg-subtle: #8a8e93;

  /* Accents — Tesla-style blue primary, muted reds for urgency, green for active */
  --accent: #3457dc;         /* Primary CTA blue */
  --accent-hover: #2845bf;
  --accent-soft: #eef2ff;
  --success: #0f7b3f;        /* active/verified indicator */
  --warn: #b17200;           /* urgency text */

  /* Lines */
  --line: #dcdcdc;
  --line-soft: #ececec;
  --line-strong: #c9c9c9;

  /* Radii */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadows — whisper-soft; Tesla uses almost none */
  --shadow-xs: 0 1px 2px rgba(23, 26, 32, 0.04);
  --shadow: 0 10px 30px rgba(23, 26, 32, 0.06);
  --shadow-bar: 0 -4px 20px rgba(23, 26, 32, 0.08);

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --stickybar-h: 68px;

  /* Typography */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Room so the sticky bar never covers final footer content */
  padding-bottom: var(--stickybar-h);
}

a { color: inherit; text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent); }

img, svg { display: block; max-width: 100%; }

p  { margin: 0 0 14px; color: var(--fg-soft); }

code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--fg);
  font-size: 0.92em;
  letter-spacing: 0.01em;
}

h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

/* =========================================================
   LAYOUT WRAPPERS
   ========================================================= */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow {
  max-width: var(--wrap-narrow);
  padding: 0 24px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

.center { text-align: center; }

/* =========================================================
   NAV — Tesla.com inspired: wordmark left, minimal links,
   one primary CTA on the right. Sticky with blurred backdrop.
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 640px) { .nav-inner { padding: 12px 20px; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.brand-icon { width: 20px; height: 20px; color: var(--accent); }
.brand-text { color: var(--fg); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
}
.nav-link:hover { color: var(--fg); }

@media (max-width: 720px) {
  .nav-link { display: none; }
  .nav-right .btn-sm { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 400px) {
  .brand-text { display: none; }
}

/* =========================================================
   BUTTONS — Tesla.com pattern:
     primary:   blue fill, white text, rounded pill, title case
     secondary: white fill, dark text, thin border
     small:     tighter padding for nav / sticky bar
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  border: 1px solid transparent;
  min-width: 220px;
  line-height: 1.2;
  text-align: center;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 80ms ease,
    box-shadow 150ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-icon { width: 15px; height: 15px; color: currentColor; flex: none; }

.btn-label { display: inline-block; }
.btn-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}
.btn-secondary .btn-label + .btn-sub { margin-top: 1px; }

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff !important;
}

.btn-secondary {
  background: #ffffff;
  color: var(--fg) !important;
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--line-strong);
  color: var(--fg) !important;
}

/* For buttons sitting on the dark incentive section */
.btn-on-dark.btn-primary {
  background: #ffffff;
  color: var(--fg) !important;
  border-color: #ffffff;
}
.btn-on-dark.btn-primary:hover {
  background: #ebebeb;
  border-color: #ebebeb;
  color: var(--fg) !important;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  min-width: 0;
}

/* Copied state — used by script.js */
.btn.copied,
.btn-primary.copied {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #ffffff !important;
}

/* =========================================================
   HERO — centered typographic, referral-card front-and-center.
   Light surface; relies on type hierarchy, not imagery.
   ========================================================= */

.hero {
  padding: 64px 32px 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(52, 87, 220, 0.06), transparent 55%),
    linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--fg-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hero-eyebrow time {
  font-weight: 600;
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.eye-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eye-sep { color: var(--fg-muted); }
.pulse {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--success);
  flex: none;
  box-shadow: 0 0 0 0 rgba(15, 123, 63, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 123, 63, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(15, 123, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 123, 63, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.hero-title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 14px;
  color: var(--fg);
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero-lead {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

/* ---- URL pill + inline arrow button --------------------- */
.link-chip {
  display: flex;
  align-items: stretch;
  max-width: 620px;
  margin: 0 auto 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.link-chip:hover { border-color: var(--line-strong); box-shadow: 0 12px 36px rgba(23,26,32,0.08); }
.link-chip-text {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  text-align: left;
}
.link-chip-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: var(--accent);
  color: #ffffff !important;
  transition: background 150ms ease;
}
.link-chip-go:hover { background: var(--accent-hover); color: #ffffff !important; }
.link-chip-go svg { width: 16px; height: 16px; }

/* ---- Hero CTA row --------------------------------------- */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.hero-cta .btn { min-width: 240px; }
.hero-cta .btn-secondary {
  flex-direction: column;
  padding: 10px 28px;
  line-height: 1.15;
}
.hero-cta .btn-secondary .btn-label { font-size: 14.5px; font-weight: 500; }
.hero-cta .btn-secondary .btn-sub { font-size: 11.5px; color: var(--fg-muted); }

/* ---- Trust + urgency lines ------------------------------ */
.hero-trust {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin: 0 0 6px;
}
.hero-trust .check { color: var(--success); font-weight: 700; margin-right: 2px; }
.hero-trust .sep { margin: 0 8px; color: var(--fg-subtle); }

.hero-urgency {
  font-size: 13px;
  color: #d93025;
  font-weight: 600;
  margin: 0 0 28px;
}

/* ---- Trust chip row ------------------------------------- */
.chip-row {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-soft);
  white-space: nowrap;
}
.chip-mark {
  color: var(--success);
  font-weight: 700;
}
.chip-mark-star { color: #b8860b; }

/* ---- Hero responsive ------------------------------------ */
@media (max-width: 720px) {
  .hero { padding: 48px 20px 44px; }
  .hero-lead { margin-bottom: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; min-width: 0; }
  .hero-cta .btn-secondary { padding: 12px 24px; }
}
@media (max-width: 520px) {
  .hero-title { letter-spacing: -0.025em; }
  .link-chip { flex-direction: column; border-radius: var(--r-lg); }
  .link-chip-text {
    white-space: normal;
    word-break: break-all;
    padding: 14px 18px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
  }
  .link-chip-go {
    padding: 12px 20px;
    justify-content: center;
    gap: 8px;
  }
  .link-chip-go::after {
    content: "Open on Tesla.com";
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .chip { font-size: 12.5px; padding: 7px 12px; }
  .hero-trust { font-size: 13px; }
  .hero-trust .sep { margin: 0 5px; }
}

/* =========================================================
   SHARED SECTION CHROME
   ========================================================= */

.section {
  padding: 96px 0;
  background: var(--bg);
}
.section-alt { background: var(--bg-alt); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 14px;
}
.kicker.center { text-align: center; }
.kicker-on-dark { color: rgba(255, 255, 255, 0.55); }

.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--fg);
  margin: 0 0 40px;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }

@media (max-width: 520px) {
  .section-title { margin-bottom: 28px; }
}

/* =========================================================
   HOW IT WORKS — numbered step list, boxless
   ========================================================= */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}
.step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
  color: var(--fg);
}
.step-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 520px) {
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 2px; }
  .step-num { width: 32px; height: 32px; font-size: 14px; }
  .step-title { font-size: 16px; margin-top: 3px; }
}

/* =========================================================
   WHAT YOU GET — reward line + supporting paragraph
   ========================================================= */

.reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 0 0 20px;
  box-shadow: var(--shadow-xs);
}
.reward-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reward-name { font-size: 16px; font-weight: 600; color: var(--fg); }
.reward-meta { font-size: 12.5px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.reward-right { display: flex; align-items: center; gap: 10px; flex: none; }
.reward-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}
.reward-price s {
  /* Explicit strike so the "$297" reads as a crossed-out former price. */
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #d93025;
}
.reward-tag {
  font-size: 16px;
  font-weight: 800;
  color: var(--success);
  background: rgba(15, 123, 63, 0.12);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.reward-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 520px) {
  .reward { flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 14px; }
  .reward-price { font-size: 20px; }
  .reward-tag { font-size: 15px; }
}

/* Inline red-bold emphasis used in the hero lead. */
.hero-em {
  color: #d93025;
  font-weight: 700;
}

/* Inline Tesla.com links inside prose. Subtle underline so the link is
   obvious without competing with the big red call-to-action buttons. */
.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.inline-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Right-arrow icon used inside "Order on Tesla.com" buttons. Matches
   the arrow inside the referral-link chip so every "go to Tesla.com"
   surface shares the same glyph. */
.btn-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  flex: none;
}
.btn-sm .btn-arrow { width: 12px; height: 12px; margin-left: 4px; }
.stickybar-btn .btn-arrow { margin-left: 4px; }

/* =========================================================
   LEGAL PAGES (privacy, terms)
   ========================================================= */
.legal { padding: 8px 0 40px; }
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-soft);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 4px 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-thickness: 2px; }
.legal code {
  background: #f4f5f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--fg);
}
.legal-meta {
  color: var(--fg-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 6px 0 24px;
}
.legal-back {
  margin: 44px 0 0;
  font-size: 15px;
}

/* =========================================================
   MODELS — 3-col card grid, Tesla.com product-card inspired
   but text-only (no product photography assets).
   ========================================================= */

.models {
  display: grid;
  /* 6-column scaffold lets us render 3 cards per row (span 2) and
     center a trailing row of 2 items without an awkward empty cell. */
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.model {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  min-height: 188px;
}
/* When the grid has 5 items, center the trailing row of 2. */
.models > .model:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.models > .model:nth-child(5):nth-last-child(1) { grid-column: 4 / span 2; }
.model:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.model-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.model-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 2px 0 4px;
}
.model-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 900px) {
  .models { grid-template-columns: repeat(2, 1fr); }
  .model,
  .models > .model:nth-child(4):nth-last-child(2),
  .models > .model:nth-child(5):nth-last-child(1) { grid-column: auto; }
}
@media (max-width: 560px) {
  .models { grid-template-columns: 1fr; gap: 14px; }
  .model { min-height: 0; padding: 22px 20px; }
}

/* =========================================================
   INCENTIVE CALLOUT — signature dark full-bleed moment
   ========================================================= */

.incentive {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 112px 32px;
  text-align: center;
}
.incentive-inner { max-width: 720px; margin: 0 auto; padding: 0; }
.incentive-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 14px;
}
.incentive-sub {
  display: block;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}
.incentive-body {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
@media (max-width: 640px) { .incentive { padding: 72px 20px; } }

/* =========================================================
   FAQ — boxless accordion with hairline dividers
   ========================================================= */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  position: relative;
  padding-right: 36px;
  transition: color 150ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease, border-color 150ms ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--accent);
}
.faq summary:hover { color: var(--accent); }
.faq details p {
  margin: 12px 0 4px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
}
@media (max-width: 520px) {
  .faq summary { font-size: 15.5px; padding-right: 30px; }
}

/* =========================================================
   FINAL CTA — light section with paired buttons
   ========================================================= */

.final {
  background: var(--bg);
  padding: 112px 32px 120px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.final-inner { max-width: 680px; margin: 0 auto; padding: 0; }
.final-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 14px;
}
.final-body {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.final-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .final { padding: 72px 20px 80px; }
  .final-cta { flex-direction: column; align-items: stretch; }
  .final-cta .btn { width: 100%; min-width: 0; }
}

/* =========================================================
   FOOTER — minimal, Tesla.com single-line inspired
   ========================================================= */

.foot {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 40px;
}
.foot-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  max-width: 860px;
}
.foot-row {
  font-size: 12px;
  color: var(--fg-subtle);
  margin: 0;
}
.foot-row a { color: var(--fg-muted); }
.foot-row a:hover { color: var(--fg); }
.foot-row .sep { margin: 0 8px; }

/* =========================================================
   STICKY BOTTOM CTA BAR
   ========================================================= */

.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-bar);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.stickybar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--stickybar-h);
}
.stickybar-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.stickybar-label strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.stickybar-meta {
  font-size: 12.5px;
  color: var(--fg-muted);
}
.stickybar-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.stickybar-btn { font-size: 13px; padding: 9px 16px; }

@media (max-width: 640px) {
  .stickybar-inner { padding: 10px 16px; gap: 10px; min-height: 60px; }
  .stickybar-label { display: none; }
  .stickybar-actions { flex: 1; justify-content: stretch; }
  .stickybar-btn { flex: 1; text-align: center; padding: 11px 12px; font-size: 13px; }
}

/* =========================================================
   ACCESSIBILITY + MOTION
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

::selection { background: var(--accent); color: #ffffff; }
