/* ============================================================
   Avenor Solutions — design system
   Redesign 2026-10-15, in the design-engineering register of
   Emil Kowalski (emilkowal.ski / Sonner / Vaul).

   The point of view, so later edits stay coherent:

   QUIET SURFACE, LOUD CRAFT. Nothing on the page decorates. No
   bloom gradients, no grid textures, no drawn-on underlines, no
   infinite scroll indicators. Depth comes from type weight,
   measure, hairline rules and vertical rhythm. What makes the
   site feel expensive is the aggregate of details nobody
   consciously sees: buttons that give on press, hover states
   that only exist for a mouse, motion that is fast enough to
   feel like feedback rather than performance, and a mobile menu
   that leaves as cleanly as it arrives.

   MOTION RULES (every transition below follows them):
     - Only transform and opacity animate on anything that moves.
       Colour and border transitions use plain `ease`.
     - Enter/exit uses the strong ease-out curve. Nothing uses
       ease-in; nothing uses the browser's weak defaults.
     - UI transitions stay under 300ms. The only things slower are
       the hero's first paint and scroll reveals, which the user
       sees once.
     - `transition: all` never appears. Every rule names its
       properties.
     - Hover is gated behind (hover: hover) and (pointer: fine) so
       a tap on a phone never leaves a stuck hover state.
     - Pressable things scale to .97 on :active, 160ms ease-out.
     - Reduced motion keeps opacity fades and drops movement; it
       does not switch animation off outright.

   TYPE. Geist (sans) and Geist Mono, both variable, from Google
   Fonts. One family, three weights (400/500/600). The mono carries
   metadata only: eyebrows, numerals, form labels, footer heads.

   COLOUR. The warm paper ground and the orange accent are shared
   with Avenor 360's light-mode tokens so the marketing site and
   the executive portal read as one company. Text colours below
   were measured, not eyeballed:
     text        on bg/surface/card   17.9 / 16.0 / 18.7 : 1
     text-muted  on bg/surface         7.6 /  6.8        : 1
     text-faint  on bg/surface/card    5.2 /  4.6 /  5.4 : 1
     accent      on bg/surface/card    5.2 /  4.7 /  5.5 : 1
     bg          on accent fill        5.5              : 1
   --color-accent-l (#eb6834) is 3.07:1 on paper and is DECORATIVE
   ONLY: the eyebrow dot, the value colour on the dark plate. It
   never carries text on a light ground.
   ============================================================ */

:root {
  color-scheme: light;

  /* Surfaces */
  --color-bg:        #fbfaf8;
  --color-surface:   #f3f1ec;
  --color-card:      #ffffff;
  --color-ink:       #14120f;

  /* Text */
  --color-text:        #14120f;
  --color-text-muted:  #55514a;
  --color-text-faint:  #6f6a61;
  --color-on-ink:      #f6f4f0;
  --color-on-ink-mute: #a8a196;

  /* Accent */
  --color-accent:    #b8431a;
  --color-accent-d:  #93330f;
  --color-accent-l:  #eb6834;   /* decorative only, see header */
  --color-accent-tint: rgba(184,67,26,.08);

  /* Structure */
  --color-border:     #e6e3dc;
  --color-border-str: #d2cec5;
  --rule: 1px solid var(--color-border);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(20,18,15,.05);
  --shadow-md: 0 1px 2px rgba(20,18,15,.04), 0 12px 32px -16px rgba(20,18,15,.14);
  --ring: 0 0 0 3px rgba(20,18,15,.08);

  /* Motion */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur-press:  160ms;
  --dur-fast:   150ms;
  --dur:        200ms;
  --dur-reveal: 520ms;

  --font:      'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: 24px;
  --maxw:   1120px;
  --measure: 60ch;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
a, button, input, textarea, label { touch-action: manipulation; }
button { font: inherit; color: inherit; }
::selection { background: var(--color-text); color: var(--color-bg); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left:  max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.section { padding: 112px 0; position: relative; }

.section__header { max-width: 640px; margin-bottom: 56px; }

/* Eyebrow: a dot and a mono label. The dot is the one place the
   decorative orange appears on a light ground. */
.section__badge, .hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 18px;
}
.section__badge::before, .hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent-l);
  flex: none;
}

.section__title {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.028em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ── Buttons ──
   Press feedback is the one animation every visitor feels. Scale
   to .97 on :active, 160ms strong ease-out; colour on its own
   plain-ease track so the two never fight. No hover lift, no glow:
   a button should answer the hand, not perform for the eye. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1;
  padding: 0 18px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 1rem; }

.btn--primary { background: var(--color-text); color: var(--color-bg); }
.btn--primary:active { background: #000; }

.btn--ghost, .btn--outline {
  background: var(--color-card);
  color: var(--color-text);
  border-color: var(--color-border-str);
  box-shadow: var(--shadow-sm);
}

/* Text button: label + arrow, no chrome. */
.btn--text { padding: 0 4px; color: var(--color-text-muted); }
.btn__arrow { display: inline-flex; transition: transform var(--dur) var(--ease-out); }

/* ── Reveal ──
   `.js` is set on <html> by an inline script in each page's head,
   so with scripting off nothing is ever hidden. Each element is
   seen once, so this may be slower than UI motion: 520ms, 10px of
   travel, strong ease-out, 50ms stagger via --i. */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.in-view {
  opacity: 1;
  transform: none;
  transition:
    opacity   var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}

/* ══════════════ NAV ══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top);
  background: rgba(251,250,248,0);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
}
.nav.scrolled {
  background: rgba(251,250,248,.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--color-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.nav__logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.nav__logo-img { height: 28px; width: auto; }
.nav__logo-img--footer { height: 28px; }
.nav__logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-name { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__links a[aria-current="page"] { color: var(--color-text); }
.nav__cta { margin-left: 8px; height: 36px; padding: 0 14px; font-size: .875rem; }

/* Hamburger: three bars that become an X. transform-only. */
.nav__hamburger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  margin-right: -8px;
  background: none; border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__hamburger span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
}
.nav__hamburger span:nth-child(1) { top: 14px; }
.nav__hamburger span:nth-child(2) { top: 19px; }
.nav__hamburger span:nth-child(3) { top: 24px; }
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ══════════════ HERO ══════════════
   No full-viewport lock, no atmosphere. Headline, one paragraph,
   two actions, then a three-up proof strip on a rule. The second
   line of the headline is muted rather than coloured and italic:
   emphasis by restraint. */
.hero { position: relative; padding: 176px 0 96px; }
.hero__content { position: relative; }
.hero__grid { display: grid; gap: 72px; }
.hero__lead { max-width: 760px; }

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero__title--accent { color: var(--color-text-faint); }

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: var(--rule);
}
.hero__stat-num { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.hero__stat-label { display: block; font-size: .875rem; line-height: 1.5; color: var(--color-text-muted); text-wrap: pretty; }

/* First paint: one staggered sequence. Blur in the start state
   masks the crossfade between nothing and type, so it reads as one
   object arriving rather than letters switching on. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  to   { opacity: 1; transform: none;            filter: blur(0); }
}
.hero__badge, .hero__title, .hero__subtitle, .hero__ctas, .hero__stats {
  animation: hero-in 640ms var(--ease-out) both;
}
.hero__badge    { animation-delay: 0ms; }
.hero__title    { animation-delay: 50ms; }
.hero__subtitle { animation-delay: 100ms; }
.hero__ctas     { animation-delay: 150ms; }
.hero__stats    { animation-delay: 220ms; }

/* ══════════════ SOLUTIONS — the ledger ══════════════
   A numbered index on hairline rules. The hover wash is a
   pseudo-element that bleeds past the row by one gutter, so the
   row itself never changes padding (layout) on hover. */
.solutions__grid { border-top: var(--rule); }
.solution-card {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, .9fr) minmax(0, 1.2fr) 24px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: var(--rule);
}
.solution-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.solution-card__num {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text-faint);
  padding-top: 4px;
  transition: color var(--dur-fast) ease;
}
.solution-card__head { display: flex; align-items: flex-start; gap: 12px; }
.solution-card__icon { flex: none; color: var(--color-text-faint); margin-top: 2px; transition: color var(--dur-fast) ease; }
.solution-card h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.solution-card p { font-size: .9375rem; color: var(--color-text-muted); line-height: 1.6; text-wrap: pretty; }
.solution-card__arrow {
  align-self: start;
  margin-top: 4px;
  color: var(--color-text-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}

/* ══════════════ WHY — the dark plate ══════════════ */
.why {
  background: var(--color-ink);
  color: var(--color-on-ink);
  padding: 112px 0;
}
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 80px; align-items: start; }
.why .section__badge { color: var(--color-on-ink-mute); }
.why__text h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.028em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.why__text > p { color: var(--color-on-ink-mute); line-height: 1.65; margin-bottom: 28px; max-width: 52ch; text-wrap: pretty; }
.why .btn--outline {
  background: transparent;
  color: var(--color-on-ink);
  border-color: rgba(246,244,240,.22);
  box-shadow: none;
}
.why .btn--outline:active { background: rgba(246,244,240,.08); }

.why__pillars { display: flex; flex-direction: column; margin-top: 44px; }
.why__pillar { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(246,244,240,.1); }
.why__pillar:last-child { border-bottom: 1px solid rgba(246,244,240,.1); }
.why__pillar-icon {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(246,244,240,.08);
  color: var(--color-on-ink);
  margin-top: 2px;
}
.why__pillar-body h4 { font-size: .9375rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.why__pillar-body p { font-size: .875rem; color: var(--color-on-ink-mute); line-height: 1.55; }

.why__visual { display: flex; flex-direction: column; }
.why__metric { padding: 24px 0; border-top: 1px solid rgba(246,244,240,.1); }
.why__metric:last-child { border-bottom: 1px solid rgba(246,244,240,.1); }
.why__metric-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--color-accent-l);
  margin-bottom: 6px;
}
.why__metric-label { display: block; font-size: .875rem; color: var(--color-on-ink-mute); line-height: 1.55; text-wrap: pretty; }

/* ══════════════ PROCESS ══════════════ */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-top: 32px;
  border-top: var(--rule);
}
.process__step-num {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}
.process__step h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.process__step p { font-size: .9062rem; color: var(--color-text-muted); line-height: 1.6; text-wrap: pretty; }

/* ══════════════ INSIGHTS ══════════════ */
.insights { background: var(--color-surface); }
.insights__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) ease;
}
.insight-card__header { margin-bottom: 12px; }
.insight-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}
.insight-card__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }
.insight-card__excerpt { font-size: .9062rem; color: var(--color-text-muted); line-height: 1.6; flex: 1; text-wrap: pretty; }
.insight-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: var(--rule);
}
.insight-card__meta { font-family: var(--font-mono); font-size: .75rem; color: var(--color-text-faint); }
.insight-card__arrow {
  display: inline-flex;
  color: var(--color-text-faint);
  transition: transform var(--dur) var(--ease-out), color var(--dur-fast) ease;
}

/* ══════════════ ABOUT ══════════════ */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 80px; align-items: start; }
.about__text h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.028em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.about__text p { color: var(--color-text-muted); line-height: 1.65; margin-bottom: 16px; max-width: 56ch; text-wrap: pretty; }
.about__values { display: flex; flex-direction: column; }
.about__value { display: flex; gap: 16px; padding: 20px 0; border-top: var(--rule); }
.about__value:last-child { border-bottom: var(--rule); }
.about__value-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-l); margin-top: 9px; }
.about__value-body h4 { font-size: .9375rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.about__value-body p { font-size: .875rem; color: var(--color-text-muted); line-height: 1.55; }

/* ══════════════ CONTACT ══════════════ */
.contact { background: var(--color-surface); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.contact__info h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.028em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.contact__info p { color: var(--color-text-muted); line-height: 1.65; max-width: 44ch; text-wrap: pretty; }

.contact__form {
  background: var(--color-card);
  border: var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-optional { font-weight: 400; color: var(--color-text-faint); margin-left: 4px; }

/* Inputs at 16px so iOS never zooms the page on focus. The focus
   ring is a box-shadow, not an outline, so it follows the radius. */
.form-group input, .form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border-str);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  box-shadow: var(--shadow-sm);
  -webkit-appearance: none;
          appearance: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-faint); opacity: .8; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: var(--ring);
}
.form-group textarea { height: 120px; resize: vertical; }
.form__submit { width: 100%; margin-top: 4px; }
.form__status { margin-top: 14px; font-size: .875rem; line-height: 1.5; min-height: 1.3em; color: var(--color-text-muted); }
.form__status--success { color: #1c6b45; }
.form__status--error   { color: #a32020; }

/* SMS consent — the checkbox ships unchecked and never becomes
   required; see the note in index.html. Styled as a legible
   disclosure, not fine print: carrier reviewers screenshot it. */
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--color-bg);
  border: var(--rule);
  border-radius: var(--radius-md);
}
.form-consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 3px 0 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form-consent label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; margin: 0; }
.form-consent__head { font-weight: 500; font-size: .9375rem; color: var(--color-text); line-height: 1.4; }
.form-consent__body { font-size: .8125rem; line-height: 1.55; color: var(--color-text-muted); }
.form-consent__body a { color: var(--color-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--color-border-str); transition: text-decoration-color var(--dur-fast) ease; }

/* ══════════════ FOOTER ══════════════ */
.footer { border-top: var(--rule); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; margin-bottom: 48px; }
.footer__brand p { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; margin-top: 16px; max-width: 30ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__legal a { font-size: .875rem; color: var(--color-text-muted); transition: color var(--dur-fast) ease; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: var(--rule);
  flex-wrap: wrap;
}
.footer__copy { font-size: .8125rem; color: var(--color-text-faint); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { font-size: .8125rem; }

/* ══════════════ MOBILE NAV ══════════════
   Transitions, not display toggles, so it can leave. Enter 200ms,
   exit 150ms: the system should answer faster than it arrives.
   Links stagger in 30ms apart and leave together. */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 max(32px, env(safe-area-inset-left));
  background: var(--color-bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.nav__mobile.open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}
.nav__mobile a {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--color-text);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms var(--ease-out);
}
.nav__mobile.open a {
  opacity: 1;
  transform: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.nav__mobile.open a:nth-child(2) { transition-delay: 30ms; }
.nav__mobile.open a:nth-child(3) { transition-delay: 60ms; }
.nav__mobile.open a:nth-child(4) { transition-delay: 90ms; }
.nav__mobile.open a:nth-child(5) { transition-delay: 120ms; }
.nav__mobile.open a:nth-child(6) { transition-delay: 150ms; }
.nav__mobile.open a:nth-child(7) { transition-delay: 180ms; }
.nav__mobile.open a:nth-child(8) { transition-delay: 210ms; }
.nav__mobile a.btn { font-size: 1rem; font-weight: 500; letter-spacing: -.005em; margin-top: 20px; padding: 0 20px; color: var(--color-bg); }
.nav__mobile-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top)); right: 16px;
  width: 40px; height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  background: none; border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out);
}
.nav__mobile-close:active { transform: scale(.9); }
html.nav-open, html.nav-open body { overflow: hidden; }

/* ══════════════ LEGAL PAGES ══════════════
   Shared by terms.html, privacy.html and sms-optin.html. */
.legal-header { padding: 152px 0 40px; border-bottom: var(--rule); }
.legal-header .section__title { margin-bottom: 0; }
.legal-header__updated { font-family: var(--font-mono); font-size: .8125rem; color: var(--color-text-faint); margin-top: 10px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal-toc a {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-card);
  border: 1px solid var(--color-border-str);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  box-shadow: var(--shadow-sm);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.legal-toc a:active { transform: scale(.97); }

.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 88px; }
.legal h2:first-child, .legal .legal-badge-inline + h2 { margin-top: 0; }
.legal h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; margin: 28px 0 8px; color: var(--color-text); }
.legal p { font-size: .9375rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 14px; text-wrap: pretty; }
.legal ul, .legal ol { margin: 0 0 16px 1.3em; color: var(--color-text-muted); font-size: .9375rem; line-height: 1.7; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--color-text); font-weight: 600; }
/* --color-accent, never --color-accent-l: these are body links and
   need 4.5:1. The accent measures 5.2:1 on this ground. */
.legal a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(184,67,26,.35); transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease; }
.legal-callout {
  background: var(--color-surface);
  border: var(--rule);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}
.legal-callout p { margin-bottom: 0; }
.legal-callout p + p { margin-top: 10px; }
.legal-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  border: 1px solid var(--color-border-str);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  margin-bottom: 16px;
}
.sms-terms-section { background: var(--color-surface); border-top: var(--rule); border-bottom: var(--rule); }

/* ══════════════ HOVER — mouse only ══════════════
   Every hover state lives here so a tap on a touch screen never
   triggers one. Colour transitions use plain ease; anything that
   moves rides the ease-out curve declared on the element. */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #2a2622; }
  .btn--ghost:hover, .btn--outline:hover { border-color: var(--color-text-faint); }
  .btn--text:hover { color: var(--color-text); }
  .btn--text:hover .btn__arrow { transform: translateX(3px); }
  .why .btn--outline:hover { border-color: rgba(246,244,240,.5); }

  .nav__links a:hover { color: var(--color-text); background: var(--color-surface); }
  .nav__hamburger:hover, .nav__mobile-close:hover { background: var(--color-surface); }

  .solution-card:hover::before { opacity: 1; }
  .solution-card:hover .solution-card__num,
  .solution-card:hover .solution-card__icon { color: var(--color-text); }
  .solution-card:hover .solution-card__arrow { opacity: 1; transform: none; color: var(--color-text); }

  .insight-card:hover { border-color: var(--color-border-str); }
  .insight-card:hover .insight-card__arrow { transform: translateX(3px); color: var(--color-text); }

  .footer__col a:hover, .footer__legal a:hover { color: var(--color-text); }
  .form-consent__body a:hover { text-decoration-color: var(--color-text); }
  .legal a:hover { color: var(--color-accent-d); text-decoration-color: currentColor; }
  .legal-toc a:hover { color: var(--color-text); border-color: var(--color-text-faint); }
  .nav__mobile a:not(.btn):hover { color: var(--color-text-muted); }
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1000px) {
  .why__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: block; }
  .section, .why { padding: 80px 0; }
  .hero { padding: 136px 0 72px; }
  .hero__grid { gap: 48px; }
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }

  .solution-card { grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 22px 0; }
  .solution-card::before { inset: 0 -12px; }
  .solution-card p { grid-column: 2; }
  .solution-card__arrow { display: none; }
}

@media (max-width: 600px) {
  .section__header { margin-bottom: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact__form { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .process__steps { grid-template-columns: 1fr; gap: 28px; }
  .legal-header { padding-top: 128px; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ══════════════ REDUCED MOTION ══════════════
   Fewer and gentler, not none. Fades stay, movement goes. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .js .reveal.in-view { transition-duration: 300ms; transition-delay: 0s; }
  @keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
  .hero__badge, .hero__title, .hero__subtitle, .hero__ctas, .hero__stats { animation-duration: 300ms; animation-delay: 0ms; }
  .nav__mobile a { transform: none; }
  .nav__mobile.open a { transition-delay: 0s; }
  .btn:active, .legal-toc a:active, .nav__mobile-close:active { transform: none; }
  .btn__arrow, .insight-card__arrow, .solution-card__arrow { transition-duration: 0s; }
  .nav__hamburger span { transition-duration: 0s; }
}
