/* =========================================================
   PassSnap: fast, simple, private.
   System fonts only (zero font downloads). Mobile-first.
   ========================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-50: #eff5ff;
  --ok: #059669;
  --ok-50: #ecfdf5;
  --eye: #38bdf8;
  --guide: #22c55e;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .04), 0 24px 48px -12px rgba(11, 18, 32, .18);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
code, kbd { font-family: var(--mono); font-size: .88em; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; }

.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; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 8px; }

.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { height: 60px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.header-nav { display: none; gap: 22px; margin-left: 8px; font-size: .92rem; }
.header-nav a { text-decoration: none; color: var(--ink-2); }
.header-nav a:hover { color: var(--ink); }
.header-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--ok);
  background: var(--ok-50); border: 1px solid #c7f0dd; padding: 5px 10px; border-radius: 999px;
}
.header-pill .i { width: 14px; height: 14px; }
@media (min-width: 760px) { .header-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 28px; background: radial-gradient(1200px 400px at 50% -120px, #eef4ff 0%, rgba(238, 244, 255, 0) 70%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .i { width: 15px; height: 15px; color: var(--ok); }
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 14px;
}
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-2); max-width: 620px; margin: 0 auto; }

/* Document tabs */
.doc-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 28px auto 16px; padding: 2px; justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}
.doc-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .doc-tabs { justify-content: center; } }
.doc-tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.doc-tab:hover { border-color: #cbd5e1; color: var(--ink); }
.doc-tab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-tab-region { font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 5px; background: var(--soft); color: var(--muted); }
.doc-tab[aria-current="page"] .doc-tab-region { background: rgba(255, 255, 255, .16); color: #e2e8f0; }

/* ---------- App card ---------- */
.app {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; max-width: 980px; margin: 0 auto;
}
@media (min-width: 720px) { .app { padding: 28px; } }

.stepper { list-style: none; padding: 0; display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); margin-right: 6px; }
.stepper span {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: .78rem; border: 1px solid var(--line); background: #fff;
}
.stepper .is-current { color: var(--ink); }
.stepper .is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper .is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Upload */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 240px; padding: 28px 20px; text-align: center; cursor: pointer;
  border: 2px dashed #cbd5e1; border-radius: var(--radius); background: var(--soft);
  transition: border-color .15s, background .15s, transform .2s var(--ease);
}
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-50); }
.drop.is-over { transform: scale(1.01); }
.drop-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px;
  background: #fff; color: var(--brand); box-shadow: var(--shadow);
}
.drop-icon .i { width: 26px; height: 26px; }
.drop-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.drop-sub { font-size: .92rem; color: var(--muted); }
.drop-sub u { color: var(--brand); text-underline-offset: 3px; }

.upload-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 14px; }
.kbd-hint { font-size: .85rem; display: none; }
@media (hover: hover) and (pointer: fine) {
  .kbd-hint { display: inline; }
  .camera-btn { display: none; }
}

.spec-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.spec-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-2); padding: 6px 10px; background: var(--soft); border-radius: 999px; }
.spec-chips .i { width: 15px; height: 15px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  font-size: .94rem; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 50px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #cbd5e1; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.icon-btn[aria-pressed="false"] { color: var(--muted); opacity: .6; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Editor ---------- */
.edit-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .edit-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; } }

.stage { width: 100%; display: flex; justify-content: center; }
.frame {
  position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #0f172a; border-radius: 6px; cursor: grab;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .08), 0 18px 40px -16px rgba(11, 18, 32, .45);
}
.frame.is-dragging { cursor: grabbing; }
.frame:focus-visible { outline-offset: 4px; }
#photo {
  position: absolute; left: 50%; top: 50%; max-width: none;
  transform-origin: center center; pointer-events: none; will-change: transform;
}
.guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .2s; }
.guide.is-hidden { opacity: 0; }
.g-shade { fill: rgba(11, 18, 32, .42); }
.g-oval { fill: none; stroke: var(--guide); stroke-width: 2px; stroke-dasharray: 6 5; }
.g-band { fill: var(--guide); opacity: .9; }
.g-chin { stroke: var(--guide); stroke-width: 2.5px; stroke-linecap: round; }
.g-eyeband { fill: rgba(56, 189, 248, .14); }
.g-eye { stroke: var(--eye); stroke-width: 1px; stroke-dasharray: 3 4; }
.g-center { stroke: rgba(255, 255, 255, .35); stroke-width: 1px; stroke-dasharray: 2 5; }
.g-label { fill: #fff; font-size: 3.4px; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: rgba(11, 18, 32, .65); stroke-width: .8px; }
.g-label-eye { fill: #bae6fd; }

.toolbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
  margin-top: 16px; padding: 8px; background: var(--soft); border-radius: 14px;
}
.tool-group { display: flex; align-items: center; gap: 4px; }
.tool-label { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 4px 0 8px; }
.tool-val { min-width: 44px; font-size: .8rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; padding-right: 6px; }
input[type="range"] { width: 120px; accent-color: var(--ink); cursor: pointer; }
@media (min-width: 560px) { input[type="range"] { width: 140px; } }

.edit-side { display: flex; flex-direction: column; gap: 12px; }
.side-title { font-size: 1.1rem; letter-spacing: -.01em; }
.side-sub { font-size: .9rem; display: flex; justify-content: space-between; margin-top: 6px; }
.legend { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 10px; }
.key { width: 22px; height: 10px; flex: none; border-radius: 3px; }
.key-band { width: 6px; height: 18px; background: var(--guide); margin: 0 8px; }
.key-eye { background: rgba(56, 189, 248, .25); border-top: 1px dashed var(--eye); border-bottom: 1px dashed var(--eye); }
.key-chin { height: 3px; background: var(--guide); border-radius: 2px; }
.checks { list-style: none; padding: 0; display: grid; gap: 2px; margin-bottom: 6px; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.checks label:hover { background: var(--soft); }
.checks input { width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.checks input:checked + * , .checks label:has(input:checked) { color: var(--ink); }

/* ---------- Result ---------- */
.result-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .result-grid { grid-template-columns: 1fr 1.35fr; } }
.result-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.result-media {
  flex: 1; display: grid; place-items: center; padding: 22px; min-height: 220px;
  background:
    linear-gradient(45deg, #f3f4f6 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #f3f4f6 75%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #f3f4f6 75%) 8px 8px / 16px 16px,
    linear-gradient(45deg, #f3f4f6 25%, transparent 25%) 8px 8px / 16px 16px,
    #fafafa;
}
.result-media img { box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 24px -8px rgba(0, 0, 0, .25); background: #fff; }
.result-single img { width: 180px; height: auto; }
.result-sheet img { width: 100%; max-width: 420px; height: auto; }
.result-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.result-card figcaption > div { display: grid; min-width: 0; }
.result-card figcaption strong { font-size: .95rem; }
.result-card figcaption .muted { font-size: .82rem; font-variant-numeric: tabular-nums; }
.result-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.print-tip { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); max-width: 620px; }
.print-tip .i { margin-top: 2px; color: var(--muted); }
.result-actions { display: flex; gap: 4px; }

/* Live privacy strip */
.privacy-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  margin: 16px auto 0; font-size: .84rem; color: var(--muted); text-align: center;
}
.privacy-strip .i { width: 16px; height: 16px; color: var(--ok); }
.privacy-strip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.privacy-strip a { color: var(--ink-2); text-underline-offset: 3px; margin-left: 4px; }
.privacy-strip .dot { opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-tight { padding-top: 24px; }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -.03em; line-height: 1.15; text-align: center; margin-bottom: 12px; }
.section-title.left { text-align: left; }
.section-lead { color: var(--ink-2); font-size: 1.05rem; max-width: 640px; margin: 0 auto 32px; text-align: center; }

.steps { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* Privacy (dark) */
.section-dark { background: #0b1220; color: #e2e8f0; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: #94a3b8; }
.eyebrow-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #cbd5e1; display: flex; width: max-content; margin: 0 auto 18px; }
.eyebrow-dark .i { color: #4ade80; }
.privacy-grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .privacy-grid { grid-template-columns: repeat(4, 1fr); } }
.privacy-card { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.privacy-card .i { width: 24px; height: 24px; color: #7dd3fc; margin-bottom: 14px; }
.privacy-card h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.privacy-card p { color: #94a3b8; font-size: .92rem; }
.privacy-card code { color: #e2e8f0; background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 5px; }
.live-panel { margin-top: 20px; border-radius: var(--radius); border: 1px solid rgba(74, 222, 128, .25); background: rgba(74, 222, 128, .05); padding: 18px 20px; }
.live-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 650; color: #bbf7d0; margin-bottom: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .live-stats { grid-template-columns: repeat(4, 1fr); } }
.live-stats dt { font-size: .8rem; color: #94a3b8; }
.live-stats dd { font-size: 1.6rem; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }

/* Requirements */
.req-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .req-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
.req-visual { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); }
.spec-svg { width: 100%; height: auto; max-width: 300px; margin: 0 auto; }
.sv-photo { fill: #fff; stroke: #cbd5e1; stroke-width: .8; }
.sv-body { fill: #e2e8f0; }
.sv-head { fill: #cbd5e1; }
.sv-dim { stroke: var(--brand); stroke-width: .8; }
.sv-text { fill: var(--muted); font-size: 6px; font-family: var(--font); }
.sv-strong { fill: var(--ink); font-weight: 700; }
.req-list { display: grid; margin: 18px 0 14px; border-top: 1px solid var(--line); }
.req-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.req-list dt { font-weight: 650; }
.req-list dd { color: var(--ink-2); }

/* Support */
.support-icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center; background: #fff1f2; color: #e11d48; }
.support-icon .i { width: 24px; height: 24px; }
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
@media (min-width: 560px) { .amounts { grid-template-columns: repeat(4, 1fr); } }
.amount {
  display: grid; gap: 2px; padding: 14px 10px; border-radius: 14px; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid var(--line); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.amount:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.amount strong { font-size: 1.25rem; letter-spacing: -.02em; }
.amount span { font-size: .78rem; color: var(--muted); }
.amount.is-featured { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.support-uses { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 22px; font-size: .88rem; color: var(--ink-2); }
.support-uses li { display: inline-flex; align-items: center; gap: 6px; }
.support-uses .i { width: 16px; height: 16px; color: var(--ok); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 28px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 650; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* Doc grid */
.doc-grid { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-card {
  position: relative; display: grid; gap: 4px; padding: 18px 44px 18px 18px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.doc-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.doc-card .muted { font-size: .86rem; }
.doc-card-region { justify-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: var(--soft); color: var(--muted); }
.doc-card-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .15s var(--ease); }
.doc-card:hover .doc-card-arrow { transform: translate(3px, -50%); color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9rem; background: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); margin-top: 8px; max-width: 340px; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; color: var(--muted); font-size: .8rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 12px; }
@media (min-width: 560px) { .modal { place-items: center; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 32, .5); backdrop-filter: blur(2px); animation: fade .2s var(--ease); }
.modal-card {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 22px;
  padding: 28px 22px 18px; text-align: center; box-shadow: var(--shadow-lg); animation: rise .28s var(--ease);
}
.modal-card h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 6px; }
.modal-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 18px; }
.modal-x { position: absolute; top: 10px; right: 10px; }
.amounts-compact { grid-template-columns: repeat(2, 1fr); margin-bottom: 10px; }
@media (min-width: 420px) { .amounts-compact { grid-template-columns: repeat(4, 1fr); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .92rem; box-shadow: var(--shadow-lg); animation: rise .25s var(--ease);
}

/* Busy spinner inside buttons */
.btn.is-busy .i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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