/* ===== Gig landing: light "App Store" theme =====
   The Gig landing surface (and only it) renders light, like an App Store product
   page. This works by re-declaring the token palette on `html[data-variant]` — a
   selector that matches exactly the three landing arms (/gig/ = "dual", /gig/pro/,
   /gig/hire/) and NOTHING else: the homepage, QRewards, and the blog all use a
   plain <html lang="en"> with no data-variant, so they keep the dark house style.
   Because every rule in styles.css / this file paints with these vars, overriding
   them here re-themes the whole surface in one place. Values are AA-checked against
   both the white page (#fff) and the light surface (#f5f5f7). This is a deliberate,
   scoped departure from the "near-black base" house rule — at the owner's direction.

   `html.gig-light` opts a NON-experiment Gig surface into the same light theme — used
   by the indexable comparison page (/gig/compare/). It is deliberately NOT a
   data-variant so it's never mistaken for an A/B arm (those are noindexed and out of
   the sitemap; the compare page is indexed and in the sitemap). */
html[data-variant],
html.gig-light {
  --ink: #ffffff; /* page background — App Store white */
  --surface: #f5f5f7; /* cards / panels — iOS system gray 6 */
  --surface-hi: #ececef; /* hover / elevated */

  --silver: #3a3a3c; /* body copy — 11.3:1 on white */
  --silver-bright: #1d1d1f; /* primary text — Apple near-black */
  --hairline: #d2d2d7; /* 1px rules — Apple separator */

  /* Accent stays green (brand + "one accent per view"), darkened so it clears AA
     as text on white (5.4:1) AND carries white text on the modal button (5.4:1). */
  --volt: #097a42;
  --volt-dim: #0a6e3c;

  --steel: #57575c; /* quiet labels / links — 7.2:1 on white, 6.6:1 on surface */
}

/* Hero headline: the .metal silver gradient is built for a dark base and would
   wash out on white — render it as solid near-black instead. */
html[data-variant] .metal {
  background: none;
  -webkit-text-fill-color: #1d1d1f;
  color: #1d1d1f;
}

/* Text selection: the dark-theme rule (dim-green bg, near-black text) is illegible
   on light — flip to a soft green tint with dark text. */
html[data-variant] ::selection,
html.gig-light ::selection {
  background: #b7e9cd;
  color: #1d1d1f;
}

/* Hardcoded dark-hover border on the screenshot filmstrip → light equivalent. */
html[data-variant] .shot:hover img {
  border-color: #c7c7cc;
}

/* Error message red: the dark-theme soft red fails on white — use a deeper red. */
html[data-variant] .af-msg--err {
  color: #c0392b;
}

/* ===== Gig landing-page redesign additions =====
   Append these rules to styles/styles.css (or load this file right after it).
   Every value uses the existing token palette (var(--ink|surface|hairline|silver|steel|volt))
   so the layout system and the "one accent per view" rule are preserved. */

/* Hero: copy + one screenshot side-by-side on wider screens; copy-only on phones
   (a tall phone above the fold would push the CTA out of view on mobile). */
.hero { margin-top: 1.75rem; }
.hero__copy { max-width: 40rem; }
.hero__media { display: none; }

@media (min-width: 760px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 3rem;
    align-items: center;
    max-width: 62rem;
    margin-top: 3rem;
  }
  .hero__media { display: block; }
}

.phone {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  aspect-ratio: 471 / 1024;
  margin-inline: auto;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--surface);
}

/* CTA row: align the Apple badge and the ghost button on one baseline. */
.cta-row { align-items: center; }
/* Store badges — works on both the iOS <a> and the Android <button> (resets button chrome). */
.store-badge { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.store-badge img { display: block; height: 44px; width: auto; }
.cta--ghost { min-height: 44px; }

/* Both store badges always show, on every device (owner's call). The pre-paint
   is-ios/is-android class on <html> stays — gig-analytics.js reads it for the
   beacon's os field. */

/* Honest "new app" proof line under the hero CTA.
   Swap for a real "★ 4.8 · 120+ ratings on the App Store" once review volume is credible (>=10). */
.proof {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
}

/* Founder note breathing room. */
.note { margin-top: 2.5rem; }

/* Footer: trust links + socials on one bar. */
.footer .bar { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links a { color: var(--steel); transition: color 160ms ease; }
.footer-links a:hover { color: var(--silver-bright); }
.footer .social { margin-inline-start: auto; }

/* Android modal fine print. */
.af-fineprint {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--steel);
}

/* ===== Campaign variant pages (see CLAUDE.md → Gig landing variants) =====
   Three arms share this stylesheet: /gig/ (data-variant="dual-e"; earlier dual-d, dual-c, dual), /gig/pro/
   ("pro"), /gig/hire/ ("hire"). Rules are scoped by <html data-variant> so
   each page opts into only what it authors. Token palette only. */

/* Smaller hero icon buys back in-app-browser fold: 64px on phones; dual
   restores the classic 104px where the fold isn't contested. */
html[data-variant="dual"] .app-icon,
html:is([data-variant="dual-e"], [data-variant="vid"], [data-variant="discover"], [data-variant="invite"], [data-variant="partners"], [data-variant="pro-b"], [data-variant="hire-b"]) .app-icon,
html[data-variant="pro"] .app-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
}

@media (min-width: 760px) {
  html[data-variant="dual"] .app-icon,
  html:is([data-variant="dual-e"], [data-variant="vid"], [data-variant="discover"], [data-variant="invite"], [data-variant="partners"], [data-variant="pro-b"], [data-variant="hire-b"]) .app-icon {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 22px;
  }
}

/* hire: 56px icon inline with the eyebrow — one identity row, ~70px of fold back. */
.hero__id {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero__id .app-icon {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
}

html[data-variant="hire"] .hero .cta-row {
  margin-top: 1.25rem;
}

/* dual: the audience couplet — the two-sided story as typography, not a switch.
   A micro spec-sheet: mono key, plain value, one saccade to self-identify. */
.couplet {
  max-width: 36rem;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.couplet > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.couplet dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.couplet dd {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--silver);
}

/* dual: the 0% readout above the badge — the page's single volt accent
   (volt-on-ink ≈ 13:1; steel carries the rest of the line). */
.readout {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.readout__stat {
  color: var(--volt);
  font-weight: 500;
}

/* Scroll-reveal (scripts/reveal.js). Honest motion per the house rules: a
   200ms, 10px physical rise, once per element, tied to real scroll position —
   no stagger choreography, no parallax. .reveal-ready is only ever added by
   JS, so no-JS / failed-load visitors see everything immediately; the
   reduced-motion block is belt-and-suspenders on top of the JS gate. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.reveal-ready [data-reveal].reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* dual: mid-page CTA rail — hairline above, no box; ends the hero→closing
   CTA desert without floating chrome. */
.mid-cta {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.mid-cta__line {
  max-width: 32rem;
  font-size: 1rem;
  color: var(--silver);
}

.mid-cta .cta-row {
  margin-top: 1.25rem;
}

/* ===== Desktop scan-to-phone bridge =====
   Email traffic lands on a desktop, where a store badge can't install anything.
   Hidden by default and shown only once scripts/gig-qr.js has drawn a code AND the
   pre-paint UA class says desktop — a phone can't scan its own screen. Quiet by
   construction: a hairline rule and mono label, no second accent, no box. */
.scan {
  display: none;
}

html.is-desktop .scan--ready {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 22rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

/* The code always renders dark-on-white for scan reliability, so it carries its own
   plate — the border keeps it from floating on the white App Store theme. The plate
   is sized by the SVG's own width/height (see gig-qr.js) rather than by a CSS width,
   so a stale stylesheet can't resize the code. The min-* pair below covers the other
   direction: styles/ and scripts/ are both served max-age=300 + SWR=24h and
   revalidate independently, so a fresh stylesheet can meet a stale gig-qr.js/qr.js
   that emits no width/height — and an attribute-less SVG in a flex row collapses to
   0×0 rather than falling back to 300px, leaving the scan copy beside an empty box.
   The floor keeps it scannable in every cache combination. */
.scan__code {
  flex: none;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  line-height: 0;
}

.scan__code svg {
  display: block;
  min-width: 72px;
  min-height: 72px;
}

.scan__label {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.scan__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--silver);
}

/* Closing rail: badges with the code stacked underneath, as one action column. */
.get-app__actions {
  display: flex;
  flex-direction: column;
}

/* Indexable reading block on /gig/, below the closing CTA. The funnel
   above it is unchanged. Text links only — the page's one volt accent
   stays on "Period." */
body[data-project="gig"] .seo {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
body[data-project="gig"] .seo .prose > h2:first-child {
  margin-top: 0;
}

/* ===== Gig comparison page (/gig/compare/) — indexable marketing surface =====
   Renders on the light App Store theme (html.gig-light). Every "winner" cue for Gig
   comes from scale, weight and a surface fill — NEVER a second accent — so the single
   volt CTA stays the one accent per view. Token palette only; mobile-first. */

/* Hero — stat-led opener */
.cmp-hero {
  margin-top: 2rem;
}
.cmp-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.cmp-hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--silver-bright);
  overflow-wrap: break-word;
}
.cmp-hero__sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--silver);
}
.cmp-hero__cta {
  margin-top: 1.75rem;
}

@media (min-width: 820px) {
  .cmp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
  }
}

/* The giant "0%" — scale carries it; it is near-black, not the accent. */
.cmp-stat {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}
.cmp-stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.75rem, 14vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--silver-bright);
}
.cmp-stat__label {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
}
@media (min-width: 820px) {
  .cmp-stat {
    margin-top: 0;
  }
}

/* Leaderboard — hairline-separated rows; the winner is a filled card. */
.board {
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}
.board__row {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid var(--hairline);
}
.board__row:last-child {
  border-bottom: 1px solid var(--hairline);
}
.board__row--win {
  padding: 1.5rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
}
.board__rank {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--steel);
  text-align: center;
}
.board__row--win .board__rank {
  font-size: 2.5rem;
  color: var(--silver-bright);
}
.board__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--silver-bright);
}
.board__row--win .board__name {
  font-size: 1.4375rem;
}
.board__tag {
  display: inline-block;
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--steel);
  vertical-align: middle;
}
.board__note {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--silver);
}

/* Store links — text, not badge art, so six apps don't become a wall of
   identical buttons. Underline + label (not colour alone). Same-tab on
   purpose: a new tab is a dead tap in Instagram and Facebook's browsers. */
.board__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
  margin-top: 0.55rem;
}
.board__who {
  flex: 0 0 auto;
  margin-right: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.board__store {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--silver-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--steel);
  transition: text-decoration-color 160ms ease;
}
.board__store:hover {
  text-decoration-color: var(--silver-bright);
}
.prose .board__stores {
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

/* Verdict marks in the matrix — symbol + text (never colour alone). */
.mark {
  font-weight: 600;
}
.mark--no {
  color: var(--steel);
}
