/* =============================================================
   1. Tokens — noche de desierto (nebulosa + dunas)
   ============================================================= */
:root {
  --bg: #0c0a1a;
  --bg-2: #1a1030;
  --surface: rgba(42, 28, 46, .58);
  --surface-solid: #2a1e30;
  --ink: #f5ecdb;
  --ink-soft: #b9a9c4;
  --border: rgba(232, 184, 75, .2);
  --accent: #e8973f;
  --accent-2: #e8b84b;
  --accent-ink: #221207;
  --accent-soft: rgba(232, 151, 63, .16);
  --danger: #ff7a6b;
  --danger-soft: rgba(255, 122, 107, .16);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .45);
  --blur-panel: blur(16px);

  --story-bg-1: #0a0714;
  --story-bg-2: #201230;
  --story-ink: #f7f1e3;
  --story-ink-soft: #bcae9c;
  --story-accent: #e8b84b;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (min-width: 768px) {
  html { zoom: 1.25; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}
body.story-open, body.hub-open { overflow: hidden; height: 100dvh; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; }
::selection { background: var(--accent-2); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* Night desert backdrop — fixed behind all content (AI-generated illustration) */
.night-sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,7,20,.1) 0%, rgba(10,7,20,.22) 55%, rgba(10,7,20,.6) 100%),
    url("assets/desert-night.webp") center 65% / cover no-repeat,
    #0c0a1a;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--surface-solid); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header { position: relative; z-index: 50; padding: .5rem 0; }
.header-inner { display: flex; align-items: center; height: 56px; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.logo-icon { height: 34px; width: auto; display: block; }

/* Language switcher */
.lang-switcher { position: relative; margin-left: auto; }
.lang-switcher--overlay { position: absolute; top: .9rem; right: .9rem; z-index: 21; margin-left: 0; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: .3rem; font: inherit; font-size: .82rem; font-weight: 700;
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: var(--blur-panel); -webkit-backdrop-filter: var(--blur-panel);
  color: var(--ink);
}
.lang-switcher-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-switcher-menu {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 30;
  display: flex; flex-direction: column; min-width: 180px; padding: .4rem;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); max-height: 60vh; overflow-y: auto;
}
.lang-switcher-menu[hidden] { display: none; }
.lang-option {
  font: inherit; font-size: .86rem; text-align: left; padding: .5rem .6rem; border-radius: 8px;
  color: var(--ink); background: transparent;
}
.lang-option:hover { background: var(--accent-soft); }
.lang-option.is-active { color: var(--accent); font-weight: 700; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { padding: 2rem 1.25rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy { max-width: 32rem; }
.hero-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.hero-sub { color: var(--ink-soft); font-size: 1.02rem; margin-top: .6rem; }

/* Tool card */
.tool-card {
  margin: 1.75rem auto 0;
  max-width: 420px;
  width: 100%;
  background: var(--surface);
  backdrop-filter: var(--blur-panel);
  -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  text-align: left;
}

.map-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.3rem; }
.map-holder {
  width: 100%; max-width: 320px; aspect-ratio: 960 / 500;
  background: radial-gradient(80% 90% at 50% 45%, rgba(232,151,63,.07), transparent 70%), rgba(10,7,16,.35);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .4rem;
}
.map-holder svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zone-shape path {
  fill: var(--zone-color, #8a6a4a); stroke: rgba(10,7,16,.55); stroke-width: .6;
  cursor: pointer; transition: filter .15s var(--ease-out), opacity .15s var(--ease-out);
  opacity: .82;
}
.zone-shape:hover path, .zone-shape:focus-visible path { opacity: 1; filter: brightness(1.18); }
.zone-shape.is-selected path { opacity: 1; filter: brightness(1.3) saturate(1.15); stroke: var(--accent-2); stroke-width: 1.1; }
.zone-shape[data-zone="na"]   { --zone-color: #e8973f; }
.zone-shape[data-zone="weu"]  { --zone-color: #e8b84b; }
.zone-shape[data-zone="eeu"]  { --zone-color: #d9924a; }
.zone-shape[data-zone="lac"]  { --zone-color: #e0703f; }
.zone-shape[data-zone="mena"] { --zone-color: #c9944a; }
.zone-shape[data-zone="ssa"]  { --zone-color: #b5622f; }
.zone-shape[data-zone="ea"]   { --zone-color: #f0a95c; }
.zone-shape[data-zone="sa"]   { --zone-color: #d97a4a; }
.zone-shape[data-zone="oce"]  { --zone-color: #e6c15a; }

.zone-picker { display: flex; align-items: center; gap: .6rem; margin-top: .75rem; width: 100%; justify-content: center; }
.zone-arrow {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.zone-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.zone-label { text-align: center; min-width: 0; }
.zone-name { display: block; font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-years { display: block; font-size: .78rem; color: var(--ink-soft); }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; }
.field input[type="date"] {
  font: inherit; padding: .7rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--ink); width: 100%;
  color-scheme: dark;
}
.field-range output { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface-solid); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { width: 100%; padding: .9rem 1.3rem; font-size: 1rem; }

.error-msg { margin-top: 1rem; padding: .75rem 1rem; background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; }

.privacy-badge { max-width: 460px; margin: 1.1rem auto 0; font-size: .84rem; color: var(--ink-soft); }

/* =============================================================
   6. Ad slots
   ============================================================= */
.ad-slot { margin: 2rem auto; min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface); backdrop-filter: var(--blur-panel); -webkit-backdrop-filter: var(--blur-panel); color: var(--ink-soft); }
.ad-slot--banner { max-width: 728px; min-height: 90px; }
.ad-slot--incontent { max-width: 640px; min-height: 250px; }
.ad-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); opacity: .7; }

.ad-dialog { border: none; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-md); max-width: 420px; width: 92vw; }
.ad-dialog::backdrop { background: rgba(6, 4, 12, .65); }
.ad-dialog-inner { position: relative; padding: 2.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-height: 220px; justify-content: center; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); }
.ad-dialog-close { position: absolute; top: .6rem; right: .6rem; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ad-dialog-close:hover { background: var(--border); }
.ad-dialog-continue { margin-top: .5rem; }

.ad-toast { position: fixed; bottom: 1rem; right: 1rem; z-index: 500; width: 260px; min-height: 90px; background: var(--surface-solid); border: 1px dashed var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 1.5rem .9rem .9rem; display: flex; align-items: center; justify-content: center; }
.ad-toast[hidden] { display: none; }
.ad-toast-close { position: absolute; top: .35rem; right: .5rem; font-size: 1rem; color: var(--ink-soft); }
.ad-toast-close:hover { color: var(--ink); }

/* =============================================================
   7. Content sections
   ============================================================= */
.content-section, .hub-inner { padding: 2rem 1.25rem; }
.content-section h2, .hub-inner h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); text-align: center; }
.section-hint { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: .4rem; max-width: 40ch; margin-left: auto; margin-right: auto; }

/* Activity audit */
.audit { margin-top: 1.5rem; }
.audit-body { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 800px) { .audit-body { grid-template-columns: 1fr 1fr; align-items: start; } }

.audit-list { display: flex; flex-direction: column; gap: .6rem; }
.audit-row { background: var(--surface); backdrop-filter: var(--blur-panel); -webkit-backdrop-filter: var(--blur-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.audit-row-top { display: flex; align-items: center; gap: .6rem; }
.audit-check { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.audit-icon { font-size: 1.1rem; flex-shrink: 0; }
.audit-name { font-weight: 700; font-size: .92rem; flex: 1; }
.audit-value { font-size: .86rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.audit-swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.audit-slider-row { display: flex; align-items: center; gap: .6rem; padding-left: 1.75rem; }
.audit-slider-row input[type="range"] { flex: 1; height: 20px; }
.audit-hours { font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; width: 3.4rem; text-align: right; }
.audit-row.is-disabled { opacity: .55; }

.audit-row--custom .audit-row-top { flex-wrap: wrap; }
.audit-custom-name, .audit-custom-emoji {
  font: inherit; background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--ink); padding: .45rem .6rem;
}
.audit-custom-name { flex: 1; min-width: 6rem; font-weight: 700; font-size: .92rem; }
.audit-custom-emoji { width: 3.2rem; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.audit-custom-emoji::placeholder { opacity: .35; }
.audit-custom-name:focus, .audit-custom-emoji:focus { border-color: var(--accent); }

.audit-remove-btn {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: transparent; color: var(--ink-soft); font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.audit-remove-btn:hover { background: var(--danger-soft); color: var(--danger); }

.audit-color-picker { display: flex; flex-wrap: wrap; gap: .4rem; padding-left: 1.75rem; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.color-swatch.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

.unit-toggle--small { display: flex; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 999px; padding: 2px; flex-shrink: 0; }
.unit-toggle--small .unit-btn { padding: .3rem .6rem; font-size: .74rem; }

.audit-add-tile {
  border: 2px dashed var(--border); border-radius: var(--radius-sm); background: transparent;
  color: var(--ink-soft); font-size: 1.6rem; line-height: 1; padding: .9rem; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.audit-add-tile:hover { border-color: var(--accent); color: var(--accent); }

.audit-viz { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.unit-toggle { display: flex; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.unit-btn { padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.unit-btn.is-active { background: var(--accent); color: var(--accent-ink); }
.audit-viz canvas { max-width: 100%; }
.audit-free { font-size: .88rem; color: var(--ink-soft); text-align: center; }
.audit-free strong { color: var(--ink); }
.audit-overflow { font-size: .85rem; font-weight: 700; color: var(--danger); text-align: center; }

/* Legal pages (privacidad / aviso-legal) */
.legal-page { max-width: 720px; padding: 3rem 1.25rem; }
.legal-hero { text-align: center; margin-bottom: 2rem; }
.legal-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.legal-card {
  background: var(--surface); backdrop-filter: var(--blur-panel); -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 1.25rem;
}
.legal-card h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.legal-card p { color: var(--ink-soft); }
.legal-card p + p { margin-top: .8rem; }
.legal-card p:first-child:empty { display: none; }
.legal-card strong { color: var(--ink); }

/* =============================================================
   8. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 1.75rem 0; margin-top: 1rem; }
.footer-inner { display: flex; flex-direction: column; gap: .75rem; align-items: center; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.footer-nav { display: flex; gap: 1.25rem; }
@media (min-width: 540px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* =============================================================
   8b. HUB — post-submit results screen (muted, no photo, high contrast)
   ============================================================= */
.hub { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; }
.hub[hidden] { display: none; }
.hub-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 55% at 50% 0%, var(--accent-soft), transparent 65%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
}
.hub-close {
  position: absolute; top: .9rem; left: .9rem; z-index: 20;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-solid); border: 1px solid var(--border); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.hub-close:hover { border-color: var(--accent); color: var(--accent); }
.hub-scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hub-inner { max-width: 880px; padding-top: 3.5rem; padding-bottom: 3rem; }
.hub-inner .hero-eyebrow { text-align: center; }

.wrap-cta {
  max-width: 560px; margin: 2rem auto 0; text-align: center;
  background: var(--surface); backdrop-filter: var(--blur-panel); -webkit-backdrop-filter: var(--blur-panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem;
}
.wrap-cta h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.wrap-cta p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.3rem; }
.wrap-cta .btn { max-width: 320px; margin: 0 auto; }

/* =============================================================
   9. STORY — full-screen immersive overlay
   ============================================================= */
.story {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 100% at 50% 0%, var(--story-bg-2) 0%, var(--story-bg-1) 65%);
  color: var(--story-ink);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.story[hidden] { display: none; }

.story-progress { display: flex; gap: 4px; padding: .8rem 3.4rem 0 3.4rem; position: relative; z-index: 15; }
.story-progress-seg { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.story-progress-seg-fill { display: block; height: 100%; width: 0%; background: var(--story-accent); }
.story-progress-seg.is-done .story-progress-seg-fill { width: 100%; }
.story-progress-seg.is-active .story-progress-seg-fill { animation: story-fill linear forwards; animation-duration: var(--story-duration, 5000ms); }
.story-progress-seg.is-paused .story-progress-seg-fill { animation-play-state: paused; }
@keyframes story-fill { from { width: 0%; } to { width: 100%; } }

.story-close {
  position: absolute; top: .9rem; left: .9rem; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--story-ink);
  display: flex; align-items: center; justify-content: center;
}
.story-close:hover { background: rgba(255,255,255,.2); }

.story-pause {
  position: absolute; top: .9rem; right: .9rem; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--story-ink);
  display: flex; align-items: center; justify-content: center;
}
.story-pause:hover { background: rgba(255,255,255,.2); }

.story-viewport { position: relative; flex: 1; overflow: hidden; }
.story-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; text-align: center; padding: 2.5rem 1.75rem;
  opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .35s var(--ease-out), transform .4s var(--ease-out);
}
.story-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.story-slide--final { overflow-y: auto; justify-content: flex-start; padding-top: 4.5rem; }

.story-slide-icon { font-size: 2.4rem; line-height: 1; }
.story-slide-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--story-accent); }
.story-slide-number { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 13vw, 5rem); color: var(--story-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.story-slide-title { font-family: var(--serif); font-size: clamp(1.3rem, 4.2vw, 1.9rem); max-width: 22rem; color: var(--story-ink); }
.story-slide-sub { color: var(--story-ink-soft); font-size: 1rem; max-width: 26rem; }
.story-slide-free { color: var(--story-ink-soft); font-size: .95rem; max-width: 26rem; }
.story-slide-free strong { color: var(--ink); }
.story-slide-free--overflow { color: var(--accent); font-weight: 700; }
.story-slide canvas { max-width: 100%; height: auto; }
.story-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 4vw, 1.6rem); max-width: 24rem; color: var(--story-ink); }
.story-quote-author { color: var(--story-accent); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.story-summary {
  list-style: none; display: flex; flex-direction: column; gap: .4rem;
  max-width: 22rem; width: 100%; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 1rem 1.1rem; font-size: .92rem; color: var(--story-ink);
}
.story-summary-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3em; vertical-align: middle; }

.story-final-grid { max-width: 100%; height: auto; }

.design-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; width: 100%; max-width: 22rem; margin: 0 auto; }
.design-option {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .6rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.design-option:hover, .design-option:focus-visible { border-color: var(--story-accent); transform: translateY(-2px); }
.design-option canvas { width: 100%; height: auto; border-radius: 8px; display: block; }
.design-option span { font-size: .8rem; font-weight: 700; color: var(--story-ink-soft); }

.story-heart { animation: story-pulse 1.1s ease-in-out infinite; }
@keyframes story-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }

.story-final-actions { position: relative; z-index: 30; display: flex; flex-direction: column; gap: .75rem; width: 100%; max-width: 320px; margin-top: .5rem; }
.story-btn { width: 100%; padding: .9rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.story-btn--primary { background: var(--story-accent); color: #1a1206; }
.story-btn--ghost { background: rgba(255,255,255,.08); color: var(--story-ink); border: 1px solid rgba(255,255,255,.18); }
.story-btn--primary:hover, .story-btn--ghost:hover { transform: translateY(-1px); }

.story-nav { position: absolute; inset: 0; display: flex; z-index: 5; pointer-events: none; }
.story-zone { flex: 1; pointer-events: auto; opacity: 0; }
.story-zone[data-inert="true"] { pointer-events: none; }

/* =============================================================
   10. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-progress-seg.is-active .story-progress-seg-fill { animation: none; width: 100%; }
  .story-heart { animation: none; }
  .story-slide { transition: opacity .15s linear; transform: none !important; }
}
