/* ============================================================
   SKARPA LLC site stylesheet
   Fresh, light, editorial system bridging two projects:
   · To Do Life (clean / blue / gem accents)
   · Feral (botanical / forest / terracotta / gold)
   ============================================================ */

/* ---------------- Design tokens ----------------
   The palette is taken from the Feral deck: warm tan paper, deep forest
   green, a lighter leaf green, the red-orange of the fox suit, and the
   brown of the card borders. Every accent on the site is one of these.
   ------------------------------------------------ */
:root {
  /* Surfaces */
  --bg:          #E3C9A9;   /* Feral tan, the paper the whole site sits on */
  --bg-alt:      #D9BD99;   /* one step deeper, for alternating sections */
  --surface:     #FBF4E9;   /* cards lift off the tan */
  --surface-2:   #F3E7D4;

  /* Ink & lines */
  --ink:         #14302E;
  --ink-soft:    #2C4A45;
  --muted:       #425249;
  --line:        rgba(20,48,46,.16);
  --line-strong: rgba(20,48,46,.30);

  /* Brand */
  --pine:        #1C4645;   /* Feral green */
  --pine-deep:   #123130;
  --pine-soft:   #D3E2D3;
  --amber:       #A37239;   /* card-border brown */
  --amber-deep:  #6B4720;
  --terra:       #DC4D3C;   /* fox red-orange, the button colour */
  --terra-deep:  #8E2619;
  --sky:         #598357;   /* leaf green, To Do Life's accent */
  --sky-deep:    #345634;
  --forge:       #A37239;   /* brown, Forge Tap's accent */
  --forge-deep:  #6B4720;
  --iron:        #241A10;

  /* Button ink. Near-black on the orange, the way the card linework reads. */
  --btn-ink:     #1E0B07;
  --focus:       #1C4645;

  /* Gem ladder. These name real stones, so they keep their own colours. */
  --g-stone:#8b8f86; --g-quartz:#c89bc4; --g-garnet:#8d2233;
  --g-carnelian:#c85f34; --g-opal:#5aa892; --g-ruby:#c31650; --g-diamond:#6fa9be;

  /* Per-section accent (overridable) */
  --accent:      var(--pine);
  --accent-deep: var(--pine-deep);
  --accent-soft: var(--pine-soft);

  /* Geometry */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 3px rgba(40,28,12,.09), 0 4px 14px rgba(40,28,12,.06);
  --shadow:    0 10px 30px rgba(40,28,12,.13), 0 2px 8px rgba(40,28,12,.08);
  --shadow-lg: 0 26px 64px rgba(40,28,12,.24);
  --maxw: 1140px;
  --header-h: 70px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-feral: "Pirata One", "Fraunces", serif;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.band-forest :focus-visible, .band-iron :focus-visible,
.on-accent :focus-visible, .site-footer :focus-visible { outline-color: #F3E8D5; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-deep); border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------------- Layout ---------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 14px; }

.grid { display: grid; gap: 26px; }
@media (min-width: 760px){ .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .92em 1.5em; border-radius: var(--pill);
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terra); color: var(--btn-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terra-deep); color: #fff; box-shadow: var(--shadow); }
.btn-green { background: var(--pine); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--pine-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine-deep); background: var(--surface); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* Coming-soon button (non-link) */
.btn-soon {
  position: relative; background: var(--surface); color: var(--ink-soft);
  border: 1.5px dashed var(--line-strong); cursor: default;
}
.btn-soon:hover { transform: none; border-color: var(--pine); }
.btn-soon .soon-tag {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: .25em .5em; border-radius: var(--pill); margin-left: .15rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); padding: .4em .8em; border-radius: var(--pill);
}

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 12px rgba(40,28,12,.06);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg, .brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .llc { font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .18em; color: var(--muted); align-self: flex-end; margin-bottom: .42rem; }
.nav-links { display: none; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .97rem; padding: .5rem .8rem; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--pine-deep); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--pine-deep); background: var(--surface); box-shadow: inset 0 -2px 0 var(--terra); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface);
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 22px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .7rem .4rem; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { text-decoration: none; color: var(--accent-deep); }
.mobile-menu .btn { margin-top: 10px; }
@media (min-width: 820px){
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px){ .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 50px; } }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 20px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent-deep); flex: none; }

/* Soft decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; z-index: -1; }
.blob-1 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(89,131,87,.50), transparent 70%); top: -90px; right: -60px; }
.blob-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(163,114,57,.42), transparent 70%); bottom: -120px; left: -80px; }

/* Hero collage */
.hero-collage { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-collage .char { max-height: 460px; width: auto; filter: drop-shadow(0 24px 30px rgba(20,40,33,.22)); z-index: 2; }
.hero-card {
  position: absolute; width: 150px; border-radius: 12px; box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface); transform: rotate(8deg); z-index: 3;
}
.hero-card.left { left: 2%; bottom: 8%; transform: rotate(-9deg); width: 138px; }
.hero-card.right { right: 0; top: 6%; transform: rotate(9deg); }
.hero-phone {
  position: absolute; right: 4%; bottom: 0; width: 168px; border-radius: 20px;
  border: 6px solid #123130; box-shadow: var(--shadow-lg); z-index: 1; transform: rotate(4deg);
}
@media (max-width: 919px){
  .hero-collage { min-height: 320px; }
  .hero-collage .char { max-height: 360px; }
}

/* Hero trio: the Feral deck up front, a phone from each game behind it. */
.hero-trio {
  position: relative; display: grid; place-items: center;
  min-height: clamp(340px, 42vw, 470px); width: 100%;
}
.hero-trio .trio-deck {
  position: relative; z-index: 3;
  width: clamp(190px, 27vw, 290px);
  border-radius: 16px; border: 6px solid var(--surface);
  box-shadow: var(--shadow-lg); transform: rotate(-4deg);
}
.hero-trio .trio-phone {
  position: absolute; z-index: 1;
  width: clamp(112px, 15.5vw, 170px);
  border: 5px solid #123130; border-radius: 20px;
  box-shadow: var(--shadow-lg); background: #123130;
}
.hero-trio .trio-phone.is-left  { left: 0;  bottom: 4%; transform: rotate(-9deg); }
.hero-trio .trio-phone.is-right { right: 0; top: 2%;    transform: rotate(8deg); z-index: 2; }

@media (max-width: 919px) {
  .hero-trio { min-height: 330px; }
  .hero-trio .trio-deck { width: clamp(170px, 44vw, 230px); }
  .hero-trio .trio-phone { width: clamp(104px, 26vw, 140px); }
  .hero-trio .trio-phone.is-left  { left: 0; }
  .hero-trio .trio-phone.is-right { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-trio .trio-deck, .hero-trio .trio-phone { transform: none; }
}

/* Pixel art from To Do Life. Nearest-neighbour scaling keeps the grid crisp
   instead of smearing it, which is the whole point of the art style. */
.pixel-hero, .gear-stage img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  filter: drop-shadow(0 14px 18px rgba(40,28,12,.28));
}
.pixel-hero { width: clamp(120px, 18vw, 190px); height: auto; align-self: flex-end; }

/* The four equipment stages, shown as a progression. */
.gear-row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .gear-row { grid-template-columns: repeat(4, 1fr); } }
.gear-stage { text-align: center; }
.gear-stage .frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 8px 10px; display: grid; place-items: end center;
  min-height: 168px;
}
.gear-stage img { width: auto; max-height: 132px; }
.gear-stage b { display: block; margin-top: 10px; font-size: .9rem; }
.gear-stage span { display: block; font-size: .8rem; color: var(--muted); }

/* Boss cards on the To Do Life page. */
.bosses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.boss {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.boss .hp { height: 9px; border-radius: var(--pill); background: var(--bg-alt); overflow: hidden; margin: 12px 0 10px; }
.boss .hp i { display: block; height: 100%; background: var(--terra); border-radius: var(--pill); }
.boss b { display: block; font-size: 1.02rem; }
.boss p { color: var(--muted); font-size: .9rem; }
.boss .bounty { font-size: .82rem; font-weight: 700; color: var(--amber-deep); }

/* ---------------- Project showcase cards ---------------- */
.project-cards { display: grid; gap: 28px; }
@media (min-width: 720px){ .project-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px){ .project-cards { grid-template-columns: repeat(3, 1fr); } }
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .tag {
  position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--ink); padding: .4em .8em; border-radius: var(--pill);
}
.pcard-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-body h3 { font-size: 1.5rem; }
.pcard-kicker { font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.pcard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* ---------------- Feature sections ---------------- */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px){
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.reverse .feature-media { order: 2; }
}
.feature-media { display: grid; place-items: center; }
.feature-body h2 { margin-bottom: 8px; }
.feature-list { display: grid; gap: 14px; margin: 22px 0 26px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.feature-list .ico svg { width: 17px; height: 17px; }
.feature-list b { display: block; font-weight: 700; }
.feature-list span { color: var(--muted); font-size: .94rem; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone frame */
.phone {
  position: relative; width: 252px; max-width: 70vw; border-radius: 30px; padding: 9px;
  background: linear-gradient(160deg, #1C4645, #0E2422); box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; border-radius: 22px; display: block; }
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 56px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.phone-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.phone.sm { width: 196px; }

/* ---------------- Gem ladder ---------------- */
.gems { display: flex; flex-wrap: wrap; gap: 10px; }
.gem {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--pill); padding: .5em .95em .5em .6em;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.gem .dia { width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px; }
.gem.secret { border-style: dashed; color: var(--muted); font-style: italic; }

/* ---------------- Attribute / info tiles ---------------- */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 14px;
}
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.18rem; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: .94rem; }
.tile .skills { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; font-weight: 600; color: var(--ink-soft); background: var(--bg-alt); border-radius: var(--pill); padding: .3em .7em; }

/* Loop diagram */
.loop { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; justify-content: center; }
.loop-step {
  flex: 1 1 150px; min-width: 140px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.loop-step .n { font-family: var(--font-display); font-weight: 600; color: var(--accent-deep); font-size: 1.1rem; }
.loop-step b { display: block; margin: 6px 0 4px; }
.loop-step span { font-size: .86rem; color: var(--muted); }
.loop-arrow { align-self: center; color: var(--accent-deep); font-size: 1.4rem; font-weight: 700; }

/* ---------------- Feral suits & card gallery ---------------- */
.suits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.suit {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.suit .swatch { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.suit b { display: block; }
.suit span { font-size: .86rem; color: var(--muted); }

.card-gallery { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px){ .card-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px){ .card-gallery { grid-template-columns: repeat(6, 1fr); } }
.card-gallery figure { margin: 0; }
.card-gallery img {
  width: 100%; border-radius: 12px; box-shadow: var(--shadow); border: 3px solid var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-gallery img:hover { transform: translateY(-5px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.card-gallery figcaption { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* Rules list */
.rules { display: grid; gap: 16px; counter-reset: rule; }
.rule { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.rule .num {
  flex: none; counter-increment: rule; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pine); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display);
}
.rule .num::before { content: counter(rule); }
.rule b { display: block; margin-bottom: 2px; }
.rule p { color: var(--ink-soft); font-size: .95rem; }

/* ---------------- Signup (Mailchimp) ---------------- */
.signup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); text-align: center;
}
.signup.on-accent {
  background: linear-gradient(150deg, var(--pine), var(--pine-deep)); color: #fff; border: none;
}
.signup.on-accent h2, .signup.on-accent .lede { color: #fff; }
.signup.on-accent .lede { opacity: .92; }
.signup .lede { max-width: 48ch; margin: 12px auto 0; }
.signup-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 520px; margin: 26px auto 0; }
.signup-form input[type=email] {
  flex: 1 1 260px; min-width: 0; padding: .95em 1.15em; font-size: 1rem; border-radius: var(--pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-family: inherit;
}
.signup-form input[type=email]:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(220,77,60,.35); }
.signup .hint { font-size: .82rem; margin-top: 14px; opacity: .85; }
.signup.on-accent .hint { color: rgba(255,255,255,.85); }
.form-msg { margin-top: 14px; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: #A8D0A2; }
.form-msg.err { color: #F5C0B4; }
/* hidden honeypot field (Mailchimp anti-bot) */
.mc-hidden { position: absolute; left: -5000px; }

/* ---------------- Support / funding ---------------- */
.support-cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px){ .support-cards { grid-template-columns: 1fr 1fr; } }
.support {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.support .logo-row { display: flex; align-items: center; gap: 12px; }
.support .logo-row .mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.support h3 { font-size: 1.3rem; }
.support p { color: var(--muted); flex: 1; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--amber); color: #150E05; padding-block: 54px 30px; margin-top: 0; }
.site-footer a { color: #150E05; }
.site-footer a:hover { color: #000; }
/* Studio-wide signup, in the footer of every page so it is never more than
   one scroll away, and separate from the per-product forms. */
.footer-signup {
  display: grid; gap: 16px 32px; align-items: center;
  padding-bottom: 30px; margin-bottom: 34px;
  border-bottom: 1px solid rgba(21,14,5,.22);
}
@media (min-width: 860px) { .footer-signup { grid-template-columns: 1.05fr 1fr; } }
.footer-signup h4 {
  color: #150E05; font-family: var(--font-body); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px;
}
.footer-signup p { color: #150E05; font-size: .92rem; max-width: 48ch; }
.footer-signup .signup-form { margin: 0; max-width: 460px; justify-content: flex-start; }
.footer-signup .form-msg { grid-column: 1 / -1; margin-top: 0; color: #150E05; }
.site-footer .form-msg.ok, .site-footer .form-msg.err { color: #150E05; }

.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px){ .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #150E05; }
.site-footer .brand .llc { color: #150E05; }
.footer-col h4 { color: #150E05; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; padding: .25rem 0; color: #150E05; font-size: .95rem; }
.footer-col a:hover { color: #000; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(21,14,5,.22); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; color: #150E05; }
.footer-tagline { max-width: 38ch; color: #150E05; margin-top: 12px; font-size: .95rem; }

/* ---------------- Theme scopes ---------------- */
.theme-tdl { --accent: var(--sky); --accent-deep: var(--sky-deep); --accent-soft: #DCE7D6; }
.theme-feral { --accent: var(--terra); --accent-deep: var(--terra-deep); --accent-soft: #F6DED6; }
.theme-forge { --accent: var(--forge); --accent-deep: var(--forge-deep); --accent-soft: #EFE0C8; }

/* Deep forest band (Feral hero) */
.band-forest {
  background:
    radial-gradient(120% 120% at 80% 0%, #27605E 0%, #1C4645 45%, #0F2A29 100%);
  color: #F3E8D5;
}
.band-forest h1, .band-forest h2, .band-forest h3 { color: #FBF4E3; }
.band-forest .lede { color: #D6E0D2; }
.band-forest .eyebrow { color: #E8A15A; }
.band-forest .eyebrow::before { background: #E8A15A; }
.band-forest .hero-note { color: #C9D6C8; }
.feral-word { font-family: var(--font-feral); letter-spacing: .01em; line-height: .95; }

/* ---------------- Utilities & motion ---------------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 40px; }
.maxch { max-width: 60ch; }
.hide { display: none !important; }
.hide-sm { display: none; }
@media (min-width: 560px){ .hide-sm { display: block; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .tile:hover, .pcard:hover, .card-gallery img:hover { transform: none; }
}



/* ============================================================
   FORGE TAP
   ============================================================ */

/* Dark iron band, the Forge Tap counterpart to Feral's forest band */
.band-iron {
  background:
    radial-gradient(70% 100% at 84% 22%, rgba(232,161,90,.34) 0%, rgba(220,77,60,.16) 40%, rgba(163,114,57,0) 68%),
    linear-gradient(165deg, #3A2C1C 0%, #241A10 46%, #17100A 100%);
  color: #EFE2CE;
}
.band-iron h1, .band-iron h2, .band-iron h3 { color: #FDF3E6; }
.band-iron .lede { color: #DBCDB6; }
.band-iron .eyebrow { color: #E8A15A; }
.band-iron .eyebrow::before { background: #E8A15A; }
.band-iron .badge { background: rgba(232,161,90,.18); color: #F0C48F; }
.band-iron .hero-note { color: #C3B49C; }

/* Heat bar used on the Forge Tap page to show the tap-timing window */
.heatbar {
  position: relative; height: 16px; border-radius: var(--pill); overflow: hidden;
  background: linear-gradient(90deg, #3A2C1C 0%, #8A3A22 42%, #DC4D3C 62%, #F2C48A 74%, #DC4D3C 86%, #7A3018 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.heatbar .sweet {
  position: absolute; top: -4px; bottom: -4px; left: 66%; width: 4px;
  background: #fff; border-radius: 2px; box-shadow: 0 0 12px rgba(255,255,255,.9);
}
.heatbar-labels { display: flex; justify-content: space-between; font-size: .76rem; margin-top: 8px; }

/* Tier ladder (iron through to the late-game metals) */
.tiers { display: flex; flex-wrap: wrap; gap: 10px; }
.tier {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--pill); padding: .5em .95em .5em .6em;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.tier .ingot {
  width: 22px; height: 13px; border-radius: 3px; flex: none;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.22);
}
.tier.locked { border-style: dashed; color: var(--muted); font-style: italic; }

/* ============================================================
   SHOP
   ============================================================ */

.shop { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px){ .shop { grid-template-columns: 1fr 1fr; gap: 56px; } }

.shop-gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.shop-gallery .lead { grid-column: 1 / -1; }
.shop-gallery img {
  width: 100%; border-radius: 14px; border: 3px solid var(--surface); box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.buybox {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 20px);
}
@media (max-width: 899px){ .buybox { position: static; } }
.buybox h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: 10px; }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.price-note { color: var(--muted); font-size: .92rem; }

.spec-list { display: grid; gap: 10px; margin: 22px 0; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.spec-list svg { width: 17px; height: 17px; flex: none; margin-top: .22em; color: var(--accent-deep); }

/* Live print-run indicator */
.stock {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600;
  background: var(--bg-alt); border-radius: var(--pill); padding: .5em .95em; color: var(--ink-soft);
}
.stock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.stock.in .dot { background: var(--sky); box-shadow: 0 0 0 4px rgba(89,131,87,.22); }
.stock.low .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(163,114,57,.24); }
.stock.out .dot { background: var(--terra); box-shadow: 0 0 0 4px rgba(220,77,60,.22); }

.qty-row { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; }
.qty-row label { font-weight: 600; font-size: .92rem; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong);
  border-radius: var(--pill); overflow: hidden; background: var(--surface);
}
.qty button {
  width: 40px; height: 42px; border: 0; background: transparent; font-size: 1.15rem;
  color: var(--ink); line-height: 1;
}
.qty button:hover:not(:disabled) { background: var(--bg-alt); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px; }
.buy-total b { font-family: var(--font-display); font-size: 1.4rem; }
.buy-btn { width: 100%; margin-top: 8px; }
.buy-msg { margin-top: 14px; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.buy-msg.err { color: var(--terra-deep); }
.buy-msg.ok { color: var(--sky-deep); }
.buy-fine { font-size: .82rem; color: var(--muted); margin-top: 16px; line-height: 1.55; }
.buy-fine a { text-decoration: underline; }

/* ============================================================
   FORMS (tester applications)
   ============================================================ */

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 18px; }
@media (min-width: 660px){ .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .92rem; }
.field .help { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .78em .9em; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.invalid input, .field.invalid select { border-color: var(--terra); }

/* Platform picker rendered as selectable cards rather than a bare radio group */
.radio-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio-card {
  position: relative; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; background: var(--surface); transition: border-color .15s ease, background .15s ease;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card b { display: block; font-size: .98rem; }
.radio-card span { font-size: .82rem; color: var(--muted); }
.radio-card:hover { border-color: var(--accent); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check-row input { width: 18px; height: 18px; flex: none; margin-top: .18em; accent-color: var(--accent); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.form-status { font-size: .93rem; font-weight: 600; min-height: 1.2em; }
.form-status.err { color: var(--terra-deep); }
.form-status.ok { color: var(--sky-deep); }

/* Numbered "what happens next" steps, reused on both tester pages */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n {
  flex: none; counter-increment: step; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}
.step .n::before { content: counter(step); }
.step b { display: block; }
.step p { color: var(--muted); font-size: .92rem; }

/* ============================================================
   PROSE (policies) & RESULT PAGES
   ============================================================ */

.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { margin-top: 44px; margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 26px; margin-bottom: 8px; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 14px; display: grid; gap: 8px; }
.prose a { text-decoration: underline; }
.prose .updated { font-size: .88rem; color: var(--muted); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.toc a {
  font-size: .86rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pill); padding: .45em .9em; text-decoration: none; color: var(--ink-soft);
}
.toc a:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }

.result { text-align: center; max-width: 620px; margin-inline: auto; }
.result .mark {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 22px; background: var(--accent-soft); color: var(--accent-deep);
}
.result .mark svg { width: 36px; height: 36px; }
.result .lede { margin-top: 14px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* Small shared helpers added with the shop and tester pages */
.mt-xs { margin-top: 8px; }
.stack { display: grid; gap: 18px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
