/* ============================================================
   GO X PARTNERS — franchise sales page
   House style lifted from goxapp.com: white surfaces, Go X red,
   Benzin Extrabold caps headlines, Sharp Sans body.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-md: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --text-xl: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --text-2xl: clamp(2.25rem, 1.3rem + 4vw, 4.5rem);
  --text-3xl: clamp(2.5rem, 1.1rem + 5.8vw, 6rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 220ms var(--ease);

  --content-wide: 1240px;
  --content-default: 1040px;
  --content-narrow: 720px;

  --font-display: 'Benzin', 'Arial Black', Impact, sans-serif;
  --font-body: 'Sharp Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* LIGHT — the Go X default */
:root,
[data-theme='light'] {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ffffff;
  --ink-block: #171b24;
  --border: #e4e6ec;
  --border-strong: #c9cdd8;

  --text: #000000;
  --text-muted: #7d8399;
  --text-faint: #b3b8c4;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: #b3b8c4;

  --red: #f20030;
  --red-hover: #d10029;
  --red-wash: #faecef;

  --shadow-md: 0 10px 34px rgba(23, 27, 36, 0.08);
  --shadow-lg: 0 26px 70px rgba(23, 27, 36, 0.14);
}

/* DARK */
[data-theme='dark'] {
  --bg: #0c0e12;
  --surface: #14171d;
  --surface-2: #1a1e26;
  --ink-block: #14171d;
  --border: #262b35;
  --border-strong: #3b414e;

  --text: #ffffff;
  --text-muted: #969cad;
  --text-faint: #656b7a;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: #b3b8c4;

  --red: #ff2d55;
  --red-hover: #ff5573;
  --red-wash: rgba(255, 45, 85, 0.12);

  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.6);
}

/* ---------- BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
@media (max-width: 940px) {
  body {
    padding-bottom: 4.75rem;
  }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
ul[role='list'] {
  list-style: none;
}
a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h4 {
  font-family: var(--font-body);
  font-weight: 700;
}
p {
  text-wrap: pretty;
}

a,
button,
input,
select,
textarea,
[role='button'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

::selection {
  background: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--content-wide));
  margin-inline: auto;
}
.wrap--default {
  width: min(100% - 2.5rem, var(--content-default));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 2.5rem, var(--content-narrow));
  margin-inline: auto;
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  position: relative;
}
.sec--tint {
  background: var(--surface);
}
.sec--ink {
  background: var(--ink-block);
  color: var(--text-on-dark);
}
[data-theme='dark'] .sec--ink {
  border-block: 1px solid var(--border);
}
.sec--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-4);
}
.sec--ink .kicker {
  color: var(--red);
}

.headline {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.headline em {
  font-style: normal;
  color: var(--red);
}
.sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.55;
}
.sec--ink .sub {
  color: var(--text-muted-on-dark);
}
.sec-head {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.sec-head--center {
  text-align: center;
}
.sec-head--center .sub {
  margin-inline: auto;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease;
}
.header--scrolled {
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo svg {
  display: block;
}
.logo__arrow {
  color: var(--red);
  flex-shrink: 0;
}
.logo__x {
  color: var(--text);
}
.logo-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  padding-left: 0.55rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--border-strong);
  align-self: center;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--red);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}
.nav + .header__actions {
  margin-left: var(--space-2);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  /* Nav is hidden but still a sibling, so re-assert the right-alignment. */
  .nav + .header__actions {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .header__actions .btn {
    display: none;
  }
  .logo__tag {
    display: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 0, 48, 0.32);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--text);
}
.sec--ink .btn--ghost,
[data-theme='dark'] .hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.sec--ink .btn--ghost:hover,
[data-theme='dark'] .hero .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
/* Light-mode hero sits on a pale photo — give the ghost button a solid base. */
[data-theme='light'] .hero .btn--ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--text);
  backdrop-filter: blur(6px);
}
[data-theme='light'] .hero .btn--ghost:hover {
  background: #fff;
}
.btn--lg {
  padding: 1.0625rem 2.125rem;
  font-size: var(--text-md);
}
.btn--sm {
  padding: 0.5625rem 1.125rem;
  font-size: var(--text-xs);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20))
    clamp(var(--space-16), 7vw, var(--space-24));
  text-align: center;
  background: #eef2f4;
}
[data-theme='dark'] .hero {
  background: #0c0e12;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(238, 242, 244, 0.9) 0%,
    rgba(240, 243, 245, 0.72) 34%,
    rgba(245, 245, 247, 0.86) 70%,
    var(--bg) 100%
  );
}
[data-theme='dark'] .hero__bg img {
  opacity: 0.32;
  filter: grayscale(0.2) brightness(0.75);
}
[data-theme='dark'] .hero__bg::after {
  background: linear-gradient(
    180deg,
    rgba(12, 14, 18, 0.72) 0%,
    rgba(12, 14, 18, 0.6) 34%,
    rgba(12, 14, 18, 0.88) 70%,
    var(--bg) 100%
  );
}

.hero__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius-full);
  background: var(--red);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

.hero h1 {
  font-size: var(--text-3xl);
  max-width: 17ch;
  margin: 0 auto var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
  display: block;
}
.hero__sub {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  max-width: 46ch;
  margin: 0 auto var(--space-8);
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.hero__micro {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- BIG NUMBER STRIP ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-8) var(--space-6);
  text-align: center;
}
.num b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4rem);
  line-height: 0.9;
  color: var(--red);
  margin-bottom: var(--space-3);
}
.num span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 26ch;
  margin-inline: auto;
}
.sec--ink .num b {
  color: #fff;
}
.sec--ink .num span {
  color: var(--text-muted-on-dark);
}

/* ---------- STEPS (goxapp.com "How to start" pattern) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  counter-reset: s;
}
.step {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  position: relative;
}
.sec--tint .step {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
[data-theme='dark'] .sec--tint .step {
  border-color: var(--border);
}
.step__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--red);
  display: block;
  margin-bottom: var(--space-5);
}
.step h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}
.step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- FEATURE ROWS ---------- */
.rows {
  display: grid;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (max-width: 860px) {
  .row {
    grid-template-columns: 1fr;
  }
  /* Image always leads on mobile, regardless of desktop order. */
  .row .row__media {
    order: -1;
  }
}
.row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.row h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.row p {
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.6;
  max-width: 46ch;
}
.row p + p {
  margin-top: var(--space-4);
}
.row strong {
  color: var(--text);
  font-weight: 700;
}
.sec--ink .row strong {
  color: #fff;
}

.ticks {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}
.ticks svg {
  margin-top: 3px;
  color: var(--red);
  flex-shrink: 0;
}

/* ---------- CALCULATOR ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(290px, 380px) 1fr;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  align-items: start;
}
@media (max-width: 900px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

.dials {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}
[data-theme='dark'] .dials {
  border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .dials {
    position: static;
  }
}

.field + .field {
  margin-top: var(--space-8);
}
.field__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.field__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.field__note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-2);
  line-height: 1.5;
}
.field__note strong {
  color: var(--text-muted);
  font-weight: 700;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--surface-2);
  box-shadow: 0 2px 10px rgba(242, 0, 48, 0.4);
  cursor: grab;
  transition: transform 150ms ease;
}
input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}
input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--surface-2);
  cursor: grab;
}

.tierpill {
  display: block;
  margin-top: var(--space-8);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--red-wash);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.tierpill b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: var(--space-1);
  font-size: 0.9375rem;
}

.payoff {
  background: var(--ink-block);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-5);
}
[data-theme='dark'] .payoff {
  border: 1px solid var(--border);
}
@media (max-width: 620px) {
  .payoff {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
.payoff__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-3);
}
.payoff__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 4.75rem);
  line-height: 0.9;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.payoff__sub {
  font-size: var(--text-xs);
  color: var(--text-muted-on-dark);
  margin-top: var(--space-4);
  line-height: 1.5;
  max-width: 44ch;
}
.payoff__side {
  text-align: right;
}
@media (max-width: 620px) {
  .payoff__side {
    text-align: left;
  }
}
.payoff__side dt {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted-on-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.payoff__side dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.payoff__side dd:last-child {
  margin-bottom: 0;
}

.waterfall {
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
[data-theme='dark'] .waterfall {
  border: 1px solid var(--border);
}
.waterfall__head {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1.5px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.wrow {
  display: grid;
  grid-template-columns: 1fr auto 84px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.wrow:last-child {
  border-bottom: none;
}
.wrow__label {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 0;
}
.wrow__label b {
  color: var(--text);
  font-weight: 700;
}
.wrow__val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.wrow__bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  overflow: hidden;
}
.wrow__bar i {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--text-faint);
  transition: width 340ms var(--ease);
}
.wrow--in .wrow__bar i {
  background: var(--text);
}
.wrow--out .wrow__val {
  color: var(--text-muted);
}
.wrow--total {
  background: var(--red-wash);
  padding-block: var(--space-4);
}
.wrow--total .wrow__label b,
.wrow--total .wrow__val {
  color: var(--red);
  font-size: var(--text-md);
  font-weight: 700;
}
.wrow--total .wrow__bar i {
  background: var(--red);
}
@media (max-width: 620px) {
  .wrow {
    grid-template-columns: 1fr auto;
    padding-inline: var(--space-4);
  }
  .wrow__bar {
    display: none;
  }
}

.fineprint {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.6;
  margin-top: var(--space-5);
}
.fineprint strong {
  color: var(--text-muted);
  font-weight: 700;
}

/* ---------- TIER CARDS ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: var(--space-5);
}
.tier {
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier--hot {
  border-color: var(--red);
  box-shadow: 0 18px 46px rgba(242, 0, 48, 0.16);
}
.tier__tag {
  position: absolute;
  top: -0.75rem;
  left: var(--space-6);
  background: var(--red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}
.tier h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}
.tier__units {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.tier__fee {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--red);
}
.tier__feelabel {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.tier dl {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  margin-top: auto;
}
.tier dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.tier dt {
  color: var(--text-muted);
  font-weight: 600;
}
.tier dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- MARKETS ---------- */
.markets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.sec--ink .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.chip--live::before {
  background: #0ea88d;
}
.chip--live {
  opacity: 0.72;
}
.chip--ask {
  border-style: dashed;
  color: var(--text-muted);
}
.sec--ink .chip--ask {
  color: var(--text-muted-on-dark);
}

.markets-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted-on-dark);
}
.markets-note b {
  color: #fff;
}

/* ---------- COMPARE TABLE ---------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}
[data-theme='dark'] .table-scroll {
  border: 1px solid var(--border);
}
table.data {
  min-width: 640px;
  font-size: var(--text-sm);
}
table.data th,
table.data td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 600;
}
table.data thead th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
table.data tbody tr:last-child td {
  border-bottom: none;
}
table.data td:first-child {
  font-weight: 700;
}
tr.is-us {
  background: var(--red-wash);
}
tr.is-us td {
  color: var(--red);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 2px solid var(--border);
}
details.qa {
  border-bottom: 2px solid var(--border);
}
details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-md);
  position: relative;
}
details.qa summary::-webkit-details-marker {
  display: none;
}
details.qa summary:hover {
  color: var(--red);
}
details.qa summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 220ms ease;
}
details.qa[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
details.qa > div {
  padding-bottom: var(--space-6);
}
details.qa p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 72ch;
}
details.qa p + p {
  margin-top: var(--space-3);
}

/* ---------- APPLY ---------- */
.apply {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
@media (max-width: 880px) {
  .apply {
    grid-template-columns: 1fr;
  }
}
.apply h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.apply__aside p {
  color: var(--text-muted-on-dark);
  font-size: var(--text-md);
  max-width: 42ch;
}
.apply__aside .ticks {
  margin-top: var(--space-8);
}
.apply__aside .ticks li {
  color: #fff;
}

.form-card {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  color: var(--text);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.form-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-field textarea {
  resize: vertical;
  min-height: 92px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
  font-weight: 500;
}
.form-note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.55;
}
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--red-wash);
  font-size: var(--text-sm);
  color: var(--text);
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status p {
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-16) var(--space-10);
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 760px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  max-width: 40ch;
}
.footer h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer ul a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.footer ul a:hover {
  color: var(--red);
}

.legal {
  border-top: 1px solid var(--border);
  padding-top: var(--space-8);
}
.legal p {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.65;
  max-width: 95ch;
  margin-top: 0;
}
.legal p + p {
  margin-top: var(--space-3);
}
.legal strong {
  color: var(--text-muted);
}

/* ---------- STICKY MOBILE CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: none;
  transform: translateY(115%);
  transition: transform 300ms var(--ease);
}
.sticky-cta .btn {
  width: 100%;
}
.sticky-cta.is-visible {
  transform: translateY(0);
}
@media (max-width: 940px) {
  .sticky-cta {
    display: block;
  }
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- VERSUS BLOCK (dockless vs B2B) ---------- */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(var(--space-5), 3vw, var(--space-10));
  align-items: stretch;
}
@media (max-width: 900px) {
  .versus {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
.vs-card {
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  background: var(--surface-2);
  border: 2px solid var(--border);
}
.vs-card--them {
  opacity: 0.85;
}
.vs-card--us {
  border-color: var(--red);
  box-shadow: 0 20px 54px rgba(242, 0, 48, 0.16);
}
.sec--ink .vs-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
.sec--ink .vs-card--us {
  background: rgba(242, 0, 48, 0.09);
  border-color: var(--red);
}
.vs-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.vs-card--us .vs-card__tag {
  color: var(--red);
}
.sec--ink .vs-card__tag {
  color: var(--text-muted-on-dark);
}
.sec--ink .vs-card--us .vs-card__tag {
  color: var(--red);
}
.vs-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  line-height: 1.05;
}
.vs-list {
  list-style: none;
  display: grid;
  gap: var(--space-4);
}
.vs-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}
.sec--ink .vs-list li {
  color: var(--text-muted-on-dark);
}
.vs-list svg {
  margin-top: 3px;
  flex-shrink: 0;
}
.vs-list--bad svg {
  color: var(--text-faint);
}
.vs-list--good svg {
  color: var(--red);
}
.vs-list b {
  display: block;
  color: var(--text);
  font-weight: 700;
}
.sec--ink .vs-list b {
  color: #fff;
}
.vs-mid {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
@media (max-width: 900px) {
  .vs-mid {
    padding-block: var(--space-2);
  }
}

/* ---------- SOFTWARE FEATURE GRID ---------- */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
}
.feat {
  border-top: 3px solid var(--red);
  padding-top: var(--space-5);
}
.feat h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.25;
}
.feat p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
.sec--ink .feat p {
  color: var(--text-muted-on-dark);
}

/* ---------- RAMP BARS ---------- */
.ramp {
  display: grid;
  gap: var(--space-4);
  max-width: 640px;
}
.ramp__row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
}
@media (max-width: 560px) {
  .ramp__row {
    grid-template-columns: 100px 1fr auto;
    gap: var(--space-3);
  }
}
.ramp__city {
  color: var(--text);
}
.sec--ink .ramp__city {
  color: #fff;
}
.ramp__track {
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--border);
  overflow: hidden;
}
.sec--ink .ramp__track {
  background: rgba(255, 255, 255, 0.12);
}
.ramp__track i {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--text-muted);
}
.sec--ink .ramp__track i {
  background: rgba(255, 255, 255, 0.55);
}
.ramp__row--best .ramp__track i {
  background: var(--red);
}
.ramp__val {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sec--ink .ramp__val {
  color: var(--text-muted-on-dark);
}
.ramp__row--best .ramp__val {
  color: var(--red);
}

/* ---------- VENUE TYPE PILLS ---------- */
.venues {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.venue-pill {
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.sec--ink .venue-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- QUOTE CARDS ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.quote {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-md);
}
.quote p {
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.quote span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 3x2 feature grid on wide screens — avoids orphan cards */
@media (min-width: 1100px) {
  .feats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6) var(--space-7);
  }
}
