/* ==========================================================================
   Microcast — product page (app 008)
   Imported from claudedesign/microcast/v1 ("Minimal B").

   Tokens, type scale and spacing come straight from the handoff README.
   Two deliberate deviations, both required by humbleha.us house rules:
     1. Theme is driven by [data-dark="true"] on <html> (site-wide `hls-dark`
        key), NOT the prototype's body[data-theme]. Dark is the site default,
        so the DARK token set lives on :root and LIGHT is the opt-out branch.
     2. --faint / --green / --btn-accent were darkened in the light theme so
        every text colour clears 4.5:1 (deploy gate needs a11y >= 95).
   No web fonts: the design specifies the system stack, which costs 0 bytes.
   ========================================================================== */

:root {
  /* Dark — the design's default, and the site default */
  --bg:        #0e0e10;
  --surface:   #17171a;
  --ink:       #f4f4f6;
  --body:      #c9c9cf;
  --muted:     #a0a0a8;
  --faint:     #84848c;
  --hairline:  rgba(255, 255, 255, .09);
  --hairline2: rgba(255, 255, 255, .18);
  --btn-bg:    #f4f4f6;
  --btn-ink:   #131315;
  --btn-hover: #ffffff;
  --btn-accent:#14713d; /* README says #1e8f4e; darkened for 4.5:1 on the light button */
  --link:      #3ecf74;
  --link-hover:#6fdf9a;
  --green:     #3ecf74;
  --rec:       #ff453a;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap:      960px;
  --wrap-wide: 1200px;
  --gutter:    28px;
}

html:not([data-dark="true"]) {
  /* Light */
  --bg:        #f6f5f2;
  --surface:   #ffffff;
  --ink:       #1b1b1d;
  --body:      #4a4a4f;
  --muted:     #6d6d72;
  --faint:     #6a6a70; /* README says #8a8a90 — 3.1:1, too low for body text */
  --hairline:  rgba(0, 0, 0, .08);
  --hairline2: rgba(0, 0, 0, .16);
  --btn-bg:    #1c1c1e;
  --btn-ink:   #ffffff;
  --btn-hover: #000000;
  --btn-accent:#35d06b;
  --link:      #14713d; /* README says #1e8f4e — 3.7:1 at 11px */
  --link-hover:#0d5a2f;
  --green:     #14713d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--link); text-decoration: none; }
main p a { text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
::selection { background: #ff453a; color: #fff; }
img { max-width: 100%; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── humbleha.us site chrome (standard nav — CLAUDE.md) ─────────────────── */
nav[aria-label="Site navigation"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
@media (max-width: 540px) { nav[aria-label="Site navigation"] { padding: .75rem 1rem; } }
.nav-brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.nav-brand a {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-brand a:hover { color: var(--link); }
.exp-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--faint);
  border: 1px solid var(--hairline2);
  border-radius: 6px;
  padding: .15rem .4rem;
  flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.donate-link {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.donate-link:hover { color: var(--link); text-decoration: none; }
.donate-link::before { /* 44px tap target without changing the visual box */
  content: ''; position: absolute; top: 50%; left: 0;
  width: 100%; height: 44px; transform: translateY(-50%);
}
.dark-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline2);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink);
}
.dark-toggle::after { content: '🌙'; }
html:not([data-dark="true"]) .dark-toggle::after { content: '☀️'; }
.dark-toggle::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}

/* ── Brand row (the design's header, minus its own nav) ─────────────────── */
.brand-row {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rec-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, .15);
  animation: mc-rec 2.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes mc-rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 28px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 700;
}
.hero h1 .accent { color: var(--green); }
.lede {
  margin: 26px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 520px;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
a.btn:hover { background: var(--btn-hover); color: var(--btn-ink); text-decoration: none; }
.btn .price { color: var(--btn-accent); font-weight: 700; }
.btn[disabled] { cursor: default; opacity: .78; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline2);
}
a.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--faint); text-decoration: none; }
.cta-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Panel (product shot / demo video) ──────────────────────────────────── */
.panel {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
}
.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 5, .65),
              0 16px 36px -16px rgba(0, 0, 5, .5);
  line-height: 0;
}
.media-frame img,
.media-frame video { display: block; width: 100%; height: auto; }
.spec-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 10px;
  row-gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.spec-line li { display: flex; align-items: center; gap: 10px; }
.spec-line li + li::before { content: '·'; color: var(--faint); }
.spec-line .on { color: var(--green); }

/* ── Content sections ───────────────────────────────────────────────────── */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter);
  border-top: 1px solid var(--hairline);
}
.section h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}
.section > p { color: var(--body); max-width: 60ch; }
.section-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px;
}
.step-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 15px; color: var(--body); }

.facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  color: var(--body);
}
.facts li { position: relative; padding-left: 20px; font-size: 15px; }
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--green);
}
.after-facts { margin-top: 24px; color: var(--body); }

.status-band {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 40px) 24px;
  text-align: center;
}
.status-band h2 { margin-top: 8px; }
.status-band p { color: var(--body); max-width: 52ch; margin-left: auto; margin-right: auto; }
.status-band p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 24px var(--gutter);
}
.footer-row {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 22px; height: 22px; border-radius: 5px; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--link-hover); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 40px; }
  .cta-row { gap: 14px; }
  .btn { width: 100%; }
  .footer-row { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 16px; }
}
