/* pageandforge: the AFB look, cloned on purpose (owner's call, 2026-10-29).
   Dark is the default and mirrors the Daily Anti-Fascist Brief: near-black green paper,
   mint neon on headings, links and buttons, amber as the second voice, hairline borders,
   green and amber glow rings, Georgia body with monospace headlines, tight radii.
   data-theme="light" swaps in AFB's own light variant tokens. Mobile-first. */

:root {
  color-scheme: dark;

  --bg: #06110c;
  --panel: #0a1a13;
  --border: #17352a;
  --border-strong: #2a5245;
  --text: #d9f2e4;
  --muted: #74a992;

  --primary: #4de6a4;
  --primary-strong: #79f0c0;
  --primary-soft: rgba(77, 230, 164, 0.10);
  --gold: #f0b866;

  --btn-fg: #06110c;

  --ring: 0 0 0 1px rgba(77, 230, 164, 0.35);
  --ring-gold: 0 0 0 1px rgba(240, 184, 102, 0.45);
  --glow: 0 0 10px rgba(77, 230, 164, 0.30);
  --glow-gold: 0 0 10px rgba(240, 184, 102, 0.30);
  --head-glow: 0 0 16px rgba(77, 230, 164, 0.30);
  --focus-ring: 0 0 0 2px rgba(240, 184, 102, 0.55);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);

  --nav-bg: rgba(6, 17, 12, 0.90);
  --ticker-bg: rgba(10, 26, 19, 0.72);
  --wash-a: rgba(77, 230, 164, 0.10);
  --wash-b: rgba(240, 184, 102, 0.09);

  --input-bg: #06110c;
  --input-border: #17352a;
  --soon-a: #0a1a13;
  --soon-b: #081610;
  --soon-icon: rgba(77, 230, 164, 0.55);
  --footer-link: #a8d9c4;

  --radius: 8px;
  --radius-sm: 6px;
  --font: Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* AFB's own light variant tokens */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f7f2;
  --panel: #ffffff;
  --border: #dbe4dc;
  --border-strong: #c3d2c8;
  --text: #14231b;
  --muted: #5c6f64;

  --primary: #0a7f46;
  --primary-strong: #0c9455;
  --primary-soft: rgba(10, 127, 70, 0.10);
  --gold: #8f5e12;

  --btn-fg: #ffffff;

  --ring: 0 0 0 1px rgba(10, 127, 70, 0.30);
  --ring-gold: 0 0 0 1px rgba(143, 94, 18, 0.35);
  --glow: 0 0 10px rgba(10, 127, 70, 0.18);
  --glow-gold: 0 0 10px rgba(143, 94, 18, 0.20);
  --head-glow: 0 0 16px rgba(10, 127, 70, 0.16);
  --focus-ring: 0 0 0 2px rgba(143, 94, 18, 0.35);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

  --nav-bg: rgba(245, 247, 242, 0.92);
  --ticker-bg: rgba(255, 255, 255, 0.65);
  --wash-a: rgba(10, 127, 70, 0.08);
  --wash-b: rgba(143, 94, 18, 0.08);

  --input-bg: #ffffff;
  --input-border: #dbe4dc;
  --soon-a: #eef5f0;
  --soon-b: #e3efe8;
  --soon-icon: rgba(10, 127, 70, 0.55);
  --footer-link: #14231b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft background wash: green and amber, same idea as the brief */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 78vh;
  background:
    radial-gradient(640px 380px at 18% -6%, var(--wash-a), transparent 70%),
    radial-gradient(560px 340px at 84% -12%, var(--wash-b), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: url("favicon.svg") center / cover no-repeat;
  box-shadow: var(--glow);
  flex: 0 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links .btn { color: var(--btn-fg); }

/* theme toggle: dark is the default, so it offers the light variant */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); box-shadow: var(--ring); }
.theme-toggle::after { content: "\2600"; }
:root[data-theme="light"] .theme-toggle::after { content: "\263E"; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-weight: 650;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  text-decoration: none;
  background: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--panel);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: var(--ring);
}
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 92px 0 40px; position: relative; }
.hero-inner { text-align: center; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 6vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text);
}
.neon { color: var(--primary); text-shadow: var(--head-glow); }
.lede {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.13rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { color: var(--muted); font-family: var(--font-ui); font-size: 0.9rem; }

/* ticker */
.ticker {
  margin-top: 58px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ticker-bg);
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 30s linear infinite;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 74px 0 10px; }
.section h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.section-sub { color: var(--muted); margin-bottom: 34px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--ring);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.card h3 { font-family: var(--font-ui); font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.work-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.work-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: var(--ring);
}
.work-thumb { height: 170px; overflow: hidden; }
.work-thumb svg { width: 100%; height: 100%; display: block; }
.work-thumb-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, var(--soon-a) 0 14px, var(--soon-b) 14px 28px);
  color: var(--soon-icon);
  font-family: var(--font-mono);
  font-size: 2.4rem;
}
.work-meta { padding: 20px 22px 24px; }
.work-meta h3 { font-family: var(--font-ui); font-weight: 700; margin-bottom: 4px; }
.work-meta p { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.work-link { color: var(--primary); font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.work-card-soon { cursor: default; }
.work-card-soon:hover { transform: none; border-color: var(--border); box-shadow: var(--card-shadow); }

/* pricing */
.pricing-group-title {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 34px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pricing-group-title span { color: var(--gold); font-family: var(--font-ui); font-size: 0.88rem; font-weight: 400; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card ul { list-style: none; margin: 14px 0 22px; flex: 1; }
.price-card li {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 6px 0 6px 26px;
  position: relative;
}
.price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.price-card .price {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 6px 0 4px;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.price small { font-family: var(--font-ui); font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card-popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-soft), var(--panel) 55%);
  box-shadow: var(--ring);
}
.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--glow);
}
.pricing-note { color: var(--muted); font-family: var(--font-ui); font-size: 0.92rem; margin-top: 26px; text-align: center; }

/* faq */
.faq-list { max-width: 760px; margin-top: 26px; }
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 4px 20px;
  box-shadow: var(--card-shadow);
  position: relative;
}
.faq-list details:hover { border-color: var(--border-strong); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); font-family: var(--font-ui); padding: 0 0 16px; font-size: 0.97rem; }

/* contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 38px;
  background: linear-gradient(140deg, var(--primary-soft), var(--panel) 60%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 38px;
  box-shadow: var(--card-shadow);
}
.contact-info h2 { margin-bottom: 10px; }
.contact-info p { color: var(--muted); margin-bottom: 22px; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 10px; font-size: 1rem; }
.contact-list span {
  display: block;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.contact-form label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 5px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.form-note { margin-top: 12px; color: var(--gold); font-family: var(--font-ui); font-size: 0.92rem; }

/* footer: hairline and quiet, the way the brief does it */
.footer {
  margin-top: 80px;
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 30px 0 42px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--footer-link); }
.footer-links a:hover { color: var(--primary); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 30px 24px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    padding: 10px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; border-bottom: 0; text-align: center; }
  .hero { padding-top: 60px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .section { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
