/* ==========================================================
   SAS Digital Co. — site styles
   Brand: navy, rich sapphire (used sparingly for actions and accents), gray, white.
   Type: Playfair Display (logo "SAS") + Jost (logo "DIGITAL Co.").
   Performance: self-hosted fonts, no blur filters, animations use
   transform/opacity only, looping motion pauses off-screen.
   ========================================================== */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy-950: #06111D;
  --navy-900: #0A1A2F;
  --navy-850: #0D203A;
  --navy-800: #12294A;
  --navy-700: #1B3761;

  --sapphire:      #2556A8;
  --sapphire-hi:   #2F64BC;
  --sapphire-deep: #1B4386;
  --steel:         #A9C3EC;
  --steel-dim:     #7F9CCB;

  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #DDE3EA;
  --gray-100: #EDF1F5;
  --tint:     #F2F5F9;
  --white:    #FFFFFF;
  --ink:      #0A1A2F;
  --ink-soft: #475569;
  --on-dark:  #C6D1DF;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.section-intro, .lede, .price-plus, .goal-lede { text-wrap: pretty; }
p, figure { margin: 0; }
strong, b { font-weight: 600; color: var(--ink); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; 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: -60px; z-index: 100; background: var(--white); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Emphasis on dark backgrounds */
.hero strong, .section-dark strong, .book strong, .price-main strong, .standard strong, .card-back strong, .calc-results strong { color: var(--white); }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.eyebrow-dark { color: var(--sapphire-deep); }
.lede { font-size: 20px; line-height: 1.7; }
h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--sapphire-deep); }
.section-dark h2 em, .book h2 em, .standard h3 em { color: var(--steel); }

/* Highlighter mark: draws in behind the words, line by line */
.mark {
  color: var(--white); font-style: italic; font-weight: 500;
  background-image: linear-gradient(var(--sapphire), var(--sapphire));
  background-repeat: no-repeat; background-position: 0 86%; background-size: 100% .38em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
}
.js .mark { background-size: 0% .38em; animation: markIn 1s .7s var(--ease) forwards; }
.js .mark-static { animation: none; transition: background-size 1s .25s var(--ease); }
.js .is-visible .mark-static { background-size: 100% .38em; }
@keyframes markIn { to { background-size: 100% .38em; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.btn:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--sapphire); color: var(--white); border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 22px rgba(37,86,168,.3);
}
.btn-primary:hover { background: var(--sapphire-hi); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 28px rgba(37,86,168,.4); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: #EEF3FA; transform: translateY(-2px); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.05); }
.btn-outline { color: var(--navy-900); border-color: var(--navy-900); background: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--steel); transform-origin: left; transform: scaleX(0); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 36px; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--gray-300); letter-spacing: .03em; transition: color .2s; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a:focus-visible, .header-phone:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--white); }
.menu-toggle, .mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-850) 100%);
  padding: 92px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 76% 50%, rgba(37,86,168,.26) 0, rgba(37,86,168,0) 30%),
    repeating-radial-gradient(circle at 76% 50%, rgba(169,195,236,.06) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(circle at 76% 50%, #000 0, #000 28%, transparent 60%);
          mask-image: radial-gradient(circle at 76% 50%, #000 0, #000 28%, transparent 60%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 62px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 26px; }
.hero .lede { color: var(--on-dark); max-width: 590px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.ticks li, .checklist li { position: relative; padding-left: 28px; }
.ticks li::before, .checklist li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px;
  border-left: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  transform: translateY(-50%) rotate(-45deg);
}
/* Headline and intro paint immediately (they are the LCP); only the buttons and ticks rise in */
.hero-copy > *:nth-child(n+4) { animation: rise .7s var(--ease) both; }
.hero-copy > *:nth-child(5) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Phone alert mockup (plays once) */
.phone-wrap { justify-self: center; animation: rise .9s .2s var(--ease) both; }
.phone {
  position: relative; width: 300px; padding: 12px; border-radius: 42px;
  background: linear-gradient(160deg, #1B2A40, #0B1524);
  border: 1px solid rgba(169,195,236,.22);
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 88px; height: 22px; margin-left: -44px; border-radius: 12px; background: #05090F; z-index: 2; }
.phone-screen { background: #F3F5F8; border-radius: 32px; min-height: 470px; padding: 58px 16px 20px; color: var(--ink); }
.sms-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--gray-200); }
.sms-head b { display: block; font-size: 15px; line-height: 1.2; }
.sms-head small { font-size: 12px; color: var(--gray-500); }
.sms-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .02em; flex: none; }
.sms-typing { display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--gray-100); border-radius: 18px 18px 18px 4px; }
.sms-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); animation: dot 1s ease-in-out infinite; }
.sms-typing i:nth-child(2) { animation-delay: .15s; }
.sms-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .35; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.sms-bubble { background: var(--white); border: 1px solid var(--gray-200); border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 6px 18px rgba(10,26,47,.06); }
.js .sms-typing { animation: typingOut .3s 1.6s ease forwards; }
.js .sms-bubble { opacity: 0; transform: translateY(8px); animation: bubbleIn .5s 1.8s var(--ease) forwards; }
.js .sms-typing ~ .sms-bubble { margin-top: -38px; }
@keyframes typingOut { to { opacity: 0; transform: scale(.9); } }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
.sms-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sapphire-deep); margin-bottom: 6px; }
.sms-bubble p + p { margin-top: 6px; }
.sms-bubble ul { list-style: none; margin: 10px 0; padding: 10px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); display: grid; gap: 4px; }
.sms-bubble li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.sms-bubble li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--sapphire); border-bottom: 2px solid var(--sapphire); transform: rotate(-45deg); }
.sms-call { font-weight: 600; color: var(--sapphire-deep); }
.phone-caption { margin-top: 18px; text-align: center; font-size: 13px; color: var(--gray-400); }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.trust-inner { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.trust-label { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-500); padding-right: 28px; border-right: 1px solid var(--gray-200); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.trust-list li { font-size: 15px; font-weight: 500; color: var(--navy-800); letter-spacing: .02em; }

/* ---------- Numbers (light) ---------- */
.numbers { background: var(--white); padding: 84px 0 64px; }
.numbers-title { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 44px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.num { display: flex; flex-direction: column; gap: 8px; padding: 0 28px; border-left: 1px solid var(--gray-200); }
.num:first-child { border-left: 0; padding-left: 0; }
.num dd { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 3.8vw, 54px); font-weight: 600; line-height: 1.05; color: var(--navy-900); font-variant-numeric: lining-nums tabular-nums; }
.num dt { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.js .num { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .numbers-grid.is-visible .num { opacity: 1; transform: none; }
.js .numbers-grid.is-visible .num:nth-child(2) { transition-delay: .1s; }
.js .numbers-grid.is-visible .num:nth-child(3) { transition-delay: .2s; }
.js .numbers-grid.is-visible .num:nth-child(4) { transition-delay: .3s; }
.footnote { margin-top: 36px; font-size: 13px; color: var(--gray-500); }
.section-dark .footnote { color: var(--gray-400); }
.footnote-center { text-align: center; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(34px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -.01em; }
.section-intro { margin-top: 18px; font-size: 18px; color: var(--ink-soft); }
.section-head .section-intro { max-width: 660px; margin-left: auto; margin-right: auto; }
.section-dark .section-intro { color: var(--on-dark); }

/* Results */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case { background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 38px 38px 30px; transition: transform .35s var(--ease), border-color .35s; }
.case:hover { transform: translateY(-4px); border-color: rgba(169,195,236,.3); }
.case-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.case-meta { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); line-height: 1.6; }
.case-figure { font-family: var(--font-display); font-size: 80px; font-weight: 600; line-height: .9; }
.case-figure span { color: var(--steel); font-size: .66em; }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 80px; align-items: center; gap: 14px; font-size: 14px; }
.bar-label { color: var(--gray-400); font-weight: 500; }
.bar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 12px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; transform-origin: left center; transform: scaleX(var(--w)); transition: transform 1.4s var(--ease); }
.bar-spend { background: var(--gray-400); }
.bar-booked { background: linear-gradient(90deg, var(--sapphire), var(--steel)); transition-delay: .3s; }
.js .bars:not(.is-visible) .bar-fill { transform: scaleX(0); }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.case-metrics div { display: flex; flex-direction: column; gap: 2px; }
.case-metrics dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; order: -1; }
.case-metrics dt { font-size: 13px; color: var(--gray-400); }

/* Estimator */
.estimate-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.estimate-copy h2 { font-family: var(--font-display); font-size: clamp(34px, 3.8vw, 50px); line-height: 1.12; }
.estimate-copy .section-intro { margin-bottom: 26px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 16px; line-height: 1.5; }
.checklist-ink li::before { border-color: var(--sapphire); }
.checklist-ink { color: var(--ink-soft); }
.calc { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(10,26,47,.08); }
.calc-inputs { padding: 30px 32px 10px; }
.calc-field { margin-bottom: 26px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.calc-row label { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.calc-row output { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.calc input[type="range"] {
  /* 32px tall touch area; the visible track is a 6px band drawn in the middle */
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; cursor: pointer; background-color: transparent;
  background-image: linear-gradient(var(--navy-900), var(--navy-900)), linear-gradient(var(--gray-200), var(--gray-200));
  background-repeat: no-repeat; background-position: 0 50%, 0 50%;
  background-size: var(--p, 50%) 6px, 100% 6px;
  touch-action: pan-y;
}
.calc input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 32px; }
.calc input[type="range"]::-moz-range-track { background: transparent; }
.calc input[type="range"]::-webkit-slider-thumb { margin-top: 4px; }
.calc input[type="range"]:focus-visible { outline: 3px solid var(--steel); outline-offset: 6px; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--sapphire); box-shadow: 0 2px 8px rgba(10,26,47,.25); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--sapphire); box-shadow: 0 2px 8px rgba(10,26,47,.25); }
.calc-results { background: var(--navy-900); color: var(--white); padding: 26px 32px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.calc-stat span { display: block; font-size: 13px; color: var(--gray-400); }
.calc-stat b { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.calc-stat-lead { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.calc-stat-lead b { font-size: 44px; line-height: 1.1; }
.calc-note { grid-column: 1 / -1; font-size: 12px; color: var(--gray-400); margin-top: -6px; }
.calc-results .btn { grid-column: 1 / -1; }

/* Goal + services */
.goal { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.goal h2 { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; }
.goal-lede { font-size: 20px; color: var(--ink-soft); }

/* Flip cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card.flip { perspective: 1400px; cursor: pointer; outline: none; border-radius: var(--radius-lg); transition: transform .35s var(--ease); }
.card-inner { display: grid; height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .7s var(--ease); }
.card-face { grid-area: 1 / 1; display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: 30px 26px 24px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card-front { background: var(--tint); border: 1px solid var(--gray-200); transition: box-shadow .35s ease, background-color .35s ease; position: relative; overflow: hidden; }
.card-front::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--navy-900); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card-back { background: var(--navy-900); color: var(--on-dark); transform: rotateY(180deg); }
.card.flip:hover { transform: translateY(-6px); }
.card.flip:hover .card-front { background: var(--white); box-shadow: 0 18px 40px rgba(10,26,47,.1); }
.card.flip:hover .card-front::before { transform: scaleX(1); }
.card.flip.is-flipped .card-inner { transform: rotateY(180deg); }
.card.flip:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 4px; }
.card-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--navy-900); display: grid; place-items: center; margin-bottom: 22px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.card-front p { font-size: 16px; color: var(--ink-soft); }
.card-hint { margin-top: auto; padding-top: 18px; display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--sapphire-deep); }
.card-hint::after { content: "\21BB"; display: inline-block; margin-left: 7px; font-size: 15px; transition: transform .4s var(--ease); }
.card.flip:hover .card-hint::after { transform: rotate(180deg); }
.card-back .card-hint { color: var(--steel); }
.hint-tap { display: none; }
@media (hover: none) { .hint-click { display: none; } .hint-tap { display: inline; } }
.back-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.card-back ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; }
.card-back li { position: relative; padding-left: 20px; }
.card-back li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }

/* Process */
.timeline { list-style: none; margin: 0 0 52px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; }
.timeline::before { background: var(--gray-300); }
.timeline::after { background: var(--navy-900); transform-origin: left; transform: scaleX(1); transition: transform 1.8s var(--ease); }
.js .timeline:not(.is-visible)::after { transform: scaleX(0); }
.timeline li { position: relative; }
.t-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--navy-900); border: 2px solid var(--gray-300); font-family: var(--font-display); font-weight: 600; margin-bottom: 22px; box-shadow: 0 0 0 6px var(--tint); transition: background-color .4s, color .4s, border-color .4s; }
.js .timeline.is-visible li .t-dot { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.js .timeline.is-visible li:nth-child(2) .t-dot { transition-delay: .45s; }
.js .timeline.is-visible li:nth-child(3) .t-dot { transition-delay: .9s; }
.js .timeline.is-visible li:nth-child(4) .t-dot { transition-delay: 1.35s; }
.timeline h3 { font-family: var(--font-display); font-size: 23px; margin-bottom: 8px; }
.timeline p { font-size: 16px; color: var(--ink-soft); }
.standard { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg); padding: 44px 48px; }
.standard h3 { font-family: var(--font-display); font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.standard-copy p:last-child { color: var(--on-dark); font-size: 16px; }
.standard-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.standard-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 16px 18px; font-size: 16px; }
.standard-list li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sapphire) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
.compare-wrap:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); background: var(--tint); }
.compare thead th.col-sas { background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-size: 18px; letter-spacing: 0; text-transform: none; }
.compare tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.compare td.col-sas { background: #F5F8FC; }
.yes, .no, .varies { display: inline-flex; align-items: center; gap: 8px; }
.yes { font-weight: 600; color: var(--navy-900); }
.yes::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.no { color: var(--gray-500); }
.no::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gray-300); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.varies { color: var(--gray-500); }
.varies::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--gray-300); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; max-width: 1020px; margin: 0 auto; }
.price-card { border-radius: var(--radius-lg); padding: 44px 42px; }
.price-main { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.price-main::after { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(37,86,168,.35), transparent 70%); pointer-events: none; }
.price-label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.price { font-family: var(--font-display); font-size: 64px; font-weight: 600; line-height: 1; margin: 18px 0 8px; }
.price-from, .price-per { font-family: var(--font-sans); font-weight: 400; color: var(--gray-400); }
.price-from { font-size: 18px; vertical-align: middle; margin-right: 4px; }
.price-per { font-size: 20px; }
.price-words { font-size: 48px; line-height: 1.05; }
.price-plus { text-wrap: balance; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--steel); margin-bottom: 14px; }
.price-note { color: var(--on-dark); font-size: 16px; margin-bottom: 26px; }
.price-main .checklist { margin-bottom: 32px; color: var(--on-dark); }
.price-alt { background: var(--white); border: 1px solid var(--gray-200); display: flex; flex-direction: column; }
.price-alt .price-label { color: var(--sapphire-deep); }
.price-alt-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 14px 0 22px; line-height: 1.15; }
.how-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.how-steps li { position: relative; padding-left: 46px; font-size: 16px; color: var(--ink-soft); line-height: 1.5; counter-increment: step; }
.how-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--navy-900); color: var(--navy-900); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.price-alt-foot { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--gray-500); border-top: 1px solid var(--gray-200); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.5fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 18px; }
.faq-intro p { color: var(--ink-soft); font-size: 17px; }
.faq-intro a { color: var(--sapphire-deep); font-weight: 600; }
.faq details { background: var(--tint); border-radius: 10px; margin-bottom: 10px; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.faq details:hover { border-color: var(--gray-200); }
.faq details[open] { background: var(--white); border-color: var(--gray-200); box-shadow: 0 10px 28px rgba(10,26,47,.07); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8v10M8 13h10' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 10px; }
.faq details > *:not(summary) { padding: 0 26px; color: var(--ink-soft); font-size: 17px; }
.faq details > *:last-child { padding-bottom: 24px; }
.faq details ol, .faq details ul { margin: 0; padding-left: 48px; display: grid; gap: 8px; }
.faq details[open] > *:not(summary) { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Book */
.book { background: radial-gradient(760px 460px at 8% 100%, rgba(37,86,168,.22), transparent 60%), var(--navy-900); color: var(--white); padding: 100px 0; }
.book-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.book h2 { font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.14; margin-bottom: 22px; }
.book .lede { color: var(--on-dark); margin-bottom: 34px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.next-steps li { display: flex; gap: 16px; align-items: flex-start; }
.next-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--steel-dim); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.next-steps b { display: block; color: var(--white); font-size: 17px; }
.next-steps small { font-size: 15px; color: var(--on-dark); }
.book-panel { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 42px 40px 34px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.book-panel h3 { font-family: var(--font-display); font-size: 30px; margin-bottom: 26px; }
.book-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; color: var(--gray-400); font-size: 14px; }
.book-divider::before, .book-divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-200); text-decoration: none; }
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); }
.contact-value { font-weight: 600; color: var(--navy-900); transition: color .2s; overflow-wrap: anywhere; text-align: right; }
.contact-row:hover .contact-value { color: var(--sapphire); }
.book-assure { margin-top: 16px; text-align: center; font-size: 14px; color: var(--gray-500); }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--gray-400); padding: 72px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 18px; }
.footer-tag { max-width: 360px; line-height: 1.6; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px 9px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.social:hover { border-color: var(--steel-dim); background: rgba(255,255,255,.04); }
.social:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social svg circle:last-child { fill: currentColor; stroke: none; }

/* ---------- Closed-loop optimization ---------- */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.loop li { position: relative; background: var(--tint); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px 24px 26px; }
.loop li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -17px; width: 14px; height: 14px; z-index: 1;
  border-top: 2px solid var(--gray-400); border-right: 2px solid var(--gray-400); transform: rotate(45deg);
}
.loop-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 600; margin-bottom: 18px; }
.loop li:last-child .loop-num { background: var(--sapphire); }
.loop h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.loop p { font-size: 16px; color: var(--ink-soft); }
.loop-repeat { margin: 22px auto 0; text-align: center; font-size: 15px; color: var(--gray-500); }
.loop-repeat span { display: inline-block; margin-right: 6px; color: var(--navy-900); font-size: 18px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; margin: 44px auto 0; max-width: 820px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.versus-cell { padding: 24px 28px; }
.versus-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 6px; }
.versus-value { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gray-500); text-decoration: line-through; text-decoration-color: var(--gray-300); text-decoration-thickness: 2px; }
.versus-sas { background: var(--navy-900); }
.versus-sas .versus-label { color: var(--steel); }
.versus-sas .versus-value { color: var(--white); text-decoration: none; }

/* Rotating example alert */
.sms-bubble.is-out { opacity: 0 !important; transform: translateY(-6px) !important; transition: opacity .35s ease, transform .35s ease; animation: none !important; }
.sms-bubble.is-in { animation: bubbleIn .5s var(--ease) both !important; }
.sms-typing.is-typing { animation: none !important; opacity: 1 !important; transform: none !important; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-bottom a { text-decoration: none; transition: color .2s; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-heading { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer-bottom > a { color: var(--white); font-weight: 600; }

.mobile-cta { display: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .num, .js .sms-bubble { opacity: 1; transform: none; }
  .js .sms-typing { display: none; }
  .js .sms-typing ~ .sms-bubble { margin-top: 0; }
  .js .mark, .js .mark-static { background-size: 100% .38em; }
  .js .bars:not(.is-visible) .bar-fill { transform: scaleX(var(--w)); }
  .js .timeline:not(.is-visible)::after { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 22px; }
  .header-phone { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  :root { --header-h: 68px; }
  .container { padding: 0 20px; }
  .brand img { height: 42px; }
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; position: relative; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
  .menu-toggle span { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 4px; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; padding: 4px 20px 20px; background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08); }
  .mobile-nav a:not(.btn) { padding: 14px 0; text-decoration: none; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500; }
  .mobile-nav .btn { margin-top: 16px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid, .goal, .cases, .pricing, .faq-grid, .book-grid, .standard, .estimate-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid > *, .goal > *, .cases > *, .pricing > *, .faq-grid > *, .book-grid > *, .standard > *, .estimate-grid > * { min-width: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero::before { background:
      radial-gradient(circle at 50% 78%, rgba(37,86,168,.24) 0, rgba(37,86,168,0) 34%),
      repeating-radial-gradient(circle at 50% 78%, rgba(169,195,236,.06) 0 1px, transparent 1px 56px);
    -webkit-mask-image: radial-gradient(circle at 50% 78%, #000 0, #000 26%, transparent 58%);
            mask-image: radial-gradient(circle at 50% 78%, #000 0, #000 26%, transparent 58%); }
  .phone { width: 280px; }
  .phone-screen { min-height: 430px; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
  .trust-label { border-right: 0; padding-right: 0; }
  .trust-list { gap: 4px 16px; }
  .trust-list li { font-size: 14px; }

  .numbers { padding: 60px 0 48px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .num { padding: 0 16px; }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }

  .section, .book { padding: 68px 0; }
  .section-head { margin-bottom: 38px; }
  .goal { margin-bottom: 36px; gap: 18px; }
  .cards { grid-template-columns: 1fr; }
  .case, .price-card, .book-panel { padding: 30px 22px; }
  .case-figure { font-size: 60px; }
  .bar-row { grid-template-columns: 88px 1fr 68px; gap: 10px; font-size: 13px; }

  .calc-inputs { padding: 24px 20px 4px; }
  .calc-results { padding: 22px 20px 24px; gap: 14px 16px; }
  .calc-stat b { font-size: 26px; }
  .calc-stat-lead b { font-size: 36px; }

  .timeline { grid-template-columns: 1fr; gap: 26px; margin-bottom: 40px; }
  .timeline::before, .timeline::after { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(1); }
  .js .timeline:not(.is-visible)::after { transform: scaleY(0); }
  .timeline li { padding-left: 66px; }
  .t-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .standard { padding: 30px 22px; }
  .standard-list { grid-template-columns: 1fr; }

  /* Comparison becomes one card per feature on phones */
  .compare-wrap { border: 0; border-radius: 0; overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; background: var(--white); }
  .compare tbody th { width: 100%; background: var(--tint); font-family: var(--font-display); font-size: 18px; font-weight: 600; padding: 14px 16px; }
  .compare td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; text-align: right; }
  .compare td::before { content: attr(data-label); flex: none; font-size: 13px; font-weight: 500; color: var(--gray-500); text-align: left; }
  .compare td.col-sas::before { color: var(--navy-900); font-weight: 600; }
  .compare tbody tr td:last-child { border-bottom: 0; }
  .compare tbody tr:last-child th { border-bottom: 1px solid var(--gray-200); }

  .price { font-size: 50px; }
  .price-words { font-size: 38px; }
  .faq-intro { position: static; }
  .faq summary { font-size: 18px; padding: 20px 58px 20px 20px; }
  .faq details > *:not(summary) { padding: 0 20px; }
  .faq details ol, .faq details ul { padding-left: 40px; }

  .loop { grid-template-columns: 1fr; gap: 14px; }
  .loop li { padding: 22px 20px 20px 76px; }
  .loop-num { position: absolute; left: 20px; top: 22px; margin: 0; }
  .loop li:not(:last-child)::after { top: auto; bottom: -12px; right: auto; left: 35px; width: 10px; height: 10px; transform: rotate(135deg); }
  .versus { grid-template-columns: 1fr; margin-top: 32px; }
  .versus-cell { padding: 20px 22px; }
  .versus-value { font-size: 21px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: 104px; }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--gray-200);
    transition: transform .4s var(--ease);
  }
  .js .mobile-cta:not(.is-shown) { transform: translateY(110%); }
  .mobile-cta .btn { padding: 14px 10px; box-shadow: none; }
}
