/* ====================================================================
   OK-Suite — Lime & Ink · Bento brutalism morbido
   Cream warm · Deep ink · Electric lime · Coral pop
   ==================================================================== */

:root {
  /* Surfaces */
  --cream:       oklch(0.965 0.014 92);
  --cream-2:     oklch(0.935 0.018 90);
  --paper:       oklch(0.995 0.004 90);
  --ink:         oklch(0.165 0.028 258);
  --ink-2:       oklch(0.235 0.030 258);
  --ink-3:       oklch(0.50 0.020 258);
  --rule:        oklch(0.165 0.028 258 / 0.10);

  /* Accents */
  --lime:        oklch(0.89 0.20 128);
  --lime-deep:   oklch(0.78 0.22 132);
  --coral:       oklch(0.70 0.22 26);
  --sky:         oklch(0.78 0.14 230);
  --emerald:     #00C853;
  --emerald-deep: #1B7A3E;

  --accent:      var(--lime);
  --accent-deep: var(--lime-deep);

  /* Typo */
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans:    "Geist", "Inter", system-ui, sans-serif;
  --mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --R: 28px;   /* base radius */
  --R-lg: 40px;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  src: local("Bricolage Grotesque");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--cream); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 10.5vw, 168px);
  font-variation-settings: "wdth" 90;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
.display em {
  font-style: normal;
  font-variation-settings: "wdth" 75;
  font-weight: 500;
  color: var(--ink);
  background: var(--accent);
  padding: 0 0.12em;
  border-radius: 16px;
  display: inline-block;
  line-height: 1;
  margin: 0.04em 0;
  transform: rotate(-1.4deg);
}

h2.headline {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 92;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
}
h2.headline em {
  font-style: normal;
  font-variation-settings: "wdth" 80;
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.14em;
  border-radius: 12px;
  display: inline-block;
  line-height: 1;
  transform: rotate(-1.2deg);
  margin: 0.02em 0;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Shell ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px var(--gutter) 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px oklch(0.165 0.028 258 / 0.35);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
  font-family: var(--mono); font-weight: 700; font-size: 11px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links {
  display: flex; gap: 6px;
  font-size: 13px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: oklch(0.85 0.012 258);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: oklch(1 0 0 / 0.08); color: var(--paper); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-size: 13px; font-weight: 600;
  transition: transform .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .arr { transition: transform .2s ease; }
.nav-cta:hover .arr { transform: translate(2px, -2px); }

.lang-toggle {
  padding: 6px 12px; border-radius: 999px;
  background: oklch(1 0 0 / 0.08);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  color: oklch(0.85 0.012 258);
  text-transform: uppercase;
}

@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.hero-top .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hero-top .right b { color: var(--ink); font-weight: 600; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
}
@media (max-width: 980px) { .hero-bottom { grid-template-columns: 1fr; } }

.hero-card {
  background: var(--paper);
  border-radius: var(--R-lg);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.hero-card.ink {
  background: var(--ink); color: var(--paper);
}
.hero-card.lime { background: var(--accent); color: var(--ink); }

.hero-lead-card {
  display: grid; gap: 18px;
}

.hero-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat {
  background: var(--paper);
  border-radius: var(--R);
  padding: 22px 22px 18px;
  display: grid; gap: 6px;
  position: relative; overflow: hidden;
}
.hero-stat.ink { background: var(--ink); color: var(--paper); }
.hero-stat.lime { background: var(--accent); color: var(--ink); }
.hero-stat .num {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 80;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.hero-stat .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero-stat.ink .lbl { color: oklch(0.78 0.012 258); }
.hero-stat.lime .lbl { color: color-mix(in oklab, var(--ink) 80%, var(--accent)); }

/* Signature card (right side) */
.sig-card {
  background: var(--ink); color: var(--paper);
  border-radius: var(--R-lg);
  padding: clamp(24px, 3vw, 32px);
  display: grid; gap: 14px;
  align-content: space-between;
  min-height: 320px;
  position: relative; overflow: hidden;
}
.sig-card::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 35%, transparent), transparent 70%);
  filter: blur(8px);
}
.sig-card .mono-label { color: oklch(0.78 0.012 258); position: relative; }
.signature { width: 100%; max-width: 380px; height: 90px; display: block; position: relative; }
.signature path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: sign 3.4s ease 0.4s forwards;
}
@keyframes sign { to { stroke-dashoffset: 0; } }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--ink-2);
}
.pill .d { width: 6px; height: 6px; border-radius: 999px; background: var(--lime-deep); }
.pill.solid { background: var(--ink); color: var(--paper); border-color: transparent; }
.pill.solid .d { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }

/* Marquee */
.marquee {
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  margin: 0 var(--gutter);
  overflow: hidden;
  max-width: var(--maxw);
}
.shell-marquee { max-width: var(--maxw); margin: 0 auto; }
.marquee-track {
  display: flex; gap: 40px;
  padding: 14px 0;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--paper);
}
.marquee-item::after { content: "✦"; color: var(--accent); font-size: 10px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section pad ---------- */
.section-pad { padding: clamp(64px, 8vw, 120px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 64px);
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Apps bento ---------- */
/* Le tre card (Docs/OTP/Cards) hanno lo stesso peso — una sotto l'altra, stessa dimensione, a
   ogni larghezza di schermo (2026-09-10, richiesta esplicita dopo che la card Cards a piena
   larghezza risultava "immensa" rispetto alle altre due). Un solo layout, non uno per desktop e
   uno per mobile: elimina alla radice l'intera classe di bug di specificità/media-query vista
   nelle sessioni precedenti (grid-row: span 2 che sopravviveva sul breakpoint mobile). */
.apps-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-card {
  background: var(--paper);
  border-radius: var(--R-lg);
  padding: clamp(24px, 2.6vw, 36px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  transition: transform .25s ease;
}
.app-card:hover { transform: translateY(-3px); }

.app-card.flagship {
  background: var(--ink); color: var(--paper);
}
.app-card.flagship::before {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  opacity: 0.55; filter: blur(20px);
}
.app-card.lime { background: var(--accent); color: var(--ink); }
.app-card.emerald { background: var(--emerald); color: var(--ink); }

.app-top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative;
}
.app-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--cream-2);
  display: grid; place-items: center;
  overflow: hidden;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  color: var(--ink);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flagship .app-icon { background: var(--accent); color: var(--ink); }
.app-card.lime .app-icon { background: var(--ink); color: var(--accent); }
.app-card.emerald .app-icon { background: var(--ink); color: var(--emerald); }

/* ---------- Status badge (Public / Beta) ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  width: max-content;
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 999px; }
.status-badge.public .dot { background: var(--lime-deep); }
.status-badge.beta .dot { background: var(--coral); box-shadow: 0 0 8px color-mix(in oklab, var(--coral) 60%, transparent); }

.app-version-tag {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--cream-2); color: var(--ink-2);
  letter-spacing: 0.02em;
}
.flagship .app-version-tag {
  background: oklch(1 0 0 / 0.10); color: oklch(0.85 0.012 258);
}
.app-card.lime .app-version-tag,
.app-card.emerald .app-version-tag {
  background: oklch(0.165 0.028 258 / 0.10); color: var(--ink-2);
}

.app-name {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 78;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.9; letter-spacing: -0.03em;
  margin: auto 0 0;
  position: relative;
}
/* Font-size unificato tra le tre card (2026-09-10) — prima .flagship aveva un titolo più
   grande, coerente con l'ex ruolo di "hero" a piena larghezza: con le tre card ora a pari
   peso, un titolo più grande da solo avrebbe continuato a far sembrare Docs più importante
   anche a parità di dimensione del riquadro. */
.app-name em {
  font-style: normal;
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.12em;
  border-radius: 10px;
  display: inline-block;
  line-height: 1;
}
.flagship .app-name em { background: var(--paper); }
.app-card.lime .app-name em { background: var(--ink); color: var(--accent); }
.app-card.emerald .app-name em { background: var(--ink); color: var(--emerald); }

.app-desc {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  position: relative;
}
.flagship .app-desc { color: oklch(0.85 0.012 258); }

.app-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  position: relative;
}
.app-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--cream-2); color: var(--ink-2);
}
.flagship .app-tag { background: oklch(1 0 0 / 0.10); color: oklch(0.92 0.012 258); }
.app-card.lime .app-tag,
.app-card.emerald .app-tag { background: oklch(0.165 0.028 258 / 0.12); color: var(--ink-2); }

.app-card-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  position: relative; margin-top: 6px;
}
.app-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.app-card-btn:hover { transform: translateY(-2px); }
.app-card-btn.primary { background: var(--accent); color: var(--ink); }
.app-card-btn.ghost { background: oklch(1 0 0 / 0.08); color: inherit; }
.app-card.lime .app-card-btn.primary { background: var(--ink); color: var(--accent); }
.app-card.lime .app-card-btn.ghost { background: oklch(0.165 0.028 258 / 0.14); color: var(--ink); }
.app-card.emerald .app-card-btn.primary { background: var(--ink); color: var(--emerald); }
.app-card.emerald .app-card-btn.ghost { background: oklch(0.165 0.028 258 / 0.14); color: var(--ink); }

.app-arrow {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--cream-2);
  display: grid; place-items: center;
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.app-card:hover .app-arrow { transform: translate(2px, -2px) rotate(-3deg); background: var(--accent); }
.flagship .app-arrow { background: var(--accent); color: var(--ink); }
.flagship:hover .app-arrow { background: var(--paper); }
.app-card.lime .app-arrow { background: var(--ink); color: var(--accent); }
.app-card.lime:hover .app-arrow { background: var(--paper); color: var(--ink); }

/* ---------- OK-Docs showcase ---------- */
.docs-show {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--R-lg);
  margin: 0 var(--gutter);
  max-width: var(--maxw);
  padding: clamp(40px, 5vw, 80px) clamp(28px, 3vw, 56px);
  position: relative;
  overflow: hidden;
}
.docs-show > * { position: relative; z-index: 1; }
.docs-show::before {
  content: ""; position: absolute; left: -200px; top: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%);
  filter: blur(40px); z-index: 0;
}
.docs-show .eyebrow { color: oklch(0.78 0.012 258); }
.docs-show .lead { color: oklch(0.86 0.012 258); }
.docs-show h2.headline { color: var(--paper); }

.docs-shell { max-width: var(--maxw); margin: 0 auto; }

.docs-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 56px);
}
@media (max-width: 980px) { .docs-grid { grid-template-columns: 1fr; } }

.docs-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.docs-tab {
  padding: 12px 18px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.08);
  color: oklch(0.86 0.012 258);
  font-size: 13px; font-weight: 500;
  transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.docs-tab:hover { background: oklch(1 0 0 / 0.14); }
.docs-tab.active { background: var(--accent); color: var(--ink); font-weight: 600; }
.docs-tab .num {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border-radius: 6px;
  background: oklch(0 0 0 / 0.10); color: inherit;
  opacity: 0.6;
}
.docs-tab.active .num { background: oklch(0 0 0 / 0.15); opacity: 0.7; }

.docs-feature-name {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 82;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.92; letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.docs-feature-name em {
  font-style: normal;
  background: var(--accent); color: var(--ink);
  padding: 0 0.12em; border-radius: 10px;
  display: inline-block; line-height: 1;
}
.docs-feature-desc {
  font-size: 17px; line-height: 1.55; color: oklch(0.86 0.012 258);
  max-width: 48ch; text-wrap: pretty;
}

.docs-bullets {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 10px;
}
.docs-bullets li {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px;
  font-size: 14px; line-height: 1.5; color: oklch(0.92 0.012 258); align-items: baseline;
}
.docs-bullets li::before {
  content: "→"; color: var(--accent);
  font-family: var(--mono); font-weight: 600;
}

/* Phone mockup — chunky */
.phone-stage {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 420px; margin: 0 auto;
  width: 100%;
}
.phone-stage::before {
  content: ""; position: absolute; inset: -8% -12%;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--accent) 25%, transparent), transparent 60%);
  filter: blur(40px); z-index: 0;
}
.phone {
  position: relative; inset: 0;
  width: 100%; height: 100%;
  border-radius: 48px;
  background: oklch(0.10 0.020 258);
  padding: 12px;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.06) inset,
    0 40px 80px -20px oklch(0 0 0 / 0.55);
}
.phone-screen {
  border-radius: 36px;
  width: 100%; height: 100%;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 999px; background: oklch(0.10 0.020 258);
  z-index: 5;
}
.phone-status {
  position: absolute; top: 14px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 28px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--ink); z-index: 6;
}
.phone-content {
  position: absolute; inset: 44px 0 0 0;
  padding: 16px 18px 22px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}

/* Scanner view */
.scan-viewfinder {
  flex: 1;
  background: linear-gradient(135deg, oklch(0.92 0.018 90) 0%, oklch(0.86 0.020 88) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.scan-doc {
  position: absolute; left: 18%; top: 14%; right: 18%; bottom: 14%;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 12px 24px -8px oklch(0 0 0 / 0.25);
  transform: rotate(-3deg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.scan-doc-line { height: 4px; background: oklch(0.75 0.012 258); border-radius: 2px; }
.scan-doc-line.short { width: 60%; }
.scan-doc-line.mid { width: 80%; }
.scan-doc-line.long { width: 95%; }
.scan-corners { position: absolute; inset: 10%; pointer-events: none; }
.scan-corners span { position: absolute; width: 26px; height: 26px; border: 3px solid var(--accent); border-radius: 4px; }
.scan-corners span:nth-child(1) { top:0; left:0; border-right: 0; border-bottom: 0; }
.scan-corners span:nth-child(2) { top:0; right:0; border-left: 0; border-bottom: 0; }
.scan-corners span:nth-child(3) { bottom:0; left:0; border-right: 0; border-top: 0; }
.scan-corners span:nth-child(4) { bottom:0; right:0; border-left: 0; border-top: 0; }
.scan-laser {
  position: absolute; left: 8%; right: 8%; height: 3px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 16px var(--accent);
  animation: laser 2.4s ease-in-out infinite;
}
@keyframes laser {
  0%, 100% { top: 14%; opacity: 0.95; }
  50% { top: 84%; opacity: 1; }
}
.scan-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 2px 0;
}
.scan-btn {
  width: 58px; height: 58px; border-radius: 999px;
  background: var(--accent);
  border: 4px solid color-mix(in oklab, var(--accent) 30%, var(--paper));
  box-shadow: 0 6px 16px -4px color-mix(in oklab, var(--accent) 60%, transparent);
}
.scan-info {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  text-align: right;
}
.scan-info b { color: var(--ink); display: block; font-size: 12px; }

/* Sign view */
.sign-doc {
  flex: 1; background: var(--paper); border-radius: 16px;
  border: 1px solid var(--rule);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.sign-doc-h {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 86;
  font-size: 18px; line-height: 1; letter-spacing: -0.02em;
}
.sign-doc-meta {
  font-family: var(--mono); font-size: 9px; color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.sign-body { display: flex; flex-direction: column; gap: 5px; }
.sign-body span { height: 3px; background: oklch(0.85 0.012 258); border-radius: 2px; }
.sign-body span:nth-child(2) { width: 88%; }
.sign-body span:nth-child(3) { width: 92%; }
.sign-body span:nth-child(4) { width: 70%; }
.sign-pad {
  margin-top: auto;
  height: 92px;
  border: 2px dashed color-mix(in oklab, var(--accent) 70%, transparent);
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent) 18%, var(--paper));
  position: relative;
}
.sign-pad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sign-pad svg path {
  fill: none; stroke: var(--ink);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  animation: signPad 3s ease 0.3s forwards infinite;
}
@keyframes signPad {
  0% { stroke-dashoffset: 500; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.sign-pad-label {
  position: absolute; bottom: 8px; right: 12px;
  font-family: var(--mono); font-size: 9px; color: var(--ink-2);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.sign-confirm { display: flex; gap: 8px; }
.sign-confirm button {
  flex: 1; padding: 12px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.01em;
}
.sign-confirm .primary { background: var(--accent); color: var(--ink); }
.sign-confirm .ghost { background: var(--cream-2); color: var(--ink-2); }

/* Caveau view */
.cv-stage { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cv-bio {
  background: oklch(0.10 0.020 258); color: var(--paper);
  border-radius: 18px; padding: 18px;
  position: relative; overflow: hidden;
  height: 156px;
}
.cv-bio::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(circle at 70% 50%, color-mix(in oklab, var(--accent) 70%, transparent) 0%, transparent 50%);
  filter: blur(24px); opacity: 0.6;
}
.cv-fingerprint { position: absolute; right: -10px; bottom: -10px; width: 140px; height: 140px; }
.cv-fingerprint svg { width: 100%; height: 100%; opacity: 0.9; }
.cv-fingerprint svg path { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.cv-bio-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: oklch(0.78 0.012 258);
  position: relative;
}
.cv-bio-h {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 84;
  font-size: 22px; line-height: 1.05; letter-spacing: -0.02em;
  margin-top: 6px; position: relative;
}
.cv-bio-status {
  position: absolute; bottom: 16px; left: 18px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
}
.cv-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.cv-list { display: flex; flex-direction: column; gap: 6px; }
.cv-row {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: var(--cream-2); border-radius: 14px;
}
.cv-row .ico {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
}
.cv-row .name { font-size: 12px; font-weight: 600; }
.cv-row .sub { font-family: var(--mono); font-size: 9px; color: var(--ink-3); letter-spacing: 0.02em; text-transform: uppercase; }
.cv-row .lock {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}

/* ---------- Trust grid (bento) ---------- */
.trust-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .trust-bento { grid-template-columns: repeat(2, 1fr); } }
.trust-cell {
  background: var(--paper);
  border-radius: var(--R);
  padding: 28px 24px;
  display: grid; gap: 12px; align-content: start;
  min-height: 240px;
  position: relative; overflow: hidden;
}
.trust-cell.lime { background: var(--accent); color: var(--ink); }
.trust-cell.ink { background: var(--ink); color: var(--paper); }
.trust-cell.cream { background: var(--cream-2); }
.trust-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--cream-2);
  padding: 5px 10px; border-radius: 999px;
  display: inline-flex; width: max-content;
}
.trust-cell.lime .trust-num { background: oklch(0.165 0.028 258 / 0.15); color: var(--ink-2); }
.trust-cell.ink .trust-num { background: oklch(1 0 0 / 0.10); color: oklch(0.86 0.012 258); }
.trust-cell.cream .trust-num { background: var(--paper); }
.trust-h {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 84;
  font-size: 28px; line-height: 1; letter-spacing: -0.025em;
}
.trust-p { font-size: 13px; line-height: 1.5; }
.trust-cell .trust-p { color: var(--ink-2); }
.trust-cell.ink .trust-p { color: oklch(0.86 0.012 258); }
.trust-cell.lime .trust-p { color: var(--ink-2); }

/* ---------- Duo OTP / REC ---------- */
.duo-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) { .duo-bento { grid-template-columns: 1fr; } }
.duo-cell {
  background: var(--paper);
  border-radius: var(--R-lg);
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
}
.duo-cell.coral {
  background: var(--coral);
  color: oklch(0.20 0.04 28);
}
.duo-cell.coral .eyebrow { color: oklch(0.20 0.04 28); }
.duo-cell.coral .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 4px oklch(0.20 0.04 28 / 0.25); }
.duo-cell.coral .lead { color: oklch(0.18 0.04 28); }

.duo-name {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 80;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.9; letter-spacing: -0.035em; margin: 0;
}
.duo-name em {
  font-style: normal;
  background: var(--accent); color: var(--ink);
  padding: 0 0.12em; border-radius: 10px;
  display: inline-block; line-height: 1;
}
.duo-cell.coral .duo-name em { background: var(--ink); color: var(--coral); }

/* OTP visual */
.otp-card {
  background: var(--ink); color: var(--paper);
  padding: 24px; border-radius: 20px;
  display: grid; gap: 14px;
}
.otp-issuer {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase; color: oklch(0.78 0.012 258);
}
.otp-code {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 78;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.02em;
  display: flex; gap: 12px;
  color: var(--accent);
}
.otp-code span {
  display: inline-block; min-width: 0.55em; text-align: center;
}
.otp-ring { width: 24px; height: 24px; position: relative; }
.otp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.otp-ring circle { fill: none; stroke-width: 3.5; }
.otp-ring .bg { stroke: oklch(0.32 0.020 258); }
.otp-ring .fg {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 56.5; stroke-dashoffset: 0;
  animation: otpRing 30s linear infinite;
}
@keyframes otpRing { to { stroke-dashoffset: 56.5; } }

.otp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 14px;
  background: var(--cream-2);
}
.otp-row + .otp-row { margin-top: 6px; }
.otp-row .nm { font-size: 14px; font-weight: 600; }
.otp-row .sm { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.02em; text-transform: uppercase; }
.otp-row .digits {
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.1em; font-size: 16px;
  background: var(--ink); color: var(--accent);
  padding: 6px 12px; border-radius: 8px;
}
.duo-cell.coral .otp-row { background: oklch(0.20 0.04 28); color: var(--paper); }
.duo-cell.coral .otp-row .sm { color: oklch(0.75 0.04 28); }
.duo-cell.coral .otp-row .digits { background: var(--coral); color: oklch(0.20 0.04 28); }

/* REC visual */
.rec-card {
  background: var(--ink); color: var(--paper);
  border-radius: 20px; padding: 24px;
  display: grid; gap: 16px;
}
.duo-cell.coral .rec-card { background: oklch(0.20 0.04 28); }
.rec-time {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 78;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 14px;
}
.rec-time::before {
  content: ""; width: 14px; height: 14px; border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
  animation: blink 1.4s ease infinite;
}
.duo-cell.coral .rec-time::before { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
@keyframes blink { 50% { opacity: 0.3; } }

.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 80px;
}
.waveform span {
  flex: 1; background: var(--accent);
  border-radius: 3px;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 14%; }
  50% { height: 85%; }
}

.rec-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: oklch(0.78 0.012 258);
}
.duo-cell.coral .rec-meta { color: oklch(0.75 0.04 28); }

.rec-list { display: grid; gap: 6px; }
.rec-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  padding: 12px 16px; border-radius: 14px;
  background: var(--cream-2);
}
.duo-cell.coral .rec-item { background: oklch(0.20 0.04 28); color: var(--paper); }
.rec-item .play {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-size: 10px;
}
.duo-cell.coral .rec-item .play { background: var(--coral); color: oklch(0.20 0.04 28); }
.rec-item .nm { font-size: 13px; font-weight: 600; }
.rec-item .sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.duo-cell.coral .rec-item .sub { color: oklch(0.75 0.04 28); }
.rec-item .dur { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.duo-cell.coral .rec-item .dur { color: oklch(0.85 0.03 28); }

/* Cards visual */
.cards-card {
  background: var(--ink); color: var(--paper);
  border-radius: 20px; padding: 24px;
  display: grid; gap: 16px;
}
.cards-issuer {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase; color: oklch(0.78 0.012 258);
}
.cards-ok-badge {
  background: var(--accent); color: var(--ink);
  border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 600;
  text-transform: none;
}
.cards-barcode {
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 16px 10px;
  display: grid; justify-items: center; gap: 8px;
}
.cards-bars { display: flex; align-items: stretch; gap: 2px; height: 46px; width: 100%; }
.cards-bars i { background: var(--ink); flex-shrink: 0; font-style: normal; }
.cards-barcode-val { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.cards-check {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--accent);
  letter-spacing: 0.02em; text-transform: uppercase;
}

.cards-list { display: grid; gap: 6px; }
.cards-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--cream-2);
}
.cards-item .dot { width: 10px; height: 10px; border-radius: 4px; flex-shrink: 0; }
.cards-item .nm { font-size: 13.5px; font-weight: 600; }
.cards-item .sub { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.02em; text-transform: uppercase; }

/* ---------- Privacy ---------- */
.privacy-wrap {
  background: var(--accent); color: var(--ink);
  border-radius: var(--R-lg); overflow: hidden;
  padding: clamp(40px, 5vw, 80px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
  position: relative;
}
.privacy-wrap::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--ink); opacity: 0.06;
}
.privacy-wrap > * { position: relative; }
@media (max-width: 900px) { .privacy-wrap { grid-template-columns: 1fr; } }

.privacy-wrap .eyebrow { color: var(--ink-2); }
.privacy-wrap .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 4px oklch(0.165 0.028 258 / 0.18); }
.privacy-wrap .lead { color: var(--ink-2); max-width: 50ch; }
.privacy-wrap .display-priv {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 78;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.9; letter-spacing: -0.035em; margin: 22px 0 22px;
}
.privacy-wrap .display-priv em {
  font-style: normal;
  background: var(--ink); color: var(--accent);
  padding: 0 0.12em; border-radius: 12px; display: inline-block; line-height: 1;
}

.privacy-pillars { display: grid; gap: 10px; }
.privacy-pillar {
  padding: 18px 20px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--R);
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline;
}
.privacy-pillar .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--accent);
}
.privacy-pillar .v {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 88;
  font-size: 20px; line-height: 1.1; letter-spacing: -0.015em;
}
.privacy-pillar .v small {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: oklch(0.85 0.012 258); line-height: 1.55;
  font-variation-settings: normal;
  letter-spacing: 0;
}
.privacy-cta {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600;
}
.privacy-cta:hover { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  margin: 80px var(--gutter) 24px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--R-lg);
  padding: clamp(40px, 5vw, 72px);
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
}
.footer-shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: oklch(0.85 0.012 258); }
.footer ul a:hover { color: var(--accent); }
.footer-display {
  font-family: var(--display); font-weight: 600;
  font-variation-settings: "wdth" 75;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.86; letter-spacing: -0.04em;
  padding-top: 32px;
  border-top: 1px solid oklch(1 0 0 / 0.10);
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 20px;
}
.footer-display em {
  font-style: normal;
  background: var(--accent); color: var(--ink);
  padding: 0 0.1em; border-radius: 16px; display: inline-block; line-height: 1;
}
.footer-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: uppercase; color: oklch(0.78 0.012 258);
  display: flex; gap: 24px; align-items: center; align-self: end;
  text-align: right;
}
.footer .brand-mark { background: var(--accent); color: var(--ink); border-radius: 10px; }

/* helpers */
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.full-w { width: 100%; }
