/* GablePath Digital — one responsive page. Mobile base, desktop at 768px.
   Palette is the approved spec: ink #111418, blue #2563EB, dark #0F1115,
   tint #F7F8FA. */

:root {
  --ink: #111418;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --dark: #0F1115;
  --tint: #F7F8FA;
  --line: #E5E8EC;
  --line-strong: #D3D8DF;
  --muted: #5B6470;
  --faint: #8B93A0;
  --chip: #F2F4F7;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: #fff; padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 0; }

.mono { font-family: var(--mono); }
.faint { color: var(--faint); }
.accent { color: var(--blue); }
.eyebrow { color: var(--blue); font-size: 12px; }

/* Visibility utilities only ever HIDE — never force a display value — so they
   can sit on a flex/grid element without fighting its layout rule. */
@media (max-width: 767.98px) { .desktop-only { display: none !important; } }
@media (min-width: 768px)    { .mobile-only  { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: #FFFFFF; }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-lg { height: 50px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px; border-bottom: 1px solid var(--line);
}
.wordmark img { height: 15px; width: auto; display: block; }

.nav-desktop { display: none; }

.nav-mobile { position: relative; }
.nav-mobile > summary {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  list-style: none; cursor: pointer;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-drawer {
  position: absolute; right: 0; top: 46px; z-index: 20;
  display: flex; flex-direction: column; gap: 14px;
  width: max-content; min-width: 220px; padding: 18px;
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 16px 32px rgba(17, 20, 24, .12);
}
.nav-drawer a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-drawer a.btn { color: #FFFFFF; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; gap: 18px; padding: 48px 24px 40px; }
.hero h1 { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.hero .lede { font-size: 16px; line-height: 1.6; color: var(--muted); }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; }
.hero-cta .btn { width: 100%; }
.hero .mono.faint { font-size: 12px; }

.terminal {
  display: flex; flex-direction: column; background: var(--dark);
  border-radius: 10px; overflow: hidden; margin: 0 20px 44px;
}
.term-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #23262C;
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A3F47; }
.term-body {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  font-size: 12px; line-height: 1.5; color: #E6E9EE;
  overflow-x: auto;
}
.term-body .dim { color: var(--faint); }
.term-body .ok { color: #4ADE80; }
.term-body .caret { color: var(--blue); }
/* The parenthetical asides are desktop-only — on a 390px terminal they wrap and
   turn one clean line into two. Matches the approved mobile design. */
.term-note { display: none; }
@media (min-width: 768px) { .term-note { display: inline; margin-left: 1.5em; } }

/* ---------- trust row ---------- */
.trust { display: flex; flex-direction: column; gap: 18px; padding: 0 20px 44px; }
.trust .mono { font-size: 13px; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chips li {
  background: var(--chip); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--faint);
}
.chips a {
  display: flex; align-items: center; justify-content: center;
  height: 48px; color: inherit; text-align: center; padding: 0 8px;
}
.chips a:hover { color: var(--blue); }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-direction: column; gap: 10px; }
.sec-head h2 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.sec-head .lede { font-size: 15px; color: var(--muted); line-height: 1.6; }

.band-tint { background: var(--tint); border-top: 1px solid var(--line); }

/* ---------- before / after ---------- */
.before-after { display: flex; flex-direction: column; gap: 36px; padding: 88px 72px; border-bottom: 1px solid var(--line); }
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ba { display: flex; flex-direction: column; gap: 14px; }
.ba figcaption { font-size: 13px; }
.ba-note { font-size: 14px; color: var(--muted); line-height: 1.5; }

.mock-before {
  display: flex; flex-direction: column; gap: 10px;
  background: #DDE0E5; border-radius: 8px; padding: 22px; height: 300px;
}
.mock-before .b-title { height: 34px; background: #C4C9D1; width: 60%; }
.mock-before .b-line { height: 12px; background: #C4C9D1; }
.mock-before .w92 { width: 92%; } .mock-before .w88 { width: 88%; }
.mock-before .w90 { width: 90%; } .mock-before .w40 { width: 40%; }
.mock-before .b-row { display: flex; gap: 10px; margin-top: 8px; }
.mock-before .b-row div { height: 90px; background: #C4C9D1; flex-grow: 1; }

.mock-after {
  display: flex; flex-direction: column; gap: 12px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px;
  padding: 22px; height: 300px; box-shadow: 0 12px 28px rgba(17, 20, 24, .08);
}
.mock-after .a-top { display: flex; justify-content: space-between; align-items: center; }
.mock-after .a-logo { height: 14px; width: 110px; background: var(--ink); border-radius: 3px; }
.mock-after .a-btn { height: 30px; width: 96px; background: var(--blue); border-radius: 5px; }
.mock-after .a-h1 { height: 40px; background: var(--ink); width: 72%; border-radius: 4px; margin-top: 8px; }
.mock-after .a-sub { height: 12px; background: var(--line); width: 58%; border-radius: 3px; }
.mock-after .a-row { display: flex; gap: 12px; margin-top: 10px; }
.mock-after .a-row div {
  height: 110px; background: var(--chip); border: 1px solid var(--line);
  border-radius: 6px; flex-grow: 1;
}

/* ---------- pricing ---------- */
.pricing {
  display: flex; flex-direction: column; gap: 18px;
  padding: 44px 20px; background: var(--tint); border-top: 1px solid var(--line);
}
.price-grid { display: flex; flex-direction: column; gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #FFFFFF; padding: 24px;
}
.card-featured { border: 2px solid var(--blue); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { font-size: 17px; font-weight: 700; }
.badge {
  font-size: 12px; color: var(--blue); background: #EBF0FE;
  padding: 6px 10px; border-radius: 4px; white-space: nowrap;
}
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 34px; font-weight: 700; }
.price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.card-note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.features { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.features li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.features svg { flex: none; }
.card .btn { height: 46px; }

/* ---------- process ---------- */
.process { display: flex; flex-direction: column; gap: 20px; padding: 44px 20px; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.step-n { font-size: 13px; color: var(--blue); padding-top: 2px; grid-row: 1 / span 2; }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- dark CTA band ---------- */
.cta-band {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 52px 24px; background: var(--dark); text-align: center;
}
.cta-band h2 { font-size: 26px; font-weight: 700; color: #FFFFFF; line-height: 1.25; }
.cta-sub { font-size: 17px; color: var(--faint); max-width: 520px; line-height: 1.6; }
.cta-band .btn-cta { width: 100%; }

/* ---------- intake ---------- */
.intake { display: flex; flex-direction: column; gap: 24px; padding: 48px 20px; }
.form { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--faint); font-size: 13px; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 12px 14px; width: 100%;
}
.field select { height: 48px; appearance: none; background-image: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.form-actions { gap: 12px; }
.form-fine { font-size: 12px; }
.form-status {
  font-size: 15px; line-height: 1.55; padding: 14px 16px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: #FFFFFF;
}
.form-status.err { border-color: #FDA29B; background: #FEF3F2; color: #B42318; }
.form-status.ok { border-color: #A6E3C0; background: #ECFDF3; color: #067647; }

/* ---------- phone (injected by app.js only when SITE_PHONE is set) ---------- */
.head-phone { display: none; }
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  height: 56px; background: var(--blue); color: #FFFFFF;
  font-size: 16px; font-weight: 600;
}
.callbar:hover { color: #FFFFFF; background: var(--blue-dark); }
body.has-callbar { padding-bottom: 56px; }

/* ---------- repeated copy blocks ---------- */
.no-friction { font-size: 12px; }
.on-dark { color: #8B93A0; }

/* ---------- edit SLA ---------- */
.sla { display: flex; flex-direction: column; gap: 14px; padding: 44px 20px; border-top: 1px solid var(--line); }
.sla h2 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.sla-sub { font-size: 15px; color: var(--muted); line-height: 1.6; }
.sla .mono.faint { font-size: 12px; }

/* ---------- guarantee (inside pricing cards) ---------- */
.guarantee {
  font-size: 14px; line-height: 1.55; color: var(--muted);
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 6px; padding: 14px 16px;
}
.guarantee strong { color: var(--ink); }

/* ---------- money math ---------- */
.money-math { display: flex; flex-direction: column; gap: 16px; padding: 44px 20px; }
.mm-lede { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 760px; }

/* ---------- exit promise ---------- */
.exit { display: flex; flex-direction: column; gap: 20px; padding: 44px 20px; border-top: 1px solid var(--line); }
.promise { display: flex; flex-direction: column; gap: 14px; }
.promise li {
  font-size: 15px; line-height: 1.6; color: var(--muted);
  border-left: 2px solid var(--blue); padding-left: 16px;
}
.promise strong { color: var(--ink); display: block; }
.exit .mono.faint { font-size: 12px; }

/* ---------- switcher ---------- */
.switcher { display: flex; flex-direction: column; gap: 16px; padding: 44px 20px; }
.sw-lede { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 760px; }
.switcher .btn { align-self: flex-start; }

/* ---------- terms ---------- */
.terms { display: flex; flex-direction: column; gap: 22px; padding: 44px 20px; border-top: 1px solid var(--line); }
.qa { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.qa dt { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.qa dd { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 760px; }
.terms-fine { font-size: 13px; color: var(--faint); line-height: 1.6; }

/* ---------- trade landing pages ---------- */
.trade-points { display: flex; flex-direction: column; gap: 18px; padding: 44px 20px; border-top: 1px solid var(--line); }
.tp-list { display: flex; flex-direction: column; gap: 16px; }
.tp-list li { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tp-list strong { color: var(--ink); display: block; }
.offer { display: flex; flex-direction: column; gap: 14px; padding: 44px 20px; }
.offer-lede { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 760px; }
.offer .price { margin-top: 4px; }

/* ---------- footer ---------- */
.site-foot {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 20px; border-top: 1px solid var(--line); text-align: center;
}
.foot-mark { height: 13px; width: auto; opacity: .85; }
.foot-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--faint); }
.foot-meta a { color: var(--faint); }
.foot-meta a:hover { color: var(--ink); }

/* =====================================================================
   DESKTOP — the 1440px spec, fluid down to 768px
   ===================================================================== */
@media (min-width: 768px) {
  .site-head { height: 72px; padding: 0 clamp(24px, 5vw, 72px); }
  .wordmark img { height: 20px; }
  .nav-mobile { display: none; }
  .nav-desktop { display: flex; gap: clamp(18px, 2.2vw, 32px); align-items: center; font-size: 14px; font-weight: 500; }
  .nav-desktop a { color: var(--muted); }
  .nav-desktop a:hover { color: var(--ink); }
  .nav-desktop a.btn { color: #FFFFFF; }
  .btn-sm { height: 42px; padding: 0 22px; }

  .hero {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 4.5vw, 64px); align-items: center;
    padding: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 72px) clamp(56px, 6.6vw, 96px);
  }
  .hero-copy { gap: 24px; }
  .hero h1 { font-size: clamp(38px, 4vw, 58px); line-height: 1.1; }
  .hero .lede { font-size: 19px; max-width: 540px; }
  .hero-cta { flex-direction: row; gap: 14px; margin-top: 4px; }
  .hero-cta .btn { width: auto; height: 52px; padding: 0 30px; font-size: 15px; }
  .hero .mono.faint { font-size: 13px; }

  .terminal { margin: 0; box-shadow: 0 24px 48px rgba(17, 20, 24, .18); }
  .term-bar { gap: 7px; padding: 14px 18px; }
  .term-bar i { width: 11px; height: 11px; }
  .term-body { gap: 12px; padding: 26px 28px 30px; font-size: 14px; }

  .trust { gap: 22px; padding: 0 clamp(24px, 5vw, 72px) clamp(56px, 6.6vw, 96px); }
  .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .chips li { font-size: 13px; }
  .chips a { height: 56px; }

  .head-phone { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); margin-left: 20px; }
  .head-phone:hover { color: var(--blue); }
  .callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }

  .sla { gap: 18px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .sla h2 { font-size: clamp(28px, 2.7vw, 36px); max-width: 900px; }
  .sla-sub { font-size: 17px; max-width: 760px; }

  .money-math { gap: 20px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .mm-lede { font-size: 17px; }

  .exit { gap: 28px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .exit .lede { font-size: 17px; max-width: 760px; }
  .promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
  .promise li { font-size: 16px; }

  .switcher { gap: 20px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .sw-lede { font-size: 17px; }

  .terms { gap: 32px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .terms .lede { font-size: 17px; max-width: 760px; }
  .qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
  .qa dt { font-size: 18px; }
  .qa dd { font-size: 16px; }

  .trade-points { gap: 28px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .tp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .tp-list li { font-size: 16px; }
  .offer { gap: 20px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .offer-lede { font-size: 17px; }

  .eyebrow { font-size: 14px; }
  .sec-head h2 { font-size: clamp(28px, 2.7vw, 36px); }

  .before-after { padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }

  .pricing {
    gap: 36px; background: #FFFFFF; border-top: 0;
    padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px);
  }
  .price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .card { padding: 36px; gap: 18px; }
  .card h3 { font-size: 20px; }
  .price strong { font-size: 44px; }
  .price span { font-size: 16px; }
  .card .btn { height: 50px; font-size: 15px; }

  .process {
    gap: 36px;
    padding: 0 clamp(24px, 5vw, 72px) clamp(56px, 6.6vw, 96px);
  }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .steps li {
    display: flex; flex-direction: column; gap: 12px;
    border-top: 2px solid var(--ink); padding-top: 20px;
  }
  .step-n { font-size: 14px; padding-top: 0; }
  .steps h3 { font-size: 19px; }
  .steps p { font-size: 15px; line-height: 1.6; }

  .cta-band { gap: 20px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .cta-band h2 { font-size: clamp(30px, 3vw, 40px); max-width: 720px; line-height: 1.2; }
  .cta-band .btn-cta { width: auto; height: 54px; padding: 0 34px; font-size: 16px; margin-top: 6px; }

  .intake { gap: 32px; padding: clamp(56px, 6vw, 88px) clamp(24px, 5vw, 72px); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; max-width: 860px; }
  .field-wide { grid-column: 1 / -1; }
  .form-actions { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
  .form-status { grid-column: 1 / -1; }

  .site-foot {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 36px clamp(24px, 5vw, 72px); text-align: left;
  }
  .foot-mark { height: 16px; }
  .foot-meta { flex-direction: row; gap: 24px; font-size: 13px; }
}
