/* ============================================================
   getto — hardware wallet
   Shared stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FDFDFD;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-soft: #374151;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-soft: #EFF6FF;
  --success: #22C55E;
  --success-dark: #16A34A;
  --success-soft: #F0FDF4;
  --warning: #FACC15;
  --warning-soft: #FEFCE8;
  --border: #E5E7EB;
  --navy: #0F172A;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 10px 24px -6px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 50px -12px rgba(15, 23, 42, .22);
  --shadow-glow: 0 0 0 4px rgba(59, 130, 246, .12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; color: var(--text-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(59,130,246,.7); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(59,130,246,.6); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 8px 20px -8px rgba(34,197,94,.7); }
.btn-success:hover { background: var(--success-dark); color: #fff; transform: translateY(-2px); }
.btn-warning { background: var(--warning); color: var(--text); box-shadow: 0 8px 20px -10px rgba(250,204,21,.9); }
.btn-warning:hover { filter: brightness(.97); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,253,253,.78); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--text); letter-spacing: -.03em; }
.brand:hover { color: var(--text); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links .mob-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero-aurora { position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.hero-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 16s ease-in-out infinite; }
.hero-aurora .a1 { width: 420px; height: 420px; left: 4%; top: 0; background: radial-gradient(circle, rgba(59,130,246,.45), transparent 65%); }
.hero-aurora .a2 { width: 360px; height: 360px; right: 8%; top: 30px; background: radial-gradient(circle, rgba(34,197,94,.4), transparent 65%); animation-delay: -5s; }
.hero-aurora .a3 { width: 300px; height: 300px; left: 40%; top: 120px; background: radial-gradient(circle, rgba(250,204,21,.35), transparent 65%); animation-delay: -9s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-22px) scale(1.08); } 66% { transform: translate(-24px,18px) scale(.96); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid #DBEAFE; padding: 7px 13px; border-radius: var(--radius-pill); }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; margin: 22px 0 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--success)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 19px; color: var(--text-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin: 32px 0 26px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-trust b { color: var(--text); font-family: var(--font-display); }

/* ---------- Signature: hardware device ---------- */
.device-stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.device-float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }

.orbit { position: absolute; inset: 0; z-index: 0; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1.5px dashed var(--border); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-ring.r1 { width: 360px; height: 360px; animation: spin 26s linear infinite; }
.orbit-ring.r2 { width: 470px; height: 470px; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.proto { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text); z-index: 3; animation: bob 5s ease-in-out infinite; }
.proto small { font-size: 9px; }
.proto.p1 { left: 6%; top: 16%; color: var(--primary); }
.proto.p2 { right: 2%; top: 30%; animation-delay: -1.5s; color: var(--warning); }
.proto.p3 { right: 8%; bottom: 12%; animation-delay: -2.5s; color: var(--success); }
.proto.p4 { left: 2%; bottom: 22%; animation-delay: -3.5s; color: var(--primary-dark); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.connect-line { position: absolute; left: 50%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary)); transform-origin: left center; z-index: 1; opacity: .5; }

.device { position: relative; z-index: 4; width: 188px; height: 300px; border-radius: 34px; background: linear-gradient(160deg, #1E293B, #0F172A 70%); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08); padding: 16px; display: flex; flex-direction: column; }
.device::before { content: ""; position: absolute; inset: 6px; border-radius: 28px; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.device-screen { flex: 1; border-radius: 22px; background: radial-gradient(120% 120% at 50% 0%, #1f3a5f, #0b1220); position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 30px rgba(0,0,0,.6); }
.device-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }

.lock { width: 64px; height: 64px; }
.lock-shackle { transform-origin: 32px 30px; animation: lockit 4s var(--ease) infinite; }
@keyframes lockit { 0%, 18% { transform: translateY(-7px); } 30%, 100% { transform: translateY(0); } }
.lock-glow { animation: glowpulse 4s ease-in-out infinite; }
@keyframes glowpulse { 0%, 30% { opacity: .25; } 45% { opacity: 1; } 70%, 100% { opacity: .25; } }

.device-screen .key-stream { position: absolute; top: 14px; left: 0; right: 0; display: grid; gap: 5px; padding: 0 14px; opacity: .8; }
.key-stream span { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), transparent); animation: feed 4s linear infinite; }
.key-stream span:nth-child(2) { animation-delay: .4s; width: 80%; }
.key-stream span:nth-child(3) { animation-delay: .8s; width: 60%; }
@keyframes feed { 0% { opacity: 0; transform: translateX(-10px); } 20% { opacity: .9; } 60%, 100% { opacity: 0; transform: translateX(8px); } }

.device-status { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: #93c5fd; }
.device-btns { display: flex; justify-content: space-between; margin-top: 10px; }
.device-btns i { width: 38px; height: 9px; border-radius: 6px; background: rgba(255,255,255,.14); }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cdd5e0; }
.card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.ic.blue { background: var(--primary-soft); color: var(--primary); }
.ic.green { background: var(--success-soft); color: var(--success-dark); }
.ic.yellow { background: var(--warning-soft); color: #B45309; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; }

/* ---------- Protocol strip ---------- */
.proto-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.proto-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 11px 20px; font-family: var(--font-display); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s; }
.proto-chip:hover { transform: translateY(-3px); border-color: var(--primary); }
.proto-chip .swatch { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: #fff; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step .num { font-family: var(--font-mono); font-size: 13px; color: #fff; background: var(--primary); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; margin-bottom: 18px; }
.step:nth-child(2) .num { background: var(--success); }
.step:nth-child(3) .num { background: var(--warning); color: var(--text); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ---------- Stats band ---------- */
.band { background: linear-gradient(135deg, #0F172A, #1E293B); border-radius: var(--radius-lg); padding: 46px 40px; color: #fff; box-shadow: var(--shadow-lg); }
.band .grid-4 { gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(30px,4vw,44px); font-weight: 700; background: linear-gradient(120deg,#60A5FA,#4ADE80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #94A3B8; font-size: 14px; }

/* ---------- Security checklist ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: var(--text-soft); }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--success-soft); color: var(--success-dark); display: grid; place-items: center; margin-top: 1px; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; box-shadow: var(--shadow-md); }
.cta-banner h2 { font-size: clamp(26px,3.6vw,38px); margin-bottom: 14px; }
.cta-banner p { max-width: 520px; margin: 0 auto 28px; font-size: 18px; color: var(--muted); }
.cta-banner .glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 0; }
.cta-banner .glow.g1 { background: var(--primary); left: -60px; top: -80px; }
.cta-banner .glow.g2 { background: var(--success); right: -60px; bottom: -90px; }
.cta-banner > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 60px 0 32px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { font-size: 14.5px; color: var(--muted); margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-soft); font-size: 15px; }
.footer-col a:hover { color: var(--primary); }
.contact-item { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-soft); margin-bottom: 12px; align-items: flex-start; }
.contact-item svg { flex: none; color: var(--primary); margin-top: 2px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer-bottom .disclaimer { max-width: 760px; line-height: 1.6; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  max-width: 920px; margin: 0 auto;
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie p { font-size: 14.5px; color: var(--text-soft); }
.cookie p b { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside { position: relative; background: linear-gradient(150deg, #0F172A, #1E293B); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-aside .a-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(80px); opacity: .4; }
.auth-aside .a-glow.x1 { background: var(--primary); top: -80px; left: -60px; }
.auth-aside .a-glow.x2 { background: var(--success); bottom: -100px; right: -60px; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: 34px; margin-bottom: 16px; }
.auth-aside p { color: #CBD5E1; max-width: 380px; }
.auth-quote { border-left: 3px solid var(--primary); padding-left: 18px; font-size: 15px; color: #E2E8F0; }
.auth-aside .check-list li { color: #E2E8F0; }
.auth-aside .check-list .tick { background: rgba(34,197,94,.18); color: #4ADE80; }

.auth-panel { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-glow); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field.error input { border-color: #ef4444; }
.field .err-msg { display: none; font-size: 12.5px; color: #ef4444; margin-top: 6px; }
.field.error .err-msg { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); margin-bottom: 22px; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Thank you ---------- */
.ty { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 60px 24px; text-align: center; }
.ty-inner { max-width: 560px; }
.ty-badge { width: 110px; height: 110px; margin: 0 auto 28px; border-radius: 50%; background: var(--success-soft); display: grid; place-items: center; }
.ty-check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s var(--ease) .25s forwards; }
.ty-ring { transform-origin: center; animation: ringpop .6s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ringpop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ty h1 { font-size: clamp(32px,5vw,46px); margin-bottom: 16px; }
.ty p { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.ty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; opacity: .9; z-index: 5; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: 0; } }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--border); }
.doc-hero .kicker { color: var(--primary); }
.doc-hero h1 { font-size: clamp(32px,5vw,46px); margin: 12px 0 12px; }
.doc-hero .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 72px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h4 { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--text-soft); border-left: 2px solid transparent; }
.toc a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.doc-body { max-width: 720px; }
.doc-body h2 { font-size: 24px; margin: 38px 0 14px; scroll-margin-top: 96px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; margin: 24px 0 10px; }
.doc-body p { margin-bottom: 14px; font-size: 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-soft); }
.doc-body li { margin-bottom: 8px; }
.doc-body a { font-weight: 500; }
.callout { background: var(--warning-soft); border: 1px solid #FDE68A; border-left: 4px solid var(--warning); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: 15px; color: #854D0E; }
.callout.info { background: var(--primary-soft); border-color: #BFDBFE; border-left-color: var(--primary); color: #1E40AF; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.faq-q .chev { flex: none; transition: transform .3s var(--ease); color: var(--primary); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--text-soft); font-size: 15.5px; }
.faq-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.faq-cat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-soft); transition: .2s; }
.faq-cat.active, .faq-cat:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .device-stage { order: -1; min-height: 380px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-cta .nav-toggle { display: flex; }
  .nav-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 4px; background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
  }
  .nav-open .nav-links a { width: 100%; padding: 10px 0; }
  .nav-open .nav-links .mob-cta { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
  .nav-open .nav-links .mob-cta .btn { display: inline-flex; flex: 1; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band { padding: 34px 22px; }
  .cta-banner { padding: 40px 24px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .proto.p1, .proto.p4 { left: 0; }
  .proto.p2, .proto.p3 { right: 0; }
  .orbit-ring.r2 { display: none; }
}

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