:root {
  --navy: #0f2747;
  --navy-2: #163a68;
  --ink: #1b2330;
  --muted: #5b6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --accent: #c8102e;
  --gold: #b8913b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 39, 71, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; position: relative; }
.brand-mark::after { content: ""; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.brand-text strong { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.brand-text span { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); }
.nav a.active { color: var(--navy); background: var(--bg-soft); }
.nav a.btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 1rem; color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 2px solid var(--navy); cursor: pointer; font-size: .98rem; font-family: var(--sans); transition: transform .15s, background .15s; }
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.whatsapp { background: #1f9d55; border-color: #1f9d55; }
.btn.whatsapp:hover { background: #18834a; }
.btn.small { padding: 8px 14px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e9eef8 0%, transparent 60%), var(--bg); padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero .lead { font-size: 1.2rem; }

/* Generated book cover */
.cover { aspect-ratio: 2 / 3; width: 100%; max-width: 260px; border-radius: 4px 12px 12px 4px; color: #fff; padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 25px 50px rgba(15,39,71,.28), inset 6px 0 0 rgba(0,0,0,.18); position: relative; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 45%); }
.cover .c-top { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; position: relative; }
.cover .c-title { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; line-height: 1.05; position: relative; }
.cover .c-sub { font-size: .78rem; opacity: .9; margin-top: 10px; line-height: 1.4; position: relative; }
.cover .c-bar { height: 3px; width: 46px; background: var(--gold); margin-bottom: 14px; position: relative; }
.cover .c-foot { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; position: relative; }
.cover-img { width: 100%; max-width: 260px; border-radius: 4px 12px 12px 4px; box-shadow: 0 25px 50px rgba(15,39,71,.28); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .num { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line); }
.pill.ok { background: #e8f6ee; color: #136c3b; border-color: #cfead9; }
.pill.soon { background: #fdf3e2; color: #8a5a0b; border-color: #f3e0bd; }

/* Book list */
.book { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: 0; }
.book .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.book .price { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.book-sub { color: var(--muted); font-style: italic; margin-top: -4px; }

/* Founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.portrait { aspect-ratio: 4/5; width: 100%; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; box-shadow: var(--shadow); object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 70px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; color: var(--navy); }

/* Bank box */
.bank { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.bank h3 { margin-bottom: .2em; }
.bank .note { color: var(--muted); font-size: .92rem; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.bank-row span { color: var(--muted); font-size: .9rem; }
.bank-row code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; color: var(--ink); word-break: break-all; }
.copy { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: .8rem; cursor: pointer; color: var(--navy); }

/* Form */
form.order { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd6e2; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(22,58,104,.18); border-color: var(--navy-2); }
.field small { color: var(--muted); display: block; margin-top: 4px; font-size: .84rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { font-size: .9rem; color: var(--accent); min-height: 1.2em; }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #2c3645; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* CTA band */
.band { background: var(--navy); color: #dfe7f3; padding: 64px 0; }
.band h2 { color: #fff; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Notice */
.notice { background: #fdf3e2; border: 1px solid #f3e0bd; color: #6b4708; border-radius: 10px; padding: 14px 16px; font-size: .94rem; }

/* Footer */
.site-footer { background: #0b1d36; color: #aab6c8; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #dfe7f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-weight: 600; margin: 0 0 12px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .founder { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .cover, .hero-art .cover-img { max-width: 200px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .founder .portrait { max-width: 260px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .brand-text span { display: none; }
  .book { grid-template-columns: 1fr; gap: 20px; }
  .book .cover, .book .cover-img { max-width: 180px; }
  .row-2 { grid-template-columns: 1fr; }
}
.cover.cover-sm { max-width: 110px; padding: 12px 10px; }
.cover.cover-sm .c-title { font-size: 1.05rem; }
.cover.cover-sm .c-sub, .cover.cover-sm .c-top, .cover.cover-sm .c-foot { font-size: .5rem; }
.cover.cover-sm .c-bar { width: 22px; margin-bottom: 6px; }
.brand-logo { height: 42px; width: auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-soft); min-width: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.stat span { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
