/* ==========================================================================
   QPdf — marketing + policy site design system
   No external fonts, scripts or trackers. Everything ships from this origin.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  --brand-700: #0a44c8;
  --brand-600: #0e5fe8;
  --brand-500: #2f86ff;
  --brand-400: #6ea9ff;
  --red: #e3162b;

  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --bg-sunken: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --line: #e0e7f1;
  --line-strong: #c9d5e6;
  --fg: #0c1119;
  --fg-soft: #35404f;
  --muted: #5a6675;
  --accent: var(--brand-600);
  --accent-contrast: #ffffff;
  --shadow-sm: 0 1px 2px rgba(12, 20, 40, .06), 0 4px 12px rgba(12, 20, 40, .05);
  --shadow-md: 0 2px 6px rgba(12, 20, 40, .07), 0 18px 40px rgba(12, 20, 40, .09);
  --shadow-lg: 0 8px 20px rgba(12, 20, 40, .1), 0 40px 90px rgba(12, 20, 40, .16);
  --glass: rgba(255, 255, 255, .72);
  --aurora-1: rgba(14, 95, 232, .28);
  --aurora-2: rgba(110, 169, 255, .3);
  --aurora-3: rgba(227, 22, 43, .12);
  --grid-line: rgba(12, 17, 25, .05);

  --radius-sm: .6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shell: 72rem;
  --ease: cubic-bezier(.22, .68, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #070a10;
  --bg-soft: #0b1017;
  --bg-sunken: #060910;
  --surface: #10161f;
  --surface-2: #141c27;
  --line: #1e2836;
  --line-strong: #2b384a;
  --fg: #eaf0f8;
  --fg-soft: #c2ccd9;
  --muted: #8d9bad;
  --accent: var(--brand-400);
  --accent-contrast: #04101f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .45), 0 20px 46px rgba(0, 0, 0, .5);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, .5), 0 44px 100px rgba(0, 0, 0, .62);
  --glass: rgba(11, 16, 23, .72);
  --aurora-1: rgba(14, 95, 232, .4);
  --aurora-2: rgba(47, 134, 255, .26);
  --aurora-3: rgba(227, 22, 43, .16);
  --grid-line: rgba(255, 255, 255, .045);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a10;
    --bg-soft: #0b1017;
    --bg-sunken: #060910;
    --surface: #10161f;
    --surface-2: #141c27;
    --line: #1e2836;
    --line-strong: #2b384a;
    --fg: #eaf0f8;
    --fg-soft: #c2ccd9;
    --muted: #8d9bad;
    --accent: var(--brand-400);
    --accent-contrast: #04101f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, .45), 0 20px 46px rgba(0, 0, 0, .5);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, .5), 0 44px 100px rgba(0, 0, 0, .62);
    --glass: rgba(11, 16, 23, .72);
    --aurora-1: rgba(14, 95, 232, .4);
    --aurora-2: rgba(47, 134, 255, .26);
    --aurora-3: rgba(227, 22, 43, .16);
    --grid-line: rgba(255, 255, 255, .045);

    color-scheme: dark;
  }
}

/* --- Base --------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Inter, Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { letter-spacing: -.028em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: .35rem;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1.5rem; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: .7rem 1.1rem; border-radius: 0 0 .6rem 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* --- Type scale --------------------------------------------------------- */

.display {
  font-size: clamp(2.4rem, 1.15rem + 4.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.03;
}
.h2 { font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.7rem); font-weight: 680; }
.h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 660; letter-spacing: -.02em; }
.lede {
  font-size: clamp(1.05rem, .98rem + .35vw, 1.24rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
}
.eyebrow {
  font-size: .78rem; font-weight: 640; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.gradient-text {
  background: linear-gradient(102deg, var(--brand-600), var(--brand-500) 46%, var(--brand-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
:root[data-theme="dark"] .gradient-text,
:root:not([data-theme="light"]) .gradient-text {
  background: linear-gradient(102deg, #7fb2ff, #b9d4ff 50%, #6ea9ff);
  -webkit-background-clip: text; background-clip: text;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .gradient-text {
    background: linear-gradient(102deg, var(--brand-600), var(--brand-500) 46%, var(--brand-400));
    -webkit-background-clip: text; background-clip: text;
  }
}

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

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .96rem; font-weight: 620; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 68, 200, .28), 0 12px 30px rgba(14, 95, 232, .32);
}
.btn--primary:hover { box-shadow: 0 2px 4px rgba(10, 68, 200, .3), 0 18px 44px rgba(14, 95, 232, .42); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.btn--sm { padding: .55rem 1rem; font-size: .88rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: .75rem 0;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(10, 20, 40, .05);
}
.nav { display: flex; align-items: center; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 680; font-size: 1.08rem; letter-spacing: -.03em;
  color: var(--fg); text-decoration: none; margin-right: auto;
}
.brand img {
  width: 2.1rem; height: 2.1rem; border-radius: .58rem;
  box-shadow: var(--shadow-sm);
}
.brand small {
  display: block; font-size: .66rem; font-weight: 560; letter-spacing: .04em;
  color: var(--muted); line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  color: var(--fg-soft); text-decoration: none; font-size: .92rem; font-weight: 540;
  padding: .5rem .7rem; border-radius: .6rem;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; padding: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg-soft); cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              transform .2s var(--ease);
}
.icon-btn:hover { color: var(--fg); background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 420px) {
  .nav-actions .btn { display: none; }
}

/* --- Backdrop: aurora + grid ------------------------------------------- */

.backdrop {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  animation: drift 22s var(--ease) infinite alternate;
}
.blob--1 { width: 38rem; height: 38rem; top: -14rem; left: -10rem; background: var(--aurora-1); }
.blob--2 { width: 32rem; height: 32rem; top: -8rem; right: -8rem; background: var(--aurora-2); animation-duration: 27s; animation-delay: -6s; }
.blob--3 { width: 24rem; height: 24rem; top: 22rem; left: 38%; background: var(--aurora-3); animation-duration: 31s; animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4rem, 2.5rem, 0) scale(1.12); }
  100% { transform: translate3d(-3rem, 4rem, 0) scale(.94); }
}

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

.hero { position: relative; padding: clamp(2.5rem, 1rem + 5vw, 5rem) 0 clamp(3rem, 1rem + 6vw, 6rem); }
.hero .shell { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .85rem .38rem .45rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 560; color: var(--fg-soft);
}
.pill b {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff; font-size: .7rem; font-weight: 660; letter-spacing: .04em;
  padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase;
}
.dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: #17b26a;
  box-shadow: 0 0 0 0 rgba(23, 178, 106, .55);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(23, 178, 106, .5); }
  70%  { box-shadow: 0 0 0 .5rem rgba(23, 178, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 178, 106, 0); }
}

.hero h1 { margin: 1.15rem 0 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

.trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin: 1.8rem 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .88rem;
}
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust svg { width: 1rem; height: 1rem; color: #17b26a; flex: none; }

/* --- Device frames ------------------------------------------------------ */

.stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 30rem;
  perspective: 1600px;
}
.stage-glow {
  position: absolute; width: 78%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 95, 232, .38), transparent 68%);
  filter: blur(48px);
}
.device {
  position: relative;
  background: linear-gradient(158deg, #40495a 0%, #1b212c 42%, #05070c 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .1);
  will-change: transform;
}
.device img { width: 100%; height: auto; display: block; background: #f3f6fb; }

.device--phone { width: 15rem; padding: .48rem; border-radius: 2.1rem; }
.device--phone img { border-radius: 1.7rem; }
.device--tablet { width: 25rem; padding: .6rem; border-radius: 1.35rem; }
.device--tablet img { border-radius: .95rem; }

.hero-devices { position: relative; width: min(100%, 30rem); aspect-ratio: 1 / 1.02; }
.hero-devices .device--tablet {
  position: absolute; top: 0; right: 0; width: 82%;
  transform: rotate(3.2deg);
  animation: float 9s ease-in-out infinite;
}
.hero-devices .device--phone {
  position: absolute; bottom: -1rem; left: 0; width: 47%; z-index: 2;
  transform: rotate(-3.4deg);
  animation: float 7.5s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -1.1rem; }
}

@media (max-width: 900px) {
  .hero-devices { margin-inline: auto; aspect-ratio: 1 / .92; }
}
/* On narrow screens the tablet shot becomes unreadable — lead with the phone. */
@media (max-width: 620px) {
  .stage { min-height: 0; }
  .hero-devices { aspect-ratio: auto; width: min(100%, 15.5rem); }
  .hero-devices .device--tablet { display: none; }
  .hero-devices .device--phone {
    position: static; width: 100%; margin-inline: auto;
  }
}

/* --- Marquee ------------------------------------------------------------ */

.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: .9rem 0;
  -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 {
  display: flex; width: max-content; gap: 2.6rem;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .88rem; font-weight: 560; color: var(--muted); white-space: nowrap;
}
.marquee-track span::before {
  content: ""; width: .32rem; height: .32rem; border-radius: 50%;
  background: var(--accent); opacity: .55;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* --- Sections ----------------------------------------------------------- */

.section { padding: clamp(3.5rem, 1.5rem + 6vw, 7rem) 0; position: relative; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 2vw, 3.25rem); }
.section-head .h2 { margin: .7rem 0 .9rem; }
.section-head .lede { max-width: 52ch; }

/* --- Bento feature grid ------------------------------------------------- */

.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card {
  position: relative; overflow: hidden;
  grid-column: span 2;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              border-color .4s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(20rem 20rem at var(--mx, 50%) var(--my, 0%),
              rgba(47, 134, 255, .13), transparent 62%);
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 3; }
.card--tall { grid-column: span 3; }
.card--banner {
  grid-column: span 6;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem;
  align-items: start;
}
.card--banner .card-icon { margin-bottom: 0; }
.card--banner p { max-width: 62ch; }

.card-icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem;
  border-radius: .85rem;
  background: linear-gradient(150deg, rgba(47, 134, 255, .18), rgba(14, 95, 232, .1));
  color: var(--accent);
  border: 1px solid rgba(47, 134, 255, .22);
}
.card-icon svg { width: 1.35rem; height: 1.35rem; }
.card h3 { font-size: 1.1rem; font-weight: 660; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; padding: 0; list-style: none; }
.tags li {
  font-size: .74rem; font-weight: 560; color: var(--fg-soft);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: .22rem .55rem; border-radius: 999px;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card--wide, .card--tall, .card--banner { grid-column: span 4; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card--wide, .card--tall, .card--banner { grid-column: span 1; }
  .card--banner { grid-template-columns: 1fr; gap: 0; }
  .card--banner .card-icon { margin-bottom: 1.1rem; }
}

/* --- Privacy band ------------------------------------------------------- */

.band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 1rem + 4vw, 3.75rem);
  background:
    radial-gradient(90rem 40rem at 80% -30%, rgba(110, 169, 255, .3), transparent 60%),
    linear-gradient(140deg, #0a2f8f 0%, #0e5fe8 52%, #1a72ff 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.band .h2 { color: #fff; max-width: 22ch; }
.band .lede { color: rgba(255, 255, 255, .84); max-width: 48ch; }
.band .eyebrow { color: rgba(255, 255, 255, .7); }
.band-grid {
  display: grid; gap: 1rem; margin-top: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.band-item {
  border-radius: var(--radius); padding: 1.2rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.band-item strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.band-item span { color: rgba(255, 255, 255, .78); font-size: .89rem; }
.band > * { position: relative; z-index: 1; }
.band-art {
  position: absolute; z-index: 0; pointer-events: none;
  right: -3rem; top: 50%; width: 26rem; aspect-ratio: 1;
  transform: translateY(-50%);
  color: #fff; opacity: .22;
}
.band-art .ring { animation: spin 44s linear infinite; transform-origin: 100px 100px; }
.band-art .ring--slow { animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .band-art { display: none; } }

.band-note {
  margin-top: 1.5rem; font-size: .89rem; color: rgba(255, 255, 255, .78);
  max-width: 62ch;
}
.band-note a { color: #fff; text-underline-offset: .2em; }
.band .btn--primary {
  background: #fff; color: var(--brand-700); box-shadow: 0 10px 30px rgba(3, 20, 60, .3);
}

/* --- Gallery / tabs ----------------------------------------------------- */

.tabs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .35rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  width: max-content; max-width: 100%; margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.tab {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 580; color: var(--muted);
  padding: .5rem 1rem; border-radius: 999px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 6px 16px rgba(14, 95, 232, .3);
}

.panel { display: none; }
.panel[data-active] { display: grid; animation: panel-in .5s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
.panel {
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.panel .device { margin-inline: auto; }
.panel .device--phone { width: min(100%, 17rem); }
.panel .device--tablet { width: min(100%, 27rem); }

.shot-stage {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 12%, rgba(47, 134, 255, .16), transparent 72%),
    var(--surface-2);
}
.shot-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
}
.shot-stage > * { position: relative; }
.panel-copy h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 680; margin-bottom: .8rem; }
.panel-copy p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--fg-soft); }
.checks svg { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; margin-top: .18rem; }

@media (max-width: 820px) {
  .panel { grid-template-columns: 1fr; }
  .panel .device--tablet { width: min(100%, 25rem); }
}

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

.steps {
  display: grid; gap: 1rem; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.step {
  position: relative; padding: 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .7rem;
}
.step h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* --- Platforms ---------------------------------------------------------- */

.platforms {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.platform:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.platform svg { width: 1.5rem; height: 1.5rem; color: var(--fg-soft); flex: none; }
.platform strong { display: block; font-size: .96rem; font-weight: 620; }
.platform span { font-size: .8rem; color: var(--muted); }

.status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 620; letter-spacing: .02em;
  padding: .16rem .5rem; border-radius: 999px;
  border: 1px solid currentColor;
}
.status--ready { color: #0f9d58; }
.status--soon { color: var(--muted); }

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

.split {
  display: grid; align-items: start;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
}
.split .section-head { margin-bottom: 0; position: sticky; top: 6.5rem; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
}

.faq { display: grid; gap: .7rem; }
.qa {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.qa[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .98rem; color: var(--fg);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: .62rem; height: .62rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa-body { padding: 0 1.25rem 1.2rem; color: var(--muted); font-size: .94rem; }
.qa[open] .qa-body { animation: fade-in .35s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

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

.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(2.25rem, 1rem + 4vw, 4rem) clamp(1.25rem, 1rem + 2vw, 3rem);
  box-shadow: var(--shadow-md);
}
.cta::before {
  content: ""; position: absolute; inset: -40% -10% auto;
  height: 26rem;
  background: radial-gradient(50% 50% at 50% 50%, var(--aurora-1), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.cta > * { position: relative; }
.cta img { width: 4.25rem; height: 4.25rem; border-radius: 1.15rem; margin: 0 auto 1.4rem; box-shadow: var(--shadow-md); }
.cta .lede { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.9rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 3rem 0 2.5rem;
  margin-top: clamp(3rem, 1rem + 5vw, 6rem);
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.footer-grid p { color: var(--muted); font-size: .9rem; margin-top: .85rem; max-width: 30ch; }
.footer-col h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 640; margin-bottom: .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--fg-soft); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* --- Policy page -------------------------------------------------------- */

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  z-index: 60;
}

.policy-hero { position: relative; padding: clamp(2.5rem, 1rem + 4vw, 4.5rem) 0 0; }
.policy-hero .shell { position: relative; z-index: 1; }
.policy-hero h1 { margin: 1rem 0 .9rem; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.2rem); font-weight: 700; }
.policy-meta {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center;
  margin-top: 1.4rem; color: var(--muted); font-size: .88rem;
}
.policy-meta .chip {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: .28rem .75rem; font-weight: 550;
}

.summary-grid {
  display: grid; gap: 1rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.summary-card {
  padding: 1.35rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary-card .card-icon { width: 2.4rem; height: 2.4rem; margin-bottom: .9rem; border-radius: .7rem; }
.summary-card .card-icon svg { width: 1.2rem; height: 1.2rem; }
.summary-card strong { display: block; font-size: 1rem; font-weight: 650; margin-bottom: .3rem; }
.summary-card p { color: var(--muted); font-size: .9rem; }

.policy-layout {
  display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem);
  grid-template-columns: 15rem minmax(0, 1fr);
  align-items: start;
  padding-top: clamp(2.5rem, 1rem + 4vw, 4rem);
}
.toc { position: sticky; top: 6rem; }
.toc h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 650; margin-bottom: .9rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: toc; }
.toc a {
  display: block; padding: .42rem .75rem; border-radius: .5rem;
  color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--fg); background: var(--surface-2); }
.toc a.is-current {
  color: var(--accent); background: var(--surface-2);
  border-left-color: var(--accent); font-weight: 600;
}
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .toc ol { display: flex; flex-wrap: wrap; gap: .35rem; }
  .toc a { border: 1px solid var(--line); border-left-width: 1px; border-radius: 999px; }
  .toc a.is-current { border-color: var(--accent); }
}

.prose { max-width: 42rem; font-size: 1.02rem; }
.prose section + section { margin-top: 3rem; }
.prose h2 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 680;
  margin-bottom: .9rem; scroll-margin-top: 6rem;
  display: flex; align-items: baseline; gap: .7rem;
}
.prose h2 .num {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--accent);
  border: 1px solid var(--line); background: var(--surface-2);
  border-radius: .4rem; padding: .15rem .45rem; flex: none;
}
.prose p + p, .prose ul + p, .prose p + ul { margin-top: .9rem; }
.prose p { color: var(--fg-soft); line-height: 1.72; }
.prose ul { padding-left: 0; margin: .9rem 0 0; list-style: none; display: grid; gap: .7rem; }
.prose ul li {
  position: relative; padding-left: 1.35rem; color: var(--fg-soft); line-height: 1.65;
}
.prose ul li::before {
  content: ""; position: absolute; left: .2rem; top: .68em;
  width: .4rem; height: .4rem; border-radius: 50%;
  background: var(--accent); opacity: .7;
}
.prose strong { color: var(--fg); font-weight: 640; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: .35rem; padding: .1rem .35rem; overflow-wrap: anywhere;
}

.callout {
  border-radius: var(--radius-lg); padding: 1.35rem 1.5rem;
  border: 1px solid rgba(47, 134, 255, .3);
  background: linear-gradient(150deg, rgba(47, 134, 255, .1), rgba(14, 95, 232, .04));
  margin: 2rem 0 2.75rem;
}
.prose > .callout:first-child { margin-top: 0; }
.callout p { color: var(--fg-soft); margin: 0; }
.callout .h3 { margin-bottom: .4rem; display: flex; align-items: center; gap: .55rem; }
.callout .h3 svg { width: 1.15rem; height: 1.15rem; color: var(--accent); }

/* --- Reveal animation --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

.no-js .reveal { opacity: 1; transform: none; }

/* --- Motion & print ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .platform:hover { transform: none; }
}

@media print {
  .site-header, .backdrop, .progress, .toc, .site-footer .footer-grid,
  .cta, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .policy-layout { display: block; }
  a { color: #000; }
}
