/*
 * Putt Target — marketing + portal styles.
 * Brand palette: fairway green + flag-gold accent (Variation 1 "Fairway").
 */

:root {
  /* THEME: "Graphite + gold". To revert to Fairway green, restore:
     fairway #123324 · deep-green #0f2a1d · panel #17452f · panel-inset #123c28
     border #245c3f · cream #eaf3ec · sage #9cbfa8 · ink #0b2416
     (and the hero-divider SVG fills below back to %23123324). */
  --fairway: #14171a;      /* page background (graphite) */
  --deep-green: #0e1114;   /* deeper background / scrims */
  --panel: #1e2429;        /* cards, nav, raised surfaces */
  --panel-inset: #181d22;  /* insets, inputs */
  --border: #2f3841;       /* borders + dividers */
  --flag-gold: #ffd15c;    /* primary accent (gold) */
  --deep-gold: #e0a52c;    /* secondary gold */
  --cream: #e9eef1;        /* primary text */
  --sage: #97a3ad;         /* muted text */
  --ink: #14110a;          /* darkest: text on gold */
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1080px;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--cream);
  line-height: 1.55;
  /* Soft golf-ball "dimple" field (whisper level): two staggered radial grids
     give a hex-packed look; a light top + faint dark ring per dot reads as a
     gentle indentation. Kept near-subliminal so it's texture, not decoration.
     Hidden behind the hero photo and the solid cards; shows only in the section
     backgrounds. */
  background-color: var(--fairway);
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.03) 0 2px, rgba(0,0,0,.04) 3px 5px, transparent 6px),
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.03) 0 2px, rgba(0,0,0,.04) 3px 5px, transparent 6px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
}

a { color: var(--flag-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Top nav */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--cream); }
.brand .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--flag-gold) 0 5px, transparent 6px),
              conic-gradient(from 0deg, var(--panel), var(--deep-green));
  box-shadow: 0 0 0 3px rgba(255,209,92,.20);
}
/* Target mark next to the wordmark. */
.brand .logo { height: 40px; width: 40px; display: block; }
/* Right cluster: plain links + a persistent Purchase CTA (nav is always solid). */
.site-nav .nav-right { display: flex; align-items: center; gap: 20px; }
.site-nav .links { display: flex; align-items: center; gap: 22px; }
.site-nav .links a { font-family: var(--display); color: rgba(233,238,241,.82); margin-left: 0; font-weight: 600; letter-spacing: -.01em; }
.site-nav .links a:hover { color: var(--cream); text-decoration: none; }
.site-nav .links a.signin { color: var(--cream); }

.site-nav .nav-cta-form { display: block; margin: 0; }
.site-nav .nav-cta { padding: 9px 20px; font-size: .9rem; min-width: 0; }
/* Mobile hamburger menu (CSS-only <details>). Hidden until the inline links
   collapse at <=720px. */
.nav-menu { display: none; position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--flag-gold); background: var(--panel-inset); color: var(--flag-gold);
}
.nav-menu[open] > .nav-menu-btn { background: var(--panel); }
.nav-menu-panel {
  position: absolute; left: 0; top: calc(100% + 12px); z-index: 60;
  display: flex; flex-direction: column; min-width: 210px; padding: 8px;
  background: var(--panel); border: 1px solid var(--flag-gold); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}
.nav-menu-panel a {
  padding: 11px 14px; border-radius: 8px; color: var(--cream);
  font-family: var(--display); font-weight: 600; letter-spacing: -.01em;
}
.nav-menu-panel a:hover { background: var(--panel-inset); text-decoration: none; }
.nav-menu-panel a.nav-discord { display: flex; align-items: center; gap: 9px; }
.nav-menu-panel a.nav-discord svg { color: #5865f2; flex: none; }

@media (max-width: 720px) {
  .site-nav .links { display: none; }
  .site-nav .nav-cta-form { display: block; }
  .nav-menu { display: block; margin-right: 14px; }
  /* Hamburger sits far left; keep the brand right beside it and push the
     Purchase button to the right edge. */
  .site-nav .brand { margin-right: auto; }
}

/* Tablet / iPad: links are still shown but space is tight, so shrink the nav
   text and keep the wordmark on one line. */
@media (min-width: 721px) and (max-width: 1024px) {
  .brand { font-size: 1rem; white-space: nowrap; }
  .brand .logo { height: 32px; width: 32px; }
  .site-nav .nav-right { gap: 14px; }
  .site-nav .links { gap: 16px; }
  .site-nav .links a { font-size: .9rem; }
  .site-nav .nav-cta { padding: 8px 16px; font-size: .82rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-family: inherit; font-size: 1rem; line-height: 1.25; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-primary { background: var(--flag-gold); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: var(--panel); color: var(--cream); border-color: var(--flag-gold); }
.btn-ghost:hover { background: var(--panel-inset); border-color: var(--flag-gold); text-decoration: none; }

/* Hero CTAs: keep the filled <button> and ghost <a> the same size */
.hero .cta-row { align-items: center; }
.hero .cta-row form { margin: 0; }
.hero .cta-row .btn { min-width: 210px; }

/* Hero — tall photo banner with an angled bottom cut; message + CTAs centered below.
   Transparent background lets the page's dimple texture show behind the centered copy. */
.hero { position: relative; overflow: hidden; background: transparent; }

/* Photo banner (nav floats over its top); the diagonal bottom reveals the dimpled page bg */
.hero::before {
  content: ""; display: block; width: 100%; height: clamp(460px, 60vh, 600px); z-index: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.34) 11%, rgba(0,0,0,0) 30%) top / 100% 100% no-repeat,
    var(--hero-img) center 50% / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(40px, 5vw, 64px)));
}
/* Accent line tracing the photo's angled bottom edge, so it reads as a crisp
   separation from the page background. Uses the same clamp as the clip above,
   so it hugs the diagonal exactly at every width. */
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none;
  height: clamp(460px, 60vh, 600px);
  background: var(--flag-gold);
  clip-path: polygon(
    0 calc(100% - clamp(40px, 5vw, 64px) - 1.5px),
    100% calc(100% - 1.5px),
    100% 100%,
    0 calc(100% - clamp(40px, 5vw, 64px))
  );
}

/* Sticky nav: an in-flow solid bar (so the hero image sits below it) that
   sticks to the top of the viewport as the page scrolls. */
.hero-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30,36,41,.96);
  border-bottom: 1.5px solid var(--flag-gold); /* gold divider, matches the hero edge */
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
}
/* Anchor jumps clear the sticky nav */
.block[id] { scroll-margin-top: 100px; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; padding: 40px 24px 52px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--flag-gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
}
.hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--flag-gold); box-shadow: 0 0 10px 2px rgba(255,209,92,.75);
}
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.03;
  color: var(--cream); margin: 14px auto; max-width: 20ch; text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--flag-gold); /* fallback if background-clip:text is unsupported */
  /* Gold field with a single bright band at center; wide gold margins on both
     sides so the band is fully off the text at either end of the sweep. */
  background: linear-gradient(110deg,
    var(--flag-gold) 0%, var(--flag-gold) 40%,
    #fff4cf 50%,
    var(--flag-gold) 60%, var(--flag-gold) 100%);
  background-size: 300% 100%;
  background-repeat: no-repeat; /* no second band tiling in from the other side */
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 4.5s linear infinite;
}
/* Sweep stays within 0–100% so the text is always fully covered by gold, and
   both endpoints render pure gold — a seamless loop with no flash on restart. */
@keyframes hero-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
}
.hero p.lead { font-size: 1.12rem; color: var(--sage); max-width: 58ch; margin: 0 auto 26px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Hero bottom divider — a shaped edge into the next section (filled fairway green
   so it reads as the Features section rising into the hero). Switch the shape by
   putting `edge-angled` or `edge-arch` on the .hero element. */
.hero.edge-angled .hero-content,
.hero.edge-arch .hero-content { padding-bottom: 88px; }
/* Angled: CLIP the hero on a diagonal (rather than paint a band over it) so the
   dimpled page background shows through the cut — the dimples run continuously
   right up to the hero's edge with no plain gap. */
.hero.edge-angled { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(40px, 5vw, 64px))); }
/* Arch: painted SVG divider filled with the page bg (alternate look). */
.hero.edge-arch::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(46px, 6vw, 78px); z-index: 4; pointer-events: none;
  background-repeat: no-repeat; background-position: bottom; background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0,12 L0,8 Q50,-3 100,8 L100,12 Z' fill='%2314171a'/%3E%3C/svg%3E");
}
.hero.edge-angled + .block, .hero.edge-arch + .block { border-top: none; }

@media (max-width: 720px) {
  /* Same banner layout on mobile — just a shorter photo. The hero keeps the
     "See how it works" button, but hides its Purchase button since the nav
     already shows one. */
  .hero::before {
    height: 250px; clip-path: none;
    background:
      linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.36) 16%, rgba(0,0,0,0) 42%) top / 100% 100% no-repeat,
      var(--hero-img) center 60% / cover no-repeat;
  }
  /* Straight accent line under the mobile photo (the banner is a plain rectangle here) */
  .hero::after {
    height: 250px;
    clip-path: polygon(0 calc(100% - 1.5px), 100% calc(100% - 1.5px), 100% 100%, 0 100%);
  }
  .hero-content { padding: 24px 20px 12px; }
  .hero .cta-row { display: flex; }
  .hero .cta-row form { display: none; }
  .hero .cta-row .btn { min-width: 0; }
}

/* Sections */
section.block { padding: 56px 0; border-top: 2px solid var(--border); }
section.block h2 { color: var(--cream); font-size: 1.8rem; margin: 0 0 6px; }
section.block .sub { color: var(--sage); margin: 0 0 28px; }

/* Pillars grid */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pillar { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pillar .icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,209,92,.14); display: grid; place-items: center; color: var(--flag-gold); font-weight: 800; margin-bottom: 12px; }
.pillar h3 { margin: 0 0 6px; color: var(--cream); font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--sage); font-size: .95rem; }

/* Features — card grid (matches the "how it works" cards) */
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
.feature-cards .fcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-cards h3 { margin: 0 0 6px; color: var(--cream); font-size: 1.05rem; }
.feature-cards p { margin: 0; color: var(--sage); font-size: .95rem; line-height: 1.5; }
@media (max-width: 480px) { .feature-cards { grid-template-columns: 1fr; } }

/* Steps */
/* Steps: only ever 4-across or 2x2 — never a lopsided 3-up at medium widths */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step .n { color: var(--flag-gold); font-weight: 800; font-size: 1.4rem; }

/* Step 4 = the finish line: gold-accented "you're done" payoff card */
.step.finish {
  background: linear-gradient(180deg, rgba(255,209,92,.09), rgba(255,209,92,0)), var(--panel);
  border-color: rgba(255,209,92,.45);
  box-shadow: 0 22px 55px -30px rgba(255,209,92,.4);
}
.step.finish h3 { color: var(--flag-gold); }

/* Launch offer banner */
.offer-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  padding: 34px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,209,92,.06), rgba(255,209,92,0)), var(--panel);
  border: 1px solid rgba(255,209,92,.35);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.8);
}
.offer-banner .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--flag-gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem;
}
.offer-banner .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--flag-gold); box-shadow: 0 0 10px 2px rgba(255,209,92,.7);
}
.offer-banner h3 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 12px 0 8px; color: var(--cream); letter-spacing: -.01em; }
.offer-copy p { margin: 0; color: var(--sage); max-width: 46ch; }
.offer-price { text-align: center; min-width: 240px; }
.offer-price .pricerow { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.offer-price .price { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--cream); letter-spacing: -.02em; }
.offer-price .price .cur { font-size: 1.4rem; vertical-align: super; color: var(--flag-gold); margin-right: 2px; }
.offer-price .was { color: var(--sage); font-size: 1.25rem; text-decoration: line-through; text-decoration-color: rgba(151,163,173,.7); }
.offer-price .offer-form { margin: 14px 0 0; }
.offer-price .offer-btn { width: 100%; }
.offer-price .once { margin: 8px 0 0; color: var(--sage); font-size: .9rem; }
@media (max-width: 720px) {
  .offer-banner { grid-template-columns: 1fr; }
  .offer-price { text-align: left; min-width: 0; }
  .offer-price .pricerow { justify-content: flex-start; }
}

/* Money-back guarantee — full-width seal card */
.guarantee-card {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  padding: 30px 36px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,209,92,.05), rgba(255,209,92,0)), var(--panel);
  border: 1px solid rgba(255,209,92,.35);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.8);
}
.guarantee-card .seal {
  width: 84px; height: 84px; flex: none; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(255,209,92,.22), rgba(255,209,92,.05));
  border: 2px solid rgba(255,209,92,.55); color: var(--flag-gold);
}
.guarantee-card .seal .num { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.guarantee-card .seal .day { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.guarantee-card .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--flag-gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem;
}
.guarantee-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 8px 0 6px; color: var(--cream); letter-spacing: -.01em; }
.guarantee-card .guarantee-copy p { margin: 0; color: var(--sage); max-width: 70ch; }
@media (max-width: 720px) {
  .guarantee-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .guarantee-card .guarantee-copy p { text-align: center; }
}

/* Community — Discord band */
.community-band {
  --blurple: #5865f2;
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  padding: 30px 36px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(88,101,242,.10), rgba(88,101,242,0)), var(--panel);
  border: 1px solid rgba(88,101,242,.40);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.8);
}
.community-icon {
  width: 72px; height: 72px; flex: none; border-radius: 18px;
  display: grid; place-content: center; color: #fff;
  background: var(--blurple);
  box-shadow: 0 10px 30px -12px rgba(88,101,242,.7);
}
.community-band .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #aab2ff; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem;
}
.community-band .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blurple); box-shadow: 0 0 10px 2px rgba(88,101,242,.7);
}
.community-band h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 8px 0 6px; color: var(--cream); letter-spacing: -.01em; }
.community-copy p { margin: 0; color: var(--sage); max-width: 60ch; }
.community-btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--blurple); color: #fff; border: none; font-weight: 700;
}
.community-btn:hover { background: #4752c4; }
@media (max-width: 720px) {
  .community-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .community-copy p { text-align: center; }
}

/* Requirements — checklist panel */
.req-check { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.req-check li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-top: 1px solid var(--border); }
.req-check li:first-child { border-top: none; }
.req-check .check { width: 26px; height: 26px; border-radius: 50%; background: var(--flag-gold); display: grid; place-items: center; flex: none; margin-top: 1px; }
.req-check .check svg { display: block; color: var(--ink); }
.req-check .txt { display: flex; flex-direction: column; gap: 1px; }
.req-check .txt b { color: var(--cream); font-weight: 600; }
.req-check .txt .hint { color: var(--sage); font-size: .9rem; }

/* FAQs — accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--cream); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--flag-gold); outline-offset: -2px; }
.faq details[open] summary { color: var(--flag-gold); }
.faq .plus { flex: none; position: relative; width: 20px; height: 20px; color: var(--flag-gold); transition: transform .2s ease; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq .plus::before { top: 9px; left: 0; right: 0; height: 2px; }
.faq .plus::after { left: 9px; top: 0; bottom: 0; width: 2px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; margin-top: -2px; color: var(--sage); font-size: .98rem; max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .faq .plus { transition: none; } }

/* Footer (option C): a conversion CTA band above a slim brand/links bar. */
footer.site { border-top: 2px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }

.footer-cta { background: var(--panel-inset); border-bottom: 1px solid var(--border); }
.footer-cta .footer-row { padding: 38px 24px; }
.footer-cta h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--cream); margin: 0; }
.footer-cta p { margin: 6px 0 0; color: var(--sage); }

.footer-bar .footer-row { padding: 22px 24px; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; letter-spacing: -.01em; color: var(--cream); font-size: 1.05rem; }
.footer-logo { height: 26px; width: 26px; display: block; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--sage); font-size: .9rem; }
.footer-links a:hover { color: var(--cream); text-decoration: none; }
.footer-copy { color: #7f8a94; font-size: .85rem; }

@media (max-width: 640px) {
  .footer-cta .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-bar .footer-row { flex-direction: column; text-align: center; gap: 14px; }
}

/* ---------- Portal ---------- */
.portal-shell { min-height: 100vh; }
.portal-nav { background: var(--panel); border-bottom: 1px solid var(--border); }
.portal-nav .site-nav .links a { font-size: .95rem; }
.portal-main { padding: 32px 0 64px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card h2, .card h3 { color: var(--cream); margin-top: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.ok { background: rgba(36,92,63,.4); color: #7fe0a3; }
.badge.warn { background: rgba(255,209,92,.2); color: var(--flag-gold); }
.badge.bad { background: rgba(220,80,80,.2); color: #ff9d9d; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data th { color: var(--sage); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.key-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--flag-gold); }
.muted { color: var(--sage); }

/* Auth pages */
.auth-wrap { max-width: 380px; margin: 8vh auto; }
.auth-wrap .card input[type=email], .auth-wrap .card input[type=password], .auth-wrap .card input[type=text] {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-inset); color: var(--cream); margin-bottom: 12px;
}
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px auto; max-width: var(--maxw); }
.flash.notice { background: rgba(36,92,63,.4); color: #8ff0b6; }
.flash.alert { background: rgba(220,80,80,.18); color: #ffb3b3; }

/* ---------- Checkout success ---------- */
.brand-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
#checkout-success { padding-top: 48px; }
.license-key-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin: 24px 0 8px; max-width: 560px;
  display: flex; flex-direction: column; gap: 10px;
}
.license-key-label {
  color: var(--sage); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.license-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 700;
  color: var(--flag-gold); letter-spacing: .04em; word-break: break-all;
  user-select: all;
}
#checkout-success .steps { margin-top: 28px; }
#checkout-success .cta-row { margin-top: 40px; }
#checkout-success .steps a { color: var(--flag-gold); font-weight: 600; }

/* ---------- Contact form ---------- */
#contact { padding-top: 48px; }
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-wrap .sub { margin-bottom: 24px; }
.contact-form.card { padding: 26px 26px 28px; }
.contact-form .field { margin-bottom: 16px; display: flex; flex-direction: column; }
.contact-form .field-row { display: flex; gap: 16px; }
.contact-form .field-row .field { flex: 1; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--sage); margin-bottom: 6px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-inset); color: var(--cream); font-size: .98rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--flag-gold); box-shadow: 0 0 0 3px rgba(255,209,92,.15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input[type=submit] { margin-top: 6px; cursor: pointer; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors {
  background: rgba(220,80,80,.12); border: 1px solid rgba(220,80,80,.35); color: #ffb3b3;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: .9rem;
}
.form-errors p { margin: 0 0 6px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 18px; }
@media (max-width: 560px) { .contact-form .field-row { flex-direction: column; gap: 0; } }

/* ---------- Hardware "coming soon" ---------- */
#hardware-soon { padding-top: 56px; }
.soon-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; max-width: 640px; margin: 0 auto; text-align: center;
}
.soon-card h1 { margin: 6px 0 14px; }
.soon-card .sub { margin: 0 auto 14px; max-width: 520px; }
.soon-card .cta-row { margin-top: 28px; justify-content: center; }

/* ---------- Download ---------- */
#download { padding-top: 48px; }
.download-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  margin: 34px 0 0; padding: 26px 28px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,209,92,.06), rgba(255,209,92,0)), var(--panel);
  border: 1px solid rgba(255,209,92,.35);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.8);
}
.download-icon {
  width: 60px; height: 60px; flex: none; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255,209,92,.14); color: var(--flag-gold);
}
.download-body { min-width: 0; }
.download-role {
  display: inline-block; color: var(--flag-gold);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 4px;
}
.download-body h3 { margin: 0 0 4px; color: var(--cream); font-size: 1.25rem; letter-spacing: -.01em; }
.download-body p { margin: 0; font-size: .95rem; }
.download-action { flex: none; }
.download-btn { min-width: 220px; white-space: nowrap; }

.download-notes { margin-top: 22px; }
.download-notes h3 { font-size: 1.1rem; }
.download-notes p { margin: 0; }

#download .soon-card { margin-top: 34px; }

@media (max-width: 680px) {
  .download-card {
    grid-template-columns: auto 1fr; grid-template-areas: "icon body" "action action"; row-gap: 18px;
  }
  .download-icon { grid-area: icon; }
  .download-body { grid-area: body; }
  .download-action { grid-area: action; }
  .download-btn { width: 100%; }
}

/* ---------- Hardware component list ---------- */
#hardware-list { padding-top: 48px; }
/* Standalone gold eyebrow (reused from the hero look, but page sections don't
   inherit the hero's ::before dot, so define it here). */
.eyebrow-gold {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--flag-gold); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin: 0;
}
.eyebrow-gold::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--flag-gold); box-shadow: 0 0 10px 2px rgba(255,209,92,.75);
}
.hw-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--cream); margin: 12px 0 8px;
}
.hw-sub { max-width: 60ch; }
.hw-sub strong { color: var(--cream); }

.hw-items { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.hw-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px;
}
.hw-num {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,209,92,.14); color: var(--flag-gold);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
}
.hw-body { min-width: 0; }
.hw-role {
  display: inline-block; color: var(--flag-gold);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 4px;
}
.hw-body h3 { margin: 0 0 6px; color: var(--cream); font-size: 1.12rem; letter-spacing: -.01em; }
.hw-body p { margin: 0; color: var(--sage); font-size: .95rem; line-height: 1.5; max-width: 60ch; }
.hw-action { flex: none; }
.hw-btn { white-space: nowrap; }

.hw-note { margin-top: 30px; }
.hw-note .muted { max-width: 70ch; margin: 0 0 20px; }
.hw-note .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 680px) {
  .hw-item { grid-template-columns: auto 1fr; grid-template-areas: "num body" "action action"; }
  .hw-num { grid-area: num; }
  .hw-body { grid-area: body; }
  .hw-action { grid-area: action; }
  .hw-btn { width: 100%; }
}

/* --- "How it works" video popup (Stimulus: video_modal_controller) --- */
body.modal-open { overflow: hidden; }

.video-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}
.video-modal[hidden] { display: none; }

.video-modal-dialog { position: relative; width: min(960px, 100%); }

.video-modal-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--flag-gold);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-modal-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  color: var(--ink); background: var(--flag-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.video-modal-close:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  .video-modal { padding: 16px; }
  .video-modal-close { top: -12px; right: -6px; }
}
