/* VelaFoldAuth — shared site styles */

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --ink: #0b1b33;
  --ink-2: #33425a;
  --muted: #64728a;
  --line: #e4e9f1;
  --line-strong: #d3dbe7;
  --brand: #2563c9;
  --brand-deep: #154484;
  --brand-soft: #eaf1fc;
  --brand-glow: rgba(54, 118, 220, .16);
  --night: #07142a;
  --night-2: #0d1f3d;
  --ok: #12a26b;
  --ok-soft: #e5f7ef;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .05);
  --shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 8px 24px -8px rgba(11, 27, 51, .10);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, .04), 0 24px 60px -16px rgba(21, 68, 132, .28);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .86em; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: .9rem;
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 251, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .86); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 148px; height: auto; }
.brand-tag {
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .02em;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(11, 27, 51, .05); }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(11, 27, 51, .06); }

.header-actions { display: flex; align-items: center; gap: 10px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .94rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .86rem; border-radius: 9px; }

.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 16px -6px rgba(11, 27, 51, .5);
}
.btn-primary:hover { background: #142a4d; transform: translateY(-1px); }

.btn-brand {
  background: linear-gradient(180deg, #2f6fd6, var(--brand)); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 20px -8px rgba(37, 99, 201, .7);
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 12px 26px -10px rgba(37, 99, 201, .8); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #b9c4d6; transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .24); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

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

.hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(11, 27, 51, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 27, 51, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  top: -260px; right: -120px; width: 820px; height: 640px;
  background:
    radial-gradient(closest-side, rgba(87, 138, 207, .30), transparent 70%),
    radial-gradient(closest-side at 30% 60%, rgba(37, 99, 201, .18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px; margin: 0 0 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-sm);
  color: var(--ink-2); font-size: .82rem; font-weight: 500;
}
.eyebrow b {
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 750;
}
.grad {
  background: linear-gradient(110deg, var(--brand-deep) 0%, #2d6bd4 45%, #6aa3ea 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero .lead { max-width: 540px; margin: 0 0 32px; color: var(--ink-2); font-size: 1.125rem; line-height: 1.65; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 36px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .86rem; font-weight: 500;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* Flow card */

.flow-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.flow-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 138, 207, .7), transparent);
}

.flow-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ec; }
.flow-url {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 7px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-family: var(--mono); font-size: .76rem;
}
.flow-url svg { width: 12px; height: 12px; color: var(--ok); }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--ok-soft); color: #0b7a50; font-size: .72rem; font-weight: 600;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(18, 162, 107, .18); }

.flow-body { padding: 22px 22px 8px; }
.flow-label { margin: 0 0 14px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.flow { position: relative; margin: 0; padding: 0; list-style: none; }
.flow::before {
  content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(180deg, #c7d6ee, #9fbbe6 50%, #c7d6ee);
  border-radius: 2px;
}
.flow li {
  position: relative;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 0;
}
.flow-icon {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; border: 1px solid var(--line); background: #fff;
  color: var(--brand-deep); box-shadow: var(--shadow-sm);
}
.flow-icon svg { width: 18px; height: 18px; }
.flow li.is-core .flow-icon {
  border-color: transparent; color: #fff;
  background: linear-gradient(145deg, var(--brand-deep), #3a7ad8);
  box-shadow: 0 6px 16px -6px rgba(21, 68, 132, .7);
}
.flow strong { display: block; font-size: .94rem; font-weight: 600; line-height: 1.3; }
.flow small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.flow small code { color: var(--ink-2); font-size: .76rem; }
.flow-tag {
  padding: 3px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
}

.code {
  margin: 14px 0 0; padding: 16px 18px;
  background: var(--night); color: #c9d6ea;
  font-family: var(--mono); font-size: .78rem; line-height: 1.7;
  overflow-x: auto; white-space: pre;
}
.code .k { color: #7fb0ff; }
.code .s { color: #8fe0c0; }
.code .c { color: #5d7193; }
.code .n { color: #f5c68a; }

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

.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { margin: 0 0 12px; color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.028em; font-weight: 720; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.06rem; }

/* Services */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }

.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 13px; background: var(--brand-soft); color: var(--brand-deep);
  border: 1px solid #d7e3f6;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -.015em; }
.card p { margin: 0 0 20px; color: var(--ink-2); font-size: .95rem; }

.scopes { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 16px 0 0; list-style: none; border-top: 1px dashed var(--line-strong); }
.scopes li {
  padding: 4px 8px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-family: var(--mono); font-size: .72rem;
}

/* Steps (dark) */

.section-dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(58, 122, 216, .28), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(87, 138, 207, .18), transparent 70%);
}
.section-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.section-dark .kicker { color: #8db7f2; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative; padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 9px; border: 1px solid rgba(141, 183, 242, .35); background: rgba(141, 183, 242, .1);
  color: #b9d3fa; font-family: var(--mono); font-size: .8rem; font-weight: 600;
}
.step h3 { margin: 0 0 8px; font-size: 1.04rem; letter-spacing: -.01em; }
.step p { margin: 0; color: rgba(255, 255, 255, .66); font-size: .9rem; line-height: 1.55; }
.step code { color: #cfe0fb; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.fact {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.fact b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.fact span { color: rgba(255, 255, 255, .66); font-size: .88rem; line-height: 1.4; }

/* Data use */

.data-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.data-grid .section-head { margin: 0; position: sticky; top: 100px; }
.data-note {
  display: flex; gap: 12px; margin-top: 28px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--brand-soft); border: 1px solid #d7e3f6;
  color: var(--brand-deep); font-size: .9rem;
}
.data-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.data-note a { font-weight: 600; }

.data-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.data-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 24px; }
.data-list li + li { border-top: 1px solid var(--line); }
.data-list .ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--brand-deep);
}
.data-list .ico svg { width: 20px; height: 20px; }
.data-list h3 { margin: 2px 0 4px; font-size: 1rem; letter-spacing: -.01em; }
.data-list p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.data-list li.is-highlight { background: linear-gradient(90deg, var(--ok-soft), transparent 80%); }
.data-list li.is-highlight .ico { background: #fff; border-color: #bfe8d6; color: var(--ok); }

/* CTA */

.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 52px; border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #1f5cbc 55%, #3b7ddb 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 100% at 100% 50%, #000, transparent 75%);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; line-height: 1.2; }
.cta p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

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

.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 112px; height: auto; opacity: .9; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.home .site-footer { border-top: 0; }

/* ---------- Legal pages ---------- */

.legal-hero { position: relative; padding: 64px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11, 27, 51, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 27, 51, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 75%);
}
.legal-hero::after {
  content: ""; position: absolute; z-index: -1; top: -200px; right: -100px; width: 600px; height: 420px;
  background: radial-gradient(closest-side, rgba(87, 138, 207, .26), transparent 70%);
}
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.legal-hero h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 740; }
.legal-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; color: var(--muted); font-size: .9rem; }
.legal-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-hero .meta svg { width: 15px; height: 15px; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 96px; }

.toc { position: sticky; top: 96px; align-self: start; }
.toc p { margin: 0 0 10px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-strong); }
.toc a {
  display: block; margin-left: -1px; padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.45;
  transition: color .15s ease, border-color .15s ease;
}
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-active { color: var(--brand-deep); border-left-color: var(--brand); font-weight: 600; }

.prose { max-width: 720px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.prose section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.prose section:first-child { padding-top: 0; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; color: var(--ink); font-size: 1.28rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 680; }
.prose h2 .num { color: var(--brand); font-family: var(--mono); font-size: .86rem; font-weight: 600; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 14px; padding: 0; list-style: none; }
.prose ul li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #9fbbe6; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(37, 99, 201, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose code {
  padding: 2px 6px; border-radius: 5px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); overflow-wrap: anywhere;
}

.legal-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.legal-contact strong { display: block; color: var(--ink); font-size: 1.02rem; }
.legal-contact span { color: var(--muted); font-size: .92rem; }

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

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  .reveal-4 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .flow li.is-core .flow-icon::after {
    content: ""; position: absolute; inset: -4px; border-radius: 14px;
    border: 2px solid rgba(58, 122, 216, .35);
    animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse { from { opacity: 1; transform: scale(.92); } to { opacity: 0; transform: scale(1.25); } }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lead { max-width: 640px; }
  .flow-card { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: 1fr; gap: 32px; }
  .data-grid .section-head { position: static; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 60px; }
  .brand img { width: 128px; }
  .brand-tag { display: none; }
  .hero { padding: 44px 0 64px; }
  .hero .lead { font-size: 1.04rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { gap: 8px 16px; }
  .flow-body { padding: 18px 16px 6px; }
  .flow li { grid-template-columns: 40px 1fr; }
  .flow-tag { display: none; }
  .flow-url { display: none; }
  .eyebrow { border-radius: 12px; font-size: .78rem; line-height: 1.4; }
  .code { white-space: pre-wrap; word-break: break-all; font-size: .74rem; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .data-list li { padding: 18px; gap: 14px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .legal-hero { padding: 44px 0 32px; }
  .legal-layout { padding: 40px 0 72px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
