:root {
  --bg: #08080c;
  --bg-soft: #0f0f16;
  --card: #13131c;
  --line: #23232f;
  --line-soft: #1a1a24;
  --text: #ececf2;
  --muted: #9a9ab0;
  --muted-dim: #6e6e85;
  --gold: #f5c451;
  --gold-deep: #d99a18;
  --green: #5fd97f;
  --green-bg: #13301c;
  --radius: 14px;
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- typography */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 0.5em; }
h3 { font-size: 1.1rem; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid #3a3348; border-radius: 999px;
  padding: 7px 16px; margin-bottom: 22px; background: rgba(245, 196, 81, 0.05);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.gold { color: var(--gold); }

/* -------------------------------------------------------------------- header */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: 0.14em;
  background: linear-gradient(96deg, var(--gold), #e8b23d);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* -------------------------------------------------------------------- button */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #14141e; border: 0; border-radius: 10px;
  padding: 16px 38px; font-family: var(--font); font-size: 1.02rem; font-weight: 800;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(245, 196, 81, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(245, 196, 81, 0.3); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; box-shadow: none; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  box-shadow: none; font-weight: 600;
}
.btn-ghost:hover { border-color: #3a3a4a; background: rgba(255, 255, 255, 0.02); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------- hero */

.hero { padding: 84px 0 76px; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(245, 196, 81, 0.09), transparent 68%);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 60px; align-items: center;
}

.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 30px 0 6px; }
.mrp { font-size: 1.35rem; color: var(--muted-dim); text-decoration: line-through; }
.price { font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1; }
.badge-off {
  background: var(--green-bg); color: var(--green);
  padding: 6px 13px; border-radius: 7px; font-size: 0.85rem; font-weight: 700;
  border: 1px solid #1f4a2c;
}
.save-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 30px; }

.trust { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 26px; }
.trust span { color: var(--muted-dim); font-size: 0.86rem; display: flex; align-items: center; gap: 7px; }
.trust span::before { content: "✓"; color: var(--green); font-weight: 700; }

/* book cover */
.cover-wrap { perspective: 1200px; }
.cover {
  aspect-ratio: 3 / 4.2; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(148deg, #22222f 0%, #14141d 55%, #0d0d14 100%);
  border: 1px solid #2c2c3c; border-left: 5px solid var(--gold-deep);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(-11deg) rotateX(3deg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 30px; overflow: hidden; position: relative;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%);
}
.cover-brand {
  font-size: 0.72rem; letter-spacing: 0.24em; color: var(--gold);
  text-transform: uppercase; font-weight: 700;
}
.cover-title { font-size: 1.85rem; font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; }
.cover-sub { font-size: 0.8rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.cover-foot { font-size: 0.72rem; color: var(--muted-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* ------------------------------------------------------------------ sections */

section { padding: 76px 0; border-top: 1px solid var(--line-soft); }
section.alt { background: var(--bg-soft); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.18s, transform 0.18s;
}
.card:hover { border-color: #33333f; transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; color: var(--gold); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  background: rgba(245, 196, 81, 0.09); border: 1px solid #3a3348;
  color: var(--gold); font-weight: 800; font-size: 0.9rem;
}

/* pain points */
.pain-list { list-style: none; display: grid; gap: 14px; }
.pain-list li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--muted); font-size: 1rem; line-height: 1.6;
}
.pain-list li::before {
  content: "✕"; color: #e06060; font-weight: 700; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 6px; background: rgba(224, 96, 96, 0.1);
  display: grid; place-items: center; font-size: 0.78rem; margin-top: 3px;
}

/* bonuses */
.bonus-row {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.bonus-row:last-of-type { border-bottom: 0; }
.bonus-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(245, 196, 81, 0.08); border: 1px solid #3a3348;
  display: grid; place-items: center; font-size: 1.1rem;
}
.bonus-body { flex: 1; }
.bonus-body h3 { margin-bottom: 5px; }
.bonus-body p { color: var(--muted); font-size: 0.92rem; }
.bonus-value { flex-shrink: 0; color: var(--muted-dim); font-size: 0.9rem; text-decoration: line-through; }

.value-total {
  margin-top: 28px; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(245, 196, 81, 0.07), rgba(245, 196, 81, 0.02));
  border: 1px solid #3a3348;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.value-total strong { font-size: 1.06rem; }
.value-total .free { color: var(--green); font-weight: 800; font-size: 1.1rem; }

/* faq */
details.faq {
  border-bottom: 1px solid var(--line-soft); padding: 4px 0;
}
details.faq summary {
  cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.02rem;
  list-style: none; position: relative; transition: color 0.15s;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.5rem; font-weight: 400; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq summary:hover { color: var(--gold); }
details.faq p { color: var(--muted); padding: 0 40px 22px 0; font-size: 0.96rem; }

/* final cta */
.cta-final { text-align: center; }
.cta-final .price-row { justify-content: center; }
.cta-final .save-note { margin-bottom: 26px; }
.cta-box {
  max-width: 620px; margin: 0 auto; padding: 48px 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* newsletter */
.news-form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.news-form input { flex: 1 1 240px; }

/* ------------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line-soft); padding: 44px 0 36px;
  color: var(--muted-dim); font-size: 0.88rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* -------------------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 4, 8, 0.78); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  overflow-y: auto;
}
.modal.open { opacity: 1; pointer-events: auto; }
/* Same reason as .summary div[hidden] — keep the modal out of the a11y tree while closed. */
.modal[hidden] { display: none; }

.modal-panel {
  width: 100%; max-width: 470px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98); transition: transform 0.22s;
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.modal-head h2 { font-size: 1.42rem; margin: 0; }
.modal-close {
  background: transparent; border: 0; color: var(--muted-dim);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 0 0 14px;
}
.modal-close:hover { color: var(--text); }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; background: #0c0c13; border: 1px solid var(--line);
  border-radius: 9px; padding: 13px 15px; color: var(--text);
  font-family: var(--font); font-size: 0.98rem; transition: border-color 0.15s;
}
input:focus { outline: none; border-color: var(--gold-deep); }
input::placeholder { color: #55556a; }
.field.invalid input { border-color: #e06060; }
.field-error { color: #e88; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid .field-error { display: block; }

.coupon-row { display: flex; gap: 9px; }
.coupon-row input { flex: 1; text-transform: uppercase; }
.coupon-row button { flex-shrink: 0; padding: 13px 18px; font-size: 0.88rem; }
.coupon-msg { font-size: 0.85rem; margin-top: 7px; display: none; }
.coupon-msg.ok { color: var(--green); display: block; }
.coupon-msg.err { color: #e88; display: block; }

.summary {
  background: #0c0c13; border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 16px 18px; margin: 20px 0 22px; font-size: 0.93rem;
}
.summary div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
/* `display: flex` above out-specifies the UA's [hidden] rule, so restate it. */
.summary div[hidden] { display: none; }
.summary div.total {
  border-top: 1px solid var(--line); margin-top: 9px; padding-top: 12px;
  color: var(--text); font-weight: 800; font-size: 1.06rem;
}
.summary .discount-line { color: var(--green); }

.form-error {
  background: rgba(224, 96, 96, 0.09); border: 1px solid rgba(224, 96, 96, 0.3);
  color: #f0a0a0; padding: 12px 15px; border-radius: 9px;
  font-size: 0.89rem; margin-bottom: 18px; display: none;
}
.form-error.show { display: block; }

.modal-foot {
  text-align: center; color: var(--muted-dim); font-size: 0.8rem; margin-top: 16px; line-height: 1.6;
}

.spinner {
  width: 17px; height: 17px; border: 2px solid rgba(20, 20, 30, 0.28);
  border-top-color: #14141e; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- simple content */

.doc { padding: 60px 0 80px; }
.doc h1 { margin-bottom: 10px; }
.doc .updated { color: var(--muted-dim); font-size: 0.88rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.28rem; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 13px; max-width: 72ch; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--gold); }

/* ------------------------------------------------------------------ success */

.success-wrap { padding: 70px 0 90px; max-width: 640px; margin: 0 auto; text-align: center; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--green-bg); border: 1px solid #235536;
  display: grid; place-items: center; font-size: 2rem; color: var(--green);
}
.dl-list { text-align: left; margin-top: 34px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 17px 20px; margin-bottom: 11px;
}
.dl-item strong { font-size: 0.98rem; font-weight: 600; }
.dl-item small { display: block; color: var(--muted-dim); font-size: 0.82rem; margin-top: 2px; }
.notice {
  background: rgba(245, 196, 81, 0.06); border: 1px solid #3a3348;
  border-radius: 11px; padding: 16px 20px; margin-top: 30px;
  color: var(--muted); font-size: 0.89rem; text-align: left; line-height: 1.65;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero { padding: 52px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .cover-wrap { max-width: 300px; margin: 0 auto; }
  .cover { transform: none; }
  .nav-links { display: none; }
  section { padding: 56px 0; }
  .cta-box { padding: 34px 24px; }
  .modal-panel { padding: 26px 22px; }
  footer .wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .price { font-size: 2.4rem; }
  .bonus-row { flex-wrap: wrap; }
  .bonus-value { width: 100%; padding-left: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .cover { transform: none; }
}
