/* Dope District — Grit 4 (street stencil) landing + content pages.
   House style: dripping stencil display type, money-green spray accents,
   crumpled black panels, gold used sparingly. Crime game first:
   no white glitter, no elegant deco line-ornament.
   Functional-CSS pass (2026-10-23): structure + skin in CSS; final
   art treatment comes later, screen by screen. */

:root {
  --grit-black: #07090a;
  --grit-panel: #0c0f0b;
  --grit-panel-2: #11150e;
  --grit-ink: #f2f0e2;
  --grit-dim: #a9b39b;
  --grit-green: #7ec84a;
  --grit-spray: #9be815;
  --grit-gold: #d8b84a;
  --grit-red: #e5484d;
  --grit-line: #2a3324;
  --stencil: "Arial Black", "Archivo Black", Impact, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--grit-black);
  color: var(--grit-ink);
  font-family: Arial, Helvetica, sans-serif;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---- full-bleed city backdrop ---- */
.city,
.shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.city {
  object-fit: cover;
  object-position: center 32%;
}
.shade {
  z-index: -1;
  background:
    linear-gradient(
      0deg,
      rgba(4, 6, 5, 0.94) 0%,
      rgba(4, 6, 5, 0.62) 38%,
      rgba(4, 6, 5, 0.12) 66%,
      rgba(4, 6, 5, 0.5) 100%
    );
}

/* ---- header ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 5vw;
}
/* Graphics Pass Batch 1 (2026-10-24): the landing header becomes the
   start-grit-4 crumpled band — texture snipped from the mockup's own
   band, gold stencil logo snip, and the mockup's torn-paper edge
   hanging under the band. Pieces live in /grit-art/ (see
   work/graphics-pass-log.md for the source map). */
.landing header {
  position: relative;
  background:
    linear-gradient(180deg, rgba(6, 8, 6, 0.3), rgba(6, 8, 6, 0.58)),
    url("/grit-art/tex-crumple.webp") center 20% / cover no-repeat;
}
.landing header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 24px;
  background: url("/grit-art/torn-edge-h.png") center top / 100% 100% no-repeat;
  pointer-events: none;
}
.landing .brand-logo img {
  height: clamp(44px, 4.8vw, 64px);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.8));
}
.brand-text {
  font-family: var(--stencil);
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--grit-ink);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}
.brand-text span {
  color: var(--grit-spray);
}
.brand-logo img {
  height: clamp(96px, 12vw, 168px);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.8));
}
.brand {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 950;
  letter-spacing: -1.4px;
  text-decoration: none;
  color: var(--grit-ink);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topnav a {
  color: var(--grit-ink);
  text-decoration: none;
  font-weight: 700;
}
.topnav .login-link {
  font-family: var(--stencil);
  font-size: 15px;
  letter-spacing: 1px;
  /* Same one-line rule as .stash-link: never wrap into "LOG / IN". */
  white-space: nowrap;
  color: var(--grit-gold);
  background: rgba(6, 8, 6, 0.35);
  padding: 10px 18px 8px;
  border: 2px solid var(--grit-gold);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.65);
}
.topnav .login-link:hover {
  background: var(--grit-gold);
  color: #0a0d08;
}
.topnav .stash-link {
  font-size: 14px;
  color: var(--grit-dim);
  /* One line at every width: in the ~500-575px band the header stays a
     row and the link otherwise wraps into a broken two-line slab. */
  white-space: nowrap;
}
.topnav .stash-link:hover {
  color: var(--grit-ink);
}

/* ---- hero ---- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hero {
  padding: 2vh 5vw 0;
  max-width: 900px;
}
.landing .eyebrow {
  display: inline-block;
  font-family: var(--stencil);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 2px;
  color: #0a0d08;
  background: var(--grit-ink);
  padding: 7px 12px 5px;
  margin: 0 0 18px;
  transform: rotate(-1deg);
}
.hero h1 {
  font-family: var(--stencil);
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.6);
}
.hero h1 .spray {
  color: var(--grit-spray);
  text-shadow:
    0 5px 0 rgba(0, 0, 0, 0.6),
    0 0 26px rgba(155, 232, 21, 0.35);
}
/* Graphics Pass Batch 1: the eyebrow strip and the hero headline are
   the mockup's own art, snipped (strip-eyebrow.png is the black
   stencil plate; headline-spray.png is the dripping green stencil,
   keyed off the mockup). The h1 keeps its copy as the img alt. */
.landing .eyebrow-art {
  background: none;
  padding: 0;
}
.landing .eyebrow-art img {
  display: block;
  height: clamp(30px, 3.1vw, 42px);
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}
.hero h1 .hero-art {
  display: block;
  width: min(780px, 100%);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

/* ---- pitch: steps + signup ---- */
.pitch {
  margin-top: auto;
  padding: 5vh 5vw 4vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: stretch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: end;
}
.step-card,
.signup-panel {
  /* Graphics Pass Batch 1: real crumpled-black texture snipped from
     the start-grit-4 band under a dark veil (was faceted gradients),
     hard offset shadow kept. */
  position: relative;
  background:
    linear-gradient(155deg, rgba(17, 21, 14, 0.88), rgba(9, 12, 8, 0.93) 58%, rgba(7, 9, 6, 0.95)),
    url("/grit-art/tex-crumple.webp") center / cover no-repeat;
  border: 2px solid var(--grit-line);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
  padding: 20px 20px 16px;
}
/* Worn corner brackets (snipped from the district mockup's
   BACK TO CITY chip; one master, CSS flips) ride on the panels. */
.step-card::before,
.signup-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/grit-art/corner-worn-tl.png") left top / 27px no-repeat,
    url("/grit-art/corner-worn-tr.png") right top / 27px no-repeat,
    url("/grit-art/corner-worn-bl.png") left bottom / 27px no-repeat,
    url("/grit-art/corner-worn-br.png") right bottom / 27px no-repeat;
  pointer-events: none;
  z-index: 2;
}
.signup-panel::before {
  background-size: 34px, 34px, 34px, 34px;
}
.step-icon {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 42px;
  height: auto;
  pointer-events: none;
}
/* The money snip's canvas is wider (146px vs ~106px) and its cash-stack
   glyph flatter, so at the shared 42px width it rendered ~28px tall
   against ~37px for crew/target. A wider box restores the matched set:
   its glyph lands at ~37px tall and the canvas still clears the
   step-num text (16 + 56 = 72px < 20 padding + 54 indent = 74px). */
.step-icon-money {
  width: 56px;
}
.step-num {
  font-family: var(--stencil);
  color: var(--grit-gold);
  font-size: 15px;
  margin: 0 0 8px;
  letter-spacing: 2px;
  padding-left: 54px;
  min-height: 30px;
  display: flex;
  align-items: center;
}
.step-card h2,
.signup-panel h2 {
  font-family: var(--stencil);
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  line-height: 1.05;
}
.step-card p {
  color: var(--grit-dim);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

/* ---- AR Phase 5: pitch cards join the AR system ----
   Every card wears the callout anatomy — name, then a STATE line
   (the system's hard facts, state first), then the flavor copy.
   Card families per the adopted design law: AR for business/world
   claims (the default card), LUXURY only for the Vault claim,
   EPHEMERA (ticket stock) for story/events. The landing is NOT a
   luxury surface: the luxury card speaks in the landing's own
   stencil gold (--grit-gold) and Georgia — the game's canonical
   register gold never appears on this page. */
.step-state {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.45;
  color: var(--grit-spray);
  margin: 0 0 8px;
}
.step-card p.step-state {
  color: var(--grit-spray);
  font-size: 11px;
}
.step-glyph {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 42px;
  font-size: 29px;
  line-height: 42px;
  text-align: center;
  pointer-events: none;
}
.step-card--luxury {
  border-color: var(--grit-gold);
}
.step-card--luxury h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.2px;
  color: var(--grit-gold);
}
.step-card--luxury p.step-state {
  color: var(--grit-gold);
}
.step-card--ephemera {
  border-style: dashed;
}
.step-card--ephemera p.step-state {
  color: #fff;
  letter-spacing: 2.2px;
}

/* ---- signup panel ---- */
.signup-panel h2 {
  color: var(--grit-gold);
  font-size: clamp(20px, 2vw, 27px);
}
.signup-panel form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-wrap[hidden] {
  display: none;
}
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.input-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--grit-green);
}
.input-wrap input {
  background: #060806;
  border: 2px solid var(--grit-line);
  color: var(--grit-ink);
  font-size: 16px;
  padding: 12px 13px;
  width: 100%;
}
.input-wrap input:focus {
  outline: none;
  border-color: var(--grit-green);
  box-shadow: 0 0 0 3px rgba(126, 200, 74, 0.25);
}
.landing .cta {
  font-family: var(--stencil);
  font-size: 19px;
  letter-spacing: 1px;
  color: #171106;
  /* Graphics Pass Batch 1: the mockup's gold button face (texture
     snipped from the START PLAYING button, text dissolved). */
  background: url("/grit-art/tex-gold-button.webp") center / cover no-repeat, #dcb254;
  border: 2px solid #0a0d08;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
  padding: 14px 16px 12px;
  cursor: pointer;
  margin-top: 4px;
}
.landing .cta:hover {
  filter: brightness(1.08);
}
.landing .cta:disabled {
  opacity: 0.55;
  cursor: wait;
}
.login-alt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--grit-dim);
}
.login-alt .spacer {
  flex: 1;
}
.login-alt .error,
#ll-message.error {
  color: var(--grit-red);
}
.landing .quiet {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.linklike {
  color: var(--grit-dim);
  text-decoration: none;
}
.linklike:hover {
  color: var(--grit-spray);
  text-decoration: underline;
}

/* ---- footer ---- */
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 5vw 20px;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--grit-dim);
}
footer .districts {
  letter-spacing: 0.4px;
}

/* ---- title-screen studio credit (F6, 2026-10-30) ----
   "A VAJGRT LABS GAME / PRESENTS" — rendered in code over the landing
   hero art (brand rule: title screen ONLY), centered on a darkened
   gradient band raised into the open art above the pitch row (small
   screens keep the bottom seat — the stacked pitch has no open band). The keyframes run the whole life: fade in
   shortly after load, hold, fade out (0.3s delay + 4.4s timeline).
   The layer is pointer-events:none — it never intercepts a click meant
   for the page; title-credit.js just listens for the first interaction
   anywhere and dismisses it. All styling lives here (CSP kills inline
   styles). */
.title-credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 44vh;
  z-index: 40;
  text-align: center;
  padding: 4vh 5vw 3vh;
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 5, 0) 0%,
    rgba(4, 6, 5, 0.45) 30%,
    rgba(4, 6, 5, 0.62) 55%,
    rgba(4, 6, 5, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  animation: title-credit-life 4.4s ease 0.3s both;
}
@keyframes title-credit-life {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
.title-credit.gone {
  animation: none;
  opacity: 0;
  visibility: hidden;
}
.title-credit-main {
  font-family: var(--stencil);
  font-size: clamp(22px, 4.4vw, 52px);
  letter-spacing: 3px;
  text-indent: 3px;
  line-height: 1.05;
  margin: 0;
  color: var(--grit-ink);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}
.title-credit-sub {
  font-family: var(--stencil);
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: 9px;
  text-indent: 9px;
  margin: 10px 0 0;
  color: var(--grit-spray);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}
@media (max-width: 760px) {
  /* Phones stack the pitch, so the raised band would land on the step
     cards — the credit keeps the bottom seat (and its bottom-weighted
     gradient) on small screens. */
  .title-credit {
    bottom: 0;
    padding: 8vh 5vw 4.5vh;
    background: linear-gradient(
      to top,
      rgba(4, 6, 5, 0.8) 0%,
      rgba(4, 6, 5, 0.45) 55%,
      rgba(4, 6, 5, 0) 100%
    );
  }
}
@media (max-width: 480px) {
  .title-credit-main {
    font-size: clamp(19px, 5.8vw, 22px);
    letter-spacing: 1.5px;
    text-indent: 1.5px;
  }
  .title-credit-sub {
    letter-spacing: 6px;
    text-indent: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* No fade: the credit shows statically and title-credit.js removes
     it after the hold. */
  .title-credit {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .pitch {
    grid-template-columns: minmax(0, 1fr);
  }
  /* AR Phase 5: six pitch cards now — two columns on tablets and
     large phones instead of one long stack (the signup panel still
     follows full-width). */
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding-top: 1vh;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Page-1 review fixes (2026-10-24): keep the landing header and the
   eyebrow strip on-canvas on phones. At <=480px the topnav (logo +
   LOG IN + Stash Rivals link) is wider than the header's content box
   and the strip's fixed-height render (379px) is wider than the hero's
   content box — the nav wraps inside the band instead of bleeding off
   the right edge, and the strip takes the content width with its
   aspect preserved. Desktop/tablet rendering is unchanged. */
@media (max-width: 480px) {
  .landing header {
    flex-wrap: wrap;
  }
  .landing .eyebrow-art img {
    width: 100%;
    height: auto;
  }
}

/* ---- content pages (terms / support) — carried over, re-tokened ---- */
.support-page main,
.content-page main {
  display: block;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 5vw 60px;
  flex: none;
}
.support-page h1,
.content-page h1 {
  font-family: var(--stencil);
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.support-page main a,
.content-page main a {
  color: #c2d974;
}
.support-page h2,
.content-page h2 {
  font-family: var(--stencil);
  font-size: 20px;
  line-height: 1.2;
  margin: 28px 0 8px;
}
.support-page main p,
.support-page main li,
.content-page main p,
.content-page main li {
  overflow-wrap: anywhere;
}
.support-page main ul,
.content-page main ul {
  line-height: 1.8;
  padding-left: 20px;
  color: var(--grit-dim);
}
.support-page .muted,
.content-page .muted {
  color: var(--grit-dim);
}
