/* Signotika landing + legal pages. Builds on base.css tokens. */
:root {
  --ink-2: #374151;
  --hero-glow-1: rgba(67, 56, 202, .14);
  --hero-glow-2: rgba(14, 165, 164, .12);
  --paper: #FFFFFF;
  --paper-line: #E8EBF1;
  --ink-sign: #1E1B4B;
  --ok-soft: #ECFDF5;
  --bad-soft: #FEF2F2;
  --on-brand: #FFFFFF;
  --band: #312E81;
  --teal-ink: #0F766E;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink-2: #D1D5DB;
    --hero-glow-1: rgba(129, 140, 248, .18);
    --hero-glow-2: rgba(45, 212, 191, .10);
    --paper: #F8FAFC;
    --paper-line: #E2E8F0;
    --ink-sign: #312E81;
    --ok-soft: #052E22;
    --bad-soft: #3B0D0D;
    --on-brand: #0B1020;
    --band: #1E1B4B;
    --teal-ink: #5EEAD4;
  }
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 16px; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--surface); padding: .5rem .8rem; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.btn-primary { color: var(--on-brand); }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-lg { padding: .8rem 1.25rem; font-size: 1.02rem; border-radius: 10px; }
.btn-ghost { background: transparent; }
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px -6px rgba(67,56,202,.55); transition: transform .15s ease, filter .15s ease; }
.btn-primary:hover { transform: translateY(-1px); }
.btn:focus-visible { outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-signin { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: .4rem .7rem; border-radius: 8px; }
.nav-links a:hover, .nav-signin:hover { color: var(--ink); background: var(--brand-soft); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .nav nav { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 400px) { .nav-signin { display: none; } }

/* Hero */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(600px 380px at 15% 20%, var(--hero-glow-1), transparent 70%),
              radial-gradient(520px 360px at 85% 40%, var(--hero-glow-2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; margin: 20px 0 18px; }
.hl { background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg, .ok-ic { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Illustration */
.hero-art { position: relative; padding: 18px 34px 40px 10px; }
.doc { background: var(--paper); color: #111827; border-radius: 14px; border: 1px solid var(--paper-line);
  box-shadow: 0 1px 2px rgba(17,24,39,.06), 0 24px 60px -20px rgba(30,27,75,.35); transform: rotate(-1.2deg); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--paper-line); }
.doc-title { font-weight: 650; font-size: .9rem; color: #1F2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill-progress { background: #EEF2FF; color: #3730A3; }
.doc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.ln { display: block; height: 8px; border-radius: 4px; background: #E5E7EB; }
.ln.gap { margin-top: 8px; }
.w90 { width: 90%; } .w85 { width: 85%; } .w80 { width: 80%; } .w75 { width: 75%; } .w70 { width: 70%; } .w60 { width: 60%; } .w40 { width: 40%; }
.sig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.sig-field { position: relative; border-radius: 10px; padding: 6px 8px 8px; min-height: 86px; display: flex; flex-direction: column; justify-content: flex-end; }
.sig-field.done { background: #F0FDFA; border: 1.5px solid #99F6E4; }
.sig-field.active { background: #EEF2FF; border: 1.5px dashed #6366F1; box-shadow: 0 0 0 5px rgba(99,102,241,.12); }
.sig-ink { width: 100%; height: auto; fill: none; stroke: var(--ink-sign); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sig-field.active .sig-ink { stroke: #3730A3; }
.sig-cap { font-size: .7rem; font-weight: 650; color: #4B5563; border-top: 1px solid rgba(17,24,39,.15); padding-top: 4px; }
.draw path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 3.2s ease-in-out .6s infinite; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .draw path { animation: none; stroke-dashoffset: 0; } }

.float-card { position: absolute; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; }
.fc-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.signers { right: 0; top: -6px; min-width: 196px; transform: rotate(1.5deg); }
.signers ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; font-weight: 600; }
.signers li { display: flex; align-items: center; gap: 8px; }
.signers .ok-ic, .signers .now { margin-left: auto; }
.av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; }
.av1 { background: #059669; } .av2 { background: #4F46E5; }
.now { font-size: .68rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: .1rem .45rem; border-radius: 999px; }
.hash { left: -8px; bottom: 6px; display: flex; align-items: center; gap: 10px; }
.hash code { font: 600 .85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.shield { width: 30px; height: 30px; fill: none; stroke: var(--brand-2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head .muted { margin-top: 12px; font-size: 1.05rem; }
.kicker { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 780; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: .95rem; }
.ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 24px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Verify */
.verify-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.verify-copy .muted { margin-top: 12px; font-size: 1.05rem; }
.verify-notes { margin: 20px 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; display: grid; gap: 6px; }
.verify-card { padding: 18px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 200px; padding: 24px;
  border: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.drop-ic { width: 40px; height: 40px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.drop-title { font-weight: 700; font-size: 1.05rem; }
.drop-sub { color: var(--muted); font-size: .9rem; }
.link-like { color: var(--brand); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.verify-result:empty { display: none; }
.verify-result { margin-top: 14px; border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.verify-result.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.verify-result.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.vr-head { display: flex; align-items: flex-start; gap: 10px; font-weight: 750; font-size: 1.02rem; }
.vr-head svg { width: 22px; height: 22px; flex: none; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ok .vr-head svg { stroke: var(--ok); } .bad .vr-head svg { stroke: var(--danger); }
.vr-meta { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.vr-meta dt { color: var(--muted); }
.vr-meta dd { margin: 0; font-weight: 600; }
.vr-signers { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.vr-signers small { display: block; color: var(--muted); font-weight: 500; }
.vr-hash { font: 500 .78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); margin-top: 10px; }
.vr-sub { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Teams */
.teams { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.teams > div { max-width: 640px; }
.teams .muted { margin-top: 12px; font-size: 1.05rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* CTA band */
.cta-band { padding: 0 0 88px; }
.cta-inner { text-align: center; color: #fff; padding: 56px 24px; border-radius: 20px; max-width: calc(var(--wrap) - 40px);
  background: radial-gradient(500px 220px at 90% 0%, rgba(45,212,191,.35), transparent 70%), linear-gradient(135deg, #4338CA, var(--band)); }
.cta-inner p { opacity: .9; margin: 10px 0 24px; font-size: 1.08rem; }
.btn-invert { background: #fff; color: #312E81; border-color: #fff; }
.btn-invert:hover { border-color: #fff; filter: brightness(.96); }
.btn-invert:focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.foot-brand .muted { font-size: .9rem; margin-top: 4px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.copy { margin-left: auto; font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .verify-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 56px; }
  .hero-art { max-width: 560px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .teams { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero-art { padding: 34px 6px 44px 0; }
  .signers { top: -4px; right: -4px; min-width: 0; }
  .sig-row { gap: 10px; }
  .copy { margin-left: 0; }
  .cta-band { padding-bottom: 64px; }
  .cta-inner { padding: 44px 20px; }
}

/* Legal pages */
.legal { padding: 48px 0 80px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.template-note { margin: 20px 0 8px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); color: var(--ink); }
.legal-nav { margin-left: auto; display: flex; gap: 4px; }
