/* Summit Direct Marketing — redesign.
 * Keeps the brand (Libre Baskerville + Almarai, the mountain photo, the glacier blue) and adds
 * one signature element: "the trail", a climbing route of steps from first hire to market share.
 * Trail-blaze yellow is used only for the main call to action and the summit marker. */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/fonts/almarai-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/fonts/almarai-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/fonts/almarai-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("/fonts/almarai-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ridge: #16243a;      /* deep slate blue: text, dark sections */
  --ridge-2: #1f3150;
  --snow: #f3f5f7;       /* page background */
  --glacier: #8eb6dc;    /* the original brand blue */
  --glacier-soft: #dfe9f4;
  --slate: #566273;      /* secondary text */
  --blaze: #f4c542;      /* trail-blaze yellow: main buttons + summit only */
  --white: #fff;
  --line: rgba(22, 36, 58, .14);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Almarai", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(20px, 5vw);
  --max: 1240px;
  --header-h: 84px;
  --t-display: clamp(42px, 6.2vw, 92px);
  --t-h2: clamp(32px, 3.5vw, 52px);
  --t-h3: clamp(21px, 1.6vw, 25px);
  --t-lead: clamp(18px, 1.35vw, 21px);
  --sec: clamp(72px, 9vw, 136px);   /* vertical section padding */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--snow); color: var(--ridge); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.t-display { font-size: var(--t-display); line-height: 1.02; }
.t-h2 { font-size: var(--t-h2); line-height: 1.1; }
.lead { font-size: var(--t-lead); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
[id] { scroll-margin-top: 24px; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.site-header.overlay { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.mark { width: 34px; height: 26px; flex: none; overflow: visible; }
.mark polyline { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.mark circle { fill: var(--blaze); }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: var(--glacier); }
.menu-btn { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border: 0; border-radius: 4px; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn-blaze { background: var(--blaze); color: var(--ridge); }
.btn-blaze:hover { background: #ffd65c; }
.btn-dark { background: var(--ridge); color: #fff; }
.btn-dark:hover { background: var(--ridge-2); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Home hero: a territory being walked, door by door ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: #13203a; min-height: clamp(600px, 100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--header-h); }
.territory { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-streets line { stroke: #1d2f4e; stroke-width: 9; stroke-linecap: round; }
.t-houses rect { fill: #263b5f; }
.t-route { fill: none; stroke: var(--glacier); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.t-knock { fill: var(--glacier); }
.t-won { fill: var(--blaze); }
/* Finale: the walk climbs into a summit. These are the end states; the animation below plays into them. */
.t-wrap { opacity: .5; }
.t-ridge { fill: none; stroke: #fff; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.t-flag line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.t-flag path { fill: var(--blaze); }
.t-peak { fill: var(--blaze); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(15, 26, 43, .96) 0%, rgba(15, 26, 43, .8) 34%, rgba(15, 26, 43, 0) 62%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 9.5em; }
.hero-sub { font-size: var(--t-lead); line-height: 1.5; max-width: 28em; margin: 22px 0 34px; color: rgba(255, 255, 255, .85); }
.hero-legend { display: flex; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero-legend li { display: flex; align-items: center; gap: 8px; }
.hero-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--glacier); }
.hero-legend .won i { background: var(--blaze); width: 11px; height: 11px; }
.hero-proof { position: relative; z-index: 2; }
.hero-proof p { margin: 0; padding: 20px 0 24px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; color: rgba(255, 255, 255, .72); }
@media (prefers-reduced-motion: no-preference) {
  .t-wrap { animation: settle 1s ease 7.4s both; }
  .t-ridge { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: walk 2s cubic-bezier(.45, 0, .25, 1) 7.4s forwards; }
  .t-snow { animation: fadein 1.2s ease 8.9s both; }
  .t-peak { transform-box: fill-box; transform-origin: center; animation: door .6s cubic-bezier(.3, 1.8, .5, 1) 9.15s both; }
  .t-flag { transform-box: fill-box; transform-origin: 0 100%; animation: raise .7s cubic-bezier(.3, 1.4, .5, 1) 9.45s both; }
  @keyframes settle { from { opacity: 1; } to { opacity: .5; } }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes raise { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
  .t-route { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: walk 7s linear .4s forwards; }
  .t-door { opacity: 0; transform-box: fill-box; transform-origin: center; animation: door .45s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(var(--d, 0s) + .4s); }
  @keyframes walk { to { stroke-dashoffset: 0; } }
  @keyframes door { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
}

/* ---------- Home: two paths (brands / reps) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; }
.path { padding: var(--sec) var(--gutter); }
.path .lead { margin: 18px 0 26px; max-width: 26em; }
.path-brands { background: var(--ridge); color: #fff; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.path-brands .lead { color: rgba(255, 255, 255, .85); }
.path-reps { background: var(--glacier-soft); padding: 0; }
.path-body { padding: var(--sec) max(var(--gutter), calc((100vw - var(--max)) / 2)) var(--sec) var(--gutter); }
.ticks { list-style: none; margin: 0 0 32px; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.path-brands .ticks li { border-top-color: rgba(255, 255, 255, .16); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 12px; border-radius: 1px; background: var(--ridge); opacity: .85; }
.path-brands .ticks li::before { background: var(--blaze); opacity: 1; }

/* ---------- The trail (how it works) ---------- */
.how { padding: var(--sec) 0; }
.how-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.how-head .lead { margin: 0; color: var(--slate); }
.trail { --rise: clamp(36px, 4.4vw, 64px); list-style: none; margin: 0; padding: calc(var(--rise) * 3) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.trail .wp { position: relative; z-index: 1; padding-top: 72px; }
.trail .wp:nth-of-type(2) { margin-top: calc(var(--rise) * -1); }
.trail .wp:nth-of-type(3) { margin-top: calc(var(--rise) * -2); }
.trail .wp:nth-of-type(4) { margin-top: calc(var(--rise) * -3); }
.wp-n { position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--snow); color: var(--ridge); box-shadow: inset 0 0 0 1.5px var(--ridge); font: 400 19px/1 var(--serif); }
.wp-top .wp-n { background: var(--blaze); box-shadow: none; }
.wp-n svg { width: 22px; height: 22px; fill: var(--ridge); }
.wp h3 { font-size: var(--t-h3); line-height: 1.2; margin-bottom: 8px; }
.wp p { margin: 0; color: var(--slate); max-width: 22em; }
.trail-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.trail-path path { fill: none; stroke: var(--ridge); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 9; opacity: .55; }
.how-dark { background: var(--ridge); color: #fff; }
.how-dark .wp-n { background: var(--ridge); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.how-dark .wp-top .wp-n { background: var(--blaze); color: var(--ridge); box-shadow: none; }
.how-dark .wp p, .how-dark .how-head .lead { color: rgba(255, 255, 255, .75); }
.how-dark .trail-path path { stroke: var(--glacier); opacity: .8; }

/* ---------- Home: real team photos (hidden until the owners upload some) ---------- */
.team { padding: var(--sec) 0; background: var(--white); }
.team-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.team-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* ---------- Home: founders ---------- */
.founders { padding: var(--sec) 0; }
.founder-grid { display: grid; gap: clamp(48px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); }
.founder { display: grid; grid-template-columns: 4fr 7fr; grid-template-rows: auto auto 1fr; gap: 0 clamp(28px, 5vw, 80px); align-items: start; }
.founder > :not(.founder-photo) { grid-column: 2; }
.founder-photo { grid-column: 1; grid-row: 1 / span 3; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; background: var(--glacier-soft); border-radius: 4px; }
.founder h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0; margin: 4px 0 14px; }
.founder blockquote { margin: 0 0 22px; font: 400 clamp(24px, 2.4vw, 36px)/1.3 var(--serif); letter-spacing: -0.015em; max-width: 20em; }
.founder .bio { max-width: 40em; }
.bio-more summary { cursor: pointer; display: inline-block; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--glacier); text-decoration-thickness: 2px; list-style: none; }
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after { content: " +"; }
.bio-more[open] summary::after { content: " −"; }
.bio { margin-top: 18px; color: var(--slate); }
.bio p { line-height: 1.7; }

/* ---------- Call to action + forms ---------- */
.cta { padding: var(--sec) 0; background: var(--ridge); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta .lead { margin: 18px 0 0; color: rgba(255, 255, 255, .85); max-width: 22em; }
.cta-alt { margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.proof-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 15px; color: rgba(255, 255, 255, .75); max-width: 26em; }
.cta-light { background: var(--glacier-soft); color: var(--ridge); }
.cta-light .lead { color: var(--ridge); }
.cta-light .proof-note { color: var(--slate); border-top-color: var(--line); }

.panel { background: var(--white); color: var(--ridge); border-radius: 6px; padding: clamp(24px, 3vw, 40px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .lbl { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.form .opt { font-weight: 400; color: var(--slate); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .form select {
  display: block; width: 100%; height: 48px; padding: 10px 14px;
  background: var(--snow); color: var(--ridge); border: 1px solid rgba(22, 36, 58, .22); border-radius: 6px;
  font: 400 16px/1.4 var(--sans); transition: border-color .15s, background-color .15s;
}
.form textarea { height: 120px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316243a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--ridge); background-color: #fff; box-shadow: 0 0 0 3px rgba(142, 182, 220, .55); }
.form .check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ridge); }
.form button[type=submit] { align-self: flex-start; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; margin: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: #0b6b34; font-weight: 700; }
.form-status.err { color: #a11a1a; }
.file-field[hidden] { display: none; }
.form input[type=file] { width: 100%; font: inherit; font-size: 15px; border: 1px dashed rgba(22, 36, 58, .4); border-radius: 6px; padding: 10px 12px; background: var(--snow); cursor: pointer; }
.form input[type=file]::file-selector-button { font: 700 14px var(--sans); background: var(--ridge); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; }
.turnstile-slot:empty { display: none; }

/* ---------- Partner / Careers page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 var(--sec); }
.page-hero-inner { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero h1 { font-size: clamp(40px, 5.2vw, 78px); }
.page-hero .intro { font-size: var(--t-lead); line-height: 1.5; margin: 24px 0 32px; max-width: 30em; color: var(--slate); }
.page-hero .intro p { margin: 0 0 12px; }
.page-hero .intro p:last-child { color: var(--ridge); }
.page-hero-img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; object-position: 72% 50%; border-radius: 4px; background: #13203a; }

/* What you get (Partner) */
.gets { padding: 0 0 var(--sec); }
.gets-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin: clamp(28px, 4vw, 48px) 0 0; }
.gets-list > div { border-top: 2px solid var(--ridge); padding-top: 20px; }
.gets-list dt { font: 400 var(--t-h3)/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 10px; }
.gets-list dd { margin: 0; color: var(--slate); }

/* Perks (Careers) */
.perks { padding: 0 0 var(--sec); }
.perks-inner { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 80px); }
.perk-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.perk-list li { font: 400 clamp(22px, 2.2vw, 32px)/1.25 var(--serif); letter-spacing: -0.015em; padding: 18px 0; border-top: 1px solid var(--line); }
.perk-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Open positions (Careers; only shown when jobs are posted) ---------- */
.openings { padding: 0 0 var(--sec); }
.openings[hidden] { display: none; }
.openings .jobs { margin-top: clamp(24px, 3vw, 40px); }
.job { border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.job summary::-webkit-details-marker { display: none; }
.job-title { font: 400 var(--t-h3)/1.25 var(--serif); letter-spacing: -0.01em; }
.job-meta { font-size: 15px; color: var(--slate); }
.job-toggle { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.job-toggle::before, .job-toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; transition: transform .2s; }
.job-toggle::after { transform: rotate(90deg); }
.job[open] .job-toggle::after { transform: rotate(0); }
.job-body { padding: 0 0 24px; max-width: 46em; color: var(--slate); }
.job-apply { height: 46px; font-size: 15px; padding: 0 22px; background: var(--ridge); color: #fff; margin-top: 4px; }

/* ---------- Optional proof sections (each appears only once filled in from the admin) ---------- */
.proof { padding: clamp(48px, 6vw, 88px) 0; border-bottom: 1px solid var(--line); }
.proof-top { padding-top: 0; border-bottom: 0; }
.proof .wrap > * + * { margin-top: clamp(36px, 4vw, 56px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.stat { border-left: 2px solid var(--blaze); padding-left: 18px; }
.stat-n { display: block; font: 400 clamp(36px, 4.2vw, 60px)/1 var(--serif); letter-spacing: -0.02em; }
.stat-l { display: block; margin-top: 10px; color: var(--slate); }
.logo-label { margin: 0 0 18px; color: var(--slate); font-size: 15px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px clamp(32px, 5vw, 64px); }
.logos img { max-height: 44px; max-width: 160px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }
.markets { margin: -16px 0 28px; font-size: 15px; color: var(--slate); }
.actions + .markets { margin: 22px 0 0; }
.markets span:first-child { font-weight: 700; color: var(--ridge); }

.voices { padding: var(--sec) 0; background: var(--white); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); }
.quote { margin: 0; padding-top: 22px; border-top: 2px solid var(--glacier); }
.quote blockquote { margin: 0; font: 400 clamp(19px, 1.6vw, 23px)/1.45 var(--serif); letter-spacing: -0.01em; }
.quote blockquote p { margin: 0 0 10px; }
.quote figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }

.faq { padding: var(--sec) 0; }
.faq-inner { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 400 var(--t-h3)/1.3 var(--serif); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 2px; background: currentColor; transition: transform .2s; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-a { padding: 0 0 22px; color: var(--slate); max-width: 44em; }
.faq-a p { margin: 0 0 10px; }

/* Screening questions (Careers; admin → Settings) */
.screening { border: 0; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.screening[hidden] { display: none; }
.screening legend { font: 400 19px/1.3 var(--serif); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px solid rgba(22, 36, 58, .22); border-radius: 6px; background: var(--snow); cursor: pointer; font-size: 16px; }
.seg input { accent-color: var(--ridge); margin: 0; }
.seg label:has(input:checked) { border-color: var(--ridge); background: #fff; box-shadow: inset 0 0 0 1px var(--ridge); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(142, 182, 220, .55); }

/* Thank-you message after a form is sent */
.thanks[hidden], .form[hidden] { display: none; }
.thanks { outline: none; }
.thanks-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; margin-bottom: 12px; }
.thanks p { color: var(--slate); margin-bottom: 22px; }
.thanks p:last-child { margin-bottom: 0; }
.cta .btn-line { color: #fff; }
.cta-light .btn-line, .page-hero .btn-line { color: var(--ridge); }
.page-hero .btn-line:hover, .cta-light .btn-line:hover { background: rgba(22, 36, 58, .06); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1a2b; color: rgba(255, 255, 255, .85); padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px; align-items: start; }
.site-footer .name { font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--serif); letter-spacing: -0.02em; color: #fff; margin: 0 0 10px; }
.site-footer .tagline { margin: 0; max-width: 24em; color: rgba(255, 255, 255, .65); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; width: fit-content; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { text-align: right; }
.site-footer .email { font: 400 clamp(18px, 1.6vw, 22px)/1.3 var(--serif); color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.site-footer .email:hover { text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 14px; justify-content: flex-end; margin-top: 14px; }
.social a { display: inline-flex; color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social a[href="#"], .social a[href=""] { display: none; }
.footer-bottom { margin-top: clamp(40px, 5vw, 72px); font-size: 14px; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ridge); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ridge); outline-offset: 3px; }
.hero :focus-visible, .site-header.overlay :focus-visible, .path-brands :focus-visible, .cta:not(.cta-light) .cta-text :focus-visible, .how-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--blaze); }

/* ---------- Announcement bar (admin → Settings; hidden unless turned on) ---------- */
.announce { background: var(--blaze); color: var(--ridge); text-align: center; font-size: 15px; font-weight: 700; line-height: 1.4; padding: 11px var(--gutter); position: relative; z-index: 30; }
.announce a { color: inherit; text-decoration: none; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.has-announce .site-header { top: var(--announce-h, 42px); }

/* ---------- Privacy / 404 ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) 100px; }
.legal h1 { margin-bottom: 10px; }
.legal .updated { color: var(--slate); margin: 0 0 36px; }
.notfound { padding: calc(var(--header-h) + clamp(40px, 7vw, 100px)) var(--gutter) clamp(60px, 9vw, 130px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.notfound .eyebrow { font-size: 15px; color: var(--slate); margin: 0 0 10px; }
.notfound h1 { margin-bottom: 20px; }
.notfound-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn-black { background: var(--ridge); color: #fff; }
.btn-outline { background: transparent; color: var(--ridge); box-shadow: inset 0 0 0 1.5px var(--ridge); }
.t-h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.06; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .paths { grid-template-columns: 1fr; }
  .path-brands, .path-body { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cta-inner, .perks-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; text-align: left; }
  .social { justify-content: flex-start; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root { --header-h: 70px; --gutter: 22px; }
  body { font-size: 16px; }
  .brand { font-size: 19px; }
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--snow); color: var(--ridge); flex-direction: column; align-items: center; justify-content: center; gap: 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav a { font-family: var(--serif); font-size: 32px; line-height: 1.2; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open .menu-btn { color: var(--ridge); }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { min-height: 94svh; }
  .territory { height: 62%; width: 152%; left: -52%; } /* shows the route and summit, not the empty left side */
  .hero::before { background: linear-gradient(0deg, #13203a 38%, rgba(19, 32, 58, .55) 62%, rgba(19, 32, 58, .1) 100%); }
  .hero-legend { margin-top: 20px; }
  .mark { width: 28px; height: 22px; }
  .actions .btn { flex: 1 1 auto; }

  /* The trail runs top to bottom on phones */
  .trail { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .trail .wp, .trail .wp:nth-of-type(n) { margin-top: 0; padding: 0 0 34px 68px; min-height: 48px; }
  .trail .wp:last-child { padding-bottom: 0; }
  .trail .wp::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; border-left: 2px dotted currentColor; opacity: .45; }
  .trail .wp:last-child::before { display: none; }
  .trail-path { display: none; }
  .wp h3 { padding-top: 10px; }

  .founder { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; }
  .founder > :not(.founder-photo), .founder-photo { grid-column: 1; grid-row: auto; }
  .founder-photo { aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .founder-grid { gap: 56px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-img { aspect-ratio: 4 / 3; order: -1; margin-top: 4px; }
  .gets-list { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form button[type=submit] { align-self: stretch; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media print {
  .site-header, .site-footer, .announce, .form, .menu-btn { display: none !important; }
}
