/* ============================================================
   Alma by Anum — marketing site
   Design system: deep navy anchor (law-firm letterhead),
   cool near-white, legislative mid-blue accent.
   Fraunces display + Inter body.
   Palette per Jobs aesthetic review (consult 2026-05-25) — variable
   NAMES kept (--green/--brass) for back-compat; VALUES remapped to
   navy / legislative-blue. The accent blue is the "sourced from
   statute" signal; it carries the citation underline.
   ============================================================ */

:root {
  --green:        #1C2E4A;   /* anchor — deep navy (was forest green) */
  --green-deep:   #0E1A2B;   /* darker navy for surfaces / footer */
  --bg:           #F6F7F9;   /* cool near-white (was warm off-white) */
  --surface:      #FFFFFF;   /* cards on bg */
  --surface-warm: #EDF1F6;   /* cool alt sections (was warm) */
  --ink:          #1C1D22;   /* body text on light — cool near-black */
  --muted:        #595E68;   /* secondary text on light — cool */
  --brass:        #3B6EA5;   /* accent — legislative mid-blue (was brass) */
  --brass-deep:   #2F5982;   /* accent hover — deeper blue */
  --line:         #DDE2EA;   /* cool hairlines on light */
  --on-green:     #E8ECF2;   /* body text on navy */
  --on-green-mut: #9DB0C6;   /* muted text on navy */

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  overflow-x: clip; /* guard against any transient horizontal overflow; clip (not hidden) keeps sticky nav working */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--green); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.measure { max-width: 760px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Brand wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  text-decoration: none;
  line-height: 1;
}
.wordmark__alma {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
}
.wordmark__maker {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
}
.wordmark--sm .wordmark__alma { font-size: 22px; }
.wordmark--sm .wordmark__maker { font-size: 10px; }
/* Quill mark beside the wordmark — align-self centres it against the baseline-aligned text so it never drifts */
.wordmark__icon {
  align-self: center;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: block;
}
/* Anum brand arc — comet swoosh glued under "Anum" so it scales with the text, never drifts */
.wordmark__anum { position: relative; display: inline-block; }
.wordmark__arc {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  top: 100%;
  margin-top: 1.5px;
  overflow: visible;
  pointer-events: none;
}
.wordmark--lg .wordmark__alma { font-size: clamp(38px, 6vw, 58px); }
.wordmark--lg .wordmark__maker { font-size: clamp(11px, 1.4vw, 13px); }
.wordmark--light .wordmark__alma { color: var(--bg); }
.wordmark__lead {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
  opacity: 0.55;
}
.wordmark--lg .wordmark__lead { font-size: clamp(30px, 4.6vw, 44px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--accent { background: var(--brass); color: #fff; }
.btn--accent:hover { background: var(--brass-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); }
.btn--block { width: 100%; }
.btn--sm { font-size: 13.5px; padding: 10px 15px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .85; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav__cta { padding: 9px 18px; font-size: 14px; }
/* Header logo + name evenly centred against each other (desktop + phone) */
.nav .wordmark { align-items: center; }
/* Nav shortcuts grouped beside the Early access button */
.nav__right { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav__link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  opacity: .82;
  white-space: nowrap;
  transition: opacity .18s ease, color .18s ease;
}
.nav__link:hover { opacity: 1; color: var(--green); }

/* Hamburger — only when JS is live (gated on html.js so it's never a dead button) */
.nav__burger { display: none; }
html.js .nav__burger {
  flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 38px; padding: 9px 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav__burger span {
  display: block; height: 2px; width: 100%;
  background: var(--green); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Below tablet: hamburger reveals the same shortcuts in a dropdown panel */
@media (max-width: 760px) {
  html.js .nav__burger { display: flex; }
  /* No-JS fallback keeps the old behaviour: shortcuts simply drop off */
  html:not(.js) .nav__links { display: none; }
  html.js .nav__links {
    position: absolute; top: 66px; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FAF8F4;
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
    box-shadow: 0 14px 30px rgba(28, 46, 74, 0.12);
  }
  html.js .nav__links.is-open { display: flex; }
  .nav__links .nav__link {
    padding: 14px clamp(20px, 6vw, 32px);
    font-size: 16px; opacity: 1;
    border-bottom: 1px solid var(--line);
  }
  .nav__links .nav__link:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 7vw, 84px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.hero__grid > * { min-width: 0; }
.reach > * { min-width: 0; }
.hero__copy .wordmark--lg { margin-bottom: 22px; }
.hero__headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(31px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--green);
  margin: 0 0 22px;
}
.hero__subhead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 36em;
}
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__quietlink {
  font-weight: 500; font-size: 15px; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.hero__quietlink:hover { color: var(--green); border-color: var(--green); }
.hero__grounded { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-top: 30px; }
.hero__grounded-label {
  flex: none;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}

/* ---------- Grounded-in legislation list (static, no pills) ----------
   Calm, authoritative inline citation list. The legal-blue text carries the
   "grounded in law" identity the pills used to, without the boxy carousel —
   movement reads as marketing, stillness reads as authority. Subtle dot
   dividers separate items; the list wraps naturally; no motion, no JS. */
.lawlist {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 0; margin: 0; padding: 1px 0 0; list-style: none;
  font-size: 12px; line-height: 1.45; color: #2F5982; font-weight: 600;
}
.lawlist__item { position: relative; white-space: nowrap; }
.lawlist__item:not(:first-child) { padding-left: 15px; }
.lawlist__item:not(:first-child)::before {
  content: ""; position: absolute; left: 7px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: .38; transform: translateY(-50%);
}

/* ---------- Grounded-in credentials strip (full-width, below hero) ----------
   Lifted out of the hero copy: the citation set was crowding an already
   text-dense hero. As its own slim, centred band it de-clutters the hero and
   reads more like a deliberate "what it's built on" credentials bar. Sits
   between the white hero and the dark proof band as a quiet palette step. */
.groundbar {
  background: #EEF3F8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.groundbar__inner {
  display: flex; align-items: baseline; justify-content: center;
  flex-wrap: wrap; gap: 7px 16px;
}
.groundbar__label {
  flex: none;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}
.lawlist--bar {
  flex: 0 1 auto; min-width: 0;
  justify-content: center;
  font-size: 12.5px;
}

/* ---------- Outlook + Alma mockup ---------- */
.mockup { margin: 0; }
.mockup__window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(28,58,46,.04), 0 24px 54px -28px rgba(28,58,46,.35);
  overflow: hidden;
}
.mockup__titlebar {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 14px;
  background: #F0ECE3;
  border-bottom: 1px solid var(--line);
}
.mockup__dots { display: inline-flex; gap: 6px; }
.mockup__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D6CFC0; display: block; }
.mockup__app {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #4A4B43;
}
.mockup__spacer { flex: 1; }
.mockup__body { display: grid; grid-template-columns: 1fr 1.06fr; }

/* Mail reading pane */
.mailpane { padding: 20px 18px; border-right: 1px solid var(--line); }
.mailpane__subject {
  font-family: var(--serif); font-weight: 600; font-size: 16.5px;
  color: var(--ink); line-height: 1.25; margin-bottom: 14px;
}
.mailpane__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #5A6B82; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex: none;
}
.mailpane__from { display: flex; flex-direction: column; line-height: 1.3; }
.mailpane__from strong { font-size: 13.5px; }
.mailpane__from span { font-size: 11.5px; color: var(--muted); }
.mailpane__text { font-size: 13px; color: #3C3D36; line-height: 1.6; }
.mailpane__text p { margin: 0 0 10px; }

/* Alma task pane */
.almapane { padding: 18px 16px; background: #FCFBF8; }
.almapane__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.almapane__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--green);
}
.almapane__mark {
  width: 24px; height: 24px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.almapane__mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.almapane__status {
  font-size: 11px; font-weight: 600; color: #2F5982;
  background: #E6EDF5; border-radius: 999px; padding: 4px 10px;
}
/* Status pill that swaps "Drafting…" → "Draft ready": both children share
   one grid cell so the pill sizes to the wider label and never reflows.
   Base (no JS): drafting hidden, ready shown — a calm static "Draft ready". */
.almapane__status--swap { display: inline-grid; place-items: center; }
.almapane__status--swap > * { grid-area: 1 / 1; }
.almapane__status-draft { opacity: 0; display: inline-flex; align-items: center; gap: 4px; }
.almapane__status-ready { opacity: 1; }
.almapane__dots { display: inline-flex; gap: 3px; margin-left: 1px; }
.almapane__dots span {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; display: block; opacity: .35;
}
.almapane__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin: 0 0 8px;
}
.almapane__draft {
  font-size: 12.5px; color: #34352F; line-height: 1.58;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 14px;
}
.almapane__draft p { margin: 0 0 9px; }
.almapane__draft p:last-child { margin-bottom: 0; }

/* The citation — styled like a footnote in a legal opinion:
   precise, sourced, a fine accent underline (not a highlighter badge).
   This element IS the product demo — per Jobs review. */
mark.cite {
  background: transparent;
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  position: relative;
  cursor: help;
}
.cite__tip {
  /* display:none (not visibility:hidden) so the hidden, nowrap tooltip
     never contributes to document scroll-width and inflates containers. */
  display: none;
  position: absolute;
  left: 0; bottom: calc(100% + 8px);
  background: var(--green-deep); color: #fff;
  font-weight: 500; font-size: 11px; line-height: 1.3;
  padding: 6px 9px; border-radius: 7px;
  white-space: nowrap;
  pointer-events: none; z-index: 5;
}
.cite__tip::after {
  content: ""; position: absolute; top: 100%; left: 14px;
  border: 5px solid transparent; border-top-color: var(--green-deep);
}
mark.cite:hover .cite__tip, mark.cite:focus .cite__tip { display: block; }

.almapane__sources {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 14px;
}
.srclabel {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-right: 2px;
}
.chip {
  font-size: 11px; font-weight: 500; color: #4A4B43;
  background: #EFEBE2; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.chip--cite { background: #E6EDF5; border-color: #C5D5E8; color: #2F5982; font-weight: 600; }

.almapane__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
/* The pane is a static mockup of Alma's product UI, not live site controls.
   pointer-events:none removes every hover/click affordance so viewers read it
   as a screenshot of the app, and the muted weight stops it competing with the
   real site CTAs. Covers all three mockups: the hero pane, the sequenced
   "how it works" pane (both .almapane__) and the wedge-section example (.opane__). */
.almapane__actions .btn,
.opane__actions .btn {
  pointer-events: none;
  cursor: default;
  font-size: 12.5px;
  padding: 9px 14px;
  box-shadow: none;
  transform: none;
}
.almapane__actions .btn--primary,
.opane__actions .btn--primary { background: var(--green); opacity: .55; }
.almapane__actions .btn--ghost,
.opane__actions .btn--ghost { color: var(--muted); border-color: var(--line); opacity: .7; }
.almapane__foot {
  font-size: 11px; color: var(--muted); margin: 12px 0 0;
  display: flex; align-items: center; gap: 6px;
}

/* ---------- Trust strip ---------- */
.trust { background: var(--surface-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__grid {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  padding: 18px 28px;
}
.trust__item { display: inline-flex; align-items: center; gap: 10px; }
.trust__item p { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.trust__icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--green); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust__link {
  flex: 0 0 100%; margin-left: 0; text-align: center; margin-top: 2px;
  font-size: 13.5px; font-weight: 600;
  color: var(--green); text-decoration: none; white-space: nowrap;
}
.trust__link:hover { color: var(--brass-deep); }

/* ---------- Market proof band (below hero) ---------- */
.proofbar {
  background: var(--green);
  color: var(--on-green);
  padding: clamp(44px, 6vw, 76px) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.proofbar__lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 31px);
  line-height: 1.22; letter-spacing: -0.01em;
  color: #fff; margin: 0 0 30px; max-width: 780px;
}
.proofbar__lead em { font-style: italic; color: #fff; }
.proofbar__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px 40px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.10);
}
.proofbar__stat { display: flex; flex-direction: column; gap: 9px; }
.proofbar__num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(31px, 3.6vw, 47px); line-height: 1;
  color: #fff; letter-spacing: -0.02em;
}
.proofbar__cap { font-size: 15px; line-height: 1.5; color: var(--on-green-mut); }
.proofbar__cap em { font-style: normal; color: #fff; font-weight: 600; }
.proofbar__synth {
  margin: 32px 0 0; max-width: 840px;
  font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: var(--on-green);
}
.proofbar__src {
  margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: var(--on-green-mut);
}
.proofbar__src > summary {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; list-style: none; width: fit-content;
  font-size: 12px; letter-spacing: 0.02em; color: var(--on-green-mut);
  opacity: 0.85; transition: opacity 0.18s ease;
}
.proofbar__src > summary:hover { opacity: 1; }
.proofbar__src > summary::-webkit-details-marker { display: none; }
.proofbar__src > summary::after {
  content: "\25B8"; font-size: 10px; transition: transform 0.18s ease;
}
.proofbar__src[open] > summary::after { transform: rotate(90deg); }
.proofbar__src > p { margin: 8px 0 0; max-width: 840px; }
.proofbar__src em { font-style: italic; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface-warm); }
.section--green { background: var(--green); }
.section--green .section__title { color: #fff; }

.eyebrow {
  font-size: 12.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: #2F5982; margin: 0 0 14px; /* deeper legislative blue — AA contrast on cool near-white */
}
.eyebrow--light { color: #9DB8D6; } /* lighter blue — AA contrast on deep navy */

.section__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.14; letter-spacing: -0.012em;
  color: var(--green); margin: 0 0 20px;
}
.section__body { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--muted); margin: 0 0 18px; }
.section--green .section__body, .section__body--light { color: var(--on-green); }
.section--green .section__body { color: var(--on-green); }

/* Privacy checklist — ticked, scoped to navy section */
.privacy-checks { list-style: none; padding: 0; margin: 26px 0 24px; display: grid; gap: 16px; }
.privacy-checks li {
  position: relative; padding-left: 40px;
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--on-green);
}
.privacy-checks li strong { color: #fff; font-weight: 600; }
.privacy-checks li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--brass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.privacy-coda { margin-top: 6px; }

/* 3-step */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 46px;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; position: relative;
}
.step__num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--serif); font-size: 30px; font-weight: 600;
  color: #EAE3D5; line-height: 1;
}
.step__icon {
  width: 30px; height: 30px; fill: none; stroke: var(--green);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--green); margin: 0 0 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Legal framework grid */
.framework {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-top: 40px;
}
.fw {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 24px;
}
.fw__tag {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 17px; color: var(--green); line-height: 1.25; margin-bottom: 9px;
}
.fw__body { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.founder__mark {
  width: 152px; height: 152px; border-radius: 24px; flex: none;
  object-fit: cover; object-position: center 22%;
  background: var(--green); display: block;
}
.founder__copy { max-width: 720px; }

/* Offer */
.offer { list-style: none; padding: 0; margin: 8px 0 26px; }
.offer li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  font-size: clamp(16px, 1.3vw, 18px); color: var(--ink);
}
.offer li strong { color: var(--green); font-weight: 600; }
.offer li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass);
}
.offer__scarcity {
  display: inline-block;
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  color: var(--green); background: #EEE7DA;
  border: 1px solid #E0D4BC; border-radius: 999px;
  padding: 10px 20px; margin: 0 0 30px;
}

/* ---------- Form ---------- */
.form-wrap { }
.form-card {
  background: var(--green-deep);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 24px 54px -30px rgba(0,0,0,.5);
}
.section--green .form-card .section__title { color: #fff; }
.form { margin-top: 26px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--on-green); margin-bottom: 7px; letter-spacing: .01em;
}
.field input {
  width: 100%; font-family: var(--sans); font-size: 16px; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder { color: var(--on-green-mut); }
.field input:focus {
  outline: none; border-color: var(--brass);
  background: rgba(255,255,255,.1);
}
.form__micro { font-size: 13px; color: var(--on-green-mut); margin: 14px 0 0; text-align: center; }
.hp-field { position: absolute; left: -9999px; }

/* Confirmation */
.form-confirm { text-align: center; }
.form-confirm__tick {
  width: 56px; height: 56px; margin: 0 auto 18px; display: block;
  fill: none; stroke: var(--brass); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.form-confirm .btn { margin-top: 10px; }
.form-confirm a { color: #9DB8D6; } /* lighter blue — AA on the deep-navy card */

/* ---------- Footer ---------- */
.footer { background: var(--green); padding: 48px 0; }
.footer__inner { text-align: center; }
.footer .wordmark--sm { margin-bottom: 16px; }
.footer__line { color: var(--on-green); font-size: 14.5px; margin: 0 0 8px; }
.footer__fine { color: var(--on-green-mut); font-size: 12.5px; margin: 0; }
.footer__fine a, .footer__line a { color: var(--on-green-mut); }
.footer__fine a:hover { color: #fff; }
.footer .wordmark a { color: inherit; text-decoration: none; }
.footer .wordmark a:hover { color: #fff; }

/* ---------- Reach / Inside Outlook ---------- */
.reach {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.reach__compat { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 26px 0 28px; }
.reach__note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 20px 22px;
}
.reach__note-title { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--green); margin: 0 0 7px; }
.reach__note-body { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Faithful docked task-pane mockup (the real add-in, Forge's spec) */
.opane-wrap { margin: 0; }
.opane-frame {
  max-width: 384px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(28,58,46,.04), 0 24px 54px -28px rgba(28,58,46,.35);
  overflow: hidden;
}
.opane-ribbon {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 12px;
  background: #F0ECE3; border-bottom: 1px solid var(--line);
}
.opane-ribbon__app { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #4A4B43; }
.opane-ribbon__btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--green);
  background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px;
}
.opane-ribbon__btn-ico { width: 16px; height: 16px; border-radius: 4px; overflow: hidden; display: inline-flex; flex: none; }
.opane-ribbon__btn-ico img { width: 100%; height: 100%; display: block; }
.opane { padding: 16px 15px 18px; background: #FCFBF8; }
.opane__head { display: flex; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.opane__brand { display: inline-flex; align-items: center; gap: 8px; }
.opane__mark { width: 22px; height: 22px; border-radius: 6px; overflow: hidden; display: inline-flex; flex: none; }
.opane__mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.opane__brandtext { font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--green); }
.opane__by { font-family: var(--sans); font-weight: 500; font-size: 9.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--brass); }
.opane__tag { font-size: 11.5px; color: var(--muted); margin: 9px 0 14px; line-height: 1.4; }
.opane__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.opane__cardlabel { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.opane__subject { font-size: 13px; font-weight: 500; color: var(--ink); margin: 5px 0 0; line-height: 1.35; }
.opane__select {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; font-size: 13px; color: var(--ink); font-weight: 500;
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px;
}
.opane__select svg { color: var(--muted); flex: none; }
.opane__draftcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; margin-bottom: 12px; }
.opane__drafttop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.opane__badge { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #2F5982; background: #E6EDF5; border-radius: 999px; padding: 3px 8px; }
.opane__draft { font-size: 12px; color: #34352F; line-height: 1.55; }
.opane__draft p { margin: 0 0 8px; }
.opane__draft p:last-child { margin-bottom: 0; }
.opane__citehead { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); margin: 12px 0 7px; }
.opane__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opane__actions { display: flex; gap: 8px; }
.opane__foot { font-size: 10.5px; color: var(--muted); margin: 12px 0 0; }
.opane__meta { font-size: 10px; color: var(--muted); opacity: .8; margin: 5px 0 0; }

/* ---------- Benefits (training & oversight) ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.oversight__coda {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4;
  color: var(--green); margin: 30px 0 0;
}

/* ---------- Select field (dark form card) ---------- */
.field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: #fff;
  background-color: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 13px 15px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239DB0C6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  transition: border-color .15s ease, background-color .15s ease;
}
.field select:focus { outline: none; border-color: var(--brass); background-color: rgba(255,255,255,.1); }
.field select option { color: #1C1D22; } /* readable in the native dropdown list */

/* ============================================================
   MOTION — hero entrance, scroll-reveal, hover, Victoria map
   All gated on html.js (set before first paint) so a no-JS visit keeps
   every element visible. The reduced-motion block at the very bottom
   disables all of it.
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero entrance on load */
html.js .hero__copy { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
html.js .mockup     { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) .12s both; }

/* Hero wordmark — "Alma" draws on left-to-right like it's being written.
   Uses the real Fraunces wordmark (no hand-drawn SVG): a clip-path wipe
   sweeps the visible region from the left edge across. Negative insets give
   the serif a little breathing room so descenders/overhang never clip.
   Resting state = fully visible; no-JS skips it; reduced-motion forces it on. */
@keyframes almaWipe {
  from { clip-path: inset(-0.14em 100% -0.14em -0.14em); }
  to   { clip-path: inset(-0.14em -0.14em -0.14em -0.14em); }
}
html.js .wordmark--meet .wordmark__alma {
  clip-path: inset(-0.14em 100% -0.14em -0.14em);
  animation: almaWipe .95s cubic-bezier(.55,.05,.25,1) .55s both;
}

/* ---- Hero email "live demo" sequence (plays once on load) ----
   Beat 1 (~0.5s): the owner's email arrives in the reading pane.
   Beat 2 (~1.2s): Alma's panel shows "Drafting…" with pulsing dots.
   Beat 3 (~1.6–3.1s): the reply composes paragraph by paragraph, live.
   Beat 4 (~3.4s): status flips to "Draft ready"; actions + footnote settle.
   Resting state is identical to the static layout, so it stays fully
   readable; no-JS skips it entirely; reduced-motion forces final state. */
@keyframes seqUp      { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes seqFade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes seqFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dotPulse   { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-1px); } }

/* Beat 1 — the email lands */
html.js .mockup--seq .mailpane__subject { opacity: 0; animation: seqUp .45s cubic-bezier(.2,.7,.2,1) .50s both; }
html.js .mockup--seq .mailpane__meta    { opacity: 0; animation: seqUp .45s cubic-bezier(.2,.7,.2,1) .62s both; }
html.js .mockup--seq .mailpane__text    { opacity: 0; animation: seqUp .45s cubic-bezier(.2,.7,.2,1) .74s both; }

/* Beat 2 — Alma starts drafting */
html.js .mockup--seq .almapane__label   { opacity: 0; animation: seqFade .4s ease 1.15s both; }
html.js .mockup--seq .almapane__status-draft { animation: seqFade .3s ease 1.20s forwards, seqFadeOut .3s ease 3.25s forwards; }
html.js .mockup--seq .almapane__dots span        { animation: dotPulse 1s ease-in-out infinite; }
html.js .mockup--seq .almapane__dots span:nth-child(2) { animation-delay: .15s; }
html.js .mockup--seq .almapane__dots span:nth-child(3) { animation-delay: .30s; }

/* Beat 3 — the reply composes, paragraph by paragraph */
html.js .mockup--seq .almapane__draft p { opacity: 0; animation: seqUp .5s cubic-bezier(.2,.7,.2,1) both; }
html.js .mockup--seq .almapane__draft p:nth-child(1) { animation-delay: 1.55s; }
html.js .mockup--seq .almapane__draft p:nth-child(2) { animation-delay: 1.85s; }
html.js .mockup--seq .almapane__draft p:nth-child(3) { animation-delay: 2.15s; }
html.js .mockup--seq .almapane__draft p:nth-child(4) { animation-delay: 2.55s; }
html.js .mockup--seq .almapane__draft p:nth-child(5) { animation-delay: 2.85s; }

/* Beat 4 — draft ready */
html.js .mockup--seq .almapane__status-ready { opacity: 0; animation: seqFade .35s ease 3.45s forwards; }
html.js .mockup--seq .almapane__actions { opacity: 0; animation: seqUp .4s cubic-bezier(.2,.7,.2,1) 3.45s both; }
html.js .mockup--seq .almapane__foot    { opacity: 0; animation: seqFade .4s ease 3.60s both; }

/* Scroll-reveal — single element */
html.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Scroll-reveal — staggered children (observe the container, children cascade) */
html.js .reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
}
html.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .09s; }
html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .18s; }
html.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .27s; }

/* Hover micro-interactions — cards lift, mockups float */
.step, .fw { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.step:hover, .fw:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -26px rgba(14,26,43,.45);
  border-color: #C5D5E8;
}
.mockup__window, .opane-frame { transition: transform .3s ease, box-shadow .3s ease; }
.mockup:hover .mockup__window, .opane-wrap:hover .opane-frame {
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(28,58,46,.04), 0 34px 72px -30px rgba(28,58,46,.42);
}

/* ---------- Victoria map ---------- */
.vicwrap {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 5vw, 64px); align-items: center;
}
.vicwrap > * { min-width: 0; }
.vicwrap__copy { max-width: 560px; }
.vicmap { margin: 0; }
.vicmap__svg { width: 100%; height: auto; display: block; overflow: visible; }
.vicmap__shape {
  fill: rgba(59,110,165,.07);
  stroke: var(--brass); stroke-width: 2.4;
  stroke-linejoin: round; stroke-linecap: round;
}
/* Outline draws itself in, then the fill washes in behind it */
html.js .vicmap__shape { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
html.js .vicmap.is-visible .vicmap__shape {
  stroke-dashoffset: 0; fill-opacity: 1;
  transition: stroke-dashoffset 1.7s ease, fill-opacity .8s ease 1.05s;
}
.vicmap__dot   { fill: var(--green); }
.vicmap__pulse { fill: var(--brass); opacity: .25; transform-box: fill-box; transform-origin: center; }
html.js .vicmap__pin { opacity: 0; }
html.js .vicmap.is-visible .vicmap__pin   { opacity: 1; transition: opacity .4s ease 1.5s; }
html.js .vicmap.is-visible .vicmap__pulse { animation: vicPulse 2.6s ease-out 1.7s infinite; }
@keyframes vicPulse {
  0%   { transform: scale(.6); opacity: .5; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.vicmap__label {
  fill: var(--green); font-family: var(--sans);
  font-weight: 600; font-size: 30px; letter-spacing: .01em;
}
html.js .vicmap__label { opacity: 0; }
html.js .vicmap.is-visible .vicmap__label { opacity: 1; transition: opacity .5s ease 1.7s; }
.vicmap__cap {
  display: block; margin-top: 14px; text-align: center;
  font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 420px; margin-left: auto; margin-right: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Hero + reach carry a nested 2-col mockup, so they need to single-column
   earlier than the simple 3-col rows — otherwise the inner panes crush
   in the 961–1080px band (narrow-desktop dead zone). */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 640px; }
  .reach { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .reach__copy { max-width: 640px; }
  .vicwrap { grid-template-columns: 1fr; gap: 36px; }
  .vicwrap__copy { max-width: 640px; }
  .vicmap { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .benefits { grid-template-columns: 1fr; gap: 16px; }
  .proofbar__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .framework { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  /* Stack the Outlook mockup so it degrades cleanly on mobile */
  .mockup__body { grid-template-columns: 1fr; }
  .mailpane { border-right: none; border-bottom: 1px solid var(--line); }
  .trust__grid { padding: 18px 20px; }
  .trust__link { margin-left: 0; }
  .founder { grid-template-columns: 1fr; gap: 20px; }
  .founder__mark { width: 116px; height: 116px; border-radius: 20px; font-size: 32px; }
  .hero__actions { gap: 16px; }
  /* Full-width CTAs read better on mobile — except the compact nav button */
  .btn { width: 100%; }
  .btn.nav__cta { width: auto; }

  /* ===== Mobile density pass — tighten spacing & type so the page reads
     less bloated on phones, without cutting any of the (important) copy.
     Body stays a readable 16px; the win comes from whitespace + heading size. ===== */
  .section { padding: 42px 0; }
  .section__title { font-size: 23px; line-height: 1.2; margin-bottom: 13px; }
  .section__body { margin-bottom: 13px; }
  .eyebrow { margin-bottom: 9px; }
  .hero { padding: 30px 0 38px; }
  .hero__copy .wordmark--lg { margin-bottom: 14px; }
  .hero__headline { font-size: 27px; margin-bottom: 15px; }
  .hero__subhead { font-size: 16px; margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  /* Force all reveal/entrance content to its final, visible state */
  html.js .reveal,
  html.js .reveal-stagger > *,
  html.js .hero__copy,
  html.js .mockup,
  html.js .vicmap__pin,
  html.js .vicmap__label { opacity: 1 !important; transform: none !important; }
  html.js .vicmap__shape { stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
  /* Hero email sequence — force final readable state, no motion.
     (These selectors declare opacity:0 as their resting base, so without
     this override the killed animation would leave them invisible.) */
  html.js .mockup--seq .mailpane__subject,
  html.js .mockup--seq .mailpane__meta,
  html.js .mockup--seq .mailpane__text,
  html.js .mockup--seq .almapane__label,
  html.js .mockup--seq .almapane__draft p,
  html.js .mockup--seq .almapane__actions,
  html.js .mockup--seq .almapane__foot,
  html.js .mockup--seq .almapane__status-ready { opacity: 1 !important; transform: none !important; }
  html.js .mockup--seq .almapane__status-draft { opacity: 0 !important; }
  /* Hero wordmark wipe — force the full word visible, no sweep */
  html.js .wordmark--meet .wordmark__alma { clip-path: none !important; }
}
