/* ==========================================================================
   CliniPro — site styles
   Palette and type live in custom properties at the top, so a brand change
   is a few lines rather than a search through the file.
   ========================================================================== */

:root {
  /* Brand */
  --navy:      #1E2A5A;
  --navy-900:  #0F1633;
  --navy-800:  #172150;
  --navy-600:  #2C3B7A;
  --mint:      #4EBA88;
  --mint-600:  #36A173;
  --mint-100:  #D6F1E3;
  --mint-50:   #EEF9F3;
  --sky:       #2E8BD9;   /* the logo's own blue, used to tie it in */
  --sky-50:    #EBF4FD;

  /* Neutrals */
  --ink:       #18203F;
  --body:      #3E4868;
  --slate:     #6A7491;
  --line:      #E3E8F2;
  --line-soft: #EEF1F7;
  --soft:      #F6F8FC;
  --white:     #FFFFFF;

  /* Type */
  --sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  /* Space */
  --wrap: 1200px;
  --gutter: 28px;
  --section-y: 120px;

  /* Shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Depth: layered and navy-tinted rather than grey, so it reads as light
     rather than dirt. */
  --sh-1: 0 1px 2px rgba(15,22,51,.05), 0 1px 1px rgba(15,22,51,.03);
  --sh-2: 0 2px 4px rgba(15,22,51,.04), 0 8px 24px -6px rgba(15,22,51,.10);
  --sh-3: 0 4px 8px rgba(15,22,51,.04), 0 24px 56px -12px rgba(15,22,51,.18);
  --sh-mint: 0 10px 30px -8px rgba(78,186,136,.55);

  --grad-brand: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 55%, var(--sky) 130%);
  --grad-accent: linear-gradient(100deg, var(--mint) 0%, #3FAEA0 55%, var(--sky) 110%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); text-decoration-color: rgba(30,42,90,.25); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 0 .5em;
}
/* Balanced wrapping so a headline never strands one word on its own line. */
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -0.038em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.9vw, 3.05rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* The serif accent: one or two words per headline, never a whole sentence. */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.on-dark .accent { background: linear-gradient(100deg, #7FE0B0, #6BC7E8); -webkit-background-clip: text; background-clip: text; }

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

section { padding-block: var(--section-y); position: relative; }

.lede { font-size: 1.16rem; line-height: 1.7; color: var(--slate); max-width: 40rem; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .95rem .42rem .5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  font-size: .82rem; font-weight: 600;
  color: var(--navy);
  letter-spacing: .005em;
}
.pill__dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint-50); color: var(--mint-600);
}
.on-dark .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.on-dark .pill__dot { background: rgba(78,186,136,.18); color: #7FE0B0; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint-600);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.on-dark .kicker { color: #7FE0B0; }

.head { max-width: 46rem; margin-bottom: 64px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }
.head--center .kicker::before { display: none; }

.on-dark { color: rgba(255,255,255,.74); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lede { color: rgba(255,255,255,.7); }

/* --- Buttons ---------------------------------------------------------------- */

.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h);
  padding: 0 1.6rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit; font-size: .98rem; font-weight: 650;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--mint);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--sh-mint);
}
.btn--primary:hover { background: var(--mint-600); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 36px -10px rgba(78,186,136,.7); }

.btn--light { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--sh-1); }
.btn--light:hover { border-color: #C9D2E3; transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn--glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.btn--glass:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }

.btn--sm { --h: 44px; padding: 0 1.15rem; font-size: .92rem; border-radius: 12px; }

/* --- Header ----------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 80;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(15,22,51,.25);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.site-logo img { height: 40px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  font-size: .95rem; font-weight: 550;
  color: var(--body);
  text-decoration: none;
  padding: .55rem .9rem;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:not(.btn):hover { color: var(--navy); background: rgba(30,42,90,.05); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; background: rgba(30,42,90,.06); }
.nav .btn { margin-left: 12px; }

.header-cta { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--navy); transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ''; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ''; position: absolute; top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ------------------------------------------------------------------- */

.hero {
  padding-top: 168px;
  padding-bottom: 120px;
  overflow: hidden;
  isolation: isolate;
}
/* Soft colour fields and a faint clinical grid — depth without decoration. */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(48% 55% at 82% 28%, rgba(46,139,217,.16), transparent 70%),
    radial-gradient(42% 50% at 62% 78%, rgba(78,186,136,.18), transparent 70%),
    radial-gradient(40% 45% at 6% 8%,  rgba(78,186,136,.10), transparent 70%),
    linear-gradient(180deg, #FBFCFE 0%, #F4F7FC 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(30,42,90,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,42,90,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { margin: 26px 0 24px; }
.hero__sub { font-size: 1.2rem; line-height: 1.65; color: var(--slate); max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__trust {
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  font-size: .88rem; color: var(--slate);
}
.hero__trust-item { display: inline-flex; align-items: center; gap: .5rem; font-weight: 550; }
.hero__trust-item svg { color: var(--mint-600); flex-shrink: 0; }

/* The composed product visual */
.stage { position: relative; height: 640px; }
.stage__inner { position: relative; height: 100%; }
.stage__glow {
  position: absolute; left: 50%; top: 50%;
  width: 520px; height: 520px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78,186,136,.28), rgba(46,139,217,.12) 45%, transparent 70%);
  filter: blur(10px);
}
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }

.float {
  position: absolute;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  box-shadow: var(--sh-3);
  padding: 16px 18px;
  z-index: 3;
}
/* Cards bite into the phone's frame, not its content: each overlaps the
   screen edge by about the width of the bezel, so no field is hidden. */
.float--sign { left: -84px; top: 128px; width: 222px; }
.float--progress { right: -64px; top: 296px; width: 226px; }
.float--report { left: -34px; bottom: 46px; width: 208px; }

.js .float { animation: drift 7s ease-in-out infinite; }
.js .float--progress { animation-delay: -2.4s; }
.js .float--report { animation-delay: -4.6s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.float__row { display: flex; align-items: center; gap: 11px; }
.float__icon {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
}
.float__icon--mint { background: var(--mint-50); color: var(--mint-600); }
.float__icon--sky { background: var(--sky-50); color: var(--sky); }
.float__icon--navy { background: #EDEFF8; color: var(--navy); }
.float__title { font-size: .86rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.float__meta { font-size: .76rem; color: var(--slate); line-height: 1.35; }
.float__bar { margin-top: 12px; height: 7px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.float__bar i { display: block; height: 100%; width: 38%; border-radius: 99px; background: var(--grad-accent); }
.float__sig { margin-top: 10px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }

/* --- Phone mockup: an accurate sketch of the real app ------------------------ */

.phone {
  width: 300px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #2A3566, #101734);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.08),
    0 2px 4px rgba(15,22,51,.1),
    0 40px 80px -24px rgba(15,22,51,.45);
  z-index: 2;
}
.phone__screen {
  border-radius: 37px;
  overflow: hidden;
  background: #F7F8FC;
  height: 600px;
  position: relative;
}
.phone__island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 20px; background: #0B1027; z-index: 4;
}
.app-status { height: 46px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: .7rem; font-weight: 700; color: var(--ink); }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 8px 18px 14px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.app-body { padding: 0 16px; }
.app-field { margin-bottom: 11px; }
.app-label { font-size: .64rem; font-weight: 700; letter-spacing: .02em; color: var(--slate); margin-bottom: 4px; }
.app-input {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 11px; font-size: .76rem; font-weight: 550; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.app-input small { color: var(--slate); font-weight: 500; font-size: .68rem; }
.app-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.app-chip { font-size: .64rem; font-weight: 650; padding: 4px 9px; border-radius: 99px; background: var(--mint-50); color: var(--mint-600); border: 1px solid var(--mint-100); }
.app-mentor {
  margin-top: 4px;
  border-radius: 14px;
  background: var(--navy);
  padding: 12px;
  color: #fff;
}
.app-mentor__head { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .01em; margin-bottom: 9px; color: rgba(255,255,255,.8); }
.app-mentor__who { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px; }
.app-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.app-mentor__name { font-size: .74rem; font-weight: 700; line-height: 1.2; }
.app-mentor__reg { font-size: .62rem; color: rgba(255,255,255,.65); }
.app-mentor__sig { margin-top: 9px; background: #fff; border-radius: 9px; height: 46px; display: grid; place-items: center; position: relative; }
.app-mentor__stamp { position: absolute; right: 7px; bottom: 5px; font-size: .55rem; font-weight: 700; color: var(--mint-600); display: flex; align-items: center; gap: 3px; }

/* --- Credibility strip --------------------------------------------------------- */

.trustbar { padding: 0; margin-top: -40px; position: relative; z-index: 5; }
.trustbar__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 40px;
  align-items: center;
}
.trustbar__lead { font-size: .9rem; font-weight: 650; color: var(--ink); max-width: 17rem; line-height: 1.45; }
.trustbar__lead span { display: block; font-weight: 500; color: var(--slate); font-size: .82rem; margin-top: 3px; }
.trustbar__regs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.reg {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
}
.reg__code { font-size: .95rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.reg__who { font-size: .74rem; color: var(--slate); line-height: 1.3; }

/* --- Numbers ----------------------------------------------------------------- */

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.number { padding: 40px 28px; text-align: center; position: relative; }
.number + .number::before { content: ''; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line); }
.number__value {
  font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.number__label { margin-top: 10px; font-size: .92rem; color: var(--slate); font-weight: 550; }

/* --- Before / after ------------------------------------------------------------ */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { border-radius: var(--r-xl); padding: 40px; position: relative; overflow: hidden; }
.compare__col--before { background: var(--soft); border: 1px solid var(--line); }
.compare__col--after { background: var(--grad-brand); color: rgba(255,255,255,.82); box-shadow: var(--sh-3); }
.compare__col--after::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,186,136,.35), transparent 70%);
}
.compare__tag {
  display: inline-block; font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 99px; margin-bottom: 22px;
}
.compare__col--before .compare__tag { background: #fff; color: var(--slate); border: 1px solid var(--line); }
.compare__col--after .compare__tag { background: rgba(78,186,136,.2); color: #8EE6BA; }
.compare h3 { font-size: 1.5rem; margin-bottom: 26px; }
.compare__col--after h3 { color: #fff; }
.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.compare__list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; line-height: 1.55; }
.compare__mark { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.compare__col--before .compare__mark { background: #fff; border: 1px solid var(--line); color: #A3ABC2; }
.compare__col--after .compare__mark { background: var(--mint); color: #fff; }

/* --- Steps --------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--mint-100) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num {
  width: 70px; height: 70px; margin: 0 auto 28px;
  border-radius: 22px;
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 0 0 8px #fff, var(--sh-3);
  position: relative;
}
.step p { color: var(--slate); font-size: 1rem; max-width: 21rem; margin-inline: auto; }

/* --- Bento --------------------------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.tile {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: transparent; }
.tile--a { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, #fff 0%, var(--mint-50) 100%);
  display: flex; flex-direction: column; }
.tile--a .signoff { margin-top: auto; padding-top: 30px; }
.tile--b { grid-column: span 2; }
.tile--c { grid-column: span 2; }
.tile--d { grid-column: span 3; }
.tile--e { grid-column: span 3; }
.tile--dark { background: var(--grad-brand); border-color: transparent; color: rgba(255,255,255,.78); }
.tile--dark h3 { color: #fff; }
.tile h3 { font-size: 1.3rem; margin-bottom: .45em; }
.tile p { font-size: .98rem; color: var(--slate); max-width: 30rem; }
.tile--dark p { color: rgba(255,255,255,.72); }
.tile__icon {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--mint-50); color: var(--mint-600);
}
.tile--dark .tile__icon { background: rgba(255,255,255,.1); color: #8EE6BA; }

/* Sign-off tile visual */
.signoff { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 600px; }
.signoff__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--sh-2); }
.signoff__card--sig { grid-column: span 2; display: flex; align-items: center; gap: 18px; }
.signoff__card--note { grid-column: span 2; border-left: 3px solid var(--mint); }
.signoff__quote { font-size: .92rem; line-height: 1.6; color: var(--body); margin: 0; }
.signoff__label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.signoff__value { font-size: .94rem; font-weight: 700; color: var(--ink); }
.signoff__sub { font-size: .8rem; color: var(--slate); }
.signoff__pad { flex: 1; height: 64px; border-radius: 12px; background: var(--soft); border: 1px dashed #CBD3E4; display: grid; place-items: center; }
.locked { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--mint-600); background: var(--mint-50); padding: .4rem .75rem; border-radius: 99px; white-space: nowrap; }

/* Search tile visual */
.search-mock { margin-top: 22px; }
.search-mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 12px; border: 1.5px solid var(--mint); background: #fff; font-size: .86rem; color: var(--ink); font-weight: 550; box-shadow: 0 0 0 4px rgba(78,186,136,.12); }
.search-mock__bar svg { color: var(--mint-600); }
.search-mock__caret { width: 1.5px; height: 15px; background: var(--ink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.search-mock__result { margin-top: 9px; padding: 11px 13px; border-radius: 12px; background: var(--soft); }
.search-mock__name { font-size: .86rem; font-weight: 700; color: var(--ink); }
.search-mock__detail { font-size: .74rem; color: var(--slate); line-height: 1.45; }

/* Reflection tile visual */
.rolfe { margin-top: 22px; display: grid; gap: 8px; }
.rolfe span { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .88rem; font-weight: 600; color: #fff; }
.rolfe b { width: 22px; height: 22px; border-radius: 7px; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: .72rem; flex-shrink: 0; }

/* Evidence tile visual */
.evidence { margin-top: 22px; display: flex; gap: 10px; }
.evidence span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 8px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line-soft); font-size: .76rem; font-weight: 650; color: var(--navy); }
.evidence svg { color: var(--sky); }

/* Privacy tile visual */
.redact { margin-top: 22px; display: grid; gap: 8px; }
.redact__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-radius: 12px; background: var(--soft); font-size: .84rem; }
.redact__row span { color: var(--slate); }
.redact__row strong { color: var(--ink); font-weight: 650; }
.redact__bar { height: 9px; width: 90px; border-radius: 4px; background: repeating-linear-gradient(135deg, #CBD3E4 0 4px, #DEE4EF 4px 8px); }

/* --- Competency grid showcase -------------------------------------------------- */

.showcase { background: var(--navy-900); overflow: hidden; isolation: isolate; }
.showcase::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 15% 20%, rgba(46,139,217,.22), transparent 70%),
    radial-gradient(45% 55% at 90% 85%, rgba(78,186,136,.2), transparent 70%);
}
.showcase__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: center; }
.showcase__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.showcase__points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.8); }
.showcase__points svg { color: #7FE0B0; flex-shrink: 0; margin-top: 4px; }

.report {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
}
.report__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.report__title { font-size: .92rem; font-weight: 750; color: var(--ink); }
.report__meta { font-size: .74rem; color: var(--slate); }
.report__badge { font-size: .7rem; font-weight: 750; padding: .32rem .65rem; border-radius: 99px; background: var(--mint-50); color: var(--mint-600); white-space: nowrap; }
.report__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report table { width: 100%; border-collapse: collapse; font-size: .74rem; min-width: 620px; }
.report th, .report td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.report th { font-size: .62rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; background: var(--soft); }
.report th:first-child, .report td:first-child { text-align: left; padding-left: 22px; position: sticky; left: 0; background: #fff; }
.report th:first-child { background: var(--soft); }
.report td:first-child { font-weight: 600; color: var(--ink); font-size: .78rem; }
.report tr.report__section td { background: var(--sky-50); color: var(--navy); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding-left: 22px; }
.cell { display: inline-block; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line); vertical-align: middle; }
.cell--on { background: var(--mint); border-color: var(--mint); box-shadow: 0 2px 6px -1px rgba(78,186,136,.5); }
.report__foot { padding: 14px 22px; font-size: .7rem; font-style: italic; color: var(--slate); background: var(--soft); border-top: 1px solid var(--line); }

/* --- Reports cards -------------------------------------------------------------- */

.reports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.doc__preview {
  height: 170px; margin-bottom: 26px; border-radius: 18px;
  background: linear-gradient(160deg, var(--soft), #EDF1F8);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.doc__sheet {
  width: 116px; height: 146px; margin-top: 34px;
  background: #fff; border-radius: 10px 10px 0 0;
  box-shadow: var(--sh-2); padding: 14px 12px;
  display: grid; gap: 6px; align-content: start;
}
.doc__sheet i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.doc__sheet i.h { height: 7px; width: 60%; background: var(--navy); opacity: .85; }
.doc__sheet i.s { width: 70%; }
.doc__sheet i.m { background: var(--mint); width: 40%; }
.doc__type { position: absolute; top: 14px; right: 14px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; padding: .3rem .55rem; border-radius: 8px; background: var(--navy); color: #fff; }
.doc__type--csv { background: var(--mint-600); }
.doc h3 { margin-bottom: .35em; }
.doc p { font-size: .96rem; color: var(--slate); }

/* --- Roles ---------------------------------------------------------------------- */

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.role:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--mint-100); }
.role__icon { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; background: var(--sky-50); color: var(--sky); }
.role:nth-child(even) .role__icon { background: var(--mint-50); color: var(--mint-600); }
.role__name { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.role__reg { font-size: .82rem; color: var(--slate); }

/* --- Assurance ------------------------------------------------------------------ */

.assure { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.assure__list { display: grid; gap: 14px; }
.assure__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: background-color .25s ease, border-color .25s ease;
}
.assure__item:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.assure__icon { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: rgba(78,186,136,.16); color: #7FE0B0; }
.assure__item strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 3px; }
.assure__item p { font-size: .92rem; color: rgba(255,255,255,.66); }

.shield { display: grid; place-items: center; position: relative; min-height: 360px; }
.shield__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.shield__ring--1 { width: 340px; height: 340px; }
.shield__ring--2 { width: 250px; height: 250px; border-color: rgba(127,224,176,.16); }
.shield__ring--3 { width: 160px; height: 160px; background: radial-gradient(circle, rgba(78,186,136,.2), transparent 70%); border-color: rgba(127,224,176,.3); }
.shield__core { width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; background: var(--grad-accent); color: #fff; box-shadow: 0 20px 50px -10px rgba(78,186,136,.6); position: relative; z-index: 1; }

/* --- FAQ ------------------------------------------------------------------------ */

.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq details[open] { box-shadow: var(--sh-2); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  font-size: 1.06rem; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--soft); color: var(--navy); transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--mint); color: #fff; }
.faq__body { padding: 0 26px 24px; color: var(--slate); font-size: 1rem; max-width: 44rem; }

/* --- Final CTA ------------------------------------------------------------------ */

.cta {
  border-radius: 40px;
  background: var(--grad-brand);
  padding: 80px 64px;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 70% at 100% 0%, rgba(78,186,136,.45), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(46,139,217,.35), transparent 70%);
}
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 70% at 80% 50%, #000, transparent 75%);
          mask-image: radial-gradient(60% 70% at 80% 50%, #000, transparent 75%);
}
.cta h2 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.cta .lede { color: rgba(255,255,255,.78); margin-bottom: 34px; }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.store {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 24px; padding: 22px; text-align: center;
  transition: transform .25s ease, background-color .25s ease;
}
.store:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.store__qr { width: 118px; height: 118px; margin: 0 auto 16px; border-radius: 16px; background: #fff; padding: 12px; display: grid; place-items: center; }
.store__qr svg { width: 100%; height: 100%; color: var(--navy); opacity: .2; }
.store__soon { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px; border-radius: 12px;
  background: #0B0F1F; border: 1px solid rgba(255,255,255,.22); color: #fff;
  text-decoration: none; text-align: left; transition: background-color .2s ease;
}
.badge:hover { background: #000; }
.badge small { display: block; font-size: .6rem; opacity: .75; line-height: 1.1; letter-spacing: .01em; }
.badge strong { display: block; font-size: .98rem; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }

.free-note { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.82); }
.free-note svg { color: #7FE0B0; }

/* --- Footer --------------------------------------------------------------------- */

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 88px 0 36px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer__brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 22px; }
.footer__brand p { font-size: .94rem; max-width: 26rem; line-height: 1.65; }
.site-footer h4 { color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; }
.footer__mail { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background-color .2s ease, transform .2s ease, border-color .2s ease; }
.footer__social a:hover { background: var(--mint); border-color: var(--mint); transform: translateY(-2px); }
.footer__bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* --- Motion --------------------------------------------------------------------- */

/* Hidden only once the inline <head> script has marked the page .js, so a
   visitor with scripts blocked, or a crawler, still sees every section. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Accessibility -------------------------------------------------------------- */

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Responsive. Tablet gets its own layouts rather than a squeezed desktop.
   ========================================================================== */

@media (max-width: 1140px) {
  :root { --section-y: 104px; }
  .hero__grid { gap: 32px; }
  .float--sign { left: -36px; }
  .float--progress { right: -36px; }
  .float--report { left: -16px; }
  .bento .tile { padding: 28px; }
  .cta { padding: 64px 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

/* Tablet: the size clinicians are most likely to hold */
@media (max-width: 960px) {
  :root { --section-y: 88px; --gutter: 32px; }

  .nav { display: none; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: flex; }
  .site-header__inner { position: relative; }
  .site-header.is-open { background: #fff; border-bottom-color: var(--line); }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 10px var(--gutter) 22px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(15,22,51,.25);
  }
  .nav.is-open a:not(.btn) { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
  .nav.is-open .btn { display: none; }

  .hero { padding-top: 140px; padding-bottom: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__copy { max-width: 40rem; }
  .stage { max-width: 560px; margin-inline: auto; width: 100%; }
  /* The stage is centred with room either side at this width, so the
     cards can sit wider and clear the phone's fields completely. */
  .float--sign { left: -92px; }
  .float--progress { right: -92px; }
  .float--report { left: -70px; }

  .trustbar__card { grid-template-columns: 1fr; padding: 26px; }
  .trustbar__lead { max-width: none; }

  .numbers { grid-template-columns: repeat(2, 1fr); }
  .number:nth-child(3)::before { display: none; }
  .number:nth-child(n+3) { border-top: 1px solid var(--line); }

  .compare__col { padding: 32px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--a { grid-column: span 2; grid-row: auto; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 1; }

  .showcase__grid { grid-template-columns: 1fr; gap: 48px; }
  .reports { grid-template-columns: 1fr 1fr; }
  .reports .doc:last-child { grid-column: span 2; }
  .roles { grid-template-columns: 1fr 1fr; }

  .assure { grid-template-columns: 1fr; gap: 40px; }
  .shield { min-height: 280px; order: -1; }
  .shield__ring--1 { width: 280px; height: 280px; }

  .cta { grid-template-columns: 1fr; padding: 56px 40px; text-align: center; }
  .cta .lede { margin-inline: auto; }
  .stores { max-width: 460px; margin-inline: auto; width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Small tablet / large phone */
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: auto; }
  .signoff { grid-template-columns: 1fr; }
  .signoff__card--sig, .signoff__card--note { grid-column: auto; }
  .signoff__card--sig { flex-direction: column; align-items: stretch; }
  .reports { grid-template-columns: 1fr; }
  .reports .doc:last-child { grid-column: auto; }
  .trustbar__regs { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 560px) {
  :root { --section-y: 72px; --gutter: 20px; }
  body { font-size: 16px; }

  .site-header__inner { min-height: 70px; gap: 12px; }
  .site-logo img { height: 34px; }
  .header-cta { --h: 40px; padding: 0 .95rem; font-size: .88rem; }

  .hero { padding-top: 116px; padding-bottom: 72px; }
  .hero__sub { font-size: 1.08rem; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 12px 18px; }

  /* The composed stage is scaled down as a unit so the phone and its
     floating cards keep their relationship rather than colliding. */
  .stage { height: 560px; }
  .stage__inner { transform: scale(.84); transform-origin: top center; }
  /* No room for three cards beside a phone at this width, so keep one and
     place it on purpose: over the signature area, which is what it describes.
     Centred with auto margins rather than a transform, which the drift
     animation already owns. */
  .float--progress, .float--report { display: none; }
  .float--sign { top: auto; bottom: 34px; left: 0; right: 0; margin-inline: auto; width: 236px; }

  .head { margin-bottom: 44px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .number { padding: 30px 12px; }
  .compare__col { padding: 28px 24px; border-radius: var(--r-lg); }
  .tile { padding: 26px 22px; border-radius: var(--r-lg); }
  .roles { grid-template-columns: 1fr; }
  .faq summary { padding: 18px 20px; font-size: 1rem; }
  .faq__body { padding: 0 20px 20px; }
  .cta { padding: 48px 24px; border-radius: 28px; }
  .stores { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
  padding-top: 168px;
  padding-bottom: 88px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(78,186,136,.14), transparent 70%),
    radial-gradient(40% 60% at 85% 25%, rgba(46,139,217,.14), transparent 70%),
    linear-gradient(180deg, #FBFCFE 0%, #F4F7FC 100%);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(30,42,90,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,42,90,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000 15%, transparent 72%);
          mask-image: radial-gradient(60% 70% at 50% 40%, #000 15%, transparent 72%);
}
.page-hero h1 { max-width: 15ch; margin: 24px auto 22px; font-size: clamp(2.4rem, 5vw, 3.9rem); }
.page-hero .lede { margin-inline: auto; font-size: 1.2rem; }
/* Centred intros are short, so balance every line rather than just the last. */
.page-hero .lede, .head--center .lede { text-wrap: balance; }

/* Jump links: every feature one tap away on a long page. */
/* Capped so the links break into even rows (five and five on desktop), never
   leaving one link alone on a row. */
.jumpnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 44px auto 0; max-width: 790px; }
.jumpnav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  font-size: .87rem; font-weight: 600; color: var(--navy);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jumpnav a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--mint-100); }
.jumpnav svg { color: var(--mint-600); }

/* Anchored sections land below the fixed header, not behind it. */
.feature, .anchor { scroll-margin-top: 100px; }

/* --- Feature rows ---------------------------------------------------------- */

.feature { padding-block: 104px; }
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature--flip .feature__visual { order: -1; }
.feature__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad-brand); color: #fff;
  font-size: .95rem; font-weight: 800;
  margin-bottom: 22px;
  box-shadow: var(--sh-2);
}
.feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.feature .lede { margin-bottom: 30px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; line-height: 1.6; }
.ticks li strong { color: var(--ink); font-weight: 700; }
.ticks__mark {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  background: var(--mint-50); color: var(--mint-600);
}

.feature__visual { position: relative; display: grid; place-items: center; }
.feature__visual::before {
  content: ''; position: absolute; inset: 6% 4%; z-index: -1;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(78,186,136,.16), rgba(46,139,217,.08) 55%, transparent 75%);
}

/* A panel that stands in for an app screen inside a feature row. */
.panel {
  width: 100%; max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem; font-weight: 750; color: var(--ink);
}
.panel__bar small { font-size: .74rem; font-weight: 600; color: var(--slate); }
.panel__body { padding: 18px 20px 22px; }
.panel .app-label { font-size: .68rem; }
.panel .app-input { font-size: .84rem; padding: 10px 13px; }
.panel .app-field { margin-bottom: 14px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg span {
  font-size: .76rem; font-weight: 650;
  padding: 6px 11px; border-radius: 99px;
  background: var(--soft); color: var(--slate);
  border: 1px solid var(--line-soft);
}
.seg span.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Checkbox used in panel mockups */
.ui-tick {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  background: var(--mint); position: relative;
  box-shadow: 0 2px 6px -1px rgba(78,186,136,.5);
}
.ui-tick::after {
  content: ''; position: absolute; left: 6.5px; top: 3px;
  width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ui-tick--empty { background: #fff; border: 1.5px solid #CBD3E4; box-shadow: none; }
.ui-tick--empty::after { display: none; }

/* Mentor directory */
.mentor-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-soft);
  margin-bottom: 8px;
  font-size: .88rem;
}
.mentor-row.is-picked { border-color: var(--mint); background: var(--mint-50); }
.mentor-row__name { font-weight: 700; color: var(--ink); line-height: 1.25; }
.mentor-row__reg { font-size: .74rem; color: var(--slate); }
.mentor-row__go { margin-left: auto; color: var(--slate); }
.confirm {
  margin-top: 14px; padding: 16px;
  border-radius: 16px;
  background: var(--navy); color: rgba(255,255,255,.8);
  font-size: .84rem;
}
.confirm strong { display: block; color: #fff; font-size: .98rem; margin-bottom: 4px; }
.confirm__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.confirm__actions span { padding: 6px 13px; border-radius: 9px; font-size: .78rem; font-weight: 700; }
.confirm__actions .no { color: rgba(255,255,255,.7); }
.confirm__actions .yes { background: var(--mint); color: #fff; }

/* Export sheet */
.export-opt {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.export-opt.on { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(78,186,136,.12); }
.export-opt__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--sky-50); color: var(--sky); }
.export-opt.on .export-opt__icon { background: var(--mint-50); color: var(--mint-600); }
.export-opt__name { font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.export-opt__sub { font-size: .76rem; color: var(--slate); }
.export-opt__radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.export-opt.on .export-opt__radio { border-color: var(--mint); box-shadow: inset 0 0 0 4px #fff; background: var(--mint); }
.export-note { margin-top: 14px; font-size: .74rem; font-style: italic; color: var(--slate); line-height: 1.5; }

/* Case list */
.case {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.case__date { width: 44px; flex-shrink: 0; text-align: center; line-height: 1.1; }
.case__date b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.case__date span { font-size: .64rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .05em; }
.case__title { font-size: .88rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.case__meta { font-size: .74rem; color: var(--slate); }
.status { margin-left: auto; flex-shrink: 0; font-size: .66rem; font-weight: 750; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.status--done { background: var(--mint-50); color: var(--mint-600); }
.status--wait { background: #FFF6E0; color: #9A6B00; }
.status--draft { background: var(--soft); color: var(--slate); }

/* Evidence panel */
.capture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.capture span {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border-radius: 16px;
  background: var(--soft); border: 1px solid var(--line-soft);
  font-size: .78rem; font-weight: 700; color: var(--navy);
}
.capture svg { color: var(--sky); }
.capture__files { margin-top: 14px; display: grid; gap: 8px; }
.capture__file { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); font-size: .8rem; }
.capture__file svg { color: var(--slate); flex-shrink: 0; }
.capture__file span { color: var(--ink); font-weight: 600; }
.capture__file small { margin-left: auto; color: var(--mint-600); font-weight: 700; font-size: .7rem; }

/* Offline / dark mode pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair__card { border-radius: var(--r-xl); padding: 36px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.pair__card--dark { background: #12193A; border-color: transparent; color: rgba(255,255,255,.72); }
.pair__card--dark h3 { color: #fff; }
.pair__card h3 { font-size: 1.35rem; }
.pair__card p { color: var(--slate); }
.pair__card--dark p { color: rgba(255,255,255,.7); }
.signal { margin-top: 26px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line-soft); }
.signal__dot { width: 10px; height: 10px; border-radius: 50%; background: #E5A400; box-shadow: 0 0 0 4px rgba(229,164,0,.18); flex-shrink: 0; }
.signal strong { font-size: .88rem; color: var(--ink); display: block; line-height: 1.3; }
.signal span { font-size: .76rem; color: var(--slate); }
.theme-swatch { margin-top: 26px; display: flex; gap: 10px; }
.theme-swatch span { flex: 1; height: 74px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); padding: 12px; display: grid; gap: 6px; align-content: start; }
.theme-swatch .light { background: #F7F8FC; }
.theme-swatch .dark { background: #1A1A2E; }
.theme-swatch i { display: block; height: 6px; border-radius: 3px; }
.theme-swatch .light i { background: #DCE1EC; }
.theme-swatch .dark i { background: #2E2E4A; }
.theme-swatch i.a { width: 55%; background: var(--mint); }

/* Professions table */
/* Five professions never divide evenly into a grid, so this is a centred
   wrap: whatever is left on the last row sits in the middle, not the left. */
.prof { --cols: 5; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.prof > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.prof__card {
  border-radius: var(--r-lg); padding: 24px 20px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.prof__card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.prof__card .role__icon { margin-bottom: 16px; }
.prof__name { font-size: 1rem; font-weight: 750; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.prof__reg { display: inline-block; font-size: .72rem; font-weight: 750; padding: 3px 8px; border-radius: 7px; background: var(--navy); color: #fff; margin-bottom: 16px; }
.prof__types { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .84rem; color: var(--slate); }
.prof__types li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.prof__types li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); margin-top: 7px; flex-shrink: 0; }

/* What it does not do */
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.limit { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.limit__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F4F5F9; color: #8A93AD; margin-bottom: 16px; }
.limit strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.limit p { font-size: .92rem; color: var(--slate); }

@media (max-width: 1140px) {
  .prof { --cols: 3; }
}
@media (max-width: 960px) {
  .page-hero { padding-top: 140px; padding-bottom: 72px; }
  .jumpnav { max-width: 560px; }   /* three, three and four on a tablet */
  .feature { padding-block: 80px; }
  .feature__grid { grid-template-columns: 1fr; gap: 48px; }
  .feature--flip .feature__visual { order: 0; }
  .feature__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .pair { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .prof { --cols: 2; }
}
@media (max-width: 560px) {
  .page-hero { padding-top: 116px; padding-bottom: 56px; }
  /* On a phone every chip stays in view: they wrap into centred rows
     rather than running off the edge of the screen. */
  .jumpnav { gap: 7px; margin-top: 36px; }
  .jumpnav a { padding: 8px 12px 8px 10px; gap: 6px; font-size: .82rem; }
  .jumpnav svg { width: 14px; height: 14px; }
  .feature { padding-block: 64px; }
  .pair__card { padding: 28px 24px; border-radius: var(--r-lg); }
  .prof { --cols: 1; }
  .limits { grid-template-columns: 1fr; }
}

/* ==========================================================================
   How it works
   ========================================================================== */

/* The four stages, as one connected bar under the hero. */
.journey {
  list-style: none; margin: 52px auto 0; padding: 8px; max-width: 920px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.journey li { position: relative; }
.journey li + li { border-left: 1px solid var(--line-soft); }
/* A chevron between stages, sitting on the divider. */
.journey li + li::before {
  content: ''; position: absolute; left: 0; top: 50%; z-index: 1;
  width: 24px; height: 24px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 7 5 5-5 5' fill='none' stroke='%2336A173' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.journey a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px 16px; border-radius: 18px;
  text-decoration: none; transition: background-color .2s ease;
}
.journey a:hover { background: var(--soft); }
.journey__icon {
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 8px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: var(--sh-2);
}
.journey__title { font-size: .98rem; font-weight: 750; color: var(--ink); line-height: 1.25; }
.journey__when { font-size: .8rem; color: var(--slate); line-height: 1.35; }

/* "Stage 1 · Once" above each stage heading. */
.stage-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; margin-bottom: 20px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--slate);
}
.stage-tag b {
  padding: 4px 11px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .76rem; font-weight: 750; letter-spacing: .02em;
}
.stage-tag--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.78); }
.stage-tag--dark b { background: var(--mint); color: var(--navy-900); }
.feature .head { margin-bottom: 64px; }

/* Numbered vertical steps joined by a line. */
.vsteps { list-style: none; margin: 0; padding: 0; }
.vsteps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 26px; }
.vsteps li:last-child { padding-bottom: 0; }
.vsteps li::before {
  content: ''; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--line), var(--line-soft));
}
.vsteps li:last-child::before { display: none; }
.vsteps__num {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  color: var(--navy); font-size: .95rem; font-weight: 800;
}
.vsteps li:first-child .vsteps__num { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-2); }
.vsteps h3 { font-size: 1.08rem; margin: 10px 0 5px; }
.vsteps p { color: var(--slate); font-size: .98rem; }
.vsteps--compact li { padding-bottom: 22px; }

/* Two app screens, the second overlapping the first. */
.stack { width: 100%; max-width: 440px; display: grid; }
.stack .panel { max-width: none; }
.stack__front { width: 86%; margin: -52px 0 0 auto; position: relative; }
/* The front screen overlaps only the back one's spare bottom space, so
   no role in the list is ever hidden behind it. */
.stack > .panel:first-child .panel__body { padding-bottom: 72px; }
.panel__hint { font-size: .8rem; color: var(--slate); margin-bottom: 12px; }
.rolepick {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; margin-bottom: 7px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.rolepick:last-child { margin-bottom: 0; }
.rolepick__icon { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--sky-50); color: var(--sky); }
.rolepick__name { font-size: .84rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.rolepick__reg { font-size: .7rem; color: var(--slate); }
.rolepick--on { border-color: var(--mint); background: var(--mint-50); box-shadow: 0 0 0 3px rgba(78,186,136,.14); }
.rolepick--on .rolepick__icon { background: #fff; color: var(--mint-600); }
.rolepick__tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; }
.app-input--hint { color: #9AA3BC; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.toggle-row__name { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.toggle-row__sub { font-size: .72rem; color: var(--slate); }
.toggle { width: 40px; height: 24px; border-radius: 99px; background: #CBD3E4; position: relative; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,22,51,.2); }
.toggle--on { background: var(--mint); }
.toggle--on::after { left: 19px; }

/* Logging a case: four parts, each with a small sketch of that part. */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow__card {
  display: flex; flex-direction: column;
  padding: 12px 12px 26px; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.flow__card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.flow__mock {
  height: 172px; margin-bottom: 22px; padding: 16px;
  border-radius: 22px; background: var(--soft);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  overflow: hidden;
}
.flow__step { margin: 0 12px 8px; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.flow__card h3 { margin: 0 12px 8px; font-size: 1.1rem; }
.flow__card p { margin: 0 12px; color: var(--slate); font-size: .94rem; }

.mini {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--ink); line-height: 1.3;
  white-space: nowrap; overflow: hidden;
}
.mini small { margin-left: auto; color: var(--slate); }
.mini__label { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); min-width: 50px; }
.mini--search { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(78,186,136,.12); color: var(--ink); }
.mini--search svg { color: var(--slate); }
.mini--tick { background: transparent; border-color: transparent; padding-block: 5px; }
.mini--tick .ui-tick { width: 18px; height: 18px; }
.mini--file svg { color: var(--mint-600); }
.mini--q { flex-direction: column; align-items: stretch; gap: 6px; }
.mini--q b { font-size: .7rem; color: var(--ink); }
.mini--q i { display: block; height: 6px; border-radius: 4px; background: var(--line); }
.mini-capture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mini-capture span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-size: .64rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2;
}
.mini-capture svg { color: var(--sky); }

.draftbar {
  margin-top: 24px; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
}
.draftbar__text strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 3px; }
.draftbar__text p { color: var(--slate); font-size: .95rem; }
.draftbar__ui { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.draftbar__btns { display: flex; gap: 8px; }
.meter { width: 190px; }
.meter__head { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 650; color: var(--slate); margin-bottom: 7px; }
.meter__head b { color: var(--ink); }
.meter__bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.meter__bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-accent); }

/* The sign-off, on the dark band. */
.handover { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hsteps li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.hsteps__num {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(78,186,136,.16); color: #7FE0B0; font-weight: 800; font-size: .9rem;
}
.hsteps strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 3px; }
.hsteps p { font-size: .92rem; color: rgba(255,255,255,.66); }

.signed {
  max-width: 440px; width: 100%; justify-self: center;
  padding: 24px; border-radius: var(--r-xl);
  background: #fff; color: var(--body);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
}
.signed__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.signed__label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.signed__who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.signed__who .app-avatar { width: 40px; height: 40px; font-size: .8rem; }
.signed__name { font-weight: 750; color: var(--ink); line-height: 1.25; }
.signed__reg { font-size: .8rem; color: var(--slate); }
.signed__quote { margin: 16px 0; padding-left: 14px; border-left: 3px solid var(--mint); font-size: .94rem; line-height: 1.6; }
.signed__pad {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px; border-radius: 14px; background: var(--soft); border: 1px dashed #C9D1E3;
}
.signed__pad span { font-size: .72rem; font-weight: 650; color: var(--slate); }
.signed__note { margin-top: 12px; font-size: .74rem; font-style: italic; color: var(--slate); }

.states {
  margin-top: 64px; padding: 28px;
  display: grid; grid-template-columns: .8fr 2fr; gap: 32px; align-items: center;
  border-radius: var(--r-xl); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.states__intro strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.states__intro p { font-size: .95rem; color: rgba(255,255,255,.66); }
.states__flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.states__flow li { position: relative; }
.states__flow li + li::before {
  content: ''; position: absolute; left: -22px; top: 9px; width: 16px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1l4 4-4 4' fill='none' stroke='%237FE0B0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.states .status { margin: 0 0 10px; display: inline-block; font-size: .74rem; padding: 5px 11px; }
.states__flow p { font-size: .9rem; color: rgba(255,255,255,.7); }

/* How a case lands on the review-point grid. */
.track__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.track__facts div { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.track__facts .app-label { display: block; margin-bottom: 3px; font-size: .6rem; }
.track__facts b { font-size: .86rem; color: var(--ink); }
.track {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px;
  position: relative; padding-top: 18px;
}
.track::before { content: ''; position: absolute; top: 6px; left: 4%; right: 4%; height: 2px; background: var(--line); }
.track span {
  position: relative; text-align: center;
  font-size: .62rem; font-weight: 650; color: var(--slate); white-space: nowrap;
}
.track span::before {
  content: ''; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #CBD3E4;
}
.track span.on { color: var(--navy); font-weight: 800; }
.track span.on::before { width: 14px; height: 14px; top: -18px; border: 0; background: var(--mint); box-shadow: 0 0 0 4px rgba(78,186,136,.2); }
.track__result {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding: 12px 14px; border-radius: 14px;
  background: var(--mint-50); border: 1px solid var(--mint-100);
}
.track__result b { display: block; font-size: .86rem; color: var(--ink); line-height: 1.3; }
.track__result span:not(.ui-tick) { font-size: .74rem; color: var(--slate); }

.outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 88px; }
.output {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.output:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.output__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky); margin-bottom: 18px; }
.output__type { position: absolute; top: 28px; right: 28px; padding: 3px 9px; border-radius: 7px; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.output__type--csv { background: var(--mint-600); }
.output h3 { margin-bottom: 6px; }
.output p { color: var(--slate); font-size: .95rem; }

/* Who does what */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line);
}
.person .role__icon { margin-bottom: 20px; }
.person__who { font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.person h3 { margin-bottom: 8px; }
.person p { color: var(--slate); font-size: .96rem; margin-bottom: 22px; }
.person__needs {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--ink); font-weight: 600; line-height: 1.5;
}
.person__needs b { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }

@media (max-width: 1140px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .states { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 960px) {
  .handover { grid-template-columns: 1fr; gap: 40px; }
  .hsteps { max-width: 560px; width: 100%; margin-inline: auto; }
  .draftbar { flex-direction: column; align-items: stretch; gap: 18px; }
  .draftbar__ui { justify-content: space-between; }
  .outputs { margin-top: 64px; }
  .people { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .outputs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 14px; }
  /* Stacked, the report cards read better as rows: icon beside the words. */
  .output { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 22px 24px; }
  .output__icon { grid-row: span 2; margin-bottom: 0; }
  .output h3 { padding-right: 52px; }
  .output__type { top: 22px; right: 24px; }
  /* A single column of steps stays at a readable line length. */
  .feature__grid .vsteps { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr 1fr; max-width: 440px; }
  .journey li + li { border-left: 0; }
  .journey li::before { display: none; }
  .journey li:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .journey li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .states__flow { grid-template-columns: 1fr; gap: 16px; }
  .states__flow li { display: flex; gap: 14px; align-items: baseline; }
  .states__flow li + li::before { display: none; }
  .states .status { margin: 0; min-width: 86px; text-align: center; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .feature .head { margin-bottom: 44px; }
  .stack__front { width: 100%; margin-top: 14px; }
  .stack > .panel:first-child .panel__body { padding-bottom: 22px; }
  .draftbar { padding: 20px; }
  .draftbar__ui { flex-direction: column; align-items: stretch; gap: 14px; }
  .meter { width: 100%; }
  .draftbar__btns .btn { flex: 1; }
  .states { padding: 22px 20px; }
  .signed { padding: 20px; }
  .person { padding: 24px; }
  /* On a phone the row layout squeezes the title; stack it again. */
  .output { display: block; padding: 22px; }
  .output__icon { margin-bottom: 14px; }
  .output h3 { padding-right: 0; }
  .output__type { top: 22px; right: 22px; }
  .track__facts div { padding: 9px; }
  .track__facts b { font-size: .76rem; white-space: nowrap; }
  .track span { font-size: .55rem; }
}

/* --- Patient feedback mockups -------------------------------------------- */

.urlbar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 12px 14px 0; padding: 8px 12px;
  border-radius: 10px; background: var(--soft);
  font-size: .74rem; font-weight: 600; color: var(--slate);
}
.urlbar svg { color: var(--mint-600); }
.fb-note {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--mint-50); border: 1px solid var(--mint-100);
  font-size: .76rem; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.fb-note svg { color: var(--mint-600); flex-shrink: 0; }
.fb-send { width: 100%; }
.fb-q { font-size: .95rem; font-weight: 750; color: var(--ink); margin-bottom: 10px; }
.stars { display: flex; gap: 4px; color: #F2B53A; margin-bottom: 14px; }
.stars .off { color: #DCE1EC; }
.fb-comment {
  padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-size: .8rem; line-height: 1.5; color: var(--body);
}
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.fb-foot span:first-child { font-size: .7rem; color: var(--slate); }
.steps__foot { margin: 56px auto 0; max-width: 40rem; text-align: center; color: var(--slate); font-size: .98rem; }
.steps__foot strong { color: var(--ink); }

/* --- Privacy and control (features page) --------------------------------- */

.guard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guard__item {
  padding: 24px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: background-color .25s ease, border-color .25s ease;
}
.guard__item:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.guard__item .assure__icon { margin-bottom: 18px; }
.guard__item strong { display: block; color: #fff; font-size: 1.04rem; margin-bottom: 6px; }
.guard__item p { font-size: .93rem; color: rgba(255,255,255,.68); }

.signed__verified {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 12px; border-radius: 12px;
  background: var(--mint-50); border: 1px solid var(--mint-100);
  font-size: .76rem; font-weight: 700; color: var(--ink);
}
.signed__verified span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; flex-shrink: 0; }

@media (max-width: 960px) {
  .guard { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .guard { grid-template-columns: 1fr; }
  .guard__item { padding: 22px; }
}

/* ==========================================================================
   Support
   ========================================================================== */

.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.reply-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: var(--slate); }
.reply-note svg { color: var(--mint-600); }

/* Quick answers */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.answer {
  display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.answer:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.answer__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky); margin-bottom: 16px; }
.answer:nth-child(even) .answer__icon { background: var(--mint-50); color: var(--mint-600); }
.answer h3 { font-size: 1.04rem; margin-bottom: 8px; }
.answer p { color: var(--slate); font-size: .94rem; margin-bottom: 18px; }
.answer a {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 700; color: var(--navy); text-decoration: none;
}
.answer a:hover { text-decoration: underline; }
.answer a svg { transition: transform .2s ease; }
.answer a:hover svg { transform: translateX(3px); }

/* Form + aside */
.support { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.form-card {
  padding: 36px; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset + .fset, .fset--details { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.fset__title {
  display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 18px;
  font-size: 1.06rem; font-weight: 750; color: var(--ink);
}
.fset__title span {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: .82rem; font-weight: 800;
}
.fset__title b { font-weight: 750; }
/* A legend sits inside its fieldset's top border; floating takes it out. */
legend.fset__title { float: left; width: 100%; }
legend.fset__title + * { clear: both; }

.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.topic:hover { border-color: #C9D2E3; }
.topic__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--navy); transition: background-color .2s ease, color .2s ease; }
.topic__name { font-size: .86rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.topic__sub { font-size: .74rem; color: var(--slate); line-height: 1.35; }
.topic:has(input:checked) { border-color: var(--mint); background: var(--mint-50); box-shadow: 0 0 0 3px rgba(78,186,136,.16); }
.topic:has(input:checked) .topic__icon { background: var(--mint); color: #fff; }
.topic:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }

.tip {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 13px 15px; border-radius: 14px;
  background: var(--sky-50); color: var(--ink);
}
.tip svg { color: var(--sky); flex-shrink: 0; margin-top: 2px; }
.tip p { font-size: .9rem; line-height: 1.55; }
.tip a { font-weight: 700; }

.topic-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field__label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.field label small, .field__label small { font-weight: 600; color: var(--slate); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid #D5DCEA; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236A7491' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3BC; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BFC8DB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(78,186,136,.16); }
.field [aria-invalid="true"] { border-color: #D64545; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(214,69,69,.14); }
.field__error { margin: 7px 0 0; font-size: .84rem; font-weight: 600; color: #B42318; }
.field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 8px; }
.field__hint { display: inline-flex; align-items: flex-start; gap: 7px; font-size: .82rem; color: var(--slate); line-height: 1.45; }
.field__hint svg { flex-shrink: 0; margin-top: 2px; color: var(--mint-600); }
.field__count { font-size: .78rem; color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }

.seg-input, .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-input label, .checks label { position: relative; margin: 0; cursor: pointer; }
.seg-input input, .checks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-input span, .checks span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid #D5DCEA; background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.checks span::before {
  content: ''; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #BFC8DB; background: #fff center / 11px no-repeat;
}
.seg-input input:checked + span, .checks input:checked + span { border-color: var(--mint); background: var(--mint-50); }
.checks input:checked + span::before {
  border-color: var(--mint); background-color: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.seg-input input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.seg-input input[aria-invalid="true"] + span { border-color: #D64545; }

/* Kept off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.from-app {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 11px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line);
  font-size: .86rem; color: var(--ink);
}
.from-app svg { color: var(--sky); flex-shrink: 0; }
.from-app button {
  margin-left: auto; padding: 4px 8px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--navy); text-decoration: underline;
}
.turnstile-slot { min-height: 65px; margin-top: 4px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.form-legal { font-size: .84rem; color: var(--slate); max-width: 22rem; }
.form-foot .btn { flex-shrink: 0; }
.form-foot .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.form-alert { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.55; }
.form-alert--error { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; }
.form-alert--error a { color: inherit; font-weight: 700; }

.sent { text-align: center; padding: 48px 12px; outline: none; }
.sent__icon {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 22px;
  display: grid; place-items: center;
  background: var(--grad-accent); color: #fff; box-shadow: var(--sh-mint);
}
.sent h3 { font-size: 1.5rem; margin-bottom: 10px; }
.sent p { color: var(--slate); max-width: 26rem; margin: 0 auto 26px; }

.support__aside { display: grid; gap: 18px; position: sticky; top: 104px; }
.aside-card { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.aside-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.aside-card p { font-size: .92rem; color: var(--slate); }
.aside-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--mint-50); color: var(--mint-600); }
.aside-card--warn { background: #FFFBF0; border-color: #F5E3B3; }
.aside-card--warn .aside-card__icon { background: #FFF1CC; color: #9A6B00; }
.aside-card--mail { background: var(--grad-brand); border-color: transparent; color: rgba(255,255,255,.75); }
.aside-card--mail h3 { color: #fff; }
.aside-card--mail p { color: rgba(255,255,255,.72); margin-bottom: 4px; }
.aside-card--mail .aside-card__icon { background: rgba(255,255,255,.12); color: #8EE6BA; }
.aside-mail { font-size: 1.12rem; font-weight: 750; color: #fff; text-decoration-color: rgba(255,255,255,.35); word-break: break-all; }
.next-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.next-steps li > span {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--soft); border: 1px solid var(--line); color: var(--navy); font-size: .8rem; font-weight: 800;
}
.next-steps strong { display: block; font-size: .92rem; color: var(--ink); }
.next-steps p { font-size: .86rem; }

@media (max-width: 960px) {
  .answers { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; }
  .support__aside { position: static; grid-template-columns: 1fr 1fr; }
  .support__aside .aside-card:first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .answers { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; border-radius: var(--r-lg); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .support__aside { grid-template-columns: 1fr; }
  .support__aside .aside-card:first-child { grid-column: auto; }
  .field__meta { flex-direction: column; gap: 4px; }
  .topics { grid-template-columns: 1fr; }
  .topic { padding: 11px 12px; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.page-hero--legal { padding-bottom: 56px; }
.page-hero--legal h1 { max-width: 20ch; font-size: clamp(2.3rem, 4.4vw, 3.4rem); }
.legal-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 18px; font-size: .86rem; color: var(--slate); }
.legal-meta span + span::before { content: '·'; margin-right: 20px; color: #B5BDD0; }
.legal-tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  margin-top: 34px; padding: 5px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.legal-tabs a {
  padding: 9px 16px; border-radius: 12px;
  font-size: .9rem; font-weight: 650; color: var(--slate); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.legal-tabs a:hover { color: var(--navy); background: var(--soft); }
.legal-tabs a[aria-current="page"] { background: var(--navy); color: #fff; }

.legal-body { padding-top: 72px; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }

/* Contents list, kept in view while reading. */
.toc { position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow: auto; }
.toc__title { font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 2px solid var(--line-soft); }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .88rem; line-height: 1.4; color: var(--slate); text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .74rem; font-weight: 700; color: #A3ABC2; padding-top: 1px; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--navy); }
.toc a[aria-current="true"] { color: var(--navy); font-weight: 650; border-left-color: var(--mint); }
.toc a[aria-current="true"]::before { color: var(--mint-600); }

/* Long-form text */
.prose { max-width: 46rem; counter-reset: sec; }
.prose section { scroll-margin-top: 100px; padding: 8px 0 0; margin-bottom: 44px; counter-increment: sec; }
.prose h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin-bottom: 16px;
}
.prose h2::before {
  content: counter(sec, decimal-leading-zero);
  flex-shrink: 0; font-size: .95rem; font-weight: 800; color: var(--mint-600);
  font-variant-numeric: tabular-nums;
}
.prose h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.75; color: var(--body); }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol:not(.timeline) { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--navy); font-weight: 600; text-decoration-color: rgba(30,42,90,.35); }
.prose a:hover { text-decoration-color: var(--navy); }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }

.summary {
  position: relative; margin-bottom: 52px; padding: 28px 30px;
  border-radius: var(--r-lg); background: var(--mint-50); border: 1px solid var(--mint-100);
}
.prose .summary__title { font-size: 1.12rem; margin-bottom: 14px; }
.prose .summary__title::before { content: none; }   /* not a numbered section */
.summary ul { margin: 0; }
.summary li { margin-bottom: 6px; }
.summary li:last-child { margin-bottom: 0; }
.summary ul li::before {
  top: .5em; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.summary ul li { padding-left: 26px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 22px; border-radius: 16px; border: 1px solid var(--line); }
.ltable { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.ltable th { text-align: left; padding: 12px 16px; background: var(--soft); font-size: .76rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.ltable td { padding: 13px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--body); }
.ltable td:first-child { font-weight: 650; color: var(--ink); }
.ltable tbody tr:hover td { background: #FBFCFE; }

.refs li { font-size: .95rem; }

/* Reminder schedule */
.timeline { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 15px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 38px; text-align: center; }
.timeline li::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--mint);
}
.timeline b { display: block; font-size: .9rem; color: var(--ink); }
.timeline span { display: block; font-size: .78rem; color: var(--slate); line-height: 1.35; }
.timeline__end::before { background: var(--navy) !important; border-color: var(--navy) !important; }

@media (max-width: 960px) {
  /* minmax(0, …) lets a wide table scroll inside its frame instead of
     stretching the whole page past the screen. */
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 40px; padding: 22px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 28px; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
  .prose { max-width: none; }
}
@media (max-width: 720px) {
  .ltable--wide { min-width: 680px; }   /* scrolls sideways inside its frame */
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) {
  .legal-body { padding-top: 48px; }
  .legal-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .legal-tabs a { text-align: center; padding: 10px 8px; }
  .toc ol { columns: 1; }
  .summary { padding: 22px 20px; }
  .prose p, .prose li { font-size: 1rem; }
}

/* --- Not found ---------------------------------------------------------- */
.nf-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin: 48px auto 0; }
.nf-links a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: left; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.nf-links a:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.nf-links strong { color: var(--ink); font-size: .98rem; }
.nf-links span { color: var(--slate); font-size: .86rem; }
@media (max-width: 720px) { .nf-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .nf-links { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pages opened from an emailed link
   ========================================================================== */

.link-card {
  max-width: 560px; margin: 0 auto; padding: 36px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-2);
  text-align: left;
}
.link-card--center { text-align: center; }
.link-title { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 12px; max-width: none; }
.link-card p { color: var(--slate); }
.link-card strong { color: var(--ink); }
.link-card form { margin-top: 22px; }
.link-card .btn { width: 100%; }
.link-card .field input[type="password"] {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid #D5DCEA; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.link-card .field input[type="password"]:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(78,186,136,.16); }
.link-card .field__hint { display: block; margin-top: 8px; }
.link-facts { margin: 20px 0; display: grid; gap: 10px; }
.link-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.link-facts dt { font-size: .86rem; font-weight: 700; color: var(--slate); }
.link-facts dd { margin: 0; color: var(--ink); }
.link-label { margin: 0 0 6px; font-size: .86rem; font-weight: 700; }
.link-quote { margin: 0 0 22px; padding-left: 14px; border-left: 3px solid var(--mint); color: var(--body) !important; white-space: pre-wrap; }
.link-foot { margin-top: 14px; }

/* Star rating. Reversed in the markup so "this star and all before it" is CSS only. */
.stars-input { border: 0; padding: 0; margin: 0 0 20px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label {
  width: 44px; height: 44px; cursor: pointer; background: #DCE1EC;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3-5.6-3-5.6 3 1.1-6.3-4.6-4.4 6.3-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3-5.6-3-5.6 3 1.1-6.3-4.6-4.4 6.3-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { background: #F2B53A; }
.stars-input input:focus-visible + label { outline: 3px solid var(--mint); outline-offset: 2px; }
