/* ==========================================================================
   TU LIBRO DE VIDA: Estilos
   Sobrio y editorial: papel cálido, tinta y un solo color de acento. Sin animaciones.
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --line: #e6dfd2;
  --ink: #16110c;
  --text: #1f1a14;
  --muted: #675e52;
  --accent: #a4480b;
  --accent-dark: #833a09;
  --accent-soft: #fbeedd;

  --shadow-card: 0 1px 2px rgba(30, 20, 10, 0.05), 0 8px 24px -12px rgba(30, 20, 10, 0.12);
  --shadow-book: 0 24px 40px -18px rgba(20, 10, 5, 0.5), 0 8px 14px -8px rgba(20, 10, 5, 0.3);
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(164, 72, 11, 0.45); outline-offset: 2px; }

.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }

/* ================= Header ================= */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-container { max-width: var(--wrap); margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon-img { width: 30px; height: 30px; }
.brand-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.header-quota {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(164, 72, 11, 0.08);
}
.header-link { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.header-link:hover { color: var(--accent); }

/* ================= Botones ================= */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: #cbbfa9; }
.btn-ghost { background: transparent; color: var(--muted); padding-left: 0.4rem; padding-right: 0.4rem; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ================= Hero ================= */
.hero { background: radial-gradient(800px 420px at 80% 40%, #3a2412 0%, transparent 70%), var(--ink); color: #f6efe3; }
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: center; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #d9a35e; margin-bottom: 1.1rem; }
.hero-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; font-weight: 500; color: #f0c27f; }
.hero-lead { font-size: 1.1rem; color: #d6cab6; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-privacy { font-size: 0.85rem; color: #a3957f; margin-top: 1rem; }
.hero .btn-primary { background: #c8641a; }
.hero .btn-primary:hover { background: #b0560f; }
.hero-book { position: relative; width: 400px; height: 400px; }
.hero-cover { position: absolute; width: 230px; aspect-ratio: 2 / 3; top: 50%; left: 50%; }
.hero-cover-1, .hero-cover-2 { width: 190px; filter: brightness(0.7) saturate(0.85); }
.hero-cover-1 { transform: translate(-112%, -48%) rotate(-7deg); }
.hero-cover-2 { transform: translate(12%, -52%) rotate(7deg); }
.hero-cover-3 { transform: translate(-50%, -50%); z-index: 2; }
.hero-cover-3 .cover { box-shadow: 0 30px 50px -18px rgba(0,0,0,0.8), 0 10px 20px -8px rgba(0,0,0,0.5); }

/* ================= Cubierta ================= */
.cover {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-book);
  isolation: isolate;
}
.cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,0.38), rgba(255,255,255,0.1) 60%, rgba(0,0,0,0.15)); z-index: 2; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cover-frame { position: absolute; inset: 4% 4% 4% 8%; border: 1px solid; border-radius: 4px; z-index: 1; pointer-events: none; }
.cover-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 11% 9% 9% 13%; container-type: inline-size; }
.cover-genre { font-size: max(0.55rem, 3.4cqi); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.cover-middle { display: flex; flex-direction: column; align-items: center; }
.cover-title { font-family: var(--font-serif); font-weight: 800; font-size: 11cqi; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.cover-sub { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 4.6cqi; line-height: 1.35; opacity: 0.9; margin-top: 4cqi; text-wrap: balance; }
.cover-emblem { width: 15cqi; height: 15cqi; margin-top: 7cqi; }
@container (max-width: 190px) { .cover-sub { display: none; } .cover-emblem { margin-top: 9cqi; } }
.cover-author { font-size: max(0.55rem, 4cqi); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }

/* ================= Estructura ================= */
.app-container { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 1rem; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.section-head { max-width: 640px; margin: 0 0 1.8rem; }
.section-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; }
.section-lead { color: var(--muted); margin-top: 0.4rem; }

.step-card { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem; box-shadow: var(--shadow-card); }
.step-card-wide { max-width: none; }
.step-title { font-family: var(--font-serif); font-weight: 800; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.35rem; text-wrap: balance; }
.step-desc { color: var(--muted); margin-bottom: 1.6rem; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ================= Temáticas ================= */
.themes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.theme-card {
  border: 0; text-align: left; cursor: pointer;
  border-radius: 12px;
  padding: 1.2rem 1.2rem 1.25rem 1.4rem;
  min-height: 150px;
  display: flex; flex-direction: column; gap: 0.9rem;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 20px -14px rgba(20, 10, 5, 0.7);
}
.theme-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: rgba(0,0,0,0.25); }
.theme-card:hover { box-shadow: 0 0 0 3px rgba(164, 72, 11, 0.35), 0 10px 20px -14px rgba(20, 10, 5, 0.7); }
.theme-icon { width: 26px; height: 26px; display: block; }
.theme-icon svg { width: 100%; height: 100%; }
.theme-text { display: flex; flex-direction: column; gap: 0.25rem; }
.theme-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.theme-desc { font-size: 0.86rem; line-height: 1.45; }

/* ================= Paso 2 ================= */
.protagonist-layout { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 2.5rem; align-items: center; }
.protagonist-preview { width: 180px; aspect-ratio: 2 / 3; }
.field-group { margin-bottom: 1.5rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.optional { font-weight: 400; color: var(--muted); }
.input-field { width: 100%; padding: 0.9rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); font: inherit; font-size: 1.05rem; color: var(--text); }
.input-field:focus { outline: none; border-color: var(--accent); background: #fff; }
.chip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.chip { padding: 0.75rem 0.5rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.chip:hover { border-color: #cbbfa9; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ================= Cuestionario ================= */
.quiz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.chapter-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.quiz-count { font-size: 0.85rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-progress { height: 4px; background: #ece4d6; border-radius: 99px; overflow: hidden; margin-bottom: 1.6rem; }
.quiz-progress span { display: block; height: 100%; background: var(--accent); }
.quiz-question { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.25; margin-bottom: 1.3rem; text-wrap: balance; }
.quiz-options { display: flex; flex-direction: column; gap: 0.55rem; }
.quiz-option-btn { width: 100%; display: flex; align-items: center; gap: 0.9rem; text-align: left; padding: 0.95rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 1rem; line-height: 1.4; cursor: pointer; touch-action: manipulation; }
.quiz-option-btn:hover { border-color: var(--accent); background: #fff; }
.quiz-option-bullet { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 0.82rem; color: var(--accent); }
.quiz-option-btn:hover .quiz-option-bullet { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ================= Escribiendo ================= */
.writing-screen { text-align: left; }
.writing-bar { height: 4px; background: #ece4d6; border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.writing-bar span { display: block; height: 100%; width: 5%; background: var(--accent); }
.writing-steps { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; color: var(--muted); }
.writing-steps li { padding-left: 1.6rem; position: relative; }
.writing-steps li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 0.9em; height: 0.9em; border-radius: 50%; border: 1.5px solid #cbbfa9; }
.writing-steps li.done { color: var(--text); }
.writing-steps li.done::before { background: var(--accent); border-color: var(--accent); }

/* ================= Resultado ================= */
.result-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 620px);
  grid-template-areas: "intro intro" "side main";
  justify-content: center;
  gap: 2rem 3rem;
}
.result-intro { grid-area: intro; max-width: 820px; }
.result-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.result-sub { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin-top: 0.45rem; text-wrap: balance; }
.result-side { grid-area: side; position: sticky; top: 1.5rem; align-self: start; display: flex; flex-direction: column; gap: 1.4rem; }
.book-front { width: 100%; aspect-ratio: 2 / 3; }
.result-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.result-note { text-align: center; font-size: 0.85rem; color: var(--muted); }
.result-main { grid-area: main; display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }

.back-cover { border-radius: 4px; padding: 2.4rem 2.6rem 1.8rem; box-shadow: var(--shadow-book); display: flex; flex-direction: column; min-height: 450px; }
.back-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.back-blurb { display: flex; flex-direction: column; gap: 0.95rem; font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.7; }
.back-footer { margin-top: auto; padding-top: 1.6rem; display: flex; justify-content: space-between; align-items: flex-end; }
.back-meta { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.barcode { display: flex; align-items: flex-end; gap: 1px; height: 34px; padding: 4px 5px; background: #fff; border-radius: 2px; }
.barcode i { display: block; background: #111; height: 100%; }

.result-main .ad-slot, .result-layout .ad-slot { margin: 0; padding: 0; max-width: none; }

.rec-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.4rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.rec-cover { width: 96px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-book); background: #ddd; }
.rec-title { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.2; }
.rec-author { color: var(--muted); margin: 0.15rem 0 0.7rem; font-size: 0.92rem; }
.rec-why { margin-bottom: 0.75rem; font-size: 0.97rem; }

/* Tus libros */
.shelf { display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: 0.8rem; }
.shelf-item { flex: 0 0 auto; width: 120px; display: flex; flex-direction: column; gap: 0.4rem; }
.shelf-open { border: 0; background: none; cursor: pointer; width: 120px; aspect-ratio: 2 / 3; padding: 0; }
.shelf-del { border: 0; background: none; color: var(--muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; align-self: flex-start; }
.shelf-del:hover { color: var(--text); }

/* ================= Secciones de la portada ================= */
.steps-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.how-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.how-step h3 { font-family: var(--font-serif); font-size: 1.15rem; margin: 0.8rem 0 0.3rem; }
.how-step p { color: var(--muted); font-size: 0.95rem; }

.quota-pill { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--accent-soft); border: 1.5px solid var(--accent); font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.step-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }

.examples-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.example-book { aspect-ratio: 2 / 3; }

.faq { max-width: 760px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 1.1rem; color: var(--muted); max-width: 640px; }

/* Banda de color para dar ritmo a la portada */
.band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 3.5rem; }
.band .section { padding-bottom: 3.5rem; }

.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: start; }
.faq-section .section-head { margin: 0; }
.faq-section .faq { max-width: none; }

/* ================= Anuncios ================= */
.ad-slot { max-width: 970px; margin: 2.5rem auto; padding: 0 1.25rem; text-align: center; }
.ad-slot:empty { display: none; }
.ad-label { display: block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a69a88; margin-bottom: 0.3rem; }
.ad-slot ins { display: block; min-height: 100px; }
.ad-placeholder { min-height: 100px; display: grid; place-items: center; border: 1.5px dashed #d8cdb9; border-radius: 10px; color: #a69a88; font-size: 0.8rem; }

/* ================= Toast y modal ================= */
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 0.8rem 1.15rem; border-radius: 10px; font-size: 0.92rem; z-index: 100000; max-width: calc(100vw - 2rem); text-align: center; display: none; }
.toast.show { display: block; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 10, 6, 0.6); z-index: 9999; display: grid; place-items: center; padding: 1.2rem; }
.modal { background: #fff; border-radius: 16px; padding: 2rem; max-width: 440px; width: 100%; text-align: center; }
.modal h3 { font-family: var(--font-serif); font-size: 1.45rem; margin: 0.6rem 0 0.5rem; }
.modal p { color: var(--muted); margin-bottom: 1.3rem; }
.modal-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.modal-ic { width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-container { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.25rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.3rem; margin-bottom: 0.8rem; }
.footer-links a, .footer-cookie-btn { color: var(--muted); text-decoration: none; font-size: 0.88rem; background: none; border: 0; cursor: pointer; padding: 0; }
.footer-links a:hover, .footer-cookie-btn:hover { color: var(--accent); }
.footer-copy { font-size: 0.82rem; color: #8f8574; }

/* ================= Páginas de contenido ================= */
.legal-page-container { max-width: 780px; margin: 2.5rem auto; padding: 0 1.25rem; }
.legal-page-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2.4rem 2.2rem; line-height: 1.75; }
.legal-page-card h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.15; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.015em; }
.legal-page-card h2 { font-family: var(--font-serif); font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.legal-page-card h3 { font-size: 1.02rem; margin: 1.3rem 0 0.4rem; color: var(--accent); }
.legal-page-card p, .legal-page-card li { margin-bottom: 0.85rem; }
.legal-page-card ul, .legal-page-card ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-page-card a { color: var(--accent); font-weight: 500; }
.legal-page-card blockquote { border-left: 3px solid var(--accent); background: var(--surface-2); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1rem 0 1.3rem; font-family: var(--font-serif); font-style: italic; }
.legal-page-card .lead { font-size: 1.1rem; color: var(--muted); }
.legal-page-card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article-cta { margin-top: 2rem; padding: 1.5rem; border-radius: 12px; background: var(--ink); text-align: center; }
.article-cta p { color: #e3d6c1; }
.article-cta a.btn-primary { color: #fff; text-decoration: none; }

/* ================= Cookies ================= */
.cookie-banner { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(620px, calc(100vw - 1.5rem)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: 0 20px 44px -14px rgba(0,0,0,0.35); z-index: 99999; display: flex; flex-direction: column; gap: 0.85rem; }
.cookie-banner-text { font-size: 0.88rem; line-height: 1.5; }
.cookie-banner-link { color: var(--accent); font-weight: 600; margin-left: 0.2rem; }
.cookie-banner-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.cookie-banner-actions button { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1rem; padding: 3.2rem 1.25rem 2.4rem; }
  .hero-copy { max-width: 620px; }
  .hero-book { width: 320px; height: 300px; margin: 0 auto; }
  .hero-cover { width: 180px; }
  .hero-cover-1, .hero-cover-2 { width: 150px; }
  .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .examples-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 1.2rem; }

  .result-layout { grid-template-columns: minmax(0, 620px); grid-template-areas: none; gap: 1.6rem; }
  .result-intro { grid-area: auto; }
  .result-side, .result-main { display: contents; }
  .result-intro { order: 1; text-align: center; margin: 0 auto; }
  .book-front { order: 2; width: min(280px, 72vw); margin: 0 auto; }
  .back-cover { order: 3; min-height: 0; }
  .result-actions { order: 4; max-width: 420px; width: 100%; margin: 0 auto; }
  .result-note { order: 5; }
  .ad-slot-inline { order: 6; }
  .rec-card { order: 7; }
}

@media (max-width: 680px) {
  .header-container { padding: 0.7rem 1rem; }
  .brand-title { font-size: 1.02rem; }
  .header-quota { font-size: 0.78rem; padding: 0.22rem 0.65rem; border-width: 1.5px; }
  .header-link { font-size: 0.82rem; }
  .hero-inner { padding: 2.4rem 1rem 1.2rem; }
  .hero-title { font-size: 2.05rem; }
  .hero-lead { font-size: 1rem; }
  .hero .btn-primary { width: 100%; }
  .hero-book { width: 290px; height: 240px; }
  .hero-cover { width: 140px; }
  .hero-cover-1, .hero-cover-2 { width: 116px; }

  .app-container { padding: 1.4rem 1rem 0.5rem; }
  .section { padding: 2.6rem 1rem 0.5rem; }
  .band { margin-top: 2.6rem; }
  .band .section { padding-bottom: 2.6rem; }
  .step-card { padding: 1.4rem 1.1rem; border-radius: 14px; }
  .step-title { font-size: 1.4rem; }
  .themes-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .theme-card { min-height: 0; flex-direction: row; align-items: center; gap: 0.9rem; padding: 0.95rem 1rem 0.95rem 1.3rem; }
  .theme-name { font-size: 1.08rem; }
  .theme-desc { font-size: 0.8rem; }
  .protagonist-layout { grid-template-columns: 1fr; }
  .protagonist-preview { display: none; }
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-actions .btn-primary { flex: 1; }
  .examples-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }

  .quiz-option-btn { padding: 0.85rem 0.9rem; font-size: 0.96rem; gap: 0.7rem; }
  .quiz-option-bullet { width: 28px; height: 28px; }

  .result-title { font-size: 1.9rem; }
  .back-cover { padding: 1.6rem 1.25rem 1.3rem; }
  .back-blurb { font-size: 0.97rem; line-height: 1.62; }
  .rec-card { grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; }
  .rec-cover { width: 76px; }
  .rec-title { font-size: 1.15rem; }

  .legal-page-card { padding: 1.6rem 1.2rem; }
  .cookie-banner-actions button { flex: 1; }
}
