/* =====================================================================
   Zenith: phone layout (loaded only at max-width 767px).
   Desktop rules live in site.css; this file re-lays the pages for a
   narrow, touch-first screen. Phone-specific motion lives in site.js
   under the "phone" branch of gsap.matchMedia.
   ===================================================================== */

:root {
  --gutter: 24px;
}

/* ---------- chrome ---------- */
.nav {
  padding: 18px var(--gutter);
}
.nav.solid {
  padding-top: 12px;
  padding-bottom: 12px;
}
.lockup {
  gap: 12px;
}
.lockup svg {
  width: 34px;
}
.wordmark {
  font-size: 15px;
  letter-spacing: 0.3em;
}
.menu {
  padding-top: 104px;
}

/* imagery: keep the gold path in frame, shade from the bottom where the type sits */
.layer {
  background-position: 76% 50%;
}
.shade {
  background: linear-gradient(
    0deg,
    rgba(7, 26, 43, 0.92) 0%,
    rgba(7, 26, 43, 0.55) 45%,
    rgba(7, 26, 43, 0.2) 75%,
    rgba(7, 26, 43, 0.35) 100%
  );
}

/* type scale */
h2 {
  font-size: 34px;
  line-height: 1.08;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
}
.cta {
  width: 100%;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 16px;
}
.text-link {
  font-size: 16px;
}

/* ---------- Home ---------- */
.hero {
  min-height: 100svh;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 96px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.04;
}
.hero p.sub {
  font-size: 17px;
  margin-top: 18px;
}
.hero .actions {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-top: 28px;
}
.hero .actions .text-link {
  align-self: flex-start;
}
.scroll-cue {
  bottom: 32px;
}

.value {
  padding-top: 14vh;
  padding-bottom: 12vh;
}
.trio {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 0;
  margin-top: 20px;
}
.trio > div {
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.trio h3 {
  font-size: 22px;
}
.trio p {
  font-size: 16px;
  margin-top: 8px;
}

/* §03: copy scrolls in normally, then the preview pins with its caption above it */
.assessment {
  height: auto;
  padding-top: 8vh;
}
.assessment .pin {
  position: static;
  height: auto;
  display: block;
}
.assessment .grid {
  display: block;
}
.assessment p.lede {
  font-size: 17px;
}
.assessment .text-link {
  margin-top: 20px;
}
.assessment .stage-cap { display: none; }
.stage-wrap { display: block; height: 300vh; margin-top: 40px; }
.stage-wrap .sticky {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  position: sticky; top: calc(var(--nav-h, 60px) + 8px);
  height: calc(100svh - var(--nav-h, 60px) - 16px);
}
.stage-wrap .phone-cap { display: block; margin: 0; min-height: 3.4em; font-size: 15px; }
.preview {
  padding: 20px 18px;
}
.tabs { gap: 14px; }
.tabs span { font-size: 10.5px; line-height: 1.25; padding-bottom: 10px; white-space: normal; }
.rows {
  gap: 14px;
  margin-top: 20px;
}
.row { grid-template-columns: 7.2em 1fr 62px; gap: 10px; font-size: 11.5px; }
.row .lbl { white-space: normal; line-height: 1.25; }
.flag {
  font-size: 9px;
  padding: 3px 5px;
  letter-spacing: 0.1em;
}
.next li {
  font-size: 13px;
}
.preview footer {
  flex-wrap: wrap;
  gap: 10px 16px;
}

/* §04 methodology: steps stack; the travelling line runs down the left edge */
.method {
  height: 280vh;
}
.method .pin {
  justify-content: center;
  padding-top: var(--nav-h, 60px);
}
.track {
  margin-top: 28px;
  padding-left: 26px;
}
.rail {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 1px;
  height: auto;
}
.rail b {
  transform-origin: top;
  transform: scaleY(0);
}
.rail b::after {
  right: -4px;
  top: auto;
  bottom: -4px;
}
.steps {
  grid-template-columns: 1fr;
  gap: 26px;
  padding-top: 0;
}
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  transform: translateY(10px);
}
.step .ico {
  grid-row: span 3;
  width: 36px;
  height: 36px;
  margin: 2px 0 0;
}
.step .num {
  font-size: 11px;
}
.step h3 {
  font-size: 22px;
  margin: 4px 0 6px;
}
.step p {
  font-size: 15px;
  max-width: none;
}

.audience {
  padding-top: 12vh;
  padding-bottom: 12vh;
}
.audience p.lede {
  font-size: 17px;
}
.cats {
  gap: 8px;
  margin-top: 28px;
}
.cats li {
  font-size: 14px;
  padding: 9px 14px;
}

.invite {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0 !important;
}
.band {
  padding: 44px var(--gutter) 48px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.band h2 {
  font-size: 32px;
}

body > footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px var(--gutter) 40px;
}
body > footer nav {
  flex-wrap: wrap;
  gap: 14px 20px;
}

/* ---------- inner pages ---------- */
.page-hero {
  padding-top: 124px;
  padding-bottom: 48px;
}
.page-hero h1 {
  font-size: 40px;
  line-height: 1.05;
}
.page-hero p.sub {
  font-size: 17px;
  margin-top: 16px;
}
.block {
  padding-top: 64px;
  padding-bottom: 16px;
}
.block h2 {
  max-width: none;
}
.block p.lede {
  font-size: 17px;
  margin-top: 18px !important;
}
.two-col {
  grid-template-columns: 1fr;
  gap: 0;
}
.ico {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

/* anchor bar scrolls sideways under the nav */
.subnav {
  gap: 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.subnav a {
  font-size: 13px;
}

.service {
  grid-template-columns: 1fr;
  gap: 22px;
  scroll-margin-top: 130px;
}
.service + .service {
  margin-top: 64px;
}
.receive {
  padding: 20px 20px 22px;
}
.receive p {
  font-size: 16px;
}
.cat-grid {
  grid-template-columns: 1fr;
  margin-top: 24px;
}
.cat-grid li {
  padding: 15px 0;
  font-size: 17px;
}
.flow {
  font-size: 22px;
  gap: 12px;
}
.flow i {
  width: 28px;
}

.faq-group {
  scroll-margin-top: 130px;
}
.faq-group + .faq-group {
  margin-top: 56px;
}
.faq-group > h2 {
  font-size: 26px;
}
.qa {
  scroll-margin-top: 130px;
}
.qa > button {
  padding: 20px 0;
  font-size: 17px;
  gap: 18px;
}
.qa .ans-inner {
  font-size: 16px;
  line-height: 1.6;
}

.contact-grid {
  grid-template-columns: 1fr;
  gap: 48px;
}
form.inquiry {
  grid-template-columns: 1fr;
  gap: 20px;
}
.field input,
.field select,
.field textarea {
  font-size: 16px;
  padding: 14px;
} /* 16px stops iOS zooming on focus */
.form-foot {
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 16px;
}
.aside-card + .aside-card {
  margin-top: 32px;
}

.cat-grid.with-pct { grid-template-columns: 1fr; }
main h2 + * { margin-top: 18px !important; }
main .eyebrow + * { margin-top: 22px !important; }
.stats { grid-template-columns: 1fr 1fr; }
.stat { padding: 22px 12px 18px 0; }
.stat + .stat { padding-left: 0; border-left: 0; }
.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hair); }
.stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
.stat dt { font-size: 44px; }
.stat dd { font-size: 11px; }

.proof { flex-direction: column; gap: 8px; font-size: 14px; margin-top: 16px; }

.analyses { grid-template-columns: 1fr; margin-top: 24px; }
.analyses li { padding: 13px 0; font-size: 16px; }
.process ol { flex-direction: column; gap: 14px; }
.process li { display: flex; align-items: center; gap: 14px; padding-right: 0; }
.process li b { margin: 0; flex: none; }
.process li:not(:last-child)::after { left: 17px; right: auto; top: 34px; bottom: -14px; width: 1px; height: auto; }

.row { grid-template-columns: 8.6em 1fr 62px; }
.logo-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.logo-grid li { height: 84px; padding: 12px; }
.logo-grid img { transform: scale(.72); }

/* RND 02: Services on phones, lists collapse to their first few items */
[data-more]:not(.expanded) > .more-item { display: none; }
.more-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--warm-white);
  background: none; border: 1px solid var(--hair); padding: 12px 18px; cursor: pointer;
}
.more-btn::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; }
[aria-expanded="true"].more-btn::after { content: "\2013"; }

/* savings processes: steps swipe sideways as cards, the next one peeking in */
.process ol {
  flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); padding-bottom: 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.process ol::-webkit-scrollbar { display: none; }
.process li {
  flex: 0 0 64%; scroll-snap-align: start; display: block; padding: 18px 16px 20px;
  border: 1px solid var(--hair); background: color-mix(in oklab, var(--midnight) 70%, transparent); font-size: 15px;
}
.process li b { margin: 0 0 14px; }
.process li:not(:last-child)::after { display: none; }
.process h3::after { content: "Swipe"; margin-left: 12px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.processes > .process { min-width: 0; } /* let the swipe row scroll inside its cell instead of widening the page */
/* footer Z: fixed to the wordmark + first link row, so wrapping links don't stretch it */
.foot-brand { column-gap: 14px; }
.foot-brand .foot-z { height: 46px; width: 59px; align-self: start; }
body > footer nav { gap: 10px 18px; }

/* no scroll cue on phones; desktop only (Sean) */
.scroll-cue { display: none; }
h2.eyebrow { font-size: 11px; letter-spacing: .22em; }
.logo-grid li { flex-basis: 33.333%; }
.service-group + .service-group { margin-top: 56px; padding-top: 40px; }
.detail { margin-top: 32px; padding-left: 18px; }
.detail-tag { font-size: 11px; letter-spacing: .16em; }
.detail > h3 { font-size: 26px; }
.process h4::after { content: "Swipe"; margin-left: 12px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.scroll-rail { display: none; } /* phones: no scroll prompts (Sean) */

.policy-sec { grid-template-columns: 1fr; row-gap: 12px; }
