/* ==========================================================================
   Heartbreak Marketing — brand system v1
   Palette contrast, measured (WCAG ratio):
     bone #EFEBE3 on coal #0B0B09 .......... 16.4:1  body + display on dark
     steel #9A9AA1 on coal ................. ~6.6:1  secondary on dark
     red  #C8102E on coal .................. 3.3:1   LARGE text / rules only
     bone on red #C8102E ................... 5.0:1   button + red-band text
     coal on bone .......................... 16.4:1  body on light
     red  on bone .......................... 5.0:1   accents on light
     muted #5B5851 on bone ................. 6.0:1   secondary on light
   Rules: red never carries small text on coal; buttons are red w/ bone text
   or coal w/ bone text; the pulse line is the only decorative device.
   Display: Anton (single weight), uppercase, tight. Body: Inter/system.
   ========================================================================== */

@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --coal: #0b0b09;
  --coal-2: #14140f;
  --bone: #efebe3;
  --bone-2: #e5dfd2;
  --red: #c8102e;
  --red-deep: #8f0a20;
  --steel: #9a9aa1;
  --muted: #5b5851;
  --line-dark: rgba(239, 235, 227, 0.16);
  --line-light: rgba(11, 11, 9, 0.16);
  --display: "Anton", "Arial Narrow", "Franklin Gothic Condensed", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --shell: clamp(1.1rem, 5vw, 4.5rem);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--coal); }
body {
  margin: 0; background: var(--coal); color: var(--bone);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--red); color: var(--bone); padding: 0.7rem 1rem;
}
.skip-link:focus { left: 0; }

.shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--shell); }
.shell-narrow { max-width: 880px; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h1 { font-size: clamp(3.2rem, 9.5vw, 7.2rem); line-height: 0.95; letter-spacing: 0.005em; }
h1 span { color: var(--red); }
h2 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 0.95; }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.05; }
p { margin: 0; }

.eyebrow, .kicker, .panel-tag, .foot-h {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow { color: var(--red); margin-bottom: 1.4rem; }
.band-dark .eyebrow { color: var(--bone); }
.kicker { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.6rem; color: var(--muted); }
.band-dark .kicker { color: var(--steel); }
.tick { width: 34px; height: 4px; background: var(--red); }

.lede, .section-lede {
  max-width: 620px; margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}
.lede-hard { margin-top: 1rem; font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.band-dark .lede, .band-dark .section-lede { color: var(--steel); }
.band-dark .lede-hard { color: var(--bone); }
.band-light .section-lede { color: var(--muted); }
.band-red .section-lede { color: var(--bone); max-width: 560px; }

.mono-chip {
  display: inline-block; margin-top: 1.2rem; padding: 0.45rem 0.7rem;
  border: 1px solid currentColor; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.07em;
}
.chip-red { color: var(--red); border-color: var(--red); background: rgba(200, 16, 46, 0.07); }

/* ---------- bands ---------- */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band-dark { background: var(--coal); color: var(--bone); border-top: 1px solid var(--line-dark); }
.band-light { background: var(--bone); color: var(--coal); }
.band-red { background: var(--red); color: var(--bone); }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.85rem 1.7rem;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--bone); }
.btn-red:hover { background: var(--red-deep); }
.btn-dark { background: var(--coal); color: var(--bone); }
.btn-dark:hover { background: var(--coal-2); }
.btn-ghost { border-color: var(--line-dark); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.trust-line { margin-top: 1.6rem; font-size: 0.9rem; color: var(--steel); }
.cta-mail { margin-top: 1.4rem; font-size: 0.95rem; }
.cta-mail a { font-weight: 700; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.65rem var(--shell);
  background: rgba(11, 11, 9, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand-pulse { width: 44px; color: var(--red); }
.brand span {
  font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.brand em { font-style: normal; color: var(--red); margin-left: 0.35rem; }
.nav nav { display: none; gap: 1.3rem; margin-left: auto; }
.nav nav a {
  text-decoration: none; font-size: 0.86rem; font-weight: 600; color: var(--steel);
  padding: 0.6rem 0.1rem;
}
.nav nav a:hover { color: var(--bone); }
.btn-nav { margin-left: auto; min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.98rem; }
@media (min-width: 900px) {
  .nav nav { display: flex; }
  .btn-nav { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9.5rem); border-top: 0; }
.hero-pulse {
  position: absolute; inset-inline: 0; top: 54%; width: 100%; height: clamp(120px, 22vw, 240px);
  color: rgba(200, 16, 46, 0.3); pointer-events: none;
}
.hero .shell { position: relative; }

/* ---------- shift ---------- */
.split { display: grid; gap: 1.2rem; margin-top: 2.8rem; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { padding: clamp(1.4rem, 3vw, 2.2rem); }
.panel h3 { margin-block: 0.9rem 0.8rem; }
.panel-dark { background: var(--coal); color: var(--bone); }
.panel-dark p { color: var(--steel); }
.panel-dark .panel-tag { color: var(--bone); }
.panel-dark h3, .panel-dark .mono-chip { color: var(--bone); }
.panel-red { background: var(--coal); color: var(--bone); border-left: 8px solid var(--red); }
.panel-red p { color: var(--steel); }
.panel-red .panel-tag { color: var(--red); background: none; }
.panel-red h3, .panel-red .mono-chip { color: var(--bone); }

/* ---------- system ---------- */
.svc-grid { display: grid; gap: 0; margin-top: 2.8rem; border-top: 1px solid var(--line-dark); }
@media (min-width: 820px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { padding: clamp(1.5rem, 3vw, 2.4rem) 0.2rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 820px) {
  .svc { padding-inline: 2rem; }
  .svc:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-left: 0.2rem; }
}
.svc-num {
  display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--red); line-height: 1; margin-bottom: 0.7rem;
}
.band-light .svc-num { color: var(--red); }
.svc h3 { margin-bottom: 0.7rem; }
.svc p { color: var(--steel); max-width: 46ch; }
.tile-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 2.2rem 0 0; padding: 0; list-style: none;
}
.tile-row li {
  padding: 0.55rem 0.95rem; border: 1px solid var(--line-dark);
  font-size: 0.85rem; font-weight: 600; color: var(--steel);
}

/* ---------- pipeline ---------- */
.pipe { display: grid; gap: 2rem; margin-top: 2.6rem; }
@media (min-width: 900px) { .pipe { grid-template-columns: 260px 1fr; } }
.pipe-rail { display: none; }
@media (min-width: 900px) {
  .pipe-rail { display: block; }
  .pipe-map {
    position: sticky; top: 110px; margin: 0; padding: 0; list-style: none;
    border-left: 3px solid var(--line-light);
  }
  .pipe-map li {
    position: relative; padding: 0.9rem 0 0.9rem 1.4rem;
    font-family: var(--display); font-size: 1.15rem; text-transform: uppercase;
    color: var(--muted); transition: color 0.2s;
  }
  .pipe-map li::before {
    content: ""; position: absolute; left: -8px; top: 50%; translate: 0 -50%;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--bone-2); border: 3px solid var(--muted); transition: all 0.2s;
  }
  .pipe-map li.on { color: var(--coal); }
  .pipe-map li.on::before { background: var(--red); border-color: var(--red); }
}
.pipe-steps { display: grid; gap: 1.2rem; }
.pipe-step {
  padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--line-light);
  border-top: 6px solid var(--coal); transition: border-color 0.2s;
}
.pipe-step.on { border-top-color: var(--red); }
.pipe-step .svc-num { color: var(--red); }
.pipe-step p { color: var(--muted); max-width: 56ch; }
.pipe-step h3 { margin-bottom: 0.7rem; }
.pipe-step .mono-chip { color: var(--coal); }

/* ---------- proof ---------- */
.case {
  margin-top: 2.6rem; padding: clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--coal-2); border: 1px solid var(--line-dark); border-left: 8px solid var(--red);
}
.case-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 1rem; }
.case-sub { margin-top: 0.4rem; color: var(--steel); font-size: 0.95rem; }
.case-list { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.case-list li {
  position: relative; padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid var(--line-dark);
}
.case-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 12px; height: 4px; background: var(--red);
}
.case-note {
  margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark);
  color: var(--steel); font-size: 0.95rem; max-width: 64ch;
}

/* ---------- faq ---------- */
#faq details { border-bottom: 1px solid var(--line-light); }
#faq details:first-of-type { margin-top: 2.4rem; border-top: 1px solid var(--line-light); }
#faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0.2rem; min-height: 44px;
  font-weight: 700; font-size: 1.02rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+"; flex: none; font-family: var(--display); font-size: 1.5rem; color: var(--red); line-height: 1;
}
#faq details[open] summary::after { content: "–"; }
#faq details p { padding: 0 0.2rem 1.2rem; color: var(--muted); max-width: 68ch; }

/* ---------- red band ---------- */
.band-red h2 { color: var(--bone); }

/* ---------- footer ---------- */
.footer { background: var(--coal); border-top: 1px solid var(--line-dark); padding-block: 3rem 2rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 0.8rem; }
.foot-brand em { font-style: normal; color: var(--red); margin-left: 0.3rem; }
.foot-grid p { color: var(--steel); font-size: 0.93rem; max-width: 40ch; }
.foot-h { color: var(--bone); margin-bottom: 0.9rem; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li { margin-bottom: 0.55rem; }
.foot-grid ul a { color: var(--steel); text-decoration: none; font-size: 0.93rem; padding-block: 0.3rem; display: inline-block; }
.foot-grid ul a:hover { color: var(--bone); }
.foot-fine { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: var(--steel); font-size: 0.85rem; }

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .nav, .btn, .hero-pulse { display: none; }
  body, .band-dark, .footer { background: #fff; color: #000; }
}
