:root {
  --bg: #07080d;
  --bg-2: #0e1118;
  --card: #12151e;
  --line: rgba(245, 214, 160, 0.16);
  --gold: #e7c37a;
  --gold-2: #f3d9a0;
  --gold-dim: #b8944f;
  --ink: #f6f1e8;
  --muted: #a8a093;
  --danger: #ff6b6b;
  --ok: #5ee0a8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  pointer-events: none;
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231,195,122,0.16), transparent 68%);
  top: -180px;
  right: -80px;
  z-index: 0;
}
.glow-2 {
  left: -160px;
  top: 40%;
  background: radial-gradient(circle, rgba(90,120,255,0.12), transparent 68%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3d9a0, #b8944f);
  color: #1a1408;
  font-family: var(--display);
  font-weight: 700;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.price-chip {
  border: 1px solid var(--line);
  background: #151821;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gold-2);
}
.price-chip s { color: var(--muted); margin-right: 6px; }
.header-buy s {
  color: rgba(26, 20, 8, 0.5);
  margin-right: 4px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 13px 20px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #f6dfb0, #d4ad62);
  color: #1a1408;
  box-shadow: 0 10px 30px rgba(212, 173, 98, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-lg { padding: 16px 28px; font-size: 16px; width: 100%; max-width: 420px; }

.hero { position: relative; z-index: 1; padding: 54px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker:before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 em { font-style: italic; color: var(--gold-2); }
.lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 22px;
  max-width: 520px;
}
.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.stat b { display: block; font-size: 22px; color: var(--gold-2); }
.stat span { font-size: 12px; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 12px; color: var(--muted); }

.book {
  perspective: 900px;
  display: grid;
  place-items: center;
}
.book-3d {
  width: min(320px, 78vw);
  height: 430px;
  position: relative;
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateY(-18deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-12deg) rotateX(4deg) translateY(-12px); }
}
.cover {
  position: absolute;
  inset: 0;
  border-radius: 6px 14px 14px 6px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 12%),
    linear-gradient(180deg, #1c1408 0%, #3a2a12 40%, #1a140c 100%);
  border: 1px solid rgba(243, 217, 160, 0.45);
  box-shadow: var(--shadow), 18px 18px 0 rgba(231, 195, 122, 0.08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.cover small { letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-size: 10px; }
.cover h2 {
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.95;
  margin-top: 18px;
}
.cover p { margin-top: auto; color: #d7c7a4; font-size: 13px; }

.marquee {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: #0b0d13;
  overflow: hidden;
  padding: 12px 0;
  margin-top: 36px;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: slide 42s linear infinite;
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.04em;
}
@keyframes slide { to { transform: translateX(-50%); } }

section { position: relative; z-index: 1; padding: 76px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2, .pricing h2, .faq h2, .love h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.section-head p { color: var(--muted); margin-top: 10px; }

.grid-3, .grid-4, .books, .love-grid, .faq-grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p, .card li { color: var(--muted); font-size: 14px; }
.card ol, .card ul { padding-left: 18px; display: grid; gap: 6px; }

.books { grid-template-columns: repeat(2, 1fr); }
.cat { min-height: 100%; }
.cat .n {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.cat h3 { font-family: var(--display); font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.cat li { margin: 6px 0; }

.love-grid { grid-template-columns: repeat(3, 1fr); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #2a2318; color: var(--gold-2); font-weight: 700; font-size: 13px;
}
.who small { display: block; color: var(--muted); }

.pricing-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(231,195,122,0.14), transparent),
    linear-gradient(180deg, #16120c, #0e0f14);
  border: 1px solid rgba(231,195,122,0.35);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 8px; }
.price-now { font-family: var(--display); font-size: 64px; color: var(--gold-2); letter-spacing: -0.04em; }
.price-was { color: var(--muted); font-size: 22px; }
.badge {
  display: inline-block;
  background: #2a1d0a;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.checklist { display: grid; gap: 10px; margin: 18px 0 22px; }
.checklist li { list-style: none; display: flex; gap: 8px; color: #ddd4c4; font-size: 15px; }
.checklist li:before { content: "✓"; color: var(--ok); font-weight: 700; }

.faq-grid { grid-template-columns: 1fr 1fr; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 8px; font-size: 14px; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 28px 0 110px;
  color: var(--muted);
  font-size: 13px;
}
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-links a { color: var(--gold-2); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

.legal { position: relative; z-index: 1; padding: 48px 0 80px; max-width: 780px; }
.legal h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  margin: 28px 0 10px;
}
.legal p, .legal li { color: #cfc6b8; font-size: 15px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 12px; }
.legal a { color: var(--gold-2); }
.legal .card { margin-top: 8px; }
.legal address { font-style: normal; color: #cfc6b8; line-height: 1.7; }
.agree-note { text-align: center; font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.agree-note a { color: var(--gold-2); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.72);
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(460px, 100%);
  background: #12141c;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.modal-card h3 { font-family: var(--display); font-size: 28px; margin-bottom: 6px; }
.modal-card p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
input {
  width: 100%;
  background: #0b0d13;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 16px; /* iOS Safari zooms inputs under 16px — keep at least 16 */
  line-height: 1.4;
}
input:focus { border-color: var(--gold-dim); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }
.close-x {
  float: right;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.offer-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: linear-gradient(90deg, #1a1408, #2c210f 40%, #1a1408);
  border: 1px solid rgba(231,195,122,0.45);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.offer-bar.show { display: flex; }
.offer-bar strong { color: var(--gold-2); }
.secure-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ok);
}
.timer {
  font-variant-numeric: tabular-nums;
  background: #0b0d13;
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}
body.has-offer { padding-bottom: 88px; }

.thanks { padding: 48px 0 80px; position: relative; z-index: 1; }
.thanks-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.thanks-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.download-box {
  text-align: center;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(231,195,122,0.4);
  background: linear-gradient(180deg, #1a160f, #0e1016);
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .hero-grid, .pricing-card, .books, .love-grid, .faq-grid, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 28px; }
  .nav .price-chip { display: none; }
  .offer-bar { flex-wrap: wrap; }
  .book-3d { height: 360px; }
}
