/* what-are-you-do-ing — static site (landing + legal) */

:root {
  --green: #00ff7f;
  --green-dark: #22c55e;
  --green-dim: rgba(0, 255, 127, 0.4);
  --black: #000000;
  --surface: #0a0a0a;
  --card: #111111;
  --card-hover: #1a1a1a;
  --border: #242424;
  /* issue #245: #777 on this theme's #111/#0a backgrounds measures ~4.2:1
     contrast -- just under WCAG AA's 4.5:1 minimum for body text, which is
     exactly the muted/subtle color used for every card, pricing, and
     compare-list description on the page. #999 clears ~6.6:1 against both. */
  --muted: #999999;
  --subtle: #999999;
  --foreground: #f0f0f0;
  --font-ui: "Zen Maru Gothic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-width: 1100px;
  --legal-max: 720px;
}

/* Light theme — "library / old paper", matching the mobile app's light
   theme design tokens exactly (the wiki's whatcha/reference/
   tech-stack-and-design.md "Design Tokens — Color" -> Light section:
   kGreen/kGreenDark/kBlack→bg/kSurface/kCard/kBorder/kMuted/kForeground).
   issue #320: this used to be an unrelated green accent on a near-white
   background (chosen for its own contrast reasons at the time) which no
   longer matched the documented tokens at all -- every value below now
   maps 1:1 to the doc's hex codes. --card-hover has no doc equivalent
   (LP-only affordance); it's a blend of kCard/kSurface to stay in-family.
   Toggled by js/i18n.js, which sets data-theme="light" on <html>. */
:root[data-theme="light"] {
  --green: #b45309;
  --green-dark: #92400e;
  --green-dim: rgba(180, 83, 9, 0.16);
  --black: #f6efe1;
  --surface: #efe5d0;
  --card: #fcf7eb;
  --card-hover: #f6efdf;
  --border: #d9cbac;
  --muted: #6b5c41;
  --subtle: #6b5c41;
  --foreground: #2b2113;
}

:root[data-theme="light"] .site-header {
  /* rgba of --black (kBlack->bg, #f6efe1) at the same alpha as the dark
     theme's rgba(0, 0, 0, 0.85) -- was plain white, which doesn't belong to
     the "library / old paper" cream family (issue #320). */
  background: rgba(246, 239, 225, 0.85);
}

:root[data-theme="light"] .legal p,
:root[data-theme="light"] .legal li {
  color: var(--foreground);
}

/* Cards use a hard-coded dark gradient (#161616) that turns text unreadable on
   a light background — fall back to the themed surface in light mode. */
:root[data-theme="light"] .card {
  background: var(--card);
}
:root[data-theme="light"] .card__icon {
  background: var(--green-dim);
}
:root[data-theme="light"] .problem-card__icon {
  background: var(--green-dim);
}
:root[data-theme="light"] .card h3 {
  color: var(--foreground);
}
:root[data-theme="light"] .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(180, 83, 9, 0.25);
}

/* Theme toggle button (injected into the nav by i18n.js). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--green);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.theme-toggle:hover {
  background: var(--card-hover);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ── Layout ─────────────────────────────────────────────────── */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--legal-max));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.brand__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--subtle);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
  text-decoration: none;
}

.nav__cta {
  padding: 0.45rem 0.9rem;
  background: var(--green);
  color: var(--black) !important;
  border-radius: 6px;
  font-weight: 700;
}

.nav__cta:hover {
  background: var(--green-dark);
  text-decoration: none;
}

/* Language switcher */
/* ── Language switcher (accordion) ──────────────────────────── */
.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--subtle);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.lang-switcher__toggle:hover {
  color: var(--foreground);
  border-color: var(--green-dim);
}

.lang-switcher__toggle[aria-expanded="true"] {
  color: var(--green);
  border-color: var(--green);
}

.lang-switcher__chevron {
  transition: transform 0.2s ease;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(0, 255, 127, 0.06);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 40;
}

.lang-switcher.is-open .lang-switcher__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-switcher__panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher__panel button:hover {
  background: rgba(0, 255, 127, 0.08);
  color: var(--green);
}

.lang-switcher__panel button.is-active {
  color: var(--green);
  font-weight: 700;
}

.lang-switcher__panel button.is-active::after {
  content: "✓";
  margin-left: 0.5rem;
  color: var(--green);
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 127, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 127, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 40%, transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
}

/* issue #642 QA: this pill's background and border were hardcoded to the
   dark theme's neon rgba(0, 255, 127, ...)
   and never picked up the light theme's amber --green (#b45309) -- so in
   light mode it rendered as a neon-green box around amber text, which reads
   as "broken" decoration. --green-dim already carries the correct per-theme
   tint (see :root[data-theme="light"] above), so reuse it here. */

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.hero__desc {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--subtle);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The signed-out app is the demo now, so the hero says so in one line
   instead of handing out a shared login. */
.hero__guest-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--subtle);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 2rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--green);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--green-dark);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

/* ── Sections ─────────────────────────────────────────────────── */

.section {
  padding: 4rem 0;
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 2rem;
  font-size: 1.65rem;
  font-weight: 700;
}

/* ── Cards grid ───────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.35rem;
  background: linear-gradient(145deg, #161616, var(--card));
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: rgba(0, 255, 127, 0.35);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  background: rgba(0, 255, 127, 0.1);
  border-radius: 8px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--subtle);
}

/* ── Compare (SNS vs us) ──────────────────────────────────────── */

.compare {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.compare__col {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.compare__col--old {
  background: var(--card);
}

.compare__col--new {
  background: linear-gradient(145deg, rgba(0, 255, 127, 0.06), var(--card));
  border-color: rgba(0, 255, 127, 0.35);
  box-shadow: 0 0 40px rgba(0, 255, 127, 0.06);
}

.compare h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.compare ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.compare li + li {
  margin-top: 0.45rem;
}

/* ── Pricing ──────────────────────────────────────────────────── */

.pricing {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing__plan {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.pricing__plan--pro {
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0, 255, 127, 0.1);
}

.pricing__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
}

.pricing h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.pricing__price {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.pricing__price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--subtle);
}

.pricing ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--subtle);
}

.pricing li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.pricing li::before {
  content: "› ";
  color: var(--green);
  font-family: var(--font-mono);
}

/* ── Git terminology table ────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: var(--card);
}

td code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
}

tr:last-child td {
  border-bottom: none;
}

/* ── Legal pages ──────────────────────────────────────────────── */

.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  color: var(--green);
}

.legal__meta {
  margin: 0 0 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.legal p,
.legal li {
  color: #ccc;
  font-size: 0.95rem;
}

.legal ul,
.legal ol {
  padding-left: 1.35rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

/* Store-listing identification on the privacy page. Untranslated by
   design -- see the comment on the block in pages/privacy.html. */
.legal__identity {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.legal__identity dt {
  color: var(--subtle);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal__identity dd {
  margin: 0.15rem 0 0.85rem;
  color: #ccc;
}

.legal__identity dd:last-child {
  margin-bottom: 0;
}

.legal__identity code {
  font-size: 0.85em;
}

.legal .notice {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  color: var(--subtle);
  background: var(--card);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
}

/* /guide → "Getting started" (#1434). A numbered list of screenshots, one
   per step. Only the 390px phone captures are used, at roughly phone size:
   the 1440px desktop ones, shrunk into this 720px column, put the app's own
   text at about 6px. */
.legal .guide-steps {
  counter-reset: guide-step;
  list-style: none;
  padding-left: 0;
}
.legal .guide-step {
  counter-increment: guide-step;
}
.legal .guide-step + .guide-step {
  margin-top: 2.25rem;
}
.legal .guide-step h3::before {
  content: counter(guide-step) ". ";
  color: var(--green);
  font-family: var(--font-mono);
}
.guide-step__shot {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0.75rem auto 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* /guide's tag reference: inline tags in the prose, and one worked example
   typed exactly as it goes into an entry. */
.legal code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--green);
}
.legal .guide-example {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.legal .guide-example code {
  font-size: inherit;
  color: var(--foreground);
}

/* ── Imprint / Contact + Support + Help + Guide + CLI pages ───────────── */

/* Green accent bar on section headings for these pages. */
body[data-page="imprint"] .legal h2,
body[data-page="support"] .legal h2,
body[data-page="help"] .legal h2,
body[data-page="guide"] .legal h2,
body[data-page="cli"] .legal h2 {
  position: relative;
  padding-left: 0.85rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

body[data-page="imprint"] .legal h2::before,
body[data-page="support"] .legal h2::before,
body[data-page="help"] .legal h2::before,
body[data-page="guide"] .legal h2::before,
body[data-page="cli"] .legal h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--green), var(--green-dark));
}

/* Imprint: lift each "heading + block" into a card. :has() lets us do this
   without touching the markup. */
body[data-page="imprint"] .legal h2 + p {
  margin: 0.5rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
}

/* Email + Google Maps links render as inline chips. */
body[data-page="imprint"] a[data-config-href="email"],
body[data-page="imprint"] a[data-config-href="maps"],
body[data-page="support"] a[data-config-href="email"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid var(--green-dim);
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

body[data-page="imprint"] a[data-config-href="email"]:hover,
body[data-page="imprint"] a[data-config-href="maps"]:hover,
body[data-page="support"] a[data-config-href="email"]:hover {
  text-decoration: none;
  background: rgba(0, 255, 127, 0.16);
  transform: translateY(-1px);
}

/* Support + Help + CLI: turn each "<strong>Q</strong><br>answer" paragraph
   into a FAQ card. Matched on that exact shape, not on "any <strong>": a
   bold word inside ordinary prose (help's "What is whatcha?", the
   first-steps captions) was being lifted onto its own line and the
   paragraph boxed. */
body[data-page="support"] .legal p:has(> strong:first-child + br),
body[data-page="help"] .legal p:has(> strong:first-child + br),
body[data-page="cli"] .legal p:has(> strong:first-child + br) {
  margin: 0.85rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body[data-page="support"] .legal p:has(> strong:first-child + br):hover,
body[data-page="help"] .legal p:has(> strong:first-child + br):hover,
body[data-page="cli"] .legal p:has(> strong:first-child + br):hover {
  border-color: var(--green-dim);
  background: var(--card-hover);
}

body[data-page="support"] .legal p > strong:first-child:has(+ br),
body[data-page="help"] .legal p > strong:first-child:has(+ br),
body[data-page="cli"] .legal p > strong:first-child:has(+ br) {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 1rem;
}

body[data-page="support"] .legal p > strong:first-child + br,
body[data-page="help"] .legal p > strong:first-child + br,
body[data-page="cli"] .legal p > strong:first-child + br {
  display: none;
}

/* ── Contact form (support page, issue #348) ─────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 32rem;
  margin: 0.5rem 0 2.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--subtle);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

/* Honeypot: present in the DOM (so bots that fill every field find it) but
   invisible and unreachable to real users -- display:none alone can trip
   some bot heuristics that skip hidden fields, so this hides visually
   without display:none/visibility:hidden. */
.form-field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-form__status {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.contact-form__status span[data-status="error"],
.contact-form__status span[data-status="required"] {
  color: #f87171;
}

.contact-form__status span[data-status="success"] {
  color: var(--green);
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--subtle);
}

.site-footer__links a:hover {
  color: var(--green);
}

.site-footer__copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Footer: social channels (#1586) ──────────────────────────── */

/* One row that wraps, on the landing page and on the legal / info pages
   alike. There is no `--accent` custom property on this site: `--green` IS
   the accent, and it is redefined under :root[data-theme="light"] (to a warm
   amber) along with --subtle and --surface, so everything below follows the
   theme without a second rule.

   Each link is a 44x44 box whatever the viewport. The icon inside is 20px;
   the rest is the touch target WCAG 2.5.8 asks for, and the same reason the
   footer links grew a min-height on phones further up this file. */

.social {
  margin: 0 0 2rem;
}

.social__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--subtle);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.social__link:hover {
  color: var(--green);
  background: var(--card-hover);
}

/* :focus-visible only — a mouse click on a link that is about to open a new
   tab should not leave a ring behind on the page you stay on. */
.social__link:focus-visible {
  color: var(--green);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* The brand's own mark at 24px, in the brand's colours (#1608): no
   currentColor, no hover tint. Where the brand ships a black and a white
   file, the theme shows one of them; the site is dark unless
   data-theme="light". */
.social__icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

:root:not([data-theme="light"]) .social__icon--light,
:root[data-theme="light"] .social__icon--dark {
  display: none;
}

/* はてなブログ: the guideline's white knockout, for the dark theme only. */
:root:not([data-theme="light"]) .social__icon--white-on-dark {
  filter: brightness(0) invert(1);
}

/* Reddit, TikTok, Medium: an inline Simple Icons mark (#1713), drawn in
   currentColor. Only its colour is set here, and it is the black / white
   pair X's two files are: white on the dark site, black on the light one,
   with no hover tint, like every other mark in the row. */
.social__icon--mono {
  color: #fff;
}

:root[data-theme="light"] .social__icon--mono {
  color: #000;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav__text-hide {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }
}

/* Collapse the nav into a hamburger below 900px — it holds 9-10 items
   (links, language switcher, theme toggle, CTA) and just wrapped into a
   ragged multi-row mess without this. */
/* Touch targets on a phone.
 *
 * Measured on dev at 390px: every footer link was 22px tall -- half of what
 * a finger needs, and WCAG 2.2's 24x24 minimum missed as well. The text size
 * is right; what was missing was room around it. Only the padded box grows,
 * so nothing moves visually beyond the list spacing.
 *
 * The header's own links are already padded in the open menu below; this is
 * for the links that sit outside it. */
@media (max-width: 900px) and (pointer: coarse), (max-width: 640px) {
  .site-footer__links a,
  .site-footer__cols a,
  .site-footer__meta a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    position: relative;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav .lang-switcher,
  .nav .theme-toggle,
  .nav .nav__cta {
    margin: 0.75rem 0 0;
  }

  .nav .lang-switcher__panel {
    position: static;
    margin-top: 0.4rem;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }

  .nav .lang-switcher.is-open .lang-switcher__panel {
    display: flex;
  }

  .nav__cta {
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════════════════
   Enhancements — polish layer (cards, pricing, motion)
   ════════════════════════════════════════════════════════════════ */

/* Cards: lift + green glow on hover, animated icon */
.card {
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 255, 127, 0.15);
}
.card__icon {
  transition: transform 0.25s ease, background 0.25s ease;
}
.card:hover .card__icon {
  transform: scale(1.12) rotate(-4deg);
  background: rgba(0, 255, 127, 0.18);
}

/* Section labels: terminal-style accent */
.section__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section__label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--green);
}

/* Pricing: featured Pro plan with badge + gradient sheen */
.pricing__plan {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing__plan:hover {
  transform: translateY(-3px);
}
.pricing__plan--pro {
  position: relative;
  background: linear-gradient(160deg, rgba(0, 255, 127, 0.06), var(--card) 60%);
  box-shadow: 0 0 40px rgba(0, 255, 127, 0.12);
  overflow: hidden;
}
.pricing__plan--pro::before {
  content: "★ POPULAR";
  position: absolute;
  top: 0.9rem;
  right: -2.4rem;
  transform: rotate(38deg);
  padding: 0.2rem 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--black);
  background: var(--green);
}
.pricing__plan--pro .pricing__price span:first-child {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

/* Primary button: subtle pulse glow */
.btn--primary {
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 127, 0.35);
}

/* Comparison columns accent */
.compare__col--new {
  border-color: rgba(0, 255, 127, 0.4) !important;
  box-shadow: 0 0 24px rgba(0, 255, 127, 0.06);
}

/* Reveal-on-scroll (progressively enhanced; no-JS shows everything) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .pricing__plan:hover, .btn--primary:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════════
   LP renewal (2026-07) — reference: wireframe/lp.png
   ════════════════════════════════════════════════════════════════ */

/* ── Hero: library badge + app mockup visual ─────────────────── */

.hero {
  padding: 3.5rem 0 4.5rem;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--foreground);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero__tagline {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
}

.hero__desc {
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero__platforms {
  display: flex;
  flex-wrap: wrap;
  /* flex-start, not center: with center, a slot that had no version line
     was vertically centred against taller row-mates that did, so the App
     Store badge sat ~0.8rem lower than Browser and Google Play beside it.
     Every slot is the same height now (see .store-slot__version), and this
     keeps the badges' top edges aligned even if that ever stops being so. */
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--subtle);
}

/* A badge and, under it, the version that surface is actually shipping
   (#1369). The line is written at runtime by js/store-versions.js from
   /versions.json and stays `hidden` when that surface could not be read --
   an empty gap is the honest answer, a number left over from last month is
   not.

   The gap RESERVES its space. It used to collapse (`hidden` is
   display:none), so in a row where Browser and Google Play had a version
   and App Store did not, the slots had different heights and the grid
   came apart. Now every slot is badge + gap + a fixed-height line whether
   or not a number is in it, so all six are the same height in every theme,
   at every width, and on a deployment with no versions.json at all. */
.store-slot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* A pill, not a loose line of text beside the badge: the store badges are
   each a solid rounded block, and a bare "v2.4.4" floating next to one read
   as something that had come apart. A small pill centred under the store
   badge it belongs to. Fixed height (border-box) so the text, the check
   mark, or nothing at all occupy exactly the same space. */
.store-slot__version {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 1.3rem;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 0.5rem;
}

/* Unknown: keep the box, show nothing. visibility (not display) is what
   holds the height; it also keeps the empty pill out of the a11y tree. */
.store-slot__version[hidden] {
  display: inline-flex;
  visibility: hidden;
}

/* Confirmed by the collector to be serving the latest release: green, with
   a check mark. */
.store-slot__version.is-current {
  color: var(--green);
  background: rgba(0, 255, 127, 0.08);
  border-color: rgba(0, 255, 127, 0.22);
}

:root[data-theme="light"] .store-slot__version.is-current {
  background: var(--green-dim);
  border-color: var(--green-dim);
}

/* Confirmed live but older than the latest release: the neutral base style
   above (muted text, plain border) -- readable in both themes, deliberately
   not green and without the check mark. */

.store-slot__check {
  font-weight: 700;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 9px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.store-badge img {
  display: block;
  height: auto;
}

/* issue #346 QA: the badge SVGs bake their own fill colors in (they're
   opaque <img> sources, not inline markup CSS can recolor), so unlike the
   rest of the page they never picked up the data-theme toggle -- a
   permanently black pill sat on the light theme's cream background
   regardless of mode. Each badge now ships a light-mode twin
   (badge-*-light.svg); show/hide the pair by data-theme instead of trying
   to recolor the dark asset in place. Selectors are `.store-badge img.*`
   (not just `.store-badge__img--light`) to out-specificity the
   `.store-badge img { display: block }` rule above -- a bare single-class
   selector there loses that specificity fight and both badges render at
   once regardless of theme (caught live via screenshot, not just reasoned
   about). */
.store-badge img.store-badge__img--light {
  display: none;
}
:root[data-theme="light"] .store-badge img.store-badge__img--dark {
  display: none;
}
:root[data-theme="light"] .store-badge img.store-badge__img--light {
  display: block;
}

/* Hero visual: real product screenshots (hand-cropped from the captures in
   tests/playwright/screenshots/wiki/, which the site itself never serves) in plain
   CSS-drawn device frames -- no stock photography, no invented UI. */
.hero__visual {
  position: relative;
  padding: 8% 12% 14% 0;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 6% 8% 6% -6%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 127, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__visual-desktop {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero__visual-desktop-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 255, 127, 0.06);
  border-bottom: 1px solid var(--border);
}

.hero__visual-desktop-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 255, 127, 0.3);
}

.hero__visual-desktop img {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 640;
  object-fit: cover;
  object-position: top;
}

.hero__visual-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.hero__visual-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 1082 / 1500;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 900px) {
  .hero__visual {
    padding: 8% 18% 22% 0;
  }
}

/* ── Problem cards ────────────────────────────────────────────── */

.problem-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.problem-card {
  padding: 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.problem-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  /* issue #346 QA: was a hardcoded rgba(220, 38, 38, 0.1) (red) -- the only
     un-tokenized color literal on the page, invisible to the issue #320
     light-theme token audit because it isn't a CSS custom property. There's
     no "danger/red" token in this site's palette (:root only defines the
     green/black/surface/card/border/muted/foreground family -- see the
     comment above :root[data-theme="light"]), so this never had a
     light-mode-correct value either. Switched to the same var(--green)/
     rgba(0,255,127,0.1) treatment .card__icon (features grid) already uses
     a few hundred lines up, which *is* theme-aware. */
  color: var(--green);
  background: rgba(0, 255, 127, 0.1);
  border-radius: 50%;
}

.problem-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.problem-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--subtle);
}

/* ── Solution: open-book centerpiece + surrounding capabilities ── */

.solution {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr 1.1fr;
}

@media (max-width: 900px) {
  .solution {
    grid-template-columns: 1fr;
  }
}

.solution__copy p {
  color: var(--subtle);
  line-height: 1.8;
}

.solution__icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.solution__book {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 3.5rem;
  background: linear-gradient(150deg, rgba(0, 255, 127, 0.08), var(--card));
  border: 1px solid var(--border);
  border-radius: 16px;
}

:root[data-theme="light"] .solution__book {
  background: linear-gradient(150deg, rgba(180, 83, 9, 0.14), var(--card));
}

.icon-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--subtle);
}

.icon-pill__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
}

/* ── Git philosophy badges ────────────────────────────────────── */

.git-badges {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.git-badge {
  padding: 1.1rem 0.9rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.git-badge__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  color: var(--green);
  background: rgba(0, 255, 127, 0.1);
  border-radius: 8px;
}

.git-badge h3 {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
}

.git-badge p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--subtle);
}

/* ── Community use-case cards ─────────────────────────────────── */

.usecase-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.usecase-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.usecase-card__photo {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.usecase-card__photo--school { background-image: url("/assets/marketing/lp_community_school.webp"); }
.usecase-card__photo--couple { background-image: url("/assets/marketing/lp_community_couple.webp"); }
.usecase-card__photo--work   { background-image: url("/assets/marketing/lp_community_work.webp"); }

/* This card carried a CSS grid motif instead of a photograph, because the
   other three are pictures of people and a stock photo of "an AI" is a
   picture of nothing. It has its own artwork now -- a partner imagined
   rather than depicted, which is the one honest way to show this -- so it
   is a background-image like its three neighbours. */
.usecase-card__photo--ai { background-image: url("/assets/marketing/lp_community_ai.webp"); }

.usecase-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.usecase-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.usecase-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--subtle);
}

.usecase-card li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.2rem 0;
}

.usecase-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* ── Desktop platforms (Linux ready, macOS/Windows placeholders) ─ */

.desktop-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.desktop-card {
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.desktop-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.desktop-card__desc {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: var(--subtle);
}

.desktop-card__install {
  background: rgba(0, 255, 127, 0.05);
  border: 1px solid rgba(0, 255, 127, 0.18);
  border-radius: 10px;
  overflow: hidden;
}

:root[data-theme="light"] .desktop-card__install {
  background: var(--green-dim);
  border-color: var(--green-dim);
}

.desktop-card__install-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(0, 255, 127, 0.18);
}

:root[data-theme="light"] .desktop-card__install-bar {
  border-bottom-color: var(--border);
}

.desktop-card__install-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}

.desktop-card__install pre {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--green);
  white-space: pre;
  overflow-x: auto;
}

.desktop-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 255, 127, 0.25);
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  color: var(--subtle);
  cursor: pointer;
  flex-shrink: 0;
}

.desktop-card__copy:hover,
.desktop-card__copy:focus-visible,
.desktop-card__copy--done {
  color: var(--green);
  border-color: var(--green);
}

.desktop-card__note {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--subtle);
}

.desktop-card__note a {
  color: var(--green);
}

.desktop-card--soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  opacity: 0.6;
}

.desktop-card__soon {
  margin: 0;
  font-size: 0.85rem;
  color: var(--subtle);
}

/* ── Pricing comparison table ─────────────────────────────────── */

.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  color: var(--green);
  font-weight: 700;
}

/* ── Dark library banner (always dark, regardless of site theme) ─ */

.dark-banner {
  padding: 3rem 0;
  color: #f0ebe0;
  background: linear-gradient(160deg, #1b140c, #0c0906);
}

.dark-banner__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 780px) {
  .dark-banner__inner {
    grid-template-columns: 1fr;
  }
}

.dark-banner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.dark-banner p {
  margin: 0;
  color: #c9bfae;
  line-height: 1.8;
}

.dark-banner__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.dark-banner__feat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #d8cfc0;
}

.dark-banner__feat span:first-child {
  font-size: 1.3rem;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-devices {
  width: 220px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

/* ── Footer: multi-column ─────────────────────────────────────── */

.site-footer__cols {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

@media (max-width: 720px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer__col h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__col a {
  font-size: 0.85rem;
  color: var(--subtle);
}

.site-footer__col a:hover {
  color: var(--green);
}

.site-footer__brand p {
  margin: 0.5rem 0 0;
  max-width: 22rem;
  font-size: 0.85rem;
  color: var(--subtle);
}

.site-footer__divider {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Extend reveal-on-scroll to the new section types. */
.problem-card, .usecase-card, .git-badge, .icon-pill, .dark-banner__feat {
  opacity: 1;
}
