/* Landing and legal pages. Colours come from tokens.css. */
.ic { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: var(--sai-t); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color 0.25s ease, background-color 0.25s ease; }
.head-space { height: calc(64px + var(--sai-t)); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; transition: min-height 0.25s var(--ease); }
.site-head.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 82%, transparent); }
.site-head.scrolled .wrap { min-height: 52px; }
.site-head .wordmark { transition: transform 0.25s var(--ease); transform-origin: left center; }
.site-head.scrolled .wordmark { transform: scale(0.92); }
.site-head nav { display: flex; align-items: center; gap: 0.9rem; }
.langs { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; color: var(--ink-3); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.site-head .btn-s { min-height: 44px; }

.hero { padding: 1.75rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; align-items: center; }
.hero-text, .hero-art, .beta > * { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 10.5vw, 4.75rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0.7rem 0 1.1rem; }
.hero .mark { padding: 0 0.1em; }
.lead { font-size: clamp(1.125rem, 3.8vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 36em; margin: 0 0 0.9rem; }
.aud { color: var(--ink-3); font-size: var(--fs-s); margin: 0 0 1.5rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.cta .btn { flex: 1 1 13rem; min-height: 54px; }
.hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
.illo { display: block; width: 100%; height: auto; overflow: visible; }

/* The scan idea, once: slide, QR badge, a dotted path to the phone, the phone's button pulses */
.illo-anim .qr-badge { animation: ill-pop 0.5s 0.35s var(--spring) both; transform-box: fill-box; transform-origin: center; }
.illo-anim .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ill-draw 0.9s 0.85s var(--ease) forwards; }
.illo-anim .phone { animation: ill-rise 0.6s 1.1s var(--ease) both; }
.illo-anim .pulse-btn { animation: ill-pulse 0.7s 1.9s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes ill-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes ill-draw { to { stroke-dashoffset: 0; } }
@keyframes ill-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ill-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
.hero-text > * { animation: fadein 0.6s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.06s; }
.hero-text > :nth-child(3) { animation-delay: 0.12s; }
.hero-text > :nth-child(4) { animation-delay: 0.18s; }
.hero-text > :nth-child(5) { animation-delay: 0.24s; }

/* Sections ease in on scroll (site.js adds .rv only below the fold) */
.steps li, .types li { transition: transform 0.22s var(--ease), border-color 0.18s; }
.types li:active { transform: scale(0.985); }

.sec { padding: 3.25rem 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 0.5rem 0 1.5rem; max-width: 22em; }
.sec .kicker { margin: 0; }

.steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: s; }
.steps li { border-top: 2.5px solid var(--ink); padding-top: 1rem; }
.num { display: inline-block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, transparent 58%, var(--mark) 58%); padding: 0 0.15em; margin-left: -0.15em; }
.steps h3 { margin: 0.7rem 0 0.4rem; font-size: 1.3rem; }
.steps p { color: var(--ink-2); margin: 0; }

.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.types li { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.type-ic { width: 1.75rem; height: 1.75rem; margin-top: 0.15rem; color: var(--ink); }
.types h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.types p { margin: 0; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.5; }

.priv { display: flex; gap: 1.1rem; align-items: flex-start; max-width: 46rem; }
.priv-ic { width: 2.6rem; height: 2.6rem; padding: 0.6rem; border: 1.5px solid var(--ink); border-radius: 50%; margin-top: 0.3rem; }
.priv h2 { margin-bottom: 0.8rem; }
.priv p { color: var(--ink-2); }

.beta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.beta p { color: var(--ink-2); }
.demo-line { font-weight: 600; }
.demo-line a { color: var(--ink); }
.wl { margin: 0; }
.wl .ok { animation: fadein 0.35s var(--ease) both; display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.8rem 0 0; padding: 0.8rem 1rem; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-s); font-weight: 600; font-size: var(--fs-s); }
.wl-fields { transition: opacity 0.2s ease, transform 0.2s ease; }
.wl .ok .ck path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.4s 0.15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wl .ok[hidden], .wl .error[hidden] { display: none !important; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.prem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border: 2px dashed var(--line-2); border-radius: var(--radius-l); padding: 1.4rem 1.5rem; }
.prem h3 { margin: 0.3rem 0 0.4rem; font-size: 1.25rem; }
.prem p { margin: 0; color: var(--ink-2); max-width: 36rem; }

.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 calc(2.5rem + var(--sai-b)); color: var(--ink-3); font-size: var(--fs-s); }
.site-foot p { margin: 0 0 0.6rem; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: var(--ink-2); display: inline-flex; min-height: 48px; align-items: center; }

.legal { padding: 1rem 0 4rem; }
.prose { max-width: 40rem; }
.prose .back { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap); margin: 0 0 0.75rem -0.25rem; padding: 0 0.25rem; color: var(--ink-2); font-weight: 650; font-size: var(--fs-s); text-decoration: none; border-radius: var(--radius-s); transition: transform 0.22s var(--ease), opacity 0.18s; }
.prose .back:active { transform: scale(0.97); opacity: 0.6; }
.prose h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 0.7rem; overflow-wrap: anywhere; hyphens: auto; }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.prose p, .prose address { font-size: 1.0625rem; line-height: 1.7; }
.prose address { font-style: normal; margin: 0 0 1rem; }
.prose .lead { font-size: 1.1875rem; line-height: 1.55; }
.prose .updated { color: var(--ink-3); font-size: var(--fs-s); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose a { overflow-wrap: anywhere; }

@media (min-width: 820px) {
  .head-space { height: calc(72px + var(--sai-t)); }
  .site-head .wrap { min-height: 72px; }
  .hero { padding: 3.5rem 0 5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
  .cta .btn { flex: 0 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .beta { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
  .sec { padding: 4.5rem 0; }
}
