/* ── TailgateBrief marketing site ──
   Matches the app: hi-vis rugged. Dark slate + safety orange, black uppercase
   headings, border-2 cards, flat shadows. Tokens mirror the app's index.css. */

:root {
  --primary: hsl(24 96% 48%);
  /* Hover goes LIGHTER, not darker: the label on an orange button is charcoal
     now, so darkening the fill would lower contrast instead of raising it. */
  --primary-hover: hsl(24 96% 53%);
  /* Charcoal on safety orange = 5.12:1. White was 3.23:1 and failed WCAG AA. */
  --primary-fg: hsl(215 30% 12%);
  /* Same orange hue, dark enough to be legal as small TEXT on light
     backgrounds: 5.35:1 on white, 5.02:1 on the calculator panel. */
  --primary-ink: hsl(24 96% 36%);
  --fg: hsl(215 30% 12%);
  --fg-soft: hsl(215 16% 40%);
  /* Was 55% = #7C8A9C, only 3.4:1 on the page. 46% = #657386 gives 4.83:1 on
     white and 4.62:1 on the page band, so the fine print is legible too. */
  --fg-faint: hsl(215 14% 46%);
  --bg: hsl(210 20% 98%);
  --bg-band: hsl(210 22% 95%);
  --surface: #fff;
  --border: hsl(214 20% 84%);
  --border-strong: hsl(215 22% 68%);
  --dark: hsl(215 32% 13%);
  --dark-2: hsl(215 30% 18%);
  --dark-fg: hsl(210 22% 94%);
  --dark-soft: hsl(212 16% 72%);
  --warn: hsl(38 96% 30%);
  --r: 0.375rem;
  --shadow: 0 1px 0 0 hsl(215 22% 80%);
  --shadow-lift: 0 2px 0 0 hsl(215 22% 78%);
  --wrap: 1200px;
  --font-body: 'General Sans', 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-display: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, .brandname, .btn, .eyebrow, .num, .step-num, .stat-k, .calc-label, .plan-tag {
  font-family: var(--font-display);
}

h1, h2, h3 { font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.center-t { text-align: center; }
.center-x { justify-content: center; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--primary-fg); padding: 0.75rem 1rem; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 2px solid transparent; border-radius: var(--r);
  padding: 0.6rem 1.05rem; font-size: 0.9375rem; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .08s ease;
}
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--fg); }

.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; }
.btn-ghost:hover { background: hsl(215 20% 90%); }

.btn-ghost-dark { background: transparent; color: #fff; border-color: hsl(0 0% 100% / .34); }
.btn-ghost-dark:hover { border-color: #fff; background: hsl(0 0% 100% / .08); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsl(210 20% 98% / .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); }
.mark { width: 30px; height: 30px; color: var(--primary); flex: none; }
.brandname { font-size: 1.0625rem; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.9375rem; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--fg-soft); }
.nav-links a:hover { color: var(--primary-ink); }
.nav-cta { display: flex; gap: 0.5rem; align-items: center; }

/* ── Hero ── */
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-ink); margin: 0 0 1rem;
}
.eyebrow-dark { color: hsl(24 96% 62%); }

.hero { padding: 4.5rem 0 6rem; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 2.5rem; align-items: center; }

h1 { font-size: clamp(2.25rem, 4.4vw, 3.35rem); text-transform: uppercase; }
h1 .hl { color: var(--primary); }

.lede { font-size: 1.0625rem; color: var(--fg-soft); margin: 1.35rem 0 0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.microcopy { font-size: 0.875rem; color: var(--fg-faint); margin: 0.9rem 0 0; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; margin: 2rem 0 0; padding: 0;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-soft); }
.hero-badges li { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }

.hero-shot { position: relative; padding: 0 0 1rem; }
.hero-shot .frame-desktop { width: 88%; }

/* ── Device frames ── */
.frame { background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--r); overflow: hidden; }
.frame-desktop { box-shadow: 0 18px 40px -24px hsl(215 30% 30% / .4); }
.frame-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: hsl(210 20% 93%); border-bottom: 2px solid var(--border); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.frame-phone {
  position: absolute; right: 0; bottom: -2.5rem; width: 25%; max-width: 168px;
  border-radius: 0.9rem; border-width: 4px; border-color: var(--dark);
  box-shadow: 0 20px 40px -18px hsl(215 30% 25% / .5);
}
.frame-phone-lg { position: static; width: 100%; max-width: 300px; margin: 0 auto; }
.frame-tablet { border-width: 6px; border-color: var(--dark); border-radius: 0.75rem; box-shadow: 0 16px 36px -22px hsl(215 30% 30% / .45); }
.frame-paper { border-color: var(--border); box-shadow: 0 14px 34px -20px hsl(215 30% 30% / .4); }
.frame-paper img { border-radius: 2px; }
.frame-wide { max-width: 760px; margin: 2.5rem auto 0; }

/* ── Sections ── */
.section { padding: 5.5rem 0; }
.band { padding: 5.5rem 0; background: var(--bg-band); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }

.sec-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); text-transform: uppercase; max-width: 22em; }
.center .sec-title { margin-inline: auto; }
.sec-lede { font-size: 1.0625rem; color: var(--fg-soft); margin: 1.1rem 0 0; max-width: 44em; }
.center .sec-lede { margin-inline: auto; }

/* ── Grids ── */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }

.card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow); }
.num { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; color: var(--primary-ink); margin-bottom: 0.85rem; }
.card h3 { font-size: 1.0625rem; text-transform: uppercase; }
.card p { font-size: 0.9375rem; color: var(--fg-soft); margin: 0.6rem 0 0; }

.feat { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); }
.feat h3 { font-size: 1rem; text-transform: uppercase; }
.feat p { font-size: 0.9375rem; color: var(--fg-soft); margin: 0.55rem 0 0; }

/* ── Steps ── */
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; margin-top: 4.5rem; }
.step-reverse .step-copy { order: 2; }
.step-reverse .step-shot { order: 1; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--primary); color: var(--primary-fg); font-size: 1.25rem; font-weight: 900;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); text-transform: uppercase; }
.step p { color: var(--fg-soft); margin: 1rem 0 0; }

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.85rem; font-size: 0.9375rem; color: var(--fg-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.7rem; height: 0.42rem;
  border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.ticks-dark li { color: var(--dark-soft); }

/* ── Dark band ── */
.dark { background: var(--dark); color: var(--dark-fg); padding: 5.5rem 0; }
.dark-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 4rem; align-items: center; }
.sec-title-dark { color: #fff; }
.sec-lede-dark { color: var(--dark-soft); }
.stat-stack { display: grid; gap: 0.85rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; background: var(--dark-2); border: 2px solid hsl(215 22% 28%); border-left: 5px solid var(--primary); border-radius: var(--r); padding: 1rem 1.15rem; }
.stat-k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(24 96% 62%); }
.stat-v { font-size: 1.0625rem; font-weight: 600; color: #fff; }

.caption { font-size: 0.8125rem; color: var(--fg-faint); text-align: center; margin: 1rem 0 0; }

/* ── Calculator ── */
.calc { background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--r); padding: 1.9rem; margin-top: 3rem; box-shadow: var(--shadow-lift); }
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.calc-head label { font-weight: 700; font-size: 1rem; }
.calc-count { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--primary); }

#crewsize { width: 100%; margin: 1rem 0 0; accent-color: var(--primary); height: 1.75rem; }
.calc-help { font-size: 0.8125rem; color: var(--fg-faint); margin: 0.25rem 0 1.5rem; }

.calc-price { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 2rem; align-items: center; }
.calc-us { border: 2px solid var(--primary); border-radius: var(--r); background: hsl(24 96% 97%); padding: 1.25rem; }
.calc-label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-ink); }
.calc-num { display: block; font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin: 0.25rem 0; font-family: var(--font-display); }
.calc-unit { display: block; font-size: 0.8125rem; color: var(--fg-soft); }

.calc-bars { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 74px; gap: 0.75rem; align-items: center; font-size: 0.8125rem; }
.bar-name { font-weight: 600; color: var(--fg-soft); }
.bar-track { display: block; background: hsl(210 22% 92%); border-radius: 2px; height: 1.4rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: hsl(215 16% 62%); border-radius: 2px; transition: width .22s ease; }
.bar-row.is-us .bar-fill { background: var(--primary); }
.bar-row.is-us .bar-name, .bar-row.is-us .bar-val { color: var(--fg); font-weight: 700; }
.bar-val { font-family: var(--font-mono); text-align: right; color: var(--fg-soft); }

.calc-tax { font-size: 0.8125rem; color: var(--fg-soft); margin: 1.25rem 0 0; line-height: 1.55; }
.calc-note { font-size: 0.75rem; color: var(--fg-faint); margin: 1.5rem 0 0; line-height: 1.6; }
.calc-note a { color: var(--fg-soft); }

/* ── Plans ── */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.plan { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); padding: 1.9rem; box-shadow: var(--shadow); }
.plan-main { border-color: var(--primary); box-shadow: 0 2px 0 0 hsl(24 96% 42%); }
.plan-tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.plan-main .plan-tag { color: var(--primary-ink); }
.plan h3 { font-size: 1.5rem; text-transform: uppercase; margin: 0.5rem 0 0.85rem; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 0.4rem; }
.pp-num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 900; letter-spacing: -0.03em; }
.pp-unit { font-size: 1rem; color: var(--fg-soft); font-weight: 600; }
.plan-plus { font-size: 0.9375rem; color: var(--fg-soft); margin: 0.15rem 0 1.4rem; }
.plan-what { font-size: 0.8125rem; color: var(--fg-faint); margin: -1rem 0 1.4rem; line-height: 1.5; }
.plan-setup {
  font-size: 0.875rem; font-weight: 600; color: var(--primary-ink);
  margin: -0.9rem 0 1.4rem; line-height: 1.5;
}
.plan-micro { font-size: 0.8125rem; color: var(--fg-faint); margin: 0.7rem 0 0; text-align: center; }
.plan-list { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 2px solid var(--border); }
.plan-honest {
  font-size: 0.8125rem; color: var(--warn); margin: 1.5rem 0 0;
  border-left: 3px solid var(--warn); padding: 0.15rem 0 0.15rem 0.85rem;
}

/* ── Trades ── */
.trades { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.trades li {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r);
  padding: 0.45rem 0.9rem; font-size: 0.875rem; font-weight: 600; color: var(--fg-soft);
}

/* ── FAQ ── */
.faq { margin-top: 2.5rem; border-top: 2px solid var(--border); }
.faq details { border-bottom: 2px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 1.55rem;
  width: 0.6rem; height: 0.6rem;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg); transition: transform .16s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 1.75rem; }
.faq p { margin: 0 0 1.4rem; color: var(--fg-soft); font-size: 0.9375rem; max-width: 62em; }

/* ── CTA ── */
.cta { background: var(--dark); color: #fff; padding: 5rem 0; text-align: center; }
.cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-transform: uppercase; }
.cta p { color: var(--dark-soft); margin: 1.1rem auto 0; max-width: 40em; }

/* ── Footer ── */
.footer { background: hsl(215 34% 10%); color: var(--dark-soft); padding: 3.5rem 0 1.75rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.brand-footer { color: #fff; }
.foot-note { font-size: 0.875rem; margin: 1rem 0 0; line-height: 1.7; }
.foot-links { display: grid; gap: 0.65rem; font-size: 0.9375rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--primary); }
.foot-bottom { border-top: 1px solid hsl(215 22% 22%); margin-top: 3rem; padding-top: 1.5rem; }
.foot-bottom p { font-size: 0.75rem; color: hsl(212 14% 52%); margin: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-shot { max-width: 640px; }
  .frame-phone { right: 0; bottom: -1.5rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { gap: 2.5rem; }
  .dark-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step-reverse { grid-template-columns: 1fr; }
  .step-reverse .step-copy, .step-reverse .step-shot { order: unset; }
  .step-shot { max-width: 560px; }
  .calc-price { grid-template-columns: 1fr; gap: 1.5rem; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .section, .band, .dark { padding: 4rem 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .frame-phone { position: static; width: 62%; margin: 1.5rem auto 0; }
  .hero-shot { max-width: none; }
  .btn-lg { padding: 0.85rem 1.25rem; font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .calc { padding: 1.25rem; }
  .bar-row { grid-template-columns: 92px minmax(0, 1fr) 62px; gap: 0.5rem; font-size: 0.75rem; }
  .plan, .card, .feat { padding: 1.25rem; }
  .footer-inner { gap: 2rem; }
}
