:root {
  --ink: #0f1419;
  --ink-2: #2a3340;
  --mute: #5c6775;
  --line: #dfe3ea;
  --paper: #f4f1eb;
  --paper-2: #fffdf9;
  --navy: #0b1f3a;
  --navy-2: #143056;
  --gold: #c9a227;
  --gold-2: #e4c15a;
  --sky: #1351b4;
  --radius: 14px;
  --max: 1120px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 31, 58, .94);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
  color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem;
}
.logo-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,.22);
}
.nav { display: flex; flex-wrap: wrap; gap: .1rem; }
.nav a {
  color: #c6ccd6; text-decoration: none; font-size: .86rem; font-weight: 600;
  padding: .5rem .75rem; border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }

.hero {
  position: relative; min-height: min(88vh, 720px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11,31,58,.35) 0%, rgba(11,31,58,.78) 55%, rgba(11,31,58,.94) 100%),
    radial-gradient(900px 420px at 70% 15%, rgba(201,162,39,.22), transparent 60%),
    url("https://images.unsplash.com/photo-1436491865332-7a61a77f804c?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat,
    var(--navy);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 28px, transparent 28px 48px);
  opacity: .9;
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 0 0 64px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  animation: rise .9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800; letter-spacing: -.04em; line-height: .95;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-body);
  font-weight: 500; font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  max-width: 22ch; line-height: 1.25; color: #f3f5f8;
}
.hero p {
  margin-top: 1rem; max-width: 38ch; color: #c8d0db; font-size: 1.05rem;
}
.hero-cta {
  margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.2rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1a1400; }
.btn-primary:hover { background: var(--gold-2); color: #1a1400; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: -28px; position: relative; z-index: 2;
  box-shadow: 0 12px 40px rgba(11,31,58,.12);
}
.stats-bar > div {
  background: var(--paper-2); padding: 1.1rem 1rem; text-align: center;
}
.stats-bar strong {
  display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em;
}
.stats-bar span { color: var(--mute); font-size: .82rem; font-weight: 600; }

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head .kicker {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -.03em; line-height: 1.1; margin-bottom: .7rem;
}
.section-head p { color: var(--mute); font-size: 1.05rem; }

.ebook-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start;
}
.ebook-cover {
  aspect-ratio: 3/4; border-radius: 12px;
  background:
    linear-gradient(160deg, #143056 0%, #0b1f3a 55%, #071526 100%);
  color: #fff; padding: 1.4rem; display: flex;
  box-shadow: 0 24px 50px rgba(11,31,58,.28);
  border: 1px solid rgba(201,162,39,.35);
}
.ebook-cover-inner {
  display: flex; flex-direction: column; justify-content: space-between; width: 100%;
}
.ebook-cover .badge {
  align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; background: var(--gold); color: #1a1400;
  padding: .35rem .6rem; border-radius: 999px;
}
.ebook-cover h3 {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15;
}
.ebook-cover p { color: #b8c4d4; font-size: .9rem; margin-top: .5rem; }
.ebook-cover .author { font-size: .75rem; color: #8fa0b5; }
.ebook-details .lead {
  font-family: var(--font-body); font-size: 1.15rem; color: var(--ink-2); margin: .8rem 0 1.2rem;
}
.ebook-features { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.4rem; }
.ebook-features li {
  padding-left: 1.4rem; position: relative; color: var(--ink-2); font-size: .98rem;
}
.ebook-features li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold);
}
.price-box {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem .9rem;
  margin: 1rem 0 1.1rem;
}
.price-box .old { color: var(--mute); text-decoration: line-through; font-weight: 600; }
.price-box .now {
  font-family: var(--font-display); font-size: 2rem; letter-spacing: -.03em; color: var(--navy);
}
.price-box .off {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: #e8f5ee; color: #0d6b3c; padding: .3rem .55rem; border-radius: 999px;
}

.chapters-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.chapter-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.15rem;
}
.chapter-card .num {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--gold); margin-bottom: .45rem;
}
.chapter-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: .35rem;
}
.chapter-card p { color: var(--mute); font-size: .9rem; }

.guide-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.guide-item {
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.guide-item:hover h3 { color: var(--sky); }
.guide-item .num {
  font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.1rem;
}
.guide-item h3 {
  font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; line-height: 1.3;
}
.guide-item p { color: var(--mute); font-size: .95rem; margin-top: .25rem; }
.guide-item .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-ui); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: .6rem; color: var(--mute); font-family: var(--font-body); font-size: 1.05rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: calc(var(--radius) + 4px);
  padding: 2.2rem 1.8rem; display: grid; gap: 1rem;
  border: 1px solid rgba(201,162,39,.3);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.cta-band p { color: #c8d0db; max-width: 42ch; }

.site-footer {
  border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; margin-top: 1rem;
  color: var(--mute); font-size: .88rem;
}
.site-footer a { color: var(--mute); }
.site-footer .foot-brand {
  font-family: var(--font-display); color: var(--navy); font-weight: 700; margin-bottom: .4rem;
}
.site-footer h4 {
  font-family: var(--font-display); font-size: .95rem; color: var(--navy); margin-bottom: .7rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--sky); }

@media (max-width: 900px) {
  .ebook-grid, .chapters-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .guide-item { grid-template-columns: 3rem 1fr; }
  .guide-item .tag { display: none; }
}

/* Legal pages */
.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 48px 0 40px;
}
.legal-hero .crumb { font-size: .8rem; color: #a8b4c4; margin-bottom: .8rem; }
.legal-hero .crumb a { color: #d4e0f0; }
.legal-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.03em; margin-bottom: .6rem;
}
.legal-hero > .wrap > p { color: #c8d0db; max-width: 48ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.2rem; font-size: .78rem; color: #9aa8ba; }
.legal-body {
  width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 64px;
  font-family: var(--font-body); font-size: 1.08rem; color: var(--ink-2);
}
.legal-body h2 {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em;
  color: var(--ink); margin: 2rem 0 .7rem;
}
.legal-body ul { padding-left: 1.2rem; margin: .6rem 0 1rem; }
.legal-body li { margin: .35rem 0; }
.legal-body p + p { margin-top: .9rem; }
.contact-box {
  display: grid; gap: 12px; margin: 1.4rem 0 2rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
}
.contact-box dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.contact-box dd { font-family: var(--font-ui); font-weight: 600; margin: .2rem 0 .6rem; }
.policy-grid { display: grid; gap: 12px; margin: 1.4rem 0 2rem; }
.policy-grid a {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; transition: border-color .15s, background .15s;
}
.policy-grid a:hover { border-color: #ADCDFF; background: #fff; }
.policy-grid strong {
  display: block; font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: -.02em; margin-bottom: .35rem; color: var(--navy);
}
.policy-grid span { color: var(--mute); font-size: .92rem; font-family: var(--font-ui); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem;
}
.footer-grid h4 {
  font-family: var(--font-display); font-size: .95rem; color: var(--navy); margin-bottom: .7rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin: .35rem 0; }
.footer-grid a { color: var(--mute); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--sky); }
.foot-logo { color: var(--navy) !important; margin-bottom: .5rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
