/* ==========================================================================
   Vinenux marketing site
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Components
   6. Nav     7. Mobile sheet   8. Hero   9. Consent demo   10. Motion
   ========================================================================== */

/* 1. Fonts — self-hosted, latin subset ------------------------------------ */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand ramp, anchored on #9C6B8B (mauve-500). */
  --mauve-50: #FAF5F8;
  --mauve-100: #F3E8EF;
  --mauve-200: #E6D1DF;
  --mauve-300: #D2B0C6;
  --mauve-400: #B98BA9;
  --mauve-500: #9C6B8B;
  --mauve-600: #835572;
  --mauve-700: #6D475F;
  --plum-800: #4A2E41;
  --plum-900: #2E1B29;
  --plum-950: #1C1019;

  /* Semantic: light */
  --bg: #FBF8F7;
  --bg-tint: #F6EEF2;
  --surface: #FFFFFF;
  --surface-2: #F8F3F5;
  --border: #ECE2E7;
  --border-strong: #DDCDD6;
  --text: #23161F;
  --text-2: #4D3E48;
  --muted: #6E5F69;
  --brand: var(--mauve-500);
  --brand-strong: var(--mauve-600);   /* 6.0:1 with white */
  --brand-ink: #7A4D6A;               /* brand-coloured text, 6.6:1 on bg */
  --brand-soft: var(--mauve-100);
  --on-brand: #FFFFFF;
  --alert: #C8463D;                   /* the one alert colour: severity + emergency only */
  --alert-ink: #A8352D;
  --alert-soft: #FCEBE8;
  --on-alert: #FFFFFF;
  --ok: #3E7A5A;
  --ok-soft: #E6F1EA;
  --focus: var(--mauve-600);
  --device: #1C1419;

  --shadow-sm: 0 1px 2px rgb(46 27 41 / .06), 0 1px 1px rgb(46 27 41 / .04);
  --shadow-md: 0 1px 2px rgb(46 27 41 / .05), 0 4px 12px -2px rgb(46 27 41 / .08), 0 12px 32px -8px rgb(46 27 41 / .10);
  --shadow-lg: 0 2px 4px rgb(46 27 41 / .04), 0 12px 24px -6px rgb(46 27 41 / .10), 0 40px 80px -20px rgb(46 27 41 / .22);
  --glow-a: rgb(156 107 139 / .30);
  --glow-b: rgb(232 190 206 / .55);
  --grain-opacity: .05;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 2.8vw, 3.75rem);

  /* Space — 8px scale (4 for hairline adjustments) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --r-sm: 10px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-pill: 999px;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-1: 160ms; --dur-2: 280ms; --dur-3: 520ms;

  color-scheme: light;
}

/* Dark — explicit choice, or system preference when no choice is saved. */
:root[data-theme="dark"] {
  --bg: #140E12;
  --bg-tint: #1B1318;
  --surface: #1E171C;
  --surface-2: #261D23;
  --border: rgb(255 240 248 / .09);
  --border-strong: rgb(255 240 248 / .16);
  --text: #F5EEF2;
  --text-2: #DCCFD7;
  --muted: #A995A3;
  --brand: #C796B5;
  --brand-strong: #D9B3CB;
  --brand-ink: #DDB6CE;
  --brand-soft: rgb(199 150 181 / .15);
  --on-brand: #23161F;
  --alert: #F07C70;
  --alert-ink: #F59A90;
  --alert-soft: rgb(240 124 112 / .14);
  --on-alert: #2A0F0C;
  --ok: #86C9A4;
  --ok-soft: rgb(134 201 164 / .14);
  --focus: #D9B3CB;
  --device: #0B0709;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 40px 80px -20px rgb(0 0 0 / .7);
  --glow-a: rgb(156 107 139 / .32);
  --glow-b: rgb(110 60 92 / .35);
  --grain-opacity: .07;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140E12;
    --bg-tint: #1B1318;
    --surface: #1E171C;
    --surface-2: #261D23;
    --border: rgb(255 240 248 / .09);
    --border-strong: rgb(255 240 248 / .16);
    --text: #F5EEF2;
    --text-2: #DCCFD7;
    --muted: #A995A3;
    --brand: #C796B5;
    --brand-strong: #D9B3CB;
    --brand-ink: #DDB6CE;
    --brand-soft: rgb(199 150 181 / .15);
    --on-brand: #23161F;
    --alert: #F07C70;
    --alert-ink: #F59A90;
    --alert-soft: rgb(240 124 112 / .14);
    --on-alert: #2A0F0C;
    --ok: #86C9A4;
    --ok-soft: rgb(134 201 164 / .14);
    --focus: #D9B3CB;
    --device: #0B0709;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -8px rgb(0 0 0 / .5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 40px 80px -20px rgb(0 0 0 / .7);
    --glow-a: rgb(156 107 139 / .32);
    --glow-b: rgb(110 60 92 / .35);
    --grain-opacity: .07;
    color-scheme: dark;
  }
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--mauve-200); color: var(--plum-950); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.125em; height: 1.125em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 5. Components ------------------------------------------------------------ */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--btn-h);
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 560; letter-spacing: -.005em; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}
.btn .icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --btn-h: 40px; padding: 0 1.05rem; font-size: .875rem; }
.btn--lg { --btn-h: 52px; padding: 0 1.625rem; font-size: 1rem; }
.btn--block { width: 100%; }
@media (pointer: coarse) { .btn--sm { --btn-h: 44px; } }

.btn--primary {
  background: var(--brand-strong);
  color: var(--on-brand);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .16),
    0 1px 2px rgb(46 27 41 / .18),
    0 8px 20px -8px rgb(131 85 114 / .7);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .16),
    0 2px 4px rgb(46 27 41 / .16),
    0 14px 28px -10px rgb(131 85 114 / .8);
}
.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { transform: translateY(-1px); border-color: var(--mauve-300); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.icon-btn:hover { background: var(--brand-soft); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }

/* Animated underline link */
.ulink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}
.ulink:hover { background-size: 100% 1px; }

/* Theme toggle shows the icon for the theme you would switch to. */
.theme-toggle .icon--sun, .sheet__theme .icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .375rem .875rem .375rem .625rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-2);
  font-size: var(--fs-xs); font-weight: 540; letter-spacing: .01em;
}
.eyebrow__dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}
.eyebrow__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: 0;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .7; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* 6. Nav ------------------------------------------------------------------- */
/* Fixed, not sticky: shrinking it then moves nothing else on the page.
   The "shrink" is transforms only, so it never registers as layout shift. */
.nav {
  position: fixed; inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.nav.is-scrolled::before { opacity: 1; transform: translateY(-14px); }
.nav__inner {
  position: relative;
  display: flex; align-items: center; gap: var(--s-5);
  height: 100%;
  transition: transform var(--dur-2) var(--ease);
}
.nav.is-scrolled .nav__inner { transform: translateY(-7px); }

.brand { display: inline-flex; align-items: center; gap: .625rem; border-radius: 10px; }
.brand__mark { width: 32px; height: 32px; }
.brand__word { font-size: 1.1875rem; font-weight: 680; letter-spacing: -.025em; }

.nav__links { margin-inline: auto; }
.nav__links ul { display: flex; gap: var(--s-6); list-style: none; padding: 0; }
.nav__links a { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.nav__signin { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); margin-inline: var(--s-2); }
.nav__signin:hover { color: var(--text); }
.nav__menu-btn { display: none; }

@media (max-width: 959px) {
  .nav__links, .nav__desktop { display: none; }
  .nav__actions { margin-left: auto; gap: var(--s-2); }
  .nav__menu-btn { display: inline-grid; margin-right: -10px; }
}

/* 7. Mobile sheet ---------------------------------------------------------- */
.sheet {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.sheet::backdrop { background: transparent; }
.sheet.is-open { opacity: 1; }
.sheet__inner {
  display: flex; flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gutter) max(var(--s-6), env(safe-area-inset-bottom));
}
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.sheet__top .icon-btn { margin-right: -10px; }
.sheet__links {
  list-style: none; padding: var(--s-6) 0 0;
  display: grid; gap: var(--s-1);
}
.sheet__links a {
  display: block; padding: var(--s-3) 0;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem);
  font-weight: 600; letter-spacing: -.03em;
  border-bottom: 1px solid var(--border);
}
.sheet__links li, .sheet__foot {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: calc(60ms + var(--i, 0) * 50ms);
}
.sheet.is-open .sheet__links li, .sheet.is-open .sheet__foot { opacity: 1; transform: none; }
.sheet__foot { margin-top: auto; padding-top: var(--s-7); display: grid; gap: var(--s-3); }
.sheet__theme {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; margin-top: var(--s-2);
  border: 0; background: none; color: var(--muted); font-size: var(--fs-sm); cursor: pointer;
}

/* 8. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(48% 52% at 74% 46%, var(--glow-a), transparent 70%),
    radial-gradient(36% 40% at 92% 12%, var(--glow-b), transparent 72%),
    radial-gradient(40% 36% at 6% 0%, var(--glow-b), transparent 70%);
}
/* Fine grain so the gradient does not band and the page reads as material. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__bg::before {
  /* fade the glow into the page at the bottom edge */
  content: ""; position: absolute; inset: auto 0 0; height: 30%;
  background: linear-gradient(transparent, var(--bg));
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .hero__copy { grid-column: 1 / span 5; }
  .hero__stage { grid-column: 6 / span 7; }
}
@media (min-width: 1280px) {
  .hero__copy { grid-column: 1 / span 5; padding-right: var(--s-2); }
}

.hero__copy { max-width: 40rem; }
.hero__title {
  margin-top: var(--s-5);
  font-size: var(--fs-h1);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.hero__title .serif {
  display: block;
  font-size: 1.1em;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--brand-ink);
}
.hero__lead {
  margin-top: var(--s-5);
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__trust {
  display: flex; align-items: center; gap: .5rem;
  margin-top: var(--s-5);
  font-size: var(--fs-sm); color: var(--muted);
}
.hero__trust .icon { width: 1rem; height: 1rem; color: var(--brand-ink); }

@media (max-width: 479px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* 9. Consent demo ---------------------------------------------------------- */
.demo { position: relative; }
.demo::before {
  /* soft brand halo directly behind the devices */
  content: ""; position: absolute; inset: 8% 6% 18%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(24px);
}

.stage { container-type: inline-size; }
/* Phones: let the scene use the full screen width; it is illustration, and
   every extra pixel makes the mock text easier to read. */
@media (max-width: 639px) {
  .stage { margin-inline: calc(-1 * var(--gutter) + 6px); }
}
.stage__fit {
  position: relative;
  aspect-ratio: 640 / 540;
  /* Everything inside is sized in em, so the whole scene scales with the
     column. 14px at the 640px design width. */
  font-size: 14px;
  font-size: calc(100cqi / 45.7);
  line-height: 1.35;
  color: var(--text);
  user-select: none;
}
.stage p { margin: 0; }
.stage .icon { width: 1.1em; height: 1.1em; }

.stage__tag {
  position: absolute; right: 2%; top: 0; z-index: 4;
  padding: .3em .7em;
  border-radius: 99em;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  font-size: .68em; font-weight: 550; letter-spacing: .04em; text-transform: uppercase;
}

.stage__trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.stage__trail path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.demo[data-trail="out"] [data-trail="out"],
.demo[data-trail="back"] [data-trail="back"] { opacity: .55; }

.packet {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: .9em; height: .9em; margin: -.45em 0 0 -.45em;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 .35em color-mix(in srgb, var(--brand) 22%, transparent), 0 0 1.4em var(--brand);
  opacity: 0;
  transition: opacity var(--dur-1) linear;
  will-change: transform;
}
.demo[data-trail] .packet { opacity: 1; }

/* Shared mock primitives */
.m-muted { color: var(--muted); }
.m-h { font-size: 1.12em; font-weight: 650; letter-spacing: -.015em; }
.m-sub { margin-top: .3em; font-size: .8em; line-height: 1.45; color: var(--muted); }
.m-meta { display: flex; align-items: center; gap: .4em; font-size: .74em; color: var(--muted); }
.m-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  height: 2.75em; border-radius: .75em;
  font-size: .82em; font-weight: 600;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}
.m-btn--primary { background: var(--brand-strong); color: var(--on-brand); }
.m-btn--ghost { border: 1px solid var(--border-strong); color: var(--text-2); }

/* Browser */
.browser {
  position: absolute; left: 0; top: 4%;
  width: 80%; height: 76%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2em;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: 1em;
  height: 2.6em; padding: 0 1em; flex: none;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser__dots { display: flex; gap: .4em; }
.browser__dots i { width: .62em; height: .62em; border-radius: 50%; background: var(--border-strong); }
.browser__url {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  width: 52%; height: 1.75em; margin: 0 auto; transform: translateX(-1.6em);
  border-radius: .6em; background: var(--surface); border: 1px solid var(--border);
  font-size: .74em; color: var(--muted);
}
.browser__url .icon { width: .95em; height: .95em; }
.browser__body {
  position: relative; flex: 1;
  padding: 1em 1.4em;
  background:
    radial-gradient(120% 80% at 0% 0%, var(--bg-tint), transparent 60%),
    var(--surface-2);
}
.org-strip { display: flex; align-items: center; gap: .6em; font-size: .76em; }
.org-chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .75em .3em .55em;
  border-radius: 99em; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600;
}
.org-chip .icon { color: var(--brand-ink); }

.b-card {
  position: absolute; left: 1.4em; top: 3.4em;
  width: 70%;
  padding: 1.25em;
  border-radius: 1em;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(.6em) scale(.985);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease-out);
}
.demo[data-browser="request"] .b-request,
.demo[data-browser="wait"] .b-wait,
.demo[data-browser="unlocked"] .b-record { opacity: 1; transform: none; }

/* request */
.m-input {
  display: flex; flex-direction: column; gap: .25em;
  margin-top: 1em; padding: .6em .85em;
  border: 1px solid var(--border-strong); border-radius: .75em;
  background: var(--surface);
  box-shadow: 0 0 0 .25em var(--brand-soft);
}
.m-input__label { font-size: .64em; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.m-code {
  display: flex; align-items: center; min-height: 1.4em;
  font-size: 1.05em; font-weight: 600; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.m-caret { width: 1px; height: 1.1em; margin-left: 2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.b-request__btn { margin-top: .9em; }
.demo[data-press] .b-request__btn { transform: scale(.97); filter: brightness(.92); }

/* waiting */
.b-wait__head { display: flex; gap: .85em; align-items: flex-start; }
.m-spinner {
  flex: none; width: 1.7em; height: 1.7em; margin-top: .1em;
  border-radius: 50%;
  border: .22em solid var(--brand-soft);
  border-top-color: var(--brand);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.b-wait__locked {
  display: grid; gap: .55em;
  margin: 1.1em 0 1em; padding: .9em;
  border-radius: .8em;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
}
.m-lockchip { display: flex; align-items: center; gap: .4em; font-size: .72em; font-weight: 550; color: var(--text-2); }
.m-lockchip .icon { color: var(--brand-ink); }
.m-sk { display: block; height: .55em; border-radius: 99em; background: var(--border); }

/* record */
.rec-head { display: flex; align-items: center; gap: .75em; }
.rec-avatar {
  display: grid; place-items: center; flex: none;
  width: 2.6em; height: 2.6em; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: .9em; font-weight: 700;
}
.rec-id { flex: 1; min-width: 0; }
.rec-name { font-size: 1.05em; font-weight: 650; letter-spacing: -.015em; }
.rec-chips { display: flex; gap: .35em; margin-top: .25em !important; }
.rec-chips span {
  padding: .1em .5em; border-radius: 99em;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .66em; font-weight: 550; color: var(--text-2);
}
.rec-ok {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .3em .6em; border-radius: 99em;
  background: var(--ok-soft); color: var(--ok);
  font-size: .68em; font-weight: 650;
}
.rec-label {
  margin-top: .95em !important;
  font-size: .62em; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.rec-label--alert { color: var(--alert-ink); }
.rec-row {
  display: flex; align-items: center; justify-content: space-between; gap: .6em;
  margin-top: .4em; padding: .55em .7em;
  border-radius: .65em;
  background: var(--surface-2);
  font-size: .82em;
}
.rec-row .m-muted { font-size: .92em; }
.rec-row__main { font-weight: 600; }
.rec-row--alert { background: var(--alert-soft); box-shadow: inset 3px 0 0 var(--alert); }
.rec-sev {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .25em .6em; border-radius: 99em;
  background: var(--alert); color: var(--on-alert);
  font-size: .82em; font-weight: 650;
}
.rec-sev .icon { width: 1em; height: 1em; }
.rec-call {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .25em .65em; border-radius: 99em;
  background: var(--brand-strong); color: var(--on-brand);
  font-size: .85em; font-weight: 600;
}
.rec-call .icon { width: .95em; height: .95em; }
.rec-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .9em; padding-top: .75em;
  border-top: 1px dashed var(--border-strong);
  font-size: .72em;
}
.rec-timer { display: inline-flex; align-items: center; gap: .35em; color: var(--text-2); }
.rec-timer .icon { color: var(--brand-ink); }
.rec-timer b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }

.b-record > * {
  opacity: 0; transform: translateY(.35em);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease-out);
}
.demo[data-browser="unlocked"] .b-record > * {
  opacity: 1; transform: none;
  transition-delay: calc(120ms + var(--d, 0) * 70ms);
}

/* Phone */
.phone {
  position: absolute; right: 1.5%; bottom: 0; z-index: 2;
  width: 33%; aspect-ratio: 9 / 19;
  padding: .42em;
  border-radius: 2.6em;
  background: var(--device);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 0 0 .2em rgb(255 255 255 / .03);
}
.phone__screen {
  position: relative; height: 100%;
  border-radius: 2.2em;
  overflow: hidden;
  background: var(--surface);
}
.phone__island {
  position: absolute; z-index: 6; top: .6em; left: 50%;
  width: 34%; height: 1.45em; transform: translateX(-50%);
  border-radius: 99em; background: #050304;
}
.p-layer {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 3em 1em 1.1em;
  opacity: 0; transform: scale(.98);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease-out);
}
.demo[data-phone="lock"] .p-lock,
.demo[data-phone="notified"] .p-lock,
.demo[data-phone="sheet"] .p-sheet,
.demo[data-phone="approved"] .p-done { opacity: 1; transform: none; }

.p-lock {
  align-items: center;
  padding-top: 4.4em;
  color: #fff;
  background:
    radial-gradient(90% 60% at 20% 10%, rgb(255 255 255 / .22), transparent 60%),
    linear-gradient(165deg, #C9A3BC 0%, #9C6B8B 38%, #4A2E41 100%);
}
.p-lock__time { font-size: 3.1em; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.p-lock__hint { margin-top: .5em !important; font-size: .72em; opacity: .85; }

.p-notif {
  position: absolute; z-index: 5; left: .55em; right: .55em; top: 7.4em;
  display: flex; gap: .55em; align-items: flex-start;
  padding: .7em .75em;
  border-radius: 1.1em;
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #23161F;
  box-shadow: 0 .6em 1.6em -.4em rgb(28 16 25 / .45);
  opacity: 0; transform: translateY(-1.2em) scale(.96);
  transition: opacity 360ms var(--ease), transform 560ms cubic-bezier(.2, 1.3, .3, 1);
}
.demo[data-phone="notified"] .p-notif { opacity: 1; transform: none; }
.p-notif img { width: 1.9em; height: 1.9em; border-radius: .5em; background: #fff; }
.p-notif__app { font-size: .6em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6E5F69; }
.p-notif__app span { float: right; text-transform: none; letter-spacing: 0; font-weight: 500; }
.p-notif__title { margin-top: .15em !important; font-size: .74em; font-weight: 650; line-height: 1.25; }
.p-notif__body { margin-top: .15em !important; font-size: .66em; color: #4D3E48; }

.p-eyebrow { font-size: .62em; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.p-org { display: flex; align-items: center; gap: .55em; margin-top: .8em; }
.p-org__icon {
  display: grid; place-items: center; flex: none;
  width: 2.2em; height: 2.2em; border-radius: .65em;
  background: var(--brand-soft); color: var(--brand-ink);
}
.p-org__name { font-size: .9em; font-weight: 650; letter-spacing: -.01em; }
.p-org__sub { font-size: .64em; color: var(--muted); }
.p-text { margin-top: .7em !important; font-size: .74em; line-height: 1.4; color: var(--text-2); }
.p-list { list-style: none; padding: 0; margin-top: .7em; display: grid; gap: .1em; }
.p-list li {
  display: flex; align-items: center; gap: .45em;
  padding: .45em 0;
  border-bottom: 1px solid var(--border);
  font-size: .74em; font-weight: 550;
}
.p-list .icon { width: 1em; height: 1em; color: var(--ok); stroke-width: 2.5; }
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: auto; }
.p-actions .m-btn { height: 2.6em; font-size: .76em; border-radius: .8em; }
.demo[data-tap] .p-approve { transform: scale(.95); filter: brightness(.92); }
.p-tap {
  position: absolute; left: 50%; top: 50%;
  width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em;
  border-radius: 50%;
  background: rgb(255 255 255 / .6);
  opacity: .9; transform: scale(0);
}
.demo[data-tap] .p-tap { opacity: 0; transform: scale(2.4); transition: transform 600ms var(--ease-out), opacity 600ms var(--ease); }
.p-foot {
  display: flex; align-items: center; justify-content: center; gap: .35em;
  margin-top: .7em !important;
  font-size: .62em; color: var(--muted);
}
.p-foot .icon { width: 1.05em; height: 1.05em; }

.p-done { align-items: center; justify-content: center; text-align: center; }
.p-done__icon {
  display: grid; place-items: center;
  width: 3.4em; height: 3.4em; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
}
.p-done__icon .icon { width: 1.6em; height: 1.6em; stroke-width: 2.5; }
.p-done__title { margin-top: .8em !important; font-size: 1em; font-weight: 650; letter-spacing: -.01em; }
.p-done__text { margin-top: .4em !important; font-size: .72em; line-height: 1.45; color: var(--muted); }
.p-done .m-btn { width: 100%; margin-top: 1.2em; height: 2.6em; font-size: .74em; }
.demo[data-phone="approved"] .p-done__icon { animation: pop 520ms cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Controls */
.demo-controls { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.demo-toggle {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 50%;
  background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.demo-toggle:hover { border-color: var(--mauve-300); color: var(--text); }
.demo-toggle .icon { width: 16px; height: 16px; }
.demo-toggle .icon--play { display: none; fill: currentColor; stroke: none; margin-left: 2px; }
.demo-toggle .icon--pause { fill: currentColor; stroke: none; }
.demo[data-paused] .demo-toggle .icon--play { display: block; }
.demo[data-paused] .demo-toggle .icon--pause { display: none; }

.demo-steps {
  flex: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2);
  list-style: none; padding: 0;
}
.demo-steps button {
  display: grid; gap: .5rem;
  width: 100%; min-height: 44px; padding: .25rem 0 0;
  border: 0; background: none;
  text-align: left;
  font-size: var(--fs-xs); font-weight: 550; color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease);
}
.demo-steps button:hover, .demo-steps button[aria-current="step"] { color: var(--text); }
.demo-steps__bar { display: block; height: 3px; border-radius: 99px; background: var(--border); overflow: hidden; }
.demo-steps__bar span {
  display: block; height: 100%; border-radius: inherit;
  background: var(--brand);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}

/* 10. Motion --------------------------------------------------------------- */
.load-rise { animation: rise 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .eyebrow__dot::after, .m-spinner, .m-caret { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 11. Sections & scroll reveal ------------------------------------------- */
.section { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-ink);
}
.kicker::before, .kicker::after { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .45; }
.section-title {
  margin-top: var(--s-4);
  font-size: var(--fs-h2); font-weight: 620; line-height: 1.06; letter-spacing: -.035em;
  text-wrap: balance;
}
.section-title .serif { font-size: 1.08em; letter-spacing: -.01em; color: var(--brand-ink); }
.section-lede {
  max-width: 38rem; margin: var(--s-5) auto 0;
  font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2);
  text-wrap: pretty;
}

/* Reveal only runs with JS; without it everything is simply visible.
   JS removes [data-reveal] once the reveal ends, so later hover transitions
   are not held back by the stagger delay. */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 12. Audience strip ------------------------------------------------------- */
.audience { padding-block: var(--s-4) 0; }
.audience + .section { padding-top: clamp(4.5rem, 9vw, 7.5rem); }
.audience__title {
  text-align: center;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; color: var(--muted);
}
.marquee { display: flex; justify-content: center; margin-top: var(--s-5); }
.marquee__track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3);
  list-style: none; margin: 0; padding: 0;
}
.marquee__track[aria-hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .625rem;
  height: 48px; padding: 0 1.125rem 0 .375rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-sm);
  font-size: .9375rem; font-weight: 560; white-space: nowrap;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--mauve-300); }
.chip__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
}
.chip__icon .icon { width: 18px; height: 18px; }

/* Phones: the five chips do not fit on one line, so they drift instead. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .marquee {
    justify-content: flex-start; overflow: hidden;
    margin-inline: calc(-1 * var(--gutter));
    padding-block: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .marquee__track, .marquee__track[aria-hidden] {
    display: flex; flex: none; flex-wrap: nowrap;
    padding-right: var(--s-3);
    animation: marquee 32s linear infinite;
  }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* 13. Bento ---------------------------------------------------------------- */
.bento {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none; padding: 0;
}
@media (min-width: 720px) and (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .bento__card { grid-column: span 5; }
  .bento__card--wide { grid-column: span 7; }
}
.bento__card {
  display: flex; flex-direction: column;
  padding: .5rem;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.bento__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bento__art {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: clamp(232px, 22vw, 272px);
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--r-xl) - .5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--bg-tint), var(--surface-2));
}
.bento__art::after {
  /* fade the dot grid out toward the edges */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(75% 70% at 50% 50%, transparent 30%, var(--surface-2));
}
.bento__art > * { position: relative; }
.bento__text { padding: 1.25rem 1rem 1rem; }
.bento__title {
  display: flex; align-items: center; gap: .625rem;
  font-size: 1.125rem; font-weight: 620; letter-spacing: -.02em;
}
.bento__icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.bento__icon .icon { width: 16px; height: 16px; }
.bento__text p { margin-top: .5rem; max-width: 36rem; font-size: .9375rem; color: var(--muted); }

/* A. Code card */
.code-card {
  width: min(340px, 92%);
  padding: 16px 18px 18px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 0% 0%, #C49AB6 0%, transparent 55%),
    linear-gradient(140deg, #9C6B8B, #4A2E41);
  box-shadow: 0 24px 40px -20px rgb(74 46 65 / .7), inset 0 1px 0 rgb(255 255 255 / .22);
  overflow: hidden;
  transform: rotate(-3deg);
}
.code-card__top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .92; }
.code-card__top img { width: 22px; height: 22px; padding: 2px; border-radius: 6px; background: #fff; }
.code-card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; }
.code-card__name { font-size: 13px; opacity: .85; }
.code-card__code { margin-top: 2px; font-size: clamp(15px, 1.7vw + 8px, 21px); font-weight: 650; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code-card__hint { margin-top: 6px; font-size: 11px; opacity: .75; }
.code-card__qr { flex: none; width: clamp(52px, 4vw + 30px, 66px); height: auto; aspect-ratio: 1; padding: 5px; border-radius: 10px; background: #fff; fill: #2E1B29; }
.code-card__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%);
  transform: translateX(-120%);
}
.is-live .code-card__sheen { animation: sheen 5.5s var(--ease) 1s infinite; }
@keyframes sheen { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.float-chip {
  position: absolute !important; left: var(--x); top: var(--y);
  padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 550; color: var(--text-2); white-space: nowrap;
}
.is-live .float-chip { animation: bob 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 559px) { .float-chip { display: none; } }

/* B. Approval toggle — loops: waiting, tap, approved, reset */
.req {
  width: min(360px, 92%);
  padding: 16px;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-md);
}
.req__row { display: flex; align-items: center; gap: 12px; }
.req__org { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.req__who { flex: 1; min-width: 0; }
.req__name { font-size: 14px; font-weight: 620; }
.req__what { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--border-strong); }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch__tap { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 35%, transparent); opacity: 0; }
.req__status { position: relative; height: 34px; margin-top: 14px; border-top: 1px solid var(--border); }
.req__state { position: absolute; left: 0; top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 560; }
.req__state--wait { color: var(--muted); }
.req__state--wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.req__state--ok { color: var(--ok); opacity: 0; }
.req__state--ok .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.is-live .switch { animation: sw-track 5s var(--ease) infinite; }
.is-live .switch__knob { animation: sw-knob 5s var(--ease) infinite; }
.is-live .switch__tap { animation: sw-tap 5s ease-out infinite; }
.is-live .req__state--wait { animation: st-wait 5s infinite; }
.is-live .req__state--ok { animation: st-ok 5s infinite; }
@keyframes sw-track { 0%, 30% { background: var(--border-strong); } 36%, 86% { background: var(--ok); } 92%, 100% { background: var(--border-strong); } }
@keyframes sw-knob { 0%, 30% { transform: none; } 36%, 86% { transform: translateX(18px); } 92%, 100% { transform: none; } }
@keyframes sw-tap { 0%, 27% { transform: scale(.3); opacity: 0; } 30% { transform: scale(.6); opacity: .9; } 44%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes st-wait { 0%, 32% { opacity: 1; } 36%, 88% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes st-ok { 0%, 32% { opacity: 0; } 38%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }

/* C. Responder ordering — rows arrive shuffled and settle by urgency */
.order {
  --row: 46px; --gap: 8px;
  width: min(360px, 92%); height: calc(4 * var(--row) + 3 * var(--gap));
  list-style: none; margin: 0; padding: 0;
}
.order__row {
  position: absolute; inset: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  height: var(--row); padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  transform: translateY(calc(var(--to) * (var(--row) + var(--gap))));
  transition: transform 900ms var(--ease-out);
}
.js .order__row { transform: translateY(calc(var(--from) * (var(--row) + var(--gap)))); }
.js .is-in .order__row { transform: translateY(calc(var(--to) * (var(--row) + var(--gap)))); transition-delay: calc(550ms + var(--to) * 90ms); }
.order__row b { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-weight: 650; color: var(--muted); }
.order__row span { flex: 1; min-width: 0; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order__row em { flex: none; font-style: normal; font-size: 12px; color: var(--muted); }
.order__row--alert { z-index: 1; background: linear-gradient(var(--alert-soft), var(--alert-soft)), var(--surface); border-color: color-mix(in srgb, var(--alert) 30%, transparent); }
.order__row--alert b { background: var(--alert); border-color: transparent; color: var(--on-alert); }
.order__row .order__sev { padding: 3px 9px; border-radius: 99px; background: var(--alert); color: var(--on-alert); font-size: 11.5px; font-weight: 620; }
.order__row .order__call { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--brand-strong); color: var(--on-brand); font-weight: 600; }
.order__call .icon { width: 12px; height: 12px; }

/* D. Expiry ring + audit trail */
.art-expire { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.25rem); }
.ring { flex: none; width: 128px; height: 128px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.ring__track { stroke: var(--border); }
.ring__fill { stroke: var(--brand); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 99)); transition: stroke-dashoffset 1s linear; }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.ring__label b { font-size: 21px; font-weight: 620; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring__label span { font-size: 11.5px; color: var(--muted); }
.audit { display: grid; gap: 8px; width: min(330px, 100%); list-style: none; margin: 0; padding: 0; }
.audit li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
  font-size: 12.5px; line-height: 1.35; color: var(--text-2);
}
.audit b { font-weight: 600; color: var(--text); }
.audit__t { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.audit li.audit__revoke { align-items: center; gap: 8px; border-style: dashed; background: transparent; color: var(--brand-ink); font-weight: 560; }
.audit__revoke .icon { width: 14px; height: 14px; }
.js .audit li { opacity: 0; transform: translateX(10px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .is-in .audit li { opacity: 1; transform: none; transition-delay: calc(450ms + var(--k) * 120ms); }

/* 14. How it works ---------------------------------------------------------- */
.how {
  background: linear-gradient(var(--bg), var(--bg-tint) 14%, var(--bg-tint) 86%, var(--bg));
}
.how__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 1024px) {
  .how__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .steps { grid-column: 1 / span 6; padding-top: 14vh; }
  .how__stage { grid-column: 8 / span 5; }
}

/* Timeline */
.steps { --dot: 40px; position: relative; }
.steps__rail {
  position: absolute; left: calc(var(--dot) / 2 - 1px); top: 0; width: 2px;
  border-radius: 2px; background: var(--border-strong);
}
.steps__fill {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--brand), var(--mauve-400));
  transform-origin: top; transform: scaleY(0);
}
.steps__list { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); column-gap: 1.25rem;
  padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
@media (min-width: 1024px) {
  /* Each step gets enough scroll for the phone beside it to settle. */
  .step { min-height: 52vh; padding-bottom: 0; }
  .step:last-child { min-height: 58vh; }
}
.step__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.step.is-past .step__dot { border-color: transparent; background: var(--brand-soft); color: var(--brand-ink); }
.step.is-active .step__dot {
  border-color: transparent; background: var(--brand-strong); color: var(--on-brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 16%, transparent);
}
.step__body { padding-top: .4rem; }
.step__title {
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); font-weight: 620; line-height: 1.2; letter-spacing: -.025em;
  transition: color var(--dur-2) var(--ease);
}
.step__text { margin-top: .625rem; max-width: 30rem; color: var(--muted); }
.step__eg {
  display: inline-flex; align-items: center; gap: .625rem;
  margin-top: 1rem; padding: .4rem .875rem .4rem .4rem;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm); color: var(--text-2);
}
.step__eg-icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.step__eg-icon .icon { width: 15px; height: 15px; }
.step__eg--alert .step__eg-icon { background: var(--alert-soft); color: var(--alert-ink); }
.step__eg--ok .step__eg-icon { background: var(--ok-soft); color: var(--ok); }
.step__eg--code { font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* On desktop the phone tells the story, so only the current step is at full
   strength. Muted still clears AA, so nothing becomes unreadable. */
@media (min-width: 1024px) {
  .js .step__title { color: var(--muted); }
  .js .step.is-active .step__title { color: var(--text); }
  .js .step__eg { opacity: .6; transition: opacity var(--dur-2) var(--ease); }
  .js .step.is-active .step__eg { opacity: 1; }
}

/* Sticky stage: a full-height box that holds the phone centred, so the phone
   stays put while the steps scroll past. Scrolling is never intercepted. */
.how__stage { display: none; }
@media (min-width: 1024px) {
  .how__stage {
    position: sticky; top: var(--nav-h);
    display: grid; place-items: center;
    height: calc(100svh - var(--nav-h));
    align-self: start;
  }
}
.how__device { position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.how__device::before {
  content: ""; position: absolute; inset: 10% -20% 0; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(30px);
}

.how-badge { display: grid; }
.how-badge__item {
  grid-area: 1 / 1; justify-self: center;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .875rem .4rem .7rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 560; color: var(--text-2); white-space: nowrap;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.how-badge__item .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.how-badge__item--org { opacity: 0; transform: translateY(4px); }
[data-screen="2"] .how-badge__item--org, [data-screen="4"] .how-badge__item--org { opacity: 1; transform: none; }
[data-screen="2"] .how-badge__item--guardian, [data-screen="4"] .how-badge__item--guardian { opacity: 0; transform: translateY(-4px); }

/* Phone */
.hp {
  container-type: inline-size;
  width: min(300px, calc((100svh - var(--nav-h) - 150px) * .4615));
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 48px;
  background: var(--device);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 0 0 4px rgb(255 255 255 / .03);
}
.hp__screen {
  position: relative; height: 100%;
  border-radius: 40px; overflow: hidden;
  background: var(--surface);
  font-size: 14px;
  font-size: calc(100cqi / 20.5);
  line-height: 1.35;
  user-select: none;
}
.hp__screen .icon { width: 1.1em; height: 1.1em; }
.hp__island { position: absolute; z-index: 6; top: .65em; left: 50%; width: 32%; height: 1.55em; transform: translateX(-50%); border-radius: 99em; background: #050304; }
.hp__status {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: 2.9em; padding: 0 1.9em;
  font-size: .8em; font-weight: 650;
}
.hp__battery { width: 1.7em; height: .85em; border: 1.5px solid currentColor; border-radius: .25em; opacity: .8; box-shadow: inset 0 0 0 1.5px var(--surface), inset 1.1em 0 0 currentColor; }

.scr {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 3.5em 1.15em 1.3em;
  opacity: 0; transform: translateY(.8em) scale(.985);
  transition: opacity 420ms var(--ease), transform 560ms var(--ease-out);
}
[data-screen="0"] .scr-0, [data-screen="1"] .scr-1, [data-screen="2"] .scr-2,
[data-screen="3"] .scr-3, [data-screen="4"] .scr-4, [data-screen="5"] .scr-5 { opacity: 1; transform: none; }
.scr--web { background: var(--surface-2); }
.scr .m-h { margin-top: .2em; }
.hp__eyebrow { font-size: .64em; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-ink); }

/* 1 · profile */
.hp-field {
  display: grid; gap: .2em;
  margin-top: .9em; padding: .6em .8em;
  border: 1px solid var(--border-strong); border-radius: .8em;
  box-shadow: 0 0 0 .25em var(--brand-soft);
}
.hp-field__label, .hp-label { font-size: .62em; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hp-field__value { font-size: .95em; font-weight: 600; }
.hp-label { margin-top: 1.1em !important; }
.hp-sev { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .5em; }
.hp-sev span {
  padding: .35em .7em; border-radius: 99em;
  border: 1px solid var(--border-strong);
  font-size: .7em; font-weight: 560; color: var(--text-2);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
[data-screen="0"] .hp-sev__pick { background: var(--alert); border-color: transparent; color: var(--on-alert); transition-delay: 600ms; }
.hp-list { list-style: none; margin: 1.1em 0 0; padding: 0; }
.hp-list li {
  display: flex; justify-content: space-between; gap: .5em;
  padding: .6em 0; border-bottom: 1px solid var(--border);
  font-size: .76em; color: var(--muted);
}
.hp-list b { font-weight: 600; color: var(--text); }
.hp-contacts { list-style: none; margin: .5em 0 0; padding: 0; display: grid; gap: .45em; }
.hp-contacts li { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border-radius: .8em; background: var(--surface-2); }
.hp-contacts__av { display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: .7em; font-weight: 700; }
.hp-contacts li > span:last-child { display: grid; font-size: .7em; color: var(--muted); line-height: 1.3; }
.hp-contacts b { font-size: 1.08em; font-weight: 600; color: var(--text); }
.hp-cta { margin-top: auto; }

/* 2 · code */
.hp-code {
  display: grid; justify-items: center; text-align: center;
  margin-top: 1em; padding: 1.3em 1em 1.1em;
  border-radius: 1.2em;
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, #C49AB6, transparent 55%),
    linear-gradient(150deg, #9C6B8B, #4A2E41);
  box-shadow: 0 1.2em 2em -1.2em rgb(74 46 65 / .7);
}
.hp-code__qr { width: 54%; aspect-ratio: 1; height: auto; padding: .45em; border-radius: .7em; background: #fff; fill: #2E1B29; }
.hp-code__text { margin-top: .8em !important; font-size: 1.12em; font-weight: 650; letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.hp-code__hint { margin-top: .25em !important; font-size: .68em; opacity: .8; }
.hp-stack { display: grid; gap: .5em; margin-top: auto; }

/* 3 · portal request */
.hp-url {
  display: flex; align-items: center; justify-content: center; gap: .35em;
  margin: -.3em -.2em .9em; padding: .45em;
  border: 1px solid var(--border); border-radius: .8em;
  background: var(--surface);
  font-size: .68em; color: var(--muted);
}
.hp-url .icon { width: 1em; height: 1em; }
.hp-org { align-self: flex-start; margin-bottom: .8em; font-size: .7em; }
.scr-2 .m-input { background: var(--surface); }
.hp-request { margin-top: .9em; }
.hp-foot { margin-top: auto !important; padding-top: .8em; }
.hp-recent { margin-top: 1.2em; padding: .2em .85em .5em; border: 1px solid var(--border); border-radius: .9em; background: var(--surface); }
.hp-recent .hp-label { margin: .7em 0 .3em !important; }
.hp-recent p:not(.hp-label) { display: flex; align-items: center; gap: .5em; padding: .45em 0; font-size: .72em; }
.hp-recent i { width: .55em; height: .55em; border-radius: 50%; background: var(--border-strong); }
.hp-recent i.is-wait { background: var(--brand); }
.hp-recent b { margin-left: auto; font-weight: 600; color: var(--muted); }
.hp-asker { display: flex; align-items: center; gap: .6em; margin-top: 1em; padding: .6em .7em; border-radius: .9em; background: var(--surface-2); }
.hp-asker > span:last-child { display: grid; font-size: .68em; color: var(--muted); line-height: 1.3; }
.hp-asker b { font-size: 1.1em; font-weight: 600; color: var(--text); }
[data-screen="2"] .hp-request { animation: press 2.4s var(--ease) 1.1s; }
@keyframes press { 0%, 100% { transform: none; } 8% { transform: scale(.96); filter: brightness(.92); } 16% { transform: none; } }

/* 4 · guardian decides */
.hp-decide { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: auto; }
[data-screen="3"] .hp-approve { animation: press 2.4s var(--ease) .8s; }
.hp-toast {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  margin-top: .6em; padding: .55em;
  border-radius: .8em;
  background: var(--ok-soft); color: var(--ok);
  font-size: .72em; font-weight: 620;
  opacity: 0; transform: translateY(.4em);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
[data-screen="3"] .hp-toast { opacity: 1; transform: none; transition-delay: 1.15s; }

/* 5 · record (reuses the hero's record styles) */
.scr-4 .rec-row { background: var(--surface); }
.scr-4 .rec-row--alert { background: var(--alert-soft); }
.scr-4 .rec-row--alert, .scr-4 .rec-label--alert { opacity: 0; transform: translateY(.4em); transition: opacity 400ms var(--ease), transform 400ms var(--ease-out); }
[data-screen="4"] .scr-4 .rec-row--alert, [data-screen="4"] .scr-4 .rec-label--alert { opacity: 1; transform: none; transition-delay: 350ms; }

/* 6 · activity: access runs out on its own */
.hp-live { display: grid; margin-top: .9em; }
.hp-live__state {
  grid-area: 1 / 1;
  display: flex; align-items: center; gap: .65em;
  padding: .75em .85em;
  border: 1px solid var(--border); border-radius: .9em;
  font-size: .76em; line-height: 1.3;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.hp-live__state > div { flex: 1; min-width: 0; }
.hp-live__state .m-muted { font-size: .9em; }
.hp-live__dot { flex: none; width: .65em; height: .65em; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 .3em var(--brand-soft); }
.hp-revoke { flex: none; padding: .35em .7em; border: 1px solid var(--border-strong); border-radius: 99em; font-size: .9em; font-weight: 600; color: var(--text-2); }
.hp-live__state--off { background: var(--ok-soft); border-color: transparent; color: var(--ok); opacity: 0; transform: scale(.97); }
.hp-live__state--off b { color: var(--ok); }
.hp-live__state--off .m-muted { color: var(--ok); opacity: .85; }
[data-screen="5"] .hp-live__state--on { opacity: 0; transform: scale(.97); transition-delay: 1.3s; }
[data-screen="5"] .hp-live__state--off { opacity: 1; transform: none; transition-delay: 1.3s; }
.hp-log { list-style: none; margin: 1em 0 0; padding: 0; }
.hp-log li {
  display: flex; gap: .7em;
  padding: .6em 0; border-bottom: 1px solid var(--border);
  font-size: .72em; color: var(--text-2);
}
.hp-log span { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Space for the new entry is always reserved, so its arrival moves nothing. */
.hp-log__new { font-weight: 600; color: var(--ok) !important; opacity: 0; transform: translateY(-.3em); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
[data-screen="5"] .hp-log__new { opacity: 1; transform: none; transition-delay: 1.5s; }

/* 15. Solutions ------------------------------------------------------------- */
.sol__switch { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.seg {
  position: relative;
  display: inline-flex; max-width: 100%;
  padding: 4px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface-2);
  box-shadow: inset 0 1px 2px rgb(46 27 41 / .05);
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
  transition: transform 380ms var(--ease-out), width 380ms var(--ease-out);
}
.seg.no-anim .seg__thumb { transition: none; }
.seg__tab {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 1.25rem;
  border: 0; border-radius: var(--r-pill);
  background: none;
  font-size: var(--fs-sm); font-weight: 560; color: var(--muted); white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease);
}
.seg__tab:hover, .seg__tab[aria-selected="true"] { color: var(--text); }
.seg__tab:focus-visible { outline-offset: -2px; border-radius: var(--r-pill); }
html:not(.js) .seg__tab[aria-selected="true"] { background: var(--surface); }
@media (max-width: 519px) {
  .seg__more { display: none; }
  .seg__tab { padding: 0 1.05rem; }
}

.sol__panel {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--r-lg);
}
.sol__panel:focus-visible { outline-offset: 8px; }
@media (min-width: 960px) {
  .sol__panel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: center; }
  .sol__copies { grid-column: 2 / span 4; }
  .sol__stage { grid-column: 7 / span 5; }
}

/* The three copy blocks share one cell, so swapping them never changes the
   height of the column. */
.sol__copies { display: grid; }
.sol__copy {
  grid-area: 1 / 1;
  transition: opacity 360ms var(--ease), transform 420ms var(--ease-out), visibility 0s;
}
.sol__copy.is-off { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms; }
.sol__who { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.sol__title { margin-top: .75rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 620; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.sol__list { display: grid; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.sol__list li { display: flex; align-items: center; gap: .75rem; color: var(--text-2); }
.sol__list .icon {
  width: 24px; height: 24px; padding: 5px; flex: none;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 2.5;
}
.sol__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.75rem; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); }
.sol__link .icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease); }
.sol__link:hover .icon { transform: translateX(2px); }

/* The record */
.sol__stage { position: relative; display: grid; justify-items: center; align-content: start; }
.sol__stage::before {
  content: ""; position: absolute; inset: 6% -6% 0; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(30px);
}
.vrec {
  width: 100%; max-width: 30rem;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.vrec__bar { display: grid; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.vrec__src {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 560; color: var(--text-2);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s;
}
.vrec__src .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.vrec__src.is-off { opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity 200ms, transform 200ms, visibility 0s 200ms; }

.vrec__head { display: flex; align-items: center; gap: .875rem; padding: 1.25rem 1.375rem .25rem; }
.vrec__avatar { font-size: 17px; }
.vrec__name { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.vrec__chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .375rem; }
.vrec__chips span {
  display: inline-block; max-width: 8rem; overflow: hidden; white-space: nowrap;
  padding: .125rem .625rem; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface-2);
  font-size: .75rem; font-weight: 550; color: var(--text-2);
  transition: max-width 360ms var(--ease), opacity 260ms var(--ease), padding 360ms var(--ease), margin 360ms var(--ease), border-width 360ms var(--ease);
}
.vrec__chips .is-off { max-width: 0; padding-inline: 0; margin-left: -.375rem; border-width: 0; opacity: 0; }

/* Rows fold open and shut by animating the grid track, not height, so
   nothing is measured in JS and the content never squashes. */
.vrow {
  display: grid; grid-template-rows: 1fr;
  padding-inline: 1.375rem;
  transition: grid-template-rows 380ms var(--ease), opacity 300ms var(--ease) 80ms, visibility 0s;
}
.vrow.is-off { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 380ms var(--ease), opacity 180ms var(--ease), visibility 0s 380ms; }
.vrow__in { min-height: 0; overflow: hidden; }
.vrow__label { padding-top: 1rem; margin-bottom: .5rem; font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vrow__label--alert { color: var(--alert-ink); }
.vrow__line {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem .875rem;
  border-radius: 12px; background: var(--surface-2);
  font-size: .90625rem;
}
.vrow__line b { font-weight: 600; }
.vrow__line .m-muted { font-weight: 400; }
.vrow__line--alert { background: var(--alert-soft); box-shadow: inset 3px 0 0 var(--alert); }
.vrow__line .rec-sev { font-size: .75rem; }
.vrow__locked { display: none; justify-content: flex-start; gap: .5rem; background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }
.vrow__locked .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.vrow.is-locked .vrow__open { display: none; }
.vrow.is-locked .vrow__locked { display: flex; animation: fade-in 320ms var(--ease); }
.vrow:not(.is-locked) .vrow__open { animation: fade-in 320ms var(--ease); }
@keyframes fade-in { from { opacity: 0; } }

.vrow__swap { display: grid; justify-items: end; }
.vrow__act {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .75rem; border-radius: 99px;
  background: var(--brand-strong); color: var(--on-brand);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s;
}
.vrow__act .icon { width: 13px; height: 13px; }
.vrow__act--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.vrow__act.is-off { opacity: 0; transform: scale(.9); visibility: hidden; transition: opacity 160ms, transform 160ms, visibility 0s 160ms; }

.vrec__foot {
  display: grid;
  margin-top: 1.25rem; padding: 1rem 1.375rem 1.25rem;
  border-top: 1px dashed var(--border-strong);
}
.vfoot {
  grid-area: 1 / 1; align-self: start;
  transition: opacity 320ms var(--ease) 60ms, transform 320ms var(--ease) 60ms, visibility 0s;
}
.vfoot.is-off { opacity: 0; transform: translateY(4px); visibility: hidden; transition: opacity 160ms, transform 160ms, visibility 0s 160ms; }
.vfoot__title { margin-bottom: .25rem; font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vfoot__line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .3rem 0; font-size: .875rem; }
.vfoot__line > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.vfoot__line .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.vfoot__line b { font-variant-numeric: tabular-nums; }
.vfoot__act { font-size: .8125rem; font-weight: 600; color: var(--brand-ink); }
.vfoot__meta { margin-top: .375rem; font-size: .8125rem; color: var(--muted); }
.vdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.vdot--live { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.sol.no-anim *, .vrec.no-anim, .vrec.no-anim * { transition: none !important; animation: none !important; }

/* 16. Organisations: portal mockup ---------------------------------------- */
.dash {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: .875rem; line-height: 1.4;
}
.dash::before {
  /* brand halo bleeding out from behind the window */
  content: ""; position: absolute; inset: -20% 10% auto; height: 60%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(40px);
}
.dash__bar {
  display: flex; align-items: center; gap: 1rem;
  height: 44px; padding: 0 1rem;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.dash__url {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: min(360px, 50%); height: 28px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  font-size: .75rem; color: var(--muted);
}
.dash__url .icon { width: 12px; height: 12px; }
.dash__tag { font-size: .6875rem; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.dash__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 600px; }
.dash__side {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem .875rem;
  border-right: 1px solid var(--border); background: var(--surface-2);
}
.dash__org, .dash__me { display: flex; align-items: center; gap: .625rem; padding: 0 .375rem; }
.dash__org > span:last-child, .dash__me > span:last-child { display: grid; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.dash__org b, .dash__me b { font-size: .875rem; font-weight: 620; color: var(--text); }
.dash__org-mark {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--mauve-400), var(--mauve-700)); color: #fff;
  font-size: .75rem; font-weight: 700;
}
.dash__me { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }

.dnav { display: grid; gap: 2px; }
.dnav__item {
  display: flex; align-items: center; gap: .625rem;
  min-height: 40px; padding: 0 .75rem;
  border: 0; border-radius: 10px; background: none;
  font-size: .875rem; font-weight: 520; color: var(--text-2); text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.dnav__item .icon { width: 17px; height: 17px; color: var(--muted); transition: color var(--dur-1) var(--ease); }
.dnav__item:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.dnav__item[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.dnav__item[aria-selected="true"] .icon { color: var(--brand-ink); }
.dnav__item:focus-visible { outline-offset: -2px; }
.dnav__count {
  margin-left: auto; min-width: 20px; padding: 0 6px;
  border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: .6875rem; font-weight: 700; line-height: 20px; text-align: center;
}

.dash__main { position: relative; min-width: 0; overflow: hidden; }
.dpanel { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.75rem 0; }
.dpanel:not([hidden]) { animation: fade-in 280ms var(--ease); }
.dpanel[hidden] { display: none; }
.dpanel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dpanel__titles { display: flex; align-items: center; gap: .75rem; }
.dpanel__title { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.dpanel__sub { margin-top: .2rem; color: var(--muted); }
.dpanel__note { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.dpanel__note .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.dbadge {
  padding: .2rem .65rem; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: .75rem; font-weight: 650; font-variant-numeric: tabular-nums;
}
.dbtn {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 36px; padding: 0 .9rem; border-radius: 10px;
  background: var(--brand-strong); color: var(--on-brand);
  font-size: .8125rem; font-weight: 600;
}
.dbtn .icon { width: 15px; height: 15px; }

/* toolbar */
.dtools { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.dsearch {
  position: relative; flex: 1 1 220px; max-width: 340px;
  display: flex; align-items: center;
}
.dsearch .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.dsearch input {
  width: 100%; height: 40px; padding: 0 12px 0 36px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .875rem;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.dsearch input::placeholder { color: var(--muted); }
.dsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dfilter { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.dfilter__btn {
  height: 32px; padding: 0 .75rem; border: 0; border-radius: 7px; background: none;
  font-size: .8125rem; font-weight: 550; color: var(--muted); cursor: pointer;
}
.dfilter__btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
@media (pointer: coarse) { .dfilter__btn { height: 38px; } }

/* table */
.dtable-wrap {
  position: relative; flex: 1; min-height: 0; overflow: hidden; margin-top: 1rem;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
.dtable { width: 100%; border-collapse: collapse; }
.dtable th {
  padding: .5rem .75rem; border-bottom: 1px solid var(--border);
  font-size: .6875rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; text-align: left; color: var(--muted);
}
.dtable td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dtable tbody tr { transition: background-color var(--dur-1) var(--ease); }
.dtable tbody tr:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.dt-child { display: inline-flex; align-items: center; gap: .625rem; font-weight: 560; }
.dt-av {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: .6875rem; font-weight: 700;
}
.dt-col-class { color: var(--muted); }
.dt-none { color: var(--muted); }
.dt-alert { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--text-2); }
.dt-alert--crit { padding: .15rem .55rem; border-radius: 99px; background: var(--alert-soft); color: var(--alert-ink); font-weight: 600; }
.dt-alert .icon { width: 13px; height: 13px; }
.dt-perms { display: inline-flex; gap: .3rem; }
.dt-perms span { padding: .1rem .5rem; border: 1px solid var(--border); border-radius: 99px; font-size: .75rem; color: var(--text-2); }
.dt-go { width: 32px; color: var(--muted); }
.dt-go .icon { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.dtable tbody tr:hover .dt-go .icon { opacity: 1; transform: none; }
.dt-role { padding: .15rem .6rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .75rem; font-weight: 550; }
.dt-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--ok); font-weight: 550; }
.dt-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dt-status--wait { color: var(--muted); }
.dtable__empty { padding: 2.5rem 0; text-align: center; color: var(--muted); }
.dpanel__foot {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; margin: 0 -1.75rem; padding: 0 1.75rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--muted);
}
.dpanel__foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.dpager { display: inline-flex; align-items: center; gap: .5rem; }
.dpager > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 8px; }
.dpager > span:first-child { transform: scaleX(-1); opacity: .45; }
.dpager .icon { width: 14px; height: 14px; }

/* dashboard */
.dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.dstat {
  padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.dstat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dstat__label { font-size: .75rem; color: var(--muted); }
.dstat__value { margin-top: .25rem; font-size: 1.625rem; font-weight: 620; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dstat__delta { margin-top: .1rem; font-size: .75rem; color: var(--muted); }
.dstat__delta--up { color: var(--ok); }
.dgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: .75rem; margin-top: .75rem; }
.dcard { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.dcard__title { font-size: .8125rem; font-weight: 620; }

/* single-series column chart: <=24px columns, 4px rounded caps, one baseline */
.dchart {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end;
  height: 180px; margin-top: .75rem; padding-bottom: 22px;
  background: linear-gradient(var(--border), var(--border)) 0 calc(100% - 22px) / 100% 1px no-repeat;
}
.dchart__col { position: relative; display: flex; justify-content: center; height: 100%; }
.dchart__bar {
  align-self: flex-end;
  width: min(24px, 60%); height: calc(var(--h) * 85%);
  border-radius: 4px 4px 0 0;
  background: var(--brand);
  transform-origin: bottom; transform: scaleY(var(--grow, 1));
  transition: transform 700ms var(--ease-out), background-color var(--dur-1) var(--ease);
  transition-delay: calc(var(--k, 0) * 60ms);
}
.dchart__col.is-max .dchart__bar, .dchart__col:hover .dchart__bar { background: var(--brand-strong); }
.dchart__day { position: absolute; bottom: -22px; font-size: .6875rem; color: var(--muted); }
.dchart__val { position: absolute; bottom: calc(var(--h) * 85% + 4px); font-size: .75rem; font-weight: 650; color: var(--text); }
.dchart__col::after {
  content: attr(data-v);
  position: absolute; bottom: calc(var(--h) * 85% + 26px); left: 50%; z-index: 2;
  padding: .25rem .5rem; border-radius: 6px;
  background: var(--text); color: var(--bg);
  font-size: .6875rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.dchart__col:hover::after { opacity: 1; transform: translate(-50%, 0); }
.dash.is-waiting .dchart__bar { --grow: 0; }

/* requests */
.dreq-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.dreq {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 14px;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.dreq:hover { border-color: var(--mauve-300); background: color-mix(in srgb, var(--brand) 4%, transparent); }
.dreq__code { justify-self: start; white-space: nowrap; padding: .3rem .6rem; border-radius: 8px; background: var(--surface-2); font-weight: 650; letter-spacing: .05em; font-variant-numeric: tabular-nums; font-size: .8125rem; }
.dreq__who { font-size: .8125rem; color: var(--text-2); line-height: 1.5; }
.dreq__who b { color: var(--text); font-weight: 600; }
.dreq__state { display: grid; justify-items: end; gap: .25rem; font-size: .75rem; }
.dpill { white-space: nowrap; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.dpill--wait { background: var(--brand-soft); color: var(--brand-ink); }

/* activity */
.dact-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.dact { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.dact__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.dact__icon--ok { background: var(--ok-soft); color: var(--ok); }
.dact__icon .icon { width: 15px; height: 15px; }
.dact__text { display: grid; flex: 1; min-width: 0; color: var(--text-2); }
.dact__text b { color: var(--text); font-weight: 600; }
.dact__text .m-muted { font-size: .75rem; }
.dact__t { flex: none; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dact-list--mini { margin-top: .5rem; }
.dact-list--mini .dact { padding: .55rem 0; }
.dact-list--mini .dact:last-child { border-bottom: 0; }

/* Narrower screens: the sidebar becomes a top tab strip, columns drop. */
@media (max-width: 1023px) {
  .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .dgrid .dcard:last-child { display: none; }
}
@media (max-width: 767px) {
  .dash__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 620px; }
  .dash__side { flex-direction: row; padding: .5rem; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
  .dash__org, .dash__me { display: none; }
  .dnav { display: flex; gap: 4px; }
  .dnav__item { flex: none; min-height: 40px; padding: 0 .7rem; }
  .dnav__item .icon { display: none; }
  .dnav__count { margin-left: .25rem; }
  .dpanel { padding: 1.1rem 1rem 0; }
  .dpanel__foot { margin: 0 -1rem; padding: 0 1rem; }
  .dt-col-class, .dt-col-access, .dt-go { display: none; }
  .dtable th, .dtable td { padding-inline: .5rem; }
  .dtable td { white-space: normal; }
  .dt-child { white-space: nowrap; }
  .dt-alert--crit { border-radius: 8px; }
  .dash__side { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .dreq { grid-template-columns: 1fr auto; }
  .dreq__who { grid-column: 1 / -1; grid-row: 2; }
  .dbtn { display: none; }
  .dash__url { width: auto; flex: 1; }
  .dash__tag { display: none; }
}

/* Feature notes under the mockup */
.ofeats {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 1.5rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .ofeats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ofeats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ofeat__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.ofeat__icon .icon { width: 19px; height: 19px; }
.ofeat__title { margin-top: 1rem; font-size: 1.0625rem; font-weight: 620; letter-spacing: -.015em; }
.ofeat p { margin-top: .4rem; font-size: .9375rem; color: var(--muted); }

/* 17. Security & privacy (always dark) ------------------------------------- */
/* The section re-points the semantic tokens, so every component inside it
   renders its dark form whatever theme the page is in. */
.sec {
  --surface: #20141C;
  --surface-2: #2A1D26;
  --border: rgb(255 240 248 / .09);
  --border-strong: rgb(255 240 248 / .17);
  --text: #F7EEF3;
  --text-2: #DDCBD6;
  --muted: #AF99A9;
  --brand: #C796B5;
  --brand-strong: #D9B3CB;
  --brand-ink: #E2BFD5;
  --brand-soft: rgb(199 150 181 / .15);
  --on-brand: #23161F;
  --ok: #8ACCA7;
  --ok-soft: rgb(138 204 167 / .13);
  --alert: #F07C70;
  --alert-ink: #F59A90;
  --focus: #D9B3CB;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  color-scheme: dark;
  position: relative; isolation: isolate; overflow: clip;
  background: #150B12;
  color: var(--text);
  border-block: 1px solid rgb(255 240 248 / .06);
}
.sec__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% -5%, rgb(156 107 139 / .38), transparent 70%),
    radial-gradient(35% 35% at 100% 100%, rgb(110 60 92 / .30), transparent 70%);
}
.sec__glow::after {
  /* hairline grid, faded toward the edges */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgb(255 240 248 / .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 240 248 / .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(60% 50% at 50% 0%, #000, transparent);
}

.sbento {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none;
}
@media (min-width: 720px) and (max-width: 1023px) {
  .sbento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scard--consent, .scard--audit, .scard--infra, .scard:nth-child(5) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .sbento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .scard { grid-column: span 4; }
  .scard--consent, .scard--audit { grid-column: span 6; }
  .scard--infra { grid-column: 1 / -1; }
}

.scard {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: .5rem;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgb(255 255 255 / .035), transparent 45%), var(--surface);
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
/* Glowing border that follows the pointer (position set in JS). */
.scard::before {
  content: ""; position: absolute; inset: -1px; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgb(226 191 213 / .85), rgb(199 150 181 / .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.scard::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(199 150 181 / .09), transparent 60%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.scard:hover::before, .scard:hover::after, .scard:focus-within::before { opacity: 1; }
.scard:hover { transform: translateY(-2px); }

.scard__art {
  display: grid; place-items: center;
  flex: 1; min-height: 210px; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: calc(var(--r-xl) - .5rem);
  background: radial-gradient(120% 100% at 50% 0%, rgb(255 240 248 / .04), transparent 60%), #180E15;
  overflow: hidden;
}
.scard__text { padding: 1.25rem 1rem 1rem; }
.scard__title { display: flex; align-items: center; gap: .625rem; font-size: 1.125rem; font-weight: 620; letter-spacing: -.02em; }
.scard__text p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; max-width: 38rem; }
.scard__icon {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.scard__icon .icon { width: 17px; height: 17px; overflow: visible; }

/* Icon micro-animations on hover / keyboard focus */
.ic-key .icon { transition: transform 600ms cubic-bezier(.3, 1.6, .5, 1); }
.scard:hover .ic-key .icon { transform: rotate(-28deg); }
.ic-history .icon { transition: transform 900ms var(--ease-out); }
.scard:hover .ic-history .icon { transform: rotate(-360deg); }
.scard:hover .ic-pop .icon { animation: pop 520ms cubic-bezier(.2, 1.4, .3, 1); }
.ic-timer__hand { transform-box: view-box; transform-origin: 12px 14px; transition: transform 1200ms var(--ease-out); }
.scard:hover .ic-timer__hand { transform: rotate(360deg); }
.ic-shield__check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.scard:hover .ic-shield__check { animation: draw 700ms var(--ease-out); }
@keyframes draw { from { stroke-dashoffset: 1; } }
.scard:hover .ic-server__led { animation: blink 900ms steps(2, jump-none) 2; }
.scard:hover .ic-server__led--2 { animation-delay: 220ms; }
@keyframes blink { 50% { opacity: 0; } }

/* Consent equation */
.eq { display: grid; gap: .875rem; width: 100%; max-width: 30rem; }
.eq__row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; }
.eq__row > * { white-space: nowrap; }
.eq__code {
  padding: .35rem .65rem; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface-2); font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.eq__op { color: var(--muted); }
.eq__ok, .eq__out {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 99px; font-weight: 600;
}
.eq__ok { background: var(--brand-soft); color: var(--brand-ink); }
.eq__out { border: 1px dashed var(--border-strong); color: var(--muted); font-weight: 500; }
.eq__out--open { border: 0; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.eq .icon { width: 14px; height: 14px; }
.eq__row--no { opacity: .78; }
@media (max-width: 519px) {
  .eq__row { gap: .4rem; font-size: .75rem; }
  .eq__code { padding: .3rem .5rem; letter-spacing: .03em; }
}

/* Audit feed: rows move by transform only, so the feed never shifts layout */
.feed {
  width: 100%; overflow: hidden;
  border: 1px solid var(--border); border-radius: 14px;
  background: #120910;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .75rem;
}
.feed__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .875rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: .75rem; color: var(--muted);
}
.feed__live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.is-live .feed__live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ok); animation: ping 2s var(--ease-out) infinite;
}
.feed__list { --row: 38px; position: relative; height: calc(4 * var(--row)); margin: 0; padding: 0; list-style: none; }
.feed__list li {
  position: absolute; inset: 0 .875rem auto;
  display: flex; align-items: center; gap: .75rem;
  height: var(--row);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transform: translateY(calc(var(--n) * var(--row)));
  transition: transform 560ms var(--ease-out), opacity 420ms var(--ease);
}
.feed__list li.is-new { opacity: 0; transform: translateY(calc(-1 * var(--row))); }
.feed__list li.is-out { opacity: 0; }
.feed__t { color: var(--muted); font-variant-numeric: tabular-nums; }
.feed__ev { color: var(--text); }
.feed__who { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-family: var(--font-sans); }
.fdot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.fdot--view { background: var(--brand); }
.fdot--ok { background: var(--ok); }
.fdot--req { border: 1.5px solid var(--brand); }
.fdot--end { background: var(--muted); }
@media (max-width: 479px) { .feed__t { display: none; } }

/* No anonymous lookups */
.who { display: grid; gap: .625rem; width: 100%; }
.who__row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}
.who__row > span:nth-child(2) { display: grid; min-width: 0; font-size: .75rem; color: var(--muted); line-height: 1.35; }
.who__row b { font-size: .875rem; font-weight: 600; color: var(--text); }
.who__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.who__icon .icon { width: 17px; height: 17px; }
.who__tag { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; padding: .2rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.who__tag .icon { width: 13px; height: 13px; }
.who__row--no { border-style: dashed; background: transparent; }
.who__row--no .who__icon { background: rgb(255 240 248 / .06); color: var(--muted); }
.who__row--no .who__tag { color: var(--muted); border: 1px dashed var(--border-strong); }
.who__row--yes .who__tag { background: var(--ok-soft); color: var(--ok); }

/* Time-limited */
.ttl { display: grid; gap: .875rem; width: 100%; }
.ttl__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: .625rem; font-size: .8125rem; }
.ttl__label { color: var(--muted); }
.ttl__track { height: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); }
.ttl__fill { display: block; height: 100%; border-radius: inherit; background: var(--brand); transform-origin: left; }
.ttl__end { font-weight: 600; font-variant-numeric: tabular-nums; }
.is-live .ttl__fill--req { animation: drain 7s linear infinite; }
.is-live .ttl__fill--grant { animation: drain 11s linear infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ttl__note { margin-top: .25rem; font-size: .75rem; color: var(--muted); }

/* Least information */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.fields li {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .65rem; border: 1px dashed var(--border-strong); border-radius: 10px;
  font-size: .8125rem; color: var(--muted);
  text-decoration: line-through; text-decoration-color: rgb(255 240 248 / .3);
}
.fields li.is-in { border-style: solid; border-color: var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; }
.fields .icon { width: 13px; height: 13px; flex: none; }
.fields li.is-in .icon { color: var(--ok); stroke-width: 2.5; }

/* Infrastructure strip */
.scard--infra { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; }
.scard--infra .scard__text { flex: 1 1 22rem; }
.infra { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0 0 .5rem; list-style: none; }
@media (min-width: 1024px) { .infra { padding: 0 .5rem 0 0; } }
.infra li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface-2); font-size: .8125rem; color: var(--text-2);
}
.infra .icon { width: 14px; height: 14px; color: var(--brand-ink); }
.infra .infra__rule { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 600; }
.infra .infra__rule .icon { color: var(--ok); }

/* 18. Why it matters ------------------------------------------------------- */
.why__head { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 960px) {
  .why__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .why__head > div { grid-column: 1 / span 7; }
  .why__lede { grid-column: 8 / span 5; }
}
.kicker--left::after { display: none; }
.why__lede { max-width: 32rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Editorial rows: index · oversized word · explanation */
.stats { margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 0; list-style: none; }
.stat {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--border-strong);
}
.stat:last-child { border-bottom: 1px solid var(--border-strong); }
@media (min-width: 900px) {
  .stat { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 21rem); align-items: end; }
  .stat__n { align-self: start; padding-top: .6rem; }
}
/* brand line that draws across the top border as the row arrives */
.stat__rule {
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--mauve-300) 60%, transparent);
  transform-origin: left; transform: scaleX(1);
}
.js .stat__rule { transform: scaleX(0); transition: transform 1400ms var(--ease-out) 200ms; }
.js .stat.is-in .stat__rule { transform: scaleX(1); }
.stat__n { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.stat__big {
  font-size: clamp(3rem, 1.4rem + 5.6vw, 6.25rem);
  font-weight: 620; line-height: .98; letter-spacing: -.055em;
}
/* Each word rises out of its own mask. The mask is padded so descenders
   (y, p) are not clipped. */
.stat__mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .14em 0; margin-bottom: -.14em; }
.stat__w {
  display: inline-block;
  background: linear-gradient(180deg, var(--text) 35%, var(--brand-ink) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .stat__w { transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(180ms + var(--w) * 110ms); }
.js .stat.is-in .stat__w { transform: none; }
@media (forced-colors: active) { .stat__w { background: none; color: CanvasText; } }
.stat__text { max-width: 21rem; padding-bottom: .5rem; font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

/* 19. Pull-quote ------------------------------------------------------------ */
.quote { position: relative; isolation: isolate; padding-block: clamp(5rem, 12vw, 10rem); }
.quote::before {
  content: ""; position: absolute; inset: 10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 50%, var(--glow-b), transparent 70%);
  opacity: .7;
}
.quote__fig { max-width: 62rem; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.quote__mark {
  display: block; height: .42em;
  font-family: var(--font-serif); font-size: clamp(6rem, 4rem + 8vw, 11rem); line-height: 1;
  color: var(--brand); opacity: .4;
  user-select: none;
}
.quote__text { margin: 0; }
.quote__text p {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4.25rem); line-height: 1.08; letter-spacing: -.015em;
  color: var(--text);
  text-wrap: balance;
}
.quote__text em { font-style: italic; color: var(--brand-ink); }
/* Words brighten from muted (still AA) to full ink as the quote scrolls
   through the viewport. JS wraps each word in .qw. */
.js .quote__text .qw { color: var(--muted); transition: color 450ms var(--ease); }
.js .quote__text .qw.is-lit { color: var(--text); }
.js .quote__text em .qw.is-lit { color: var(--brand-ink); }
.quote__by {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.quote__by img { width: 28px; height: 28px; }
@media (max-width: 519px) {
  .quote__by { flex-direction: column; gap: .5rem; letter-spacing: .1em; text-wrap: balance; }
}

/* 20. Final call to action -------------------------------------------------- */
.cta { padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 10vw, 8rem); }
.cta__card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: clamp(24px, 3vw, 32px);
  background: #2E1B29;
  color: #fff;
  text-align: center;
  box-shadow: 0 40px 80px -30px rgb(46 27 41 / .55), inset 0 1px 0 rgb(255 255 255 / .14);
}
/* Mesh: soft radial blobs drifting slowly on transforms only. The base and
   a central scrim stay dark enough that white body text clears 4.5:1. */
.cta__mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__mesh::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgb(28 16 25 / .55), transparent 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta__blob { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.cta__blob--1 { left: -20%; top: -45%; background: radial-gradient(closest-side, rgb(185 139 169 / .85), transparent); animation: drift-a 18s ease-in-out infinite alternate; }
.cta__blob--2 { right: -25%; top: -10%; background: radial-gradient(closest-side, rgb(109 71 95 / .95), transparent); animation: drift-b 22s ease-in-out infinite alternate; }
.cta__blob--3 { left: 15%; bottom: -60%; background: radial-gradient(closest-side, rgb(210 176 198 / .55), transparent); animation: drift-c 26s ease-in-out infinite alternate; }
.cta__card:not(.is-live) .cta__blob { animation-play-state: paused; }
@media (max-width: 639px) {
  .cta__blob { width: 150%; }
  .cta__blob--1 { left: -70%; top: -35%; }
  .cta__blob--2 { right: -80%; top: 20%; }
  .cta__blob--3 { left: -20%; bottom: -70%; }
}
@keyframes drift-a { to { transform: translate(18%, 14%) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-16%, 18%) scale(.92); } }
@keyframes drift-c { to { transform: translate(12%, -16%) scale(1.15); } }

.cta__title {
  max-width: 50rem; margin-inline: auto;
  font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.75rem); font-weight: 620; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.cta__title .serif { display: block; color: #F3E3EC; font-size: 1.06em; }
.cta__lead {
  max-width: 34rem; margin: 1.5rem auto 0;
  font-size: var(--fs-lead); line-height: 1.6; color: rgb(255 255 255 / .86);
  text-wrap: pretty;
}
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.btn--light {
  background: #fff; color: #2E1B29;
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 12px 28px -10px rgb(0 0 0 / .5);
}
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(0 0 0 / .2), 0 18px 36px -12px rgb(0 0 0 / .55); }
.cta__talk { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; color: #fff; }
.cta .btn:focus-visible, .cta__talk:focus-visible { outline-color: #fff; }
@media (max-width: 479px) {
  .cta__actions .btn { width: 100%; }
}

/* 21. Footer ---------------------------------------------------------------- */
.foot { padding-top: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--border); background: var(--bg); }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .foot__brand { grid-column: 1 / span 5; }
  .foot__cols { grid-column: 7 / span 6; }
}
.foot__tagline { max-width: 22rem; margin-top: 1rem; color: var(--text-2); }
.foot__trust {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.25rem; padding: .45rem .8rem .45rem .6rem;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: var(--fs-xs); color: var(--muted);
}
.foot__trust .icon { width: 14px; height: 14px; color: var(--brand-ink); }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 560px) { .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot__h { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot__col ul { display: grid; gap: .25rem; margin: .875rem 0 0; padding: 0; list-style: none; }
.foot__col a { display: inline-block; padding-block: .3rem; font-size: var(--fs-sm); color: var(--text-2); }
.foot__col a:hover { color: var(--text); }

.foot__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.foot__legal { font-size: var(--fs-xs); color: var(--muted); }
.foot__built::before { content: "·"; margin: 0 .5rem; }
@media (max-width: 559px) { .foot__built { display: block; margin-top: .25rem; } .foot__built::before { display: none; } }

/* Three-way appearance switch: System / Light / Dark */
.themeseg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface-2); }
.themeseg button {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 36px; padding: 0 .8rem;
  border: 0; border-radius: var(--r-pill); background: none;
  font-size: var(--fs-xs); font-weight: 560; color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.themeseg button:hover { color: var(--text); }
.themeseg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.themeseg .icon { width: 14px; height: 14px; }
.themeseg button:focus-visible { outline-offset: -2px; border-radius: var(--r-pill); }
@media (pointer: coarse) { .themeseg button { min-height: 44px; } }

/* 22. Document pages (About, Privacy, Terms, Security, Contact) ------------- */
.doc { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(4rem, 8vw, 6rem); }
.doc__inner { max-width: 44rem; margin-inline: auto; }
.doc__back { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 560; color: var(--brand-ink); }
.doc__back .icon { width: 1rem; height: 1rem; transform: scaleX(-1); }
.doc__title { margin-top: 1.5rem; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 620; line-height: 1.05; letter-spacing: -.035em; }
.doc__lede { margin-top: 1rem; font-size: var(--fs-lead); color: var(--text-2); }
.doc__body { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--border); }
.doc__section { padding-block: 1.75rem; border-bottom: 1px solid var(--border); }
.doc__section h2 { font-size: 1.1875rem; font-weight: 620; letter-spacing: -.02em; }
.doc__section p { margin-top: .5rem; color: var(--text-2); line-height: 1.7; }
.doc__section a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 23. Hero platform links --------------------------------------------------- */
.hero__platforms { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .875rem 0 0; padding: 0; list-style: none; }
.hero__platforms a { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); font-weight: 560; color: var(--brand-ink); }
.hero__platforms .icon { width: 16px; height: 16px; }

/* 24. The platform: app for families + web portal --------------------------- */
.plat__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 960px) {
  .plat__grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0; }
}
.pcard {
  display: flex; flex-direction: column;
  padding: .5rem;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard__art {
  position: relative; overflow: hidden;
  height: clamp(260px, 26vw, 320px);
  border: 1px solid var(--border); border-radius: calc(var(--r-xl) - .5rem);
  background:
    radial-gradient(70% 80% at 50% 100%, var(--glow-a), transparent 70%),
    linear-gradient(180deg, var(--bg-tint), var(--surface-2));
}
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.25rem 1.25rem; }
.pcard__tag { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.pcard__tag .icon { width: 15px; height: 15px; }
.pcard__title { margin-top: .75rem; font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); font-weight: 620; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.pcard__list { display: grid; gap: .55rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pcard__list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-2); font-size: .9375rem; }
.pcard__list .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 2.5; }
.pcard__link { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; margin-top: auto; padding-top: 1.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); }
.pcard__link .icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease); }
.pcard__link:hover .icon { transform: translateX(2px); }

/* two real app screens, fanned */
.pphone {
  position: absolute; bottom: -18%; width: 40%; max-width: 200px; aspect-ratio: 540 / 1174;
  padding: 6px; border-radius: 30px; background: var(--device);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .1);
  transition: transform var(--dur-3) var(--ease-out);
}
.pphone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.pphone--front { left: 50%; transform: translateX(-62%) rotate(-4deg); z-index: 1; }
.pphone--back { left: 50%; transform: translateX(-2%) translateY(-8%) rotate(6deg); opacity: .92; }
.pcard--app:hover .pphone--front { transform: translateX(-66%) translateY(-3%) rotate(-6deg); }
.pcard--app:hover .pphone--back { transform: translateX(4%) translateY(-10%) rotate(8deg); }

/* small web-portal mock */
.pweb {
  position: absolute; left: 8%; right: 8%; top: 14%; bottom: -10%;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .8125rem;
  transition: transform var(--dur-3) var(--ease-out);
}
.pcard--web:hover .pweb { transform: translate(-6px, -6px); }
.pweb__bar { display: flex; align-items: center; gap: .75rem; height: 36px; padding: 0 .75rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.pweb__url { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: .6875rem; color: var(--muted); }
.pweb__url .icon { width: 10px; height: 10px; }
.pweb__body { padding: .9rem 1rem; }
.pweb__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: .9375rem; }
.pweb__row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.pweb__row b { flex: 1; font-weight: 560; }
.pweb__row .dt-av { width: 24px; height: 24px; font-size: .625rem; }

/* the consent link between the two cards */
.plat__link { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .25rem 0; }
.plat__line { flex: 1; max-width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.plat__chip {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 600; color: var(--brand-ink);
}
.plat__chip .icon { width: 13px; height: 13px; }
@media (min-width: 960px) {
  .plat__link { flex-direction: column; width: 3.5rem; padding: 0; }
  .plat__line { width: 1px; height: auto; max-width: none; flex: 1; background: linear-gradient(180deg, transparent, var(--border-strong), transparent); }
  .plat__chip { writing-mode: vertical-rl; transform: rotate(180deg); padding: .8rem .4rem; }
}

/* 25. The mobile app ---------------------------------------------------------- */
.appx { overflow: clip; background: linear-gradient(var(--bg), var(--bg-tint) 25%, var(--bg-tint) 75%, var(--bg)); }
.appx__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.appx__chips li {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); font-size: var(--fs-xs); font-weight: 550; color: var(--text-2);
}
.appx__chips .icon { width: 14px; height: 14px; color: var(--brand-ink); }

/* Screenshot gallery: native horizontal scroll with snap points. Buttons
   and keyboard scroll it; nothing is hijacked. */
.gallery { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.gallery__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery__hint { font-size: var(--fs-sm); color: var(--muted); }
.gallery__btns { display: flex; gap: .5rem; }
.gallery__btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 50%;
  background: var(--surface); color: var(--text-2); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.gallery__btn:hover { border-color: var(--mauve-300); color: var(--text); }
.gallery__btn:disabled { opacity: .4; cursor: default; }
.gallery__btn .icon { width: 18px; height: 18px; }
.gallery__track {
  --pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  margin: 1.5rem 0 0; padding: 1rem var(--pad) 2rem;
  list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -4px; border-radius: var(--r-lg); }
.shot { flex: none; width: clamp(220px, 62vw, 264px); scroll-snap-align: start; }
.shot figure { margin: 0; }
.shot__phone {
  aspect-ratio: 540 / 1174; padding: 7px;
  border-radius: 36px; background: var(--device);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .1);
  transition: transform var(--dur-3) var(--ease-out);
}
.shot:hover .shot__phone { transform: translateY(-6px); }
.shot__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; background: #141013; }
.shot figcaption { display: grid; gap: .3rem; margin-top: 1.1rem; padding-right: .5rem; }
.shot figcaption b { font-size: 1rem; font-weight: 620; letter-spacing: -.015em; line-height: 1.3; }
.shot figcaption span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

.afeats {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .afeats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .afeats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.afeat { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.afeat__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.afeat__icon .icon { width: 19px; height: 19px; }
.afeat__title { margin-top: 1rem; font-size: 1.0625rem; font-weight: 620; letter-spacing: -.015em; }
.afeat ul { display: grid; gap: .45rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.afeat li { position: relative; padding-left: 1rem; font-size: .9375rem; color: var(--text-2); line-height: 1.5; }
.afeat li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* final CTA: guardian route */
.cta__guardian { margin-top: 1.5rem; font-size: var(--fs-sm); color: rgb(255 255 255 / .8); }
.cta__guardian a { color: #fff; font-weight: 600; }

/* 26. Privacy Policy (long-form legal page) -------------------------------- */
.policy .doc__back { margin-bottom: 1.5rem; }
.policy__head { max-width: 46rem; }
.policy__meta { margin-top: .75rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; color: var(--brand-ink); }
.policy__layout { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 1024px) {
  .policy__layout { grid-template-columns: 15rem minmax(0, 46rem); gap: 4rem; align-items: start; }
  .policy__toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); max-height: calc(100vh - var(--nav-h) - 3rem); overflow: auto; }
}
.policy__toc { padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.policy__toc-h { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.policy__toc ol { display: grid; gap: .1rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.policy__toc a { display: flex; gap: .6rem; padding: .35rem .5rem; border-radius: 8px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; }
.policy__toc a span { flex: none; width: 1.4rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.policy__toc a:hover { background: var(--brand-soft); color: var(--text); }
@media (max-width: 1023px) {
  .policy__toc ol { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
}
.policy__sec { padding-block: 1.75rem; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.policy__sec:first-child { border-top: 0; padding-top: 0; }
.policy__sec h2 { display: flex; align-items: baseline; gap: .6rem; font-size: 1.25rem; font-weight: 620; letter-spacing: -.02em; }
.policy__num { flex: none; font-size: var(--fs-sm); font-weight: 650; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.policy__sec p, .policy__sec li { color: var(--text-2); line-height: 1.7; }
.policy__sec p { margin-top: .75rem; }
.policy__sec ul { display: grid; gap: .6rem; margin: .9rem 0 0; padding-left: 1.2rem; }
.policy__sec li::marker { color: var(--brand); }
.policy__sec strong { color: var(--text); font-weight: 600; }
.policy__sec a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.policy__callout {
  margin-top: 1rem !important; padding: 1rem 1.1rem;
  border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0;
  background: var(--brand-soft); color: var(--text) !important; font-weight: 500;
}
/* Unresolved notes from the source document stay visible until resolved. */
mark.draft { padding: 0 .25em; border-radius: 4px; background: #FFF1C2; color: #5C4300; font-size: .92em; }
:root[data-theme="dark"] mark.draft { background: #4A3A0A; color: #FFE7A3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark.draft { background: #4A3A0A; color: #FFE7A3; } }

.policy__table-wrap { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.policy__table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.policy__table th, .policy__table td { padding: .75rem .875rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.55; }
.policy__table thead th { background: var(--surface-2); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.policy__table tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.policy__table td { color: var(--text-2); }
.policy__table tbody tr:last-child > * { border-bottom: 0; }
/* Phones: each row becomes a small card, labels come from data-label. */
@media (max-width: 639px) {
  .policy__table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .policy__table thead { display: none; }
  .policy__table, .policy__table tbody, .policy__table tr, .policy__table th, .policy__table td { display: block; }
  .policy__table tr { margin-bottom: .75rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
  .policy__table tbody th { white-space: normal; background: var(--surface-2); border-radius: var(--r-md) var(--r-md) 0 0; }
  .policy__table td::before { content: attr(data-label); display: block; margin-bottom: .2rem; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
