/* =====================================================
   Demandry Media — design system
   Palette from live brand (custom.css root vars):
   dark #0d0f0d · surface #1a1d1b · cream #f3f0e8
   red #e8342e (CTAs only) · red-glow #ff5a4e
   green-700 #2d4a34 (structure) · green-900 #16241b (bands)
   cream-dim #c9c5ba
   ===================================================== */

:root {
  --bg: #0d0f0d;
  --band: #16241b;
  --surface: #1a1d1b;
  --cream: #f3f0e8;
  --cream-dim: #c9c5ba;
  --red: #e8342e;
  --red-glow: #ff5a4e;
  --green: #3f6349;
  --green-line: #2d4a34;

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --radius-btn: 3px;
  --radius-card: 8px;

  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 24px rgba(232, 52, 46, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

img { max-width: 100%; display: block; }

a { color: var(--cream); }

/* ---------- layout ---------- */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 768px; }

.section { padding: 64px 0; }
.section--band { background: var(--band); }

@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display__accent { color: var(--red); }

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 22ch;
}

.section__lede {
  color: var(--cream-dim);
  max-width: 65ch;
  margin-bottom: 48px;
}

h3 {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: 12px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.eyebrow--hot { color: var(--red-glow); }
.eyebrow--center { text-align: center; }

/* hand-drawn-style highlight, rationed */
.underline-mark {
  background-image: linear-gradient(to top, transparent 2px, var(--red) 2px, var(--red) 6px, transparent 6px);
  background-size: 100% 100%;
  padding-bottom: 2px;
}

.todo-placeholder {
  outline: 1px dashed var(--red-glow);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all 160ms ease-out;
}

.btn--primary {
  background: var(--red);
  color: var(--bg);
}

.btn--primary::before { content: "\25CF\00A0\00A0"; font-size: 0.65em; vertical-align: 0.15em; }

.btn--primary:hover {
  background: var(--red-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--cream);
  padding: 15px 31px;
}

.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(63, 99, 73, 0.15);
}

.btn--inverted {
  background: var(--bg);
  color: var(--cream);
}

.btn--inverted:hover { background: var(--band); transform: translateY(-2px); }

.btn--lg { font-size: 18px; padding: 18px 40px; }
.btn--ghost.btn--lg { padding: 17px 39px; }
.btn--block { display: block; width: 100%; }
.btn--nav { padding: 10px 20px; font-size: 14px; white-space: nowrap; }

@media (max-width: 480px) {
  .btn--nav { padding: 8px 12px; font-size: 12px; }
  .nav__logo img { height: 30px; }
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-glow);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .btn:not(.btn--nav) { display: block; width: 100%; }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-line);
  transition: box-shadow 200ms ease;
}

.nav.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) { .nav__inner { height: 64px; } }

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; display: block; }

.nav__links {
  display: none;
  gap: 24px;
  margin-left: auto;
  margin-right: 8px;
}

@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__links a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav__links a:hover { color: var(--cream); }

/* ---------- hero ---------- */

.hero {
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, var(--band) 0%, var(--bg) 70%);
}

.hero__inner {
  max-width: 880px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* hero badge crest — designer-final render (2026-07-18); disc fills the frame,
   so 200px here ≈ the old 240px canvas with margins */
.hero__badge-wrap {
  position: relative;
  width: 200px;
  margin-bottom: -6px;
}

.hero__badge, .hero__key-glow {
  display: block;
  width: 100%;
  height: auto;
}

/* Inlined key overlay (see index.html): the key + RY roundel paths extracted from the
   designer's final vector (same page frame as hero-badge.png — pixel-aligned by
   construction), cycling from no glow up to full blazing glow and back — a heartbeat,
   not a constant breathe. Roundel text/center ride along in original paint order, so
   black stays black and only the red silhouette blazes. */
.hero__key-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: key-glow-pulse 4s ease-in-out infinite;
}

@keyframes key-glow-pulse {
  0%, 100% {
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(232, 52, 46, 0)) drop-shadow(0 0 0 rgba(255, 90, 78, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(232, 52, 46, 0.85)) drop-shadow(0 0 42px rgba(255, 90, 78, 0.55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__key-glow {
    animation: none;
    filter: drop-shadow(0 0 14px rgba(232, 52, 46, 0.7));
  }
}

@media (max-width: 480px) { .hero__badge-wrap { width: 150px; } }

.badge {
  display: inline-block;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}

.hero__subhead {
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  color: var(--cream-dim);
  max-width: 56ch;
}

.hero__subhead strong { color: var(--cream); }

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

@media (max-width: 480px) { .hero__ctas { flex-direction: column; } }

.hero__microproof {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream-dim);
}

/* ---------- founder letter (cream band) ---------- */

.letter {
  background: var(--cream);
  color: var(--bg);
  padding: 64px 24px;
}

@media (min-width: 768px) { .letter { padding: 96px 24px; } }

.letter__inner {
  max-width: 60ch;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
}

@media (min-width: 768px) { .letter__inner { font-size: 19px; } }

.letter__inner p { margin-bottom: 1.25em; }

.letter__salutation { font-style: italic; }

.letter__list {
  margin: 0 0 1.25em 1.25em;
}

.letter__list li { margin-bottom: 0.75em; }

.letter__signature {
  font-style: italic;
  margin-top: 2em;
}

.letter .underline-mark {
  background-image: linear-gradient(to top, transparent 1px, var(--red) 1px, var(--red) 5px, transparent 5px);
}

.letter__cta { text-align: center; margin-top: 40px; }

/* small reassurance line under an otherwise-bare CTA button */
.cta-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream-dim);
  text-align: center;
  margin-top: 10px;
}

.letter .cta-note { color: rgba(13, 15, 13, 0.65); }

/* ---------- service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

@media (min-width: 1024px) { .cards { gap: 32px; } }

.cards__note {
  text-align: center;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream-dim);
}

.card {
  background: var(--surface);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-1);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.card__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--red);
}

.card p { color: var(--cream-dim); font-size: 16px; flex-grow: 1; }
.card p strong { color: var(--cream); }

.card__link {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
  transition: border-color 160ms ease;
}

.card__link:hover { border-bottom-color: var(--red-glow); }

/* ---------- process steps ---------- */

.steps {
  list-style: none;
  display: grid;
  gap: 32px;
  position: relative;
  margin-bottom: 48px;
  /* mobile: vertical timeline rail */
  border-left: 2px solid var(--green-line);
  padding-left: 24px;
}

.step { position: relative; }

.step__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}

.step p { color: var(--cream-dim); font-size: 16px; }

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    border-left: none;
    padding-left: 0;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--green-line);
  }
  .step {
    background: var(--band);
    padding-right: 16px;
  }
}

.section__cta { text-align: center; }

/* ---------- offer / guarantee ---------- */

.guarantee {
  border: 1px solid var(--green-line);
  border-radius: var(--radius-card);
  padding: 24px 32px;
  text-align: center;
  margin-bottom: 48px;
}

.guarantee__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.375rem, 3.5vw, 1.625rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* us-vs-the-alternative comparison table */
.compare {
  overflow-x: auto;
  margin: 0 0 48px;
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--green-line);
}

.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--green-line);
  color: var(--cream-dim);
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--cream);
}

.compare-table th:last-child,
.compare-table td:last-child {
  color: var(--cream);
  font-weight: 700;
  background: rgba(232, 52, 46, 0.06);
}

.offers {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .offers { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1100px) { .offers { grid-template-columns: repeat(3, 1fr); } }

.offer-card {
  background: var(--surface);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-card--flagship { border-top: 3px solid var(--red); }

.offer-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.375rem, 2.75vw, 1.75rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.offer-card__sub { color: var(--cream); font-weight: 700; }

.checklist { list-style: none; }

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--cream-dim);
  font-size: 16px;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.fine-print {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream-dim);
  flex-grow: 1;
}

/* ---------- founders / why us ---------- */

.why-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--cream-dim); font-size: 16px; }

.founders {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

@media (min-width: 600px) { .founders { grid-template-columns: 1fr 1fr; } }

.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

.founder__avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: var(--band);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--red);
}

.founder figcaption { display: flex; flex-direction: column; }
.founder figcaption span { color: var(--cream-dim); font-size: 14px; }

.founders__note { max-width: 65ch; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--green-line); }

.faq__item { border-bottom: 1px solid var(--green-line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  min-height: 44px;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; }

details[open] > .faq__q .faq__icon { transform: rotate(45deg); }

.faq__a p {
  color: var(--cream-dim);
  font-size: 16px;
  padding: 0 0 24px;
}

.faq__a a { color: var(--cream); }

/* ---------- final CTA band ---------- */

.cta-band {
  background: var(--red);
  color: var(--bg);
  padding: 64px 0;
}

@media (min-width: 768px) { .cta-band { padding: 96px 0; } }

.cta-band__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
  color: var(--cream); /* large text: 3.7:1 on red passes AA large-text */
}

.cta-band__sub {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 32px;
}

.cta-band__recap {
  list-style: none;
  max-width: 60ch;
  margin: 0 auto 40px;
}

.cta-band__recap li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
}

.cta-band__recap li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 800;
}

/* ---------- form ---------- */

.form {
  background: var(--bg);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-2);
}

@media (min-width: 768px) { .form { padding: 40px; } }

.form__row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__field { margin-bottom: 16px; }

.form__field label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form__field input,
.form__field textarea {
  width: 100%;
  background: var(--band);
  border: 1px solid var(--green);
  border-radius: var(--radius-card);
  padding: 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  resize: vertical;
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--cream-dim); opacity: 0.8; }

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--red-glow);
  box-shadow: 0 0 0 3px rgba(255, 90, 78, 0.2);
}

.form__micro {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  text-align: center;
  margin-top: 16px;
  line-height: 1.8;
}

.form__micro a { color: var(--cream); }

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream-dim);
}

.form__status {
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--green-line);
  padding: 48px 0;
  font-size: 14px;
  color: var(--cream-dim);
}

.footer__inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.footer a { color: var(--cream-dim); }
.footer a:hover { color: var(--cream); }

/* ---------- reveal animation ---------- */

/* hidden state only applies once JS has announced itself (html.js),
   so the page renders fully without JavaScript */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .faq__icon { transition: none; }
}
