/* System Integrators: Trades landing page
   Tokens follow the System Integrators design system (dark default, light "paper" sections). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --ink: #17181c;
  --ink-soft: #54575f;
  --line: #e7e7ec;

  --dark: #0a0b0e;
  --dark-2: #131419;
  --dark-3: #1b1d24;
  --dark-4: #0e0f13;
  --dark-line: #272a33;
  --dark-line-strong: #3a3d47;
  --dark-ink: #f5f6f8;
  --dark-ink-soft: #a3a7b3;
  --mint: #45db98;
  --mint-wash: rgba(69, 219, 152, .12);

  --acc: #ff7417;
  --on-acc: #17181c;
  --acc-wash: rgba(255, 116, 23, .14);

  --gutter: clamp(18px, 4vw, 24px);
  --section-y: clamp(56px, 9vw, 96px);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--dark-ink);
  font-family: var(--font);
  font-weight: 500; /* the brand face starts at 500 */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.theme-light :focus-visible, .site-header :focus-visible { outline-color: #c2410c; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--acc); color: var(--on-acc); font-weight: 700;
  padding: 10px 16px; border-radius: 100px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--tight-top { padding-top: 0; }
.section--alt { background: var(--dark-4); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.section[id] { scroll-margin-top: 72px; }
.theme-light { background: var(--paper); color: var(--ink); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 12px;
}
.theme-light .eyebrow { color: var(--ink-soft); }
.h2 {
  font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.h2--tight { margin-bottom: 24px; }

.grid { display: grid; gap: 16px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { font-size: 15px; color: var(--dark-ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 100px; font-weight: 700; line-height: 1.2;
  transition: transform .35s ease, background-color .35s ease;
}
.btn--primary { background: var(--acc); color: var(--on-acc); }
.btn--primary:hover { transform: scale(1.04); }
.btn--ghost { border: 1px solid var(--dark-line-strong); color: var(--dark-ink); }
.btn--ghost:hover { background: var(--dark-3); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; white-space: nowrap; }
.btn--md { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 8px 30px; font-size: 17px; }

/* Short CTA labels on small screens, full labels from 760px */
.lg-only { display: none; }
@media (min-width: 760px) {
  .sm-only { display: none; }
  .lg-only { display: inline; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink);
}
.site-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo img { height: clamp(34px, 5vw, 44px); width: auto; }
.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--ink); }
.site-nav a:hover { color: var(--ink-soft); }
@media (min-width: 760px) { .site-nav { display: block; } }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 9vw, 112px) var(--gutter) clamp(48px, 9vw, 112px);
  border-bottom: 1px solid var(--dark-line);
}
.hero__inner { max-width: 860px; }
.hero h1 {
  font-size: clamp(38px, 7vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.hero h1 span { color: var(--dark-ink-soft); }
.hero__lede {
  font-size: clamp(17px, 2vw, 20px); color: var(--dark-ink-soft); max-width: 680px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 22px; }
.hero__secondary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 16px; font-weight: 700; border-bottom: 2px solid var(--acc);
}
.hero__proof { font-size: 13px; font-weight: 600; color: var(--dark-ink-soft); letter-spacing: .01em; }

/* ---------- Problem cards ---------- */
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; background: var(--acc-wash); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Quote-to-paid flow ---------- */
.flow-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: clamp(32px, 5vw, 52px); }
.flow-toggle {
  display: inline-flex; gap: 4px; padding: 4px; background: var(--dark-2);
  border: 1px solid var(--dark-line-strong); border-radius: 100px;
}
.flow-toggle button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 100px; cursor: pointer;
  font-size: 14px; font-weight: 700; background: transparent; color: var(--dark-ink-soft);
}
.flow-toggle button[aria-pressed="true"] { background: var(--acc); color: var(--on-acc); }
.flow[data-flow="today"] .flow-toggle button[data-flow-set="connected"] { border: 1.5px dashed var(--acc); }
.flow-hint { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--acc); }
.flow[data-flow="connected"] .flow-hint { display: none; }
.flow-hint .arrow-lg { display: none; }
@media (min-width: 760px) {
  .flow-hint .arrow-sm { display: none; }
  .flow-hint .arrow-lg { display: inline; }
}

.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: flex; flex-direction: column; }
.flow-node {
  width: 128px; height: 48px; border-radius: 16px; border: 1px solid var(--dark-line); background: var(--dark-2);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--dark-ink);
}
.flow-link { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.flow-line {
  width: 128px; flex: none; align-self: stretch; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.flow-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 63px; border-left: 2px dashed #54575f; }
.flow-glyph {
  position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--dark-4);
  border: 1.5px solid var(--acc); color: var(--acc); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.flow-handoff { font-size: 14px; font-weight: 600; color: var(--dark-ink-soft); }

/* state swap */
.is-fix { display: none; }
.flow[data-flow="connected"] .is-leak { display: none; }
.flow[data-flow="connected"] .is-fix { display: inline; }
.flow[data-flow="connected"] .flow-line::before { border-left-style: solid; border-color: var(--mint); }
.flow[data-flow="connected"] .flow-glyph { border-color: var(--mint); color: var(--mint); }
.flow[data-flow="connected"] .flow-step:last-child .flow-node { background: var(--mint-wash); border-color: var(--mint); }

@media (min-width: 760px) {
  .flow-steps { flex-direction: row; align-items: flex-start; }
  .flow-step { flex-direction: row; align-items: flex-start; flex: 1 1 0; min-width: 0; }
  .flow-step:last-child { flex: none; }
  .flow-node { flex: none; width: 108px; height: 56px; }
  .flow-link { flex: 1; min-width: 0; min-height: 0; padding: 17px 6px 0; flex-direction: column; gap: 10px; }
  .flow-line { width: 100%; height: 22px; align-self: auto; }
  .flow-line::before { top: 10px; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 2px dashed #54575f; }
  .flow[data-flow="connected"] .flow-line::before { border-top-style: solid; border-color: var(--mint); }
  .flow-glyph { width: 22px; height: 22px; }
  .flow-handoff { font-size: 12px; line-height: 1.35; text-align: center; }
}

.flow-summary {
  margin-top: clamp(32px, 5vw, 52px); padding-top: 24px; border-top: 1px solid var(--dark-line);
  font-size: clamp(17px, 2.2vw, 22px); font-weight: 600; line-height: 1.45; max-width: 760px;
}
.flow-summary span { color: var(--acc); }

/* ---------- How we work ---------- */
.step-num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--acc); letter-spacing: -0.03em; }
.step-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--dark-ink);
  background: var(--dark-3); border: 1px solid var(--dark-line); padding: 4px 11px; border-radius: 100px;
}
.steps .card { gap: 12px; }

/* ---------- What we build ---------- */
.build-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden;
}
.build-grid li { background: var(--dark); padding: 24px; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; font-weight: 600; line-height: 1.5; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-top: 9px; flex: none; }

/* ---------- Pricing ---------- */
.pricing-intro { font-size: 17px; line-height: 1.65; color: var(--dark-ink-soft); max-width: 720px; margin-bottom: clamp(36px, 5vw, 52px); }
.pricing .h2 { margin-bottom: 16px; max-width: 760px; }
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px; align-items: stretch; margin-bottom: clamp(40px, 6vw, 64px);
}
.tier { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; }
.tier--featured { position: relative; background: var(--dark-3); border: 2px solid var(--acc); padding: 31px 27px; margin-top: 14px; }
@media (min-width: 640px) { .tier--featured { margin-top: 0; } }
.tier__badge {
  position: absolute; top: -14px; left: 26px; background: var(--acc); color: var(--on-acc);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
}
.tier h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-ink-soft); line-height: 1.6; }
.tier__price {
  font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 4px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
}
.tier__unit { font-size: 17px; font-weight: 600; color: var(--dark-ink-soft); }
.tier__was { font-size: 20px; font-weight: 600; color: var(--dark-ink-soft); text-decoration: line-through; }
.tier__save {
  align-self: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--acc);
  background: var(--acc-wash); padding: 4px 10px; border-radius: 100px;
}
.tier__total { font-size: 15px; font-weight: 600; color: var(--dark-ink-soft); margin-bottom: 20px; }
.tier__desc { font-size: 15px; color: var(--dark-ink-soft); flex-grow: 1; margin-bottom: 28px; }
.tier--featured .tier__desc { color: var(--dark-ink); }

.faq-mini-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-ink-soft); margin-bottom: 20px; }
.faq-mini {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 28px 32px; padding-top: 24px; border-top: 1px solid var(--dark-line); margin-bottom: 32px;
}
.faq-mini div { display: flex; flex-direction: column; gap: 8px; }
.faq-mini h4 { margin: 0;  font-size: 16px; font-weight: 700; line-height: 1.3; }
.faq-mini p { font-size: 14px; line-height: 1.6; color: var(--dark-ink-soft); }
.pricing-note { font-size: 15px; font-weight: 600; }

/* ---------- Tools ---------- */
.tools .container { padding-top: clamp(40px, 6vw, 64px); }
.tools .eyebrow { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chips li { font-size: 15px; font-weight: 700; padding: 9px 16px; border: 1px solid var(--dark-line); border-radius: 100px; }
.chips li.chip--more { border: 1px dashed #54575f; color: var(--dark-ink-soft); padding: 8px 16px; }
.tools__tagline { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Results ---------- */
.results { border-bottom: 0; }
.quote { margin: 0; padding: 28px 24px 24px; gap: 18px; }
.quote .quote__trade { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.quote blockquote { margin: 0; flex-grow: 1; font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--dark-ink); }
.quote figcaption { padding-top: 16px; border-top: 1px solid var(--dark-line); }
.quote__name { display: block; font-size: 15px; font-weight: 700; color: var(--dark-ink); }
.quote__company { display: block; font-size: 13px; font-weight: 600; color: var(--dark-ink-soft); }

/* ---------- Who it's for ---------- */
.fit .h2 { margin-bottom: clamp(24px, 4vw, 36px); }
.fit-list { margin-bottom: clamp(32px, 5vw, 48px); max-width: 760px; }
.fit-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line);
  font-size: clamp(17px, 2vw, 19px); font-weight: 600;
}
.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: var(--on-acc);
  font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.trades { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: clamp(15px, 1.8vw, 17px); font-weight: 700; }
.trades li + li::before { content: "·"; color: var(--ink-soft); margin-right: 14px; }
.trades-more { margin-top: 10px; font-size: clamp(15px, 1.8vw, 17px); font-weight: 600; color: var(--ink-soft); }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.about__photo img { width: 100%; max-width: 400px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--dark-2); }
.about__text { max-width: 600px; }
.about__text .eyebrow { margin-bottom: 16px; }
.about__quote { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.5; margin-bottom: 20px; }
.about__byline { font-size: 14px; font-weight: 600; color: var(--dark-ink-soft); }

/* ---------- FAQ ---------- */
.faq .h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: clamp(17px, 2vw, 19px); font-weight: 700; line-height: 1.4; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: transform .25s ease;
}
.faq-list details[open] .faq-chevron { transform: rotate(180deg); }
.faq-list details p { padding: 0 50px 22px 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.final-cta { padding: clamp(64px, 10vw, 120px) var(--gutter); }
.final-cta .container { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.final-cta h2 { font-size: clamp(32px, 5.6vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 820px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-4); border-top: 1px solid var(--dark-line); padding: 28px var(--gutter); }
.site-footer__inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer img { height: 30px; width: auto; }
.site-footer small { font-size: 13px; color: var(--dark-ink-soft); }

/* ---------- Thank-you page ---------- */
.page-thanks { min-height: 100vh; display: flex; flex-direction: column; }
.page-thanks main { flex: 1; }
.thanks-hero { padding: clamp(48px, 9vw, 104px) var(--gutter) clamp(40px, 6vw, 64px); }
.thanks-hero .thanks-badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-bottom: 20px;
}
.thanks-badge .check { letter-spacing: 0; }
.thanks-hero h1 { font-size: clamp(36px, 6.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 820px; margin-bottom: 20px; }
.thanks-hero p { font-size: clamp(17px, 2vw, 19px); color: var(--dark-ink-soft); max-width: 640px; }
.thanks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.thanks-card { border-radius: 20px; padding: clamp(24px, 3.4vw, 32px); gap: 20px; }
.thanks-card .eyebrow { margin: 0; }
.thanks-card .eyebrow--muted { color: var(--dark-ink-soft); }
.thanks-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--dark-line); }
.thanks-list li:last-child { border-bottom: 1px solid var(--dark-line); }
.thanks-list p { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--dark-ink); }
.thanks-list .n { flex: none; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--acc); width: 20px; }
.thanks-card .note { font-size: 14px; margin-top: auto; }
.thanks-back {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding-top: 28px; border-top: 1px solid var(--dark-line);
}
.thanks-back p { font-size: clamp(17px, 2vw, 19px); font-weight: 700; }
.btn--back { min-height: 48px; padding: 0 22px; font-size: 15px; }
.muted { color: var(--dark-ink-soft); }
.site-header--static { position: relative; }
