/* =========================================================
   Seller Signal — sales-focused theme
   Bebas Neue (display) + Roboto (body) on red/black/white

   Design system
   -------------
   Every spacing and font-size value on the site is drawn from
   the scales below. That is what keeps padding, gaps and text
   sizes equal across all five pages instead of drifting into
   one-off pixel values per page. Large/display sizes use fluid
   clamp() so type and rhythm scale smoothly with the viewport
   (verified down to 360px) instead of jumping at breakpoints.
   ========================================================= */

:root {
  --red: #cf2028;
  --red-dark: #a5161d;
  --black: #141414;
  --black-2: #1f1f1f;
  --white: #ffffff;
  --ink: #141414;
  --muted: #5b5b5b;
  --border: #ececec;
  --max: 1140px;
  --radius: 8px;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 0.25rem;   /* 4px  */
  --space-2: 0.5rem;    /* 8px  */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 2rem;      /* 32px */
  --space-8: 2.5rem;    /* 40px */
  --space-9: 3rem;      /* 48px */

  /* ---- Fluid layout rhythm: one token per role, reused by every
     page so the same kind of gap is always the same size. ---- */
  --section-y: clamp(2.75rem, 2.35rem + 2vw, 4.5rem);        /* section vertical padding */
  --section-y-tight: clamp(2rem, 1.8rem + 1vw, 2.75rem);      /* .tight section + footer padding */
  --hero-y-top: clamp(2.5rem, 2.1rem + 2vw, 3.75rem);
  --hero-y-bottom: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
  --callout-y: clamp(1.75rem, 1.4rem + 1.75vw, 3rem);
  --stack: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);             /* heading block -> body content */
  --stack-sm: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);        /* note / footnote top gap */
  --gap: clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);           /* standard grid & flex gap */
  --gap-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);            /* dense grid gap (icon rows) */
  --card-y: clamp(1.375rem, 1.2rem + 0.85vw, 1.75rem);        /* card vertical padding */
  --card-x: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);           /* card horizontal padding */
  --card-y-sm: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --card-x-sm: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--white);
  background: var(--red);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); }
.wrap--narrow { max-width: 760px; }

a { color: inherit; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Type scale ----------
   One rule per heading level, shared by every page — this is what
   keeps h1/h2/h3/h4/h5/h6 the same size wherever they're used. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.45em;
  font-weight: 400;
  text-transform: uppercase;
  color: inherit;
}
h1 { font-size: clamp(2.25rem, 1.85rem + 2.2vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 1.55rem + 1.35vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 1.22rem + 0.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 1.05rem + 0.25vw, 1.2rem); }
h5 { font-size: 1rem; letter-spacing: 0.04em; }
h6 { font-size: 0.875rem; letter-spacing: 0.06em; }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
p.lede { font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem); }
small { font-size: 0.85rem; color: var(--muted); display: block; }

.on-white p, .on-white .lede { color: var(--muted); }
.on-black p, .on-black .lede { color: #cfcfcf; }
.on-black small { color: #cfcfcf; }
.hero .lede { max-width: 56ch; }

.muted { color: var(--muted); }
.link-accent { color: var(--red); font-weight: 700; }
.statement .link-accent {
  color: #ffffff;
  font-weight: 500;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.section-note { margin-top: var(--stack-sm); }
.statement {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  letter-spacing: 0.03em;
  margin-top: var(--stack-sm);
  max-width: 44ch;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}
.on-black a:focus-visible, .on-black button:focus-visible,
.section-black a:focus-visible, .section-black button:focus-visible {
  outline-color: var(--white);
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 12px;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--space-3) 0;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img {
  max-width: 120px;
  width: 100%;
  display: block;
}
.brand span.accent { color: var(--red); }
nav.primary-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
nav.primary-nav a {
  color: #c9c9c9;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: var(--space-2) 2px;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--red-dark); }

/*.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #444;
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  font-family: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}*/

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger-icon {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Turn hamburger into X when menu is open */
.nav-open .hamburger-icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-2);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-2); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: #f2f2f2; }
.btn-outline-white { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: var(--space-2) var(--space-5); font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; }
section.tight { padding: var(--section-y-tight) 0; }
.section-black { background: var(--black); }
.section-white { background: var(--white); color: var(--ink); }
.section-white h1, .section-white h2, .section-white h3,
.section-white h4, .section-white h5, .section-white h6 { color: var(--ink); }

.section-head { max-width: 680px; margin: 0 auto var(--stack); text-align: center; }
.tag {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.on-white .tag, .card .tag { background: var(--red); }

/* ---------- Hero ---------- */
.hero { padding: var(--hero-y-top) 0 var(--hero-y-bottom); text-align: center; }
.hero-actions { display: flex; gap: var(--gap-sm); justify-content: center; flex-wrap: wrap; margin-top: var(--stack-sm); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--card-y) var(--space-3);
  margin-top: var(--stack);
}
.stat-strip .stat { text-align: center; color: var(--ink); }
.stat-strip .stat .label { font-size: 0.85rem; color: var(--muted); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.section-white .card {
  padding: 20px 20px 90px 20px;
}
.quick-picker .card {
  padding: 20px 20px 80px 20px;
}
.section-white.ppc-listing .card {
  padding: 20px;
}
.section-white.quick-answers .card {
  padding: 20px;
}
.section-white .card.text-center {
    padding: 20px;
}
.card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
}
.card a.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 85%;
  bottom: 20px;
}
.quick-picker .card a.btn {
  padding: var(--space-4) var(--space-4);
}
.card h3 { color: var(--ink); }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: var(--space-5); color: var(--muted); font-size: 0.92rem; }
.card ul li { margin-bottom: var(--space-2); }
.card-title-sm { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); }
.card.text-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }

.card-dark {
  background: var(--black-2);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--card-y) var(--card-x);
  border: 1px solid #333;
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: #cfcfcf; }

/* Shared "big red stat number" used on the hero stat strip and in
   problem/result callouts — one size everywhere it appears.
   Specificity note: these are almost always nested in .card, whose
   own ".card h3 { color: ink }" rule outranks a bare single class —
   so the color is repeated on a .card-qualified selector too. */
.stat-number,
.stat-strip .num,
.card .stat-number {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.7rem + 1vw, 2.4rem);
  color: var(--red);
  display: block;
  line-height: 1;
}

.card-price,
.card .card-price {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.25rem + 0.5vw, 1.6rem);
  color: var(--red);
  margin: 0;
}

.mt-stack { margin-top: var(--gap); }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.plan {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--card-y) var(--card-x);
  border: 2px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.popular, .plan.accent { border-color: var(--red); }
.plan .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
}
.plan .tier { font-size: 0.82rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.plan .price { font-family: var(--display); font-size: clamp(2.25rem, 2rem + 1.1vw, 3rem); color: var(--red); margin: var(--space-2) 0 0; line-height: 1; }
.plan .per-unit { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--space-4); display: block; }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); flex-grow: 1; }
.plan ul li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: var(--space-5);
  position: relative;
}
.plan ul li:first-child { border-top: none; }
.plan ul li::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  /* CSS-only scroll shadows: hint that a table scrolls horizontally
     on narrow screens without any JavaScript. */
  background:
    linear-gradient(to right, var(--white) 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), var(--white) 70%) 100% 0,
    linear-gradient(to right, rgba(0,0,0,0.18), rgba(0,0,0,0)),
    linear-gradient(to left, rgba(0,0,0,0.18), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-color: var(--white);
  background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll;
}
table.compare { width: 100%; border-collapse: collapse; background: transparent; color: var(--ink); min-width: 560px; }
table.compare th, table.compare td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.compare thead th { background: var(--black); color: var(--white); font-family: var(--display); letter-spacing: 0.03em; font-size: 1rem; font-weight:500; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.yes { color: var(--red); font-weight: 700; }
table.compare td.no { color: var(--muted); }
table.compare td.cross { color: var(--muted); text-decoration: line-through; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: var(--card-y) var(--card-x); }
.step p { color: var(--muted); }
.step .step-num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--red);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-2);
}

/* ---------- Algorithm flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }
.flow-step { background: var(--black-2); border-radius: var(--radius); padding: var(--card-y-sm) var(--card-x-sm); text-align: center; border: 1px solid #333; }
.flow-step .flow-icon { font-family: var(--display); font-size: 1.8rem; color: var(--red); display: block; margin-bottom: var(--space-2); }
.flow-step p { color: #e6e6e6; font-size: 0.9rem; margin: 0; max-width: none; }

.transform-stat { font-family: var(--display); font-size: clamp(1.9rem, 1.7rem + 1vw, 2.4rem); margin: var(--space-2) 0 0; line-height: 1; }
.transform-stat .arrow { color: var(--red); }
.stat-caption { margin: 0; font-size: 0.9rem; }

/* ---------- Callout ---------- */
.callout { text-align: center; padding: var(--callout-y) var(--card-x); }
.callout h2 { color: var(--white); }
.callout p { color: #cfcfcf; margin: 0 auto var(--space-6); }

.disclosure {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: 0.82rem;
  color: #e6e6e6;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--black); padding: var(--section-y-tight) 0; border-top: 1px solid #242424; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.85rem;
  color: #9a9a9a;
}
footer.site-footer nav ul { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
footer.site-footer nav a { color: #9a9a9a; text-decoration: none; font-size: 0.85rem; }
footer.site-footer nav a:hover { color: #fff; }

/* ---------- Responsive ----------
   Column collapse at 900px / 640px, then a small-phone pass at
   420px so the header never overflows down to the 360px floor. */
@media (max-width: 900px) {
  .grid-4, .stat-strip, .pricing-grid, .steps, .flow, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-row { row-gap: 0; }
  .menu-toggle { display: inline-flex; align-items: center; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }

  /* Mobile menu: fades + slides down on open, up on close */
  nav.primary-nav {
    display: block;
    width: 100%;
    order: 3;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: max-height .35s ease, opacity .3s ease, transform .35s ease, visibility 0s linear .35s;
  }
  nav.primary-nav ul { flex-direction: column; gap: var(--space-1); padding: var(--space-3) 0; }
  body.nav-open nav.primary-nav {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: max-height .35s ease, opacity .3s ease, transform .35s ease, visibility 0s;
  }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .stat-strip, .pricing-grid, .steps, .flow { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; text-align: center; }
  footer.site-footer nav ul { justify-content: center; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 var(--space-4); }
  .brand { font-size: 1.25rem; }
  .nav-cta { padding: var(--space-2) var(--space-3); font-size: 0.76rem; }
  .menu-toggle { padding: var(--space-2) var(--space-2); font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav.primary-nav, body.nav-open nav.primary-nav { transition: none; }
}
