:root {
  --bg: #F3EFE7;
  --bg-light: #FAF8F3;
  --text: #171714;
  --muted: #706C64;
  --border: #D6D0C5;
  --dark: #171714;
  --accent: #9E2626;
  --accent-dark: #7d1e1e;
  --white: #fffdf8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1240px;
  --radius: 22px;
  --space: clamp(4rem, 8vw, 8rem);
  --shadow: 0 24px 70px rgba(23, 23, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--dark); color: var(--white); padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: var(--space) 0; }
.section-head { max-width: 780px; margin-bottom: 2.5rem; }
.center { text-align: center; }

h1, h2, h3, h4 { margin: 0 0 1rem; line-height: .98; letter-spacing: -.025em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(4rem, 10vw, 8.8rem); max-width: 920px; }
h2 { font-size: clamp(2.55rem, 5.8vw, 5.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { color: var(--muted); font-weight: 500; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 680px; color: #3a3832; }
.eyebrow {
  color: var(--accent); text-transform: uppercase; letter-spacing: .13em;
  font-size: .76rem; font-weight: 700; margin-bottom: 1rem;
}
.small-note, .trust-line { color: var(--muted); font-size: .92rem; }
.order-note { max-width: 760px; margin: 1rem auto 0; color: var(--text); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .85rem 1.25rem; border-radius: 999px;
  background: var(--accent); color: white; border: 1px solid var(--accent);
  font-weight: 700; cursor: pointer; transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--bg-light); color: var(--text); border-color: var(--text); }
.btn-small { min-height: 40px; padding: .6rem 1rem; font-size: .9rem; }
.btn-light { background: var(--bg-light); color: var(--text); border-color: var(--bg-light); }

.site-header {
  position: sticky; top: 0; z-index: 50; padding: .75rem 0;
  background: rgba(243, 239, 231, .82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(214,208,197,.65);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-block;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 1px;
}

.brand-mark::before {
  width: 16px;
  height: 5px;
}

.brand-mark::after {
  width: 5px;
  height: 16px;
}
.nav-menu { display: flex; align-items: center; gap: 1.25rem; font-size: .92rem; }
.language-switcher { display: inline-flex; gap: .25rem; padding: .2rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(250,248,243,.7); }
.language-switcher a { border: 0; background: transparent; border-radius: 999px; padding: .35rem .5rem; font: 700 .75rem var(--sans); color: var(--muted); }
.language-switcher a.is-active { background: var(--text); color: var(--bg-light); }
.nav-menu a:not(.btn) { color: #37342f; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s ease; }

.hero { padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-grid, .two-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero-grid { align-items: start; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.hero-visual { position: relative; min-height: 520px; display: flex; align-items: flex-start; }
.book-visual-card, .story-page-card, .voice-card, .memory-inbox-card, .note-card, .mini-card, .price-card, .output-card, .trust-block, .quote {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius);
}
.book-visual-card { width: 54%; box-shadow: var(--shadow); padding: .8rem; transform: rotate(-3deg); }
.book-visual-card img { border-radius: calc(var(--radius) - 8px); width: 100%; height: auto; object-fit: contain; background: #ddd4c5; }
.output-card img, .rounded-img { border-radius: calc(var(--radius) - 8px); width: 100%; height: 100%; object-fit: cover; background: #ddd4c5; }
.story-page-card { position: absolute; right: 0; bottom: 0; width: 68%; padding: .75rem; box-shadow: var(--shadow); }
.story-page-card img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; background: #e8e0d4; }
.intro { background: var(--bg-light); border-block: 1px solid var(--border); }
.steps, .card-grid, .pricing-grid, .output-grid, .trust-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.step { border-top: 1px solid var(--text); padding-top: 1.25rem; }
.step span { color: var(--accent); font-weight: 800; }
.step h3 { font-family: var(--serif); font-size: 2.4rem; }
.step p, .mini-card p, .price-card p, .output-card li { color: var(--muted); }

.demo { background: var(--bg-light); }
.transformation { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
.note-card { padding: 1.4rem; }
.note-card p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.arrow { display: none; font-size: 2rem; color: var(--accent); text-align: center; }
.transformation img { border-radius: var(--radius); min-height: 260px; object-fit: cover; background: #ddd4c5; }

.voice-card { padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.mic { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: white; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; }
.timer { font-weight: 800; letter-spacing: .08em; }
.waveform { display: flex; justify-content: center; align-items: center; gap: .45rem; height: 76px; margin: 1rem 0; }
.waveform span { width: 7px; border-radius: 999px; background: var(--accent); height: var(--h, 32px); opacity: .85; }
.waveform span:nth-child(1){--h:22px}.waveform span:nth-child(2){--h:46px}.waveform span:nth-child(3){--h:64px}.waveform span:nth-child(4){--h:36px}.waveform span:nth-child(5){--h:58px}.waveform span:nth-child(6){--h:28px}.waveform span:nth-child(7){--h:48px}
.transcript, .dialogue { color: var(--muted); }
.dialogue { border-left: 2px solid var(--accent); padding-left: 1rem; margin-top: 1.5rem; }

.style-control, .product-preview { background: var(--bg-light); border-block: 1px solid var(--border); }
.controls { display: flex; flex-wrap: wrap; gap: .75rem; }
.controls button, .app-actions button {
  border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: .75rem 1rem; font: inherit; cursor: pointer;
}
.controls button:hover, .app-actions button:hover { border-color: var(--accent); color: var(--accent); }
.check-list { padding-left: 1.1rem; color: var(--muted); }
.output-card { overflow: hidden; padding: 1rem; }
.output-card img { aspect-ratio: 4/3; margin-bottom: 1.25rem; }
.output-card ul, .price-card ul { padding-left: 1.15rem; color: var(--muted); }

.dark { background: var(--dark); color: var(--bg-light); }
.dark .eyebrow { color: #dfb6b6; }
.dark .section-head p, .dark .privacy-note, .dark .trust-line { color: #c7c0b5; }
.trust-block { background: #211f1b; border-color: #3d3931; padding: 1.5rem; }
.trust-block p { color: #c7c0b5; }
.privacy-note { max-width: 900px; margin-top: 2rem; font-size: 1.1rem; }

.mini-card, .price-card, .quote { padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease; }
.mini-card:hover, .price-card:hover, .output-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(23,23,20,.08); }
.gift-panel { background: var(--bg-light); border: 1px solid var(--border); border-radius: calc(var(--radius) + 10px); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; align-items: center; }

.memory-inbox-card { padding: 1.25rem; box-shadow: var(--shadow); }
.app-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.memory-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.memory-list span, .chapters p { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: .75rem; margin: 0; }
.chapters { display: grid; gap: .5rem; border-top: 1px solid var(--border); padding-top: 1rem; }

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.recommended { border-color: var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: white; border-radius: 999px; padding: .3rem .7rem; font-size: .75rem; font-weight: 800; }
.price { font-family: var(--serif); font-size: 3.2rem; color: var(--text) !important; line-height: 1; margin: .4rem 0; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card.selected { outline: 3px solid rgba(158,38,38,.18); transform: translateY(-5px); }
.quote { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.quote cite { display: block; margin-top: 1rem; font-family: var(--sans); color: var(--muted); font-size: .9rem; font-style: normal; }

.accordion { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: transparent; border: 0; padding: 1.2rem 0; text-align: left; font: 700 1rem var(--sans); color: var(--text); cursor: pointer;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--accent); }
.faq-question[aria-expanded="true"]::after { content: '–'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .28s ease; color: var(--muted); }
.faq-answer p { padding-bottom: 1.2rem; }

.final-cta { text-align: center; }
.final-cta .btn { margin: 1rem 0; }
.site-footer { padding: 3rem 0; background: var(--bg-light); border-top: 1px solid var(--border); color: var(--muted); }
.footer-grid { display: grid; gap: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem 1.3rem; }
.footer-links a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .steps, .card-grid, .pricing-grid, .output-grid, .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.six { grid-template-columns: repeat(3, 1fr); }
  .transformation { grid-template-columns: 1fr auto 1fr .9fr; }
  .arrow { display: block; }
  .gift-panel { grid-template-columns: 1fr auto; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 64px 1rem auto 1rem; display: grid; gap: .2rem;
    background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .8rem; box-shadow: var(--shadow); transform-origin: top; transform: scaleY(.96); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; transform: scaleY(1); }
  .nav-menu a { padding: .7rem; }
  .nav-menu .btn { margin-top: .4rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-visual { min-height: 390px; }
  .book-visual-card { width: 62%; }
  .story-page-card { width: 76%; }
  .hero-actions .btn { width: 100%; }
  .price-card, .mini-card, .quote, .trust-block { padding: 1.2rem; }
}

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