/* ==========================================================================
   Pygen Labs design system
   No JavaScript and no third-party requests: fonts are self-hosted, motion is
   CSS only and animates transform/opacity only (GPU), and everything holds
   still with "reduce motion". The CSP allows no inline styles: use classes.

   1 Tokens  2 Base  3 Layout  4 Type  5 Components  6 Header  7 Footer
   8 Page sections  9 Utilities  10 Motion  11 Responsive
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage_grotesque_700.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage_grotesque_800.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree_400.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree_600.ttf") format("truetype"); }

/* 1 Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour: deep night violet surfaces, the logo's gradient, one pink spark. */
  --bg: #0b0718;
  --bg-raised: #120c24;
  --bg-sunken: #08050f;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f6f1ff;
  --text-soft: #bdb3d4;
  --text-faint: #8a80a4;
  --violet-700: #5533e0;
  --violet-500: #8f60ff;
  --violet-300: #c9b8ff;
  --orchid: #e05cc8;
  --pink: #ff5c9a;
  --brand: linear-gradient(115deg, #6f45ff 0%, #8f60ff 35%, #c25cf0 70%, #ff5c9a 100%);
  --brand-soft: linear-gradient(115deg, rgba(143, 96, 255, 0.22), rgba(224, 92, 200, 0.14));
  --focus: #c9b8ff;

  /* Back-compat names used by existing pages */
  --surface: var(--surface-1);
  --edge: var(--line);
  --edge-strong: var(--line-strong);
  --soft: var(--text-soft);
  --faint: var(--text-faint);
  --violet: var(--violet-500);
  --lilac: var(--violet-300);
  --bg-2: var(--bg-raised);

  /* Type */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --fs-h1: clamp(2.4rem, 1.7rem + 3vw, 4rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.92rem;
  --fs-tiny: 0.8rem;

  /* Space: a 4 px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(88px, 11vw, 144px);
  --width: 1180px;
  --width-text: 760px;

  /* Shape */
  --r-xs: 10px; --r-s: 14px; --r-m: 20px; --r-l: 28px; --r-xl: 36px; --r-pill: 999px;

  /* Depth */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  --glow-brand: 0 14px 40px -12px rgba(143, 96, 255, 0.65);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 600ms;
  --ease: var(--ease-out);

  --header-h: 72px;
}

/* 2 Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-300); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(194, 92, 240, 0.45); color: #fff; }
p { margin: 0; }
hr { border: 0; height: 1px; background: var(--line); margin: var(--s-7) 0; }

/* 3 Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--width); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* 4 Type ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.display { font-size: var(--fs-display); letter-spacing: -0.04em; line-height: 0.98; }
.lead { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.6; text-wrap: pretty; }
.soft { color: var(--text-soft); }
.faint { color: var(--text-faint); font-size: var(--fs-small); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 var(--fs-tiny)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet-300);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--brand); }

/* 5 Components ------------------------------------------------------------ */

/* Button: primary (gradient with a light sweep), glass, ghost (text + arrow). */
.button {
  --b-h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--b-h); padding: 0 26px; border-radius: var(--r-pill); border: 0;
  font: 600 1rem/1 var(--font-body); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-base), border-color var(--t-base), color var(--t-fast);
}
.button svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-base) var(--ease-out); }
.button:active { transform: scale(0.97); transition-duration: 90ms; }
.button.small { --b-h: 40px; padding: 0 18px; font-size: 0.93rem; }
.button.large { --b-h: 60px; padding: 0 32px; font-size: 1.06rem; }

.button.primary { color: #fff; background: var(--brand); box-shadow: var(--glow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.button.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.button.primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(143, 96, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.button.primary:hover::after { transform: translateX(120%); }

.button.glass { color: var(--text); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button.glass:hover { color: #fff; background: var(--surface-2); transform: translateY(-2px); }

.button.ghost { --b-h: 44px; padding: 0 4px; color: var(--text); background: none; overflow: visible; }
.button.ghost:hover { color: #fff; }
.button.ghost:hover svg { transform: translateX(4px); }
.button:hover svg.arrow { transform: translateX(3px); }

.buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.buttons.centered { justify-content: center; }

/* Badge: small pill with an optional tag. */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-small); font-weight: 600; color: var(--text-soft);
}
.badge b { padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 0.72rem; letter-spacing: 0.06em; }
.badge.plain { padding: 6px 14px; }

/* Tag list */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-soft); font-size: 0.86rem; font-weight: 600; }

/* Icon tile: gradient square with a white line icon. */
.icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--brand); box-shadow: 0 10px 24px -10px rgba(143, 96, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.icon svg { width: 22px; height: 22px; color: #fff; }
.icon.soft { background: rgba(143, 96, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(143, 96, 255, 0.25); }
.icon.soft svg { color: var(--violet-300); }

/* Card: soft raised surface with a hairline edge that brightens on hover. */
.card {
  position: relative; padding: var(--s-5) 26px 26px; border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.card .icon { margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.98rem; line-height: 1.55; }
a.card { display: block; color: var(--text); text-decoration: none; }
a.card:hover { color: var(--text); }
.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); }

/* Phone mockup */
.phone {
  --glow: rgba(143, 96, 255, 0.55);
  position: relative; width: 300px; aspect-ratio: 1080 / 2400; flex: none;
  padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #3a3152, #15102a 40%, #0d0a1c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 3px rgba(0, 0, 0, 0.6),
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 140px -30px var(--glow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #120c22; }
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #05030b; box-shadow: inset 0 0 0 2px #1d1830; }
.glow-orange { --glow: rgba(255, 140, 80, 0.55); }
.glow-pink { --glow: rgba(255, 92, 154, 0.5); }
.glow-teal { --glow: rgba(90, 230, 200, 0.4); }
.glow-violet { --glow: rgba(143, 96, 255, 0.6); }

/* Brand lockups */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-tile { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 22px -4px rgba(186, 92, 238, 0.5); }
.brand-name { font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand-name span { font-weight: 700; color: var(--text-soft); }
.brand-sub { display: block; font: 600 0.72rem/1 var(--font-body); color: var(--text-faint); letter-spacing: 0.02em; margin-top: 4px; }

/* Background aurora: three slow, blurred clouds behind the top of a page. */
.aurora { position: absolute; inset: 0 0 auto 0; height: 1100px; overflow: hidden; pointer-events: none; z-index: -1; contain: strict; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; animation: drift 28s var(--ease-in-out) infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -180px; background: #5533e0; }
.aurora i:nth-child(2) { width: 520px; height: 520px; right: -140px; top: 40px; background: #a246d8; opacity: 0.38; animation-duration: 34s; }
.aurora i:nth-child(3) { width: 480px; height: 480px; left: 36%; top: 420px; background: #ff4f93; opacity: 0.2; animation-duration: 40s; }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

/* 6 Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 7, 24, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 transparent;
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-scrolled linear both; animation-timeline: scroll(); animation-range: 0 140px; }
  @keyframes header-scrolled { to { background: rgba(11, 7, 24, 0.84); box-shadow: 0 1px 0 var(--line); } }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }
.site-header .wrap:not(.header-inner) { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: color var(--t-fast), background-color var(--t-base);
}
.nav a:hover { color: var(--text); background: var(--surface-1); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }

/* Phone menu: a <details> element, so it needs no script. */
.menu { position: relative; display: none; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--t-base) var(--ease-out), top var(--t-base) var(--ease-out); }
.menu-icon i:first-child { top: 1px; }
.menu-icon i:last-child { top: 9px; }
.menu[open] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu[open] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
  padding: 10px; border-radius: var(--r-m);
  background: rgba(22, 15, 44, 0.96); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  transform-origin: top right;
  animation: menu-in var(--t-base) var(--ease-out);
}
.menu-panel a:not(.button) { display: block; padding: 12px 14px; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-weight: 600; }
.menu-panel a:not(.button):hover { background: var(--surface-2); }
.menu-panel .button { width: 100%; margin-top: 6px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

/* 7 Footer ---------------------------------------------------------------- */
.site-footer { position: relative; margin-top: var(--section); background: linear-gradient(to bottom, var(--bg), var(--bg-sunken)); }
.site-footer::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(143, 96, 255, 0.6), rgba(255, 92, 154, 0.5), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); padding: var(--s-8) 0 var(--s-7); }
.footer-about p { color: var(--text-faint); font-size: 0.95rem; margin-top: var(--s-4); max-width: 300px; }
.footer-grid .footer-title { font: 600 var(--fs-tiny)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-soft); text-decoration: none; font-size: 0.96rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding: 22px 0 40px; box-shadow: 0 -1px 0 var(--line); color: var(--text-faint); font-size: 0.86rem; }

/* 8 Page sections (rebuilt step by step) --------------------------------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 16px 0 18px; }
.section-head .eyebrow::before { display: none; }
.section-head.tight { margin-bottom: 8px; }

.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 110px); }
.hero h1 { margin: 22px 0; }
.hero .lead { max-width: 560px; }
.hero .buttons { margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--text-soft); font-size: 0.95rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--violet-300); }

/* Floating chips: opaque (no backdrop blur, which repaints every frame and stutters), on the GPU. */
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: var(--r-pill);
  background: rgba(28, 20, 50, 0.92); box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  will-change: transform; transform: translate3d(0, 0, 0);
  animation: float 6s var(--ease-in-out) infinite;
}
.chip span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); }
.chip svg { width: 16px; height: 16px; color: #fff; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-soft); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(143, 96, 255, 0.16); color: var(--violet-300); }

.panel {
  position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl);
  background: radial-gradient(600px 300px at 0% 0%, rgba(143, 96, 255, 0.28), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(255, 92, 154, 0.18), transparent 70%), var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.panel h2 { margin: 16px 0 18px; }
.points { display: grid; gap: 14px; }
.point { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; border-radius: var(--r-m); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }
.point .icon { width: 48px; height: 48px; background: rgba(143, 96, 255, 0.18); box-shadow: none; }
.point .icon svg { color: var(--violet-300); }
.point h3 { font-size: 1.05rem; margin-bottom: 4px; }
.point p { color: var(--text-soft); font-size: 0.95rem; }

.faq { max-width: 820px; margin: 0 auto; }
details.qa, .faq details, .doc details { border-bottom: 1px solid var(--line); }
.faq summary, .doc details summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 1.06rem; color: var(--text);
}
.faq summary::-webkit-details-marker, .doc details summary::-webkit-details-marker { display: none; }
.faq summary::after, .doc details summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b8ff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--t-base) var(--ease-out);
}
.faq details[open] summary::after, .doc details[open] summary::after { transform: rotate(45deg); }
.faq details p, .doc details p { color: var(--text-soft); padding: 0 46px 24px 0; }

.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; overflow: hidden;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl);
  background: radial-gradient(700px 400px at 100% 50%, rgba(255, 120, 90, 0.18), transparent 70%), radial-gradient(500px 400px at 0% 0%, rgba(143, 96, 255, 0.22), transparent 70%), var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.product-head img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 14px 34px -10px rgba(143, 96, 255, 0.8); }
.product-head h3 { font-size: 1.9rem; letter-spacing: -0.025em; }
.product-head p { color: var(--text-faint); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.product .lead { margin-bottom: 26px; }
.product .tags { margin-bottom: 30px; }
.product-media { display: flex; justify-content: center; gap: 18px; margin-bottom: -120px; }
.product-media .phone { width: 230px; }
.product-media .phone:nth-child(2) { margin-top: 50px; }

.doc-hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: 32px; }
.doc-hero h1 { margin: 18px 0 14px; }
.doc { max-width: var(--width-text); }
.doc h2 { font-size: 1.45rem; letter-spacing: -0.015em; margin: 2.4em 0 0.7em; }
.doc p, .doc li { color: var(--text-soft); }
.doc p { margin-bottom: 1em; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.55em; }
.doc li::marker { color: var(--violet-500); }
.doc strong { color: var(--text); font-weight: 600; }
.doc .card p { margin: 0; }
.summary-card { margin: 28px 0 8px; padding: 26px 28px; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(143, 96, 255, 0.14), rgba(143, 96, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(143, 96, 255, 0.28); }
.summary-card h3 { margin-bottom: 12px; }
.summary-card ul { margin: 0; }

/* 8a Klydio hero --------------------------------------------------------- */
/* One 12 s loop, four 3 s beats. The headline word, the phone's screen and the progress bar
   all use the same timing, so "played." shows the player, "in sync." the lyrics, and so on. */
.k-hero { position: relative; overflow-x: clip; padding: clamp(32px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.k-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.k-hero-grid > * { min-width: 0; }
.k-title { margin: 24px 0 24px; }
.k-line { display: block; }
.k-cycler { display: grid; justify-items: start; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.k-word {
  grid-area: 1 / 1;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: k-word 12s var(--ease-in-out) infinite both;
  will-change: transform, opacity;
}
.k-word.w1, .k-screens .k-shot.s1, .k-progress .p1::after { animation-delay: 0.4s; }
.k-word.w2, .k-screens .k-shot.s2, .k-progress .p2::after { animation-delay: 3.4s; }
.k-word.w3, .k-screens .k-shot.s3, .k-progress .p3::after { animation-delay: 6.4s; }
.k-word.w4, .k-screens .k-shot.s4, .k-progress .p4::after { animation-delay: 9.4s; }
@keyframes k-word {
  0%   { opacity: 0; transform: translate3d(0, 60%, 0); }
  4%   { opacity: 1; transform: translate3d(0, 0, 0); }
  21%  { opacity: 1; transform: translate3d(0, 0, 0); }
  25%  { opacity: 0; transform: translate3d(0, -60%, 0); }
  100% { opacity: 0; transform: translate3d(0, -60%, 0); }
}
.k-hero .lead { max-width: 540px; }
.k-actions { margin-top: 36px; }
.k-soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--text-faint); font-size: var(--fs-small); font-weight: 600; }
.k-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.k-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pink); animation: k-ping 2.4s var(--ease-out) infinite; }
@keyframes k-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }
.rise.d5 { animation-delay: 0.4s; } .rise.d6 { animation-delay: 0.48s; }

/* Stage: a soft rotating halo, the phone in gentle 3D (flattens on hover), chips floating around. */
.k-stage { position: relative; display: grid; justify-items: center; padding: 24px 0 8px; perspective: 1600px; }
.k-halo {
  position: absolute; z-index: -1; left: 50%; top: 46%; width: min(540px, 110%); aspect-ratio: 1;
  border-radius: 50%; opacity: 0.42; filter: blur(70px);
  background: conic-gradient(from 0deg, #5533e0, #c25cf0, #ff5c9a, #8f60ff, #5533e0);
  transform: translate(-50%, -50%) rotate(0deg); will-change: transform;
  animation: k-spin 26s linear infinite;
}
@keyframes k-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.k-phone-wrap {
  transform: rotateY(-15deg) rotateX(6deg) rotateZ(2deg);
  transition: transform 1s var(--ease-out);
  animation: k-phone-in 1.3s var(--ease-out) 0.2s backwards;
  will-change: transform;
}
.k-stage:hover .k-phone-wrap { transform: rotateY(-5deg) rotateX(2deg) rotateZ(0.5deg); }
@keyframes k-phone-in { from { opacity: 0; transform: translate3d(0, 90px, 0) rotateY(-30deg) rotateX(16deg) rotateZ(6deg) scale(0.94); } }
.k-phone { width: clamp(236px, calc((100svh - 230px) / 2.3), 310px); }
.k-phone::before {
  content: ""; position: absolute; inset: 9px; z-index: 2; border-radius: 38px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.04));
}
.k-screens { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #120c22; }
.k-screens .k-shot {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0;
  animation: k-shot 12s var(--ease-in-out) infinite both; will-change: transform, opacity;
}
@keyframes k-shot {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; transform: scale(1); }
  25%  { opacity: 1; transform: scale(1); }
  29%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.k-progress { display: flex; gap: 8px; margin-top: 30px; animation: rise 0.9s var(--ease-out) 0.6s both; }
.k-progress i { position: relative; width: 30px; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.k-progress i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand);
  transform: scaleX(0); transform-origin: left; animation: k-prog 12s linear infinite both;
}
@keyframes k-prog { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 25.01%, 100% { transform: scaleX(0); } }

.k-chip-pos { position: absolute; z-index: 3; animation: k-chip-in 0.9s var(--ease-spring) both; }
.k-c1 { left: -2%; top: 14%; animation-delay: 0.9s; }
.k-c2 { right: -6%; top: 36%; animation-delay: 1.05s; }
.k-c3 { left: -8%; top: 60%; animation-delay: 1.2s; }
.k-c4 { right: 0; top: 78%; animation-delay: 1.35s; }
@keyframes k-chip-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.9); } }
.k-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: var(--r-pill);
  background: rgba(30, 21, 56, 0.95); white-space: nowrap; font-weight: 600; font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -18px rgba(0, 0, 0, 0.8);
  animation: k-float 7s var(--ease-in-out) infinite; will-change: transform;
}
.k-c2 .k-chip { animation-duration: 8.4s; animation-delay: -2.1s; }
.k-c3 .k-chip { animation-duration: 7.7s; animation-delay: -4.3s; }
.k-c4 .k-chip { animation-duration: 9.1s; animation-delay: -1.2s; }
.k-chip span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.k-chip svg { width: 16px; height: 16px; color: #fff; }
@keyframes k-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }

@media (max-width: 980px) {
  .k-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .k-stage { margin-top: 24px; }
  .k-phone { width: 280px; }
  .k-hero { padding-top: 24px; }
  .k-c1 { left: 4%; } .k-c2 { right: 2%; } .k-c3 { left: 2%; } .k-c4 { right: 6%; }
}
@media (max-width: 640px) {
  .k-phone { width: 236px; }
  .k-phone-wrap { transform: rotateY(-10deg) rotateX(4deg) rotateZ(1.5deg); }
  .k-chip { font-size: 0.8rem; padding: 7px 12px 7px 7px; gap: 8px; }
  .k-chip span { width: 26px; height: 26px; }
  .k-c1 { left: 0; top: 12%; } .k-c2 { right: 0; top: 46%; } .k-c3, .k-c4 { display: none; }
  .k-actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .k-word:not(.w1), .k-shot:not(.s1) { display: none; }
  .k-progress { display: none; }
}

/* 8b Feature showcase ---------------------------------------------------- */
/* Default (phones, and browsers without scroll-driven animations): each feature stacked with
   its own phone. Wide screens that support view timelines get the pinned phone below. */
.sc-pin { display: none; }
.sc-steps { display: grid; gap: var(--section); }
.sc-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.sc-step:nth-child(even) .sc-inline { order: 2; }
.sc-inline { width: 270px; }
.sc-text h2 { margin: 16px 0 18px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.sc-text .lead { max-width: 520px; }

@media (max-width: 980px) {
  .sc-step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: left; }
  .sc-step:nth-child(even) .sc-inline { order: 0; }
  .sc-text { width: 100%; }
  .sc-inline { width: min(260px, 70vw); }
}

@media (min-width: 981px) {
  @supports (timeline-scope: --a) and (animation-timeline: view()) {
    .showcase { timeline-scope: --sc1, --sc2, --sc3, --sc4, --sc5; }
    .sc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); }
    .sc-pin { display: block; }
    .sc-sticky {
      position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
      display: grid; place-items: center; align-content: center; gap: 28px;
    }
    .sc-inline { display: none; }
    .sc-steps { gap: 0; }
    .sc-step { display: flex; align-items: center; min-height: 80svh; }
    .sc-step-1 { view-timeline-name: --sc1; } .sc-step-2 { view-timeline-name: --sc2; }
    .sc-step-3 { view-timeline-name: --sc3; } .sc-step-4 { view-timeline-name: --sc4; }
    .sc-step-5 { view-timeline-name: --sc5; }

    .sc-phone { width: clamp(236px, calc((100svh - var(--header-h) - 150px) / 2.25), 300px); }
    .sc-screens { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #120c22; }
    .sc-screens .sc-shot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; animation: sc-show linear both; animation-range: cover 0% cover 100%; }
    .sc-glows { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
    .sc-glow { position: absolute; left: 50%; top: 45%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; filter: blur(80px); animation: sc-show linear both; animation-range: cover 0% cover 100%; }
    .sc-glow-1 { background: rgba(255, 130, 80, 0.4); } .sc-glow-2 { background: rgba(255, 92, 154, 0.36); }
    .sc-glow-3 { background: rgba(90, 210, 220, 0.3); } .sc-glow-4 { background: rgba(143, 96, 255, 0.42); }
    .sc-glow-5 { background: rgba(194, 92, 240, 0.4); }

    /* The first screen is already showing before its feature arrives; the last stays after. */
    .sc-screens .sc-shot-1, .sc-glow-1 { animation-name: sc-show-first; }
    .sc-screens .sc-shot-5, .sc-glow-5 { animation-name: sc-show-last; }

    .sc-text { animation: sc-focus linear both; animation-range: cover 0% cover 100%; }
    .sc-chapters { display: flex; gap: 6px; margin: 0; padding: 6px; list-style: none; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }
    .sc-ch { position: relative; padding: 7px 12px; border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 600; color: var(--text-faint); animation: sc-chapter linear both; animation-range: cover 0% cover 100%; }
    /* Timelines last: the animation shorthand above resets animation-timeline. */
    .showcase .sc-shot-1, .showcase .sc-glow-1, .showcase .sc-step-1 .sc-text, .showcase .sc-ch-1 { animation-timeline: --sc1; }
    .showcase .sc-shot-2, .showcase .sc-glow-2, .showcase .sc-step-2 .sc-text, .showcase .sc-ch-2 { animation-timeline: --sc2; }
    .showcase .sc-shot-3, .showcase .sc-glow-3, .showcase .sc-step-3 .sc-text, .showcase .sc-ch-3 { animation-timeline: --sc3; }
    .showcase .sc-shot-4, .showcase .sc-glow-4, .showcase .sc-step-4 .sc-text, .showcase .sc-ch-4 { animation-timeline: --sc4; }
    .showcase .sc-shot-5, .showcase .sc-glow-5, .showcase .sc-step-5 .sc-text, .showcase .sc-ch-5 { animation-timeline: --sc5; }
  }
}
@keyframes sc-show {
  0%, 26% { opacity: 0; transform: scale(1.04); }
  32%, 68% { opacity: 1; transform: scale(1); }
  74%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes sc-show-first { 0%, 68% { opacity: 1; transform: scale(1); } 74%, 100% { opacity: 0; } }
@keyframes sc-show-last { 0%, 26% { opacity: 0; transform: scale(1.04); } 32%, 100% { opacity: 1; transform: scale(1); } }
@keyframes sc-focus {
  0%, 22% { opacity: 0.22; transform: translate3d(0, 24px, 0); }
  34%, 66% { opacity: 1; transform: translate3d(0, 0, 0); }
  78%, 100% { opacity: 0.22; transform: translate3d(0, -24px, 0); }
}
@keyframes sc-chapter {
  0%, 26% { color: var(--text-faint); background: transparent; }
  32%, 68% { color: #fff; background: rgba(143, 96, 255, 0.35); }
  74%, 100% { color: var(--text-faint); background: transparent; }
}

/* 8c Klydio lower sections ------------------------------------------------ */
/* Highlights */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat strong { display: block; font: 800 1.3rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.stat span { display: block; color: var(--text-soft); font-size: 0.9rem; line-height: 1.45; margin-top: 3px; }

/* Detail cards: a gradient hairline and a tilted icon on hover */
.card.detail::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(143, 96, 255, 0.9), rgba(255, 92, 154, 0.7) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t-base) var(--ease-out);
}
.card.detail:hover::before { opacity: 1; }
.card.detail .icon { transition: transform 420ms var(--ease-spring); }
.card.detail:hover .icon { transform: rotate(-8deg) scale(1.08); }

/* Gallery carousel: two identical sets scroll by half their width, forever; pauses on hover/focus */
.marquee {
  overflow: hidden; padding: 40px 0 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 28px; padding-right: 28px; }
.marquee figure { margin: 0; text-align: center; transition: transform 500ms var(--ease-out); }
.marquee figure:nth-child(even) { transform: translate3d(0, 34px, 0); }
.marquee figure:hover { transform: translate3d(0, -8px, 0); }
.marquee figure:nth-child(even):hover { transform: translate3d(0, 26px, 0); }
.marquee .phone { width: 228px; }
.marquee figcaption { margin-top: 18px; color: var(--text-soft); font-weight: 600; font-size: 0.92rem; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Privacy: a shield with rings rippling out */
.privacy .lead { max-width: 520px; }
.shield { position: relative; width: 64px; height: 64px; margin-bottom: 26px; }
.shield span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand); box-shadow: var(--glow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.shield span svg { width: 28px; height: 28px; color: #fff; }
.shield i { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(201, 184, 255, 0.55); animation: ripple 3.6s var(--ease-out) infinite; }
.shield i:nth-child(2) { animation-delay: 1.2s; } .shield i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.point { transition: transform var(--t-base) var(--ease-out), background-color var(--t-base); }
.point:hover { transform: translateX(4px); background: var(--surface-2); }

/* FAQ: question list beside a sticky intro; answers open smoothly where supported */
:root { interpolate-size: allow-keywords; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-side h2 { margin: 16px 0 18px; }
.faq-grid .faq { max-width: none; margin: 0; display: grid; gap: 10px; }
.faq .qa { border: 0; border-radius: var(--r-m); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t-base), box-shadow var(--t-base); }
.faq .qa:hover { background: var(--surface-2); }
.faq .qa[open] { background: linear-gradient(180deg, rgba(143, 96, 255, 0.12), rgba(143, 96, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(143, 96, 255, 0.3); }
.faq .qa summary { padding: 20px 22px; font-size: 1.04rem; }
.faq .qa-body p { padding: 0 64px 22px 22px; color: var(--text-soft); }
@supports selector(::details-content) {
  .faq .qa::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--ease-out), content-visibility 420ms allow-discrete; }
  .faq .qa[open]::details-content { block-size: auto; }
  .faq .qa .qa-body { opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity 320ms var(--ease-out) 60ms, transform 320ms var(--ease-out) 60ms; }
  .faq .qa[open] .qa-body { opacity: 1; transform: none; }
}

/* Beta: the icon with a little equaliser, and the three steps */
.beta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl);
  background: radial-gradient(700px 380px at 0% 0%, rgba(143, 96, 255, 0.32), transparent 70%), radial-gradient(600px 380px at 100% 100%, rgba(255, 92, 154, 0.2), transparent 70%), var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.beta > * { min-width: 0; }
.beta h2 { margin: 16px 0 18px; }
.beta-icon { position: relative; display: flex; width: max-content; align-items: flex-end; gap: 14px; margin-bottom: 26px; }
.beta-icon img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 20px 50px -12px rgba(143, 96, 255, 0.75); }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-bottom: 6px; }
.eq i { width: 5px; height: 100%; border-radius: 3px; background: var(--brand); transform-origin: bottom; animation: eq 1.1s var(--ease-in-out) infinite alternate; }
.eq i:nth-child(1) { animation-duration: 0.9s; } .eq i:nth-child(2) { animation-duration: 1.3s; animation-delay: -0.4s; }
.eq i:nth-child(3) { animation-duration: 0.8s; animation-delay: -0.2s; } .eq i:nth-child(4) { animation-duration: 1.15s; animation-delay: -0.7s; }
.eq i:nth-child(5) { animation-duration: 1s; animation-delay: -0.5s; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.beta-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.beta-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--r-m); background: rgba(11, 7, 24, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.beta-steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 1.1rem/1 var(--font-display); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.beta-steps h3 { font-size: 1.06rem; margin-bottom: 4px; }
.beta-steps p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .faq-grid, .beta { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .marquee .phone { width: 190px; }
  .faq .qa-body p { padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* 8d Studio home --------------------------------------------------------- */
.s-hero { position: relative; overflow-x: clip; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.s-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.s-hero-grid > * { min-width: 0; }
.s-title { margin: 24px 0; }
.s-hero .lead { max-width: 540px; }
.s-hero .buttons { margin-top: 36px; }

/* The logo, built from tiles: assembles along the P, floats, and spreads apart on hover. */
.s-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.s-visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 96, 255, 0.45), transparent); filter: blur(30px); }
.s-grid-bg {
  position: absolute; inset: -12%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.tilemark { position: relative; width: min(380px, 78vw); aspect-ratio: 1; animation: tm-float 9s var(--ease-in-out) 1.4s infinite; will-change: transform; }
.tm {
  position: absolute; width: 18.75%; height: 18.75%; border-radius: 28%;
  background-image: linear-gradient(to top right, #5533e0, #8f60ff 55%, #e05cc8);
  background-size: 533.333% 533.333%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px -14px rgba(85, 51, 224, 0.8);
  animation: tm-in 0.75s var(--ease-spring) backwards;
  transition: translate 520ms var(--ease-spring);
}
.tilemark:hover .tm { translate: var(--dx) var(--dy); }
.tm.tslot { background: rgba(244, 239, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(244, 239, 255, 0.1); }
.tm.tspark { background: #ff5c9a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 34px -12px rgba(255, 92, 154, 0.85); }
.tm.tspark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px rgba(255, 92, 154, 0.6); animation: tm-ping 2.8s var(--ease-out) 1.6s infinite; }
@keyframes tm-in { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.4); } }
@keyframes tm-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -12px, 0) rotate(-1.2deg); } }
@keyframes tm-ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.tm.t00 { left: 7.344%; top: 7.344%; background-position: 9.04% 9.04%; --dx: -7.32px; --dy: -7.32px; }
.tm.t10 { left: 29.531%; top: 7.344%; background-position: 36.35% 9.04%; --dx: -2.44px; --dy: -7.32px; }
.tm.t20 { left: 51.719%; top: 7.344%; background-position: 63.65% 9.04%; --dx: 2.44px; --dy: -7.32px; }
.tm.t01 { left: 7.344%; top: 29.531%; background-position: 9.04% 36.35%; --dx: -7.32px; --dy: -2.44px; }
.tm.t02 { left: 7.344%; top: 51.719%; background-position: 9.04% 63.65%; --dx: -7.32px; --dy: 2.44px; }
.tm.t12 { left: 29.531%; top: 51.719%; background-position: 36.35% 63.65%; --dx: -2.44px; --dy: 2.44px; }
.tm.t22 { left: 51.719%; top: 51.719%; background-position: 63.65% 63.65%; --dx: 2.44px; --dy: 2.44px; }
.tm.t03 { left: 7.344%; top: 73.906%; background-position: 9.04% 90.96%; --dx: -7.32px; --dy: 7.32px; }
.tm.tbar { left: 73.906%; top: 16.719%; height: 44.375%; border-radius: 999px; background-size: 533.333% 225.35%; background-position: 90.96% 30.06%; --dx: 7.32px; --dy: 0px; }
.tm.tslot { left: 29.531%; top: 73.906%; --dx: -2.44px; --dy: 7.32px; }
.tm.tspark { left: 51.719%; top: 73.906%; --dx: 2.44px; --dy: 7.32px; }
.tm.t03 { animation-delay: 0.25s; transition-delay: 0.000s; }
.tm.t02 { animation-delay: 0.32s; transition-delay: 0.012s; }
.tm.t01 { animation-delay: 0.39s; transition-delay: 0.024s; }
.tm.t00 { animation-delay: 0.46s; transition-delay: 0.036s; }
.tm.t10 { animation-delay: 0.53s; transition-delay: 0.048s; }
.tm.t20 { animation-delay: 0.60s; transition-delay: 0.060s; }
.tm.tbar { animation-delay: 0.67s; transition-delay: 0.072s; }
.tm.t22 { animation-delay: 0.74s; transition-delay: 0.084s; }
.tm.t12 { animation-delay: 0.81s; transition-delay: 0.096s; }
.tm.tslot { animation-delay: 0.88s; transition-delay: 0.108s; }
.tm.tspark { animation-delay: 0.95s; transition-delay: 0.120s; }

/* Product card extras */
.product-head .status { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 92, 154, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 92, 154, 0.25); color: #ffc2d8; font-weight: 600; font-size: 0.82rem; }
.product-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.product-points li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.product-points svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(143, 96, 255, 0.16); color: var(--violet-300); flex: none; }
.product-media .phone { transition: transform 700ms var(--ease-out); }
.product:hover .product-media .phone:first-child { transform: translate3d(0, -10px, 0) rotate(-2deg); }
.product:hover .product-media .phone:last-child { transform: translate3d(0, -4px, 0) rotate(2deg); }

.next-app { display: flex; align-items: center; gap: 22px; margin-top: 16px; padding: 22px 26px; border-radius: var(--r-l); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }
.next-app h3 { margin-bottom: 4px; }
.next-app p { color: var(--text-soft); font-size: 0.96rem; }
.next-tiles { display: grid; grid-template-columns: repeat(2, 16px); gap: 5px; flex: none; }
.next-tiles i { width: 16px; height: 16px; border-radius: 5px; background: rgba(201, 184, 255, 0.22); animation: tile-blink 2.4s var(--ease-in-out) infinite; }
.next-tiles i:nth-child(2) { animation-delay: 0.3s; } .next-tiles i:nth-child(4) { animation-delay: 0.6s; } .next-tiles i:nth-child(3) { animation-delay: 0.9s; }
@keyframes tile-blink { 0%, 100% { background: rgba(201, 184, 255, 0.18); } 40% { background: #8f60ff; } }

/* Approach cards: an outlined number in the corner */
.rules .card { overflow: hidden; }
.rule-num { position: absolute; top: 14px; right: 22px; font: 800 3.2rem/1 var(--font-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); transition: -webkit-text-stroke-color var(--t-base); }
.rules .card:hover .rule-num { -webkit-text-stroke-color: rgba(201, 184, 255, 0.5); }

/* Contact */
.contact {
  text-align: center; padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: var(--r-xl);
  background: radial-gradient(700px 360px at 50% 0%, rgba(143, 96, 255, 0.34), transparent 70%), var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-mark { width: 88px; height: 88px; margin: 0 auto 26px; filter: drop-shadow(0 20px 36px rgba(85, 51, 224, 0.55)); animation: tm-float 8s var(--ease-in-out) infinite; }
.contact h2 { margin-bottom: 16px; }
.contact .lead { max-width: 560px; margin: 0 auto; }
.contact .buttons { margin-top: 32px; }

@media (max-width: 980px) {
  .s-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .s-visual { min-height: 360px; }
  .tilemark { width: min(300px, 70vw); }
}
@media (max-width: 640px) {
  .s-visual { min-height: 300px; }
  .tilemark { width: min(240px, 64vw); }
  .product-head .status { display: none; }
  .next-app { align-items: flex-start; }
}

/* 8e Reading pages (privacy, terms, support) ----------------------------- */
.doc-hero { max-width: var(--width); }
.doc-hero h1 { margin: 18px 0 14px; max-width: 760px; }
.doc-hero .lead { max-width: 640px; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: var(--fs-small); color: var(--text-faint); }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.doc-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand); box-shadow: var(--glow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.doc-icon svg { width: 26px; height: 26px; color: #fff; }
.doc-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: var(--s-6); }
.toc-wrap { position: sticky; top: calc(var(--header-h) + 28px); }
.toc { padding: 18px; border-radius: var(--r-m); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); }
.toc-title { font: 600 var(--fs-tiny)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text-soft); text-decoration: none; font-size: 0.92rem; line-height: 1.35; transition: background-color var(--t-fast), color var(--t-fast); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: 0.8rem; padding-top: 1px; }
.toc a:hover { background: var(--surface-2); color: #fff; }

.doc { max-width: 70ch; }
.doc > p:first-child { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.65; }
.doc h2 { position: relative; font-size: 1.5rem; letter-spacing: -0.015em; margin: 2.2em 0 0.7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc h2::before { content: ""; position: absolute; left: -22px; top: 0.42em; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); }
.doc p, .doc li { line-height: 1.75; }
.doc a:not(.button) { color: var(--violet-300); }
.summary-card { margin: 28px 0 8px; }
.doc-end { display: flex; align-items: center; gap: 18px; margin-top: var(--s-8); padding: 22px 24px; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(143, 96, 255, 0.12), rgba(143, 96, 255, 0.03)); box-shadow: inset 0 0 0 1px rgba(143, 96, 255, 0.25); }
.doc-end > div:nth-child(2) { flex: 1; }
.doc-end h3 { font-size: 1.08rem; margin-bottom: 2px; }
.doc-end p { margin: 0 !important; color: var(--text-soft); font-size: 0.95rem; }
.doc-end.wide { margin-top: var(--section); }

/* Support */
.support-hero { padding-bottom: var(--s-6); }
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.help-card { padding-bottom: 64px; }
.help-card p { margin: 0; }
.help-go { position: absolute; left: 26px; bottom: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t-base), transform var(--t-base) var(--ease-out); }
.help-go svg { width: 16px; height: 16px; color: var(--text); }
.help-card:hover .help-go { background: var(--violet-500); transform: translateX(4px); }
.support-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: var(--section); }
.support-faq .faq-side h2 { margin: 16px 0 18px; }
.support-faq .faq { max-width: none; margin: 0; display: grid; gap: 10px; }

@media (max-width: 980px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc-wrap { position: static; }
  .help-cards { grid-template-columns: minmax(0, 1fr); }
  .support-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .doc h2::before { display: none; }
  .doc-end { flex-direction: column; align-items: flex-start; }
}

.summary-title { font: 700 var(--fs-h3)/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--text); margin-bottom: 12px !important; }
.card .card-title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }

/* 9 Utilities ------------------------------------------------------------- */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center h1 { margin: 22px 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--violet-500); color: #fff; font-weight: 600; text-decoration: none; transition: top var(--t-base) var(--ease-out); }
.skip-link:focus { top: 12px; color: #fff; }
.buttons.spaced { margin-top: 28px; }

/* 10 Motion --------------------------------------------------------------- */
.rise { animation: rise 0.9s var(--ease-out) both; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.24s; } .rise.d4 { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* Scroll reveals where the browser supports scroll-driven animations; elsewhere content shows at once. */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  @keyframes reveal { from { opacity: 0; transform: translate3d(0, 44px, 0) scale(0.985); } }
}

/* 11 Responsive ----------------------------------------------------------- */
.hero-grid > *, .feature-row > *, .panel-grid > *, .product > * { min-width: 0; }

@media (max-width: 980px) {
  .hero-grid, .feature-row, .panel-grid, .product { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .product-media { margin-bottom: -80px; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav, .header-actions > .button { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  :root { --fs-body: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .chip { font-size: 0.82rem; padding: 8px 12px 8px 8px; }
  .chip span { width: 26px; height: 26px; }
  .product { padding: 24px; }
  .product-head h3 { font-size: 1.6rem; }
  .product-media { gap: 12px; margin-bottom: -60px; }
  .product-media .phone { width: 46%; max-width: 170px; }
  .buttons .button { flex: 1 1 auto; }
  .faq details p, .doc details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
