/* ============================================================
   THE BROADSIDE v2.1 - aexagon.com design system
   Single source of truth for the marketing pages
   (index, /work, 404). discovery/ and learn/ are standalone.

   Rules this file enforces (Brand Guidelines v2.0):
   - Red owns brand + action. Yellow owns ONE highlight bar
     per page (.hl), ink text on the bar, never yellow text.
   - Left-aligned, square corners, no gradients, no shadows.
   - Tanker 400 all-caps display / Supreme 300-500 body only.
   - No em or en dashes in any copy. Ranges use hyphens.
   Values are extracted verbatim from the shipped homepage.
   Do not edit values here without checking every page.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #F3EDDF;
  --paper-2: #EAE2CE;
  --paper-3: #E1D6BC;
  --line: #D8CFBB;
  --ink: #141210;
  --ink-dim: #5C5750;
  --red: #D8260F;
  --red-hover: #B71F0C;
  --yellow: #F2B705;
  --display: 'Tanker', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Supreme', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Utilities ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 64px; } }

h1, h2, h3, .tk {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.hl {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
a { color: var(--ink); }
.dim { color: var(--ink-dim); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; display: block; }
.nav .logo svg { width: 30px; height: 30px; }
.visually-hidden-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo .word { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.005em; font-size: 22px; color: var(--ink); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.plain {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink);
}
.nav-links a.plain:hover { color: var(--red); }
.nav-links a.plain.current { color: var(--red); }
@media (max-width: 719px) { .nav-links a.plain { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 16px 30px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-hover); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.nav .btn { padding: 11px 20px; }

/* ---------- Masthead ---------- */
.masthead { padding: 56px 0 0; border-bottom: 1px solid var(--line); }
.masthead .nameplate {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(64px, 12.5vw, 176px);
  line-height: 0.92;
  color: var(--ink);
  display: block;
}
.masthead .plate-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--ink);
  margin-top: 20px; padding: 10px 0 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  gap: 16px; flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero .lede {
  font-size: 19px; font-weight: 300; line-height: 1.55;
  color: var(--ink-dim);
  max-width: 46ch;
  margin-bottom: 40px;
}
.hero .lede:last-child { margin-bottom: 0; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 899px) { section { padding: 64px 0; } .hero { padding: 64px 0; } }
section h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: 24px;
}
.sub {
  font-size: 17px; font-weight: 300; line-height: 1.6;
  max-width: 58ch; color: var(--ink);
}
.sub + .sub { margin-top: 16px; }

/* ---------- Problem statement ---------- */
.problem-line {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  max-width: 22ch;
  margin: 0 0 32px;
}
.redrule { width: 72px; height: 3px; background: var(--red); border: 0; margin: 0 0 32px; }

/* ---------- Two-column grid (.who) ---------- */
.who-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who { padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .who { padding: 36px 40px 36px 0; }
  .who:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
}
.who h3 { font-size: 22px; margin-bottom: 12px; }
.who p { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--ink-dim); max-width: 44ch; }

/* ---------- Numbered steps ---------- */
.steps { margin-top: 56px; }
.step {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  padding: 36px 0; border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 900px) { .step { grid-template-columns: 140px 260px 1fr; } }
.step .num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  color: var(--ink);
}
.step h3 { font-size: 24px; line-height: 1.1; padding-top: 6px; }
.step p { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--ink-dim); max-width: 52ch; padding-top: 8px; grid-column: 2; }
@media (min-width: 900px) { .step p { grid-column: 3; padding-top: 6px; } }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr 1fr; } }
.tier {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
}
.tier .tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 20px;
}
.tier .tag.hot { color: var(--red); }
.tier h3 { font-size: 26px; margin-bottom: 6px; }
.tier .for { font-size: 14px; font-weight: 300; color: var(--ink-dim); line-height: 1.5; margin-bottom: 28px; min-height: 3em; }
.tier .price {
  font-family: var(--display);
  font-size: clamp(44px, 4.5vw, 58px);
  line-height: 1; color: var(--ink);
}
.tier .per { font-size: 13px; font-weight: 500; color: var(--ink-dim); margin: 10px 0 26px; }
.tier ul { list-style: none; border-top: 1px solid var(--line); margin-bottom: 28px; }
.tier li {
  font-size: 14.5px; font-weight: 400; line-height: 1.45;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.tier .btn { margin-top: auto; text-align: center; }
.pricing-notes { margin-top: 40px; max-width: 62ch; }
.pricing-notes p { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--ink-dim); }
.pricing-notes p + p { margin-top: 8px; }

/* ---------- Small tracks ---------- */
.tracks { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 900px) { .tracks { grid-template-columns: 1fr 1fr; } }
.track { border-top: 2px solid var(--ink); padding-top: 24px; }
.track h3 { font-size: 22px; margin-bottom: 8px; }
.track > p { font-size: 15px; font-weight: 300; color: var(--ink-dim); max-width: 50ch; margin-bottom: 20px; }
.track table { width: 100%; border-collapse: collapse; font-size: 15px; }
.track td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.track td:last-child { text-align: right; font-weight: 500; white-space: nowrap; }

/* ---------- About / facts column ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; } }
.about p { font-size: 17px; font-weight: 300; line-height: 1.65; max-width: 58ch; }
.about p + p { margin-top: 16px; }
.facts { border-top: 2px solid var(--ink); align-self: start; }
.fact { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact .k { font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; color: var(--ink-dim); padding-top: 3px; white-space: nowrap; }
.fact .v { text-align: right; font-weight: 400; }

/* ---------- Quiet closing note (/work) ---------- */
.scoreboard { margin-top: 48px; max-width: 58ch; }
.scoreboard p { font-size: 15px; font-weight: 300; line-height: 1.65; color: var(--ink-dim); }

/* ---------- Close ---------- */
.close { padding: 120px 0 128px; border-bottom: none; }
.close h2 {
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.94;
  max-width: none;
  margin-bottom: 36px;
}
.close .sub { margin-bottom: 44px; }

/* ---------- Footer ---------- */
footer { border-top: 2px solid var(--ink); padding: 40px 0 56px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-row .logo svg { width: 22px; height: 22px; }
.foot-row .logo .word { font-size: 18px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--red); }
.foot-line { margin-top: 28px; font-size: 13px; font-weight: 300; color: var(--ink-dim); }
