/* =========================================================
   Aku Ley — estilos
   ========================================================= */
:root {
  --bg: #f7f4ee;
  --bg-alt: #efeadf;
  --surface: #ffffff;
  --surface-2: #f9f7f2;
  --ink: #121629;
  --ink-2: #3c4258;
  --muted: #6b7088;
  --line: rgba(18, 22, 41, 0.1);
  --navy: #0b1530;
  --gold: #f0a948;
  --gold-2: #f5c35b;
  --ember: #e07a3f;
  --teal: #12a594;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 1px 2px rgba(18, 22, 41, 0.06), 0 8px 24px -8px rgba(18, 22, 41, 0.14);
  --shadow-lg: 0 30px 80px -20px rgba(11, 21, 48, 0.35);
  --radius: 20px;
  --hero-ink: #fdf8ee;
  --hero-bg: radial-gradient(1200px 700px at 80% -10%, #22306b 0%, transparent 60%), linear-gradient(160deg, #0b1530 0%, #111d45 55%, #1a1640 100%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #080d1e;
  --bg-alt: #0c1328;
  --surface: #111a34;
  --surface-2: #0f1730;
  --ink: #eef0f8;
  --ink-2: #c3c8dc;
  --muted: #8d93ad;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d1e;
    --bg-alt: #0c1328;
    --surface: #111a34;
    --surface-2: #0f1730;
    --ink: #eef0f8;
    --ink-2: #c3c8dc;
    --muted: #8d93ad;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--gold-2); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- progress + cursor glow ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--gold-2), var(--ember), #c2418f);
  transform-origin: 0 50%; transform: scaleX(0);
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(245, 195, 91, 0.13), transparent 65%);
  transform: translate(-50%, -50%); left: -500px; top: -500px; transition: opacity 0.3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  color: var(--hero-ink);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s, color 0.35s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { width: 38px; height: 38px; transition: transform 0.6s var(--spring); }
.brand:hover .brand-mark svg { transform: rotate(-12deg) scale(1.08); }
.brand-text { font-family: "Fraunces", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-text b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 8px 12px; border-radius: 999px; opacity: 0.85; transition: opacity 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.sos {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.85rem;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 20px -6px rgba(220, 38, 38, 0.7);
  transition: transform 0.2s var(--spring);
}
.sos:hover { transform: scale(1.06); }
.sos-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent); display: grid; place-items: center;
  transition: transform 0.25s var(--spring), background 0.2s;
}
.icon-btn:hover { transform: translateY(-2px); background: color-mix(in srgb, currentColor 12%, transparent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; fill: currentColor; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; fill: currentColor; }
}
.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: var(--hero-bg); color: var(--hero-ink);
  padding: 120px clamp(16px, 4vw, 40px) 60px;
  display: flex; flex-direction: column; justify-content: center;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.b1 { width: 460px; height: 460px; background: #f0a948; top: -140px; right: -80px; opacity: 0.28; }
.b2 { width: 380px; height: 380px; background: #7c3aed; bottom: -120px; left: -100px; opacity: 0.3; animation-duration: 22s; }
.b3 { width: 300px; height: 300px; background: #12a594; top: 40%; left: 45%; opacity: 0.18; animation-duration: 26s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em {
  font-style: italic; background: linear-gradient(100deg, var(--gold-2), var(--ember) 60%, #f472b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.hero-q { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; min-height: 2.2em; }
.typer { color: var(--gold-2); }
.caret { color: var(--gold-2); animation: blink 0.9s steps(1) infinite; margin-left: 1px; }
.lead { max-width: 560px; font-size: 1.07rem; color: rgba(253, 248, 238, 0.78); margin-top: 8px; }
.lead strong { color: #fff; }

.search {
  position: relative; margin-top: 28px; max-width: 580px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.97); color: #121629; border-radius: 18px; padding: 6px 8px 6px 18px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(245, 195, 91, 0.6);
  transition: box-shadow 0.3s, transform 0.3s var(--spring);
}
.search:focus-within { box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(245, 195, 91, 0.45); transform: translateY(-2px); }
.search > svg { width: 22px; height: 22px; fill: none; stroke: #6b7088; stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; padding: 12px 0; color: #121629; }
.search input::placeholder { color: #8b90a6; }
.search kbd { font: 600 0.75rem/1 "Plus Jakarta Sans", sans-serif; color: #6b7088; border: 1px solid #d6d8e2; border-radius: 6px; padding: 5px 8px; margin-right: 6px; }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20;
  background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px);
  transition: max-height 0.35s var(--ease), opacity 0.25s, transform 0.3s var(--ease);
}
.search-results.open { max-height: 420px; opacity: 1; transform: none; overflow-y: auto; }
.sr-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--line); text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover, .sr-item.sel { background: var(--surface-2); }
.sr-item .e { font-size: 1.4rem; line-height: 1; margin-top: 2px; }
.sr-item b { display: block; font-size: 0.95rem; }
.sr-item small { color: var(--muted); font-size: 0.84rem; display: block; line-height: 1.4; }
.sr-item mark { background: color-mix(in srgb, var(--gold-2) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.sr-empty { padding: 18px; color: var(--muted); font-size: 0.92rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: var(--hero-ink);
  padding: 7px 13px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  transition: background 0.2s, transform 0.25s var(--spring), border-color 0.2s;
}
.chip:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); border-color: var(--gold-2); }

.hero-art { display: grid; place-items: center; }
.scale-wrap { position: relative; width: min(420px, 100%); aspect-ratio: 1; }
.scale { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scale .halo { animation: pulse 4s ease-in-out infinite; transform-origin: 160px 150px; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: 0.7; } }
.scale .beam { transform-origin: 160px 89px; animation: tilt 5s ease-in-out infinite; }
.scale .pan-l { transform-origin: 62px 94px; animation: counter 5s ease-in-out infinite; }
.scale .pan-r { transform-origin: 258px 94px; animation: counter 5s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes counter { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 9px 14px; border-radius: 14px; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); animation: float 7s ease-in-out infinite;
}
.float-card span { font-size: 1.1rem; }
.fc1 { top: 6%; left: -8%; }
.fc2 { top: 46%; right: -10%; animation-delay: -2.3s; }
.fc3 { bottom: 4%; left: 2%; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

.stats {
  position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  padding: 18px 20px; backdrop-filter: blur(8px);
}
.stat b { display: block; font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--gold-2); line-height: 1.1; }
.stat span { font-size: 0.88rem; color: rgba(253, 248, 238, 0.7); }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- TICKER ---------- */
.ticker { background: var(--gold-2); color: var(--navy); overflow: hidden; padding: 14px 0; border-block: 1px solid rgba(0, 0, 0, 0.08); position: relative; z-index: 1; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; font-weight: 800; font-size: 0.95rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: "✦"; color: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { position: relative; z-index: 1; padding: clamp(70px, 10vw, 120px) clamp(16px, 4vw, 40px); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember); background: color-mix(in srgb, var(--ember) 12%, transparent); padding: 6px 12px; border-radius: 999px;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head strong { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- FILTERS + GRID ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -14px auto 34px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--ink-2);
  transition: all 0.25s var(--ease);
}
.filter:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.amber { background: var(--amber); } .dot.red { background: var(--red); }

.grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  --h: 30;
  position: relative; text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); padding: 24px 22px 20px; overflow: hidden; box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.4s, border-color 0.3s;
  display: flex; flex-direction: column; gap: 10px; min-height: 220px;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), hsla(var(--h), 90%, 60%, 0.16), transparent 45%);
}
.card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: hsla(var(--h), 85%, 60%, 0.12); transition: transform 0.6s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: hsla(var(--h), 80%, 55%, 0.45); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scale(1.6); }
.card .c-emoji {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.85rem;
  background: hsla(var(--h), 85%, 60%, 0.15); transition: transform 0.5s var(--spring); position: relative; z-index: 1;
}
.card:hover .c-emoji { transform: rotate(-8deg) scale(1.12); }
.card h3 { font-size: 1.3rem; position: relative; z-index: 1; }
.card p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; position: relative; z-index: 1; }
.card .c-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.card .c-go {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg);
  transition: transform 0.35s var(--spring);
}
.card:hover .c-go { transform: translateX(4px) rotate(-45deg); }
.card.hide { display: none; }
.card.urgent { border-color: hsla(290, 70%, 55%, 0.4); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.badge.no { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge.simple { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.badge.si { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- WIZARD ---------- */
.wizard {
  max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 40px); position: relative; overflow: hidden;
}
.wizard::before {
  content: ""; position: absolute; inset: -2px; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0.6;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--gold-2) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px; animation: spin 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.wizard > * { position: relative; z-index: 1; }
.wizard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.crumb { font-size: 0.8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); animation: pop 0.4s var(--spring); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.ghost { background: none; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; color: var(--ink-2); transition: background 0.2s; }
.ghost:hover { background: var(--surface-2); }
.wizard-stage { min-height: 300px; }
.wiz-q { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 22px; }
.wiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wiz-opt {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 1rem;
  opacity: 0; transform: translateY(16px) scale(0.98); animation: rise 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms);
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--spring), box-shadow 0.2s;
}
.wiz-opt:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.wiz-opt .e { font-size: 1.7rem; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); flex: none; box-shadow: var(--shadow); }
@keyframes rise { to { opacity: 1; transform: none; } }
.stage-out { animation: out 0.25s var(--ease) forwards; }
@keyframes out { to { opacity: 0; transform: translateX(-30px); } }
.wiz-result { animation: rise 0.6s var(--ease) both; opacity: 0; transform: translateY(16px); }
.wiz-result .r-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.wiz-result .r-emoji { font-size: 2.6rem; animation: wobble 1s var(--spring); }
@keyframes wobble { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: none; } }
.wiz-result h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.wiz-result p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 20px; max-width: 680px; }
.r-urgent { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); font-weight: 700; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.r-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.r-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line); }
.r-steps li b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-2); color: var(--navy); font-size: 0.85rem; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-decoration: none;
  border: 0; border-radius: 14px; padding: 12px 20px; font-weight: 800; font-size: 0.95rem;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring), box-shadow 0.25s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--ember)); color: var(--navy); }
.btn.danger { background: var(--red); color: #fff; }

/* ---------- TRAFFIC LIGHT ---------- */
.traffic { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.light {
  --c: var(--green);
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.light.amber { --c: var(--amber); } .light.red { --c: var(--red); }
.light::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.2s; }
.light.in::before { transform: scaleX(1); }
.bulb { width: 54px; height: 54px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 15%, transparent), 0 0 40px var(--c); margin-bottom: 16px; animation: glow 2.6s ease-in-out infinite; }
.light.amber .bulb { animation-delay: -0.9s; } .light.red .bulb { animation-delay: -1.8s; }
@keyframes glow { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--c) 8%, transparent), 0 0 60px var(--c); } }
.light h3 { font-size: 1.5rem; margin-bottom: 12px; }
.light ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.light li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.95rem; }
.light li::before { content: "✓"; color: var(--c); font-weight: 900; }
.light.red li::before { content: "!"; }

/* ---------- MYTHS ---------- */
.myths { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.myth { perspective: 1200px; height: 210px; border: 0; background: none; padding: 0; text-align: left; }
.myth-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s var(--spring); }
.myth.flip .myth-inner { transform: rotateY(180deg); }
.myth-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.myth-front { background: var(--surface); }
.myth-front .tag { color: var(--red); }
.myth-back { background: linear-gradient(145deg, #0b1530, #23306e); color: #fdf8ee; transform: rotateY(180deg); border-color: transparent; }
.myth-back .tag { color: #4ade80; }
.myth .tag { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.myth p { font-family: "Fraunces", serif; font-size: 1.28rem; font-weight: 700; line-height: 1.25; }
.myth-back p { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.myth .hint { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.myth-back .hint { color: rgba(253, 248, 238, 0.6); }

/* ---------- CALCULATOR ---------- */
.calc { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }
.calc-form, .calc-out { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.calc-form { display: grid; gap: 16px; }
.calc-form label { display: grid; gap: 7px; font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
input[type="number"], input[type="date"], input[type="text"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.seg button { flex: 1 1 auto; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; color: var(--muted); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 600 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ember); flex: none; margin-top: 2px; }
.calc-out { position: sticky; top: 90px; background: linear-gradient(160deg, #0b1530, #1c2559); color: #fdf8ee; border: 0; }
.calc-out .total { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, 0.2); margin-bottom: 14px; }
.calc-out .total span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; color: rgba(253, 248, 238, 0.6); }
.calc-out .total b { font-family: "Fraunces", serif; font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--gold-2); line-height: 1; }
.calc-out ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.calc-out li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.93rem; animation: rise 0.4s var(--ease) both; animation-delay: calc(var(--i) * 50ms); opacity: 0; transform: translateY(8px); }
.calc-out li small { display: block; color: rgba(253, 248, 238, 0.55); font-size: 0.78rem; }
.calc-out li b { white-space: nowrap; }
.calc-out .fine { font-size: 0.8rem; color: rgba(253, 248, 238, 0.55); }
.calc-out .empty { color: rgba(253, 248, 238, 0.65); font-size: 0.95rem; padding: 6px 0 14px; }

/* ---------- LETTERS ---------- */
.letters { max-width: 1150px; margin: 0 auto; }
.letter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.letter-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 0.92rem; color: var(--ink-2); transition: all 0.25s var(--ease);
}
.letter-tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.letter-body { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; align-items: start; }
.letter-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.letter-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
.paper-wrap { position: sticky; top: 90px; }
.paper {
  margin: 0; white-space: pre-wrap; word-wrap: break-word; font-family: "Fraunces", Georgia, serif; font-size: 0.98rem; line-height: 1.65;
  background: #fffdf7; color: #1f2233; border-radius: 6px; padding: clamp(22px, 4vw, 44px); min-height: 520px;
  box-shadow: 0 1px 0 #e9e3d3, 0 2px 0 #fffdf7, 0 3px 0 #e6dfcd, 0 4px 0 #fffdf7, 0 5px 0 #e2dbc8, var(--shadow-lg);
  background-image: linear-gradient(#fffdf7 0 0), repeating-linear-gradient(transparent 0 31px, rgba(18, 22, 41, 0.04) 31px 32px);
  background-blend-mode: multiply; transition: transform 0.5s var(--ease);
}
.paper .fill { background: color-mix(in srgb, var(--gold-2) 40%, transparent); border-radius: 3px; padding: 0 2px; transition: background 0.4s; }
.paper .ph { color: #a07a2a; background: rgba(240, 169, 72, 0.12); border-radius: 3px; padding: 0 2px; }
.paper.flash { animation: paperIn 0.6s var(--ease); }
@keyframes paperIn { from { transform: translateY(20px) rotate(-1.2deg); opacity: 0; } }
.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- ANALIZA TU CASO (teaser) ---------- */
.nav-caso { color: var(--gold-2); }
.nav.scrolled .nav-caso { color: var(--ember); }
.analiza {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center;
  background: linear-gradient(140deg, #0b1530, #1d2763 60%, #3b1f5e); color: #fdf8ee; border-radius: 32px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.analiza::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -160px; background: rgba(240, 169, 72, 0.25); filter: blur(60px); }
.an-copy { position: relative; }
.analiza h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 14px 0 12px; }
.analiza p { color: rgba(253, 248, 238, 0.78); margin-bottom: 24px; max-width: 520px; }
.an-art { position: relative; height: 260px; }
.an-doc {
  position: absolute; width: 130px; height: 170px; border-radius: 14px; background: #fffdf7; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 9px; animation: float 6s ease-in-out infinite;
}
.an-doc i { display: block; height: 7px; border-radius: 4px; background: #e6e1d3; }
.an-doc i:nth-child(2) { width: 75%; } .an-doc i:nth-child(3) { width: 55%; }
.an-doc span { margin-top: auto; align-self: flex-start; font-size: 0.72rem; font-weight: 900; color: #fff; padding: 4px 8px; border-radius: 6px; background: #dc2626; }
.an-doc.d1 { left: 6%; top: 30px; transform: rotate(-8deg); }
.an-doc.d2 { left: 34%; top: 0; animation-delay: -2s; }
.an-doc.d2 span { background: #2563eb; }
.an-doc.d3 { left: 62%; top: 44px; animation-delay: -4s; }
.an-doc.d3 span { background: #16a34a; }
.an-bubble {
  position: absolute; bottom: 6px; right: 6%; background: linear-gradient(135deg, var(--gold-2), var(--ember)); color: var(--navy);
  font-weight: 800; padding: 12px 18px; border-radius: 18px 18px 4px 18px; box-shadow: 0 16px 30px -8px rgba(224, 122, 63, 0.6);
  animation: bubble 3.6s var(--spring) infinite;
}
@keyframes bubble { 0%, 15% { transform: scale(0); opacity: 0; } 25%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.9); opacity: 0; } }
@media (max-width: 860px) { .analiza { grid-template-columns: 1fr; } .an-art { height: 220px; } }

/* ---------- HELP ---------- */
.emergency {
  max-width: 1200px; margin: 0 auto 26px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #7f1d1d, #b91c1c 50%, #dc2626); color: #fff; border-radius: 24px; padding: 24px 28px; box-shadow: 0 30px 60px -20px rgba(185, 28, 28, 0.6);
}
.emergency > div:nth-child(2) { flex: 1; min-width: 220px; }
.emergency h3 { font-size: 1.5rem; margin-bottom: 4px; }
.emergency .btn.danger { background: #fff; color: #b91c1c; }
.pulse-ring { position: relative; width: 56px; height: 56px; flex: none; }
.pulse-ring span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: ring 2.4s ease-out infinite; }
.pulse-ring span:nth-child(2) { animation-delay: 0.8s; } .pulse-ring span:nth-child(3) { animation-delay: 1.6s; }
.pulse-ring::after { content: "📞"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; }
@keyframes ring { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.help { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.help-card .hi { font-size: 1.8rem; margin-bottom: 10px; display: inline-block; transition: transform 0.4s var(--spring); }
.help-card:hover .hi { transform: scale(1.2) rotate(-8deg); }
.help-card h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.help-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ---------- GLOSSARY ---------- */
.glossary { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.term {
  position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 16px;
  font-weight: 800; font-size: 0.95rem; transition: all 0.3s var(--ease); text-align: left; max-width: 100%;
}
.term .def { display: block; max-height: 0; overflow: hidden; opacity: 0; font-weight: 500; font-size: 0.9rem; color: var(--ink-2); max-width: 320px; transition: max-height 0.4s var(--ease), opacity 0.3s, margin 0.3s; }
.term.open { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.term.open .def { max-height: 160px; opacity: 1; margin-top: 6px; color: color-mix(in srgb, var(--bg) 80%, transparent); }

/* ---------- DISCLAIMER + FOOTER ---------- */
.disclaimer-sec { padding-top: 40px; padding-bottom: 60px; }
.disclaimer { max-width: 1000px; margin: 0 auto; display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: 22px; background: color-mix(in srgb, var(--amber) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.d-icon { font-size: 2rem; }
.disclaimer h3 { font-size: 1.3rem; margin-bottom: 6px; }
.disclaimer p { color: var(--ink-2); font-size: 0.95rem; }
.footer { background: #070c1b; color: #c8cce0; padding: 48px clamp(16px, 4vw, 40px) 26px; position: relative; z-index: 1; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .brand-text { color: #fff; }
.footer p { font-size: 0.92rem; margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; font-weight: 600; opacity: 0.8; }
.foot-links a:hover { opacity: 1; color: var(--gold-2); }
.footer .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.copy { max-width: 1200px; margin: 30px auto 0; font-size: 0.82rem; opacity: 0.6; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; }

/* ---------- SHEET (MODAL) ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 9, 22, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.4s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(760px, 100%); background: var(--bg);
  display: flex; flex-direction: column; box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transform: translateX(105%); transition: transform 0.55s var(--ease);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-head {
  --h: 30;
  position: relative; display: flex; gap: 18px; align-items: center; padding: 28px 28px 22px;
  background: linear-gradient(135deg, hsl(var(--h), 70%, 22%), hsl(calc(var(--h) + 40), 60%, 16%));
  color: #fff; overflow: hidden;
}
.sheet-head::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; border-radius: 50%; background: hsla(var(--h), 90%, 60%, 0.35); filter: blur(30px); }
.sheet-head > * { position: relative; z-index: 1; }
.sheet-head .close { position: absolute; top: 16px; right: 16px; z-index: 2; color: #fff; }
.sheet-emoji { font-size: 2.6rem; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); flex: none; }
.sheet.open .sheet-emoji { animation: wobble 0.8s var(--spring) 0.2s both; }
.sheet-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); padding-right: 40px; }
.sheet-head p { opacity: 0.8; margin: 4px 0 10px; }
.sheet-head .badge.no { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.sheet-head .badge.simple { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.sheet-head .badge.si { background: rgba(248, 113, 113, 0.22); color: #fca5a5; }
.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--surface); scrollbar-width: none; flex: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: 15px 12px; font-weight: 700; font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.tabs button.on { color: var(--ink); }
.tab-ink { position: absolute; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--gold-2), var(--ember)); transition: left 0.35s var(--ease), width 0.35s var(--ease); }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px 28px 40px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); flex: none; }
.pane > * { opacity: 0; transform: translateY(14px); animation: rise 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
.ess { display: grid; gap: 12px; }
.ess-item { display: flex; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ess-item .n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; background: color-mix(in srgb, var(--gold-2) 30%, transparent); color: var(--ink); }
.ess-item b { display: block; margin-bottom: 2px; }
.ess-item p { color: var(--ink-2); font-size: 0.95rem; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold-2), var(--ember), transparent); }
.timeline li { position: relative; display: flex; gap: 18px; padding: 0 0 22px; }
.timeline .k { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--bg); }
.timeline b { display: block; font-size: 1.02rem; margin-top: 5px; }
.timeline p { color: var(--ink-2); font-size: 0.95rem; }
.acc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.3s; }
.acc.open { box-shadow: var(--shadow); }
.acc-q { width: 100%; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: left; border: 0; background: none; padding: 16px 18px; font-weight: 700; font-size: 0.98rem; }
.acc-q .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: transform 0.35s var(--spring), background 0.2s; font-size: 1.1rem; }
.acc.open .pm { transform: rotate(45deg); background: var(--gold-2); color: var(--navy); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 18px 12px; color: var(--ink-2); }
.acc-a .badge { margin: 0 18px 16px; }
.acc.hl { animation: hl 2s var(--ease); }
@keyframes hl { 0%, 40% { box-shadow: 0 0 0 4px var(--gold-2); } }
.lawyer-box { display: grid; gap: 14px; }
.lawyer-box .lb { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.lawyer-box h4 { margin: 0 0 8px; font-size: 1.05rem; }
.lawyer-box ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.laws-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.laws-list li { padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: 0.95rem; }
.where { display: flex; flex-wrap: wrap; gap: 8px; }
.where span { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 0.86rem; }
.pane h4.sub { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
.urgent-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: color-mix(in srgb, var(--red) 11%, transparent); color: var(--red); font-weight: 700; }
.urgent-banner a { color: inherit; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 120;
  background: var(--ink); color: var(--bg); font-weight: 700; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-lg);
  transition: transform 0.45s var(--spring); max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
  .float-card { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calc, .letter-body { grid-template-columns: 1fr; }
  .calc-out, .paper-wrap { position: static; }
  .traffic { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 82%); flex-direction: column; gap: 4px;
    padding: 90px 20px 20px; background: var(--bg); color: var(--ink); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    transform: translateX(105%); transition: transform 0.45s var(--ease); z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 12px 14px; }
  .burger { display: flex; }
  .nav.menu-open { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 560px) {
  .nav-links { width: 100%; }
}
@media (max-width: 560px) {
  .sos { padding: 8px 10px; font-size: 0.78rem; }
  .brand-text { font-size: 1.25rem; }
  .brand-mark svg { width: 34px; height: 34px; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { padding-top: 100px; }
  .hero-art { max-width: 220px; }
  .search { padding-left: 14px; }
  .search kbd { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .stat b { font-size: 1.7rem; }
  .sheet-head { padding: 22px 18px 18px; gap: 14px; }
  .sheet-emoji { width: 58px; height: 58px; font-size: 2rem; border-radius: 16px; }
  .sheet-body { padding: 20px 16px 32px; }
  .myth { height: 230px; }
  .paper { min-height: 0; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- PRINT ---------- */
@media print {
  body.print-sheet > *:not(.sheet) { display: none !important; }
  body.print-sheet .sheet { position: static; }
  body.print-sheet .sheet-backdrop, body.print-sheet .sheet-foot, body.print-sheet .tabs, body.print-sheet .close { display: none !important; }
  body.print-sheet .sheet-panel { position: static; transform: none; width: 100%; box-shadow: none; }
  body.print-sheet .sheet-body { overflow: visible; }
  body.print-sheet .pane > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  body.print-sheet .acc-a { grid-template-rows: 1fr; }
  body.print-letter > * { display: none !important; }
  body.print-letter #printArea { display: block !important; white-space: pre-wrap; font-family: Georgia, serif; font-size: 12pt; }
}
#printArea { display: none; }
