/* Homepage (Round 8, approved by K 2026-11-19; live update 2026-11-21).
   Loaded after site.css, on the homepage only. Sources: the Redesign Mocks artifact,
   r4.css -> r8.css, keeping only what this page uses: Glacier colors, fir trees,
   the stats band, the 5-step climb, the next-step band, the business-type picker,
   the split footer, the Get started pop-up (light blue) and blue Get started buttons.
   Meaning never rests on color alone: steps are numbered, the summit has a shape. */

/* Stats band (r4) */
.stats { background: var(--navy); color: #C9D6EA; padding: 64px 0; position: relative; }
.stats h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); font-weight: 800; max-width: 22em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.stat b { display: block; font: 800 44px/1 var(--head); color: #fff; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; font-size: 15px; }
.stats .src { margin-top: 24px; font-size: 13px; color: #8FA3C0; }
.stats .src a { color: #C9D6EA; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b { font-size: 36px; } }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.cta-band p { margin: 8px auto 20px; max-width: 32em; }
.svc .row-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.svc .row-btns .learn { margin-top: 0; }
.svc .incl { font-size: 14px; color: var(--muted); margin: -6px 0 16px; }

/* "Get started" pop-up: the same form as the homepage */
.start-dialog { margin: auto; border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  box-shadow: 0 30px 80px rgba(11,27,51,.3); }
.start-dialog::backdrop { background: rgba(11,27,51,.55); }
.start-dialog .sd-box { position: relative; padding: 28px 26px 22px; }
.start-dialog h2 { font-size: 24px; font-weight: 800; margin: 0 36px 16px 0; }
.start-dialog .sd-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--glacier); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; }
.start-dialog .talk { margin-top: 14px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .start-dialog[open] { animation: sd-in .22s ease-out; }
  @keyframes sd-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

:root {
  --blue: #2563EB; --blue-dark: #1D4ED8; --blue-soft: #E6EEFE; --sky: #A9CBFC;
  --navy-3: #1E3A63; --glacier: #EAF2F7; --line: #D6E2EC; --line-2: #BCCDDB; --muted: #566273;
}
body { background: var(--glacier); }
section { padding: 72px 0; }
.how, .ba-after { background: transparent; }
.ba-after { background: var(--glacier); }
nav { background: #fff; }
.firs { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; pointer-events: none; }
.btn { min-height: 46px; }

/* Buttons: darker, and always high contrast */
.btn-main { background: var(--navy); color: #fff; }
.btn-main:hover { background: var(--navy-3); }
.btn-line { border-color: var(--line-2); color: var(--navy); }

/* Links to a spot on a page stop below the sticky menu bar */
[id] { scroll-margin-top: 96px; }

/* Hero: one navy background with trees, the form as a white card beside the preview */
.r5-hero.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy) 55%, var(--navy-2)); padding: 56px 0 72px; }
.r5-hero .firs { height: 46%; }
.r5-hero h1 { color: #fff; }
.r5-hero h1 span { color: var(--sky); }
.r5-hero .mini-form { border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.r5-hero .ba { border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.r5-hero .ba-labels button, .r5-hero .ba-labels button.after { background: #fff; border-color: #fff; color: var(--navy); min-height: 40px; }
.r5-hero .example-note { color: #DCE7F3; margin-top: 10px; font-size: 14px; }
.r5-hero :focus-visible { outline-color: #fff; }
.r5-hero .mini-form :focus-visible { outline-color: var(--blue); }
.field input, .field select { border-color: var(--line-2); }

/* Panels */
.svc, .card, .why { border-color: var(--line); background: #fff; }
.svc.main { border-color: var(--line); box-shadow: none; }
.fcard .face.front { background: #fff; border-color: var(--line); }  /* front only: the back keeps its navy, or its white text disappears */
.svc-icon { background: var(--glacier); }
.svc-icon svg { stroke: var(--navy); }
.svc .tag, .card .pill { background: var(--glacier); color: var(--navy); }
.svc li::before { border-color: var(--navy); }
.learn { background: #fff; color: var(--navy); border-color: var(--line-2); }
.learn:hover, .learn[aria-expanded="true"] { background: var(--glacier); border-color: var(--navy); }



/* Stats: navy with trees */
.stats { overflow: hidden; background: var(--navy); }
.stats > .wrap { position: relative; z-index: 1; }
.stats .firs { height: 45%; }
.stats .src { color: #C9D6EA; }
.stats .src a { color: #fff; }

/* The climb, from the portal's "Where your website stands" */
.r5-climb { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 26px; }
.r5-chart { position: relative; height: 170px; margin-bottom: 14px; }
.r5-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.r5-stop { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 15px var(--head); box-shadow: 0 0 0 4px #fff; }
.r5-stop.top { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.r5-stop svg { position: static; width: 24px; height: 24px; fill: #fff; }
.r5-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.r5-steps li { counter-increment: st; text-align: center; min-width: 0; }
.r5-steps h3 { font-size: 16px; margin-bottom: 6px; }
.r5-steps p { font-size: 14.5px; line-height: 1.5; }

/* Closing band: the portal's "Your next step" */
.cta-band { text-align: left; }
.r5-next { position: relative; overflow: hidden; background: var(--navy); color: #DCE7F3; border-radius: 20px; padding: 34px 36px 42px; display: grid; gap: 12px; justify-items: start; }
.r5-next > * { position: relative; z-index: 1; }
.r5-next .firs { position: absolute; z-index: 0; height: 120px; }
.r5-eyebrow { display: flex; gap: 8px; align-items: center; font: 600 14px var(--body); letter-spacing: .02em; color: #F4B48D; }
.r5-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cta-band .r5-next h2 { color: #fff; }
.cta-band .r5-next p { margin: 0; color: #DCE7F3; }
.r5-next .btn-main { background: #fff; color: var(--navy); margin-top: 8px; }
.r5-next .btn-main:hover { background: var(--glacier); }
.r5-next :focus-visible { outline-color: #fff; }

footer { margin-top: 0; }

@media (max-width: 960px) {
  /* Below this width the climb is a numbered list on a line, like the portal on phones */
  .r5-chart { display: none; }
  .r5-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .r5-steps li { position: relative; text-align: left; padding: 0 0 20px 50px; }
  .r5-steps li:last-child { padding-bottom: 0; }
  .r5-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 15px var(--head); }
  .r5-steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line-2); }
  .r5-steps h3 { padding-top: 5px; }
}
@media (max-width: 760px) {
  section { padding: 52px 0; }
  .r5-next { padding: 26px 20px 34px; }
  .r5-climb { padding: 20px 16px; }
  .wrap { padding: 0 16px; }
}

body { background: var(--page); }
.btn-main { background: var(--btn); color: #fff; }
.btn-main:hover { background: var(--btn-hover); }

/* Hero */
.r5-hero.hero { background: var(--hero); padding: 56px 0 80px; }
.r5-hero > .wrap { position: relative; z-index: 2; }
.r5-hero h1 { color: var(--navy); font-size: clamp(36px, 4.4vw, 58px); }
.r5-hero h1 span { color: var(--h1-accent); }
.r5-hero .firs, .r5-hero .firs { z-index: 1; }
/* Trees keep their pointed tops: full width at their own shape, then scaled down from the bottom edge */
.r5-hero .firs, .r5-next .firs, .stats .firs { height: auto; aspect-ratio: 5 / 1; transform-origin: bottom; }
.r5-hero .firs { min-height: 240px; transform: scaleY(.85); }
.r5-next .firs { min-height: 200px; transform: scaleY(.42); }
.stats .firs { min-height: 220px; transform: scaleY(.5); }
.firs path:nth-child(1) { fill: var(--fir-back); opacity: 1; }
.firs path:nth-child(2) { fill: var(--fir-front); opacity: 1; }
.r5-hero .firs { height: 40%; }
.r5-hero .mini-form { border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(11, 27, 51, .1); max-width: none; }
.r5-hero .ba { border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(11, 27, 51, .12); }
.r5-hero .ba-labels button { background: #fff; border-color: var(--line-2); color: var(--navy); }
.r5-hero .ba-labels button.after { background: var(--navy); border-color: var(--navy); color: #fff; }
.r5-hero .example-note { color: var(--text); }
.r5-hero :focus-visible, .r5-hero .mini-form :focus-visible { outline-color: var(--blue-dark); }
.r5-hero .hero-left { display: contents; }
.hero h1 + .mini-form { margin-top: 0; }
@media (min-width: 961px) {
  .r5-hero .hero-grid { gap: 28px 56px; align-items: start; }
  .r5-hero h1 { grid-area: h; }
  .r5-hero .mini-form { grid-area: f; }
  .r5-hero .stage { grid-area: s; }
}


/* Stats */
.stats { background: var(--stats-bg); color: var(--stats-fg); }
.stats h2, .stat b { color: var(--stats-num); }
.stats .src { color: var(--stats-fg); }
.stats .src a { color: var(--stats-num); }
.stats .firs { display: var(--stats-firs, none); }

/* Steps and closing band */
.r5-stop { background: var(--stop); }
.r5-steps li::before { background: var(--stop); }
.r5-chart polyline { stroke: var(--stop); }
.r5-next { background: var(--next-bg); color: var(--next-fg); border: 1px solid var(--next-line, transparent); }
.cta-band .r5-next h2 { color: var(--next-h); }
.cta-band .r5-next p { color: var(--next-fg); }
.r5-eyebrow { color: var(--next-eyebrow); }
.r5-next .btn-main { background: var(--next-btn); color: var(--next-btn-fg); }
.r5-next .btn-main:hover { background: var(--next-btn-hover); }
.r5-next :focus-visible { outline-color: var(--next-focus, var(--blue-dark)); }
.r5-next .firs path:nth-child(1) { fill: var(--next-fir-back); }
.r5-next .firs path:nth-child(2) { fill: var(--next-fir-front); }

/* ── A. Glacier: the live site's colors. Form left, preview right. One navy moment at the end. ── */
.v-glacier {
  --page: #EAF2F7; --hero: linear-gradient(180deg, #fff 0%, #EAF2F7 100%); --h1-accent: #2D5F8B; --link: #1D4ED8; --eyebrow: #234C70;
  --btn: #0B1B33; --btn-hover: #1E3A63; --fir-back: #D6E5EF; --fir-front: #C3D8E6; --stop: #0B1B33;
  --stats-bg: #fff; --stats-fg: #3D4A5C; --stats-num: #0B1B33;
  --next-bg: #0B1B33; --next-fg: #DCE7F3; --next-h: #fff; --next-eyebrow: #F4B48D; --next-btn: #fff; --next-btn-fg: #0B1B33; --next-btn-hover: #EAF2F7; --next-focus: #fff; --next-fir-back: #142A4C; --next-fir-front: #1E3A63;
}
@media (min-width: 961px) { .v-glacier .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "h s" "f s"; } .v-glacier .stage { align-self: center; } }
@media (max-width: 960px) {
  .r5-hero .stage { margin: 20px 0 28px; }
  .r5-hero h1 { font-size: 36px; }
}

/* Business-type picker: the old "Who we work with" strip becomes the tabs */
.r8-types-sub { margin-top: -6px; }
.r8-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.r8-chips button { font: 600 15px var(--body, system-ui); padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-2, #CBD5E1); background: #fff; color: var(--navy); cursor: pointer; }
.r8-chips button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.r8-chips button:focus-visible { outline: 3px solid var(--blue-dark, #1D4ED8); outline-offset: 2px; }
.r8-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.r8-feats.full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r8-feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.r8-feat h3 { font-size: 16px; margin-bottom: 4px; }
.r8-feat p { font-size: 14.5px; }
.r8-basics { margin-top: 14px; font-size: 15px; }
.r8-basics b { color: var(--navy); }
@media (max-width: 760px) { .r8-feats, .r8-feats.full { grid-template-columns: 1fr; } }

/* Split footer: pages | contact */
.r8-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.r8-foot h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 10px; color: inherit; }
.r8-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (max-width: 760px) { .r8-foot { grid-template-columns: 1fr; gap: 22px; } }

/* K's notes (2026-11-18): the pop-up was hard to read and Get started needed a new color.
   Field outlines go from 1.4:1 to 4.8:1 contrast. Get started is blue (K, 2026-11-21),
   the pop-up light blue (K, 2026-11-21). */
.field input, .field select, .start-dialog input, .start-dialog select { border: 1.5px solid #64748B; }
.field label { color: #0B1B33; font-weight: 600; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 1px; }
.start-dialog::backdrop { background: rgba(11, 27, 51, .72); }
:root { --cta: #1D4ED8; --cta-hover: #1E40AF; --cta-fg: #fff; }
nav .nav-links .btn-main, .lead button[type=submit], .fcard .back .btn-main[href="#start"] { background: var(--cta); color: var(--cta-fg); border-color: var(--cta); }
nav .nav-links .btn-main:hover, .lead button[type=submit]:hover, .fcard .back .btn-main[href="#start"]:hover { background: var(--cta-hover); }
.start-dialog { background: #EAF2F7; }
.start-dialog .sd-close { background: #fff; }
.start-dialog .field input, .start-dialog .field select { background: #fff; }
.start-dialog .talk { color: #0B1B33; }
.types-bg { background: var(--glacier); }
/* The climb's stops and step count, as classes (the security policy allows no inline styles) */
.r5-climb { --n: 5; }
.r5-stop.s1 { left: 10%; top: 84%; } .r5-stop.s2 { left: 30%; top: 66%; } .r5-stop.s3 { left: 50%; top: 48%; }
.r5-stop.s4 { left: 70%; top: 30%; } .r5-stop.s5 { left: 90%; top: 12%; }
.r5-chart .climb-fill { fill: var(--glacier); }
