/* =========================================================
   Proscio — marketing site
   Palette is drawn from the hero photograph: summit navy from
   the sky, snow for surfaces, and the Proscio signal orange
   (the skier's jacket) reserved for actions and state.
   ========================================================= */

:root {
  --navy: #0A2342;        /* summit navy — dark sections, headings */
  --navy-2: #12325C;      /* raised surfaces on navy */
  --ink: #0B1526;         /* body text on light */
  --slate: #4F5B6E;       /* secondary text on light (AA on white + snow) */
  --mist: #A9B6C9;        /* secondary text on navy */
  --snow: #F4F6F9;        /* alternate light surface */
  --white: #FFFFFF;
  --line: #DCE2EA;
  --line-dark: rgba(255, 255, 255, .14);
  --orange: #E85A2A;      /* brand signal — marks, meter, focus */
  --orange-ink: #C4411A;  /* orange that carries white text at AA */
  --orange-ink-2: #A8360F;

  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mark: 'Racing Sans One', 'Schibsted Grotesk', sans-serif;

  /* Modular scale, ratio ~1.25 from 17px body */
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.375rem, 1.1rem + .8vw, 1.625rem);
  --fs-xl: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-2xl: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 10vw, 152px);
  --header-h: 72px;
  --radius: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "tnum" 0;
  overflow-x: hidden;
}
html, body { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; color: inherit; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- type ---------- */
.h-display {
  font-size: var(--fs-2xl); line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
}
.h-section {
  font-size: var(--fs-xl); line-height: 1.06; letter-spacing: -.03em; font-weight: 700;
}
.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--slate); max-width: 38em; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lede { margin-top: 20px; }
.section-head--wide { max-width: 880px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-ink); }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }
.link-quiet { text-decoration: none; font-weight: 500; font-size: .9375rem; }
.link-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-strong { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-strong:hover { color: var(--orange-ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid {
  background: rgba(255,255,255,.96); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner {
  height: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.wordmark {
  font: 400 34px/1 var(--font-mark); color: var(--orange); letter-spacing: -.01em;
  text-decoration: none; padding-bottom: 4px;
}
.wordmark--lg { font-size: 53px; }
.primary-nav { display: flex; gap: 30px; margin-right: auto; }
.primary-nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; opacity: .88; }
.primary-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.nav-mobile-only { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-bars { top: 21px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy); color: var(--white); isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 30% 50%; }
/* Deepens the right-hand sky where the copy sits, and the top for the nav. */
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,35,66,.45) 0%, rgba(10,35,66,0) 22%),
    linear-gradient(90deg, rgba(10,35,66,0) 38%, rgba(10,35,66,.55) 100%);
}
.hero-inner {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) 96px;
  display: flex; justify-content: flex-end;
}
.hero-copy { width: min(100%, 600px); }
.hero h1 {
  font-size: clamp(2.625rem, 1.5rem + 3.9vw, 4.625rem); line-height: .98; letter-spacing: -.04em; font-weight: 800;
}
.hero h1 span { display: block; color: rgba(255,255,255,.72); }
.hero-lede { margin-top: 28px; font-size: var(--fs-md); line-height: 1.55; color: rgba(255,255,255,.88); max-width: 30em; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Single orchestrated entrance: the hero copy settles in on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .22s; }
  .hero-media img { animation: settle 1.6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }

/* ---------- functions strip (ticker) ---------- */
.functions-strip { border-bottom: 1px solid var(--line); overflow: hidden; }
.strip-inner { display: flex; align-items: center; gap: 24px; padding-block: 22px; flex-wrap: nowrap; }
.strip-label { flex: none; font-size: var(--fs-sm); color: var(--slate); white-space: nowrap; }

.ticker {
  flex: 1 1 auto; min-width: 0; position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.ticker-track {
  list-style: none; display: flex; flex-wrap: nowrap; gap: 40px;
  width: max-content; padding-left: 24px;
  animation: ticker-scroll var(--ticker-dur, 40s) linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li { flex: none; }
.ticker-track a {
  text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap; color: var(--ink);
  padding: 4px 0; display: inline-block;
}
.ticker-track a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 5px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--ticker-w, 50%))); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { mask-image: none; -webkit-mask-image: none; overflow-x: auto; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker-track { animation: none; padding-left: 0; }
}

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 112px); align-items: end; }
.split--top { align-items: start; grid-template-columns: .85fr 1.15fr; }
.split > div > .lede { margin-top: 28px; }

/* ---------- problem ---------- */
.regular-list h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--slate); margin-bottom: 18px; }
.regular-list ul { list-style: none; border-top: 1px solid var(--line); }
.regular-list li {
  padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500;
}
.regular-list li::before {
  content: ""; position: absolute; left: 2px; top: 25px; width: 16px; height: 2px; background: var(--orange);
}

/* ---------- how it works ---------- */
.how { background: var(--snow); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: none; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--navy); font-weight: 700; font-size: .9375rem; color: var(--navy);
}
.steps li:first-child .step-num { background: var(--navy); color: var(--white); }
.steps h3 { font-size: var(--fs-lg); letter-spacing: -.02em; margin: 40px 0 10px; }
.steps p { color: var(--slate); }

/* ---------- autonomy ladder (signature) ---------- */
.autonomy { background: var(--navy); color: var(--white); }
.autonomy .lede { color: var(--mist); }
.ladder { border-top: 1px solid var(--line-dark); }
.ladder-track { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; }
.ladder-stage {
  text-align: left; padding: 26px 20px 24px 0; position: relative;
  color: var(--mist); transition: color .2s ease;
  min-height: 48px;
}
.ladder-stage + .ladder-stage { padding-left: 20px; }
.ladder-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.ladder-stage:hover { color: var(--white); }
.ladder-stage[aria-selected="true"] { color: var(--white); }
.ladder-stage[aria-selected="true"]::before { transform: scaleX(1); }
.stage-index { display: block; font-size: var(--fs-sm); margin-bottom: 6px; opacity: .8; }
.stage-name { display: block; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

.ladder-meter { margin: 28px 0 52px; }
.meter-bar { height: 14px; border-radius: 7px; background: var(--navy-2); overflow: hidden; }
.meter-fill {
  display: block; height: 100%; width: var(--share, 4%); background: var(--orange); border-radius: 7px;
  transition: width .7s var(--ease);
}
.meter-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: var(--fs-sm); color: var(--mist); }

.stage-panel h3 { font-size: var(--fs-xl); line-height: 1.08; letter-spacing: -.03em; max-width: 20ch; }
.stage-grid { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stage-grid div { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.stage-grid dt { font-size: var(--fs-sm); font-weight: 600; color: #F58A5E; margin-bottom: 8px; }
.stage-grid dd { margin: 0; color: #DCE4EF; font-size: var(--fs-base); }
.js .stage-panel[hidden], .js .sol-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .stage-panel:not([hidden]), .js .sol-panel:not([hidden]) { animation: fade .45s ease both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Without JS every stage is readable in sequence. */
html:not(.js) .stage-panel + .stage-panel { margin-top: 64px; }

/* ---------- solutions ---------- */
.sol { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sol-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sol-tabs button {
  text-align: left; padding: 15px 0 15px 18px; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--slate); position: relative; transition: color .2s;
}
.sol-tabs button::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px;
  background: var(--orange); transform: scaleY(0); transition: transform .3s var(--ease);
}
.sol-tabs button:hover { color: var(--ink); }
.sol-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.sol-tabs button[aria-selected="true"]::before { transform: scaleY(1); }

.sol-panel {
  background: var(--snow); border-radius: 16px; padding: clamp(28px, 4vw, 52px);
}
html:not(.js) .sol-panel + .sol-panel { margin-top: 20px; }
.sol-panel h3 { font-size: var(--fs-xl); line-height: 1.05; letter-spacing: -.03em; }
.sol-panel > p { margin-top: 18px; color: var(--slate); font-size: var(--fs-md); max-width: 34em; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 32px; counter-reset: step; }
.flow li {
  counter-increment: step; display: inline-flex; align-items: center; font-weight: 500; font-size: .9375rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 8px;
}
.flow li::before {
  content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 700; margin-right: 9px;
}
.human-role { padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate); }
.human-role strong { color: var(--ink); font-weight: 600; }

/* ---------- governance ---------- */
.governance { background: var(--snow); }
.gov-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.gov-list li { border-top: 2px solid var(--navy); padding-top: 20px; }
.gov-list h3 { font-size: var(--fs-md); letter-spacing: -.015em; margin-bottom: 8px; }
.gov-list p { color: var(--slate); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 36px 32px 32px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--white);
}
.plan h3 { font-size: var(--fs-md); letter-spacing: -.01em; }
.plan-price { margin: 18px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.plan-price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--slate); font-size: var(--fs-sm); }
.plan-desc { color: var(--slate); min-height: 4.8em; }
.plan-features { list-style: none; margin: 26px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-features li { padding-left: 28px; position: relative; }
.plan-features li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--orange-ink); border-bottom: 2px solid var(--orange-ink); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured { background: var(--navy); color: var(--white); border-color: var(--navy); }
.plan--featured .plan-price .per, .plan--featured .plan-desc { color: var(--mist); }
.plan--featured .plan-features { border-color: var(--line-dark); }
.plan--featured .plan-features li::before { border-color: var(--orange); }
.plan-flag {
  font-size: var(--fs-sm); font-weight: 600; color: var(--white);
  margin: auto 0 12px; text-align: center;
}
.plan-flag + .btn { margin-top: 0; }
.feat-mark { color: var(--orange); font-weight: 700; }

/* Info popover on credits line */
.plan-features li { position: relative; }
.info-btn {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: transparent; color: var(--slate);
  vertical-align: -3px; margin-left: 4px; padding: 0;
  cursor: pointer; opacity: .85; transition: opacity .15s, color .15s;
}
.info-btn svg { display: block; }
.info-btn:hover, .info-btn:focus-visible { opacity: 1; color: var(--orange-ink); }
.plan--featured .info-btn { color: var(--mist); }
.plan--featured .info-btn:hover, .plan--featured .info-btn:focus-visible { color: var(--white); }

.info-pop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;
  width: min(320px, calc(100vw - 48px));
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10,35,66,.18), 0 2px 6px rgba(10,35,66,.08);
  padding: 14px 16px; font-size: .875rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s var(--ease), visibility 0s linear .18s;
  pointer-events: none;
}
.info-pop::before {
  content: ""; position: absolute; left: 14px; top: -7px;
  width: 12px; height: 12px; background: var(--white);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.info-pop-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; font-weight: 700; color: var(--slate);
  text-transform: none; letter-spacing: 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.info-pop ul { list-style: none; margin: 6px 0 0; padding: 0; }
.info-pop li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--ink);
}
.info-pop li:last-child { border-bottom: 0; }
.info-pop li::before { content: none; display: none; }
.info-pop li span:first-child { padding-left: 0; }
.info-pop li span:last-child { color: var(--slate); font-variant-numeric: tabular-nums; }

.info-btn:hover + .info-pop,
.info-btn:focus-visible + .info-pop,
.info-btn[aria-expanded="true"] + .info-pop,
.info-pop:hover {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition-delay: 0s;
}

@media (max-width: 600px) {
  .info-pop {
    position: fixed; top: 50%; left: 50%; right: auto;
    transform: translate(-50%, -46%);
    width: min(340px, calc(100vw - 32px));
    max-height: min(80vh, 560px); overflow-y: auto;
    padding: 18px 20px; z-index: 200;
    box-shadow: 0 24px 64px rgba(10,35,66,.28), 0 4px 12px rgba(10,35,66,.16);
  }
  .info-pop::before { display: none; }
  .info-btn:hover + .info-pop,
  .info-btn:focus-visible + .info-pop,
  .info-btn[aria-expanded="true"] + .info-pop,
  .info-pop:hover {
    transform: translate(-50%, -50%);
  }
  .info-backdrop {
    position: fixed; inset: 0; background: rgba(10,35,66,.5);
    z-index: 150; opacity: 0; visibility: hidden;
    transition: opacity .18s ease, visibility 0s linear .18s;
  }
  body.info-open .info-backdrop {
    opacity: 1; visibility: visible; transition-delay: 0s;
  }
}
.plan-position {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 12px;
}
.plan--featured .plan-position { color: #F58A5E; }

/* ---------- FAQ ---------- */
.faq { background: var(--snow); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: var(--fs-md); font-weight: 600; letter-spacing: -.01em;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; color: var(--slate); max-width: 40em; }

/* ---------- CTA ---------- */
.cta-inner { max-width: 980px; }
.cta .lede { margin-top: 28px; }
.cta-actions { margin-top: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); padding: 80px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 64px; }
.footer-brand p { margin-top: 10px; }
.footer-brand .pronounce { margin-top: 6px; font-size: var(--fs-sm); color: #8193AC; }
.footer-brand p:last-child { color: var(--white); margin-top: 22px; font-size: var(--fs-md); line-height: 1.4; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--white); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-base { border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: var(--fs-sm); }

/* ---------- responsive ---------- */

/* Tablet landscape and small laptop */
@media (max-width: 1080px) {
  .primary-nav { gap: 22px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .plans { grid-template-columns: 1fr; gap: 24px; max-width: 560px; margin-inline: auto; }
  .plan-desc { min-height: 0; }
  .plan:not(.plan--featured) h3 { margin-top: 0; }
  .sol { grid-template-columns: 260px 1fr; gap: 40px; }
  .stage-grid { gap: 24px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .section-head { margin-bottom: clamp(36px, 6vw, 64px); }

  .menu-toggle { display: block; }
  .header-actions .link-quiet { display: none; }
  .header-actions { order: 2; margin-left: auto; gap: 12px; }
  .menu-toggle { order: 3; margin-left: 4px; }
  .header-inner { gap: 16px; }
  .primary-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--white); color: var(--ink); padding: 8px var(--gutter) 24px;
    box-shadow: 0 16px 32px rgba(10,35,66,.12); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; opacity: 1; min-height: 48px; display: flex; align-items: center; }
  .nav-mobile-only { display: flex; border-bottom: 0 !important; }
  .nav-mobile-cta {
    margin-top: 16px; background: var(--orange); color: var(--white) !important;
    border-radius: var(--radius); justify-content: center; font-weight: 600;
  }
  .nav-mobile-cta:hover { background: var(--orange-ink); }
  .menu-open .primary-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu-open .site-header { background: var(--white); color: var(--ink); }

  /* Stack on small screens: photo on top, copy on navy below, so the
     skier and the headline never compete for the same pixels. */
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; display: block; height: 56vw; min-height: 300px; max-height: 480px; }
  .hero-media img { object-position: 30% 40%; }
  .hero-shade {
    inset: 0 0 auto; height: max(300px, min(56vw, 480px));
    background: linear-gradient(180deg, rgba(10,35,66,.55) 0%, rgba(10,35,66,0) 30%, rgba(10,35,66,0) 70%, var(--navy) 100%);
  }
  .hero-inner { justify-content: flex-start; padding: 8px var(--gutter) 64px; }
  .hero h1 { font-size: clamp(2.125rem, 4.5vw + 1rem, 3.25rem); }

  .strip-inner { gap: 16px; padding-block: 18px; }
  .ticker-track { gap: 28px; padding-left: 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }

  .ladder-track { grid-template-columns: repeat(2, 1fr); }
  .ladder-stage, .ladder-stage + .ladder-stage { padding: 20px 16px 18px 0; min-height: 64px; }
  .ladder-stage:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .stage-grid { grid-template-columns: 1fr; gap: 20px; }
  .stage-panel h3 { max-width: none; }

  .sol { grid-template-columns: 1fr; }
  .sol-tabs {
    flex-direction: row; overflow-x: auto; gap: 8px; border-top: 0; padding-bottom: 4px;
    scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .sol-tabs::-webkit-scrollbar { display: none; }
  .sol-tabs button {
    flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; white-space: nowrap;
    min-height: 40px;
  }
  .sol-tabs button::before { display: none; }
  .sol-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .flow { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }

  .gov-list { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { flex-direction: column; gap: 40px; padding-bottom: 40px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, auto)); gap: 14px 40px; }
}

/* Small mobile */
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .steps h3 { margin-top: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .header-actions .btn { display: none; }
  .menu-open .header-actions .btn { display: none; }
  .ladder-meter { margin-bottom: 32px; }

  .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-lede { margin-top: 20px; }

  .h-display { font-size: clamp(1.875rem, 7vw, 2.5rem); }
  .h-section { font-size: clamp(1.625rem, 6vw, 2.125rem); }
  .lede { font-size: 1.0625rem; }

  .wordmark { font-size: 29px; }

  .regular-list li { padding-left: 28px; }
  .regular-list li::before { top: 24px; width: 14px; }

  .sol-panel { padding: 24px 20px; border-radius: 12px; }
  .sol-panel h3 { font-size: clamp(1.5rem, 5vw, 1.875rem); }
  .sol-panel > p { font-size: 1rem; margin-top: 14px; }
  .flow { margin: 24px 0 24px; }

  .plan { padding: 28px 24px 28px; }
  .plan-price .amount { font-size: 2.5rem; }

  .faq summary { padding: 20px 40px 20px 0; font-size: 1.0625rem; }
  .faq details p { padding-right: 0; padding-bottom: 22px; }

  .cta-actions { gap: 16px 24px; }
  .cta-actions .btn { width: 100%; }
  .cta-actions .link-strong { width: 100%; text-align: center; }

  .site-footer { padding-top: 56px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .footer-nav a { padding: 6px 0; min-height: 40px; display: flex; align-items: center; }
  .footer-brand .wordmark--lg { font-size: 43px; }

  .ladder-track { grid-template-columns: 1fr 1fr; }
  .ladder-stage { padding: 16px 12px 14px 0; }
  .ladder-stage + .ladder-stage { padding-left: 12px; }
  .stage-name { font-size: 1.125rem; }

  .meter-legend { font-size: .8125rem; gap: 12px; }
}

/* Very narrow (small phones ~360px and below) */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .wordmark { font-size: 26px; }
  .btn-sm { padding: 8px 12px; font-size: .875rem; }
  .plan-price .amount { font-size: 2.25rem; }
  .ticker-track { gap: 22px; padding-left: 12px; }
}

/* Tablets and larger phones in landscape: make sure hero stays legible */
@media (min-width: 601px) and (max-width: 900px) and (orientation: landscape) {
  .hero-media { height: 45vw; min-height: 260px; }
}

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