/* ==========================================================================
   Ragu — Homepage
   Palette: ink #2C264A · deep #1B1730 · plum #4A4177 · mauve #6F65A6
            lilac #A79EDC · powder #D9E2FE · mist #F0F2FA · line #CACCD5
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — Plus Jakarta Sans (self-hosted, variable subsets)
   -------------------------------------------------------------------------- */

/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  --ink: #2C264A;
  --deep: #1B1730;
  --plum: #4A4177;
  --mauve: #6F65A6;
  --lilac: #A79EDC;
  --powder: #D9E2FE;
  --mist: #F0F2FA;
  --line: #CACCD5;
  --body: #3D3D3D;
  --body-dark: #222222;
  --white: #FFFFFF;

  /* 1320px of content plus the gutter on each side. The source design sized
     its shells content-box (no box-sizing reset), so 1320 + 56 + 56 = 1432
     is the width it actually rendered at. */
  --gutter: clamp(20px, 4vw, 56px);
  --shell: calc(1320px + var(--gutter) * 2);
  --nav-h: 69px;

  --ease-out-soft: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.on-dark :focus-visible { outline-color: var(--powder); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* Available to screen readers, absent from the visual layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Small uppercase eyebrow label, used throughout */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}
.eyebrow--sm { font-size: 11px; }

/* Pill buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.2;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease-out-soft);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--plum);
  color: var(--white);
}
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover,
.btn--light:focus-visible {
  background: var(--powder);
  color: var(--ink);
}
.btn--sm { font-size: 14px; padding: 12px 26px; }
.btn--md { font-size: 15px; padding: 16px 32px; }
.btn--lg { font-size: 15px; padding: 16px 36px; }

/* The blurred colour-band wash behind the hero and the contact section */
.wash {
  position: absolute;
  inset: -40px;
  display: flex;
  pointer-events: none;
}
.wash > span { display: block; }

/* Notched card: square corner clipped out of the top-right */
.notched {
  --notch: 28px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    calc(100% - var(--notch)) var(--notch),
    100% var(--notch),
    100% 100%,
    0 100%
  );
}

/* --------------------------------------------------------------------------
   4. Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--plum); }

.nav__link[aria-current='page'] {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--ink);
  padding-bottom: 3px;
}

.nav .btn,
.nav .wordmark { white-space: nowrap; }

/* Wordmark */
.wordmark {
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .25s ease;
}
.wordmark__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  margin-left: 3px;
  transform-origin: center;
  animation: dotPulse 5s ease-in-out infinite;
  transition: transform .35s var(--ease-out-soft), background-color .25s ease;
}

/* Hover turns the square on its point. The idle pulse has to be switched off
   first — it animates transform, so a running animation would keep overwriting
   the hover transform. dotPulse rests at scale(1) for most of its cycle, so
   dropping it is not visible. */
.wordmark:hover,
.wordmark:focus-visible { color: var(--plum); }

.wordmark:hover .wordmark__dot,
.wordmark:focus-visible .wordmark__dot {
  animation: none;
  background: var(--plum);
  transform: rotate(45deg) scale(1.5);
}

.wordmark--footer {
  font-size: 18px;
  color: var(--white);
}
.wordmark--footer .wordmark__dot {
  width: 5px;
  height: 5px;
  background: var(--powder);
  animation-delay: 2.5s;
}
.wordmark--footer:hover,
.wordmark--footer:focus-visible { color: var(--powder); }
.wordmark--footer:hover .wordmark__dot,
.wordmark--footer:focus-visible .wordmark__dot { background: var(--white); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__wash { filter: blur(28px); }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 120px);
}

.hero__copy { max-width: 60ch; }

.hero__eyebrow {
  margin-bottom: 24px;
  animation: fadeUp .6s ease-out .8s both;
}

.hero__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: .05em;
}
.hero__line--two { padding-bottom: .08em; }
.hero__word {
  display: inline-block;
  animation: riseWord .8s var(--ease-out-soft) .1s both;
}
.hero__word--outline {
  -webkit-text-stroke: 1.5px var(--ink);
  animation: riseWord .8s var(--ease-out-soft) .3s both,
             fillIn 1s ease .55s both;
}

.hero__lede {
  margin: 26px 0 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--body);
  max-width: 42ch;
  animation: fadeUp .7s ease-out 1s both;
}

.hero__actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeUp .7s ease-out 1.15s both;
}

/* --------------------------------------------------------------------------
   6. Logo ticker
   -------------------------------------------------------------------------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  display: flex;
  align-items: stretch;
}

.ticker__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 28px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  display: flex;
  align-items: center;
  background: var(--white);
}

.ticker__viewport {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex: 1;
}

.ticker__track {
  display: flex;
  animation: tick 30s linear infinite;
  will-change: transform;
}

/* Each group is at least a viewport wide, so the second copy is always in
   frame when the first scrolls out — no empty stretch on a wide monitor. */
.ticker__group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: none;
  min-width: 100vw;
  gap: 64px;
  padding: 0 32px;
}

.ticker__name {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.ticker__dot {
  width: 6px;
  height: 6px;
  background: var(--lilac);
  align-self: center;
  flex: none;
}

/* --------------------------------------------------------------------------
   7. Stages ("What we do")
   -------------------------------------------------------------------------- */

.stages {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.stages__inner { padding-block: clamp(56px, 7vw, 100px); }

.stages__eyebrow { margin-bottom: 16px; }

.stages__title {
  margin: 0 0 clamp(40px, 5vw, 64px);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}

.stages__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage {
  position: sticky;
  background: var(--white);
  border-radius: 8px;
  filter: drop-shadow(0 24px 32px rgba(44, 38, 74, 0.12));
  padding: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: 64px minmax(0, 200px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.stage--1 { top: 96px; }
.stage--2 { top: 118px; background: var(--powder); }
.stage--3 {
  top: 140px;
  background: var(--ink);
  filter: drop-shadow(0 24px 32px rgba(44, 38, 74, 0.18));
}

.stage__icon { overflow: visible; }

.stage__name {
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 6px;
}

.stage__copy {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 52ch;
}
.stage--2 .stage__copy { color: var(--body-dark); }
.stage--3 .eyebrow { color: var(--lilac); }
.stage--3 .stage__name { color: var(--white); }
.stage--3 .stage__copy { color: var(--powder); }

/* Icon strokes are drawn on, then loop a small idle gesture */
.draw {
  stroke-dasharray: 100;
  animation: draw .9s var(--ease-out-soft) .2s both;
}
.draw--trend { animation: draw 1.1s var(--ease-out-soft) .8s both; }
.draw--bracket-r { animation: draw .8s var(--ease-out-soft) .2s both, brackets 5s ease-in-out 1.5s infinite; }
.draw--bracket-l { animation: draw .8s var(--ease-out-soft) .5s both, bracketsL 5s ease-in-out 1.5s infinite; }
.draw--arc { animation: draw 1s var(--ease-out-soft) .2s both; }
.draw--arrow { animation: draw .5s ease 1s both; }

.icon__pin { animation: lift 5s ease-in-out 2s infinite; }
.icon__ripple {
  transform-origin: 48px 22px;
  animation: ripple 5s ease-out 2s infinite;
}
.icon__turn {
  transform-origin: 32px 32px;
  /* Linear across the whole run; the hold/turn rhythm lives in the keyframe
     stops, and per-segment easing on a looping rotation reads as a stutter. */
  animation: stepTurn 8s ease-in-out 1.5s infinite;
}

/* --------------------------------------------------------------------------
   8. Contact + footer
   -------------------------------------------------------------------------- */

.contact {
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.contact__wash { filter: blur(30px); }

.contact__inner {
  position: relative;
  padding-block: clamp(32px, 3.5vw, 48px);
  text-align: center;
}

/* Deliberately smaller than the section headings above it — this is a closing
   note, not a section opener. At 18ch the old 60px setting wrapped to three
   lines and the block ran to ~500px on its own. */
.contact__title {
  margin: 0 auto;
  font-weight: 600;
  font-size: clamp(21px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 30ch;
}

.contact__lede {
  margin: 14px auto 0;
  color: var(--powder);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.contact__cta { margin-top: 24px; }

.footer {
  position: relative;
  border-top: 1px solid rgba(217, 226, 254, .25);
}

.footer__inner {
  padding-block: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer__copy,
.footer__tag {
  font-size: 12.5px;
  color: var(--lilac);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__link {
  font-size: 12.5px;
  color: var(--powder);
  transition: color .2s ease;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--white); }

/* ==========================================================================
   PRICING PAGE
   Same system as the homepage: centred shell, #CACCD5 hairlines, notched
   cards with drop shadows, pill buttons, 500/600 weights, -0.02em tracking.
   The source bundle for this page was drawn in a different language
   (full-bleed, #222 hard rules, square buttons, 700 weight) — see README.
   ========================================================================== */

/* -- Sub-page hero -------------------------------------------------------- */

.subhero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.subhero__wash { filter: blur(28px); }

.subhero__inner {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) clamp(36px, 4vw, 56px);
}

.subhero__eyebrow {
  margin: 0 0 24px;
  animation: fadeUp .6s ease-out .1s both;
}

.subhero__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
  animation: fadeUp .7s var(--ease-out-soft) .25s both;
}

.subhero__split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  animation: fadeUp .7s ease-out .45s both;
}

.subhero__lede {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--body);
  max-width: 44ch;
}

.subhero__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 44ch;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

/* -- Fee stages ----------------------------------------------------------- */

.fees {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.fees__inner { padding-block: clamp(56px, 7vw, 100px); }

.fees__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Same three card treatments as the homepage stage cards. */
.feecard {
  background: var(--white);
  border-radius: 8px;
  filter: drop-shadow(0 24px 32px rgba(44, 38, 74, 0.12));
  padding: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.feecard--02 { background: var(--powder); }
.feecard--03 {
  background: var(--ink);
  filter: drop-shadow(0 24px 32px rgba(44, 38, 74, 0.18));
}

.feecard__name {
  margin: 6px 0 0;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feecard__price {
  margin: 20px 0 0;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feecard__term {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--mauve);
}

.feecard__lede {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 56ch;
}

.feecard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feecard__col {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.feecard__col .eyebrow { margin: 0 0 8px; }
/* :not(.eyebrow) — a bare `.feecard__col p` outranks `.eyebrow--sm` and would
   silently restyle the labels. */
.feecard__col p:not(.eyebrow) {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.stopnote {
  --stopnote-pad: 20px;
  background: var(--mist);
  border-radius: 8px;
  padding: 16px var(--stopnote-pad);
  margin: 24px 0 0;
  max-width: calc(66ch + var(--stopnote-pad) * 2);
}
.stopnote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.stopnote strong {
  color: var(--ink);
  font-weight: 600;
}

/* Powder card: the mist callout would vanish, so lift it to white. */
.feecard--02 .feecard__lede,
.feecard--02 .feecard__col p:not(.eyebrow) { color: var(--body-dark); }
/* --mauve on powder is 3.98:1, under the 4.5 minimum for this size. */
.feecard--02 .feecard__term { color: var(--plum); }
.feecard--02 .feecard__col { border-top-color: rgba(44, 38, 74, .25); }
.feecard--02 .stopnote { background: var(--white); }

/* Ink card inverts, as the homepage's stage 03 does. */
.feecard--03 .eyebrow { color: var(--lilac); }
.feecard--03 .feecard__name { color: var(--white); }
.feecard--03 .feecard__price { color: var(--powder); }
.feecard--03 .feecard__term { color: var(--lilac); }
.feecard--03 .feecard__lede,
.feecard--03 .feecard__col p:not(.eyebrow) { color: var(--powder); }
.feecard--03 .feecard__col { border-top-color: rgba(217, 226, 254, .3); }

/* -- Every engagement ----------------------------------------------------- */

.every { border-bottom: 1px solid var(--line); }

.every__inner { padding-block: clamp(56px, 7vw, 96px); }

.every__eyebrow { margin: 0 0 16px; }

.every__title {
  margin: 0 0 clamp(32px, 4vw, 52px);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.every__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.every__item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.every__item h3 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.every__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* -- Security ------------------------------------------------------------- */

.security {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}

.security__inner { padding-block: clamp(56px, 7vw, 96px); }

.security__eyebrow {
  margin: 0 0 16px;
  color: var(--lilac);
}

.security__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 22ch;
}

.security__lede {
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--powder);
  max-width: 58ch;
}

.sec__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.sec__cell {
  background: rgba(217, 226, 254, .08);
  border: 1px solid rgba(217, 226, 254, .25);
  border-radius: 8px;
  padding: 24px 26px;
}
.sec__cell h3 {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.sec__cell p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--powder);
}

/* -- Pricing responsive --------------------------------------------------- */

@media (max-width: 1080px) {
  .every__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .subhero__split { grid-template-columns: minmax(0, 1fr); }
  .subhero__note {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
    max-width: 56ch;
  }
  .subhero__lede { max-width: 56ch; }

  .feecard {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .sec__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .feecard__grid { grid-template-columns: minmax(0, 1fr); }
  .every__grid { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Legal pages (privacy, terms)
   -------------------------------------------------------------------------- */

.legalhead {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.legalhead__inner { padding-block: clamp(44px, 5.5vw, 76px); }

.legalhead__title {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legalhead__meta {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--mauve);
}

/* Full-bleed: legal pages get a wider container than the rest of the site, and
   the table of contents becomes a sticky sidebar. That fills the left-hand
   space with something useful and keeps the prose measure readable — a single
   column running the full width of a 1920px screen is ~190 characters a line.
   Placement is pure CSS; the DOM order is unchanged. */
.legal__inner {
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  column-gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
/* Two columns, one row: contents left, document right. An earlier version put
   every block directly in the grid and spanned the contents with
   `grid-row: 1 / -1` — but -1 resolves against the *explicit* row grid, which
   does not exist here, so the contents occupied row 1 alone and stretched it
   to their own height. That left ~500px of blank page after the first
   paragraph. Wrapping the document in .legal__body removes the need to span. */
.legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.legal__body { min-width: 0; }

.legal__lede {
  margin: 0 0 32px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--body-dark);
}

.legal__body > *:first-child { margin-top: 0; }

.legal__inner h2 {
  margin: 40px 0 10px;
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal__inner h2:first-of-type { margin-top: 0; }

.legal__inner p,
.legal__inner li {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.7;
}

.legal__inner ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal__inner a {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__inner a:hover { color: var(--ink); }

/* Anything the site owner still has to supply is wrapped in this, so an
   unfinished clause is impossible to mistake for a finished one. */
.todo {
  background: #FFF3CD;
  color: #6B4E00;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.legal__note {
  background: var(--mist);
  border-left: 3px solid var(--lilac);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 0 0 36px;
}
.legal__note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Footer on pages with no closing CTA block */
.sitefoot { background: var(--deep); }
.sitefoot .footer { border-top: 0; }

/* Long-form legal documents: numbered sections, tables of contents, the
   all-caps blocks US terms rely on. */

.legal__toc {
  margin: 0 0 40px;
  padding: 20px 22px;
  background: var(--mist);
  border-radius: 8px;
}
.legal__toc h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}
.legal__toc ol {
  margin: 0;
  padding-left: 20px;
}
.legal__toc li {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.5;
  break-inside: avoid;
}
.legal__toc a {
  color: var(--ink);
  text-decoration: none;
}
.legal__toc a:hover { text-decoration: underline; }
.legal__toc a[aria-current='true'] {
  font-weight: 600;
  color: var(--plum);
}

/* Section headings carry their own numbers in the source documents. */
.legal__inner h3 {
  margin: 28px 0 8px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal__inner ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.legal__inner ol > li,
.legal__inner ul > li { margin: 0 0 8px; }

/* Capitalised disclaimer blocks. Kept as written; letter-spacing and a lighter
   weight stop a wall of capitals from shouting louder than it reads on paper. */
.legal__caps {
  font-size: 13.5px !important;
  line-height: 1.75 !important;
  letter-spacing: 0.01em;
  color: var(--body-dark);
}

.legal__addr {
  margin: 0 0 12px;
  padding: 16px 20px;
  background: var(--mist);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  font-style: normal;
}

.legal__updated {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mauve);
}

@media (max-width: 900px) {
  .legal__inner { grid-template-columns: minmax(0, 1fr); }
  .legal__toc {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .legal__toc ol { columns: 2; column-gap: 32px; }
}

@media (max-width: 560px) {
  .legal__toc ol { columns: 1; }
}

/* -- FAQ (pricing) -------------------------------------------------------- */

.faq {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.faq__inner { padding-block: clamp(56px, 7vw, 96px); }

.faq__eyebrow { margin: 0 0 16px; }

.faq__title {
  margin: 0 0 clamp(32px, 4vw, 52px);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Disclosure widgets, so the page shows seven questions rather than seven
   questions and seven answers. <details>/<summary> keeps every answer in the
   HTML — crawlers and answer engines still read them, which is the reason the
   FAQ exists — and gives keyboard support and no-JS behaviour for free.
   A single column: in two columns, opening one item shifts the other. */
.faq__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 88ch;
}

.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
/* Drop the native disclosure triangle in both engines. */
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }

.faq__q:hover { color: var(--plum); }
.faq__item:focus-within .faq__q { color: var(--plum); }

/* A plus that becomes a minus. Drawn in CSS so there is no icon to load. */
.faq__mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
}
.faq__mark::before,
.faq__mark::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .3s var(--ease-out-soft), opacity .2s ease;
}
.faq__mark::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__mark::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.faq__a {
  margin: 0;
  padding: 0 44px 22px 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 68ch;
}
.faq__item[open] .faq__a { animation: faqReveal .28s var(--ease-out-soft) both; }

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- The one-line definition carried in the footer ------------------------ */

.footer__def {
  flex-basis: 100%;
  margin: 0;
  padding-block: 4px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lilac);
  max-width: 96ch;
}

/* ==========================================================================
   RAGU MARKS — the graphic library
   One vocabulary, three scales: icons (64 grid, 2.5 stroke, currentColor),
   the hero composition, and a square-grid texture. All of it grows out of
   the square the wordmark ends in. Reference: graphics.html.
   ========================================================================== */

/* -- Icons ---------------------------------------------------------------- */

.ico {
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: visible;
  color: inherit;
}
.ico--sm { width: 28px; height: 28px; }
.ico--md { width: 44px; height: 44px; }
.ico--lg { width: 56px; height: 56px; }

/* Second tone: guide bars, timeline rules. Inherits a light rule on light
   backgrounds; dark surfaces set --ico-accent themselves. */
.ico__accent { stroke: var(--ico-accent, var(--line)); }
.on-ink,
.feecard--03,
.security { --ico-accent: rgba(217, 226, 254, .45); }

/* Icons on the pricing fee cards mirror the homepage stage cards exactly. */
.feecard__icon {
  display: block;
  margin: 0 0 22px;
  color: var(--ink);
}
.feecard--03 .feecard__icon { color: var(--powder); }

.every__item .ico,
.sec__cell .ico {
  display: block;
  margin: 0 0 14px;
}
.every__item .ico { color: var(--ink); }
.sec__cell .ico   { color: var(--powder); }

/* -- Texture: the wordmark's square, tiled ------------------------------- */

.textured {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='13' y='13' width='2' height='2' fill='%23A79EDC' fill-opacity='.42'/%3E%3C/svg%3E");
  background-size: 28px 28px;
}

/* -- Hero composition: pilot -> gate -> production -> back ---------------- */

.hero__art {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.hg {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  overflow: visible;
}

.hg__label {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--plum);
  opacity: 0;
  animation: hgFade .6s ease-out .4s both;
}

.hg__pip {
  stroke: var(--lilac);
  stroke-width: 2;
  opacity: 0;
  animation: hgFade .4s ease-out calc(.3s + var(--i) * .08s) both;
}

.hg__post,
.hg__line {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.hg__post    { animation: hgDraw .55s var(--ease-out-soft) .95s both; }
.hg__post--2 { animation-delay: 1.1s; }
.hg__line    { animation: hgDraw 1s var(--ease-out-soft) 1.55s both; }

/* Pops scale from their own centre. transform-box makes the SVG element's
   bounding box the reference, so scale(0) collapses in place. */
.hg__node,
.hg__cp,
.hg__dest {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.hg__node rect {
  fill: var(--powder);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.hg__node { animation: hgPop .45s var(--ease-out-soft) 1.4s both, hgBreathe 6s ease-in-out 4.5s infinite; }

.hg__cp {
  fill: var(--ink);
  animation: hgPop .4s var(--ease-out-soft) calc(1.85s + var(--i) * .25s) both;
}
.hg__tick {
  stroke: var(--plum);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hgDraw .35s ease-out calc(2.05s + var(--i) * .25s) both;
}

/* The destination is the wordmark's square, and breathes like it. */
.hg__dest {
  fill: var(--ink);
  animation: hgPop .5s var(--ease-out-soft) 2.65s both, hgBreathe 5s ease-in-out 4s infinite;
}


@keyframes hgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hgDraw { to { stroke-dashoffset: 0; } }
@keyframes hgPop  { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hgBreathe {
  0%, 86%, 100% { transform: scale(1); }
  90%           { transform: scale(1.22); }
  94%           { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   9. Scroll-reveal (progressively enhanced — see main.js)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease-out var(--reveal-delay, 0s),
              transform .7s var(--ease-out-soft) var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10. Keyframes
   -------------------------------------------------------------------------- */

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes riseWord {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fillIn {
  from { color: rgba(44, 38, 74, 0); }
  to   { color: #2C264A; }
}
@keyframes dotPulse {
  0%, 86%, 100% { transform: scale(1); }
  90%           { transform: scale(1.5); }
  94%           { transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes draw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@keyframes ripple {
  0%        { transform: scale(.6);  opacity: .8; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes brackets {
  0%, 78%, 100% { transform: translateX(0); }
  86%, 92%      { transform: translateX(3px); }
}
@keyframes bracketsL {
  0%, 78%, 100% { transform: translateX(0); }
  86%, 92%      { transform: translateX(-3px); }
}
/* Four quarter-turns to a full revolution, so the loop point lands back at
   0deg and is invisible. Ending at 90deg meant a hard snap back every cycle. */
@keyframes stepTurn {
  0%,   14% { transform: rotate(0deg); }
  25%,  39% { transform: rotate(90deg); }
  50%,  64% { transform: rotate(180deg); }
  75%,  89% { transform: rotate(270deg); }
  100%      { transform: rotate(360deg); }
}
@keyframes lift {
  0%, 80%, 100% { transform: translateY(0); }
  88%           { transform: translateY(-3px); }
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero__art { justify-content: flex-start; }
  .hg { max-width: 480px; }
  .hero__lede { max-width: 52ch; }

  /* Sticky stacking needs tall viewports and short cards — neither holds here */
  .stage {
    position: static;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      'icon meta'
      'copy copy';
    gap: 20px 24px;
    align-items: start;
  }
  .stage__icon { grid-area: icon; }
  .stage__meta { grid-area: meta; align-self: center; }
  .stage__copy { grid-area: copy; max-width: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 65px; }

  .nav__inner {
    padding-block: 14px;
    gap: 10px;
  }
  .nav__links { gap: 14px; }
  .nav__link { font-size: 12.5px; }
  .wordmark { font-size: 19px; }
  .btn--sm { padding: 10px 14px; font-size: 12.5px; }

  .ticker { display: block; }
  .ticker__label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter);
    justify-content: flex-start;
  }
  .ticker__group { gap: 40px; }
  .ticker__name { font-size: 15px; }

  .hero__actions { gap: 16px; }
  .footer__inner { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'icon'
      'meta'
      'copy';
  }
}

/* --------------------------------------------------------------------------
   12. Reduced motion
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Anything animated in from a hidden state must still end up visible */
  .js [data-reveal],
  .hero__eyebrow,
  .hero__word,
  .hero__lede,
  .hero__actions,
  .faq__item[open] .faq__a,
  .hg__label,
  .hg__pip,
  .hg__node,
  .hg__cp,
  .hg__dest {
    opacity: 1 !important;
    transform: none !important;
  }
  .hg__post,
  .hg__line,
  .hg__tick { stroke-dashoffset: 0 !important; }
  .hero__word--outline { color: var(--ink); }
  .draw,
  .draw--trend,
  .draw--arc,
  .draw--arrow,
  .draw--bracket-l,
  .draw--bracket-r { stroke-dasharray: none; }
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */

@media print {
  .nav,
  .wash,
  .ticker { display: none !important; }

  body { color: #000; }
  .stage { position: static; filter: none; }
  .contact { background: #fff; }
  .contact__title,
  .contact__lede,
  .wordmark--footer,
  .footer__tag { color: #000; }
}
