/* ==========================================================================
   Linkker — shared design system
   Paper + ink, echoing the hand-drawn promo video. Vanilla CSS, no build step.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces */
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --card: #ffffff;
  --line: #e6dfd3;

  /* Ink */
  --ink: #1d1530;
  --ink-2: #463d5c;
  --muted: #5b5370;

  /* Brand */
  --brand: #7c3aed;
  --brand-hover: #6d28d9;
  --brand-2: #8b5cf6;
  --brand-deep: #371f6e;
  --lav: #d2beff;
  --lav-2: #ede4ff;
  --lav-3: #f6f1ff;

  /* Doodle accents (from the promo video) */
  --peach: #f9c9a7;
  --sky: #bfd7f5;
  --mint: #bde8cf;
  --pink: #f6c1cf;
  --butter: #fbe7a1;

  --ok: #177245;
  --danger: #b42318;

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.4rem);

  /* Shape */
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --sketch: 2px 3px 0 var(--ink);
  --sketch-l: 4px 5px 0 var(--ink);
  --shadow-soft: 0 10px 30px -12px rgba(55, 31, 110, 0.25);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-hover); }
button { font: inherit; color: inherit; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--lav); color: var(--brand-deep); }

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

.visually-hidden {
  position: absolute !important;
  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: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Typography helpers ---------- */
.hand { font-family: var(--font-hand); font-weight: 700; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.5rem; line-height: 1;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow svg { width: 28px; height: 18px; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.section-title { font-size: var(--step-3); max-width: 20ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-title, .section-head--center .lead { margin-inline: auto; }

.scribble {
  position: relative; white-space: nowrap; display: inline-block;
}
.scribble svg {
  position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.42em;
  overflow: visible; pointer-events: none;
}
.scribble path { fill: none; stroke: var(--brand-2); stroke-width: 6; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: 14px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none;
  box-shadow: var(--sketch);
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
}
.btn:hover { color: var(--fg); transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { --bg: var(--brand); --fg: #fff; }
.btn--primary:hover { --bg: var(--brand-hover); }
.btn--ghost { box-shadow: none; border-color: transparent; background: transparent; }
.btn--ghost:hover { box-shadow: none; transform: none; background: var(--lav-2); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Store buttons (drawn, not official badges) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 18px 8px 14px;
  border: 2px solid var(--ink); border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 2px 3px 0 var(--brand-2);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.store:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--brand-2); }
.store:active { transform: translate(2px, 3px); box-shadow: none; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .72rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.store strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.store--light { background: var(--card); color: var(--ink); box-shadow: var(--sketch); }
.store--light:hover { color: var(--ink); box-shadow: 3px 4px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--lav-2); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--card); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    box-shadow: 0 18px 30px -18px rgba(29, 21, 48, .35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
  .js .nav-toggle ~ .nav:not(.is-open) { display: none; }
  html:not(.js) .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; border: 0; box-shadow: none; padding: 0; background: none; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #f5f1ff; }
.section--ink .lead, .section--ink .muted { color: #cfc6e6; }
.section--ink .eyebrow { color: var(--lav); }
.section--ink a { color: var(--lav); }
.section--ink a:hover { color: #fff; }

/* Soft paper grain via layered radial gradients (cheap, no image) */
.paper-dots {
  background-image: radial-gradient(rgba(55, 31, 110, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: var(--step-4); letter-spacing: -0.035em; margin-bottom: 20px; max-width: 12ch; }
.hero .lead { margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--brand); }

.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-tile {
  position: absolute; inset: 21%; z-index: 1;
  background: var(--lav); border: 2.5px solid var(--ink); border-radius: 22%;
  box-shadow: 6px 8px 0 var(--ink);
  display: grid; place-items: center;
}
.hero-tile svg { width: 86%; height: 86%; overflow: visible; }
.hero-tile button { all: unset; position: absolute; inset: 0; border-radius: 22%; cursor: pointer; }
.hero-tile button:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }

.float-card {
  position: absolute; z-index: 2; width: 36%; min-width: 128px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: var(--sketch); overflow: hidden;
  font-size: .78rem; font-weight: 700; line-height: 1.2;
}
.float-card i { display: block; height: 30px; border-bottom: 2px solid var(--ink); }
.float-card b { display: block; padding: 7px 10px 2px; }
.float-card small { display: flex; align-items: center; gap: 4px; padding: 0 10px 8px; color: var(--muted); font-weight: 600; font-size: .7rem; }
.float-card small svg { width: 11px; height: 11px; }
.fc-1 { top: 2%; left: -2%; transform: rotate(-7deg); }
.fc-1 i { background: var(--peach); }
.fc-2 { top: 3%; right: -3%; transform: rotate(6deg); }
.fc-2 i { background: var(--sky); }
.fc-3 { bottom: 4%; left: 2%; transform: rotate(4deg); }
.fc-3 i { background: var(--mint); }
.fc-4 { bottom: 1%; right: -2%; transform: rotate(-5deg); }
.fc-4 i { background: var(--pink); }
.hero-note {
  position: absolute; font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; color: var(--brand-deep);
  right: -2%; top: 47%; transform: rotate(-4deg); line-height: 1;
}
.sparkle { position: absolute; width: 26px; height: 26px; color: var(--brand-2); }
.sp-1 { top: 16%; left: 14%; }
.sp-2 { bottom: 16%; right: 14%; color: #e7a53c; width: 20px; height: 20px; }

/* Animated logo (from the app splash spec) */
.lk path { transform-box: fill-box; transform-origin: center; }
.lk .glyph { transform-box: fill-box; transform-origin: center; }
.lk.intro .bm { animation: lk-bm 900ms var(--ease-out) both; }
.lk.intro .lu { animation: lk-lu 900ms var(--ease-out) both; }
.lk.intro .ll { animation: lk-ll 900ms var(--ease-out) both; }
.lk.intro .glyph { animation: lk-pulse 900ms ease-out both; }
.lk.loop .bm { animation: lk-bob 1400ms ease-in-out infinite; }
.lk.loop .lu { animation: lk-lu-loop 1400ms cubic-bezier(.3,.7,.3,1) infinite; }
.lk.loop .ll { animation: lk-ll-loop 1400ms cubic-bezier(.3,.7,.3,1) infinite; }
@keyframes lk-bm { 0% { opacity: 0; transform: translateY(40px) scale(.7); } 35% { opacity: 1; transform: translateY(-6px) scale(1.03); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes lk-lu { 0%, 22% { opacity: 0; transform: translate(140px, -140px); } 70% { opacity: 1; transform: translate(-8px, 8px); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes lk-ll { 0%, 22% { opacity: 0; transform: translate(-140px, 140px); } 70% { opacity: 1; transform: translate(8px, -8px); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes lk-pulse { 0%, 80% { transform: none; } 90% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes lk-bob { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-10px); } }
@keyframes lk-lu-loop { 0%, 65%, 100% { transform: none; } 30% { transform: translate(28px, -28px); } 55% { transform: translate(-4px, 4px); } }
@keyframes lk-ll-loop { 0%, 65%, 100% { transform: none; } 30% { transform: translate(-28px, 28px); } 55% { transform: translate(4px, -4px); } }

/* Hero cards float in after the logo lands, then drift */
.js .hero-art .float-card, .js .hero-art .hero-note, .js .hero-art .sparkle { opacity: 0; }
.hero-art.is-ready .float-card { animation: card-in .7s var(--ease-out) both, drift 7s ease-in-out 1.2s infinite alternate; }
.hero-art.is-ready .fc-1 { animation-delay: .55s, 1.3s; --r: -7deg; }
.hero-art.is-ready .fc-2 { animation-delay: .7s, 1.9s; --r: 6deg; }
.hero-art.is-ready .fc-3 { animation-delay: .85s, 2.4s; --r: 4deg; }
.hero-art.is-ready .fc-4 { animation-delay: 1s, 1.6s; --r: -5deg; }
.hero-art.is-ready .hero-note, .hero-art.is-ready .sparkle { animation: fade-in .6s ease 1.3s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(0deg) scale(.9); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes drift { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(var(--r)) translateY(-8px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-art { max-width: 400px; order: -1; margin-bottom: -8px; }
  .hero-note { font-size: 1.15rem; }
}

/* ---------- Video ---------- */
.video-frame {
  position: relative; border: 2.5px solid var(--ink); border-radius: var(--radius-l);
  box-shadow: var(--sketch-l); overflow: hidden; background: #efe9dc;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; box-shadow: var(--sketch);
  transition: transform .15s var(--ease-out);
}
.icon-btn:hover { transform: translate(-1px, -1px); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn [data-show] { display: none; }
.icon-btn[data-state="a"] [data-show="a"], .icon-btn[data-state="b"] [data-show="b"] { display: block; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature--flip .feature-art { order: 2; }
.feature h3 { font-size: var(--step-3); }
.feature p { color: var(--ink-2); font-size: var(--step-1); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
.feature-art {
  position: relative; aspect-ratio: 5 / 4; border: 2.5px solid var(--ink); border-radius: var(--radius-l);
  background: var(--card); box-shadow: var(--sketch-l); overflow: hidden;
}
.feature-art .hand-label {
  position: absolute; left: 20px; top: 14px; font-family: var(--font-hand); font-weight: 700; font-size: 1.5rem; color: var(--brand-deep); line-height: 1;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-art { order: 0; }
}

/* Shared doodle bits used inside illustrations */
.d-card {
  position: absolute; background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink); font-size: .72rem; font-weight: 700; line-height: 1.2; overflow: hidden;
}
.d-card i { display: block; height: 22px; border-bottom: 2px solid var(--ink); }
.d-card b { display: block; padding: 5px 8px 6px; white-space: nowrap; }
.bg-peach { background: var(--peach); } .bg-sky { background: var(--sky); } .bg-mint { background: var(--mint); }
.bg-pink { background: var(--pink); } .bg-butter { background: var(--butter); } .bg-lav { background: var(--lav); }

/* --- Illo 1: save from anywhere --- */
.illo-save .phone {
  position: absolute; left: 9%; top: 16%; width: 30%; aspect-ratio: 9 / 18.5;
  border: 2.5px solid var(--ink); border-radius: 22px; background: var(--paper);
}
.illo-save .phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30%; height: 6px; border-radius: 4px; background: var(--ink); transform: translateX(-50%); }
.illo-save .scr { position: absolute; left: 8px; right: 8px; top: 20px; display: grid; gap: 6px; }
.illo-save .scr i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.illo-save .scr i:first-child { height: 38px; border-radius: 8px; background: var(--peach); border: 1.5px solid var(--ink); }
.illo-save .scr i:last-child { width: 60%; }
.illo-save .sheet {
  position: absolute; left: 4px; right: 4px; bottom: 4px; height: 46%;
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px 14px 18px 18px; padding: 8px 6px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start;
}
.illo-save .sheet span { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.illo-save .sheet .me { background: var(--lav); display: grid; place-items: center; }
.illo-save .sheet .me svg { width: 70%; height: 70%; color: var(--brand-deep); }
.illo-save .browser {
  position: absolute; right: 7%; top: 22%; width: 48%; aspect-ratio: 4 / 3;
  border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); overflow: hidden;
}
.illo-save .browser .bar { height: 22%; border-bottom: 2px solid var(--ink); background: var(--paper-2); display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.illo-save .browser .bar em { flex: 1; height: 44%; border: 1.5px solid var(--ink); border-radius: 20px; background: #fff; }
.illo-save .browser .ext { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--lav); display: grid; place-items: center; }
.illo-save .browser .ext svg { width: 80%; height: 80%; color: var(--brand-deep); }
.illo-save .browser .pg { padding: 10px; display: grid; gap: 6px; }
.illo-save .browser .pg i { height: 8px; border-radius: 4px; background: var(--line); }
.illo-save .browser .pg i:first-child { height: 36px; background: var(--mint); border: 1.5px solid var(--ink); }
.illo-save .clip {
  position: absolute; left: 40%; bottom: 10%; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--butter); font-weight: 700; font-size: .74rem; display: flex; align-items: center; gap: 6px; box-shadow: 2px 2px 0 var(--ink);
}
.illo-save .clip svg { width: 14px; height: 14px; }
.illo-save .fly { position: absolute; width: 22%; left: 39%; top: 32%; opacity: 0; }
.illo-save .saved {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 700; font-size: .78rem; padding: 6px 12px; border-radius: 999px; opacity: 0;
  display: flex; gap: 6px; align-items: center; white-space: nowrap;
}
.illo-save .saved svg { width: 14px; height: 14px; color: var(--mint); }
.play.illo-save .fly-a { animation: fly-to-phone 4.8s var(--ease-out) .3s infinite; }
.play.illo-save .fly-b { animation: fly-to-phone-b 4.8s var(--ease-out) 2.7s infinite; }
.play.illo-save .me { animation: tap 4.8s ease 1s infinite; }
.play.illo-save .ext { animation: tap 4.8s ease 3.4s infinite; }
.play.illo-save .saved { animation: toast 4.8s ease 1.2s infinite; }
@keyframes fly-to-phone {
  0% { opacity: 0; transform: translate(80%, -10%) rotate(8deg) scale(.9); }
  10% { opacity: 1; }
  28% { opacity: 1; transform: translate(-90%, 70%) rotate(-6deg) scale(.55); }
  34%, 100% { opacity: 0; transform: translate(-100%, 80%) scale(.3); }
}
@keyframes fly-to-phone-b {
  0% { opacity: 0; transform: translate(-20%, 150%) rotate(-4deg) scale(.8); }
  10% { opacity: 1; }
  28% { opacity: 1; transform: translate(150%, -50%) rotate(5deg) scale(.5); }
  34%, 100% { opacity: 0; transform: translate(160%, -60%) scale(.3); }
}
@keyframes tap { 0%, 100% { transform: none; box-shadow: none; } 4% { transform: scale(.88); } 8% { transform: scale(1.08); box-shadow: 0 0 0 4px var(--lav-2); } 14% { transform: none; box-shadow: none; } }
@keyframes toast { 0%, 100% { opacity: 0; transform: translate(-50%, -6px); } 6%, 30% { opacity: 1; transform: translate(-50%, 0); } 38% { opacity: 0; transform: translate(-50%, -6px); } }

/* --- Illo 2: cards fly into folders --- */
.illo-sort .folders { position: absolute; left: 6%; right: 6%; bottom: 10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.folder { position: relative; aspect-ratio: 5 / 4; }
.folder .tab { position: absolute; left: 0; top: 0; width: 42%; height: 18%; border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.folder .body {
  position: absolute; left: 0; right: 0; bottom: 0; top: 14%; border: 2px solid var(--ink); border-radius: 4px 10px 10px 10px;
  display: grid; place-items: center; box-shadow: 2px 3px 0 var(--ink);
  background-image: repeating-linear-gradient(-45deg, rgba(29, 21, 48, .08) 0 2px, transparent 2px 9px);
}
.folder .body span { font-family: var(--font-hand); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.35rem); }
.folder .count {
  position: absolute; right: -8px; top: 4%; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper);
}
.illo-sort .d-card { width: 27%; }
.illo-sort .c1 { left: 8%; top: 20%; transform: rotate(-6deg); }
.illo-sort .c2 { left: 38%; top: 14%; transform: rotate(3deg); }
.illo-sort .c3 { left: 66%; top: 20%; transform: rotate(-3deg); }
.illo-sort .c4 { left: 22%; top: 36%; transform: rotate(5deg); }
.illo-sort .c5 { left: 52%; top: 34%; transform: rotate(-4deg); }
.illo-sort .ai {
  position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; background: var(--lav-2); color: var(--brand-deep); border: 1.5px solid var(--brand-deep);
}
.illo-sort .ai svg { width: 14px; height: 14px; }
.play.illo-sort .d-card { animation: into-folder 5.2s cubic-bezier(.5,0,.3,1) infinite both; }
.play.illo-sort .c1 { --tx: 12%; --ty: 190%; animation-delay: .2s; }
.play.illo-sort .c2 { --tx: 40%; --ty: 210%; animation-delay: .5s; }
.play.illo-sort .c3 { --tx: -2%; --ty: 190%; animation-delay: .8s; }
.play.illo-sort .c4 { --tx: -40%; --ty: 120%; animation-delay: 1.1s; }
.play.illo-sort .c5 { --tx: 72%; --ty: 125%; animation-delay: 1.4s; }
.play.illo-sort .count { animation: bump 5.2s ease infinite; }
.play.illo-sort .folder:nth-child(1) .count { animation-delay: 1.6s; }
.play.illo-sort .folder:nth-child(2) .count { animation-delay: 2.1s; }
.play.illo-sort .folder:nth-child(3) .count { animation-delay: 2.5s; }
@keyframes into-folder {
  0%, 8% { opacity: 1; }
  30% { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(0deg) scale(.55); }
  34%, 88% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.4); }
  100% { opacity: 1; }
}
@keyframes bump { 0%, 20%, 100% { transform: none; } 24% { transform: scale(1.35); } 30% { transform: none; } }

/* --- Illo 3: search --- */
.illo-search .field {
  position: absolute; left: 8%; right: 8%; top: 20%; height: 52px; border: 2.5px solid var(--ink); border-radius: 26px; background: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 18px; font-weight: 700; font-size: 1.05rem;
}
.illo-search .field svg { width: 22px; height: 22px; flex: none; }
.illo-search .typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 5ch; border-right: 2px solid var(--brand); }
.illo-search .results { position: absolute; left: 8%; right: 8%; top: calc(20% + 70px); display: grid; gap: 10px; }
.illo-search .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  font-weight: 700; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink);
}
.illo-search .row i { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--ink); flex: none; }
.illo-search .row small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.illo-search .row mark { background: var(--lav); color: inherit; border-radius: 3px; padding: 0 1px; }
.illo-search .timer { position: absolute; right: 8%; bottom: 7%; font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; color: var(--brand-deep); transform: rotate(-3deg); }
.play.illo-search .typed { animation: typing 5s steps(5, end) infinite, caret .6s step-end infinite; }
.play.illo-search .row { animation: result-in 5s var(--ease-out) infinite both; }
.play.illo-search .row:nth-child(2) { animation-delay: .12s; }
.play.illo-search .row:nth-child(3) { animation-delay: .24s; }
@keyframes typing { 0%, 8% { width: 0; } 30%, 88% { width: 5ch; } 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes result-in { 0%, 22% { opacity: 0; transform: translateY(10px); } 34%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* --- Illo 4: copy + QR --- */
.illo-copy { display: grid; place-items: center; padding: 20px; background: var(--lav-3); }
.link-card {
  width: min(88%, 380px); background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: var(--sketch-l); overflow: hidden;
}
.link-card .cover { height: 84px; background: var(--sky); border-bottom: 2.5px solid var(--ink); position: relative; }
.link-card .cover::after { content: ""; position: absolute; left: 18px; bottom: 14px; width: 42%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.7); }
.link-card .body { padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.link-card h4 { margin: 0 0 2px; font-size: 1rem; letter-spacing: -0.01em; }
.link-card .url { color: var(--muted); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.link-card .url svg { width: 13px; height: 13px; }
.link-card .qr { width: 64px; height: 64px; border: 2px solid var(--ink); border-radius: 8px; padding: 4px; background: #fff; }
.link-card .actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.copy-btn {
  position: relative; flex: 1; min-height: 46px; border-radius: 12px; border: 2px solid var(--ink); background: var(--brand); color: #fff;
  font-weight: 800; cursor: pointer; overflow: hidden; box-shadow: var(--sketch);
  transition: background-color .3s ease, transform .15s;
}
.copy-btn:active { transform: translate(2px, 3px); box-shadow: none; }
.copy-btn .lbl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .35s var(--ease-out), opacity .25s; }
.copy-btn .lbl svg { width: 18px; height: 18px; }
.copy-btn .lbl-done { position: absolute; inset: 0; transform: translateY(110%); opacity: 0; }
.copy-btn .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.copy-btn.is-done { background: var(--ok); }
.copy-btn.is-done .lbl-copy { transform: translateY(-110%); opacity: 0; }
.copy-btn.is-done .lbl-done { transform: none; opacity: 1; }
.copy-btn.is-done .tick path { animation: draw .45s ease .15s forwards; }
.ghost-btn {
  min-height: 46px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.ghost-btn svg { width: 18px; height: 18px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tap-hint { position: absolute; right: 7%; bottom: 7%; font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem; color: var(--brand-deep); transform: rotate(-4deg); display: flex; align-items: center; gap: 4px; }
.tap-hint svg { width: 40px; height: 26px; }

/* --- Illo 5: protected / not safe for work --- */
.illo-lock { background: var(--paper-2); display: grid; place-items: center; padding: 20px; }
.lock-stack { position: relative; width: min(88%, 380px); display: grid; gap: 12px; }
.lock-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 2.5px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: var(--sketch);
  overflow: hidden;
}
.lock-card i { width: 52px; height: 52px; border-radius: 10px; border: 2px solid var(--ink); flex: none; }
.lock-card .t b { display: block; font-size: .95rem; }
.lock-card .t small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.lock-card .veil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(-45deg, #2a2040 0 10px, #332850 10px 20px); color: #fff; font-weight: 800; font-size: .9rem;
  transition: clip-path .6s var(--ease-out);
  clip-path: inset(0 0 0 0);
}
.lock-card .veil svg { width: 22px; height: 22px; }
.lock-card .veil .tag { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--pink); color: var(--ink); letter-spacing: .02em; }
.illo-lock.is-unlocked .veil { clip-path: inset(0 0 0 100%); }
.shackle { transform-origin: 70% 100%; transition: transform .35s var(--ease-out); }
.illo-lock.is-unlocked .shackle { transform: rotate(-28deg) translate(-2px, -2px); }
.pin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 14px; background: #fff;
}
.pin .dots { display: flex; gap: 10px; }
.pin .dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); transition: background-color .15s; }
.pin .dots span.on { background: var(--brand); border-color: var(--brand); }
.pin .unlock-btn {
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.pin .unlock-btn svg { width: 18px; height: 18px; }

/* --- Illo 6: phone -> laptop over Wi-Fi --- */
.illo-transfer { background: #fff; }
.illo-transfer .t-phone {
  position: absolute; left: 7%; bottom: 14%; width: 24%; aspect-ratio: 9 / 18; border: 2.5px solid var(--ink); border-radius: 18px; background: var(--paper); padding: 26px 7px 8px; overflow: hidden;
}
.illo-transfer .t-phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30%; height: 5px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); }
.illo-transfer .t-phone b { font-size: .7rem; display: block; margin-bottom: 6px; }
.illo-transfer .t-phone .f { white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 700; padding: 5px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--lav-2); margin-bottom: 5px; }
.illo-transfer .t-phone .f svg { width: 12px; height: 12px; flex: none; }
.illo-transfer .laptop { position: absolute; right: 6%; bottom: 14%; width: 50%; }
.illo-transfer .screen { aspect-ratio: 16 / 10; border: 2.5px solid var(--ink); border-radius: 10px 10px 0 0; background: var(--paper); padding: 8px 10px; }
.illo-transfer .screen b { font-size: .72rem; display: block; margin-bottom: 6px; }
.illo-transfer .screen .f { display: flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; padding: 5px 7px; border-radius: 6px; background: var(--lav-2); margin-bottom: 5px; }
.illo-transfer .screen .f svg { width: 12px; height: 12px; flex: none; }
.illo-transfer .base { height: 10px; margin: 0 -8%; border: 2.5px solid var(--ink); border-radius: 0 0 12px 12px; background: var(--lav); }
.illo-transfer .route { position: absolute; left: 24%; width: 46%; top: 26%; height: 30%; overflow: visible; }
.illo-transfer .route path { fill: none; stroke: var(--brand-2); stroke-width: 3; stroke-dasharray: 8 8; }
.illo-transfer .wifi { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: var(--brand-deep); }
.illo-transfer .wifi svg { width: 34px; height: 34px; }
.illo-transfer .wifi span { font-family: var(--font-hand); font-weight: 700; font-size: 1.2rem; line-height: 1; white-space: nowrap; }
.illo-transfer .packet {
  position: absolute; left: 26%; top: 44%; width: 38px; height: 44px; border: 2px solid var(--ink); border-radius: 6px 12px 6px 6px; background: var(--peach);
  display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); opacity: 0;
}
.illo-transfer .packet svg { width: 18px; height: 18px; }
/* .arrived is visible by default (no-JS / reduced motion); animation hides it until the packet lands */
.play.illo-transfer .route path { animation: dash 1s linear infinite; }
.play.illo-transfer .packet { animation: packet 4s cubic-bezier(.45,0,.3,1) .4s infinite both; }
.play.illo-transfer .arrived { animation: arrive 4s ease .4s infinite both; }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes packet { 0% { left: 22%; top: 50%; opacity: 0; } 8% { opacity: 1; } 22% { left: 32%; top: 30%; } 38% { left: 47%; top: 24%; } 55% { left: 62%; top: 44%; opacity: 1; } 62%, 100% { left: 62%; top: 44%; opacity: 0; } }
@keyframes arrive { 0%, 55% { opacity: 0; transform: translateY(6px); } 62%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Extras grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--sketch); padding: 24px;
}
.card h3 { font-size: var(--step-1); margin-bottom: 6px; }
.card p { color: var(--ink-2); margin: 0; }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps li { position: relative; }
.steps .num {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; position: relative;
  font-family: var(--font-hand); font-weight: 700; font-size: 2.2rem; color: var(--brand-deep);
}
.steps .num svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.steps .num svg path { fill: var(--lav); stroke: var(--ink); stroke-width: 2.5; }
.steps .num span { position: relative; }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--ink-2); }
.steps .connector { position: absolute; top: 20px; left: 84px; width: calc(100% - 96px); height: 26px; color: var(--brand-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; }
  .steps .num { margin: 0; grid-row: span 2; }
  .steps .connector { display: none; }
}

/* ---------- Platforms ---------- */
.platform { display: flex; flex-direction: column; gap: 14px; }
.platform .ic { background: var(--lav-2); }
.platform ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: .96rem; }
.platform li { display: flex; gap: 8px; }
.platform li::before { content: ""; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--brand-2); flex: none; }
.platform .store { margin-top: auto; align-self: flex-start; }

/* ---------- Privacy band ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.privacy-item {
  border: 2px solid #4b3f6b; border-radius: var(--radius); padding: 22px; background: #261d3c;
}
.privacy-item svg { width: 30px; height: 30px; color: var(--lav); margin-bottom: 14px; }
.privacy-item h3 { font-size: 1.08rem; color: #fff; margin-bottom: 6px; }
.privacy-item p { color: #cfc6e6; font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- Pro ---------- */
.pro {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  background: var(--lav); border: 2.5px solid var(--ink); border-radius: var(--radius-l); box-shadow: var(--sketch-l);
  padding: clamp(24px, 5vw, 48px);
}
.pro h2 { font-size: var(--step-3); color: var(--brand-deep); }
.pro p { color: var(--brand-deep); }
.pro .plans { display: grid; gap: 12px; }
.plan { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; }
.plan h3 { font-size: 1.05rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.plan h3 .badge { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff; letter-spacing: .03em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .94rem; color: var(--ink-2); }
.plan li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
@media (max-width: 860px) { .pro { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.05rem; position: relative; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta h2 { font-size: var(--step-4); letter-spacing: -0.035em; margin-inline: auto; max-width: 14ch; }
.cta-logo { width: 88px; height: 88px; margin: 0 auto 20px; border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--sketch); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d2ec; padding-block: 56px 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lav); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-top .brand { color: #fff; }
.footer-top .brand img { border-color: #fff; }
.footer-top p { color: #bfb5d8; max-width: 34ch; margin-top: 12px; }
.footer-col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #bfb5d8; margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a3052; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: #bfb5d8; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Page (legal / support) ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
.page-hero .meta { color: var(--muted); font-weight: 600; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: clamp(64px, 9vw, 112px); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: .9rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 12px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .toc ol { grid-template-columns: 1fr; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: 14px; background: #fff; margin: 1em 0 1.6em; }
.table-scroll table { margin: 0; }
.callout {
  border: 2px solid var(--ink); border-radius: 14px; background: var(--lav-3); padding: 18px 20px; margin: 1.4em 0; box-shadow: 2px 2px 0 var(--ink);
}
.callout p:last-child { margin: 0; }
.callout--warn { background: #fff4e5; }

/* Steps list in delete-account */
.num-steps { list-style: none; padding: 0; margin: 1em 0 1.6em; counter-reset: s; display: grid; gap: 12px; }
.num-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; margin: 0; color: var(--ink); font-weight: 600; }
.num-steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--lav); border: 2px solid var(--ink); display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: var(--brand-deep);
}

/* Forms */
.form { display: grid; gap: 16px; background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius-l); padding: clamp(18px, 4vw, 28px); box-shadow: var(--sketch-l); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink-2); background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-msg { font-weight: 700; padding: 12px 14px; border-radius: 12px; display: none; }
.form-msg.is-error { display: block; background: #fdecea; color: var(--danger); border: 2px solid var(--danger); }
.form-msg.is-ok { display: block; background: #e8f6ee; color: var(--ok); border: 2px solid var(--ok); }

/* Contact cards (support) */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ic { flex: none; margin: 0; background: var(--lav-2); }
.contact-card h3 { margin-bottom: 4px; }
.email-link { font-weight: 800; word-break: break-all; }

/* 404 */
.nf { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.nf .code { font-family: var(--font-hand); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--brand); font-weight: 700; }
.nf .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Checkout return page */
.checkout { text-align: center; padding-block: clamp(48px, 9vw, 110px); }
.checkout h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
.checkout .lead { margin-inline: auto; }
.checkout .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.checkout-failed { display: none; }
.checkout[data-state="failed"] .checkout-ok { display: none; }
.checkout[data-state="failed"] .checkout-failed { display: block; }
.check-badge { width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--ink); box-shadow: var(--sketch); display: grid; place-items: center; }
.check-badge svg { width: 64px; height: 64px; }
.check-badge circle { stroke: var(--ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease .2s forwards; }
.check-badge path { stroke: var(--ok); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s ease .7s forwards; }
.checkout-list { list-style: none; padding: 0; margin: 28px auto; max-width: 560px; display: grid; gap: 12px; text-align: left; }
.checkout-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 2px 2px 0 var(--ink); color: var(--ink-2); }
.checkout-list svg { width: 24px; height: 24px; flex: none; color: var(--brand); margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .check-badge circle, .check-badge path { stroke-dashoffset: 0; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-art .float-card, .js .hero-art .hero-note, .js .hero-art .sparkle { opacity: 1; }
  /* Show illustrations in their "finished" state */
  .illo-save .fly, .illo-save .saved { opacity: 0 !important; }
  .illo-sort .d-card { animation: none !important; }
  .illo-search .typed { width: 5ch !important; animation: none !important; }
  .illo-search .row { opacity: 1 !important; animation: none !important; }
  .illo-transfer .packet { display: none; }
  .illo-transfer .arrived { opacity: 1 !important; animation: none !important; }
  .lk .bm, .lk .lu, .lk .ll, .lk .glyph { animation: none !important; opacity: 1 !important; }
}

/* Print: legal pages should print cleanly */
@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none !important; }
  body { background: #fff; }
  .doc-layout { display: block; }
}

/* Small screens: give the denser illustrations more height */
@media (max-width: 560px) {
  .illo-search, .illo-transfer { aspect-ratio: 1 / 1; }
  .illo-transfer .wifi { top: 13%; }
  .illo-transfer .route { top: 30%; }
  .illo-search .row:nth-child(3) { display: none; }
}
