/* Spluno marketing site. Mobile-first; see README.md for the design system. */

/* ---------- Fonts (self-hosted Lato, OFL) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/lato-900-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/lato-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0F172A;
  --navy-deep: #0B1220;
  --navy-top: #1E2B4D;
  --blue: #298CDE;
  --blue-hi: #5DB4F5;
  --blue-lo: #1F7BD0;
  --blue-text: #1A6FBF;         /* coin blue darkened for AA text on light */
  --light-blue: #9FC9F2;
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --grey: #6B7280;
  --grey-paper: #5B6270;       /* grey text on --paper (AA); #6B7280 only reaches 4.43:1 there */
  --owed: #15803D;
  --owe: #DC2626;
  --line: rgba(15, 23, 42, 0.08);
  --line-dark: rgba(255, 255, 255, 0.1);

  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-card: 24px;
  --radius-pill: 999px;
  --gutter: 16px;
  --max: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --nav-h: 72px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--blue-text); text-underline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 88px; }
@media (min-width: 1024px) { .section { padding-block: 128px; } }

.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-top) 0%, var(--navy-deep) 100%);
  isolation: isolate;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.section--dark .eyebrow { color: var(--light-blue); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.section-head p { margin-top: 16px; color: var(--grey); }
.section--dark .section-head p { color: var(--light-blue); }
@media (min-width: 1024px) { .section-head { margin-bottom: 64px; } }

/* ---------- Buttons and badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font: 700 0.9375rem/1 var(--font);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #1E293B; }

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.badges a {
  display: block;
  flex: none;
  border-radius: 9px;
  transition: transform 0.2s var(--ease);
}
.badges a:hover { transform: translateY(-2px); }
.badge-apple,
.badge-play { max-width: none; }
.badge-apple { height: 48px; width: auto; }
/* Google's badge has transparent padding built in: scale ~1.5x and pull the padding back in */
.badge-play { height: 72px; width: auto; margin: -12px -11px; }
.badges--center { justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.nav.is-solid,
.nav.is-open {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  color: var(--navy);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo { display: block; padding: 6px 0; border-radius: 6px; }
.nav__logo svg { height: 30px; width: auto; }
/* The official logo files put the coin flush against the top and left edges of the viewBox,
   so the default SVG clipping shaves the circle flat there. Let it paint past the box. */
.nav__logo svg,
.footer__logo svg,
.cta__logo { overflow: visible; }
@media (min-width: 768px) { .nav__logo svg { height: 32px; } }

/* The inline logo is the official horizontal SVG. The wordmark switches between
   the two official colourways (dark = white text, light = navy text). */
.logo-wordmark path { fill: #FFFFFF; transition: fill 0.3s; }
.nav.is-solid .logo-wordmark path,
.nav.is-open .logo-wordmark path { fill: #0F172A; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav .btn--navy { background: var(--white); color: var(--navy); }
.nav .btn--navy:hover { background: #E8EEF6; }
.nav.is-solid .btn--navy,
.nav.is-open .btn--navy { background: var(--navy); color: var(--white); }
.nav.is-solid .btn--navy:hover,
.nav.is-open .btn--navy:hover { background: #1E293B; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav__toggle .icon { margin: auto; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

@media (max-width: 767px) {
  .js .nav__toggle { display: block; }
  .js .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.25);
  }
  .js .nav.is-open .nav__menu { display: flex; }
  .js .nav__links { flex-direction: column; gap: 0; }
  .js .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .js .nav__menu .btn { min-height: 52px; font-size: 1rem; }
  .js .nav.is-open { background: var(--white); }
  /* Without JS, show links in a compact row */
  html:not(.js) .nav__menu .btn { display: none; }
  html:not(.js) .nav__links { gap: 14px; }
  html:not(.js) .nav__links a { font-size: 0.875rem; }
}

/* Without JS the nav never turns solid, so give it a dark backing over light sections */
html:not(.js) .nav { background: rgba(11, 18, 32, 0.94); }

/* ---------- Coin animation (nav logo halves slide together on load) ---------- */
.coin-half { transform-box: fill-box; transform-origin: center; }
.js .coin-l { animation: coin-l 1.1s var(--ease) 0.15s both; }
.js .coin-r { animation: coin-r 1.1s var(--ease) 0.15s both; }
@keyframes coin-l { from { transform: translate(-14%, -6%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes coin-r { from { transform: translate(14%, 6%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;           /* crops the phones at the bottom edge */
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 0;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-top) 0%, var(--navy-deep) 78%);
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__glow::before {
  /* the drifting coin-blue glow */
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -380px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.55), rgba(41, 140, 222, 0.18) 55%, transparent);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -260px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(93, 180, 245, 0.18), transparent);
  animation: drift 26s ease-in-out -8s infinite alternate-reverse;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.06); }
  100% { transform: translate(-120px, -30px) scale(0.98); }
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__copy { max-width: 600px; }
.hero__copy .eyebrow { color: var(--light-blue); }
.hero h1 {
  font-size: clamp(2.5rem, 7.4vw, 4.5rem);
  line-height: 1.02;
}
.hero h1 span { display: block; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue-hi), #8CCBFA 60%, var(--blue-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.125rem;
  color: #C7DDF5;
}
.hero .badges { margin-top: 36px; }

/* hero entrance */
.js .hero__copy > * { animation: rise 0.9s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.js .hero__stage { animation: rise-far 1.2s var(--ease) 0.2s both; }
/* transform only: hero content must never start at opacity 0, or the browser drops it as the LCP candidate */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes rise-far { from { transform: translateY(48px); } to { transform: none; } }

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--nav-h) + 72px); }
  .hero__grid { grid-template-columns: 1.02fr 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(3.5rem, 5.4vw, 4.5rem); }
  .hero__copy { padding-bottom: 96px; }
  .hero__sub { font-size: 1.25rem; }
}

/* ---------- Phone frame ---------- */
.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.14);
  background: linear-gradient(145deg, #2A3448, #0B1220 45%, #1C2537);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 2px 4px rgba(11, 18, 32, 0.15),
    0 30px 60px -20px rgba(11, 18, 32, 0.45),
    0 70px 120px -40px rgba(11, 18, 32, 0.5);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.11);
  background: #F2F2F4;
}

/* ---------- Hero stage (fanned phones + chips) ---------- */
.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
  margin-bottom: -200px;     /* phones rise out of the bottom edge and get cropped */
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 10% 10% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.55), transparent);
  filter: blur(30px);
}
.hero__phones { position: relative; }
.hero__phones .phone--front { --w: min(280px, 74vw); z-index: 2; }
.hero__phones .phone--back { display: none; }

.js .float { animation: float 7s ease-in-out infinite; }
.js .float--b { animation-duration: 8s; animation-delay: -2s; }
.js .float--c { animation-duration: 9s; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 40px -12px rgba(11, 18, 32, 0.5);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}
.chip strong { display: block; font-size: 0.875rem; }
.chip small { display: block; color: var(--grey); font-size: 0.75rem; }
.chip__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: 0.875rem;
}
.chip__avatar--blue { background: linear-gradient(135deg, var(--blue-hi), var(--blue-lo)); }
.chip__avatar .icon { width: 18px; height: 18px; }
.chip .owed { color: var(--owed); }
.chip--paid { left: -8px; top: 22%; }
.chip--owed { right: -8px; top: 46%; }
.chip--voice { display: none; }

@media (max-width: 399px) {
  .chip { font-size: 0.75rem; padding: 8px 12px 8px 8px; }
  .chip--paid { left: -4px; }
  .chip--owed { right: -4px; }
}

@media (min-width: 768px) {
  .hero__phones .phone--front { --w: 280px; }
  .chip--paid { left: -110px; }
  .chip--owed { right: -120px; }
}

@media (min-width: 1024px) {
  .hero__stage { margin-bottom: -170px; padding-top: 8px; }
  .hero__phones { width: 560px; height: 680px; }
  .hero__phones .phone { position: absolute; }
  .hero__phones .phone--front { --w: 290px; left: 135px; top: 0; }
  .hero__phones .phone--back { display: block; --w: 236px; top: 72px; opacity: 0.9; filter: saturate(0.9) brightness(0.92); }
  .hero__phones .phone--left { left: 0; transform: rotate(-7deg); }
  .hero__phones .phone--right { right: 0; transform: rotate(7deg); }
  .chip--paid { left: -24px; top: 170px; }
  .chip--owed { right: -36px; top: 300px; }
  .chip--voice { display: flex; left: 40px; top: 410px; max-width: 270px; white-space: normal; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__phones { transform: scale(0.92); transform-origin: top center; }
  .chip--owed { right: -4px; }
}
@media (min-width: 1280px) {
  .hero__phones { width: 600px; }
  .hero__phones .phone--front { --w: 300px; left: 150px; }
  .hero__phones .phone--back { --w: 248px; }
}

/* ---------- Feature strip ---------- */
.strip { padding-block: 56px; }
@media (min-width: 1024px) { .strip { padding-block: 72px; } }

.strip__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  /* seven items: the odd one out spans both columns */
  .strip__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) { .strip__list { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }
@media (min-width: 1280px) { .strip__list { grid-template-columns: repeat(7, 1fr); gap: 24px; } }

.strip__item h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.strip__item p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--grey-paper); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-text);
}

/* ---------- How it works: a connected path ---------- */
/* Phones: a vertical timeline, rail on the left. 1024px+: three columns joined by an S-curve. */
.path { position: relative; max-width: 1080px; margin-inline: auto; }
.path__line { display: none; }

.path__steps {
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.path__step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 64px;
}
.path__step h3 { order: 1; font-size: 1.375rem; line-height: 1.2; }
.path__step p { order: 2; margin-top: 8px; color: var(--grey); font-size: 1.0625rem; }
.path__ui { position: relative; isolation: isolate; order: 3; margin-top: 24px; }

/* numbered node */
.path__node {
  position: absolute;
  z-index: 2;
  left: 0;
  top: -9px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.0625rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-hi), var(--blue-lo));
  box-shadow: 0 0 0 6px var(--white), 0 8px 20px -6px rgba(31, 123, 208, 0.6);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
  transition-delay: calc(var(--delay, 0s) + 0.25s);
}
.js .path__step:not(.is-in) .path__node {
  background: var(--white);
  color: var(--grey);
  box-shadow: 0 0 0 6px var(--white), inset 0 0 0 2px rgba(15, 23, 42, 0.14);
}

/* vertical rail between nodes (phones): grey track plus a blue fill that grows down */
.path__step:not(:last-child)::before,
.path__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 35px;
  bottom: -65px;
  width: 2px;
  border-radius: 2px;
}
.path__step:not(:last-child)::before { background: rgba(15, 23, 42, 0.1); }
.path__step:not(:last-child)::after {
  background: linear-gradient(180deg, var(--blue-hi), var(--blue-lo));
  transform-origin: top;
  transition: transform 1s var(--ease) calc(var(--delay, 0s) + 0.4s);
}
.js .path__step:not(.is-in)::after { transform: scaleY(0); }

/* mini UI snippets: real demo data, drawn in HTML */
.mini {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.35);
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: left;
}
.mini strong { font-size: 1.0625rem; }
.mini small { color: var(--grey); font-size: 0.8125rem; }

.mini--hangout { grid-template-columns: 1fr auto; align-items: center; }
.mini--hangout strong { grid-column: 1; }
.mini--hangout .mini__avatars { grid-column: 2; grid-row: 1 / span 2; }
.mini--hangout small { grid-column: 1; }
.mini__avatars { display: flex; }
.mini__avatars i,
.mini__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  font-style: normal;
  font-weight: 900;
  font-size: 0.75rem;
}
.mini__avatars i { box-shadow: 0 0 0 2px var(--white); }
.mini__avatars i + i { margin-left: -7px; }
.mini__avatars i:last-child { background: #E8EEF6; color: var(--navy); }
.mini__pill {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.8125rem;
}
.mini__pill .icon { width: 16px; height: 16px; color: var(--blue-text); }

.mini--voice { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.mini__mic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue-lo));
  color: var(--white);
}
.mini__mic .icon { width: 18px; height: 18px; }
.mini__quote { font-weight: 700; color: var(--navy); }
.mini__result {
  grid-column: 2;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(41, 140, 222, 0.1);
  color: var(--blue-text);
  font-weight: 700;
  font-size: 0.8125rem;
}

.mini--pay { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; }
.mini__who { display: grid; font-weight: 700; color: var(--navy); }
.mini__who b { font-weight: 900; font-size: 1rem; color: var(--owed); }
.mini__done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
}
.mini__done .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.mini__who { white-space: nowrap; }
@media (max-width: 399px) {
  /* keep "Ananya pays you" on one line: the pill shrinks to its tick */
  .mini { padding: 16px 14px; }
  .mini--pay { column-gap: 10px; }
  .mini__done { padding: 6px; }
  .mini__done span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (min-width: 1024px) {
  /* the curve: two stretched SVGs, the blue one revealed left to right */
  .path__line {
    display: block;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
  }
  .js .path__line.reveal { opacity: 1; transform: none; }
  .path__line svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
  }
  .path__base path { stroke: rgba(15, 23, 42, 0.14); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
  .path__progress path { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }
  /* The curve spans x 100 to 500 of the 600-wide box, so the clip sweeps just that span:
     linear over 1.6s, it reaches node 1 at 0s, node 2 at 0.8s and node 3 at 1.6s. */
  .path__progress { transition: clip-path 1.6s linear; clip-path: inset(-20px 16.667% -20px 0); }
  .js .path__line:not(.is-in) .path__progress { clip-path: inset(-20px 83.333% -20px 0); }

  .path__steps { position: relative; z-index: 1; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .path__step {
    align-items: center;
    padding: 0 24px;
    text-align: center;
  }
  .path__step::before,
  .path__step::after { display: none; }
  .path__node { position: relative; top: 0; left: auto; order: 0; }
  .path__ui {
    order: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 168px;
    margin: 28px 0 24px;
  }
  .path__ui::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(41, 140, 222, 0.14), transparent);
  }
  .path__step h3 { order: 2; }
  .path__step p { order: 3; max-width: 30ch; }
}

/* ---------- Feature sections: shared text + phone layout ---------- */
.dive { overflow: hidden; }
.dive__grid,
.settle__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.dive__copy,
.settle__copy { max-width: 520px; }
.dive__copy h2,
.settle__copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.dive__copy > p,
.settle__copy > p { margin-top: 20px; color: #3B4556; }
.dive__copy > p + p,
.settle__copy > p + p { margin-top: 14px; }

.dive__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.dive__visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.16), transparent);
}
.dive__visual .phone { z-index: 1; --w: min(280px, 72vw); }

@media (min-width: 900px) {
  .dive__grid,
  .settle__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .dive__visual .phone { --w: 290px; }
  .dive--flip .dive__copy { order: 2; }
}
@media (max-width: 899px) {
  .dive__copy,
  .settle__copy { margin-inline: auto; }
}

/* ---------- Voice: dark, centred, "you say it" -> "Spluno fills it in" ---------- */
.voice { overflow: hidden; }
.voice::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 1000px;
  height: 800px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.32), transparent);
}
.voice .section-head { margin-bottom: 40px; }

.transcript {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 14px 22px 14px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.transcript__mic {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue-lo));
  color: var(--white);
}
.transcript__mic::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(93, 180, 245, 0.5);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.transcript__text {
  flex: 1;
  font-size: clamp(1rem, 2.2vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.35;
}
.wave {
  display: none;
  align-items: center;
  gap: 3px;
  height: 32px;
  flex: none;
}
.wave i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--light-blue);
  transform: scaleY(var(--h));
  animation: wave 1.1s ease-in-out var(--d) infinite alternate;
}
@keyframes wave { from { transform: scaleY(calc(var(--h) * 0.35)); } to { transform: scaleY(var(--h)); } }
@media (min-width: 768px) { .wave { display: flex; } }

.voice__flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 16px;
  justify-items: center;
  align-items: start;
}
.voice__step { margin: 0; display: grid; justify-items: center; gap: 16px; }
.voice__step .phone { --w: min(250px, 42vw); }
.voice__step figcaption { font-size: 0.9375rem; font-weight: 700; color: var(--light-blue); }
.voice__fields {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.voice__fields li {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
}
.voice__fields span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
@media (min-width: 900px) {
  .voice__flow { grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
  .voice__fields {
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    position: relative;
  }
  .voice__fields::before {
    /* a faint line connecting the two phones */
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: -40px;
    right: -40px;
    border-top: 2px dashed rgba(159, 201, 242, 0.35);
  }
  .voice__fields li { min-width: 200px; }
  .voice__step .phone { --w: 270px; }
  .voice__step:first-child { justify-self: end; }
  .voice__step:last-child { justify-self: start; }
}

/* ---------- By day: floating day cards ---------- */
.day-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.3);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--grey);
  white-space: nowrap;
}
.day-card small {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.day-card strong { font-size: 1.0625rem; color: var(--navy); }
.day-card em { font-style: normal; font-weight: 700; }
.day-card .owed { color: var(--owed); }
.day-card .owe { color: var(--owe); }
.day-card--a { top: 16%; left: 0; }
.day-card--b { bottom: 18%; right: 0; }
@media (min-width: 1200px) {
  .day-card--a { left: -2%; }
  .day-card--b { right: -2%; }
}
@media (max-width: 519px) { .day-card { display: none; } }

/* ---------- Settle up: untangle diagram ---------- */
.untangle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--paper);
  border: 1px solid var(--line);
}
.untangle__panel { text-align: center; }
.untangle__panel svg { width: 100%; height: auto; max-width: 200px; margin-inline: auto; }
.untangle__caption { margin: 6px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--grey-paper); }
.untangle__panel--after .untangle__caption { color: var(--blue-text); }
.untangle__arrow { color: var(--grey); }
.untangle__arrow .icon { width: 20px; height: 20px; }

.untangle .edge { stroke: rgba(15, 23, 42, 0.28); stroke-width: 1.5; }
.untangle .edge--after { stroke: var(--blue); stroke-width: 2.5; }
.untangle marker path { fill: rgba(15, 23, 42, 0.4); }
.untangle #arr-after path { fill: var(--blue); }
.untangle .node circle { fill: var(--navy); }
.untangle .node--you circle { fill: var(--blue-lo); }
.untangle .node text { fill: var(--white); font: 900 15px var(--font); }

/* ---------- Totals + Friends: two-up cards ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) { .bento { grid-template-columns: 1fr 1fr; gap: 24px; } }
.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px 28px 0;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .bento__card { padding: 56px 48px 0; } }
.bento__card h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.bento__card > p:not(.eyebrow) { margin: 16px 0 40px; color: #3B4556; max-width: 30em; }
.bento__visual {
  position: relative;
  display: flex;
  justify-content: center;
  height: 380px;
  margin-top: auto;           /* pin to the card bottom so both phones line up */
  overflow: hidden;
}
.bento__visual::before {
  content: "";
  position: absolute;
  inset: 10% 5% -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.18), transparent);
}
.bento__visual .phone { --w: min(280px, 70vw); }
@media (min-width: 900px) { .bento__visual { height: 440px; } }

/* ---------- Dark mode: light / both / dark preview ---------- */
.appearance { overflow: hidden; }
.appearance__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.appearance__copy { max-width: 520px; }
.appearance__copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.appearance__copy > p:not(.eyebrow) { margin-top: 20px; color: #3B4556; }
.appearance__list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  color: #3B4556;
}
.appearance__list li { display: flex; align-items: flex-start; gap: 12px; }
.appearance__list .icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-text);
}

.appearance__demo {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 28px;
}

/* segmented control: real radio buttons, styled through their labels */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
}
.seg label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--grey-paper);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.seg label:hover { color: var(--navy); }
.seg .icon { width: 18px; height: 18px; }
@media (max-width: 359px) { .seg label { padding: 8px 11px; gap: 6px; } }
#tp-light:checked ~ .seg label[for="tp-light"],
#tp-both:checked ~ .seg label[for="tp-both"],
#tp-dark:checked ~ .seg label[for="tp-dark"] { background: var(--navy); color: var(--white); }
#tp-light:focus-visible ~ .seg label[for="tp-light"],
#tp-both:focus-visible ~ .seg label[for="tp-both"],
#tp-dark:focus-visible ~ .seg label[for="tp-dark"] { outline: 3px solid var(--blue); outline-offset: 2px; }

.appearance__stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.appearance__stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 90%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.18), transparent);
}
.appearance__phone { z-index: 2; --w: min(280px, 72vw); }
.appearance__phone .shot { display: block; }
.appearance__phone .shot--light,
.appearance__phone .shot--dark {
  position: absolute;
  top: calc(var(--w) * 0.032);
  left: calc(var(--w) * 0.032);
  right: calc(var(--w) * 0.032);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
/* show the chosen screen; hide the split from screen readers when it's covered */
#tp-light:checked ~ .appearance__stage .shot--light,
#tp-dark:checked ~ .appearance__stage .shot--dark {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.appearance__phone .shot--both { transition: none; }
#tp-light:checked ~ .appearance__stage .shot--both,
#tp-dark:checked ~ .appearance__stage .shot--both { visibility: hidden; transition: visibility 0s linear 0.45s; }

/* on the white section, fill the control and icon tiles so they don't vanish */
.section--white .seg,
.section--white .appearance__list .icon { background: var(--paper); }

.phone--side { display: none; }

@media (min-width: 900px) {
  .appearance__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .appearance__phone { --w: 290px; }
}
@media (min-width: 1100px) {
  .appearance__stage { max-width: 560px; }
  .phone--side {
    display: block;
    position: absolute;
    z-index: 1;
    top: 56px;
    --w: 236px;
    filter: saturate(0.9) brightness(0.97);
  }
  .phone--side-l { left: 0; transform: rotate(-7deg); }
  .phone--side-r { right: 0; transform: rotate(7deg); }
}
@media (max-width: 899px) {
  .appearance__copy { margin-inline: auto; }
}

/* ---------- Everywhere you are ---------- */
.devices::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(41, 140, 222, 0.22), transparent 70%);
}
.devices__grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .devices__grid { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .device--ipad { grid-column: span 7; }
  .device--iphone { grid-column: span 5; }
  .device--watch { grid-column: span 7; }
  .device--android { grid-column: span 5; }
}

.device {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 32px 28px 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-dark);
}
.device__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--light-blue);
}
.device__label .icon { width: 20px; height: 20px; }
.device h3 { margin-top: 12px; font-size: 1.5rem; }
.device p { margin-top: 8px; color: #C7DDF5; font-size: 1rem; max-width: 30em; }
.device__visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.device__visual::before {
  content: "";
  position: absolute;
  inset: 20% 10% -20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.45), transparent);
  filter: blur(10px);
}
.device__visual > * { position: relative; }
.device__crop { overflow: hidden; height: 300px; }

.device--iphone .phone { --w: 230px; }

.tablet {
  --w: 520px;
  width: min(var(--w), 100%);
  padding: calc(var(--w) * 0.022);
  border-radius: calc(var(--w) * 0.06);
  background: linear-gradient(145deg, #2A3448, #0B1220 45%, #1C2537);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.tablet img {
  width: 100%;
  aspect-ratio: 2064 / 2752;
  border-radius: calc(var(--w) * 0.04);
  background: #F2F2F4;
}

.watch {
  --w: 150px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.075);
  border-radius: calc(var(--w) * 0.3);
  background: linear-gradient(145deg, #3A4458, #10172A 50%, #222B3E);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  margin-bottom: 40px;
}
.watch::after {
  /* digital crown */
  content: "";
  position: absolute;
  right: calc(var(--w) * -0.045);
  top: 28%;
  width: calc(var(--w) * 0.05);
  height: 18%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #2A3448, #4B5568);
}
.watch img {
  width: 100%;
  aspect-ratio: 416 / 496;
  border-radius: calc(var(--w) * 0.22);
  background: #000;
}
@media (min-width: 480px) { .watch { --w: 170px; } }
.watch + .watch { margin-bottom: 72px; }

.device--android .device__visual { align-items: center; padding-bottom: 40px; }
.android-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.android-card .icon-tile {
  width: 88px; height: 88px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: var(--light-blue);
}
.android-card .icon-tile .icon { width: 40px; height: 40px; stroke-width: 1.5; }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 1.1875rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 22px; height: 22px;
  color: var(--grey);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p {
  padding: 0 48px 28px 4px;
  color: #3B4556;
}

/* ---------- Final CTA ---------- */
.cta { overflow: hidden; text-align: center; }
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.4), transparent);
}
.cta__logo { width: 156px; height: auto; margin: 0 auto 40px; }
.cta h2 { font-size: clamp(2.5rem, 6.4vw, 4rem); }
.cta p { margin-top: 16px; color: var(--light-blue); font-size: 1.125rem; }
.cta .badges { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer {
  padding-block: 48px;
  background: var(--navy-deep);
  color: var(--light-blue);
  border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
.footer__logo svg { height: 28px; width: auto; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { width: 100%; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.875rem; }
.footer__copy a { color: inherit; text-decoration: underline; text-decoration-color: rgba(159, 201, 242, 0.4); }
.footer__copy a:hover { color: var(--white); }

/* ---------- Legal pages ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -200px;
  top: -200px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 140, 222, 0.4), transparent);
}
.page-head h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
.page-head p { margin-top: 14px; color: var(--light-blue); }
@media (min-width: 1024px) { .page-head { padding-top: calc(var(--nav-h) + 88px); padding-bottom: 80px; } }

.legal { padding-block: 48px 96px; }
.legal__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .legal { padding-block: 72px 128px; }
  .legal__grid { grid-template-columns: 260px minmax(0, 760px); gap: 64px; justify-content: center; }
}

.toc {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.toc h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.toc ol { margin: 14px 0 0; padding: 0 0 0 1.4em; display: grid; gap: 8px; }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--blue-text); text-decoration: underline; }
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
}

.prose {
  padding: 32px 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 1.0625rem;
  color: #2B3447;
}
@media (min-width: 768px) { .prose { padding: 56px 64px; } }
.prose section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.625rem; color: var(--navy); }
.prose h3 { margin-top: 28px; font-size: 1.1875rem; font-weight: 700; letter-spacing: 0; color: var(--navy); }
.prose p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 1.25em; display: grid; gap: 8px; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--navy); }
.prose .callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #EEF6FD;
  border: 1px solid rgba(41, 140, 222, 0.25);
  color: var(--navy);
}
.prose address { font-style: normal; }
.prose dl { margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.prose dt { font-weight: 700; color: var(--navy); }
.prose dd { margin: 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion: no motion at all ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .path__line:not(.is-in) .path__progress { clip-path: none; }
  .js .path__step:not(.is-in)::after { transform: none; }
  .js .path__step:not(.is-in) .path__node {
    background: linear-gradient(135deg, var(--blue-hi), var(--blue-lo));
    color: var(--white);
    box-shadow: 0 0 0 6px var(--white), 0 8px 20px -6px rgba(31, 123, 208, 0.6);
  }
}

/* ---------- Print: show everything ---------- */
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .nav { position: absolute; }
}
