:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --primary: #0F172A;
  --secondary: #475569;
  --muted: #64748B;
  --accent: #D97757;
  --accent-strong: #BF5F40;
  --success: #5F8A68;
  --border: #E2E8F0;
  --soft: #EEF3F7;
  --ink-10: rgba(15, 23, 42, .1);
  --ink-06: rgba(15, 23, 42, .06);
  --font-heading: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-number: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1440px;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12), 0 4px 18px rgba(15, 23, 42, .06);
  --shadow-soft: 0 16px 48px rgba(15, 23, 42, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 86% 10%, rgba(217, 119, 87, .12), transparent 26rem),
    radial-gradient(circle at 10% 24%, rgba(95, 138, 104, .12), transparent 24rem),
    var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .34;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .98;
}

h1 {
  max-width: 10.8ch;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.18;
}

p {
  color: var(--secondary);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(86px, 10vw, 148px) 0;
}

.diagnostic {
  position: relative;
}

.faq-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(248, 250, 252, .95));
}

.section-soft {
  background: linear-gradient(180deg, rgba(238, 243, 247, .78), rgba(248, 250, 252, .8));
  border-block: 1px solid rgba(226, 232, 240, .82);
}

.section-dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 119, 87, .22), transparent 28rem),
    linear-gradient(135deg, #0F172A 0%, #172033 100%);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: #fff;
}

.section-dark p {
  color: rgba(248, 250, 252, .7);
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.12rem, 1.35vw, 1.25rem);
  line-height: 1.72;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 800 1rem/1 var(--font-body);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 42px rgba(217, 119, 87, .34);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 22px 54px rgba(217, 119, 87, .42);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

.btn-dark:hover {
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, .76);
  border-color: var(--border);
  color: var(--primary);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, .2);
  box-shadow: var(--shadow-soft);
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: .9rem;
}

.btn-large {
  min-height: 62px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.btn-full {
  width: 100%;
}

.announce {
  background: var(--primary);
  color: rgba(248, 250, 252, .86);
  font-size: .88rem;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 14px;
  text-align: center;
}

.announce-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(95, 138, 104, .18);
}

.announce-time {
  color: #fff;
}

.announce b {
  color: #fff;
  font-family: var(--font-number);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, .78);
  background: rgba(248, 250, 252, .78);
  backdrop-filter: blur(22px) saturate(160%);
}

.nav-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--primary);
  font: 800 .98rem/1 var(--font-heading);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-number);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.nav-links a {
  color: var(--secondary);
  font-size: .94rem;
  font-weight: 700;
  transition: color 200ms var(--ease);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-grid > .btn {
  justify-self: end;
}

.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  overflow: hidden;
  padding: clamp(62px, 6vw, 92px) 0 clamp(76px, 8vw, 116px);
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .46;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .52), transparent 44%),
    radial-gradient(circle at 78% 18%, rgba(217, 119, 87, .2), transparent 24rem),
    radial-gradient(circle at 58% 72%, rgba(95, 138, 104, .16), transparent 24rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 28px;
}

.hero-copy {
  grid-column: 1 / span 6;
}

.hero h1 {
  margin-top: 22px;
}

.hero-lead {
  max-width: 38rem;
  margin-top: 28px;
  color: var(--secondary);
  font-size: clamp(1.18rem, 1.5vw, 1.35rem);
  line-height: 1.64;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.benefit-row span,
.expert-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--secondary);
  padding: 0 15px;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 640px);
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow-soft);
}

.trust-strip div {
  background: rgba(255, 255, 255, .86);
  padding: 20px 18px;
}

.trust-strip strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-number);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
}

.trust-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-visual {
  position: relative;
  grid-column: 8 / span 5;
  min-height: 620px;
}

.visual-gradient {
  position: absolute;
  inset: 4% -8% 0 0;
  border-radius: 44px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, .82), transparent 14rem),
    linear-gradient(135deg, rgba(15, 23, 42, .08), rgba(217, 119, 87, .28) 48%, rgba(95, 138, 104, .22));
  box-shadow: var(--shadow);
}

.book-scene {
  position: absolute;
  inset: 8% 0 0;
}

.editorial-photo {
  width: 78%;
  height: 84%;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.book-cover {
  position: absolute;
  right: 0;
  bottom: 3%;
  width: min(58%, 360px);
  border-radius: 12px 22px 22px 12px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, .24);
  transform: rotate(3deg);
  transition: transform 300ms var(--ease);
}

.hero-visual:hover .book-cover {
  transform: rotate(1deg) translateY(-8px);
}

.orbital-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.22;
  backdrop-filter: blur(16px);
}

.orbital-card .metric {
  color: var(--accent);
  font-family: var(--font-number);
  font-size: 2rem;
  line-height: 1;
}

.card-top {
  top: 6%;
  left: -4%;
}

.card-bottom {
  right: -5%;
  bottom: 13%;
}

.pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(95, 138, 104, .18);
}

.proof-band {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, .7);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.proof-item {
  background: rgba(255, 255, 255, .82);
  padding: 30px;
}

.proof-item span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  margin-top: 7px;
  color: var(--primary);
  font-size: 1.05rem;
}

.two-column,
.compare-grid,
.expert-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.section-copy {
  grid-column: 1 / span 6;
}

.text-stack {
  grid-column: 8 / span 5;
  display: grid;
  gap: 18px;
}

.section-copy h2,
.section-heading h2,
.compare-grid h2,
.expert-copy h2,
.faq-grid h2 {
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 62px;
}

.feature-card,
.sample-card,
.testimonial,
.offer,
.compare-table,
.faq details,
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 32px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.feature-card:hover,
.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 87, .38);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 17px;
  background: rgba(217, 119, 87, .13);
  color: var(--accent);
  font-family: var(--font-number);
  font-weight: 700;
}

.feature-card p,
.toc-row p,
.sample-card p,
.testimonial small,
.microcopy {
  margin-top: 12px;
  font-size: .96rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  padding: 30px;
  box-shadow: none;
}

.stat-card strong {
  display: block;
  font-family: var(--font-number);
  font-size: clamp(2.6rem, 4vw, 4.25rem);
  line-height: .92;
}

.stat-card strong span {
  color: var(--accent);
}

.stat-card p {
  margin-top: 18px;
  font-weight: 700;
}

.section-heading {
  max-width: 900px;
  text-align: center;
}

.section-heading .kicker {
  justify-content: center;
}

.section-heading .lead {
  margin: 22px auto 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 28px;
  margin-top: 54px;
}

.toc-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.toc-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 220ms var(--ease);
}

.toc-row:last-child {
  border-bottom: 0;
}

.toc-row:hover {
  background: #F8FAFC;
}

.toc-row span {
  color: var(--accent);
  font-family: var(--font-number);
  font-size: 1.35rem;
  font-weight: 700;
}

.sample-card {
  align-self: start;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(238, 243, 247, .76)),
    var(--surface);
}

.sample-label,
.discount {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  background: rgba(95, 138, 104, .12);
  color: var(--success);
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sample-card h3 {
  margin-top: 22px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
}

.compare-grid > div:first-child {
  grid-column: 1 / span 5;
}

.compare-table {
  grid-column: 7 / span 6;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-table > div {
  display: grid;
  grid-template-columns: .72fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-table > div:last-child {
  border-bottom: 0;
}

.compare-table span,
.compare-table p,
.compare-table strong {
  padding: 20px;
}

.compare-table span {
  background: #F8FAFC;
  color: var(--primary);
  font-weight: 800;
}

.compare-table p {
  color: var(--secondary);
  font-size: .94rem;
}

.compare-table strong {
  color: var(--primary);
  font-family: var(--font-heading);
}

.compare-head {
  background: var(--primary);
}

.compare-head span,
.compare-head strong {
  background: transparent;
  color: #fff;
}

.expert-media {
  position: relative;
  grid-column: 1 / span 5;
}

.expert-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.credential-card {
  position: absolute;
  right: -24px;
  bottom: 28px;
  max-width: 210px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.credential-card strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-number);
  font-size: 2.1rem;
  line-height: 1;
}

.credential-card span {
  display: block;
  margin-top: 8px;
  color: var(--secondary);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.28;
}

.expert-copy {
  grid-column: 7 / span 6;
  align-self: center;
}

.expert-copy .lead {
  margin-top: 24px;
}

.expert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.testimonial {
  padding: 30px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.testimonial.highlight {
  background: linear-gradient(180deg, #fff, #FFF7F4);
  border-color: rgba(217, 119, 87, .28);
}

.stars {
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .08em;
}

.testimonial blockquote {
  margin-top: 18px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.34;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.testimonial img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial strong,
.testimonial small {
  display: block;
}

.offer {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
  overflow: hidden;
}

.offer-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, .92), transparent 12rem),
    linear-gradient(145deg, rgba(15, 23, 42, .08), rgba(217, 119, 87, .24), rgba(95, 138, 104, .18));
}

.offer-art img {
  position: relative;
  width: min(58%, 340px);
  border-radius: 12px 22px 22px 12px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.offer-content {
  padding: clamp(38px, 5vw, 72px);
}

.offer-content .lead {
  margin-top: 20px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--primary);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(95, 138, 104, .12);
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #F8FAFC;
  padding: 22px;
}

.old-price {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: line-through;
}

.price-box strong {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-family: var(--font-number);
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: .9;
}

.microcopy {
  color: var(--muted);
  text-align: center;
}

.microcopy strong {
  color: var(--primary);
  font-family: var(--font-number);
}

.cancel-note {
  margin-top: 16px;
  border-radius: 16px;
  background: rgba(217, 119, 87, .12);
  color: var(--accent-strong);
  padding: 14px 16px;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
}

.faq-grid > div:first-child {
  grid-column: 1 / span 4;
}

.faq {
  grid-column: 6 / span 7;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0 24px;
  box-shadow: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.faq details[open] {
  border-color: rgba(217, 119, 87, .28);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F8FAFC;
  color: var(--accent);
  font-family: var(--font-number);
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  padding: 0 28px 22px 0;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(217, 119, 87, .25), transparent 26rem),
    linear-gradient(135deg, #0F172A, #18243A);
  color: #fff;
  padding: clamp(90px, 11vw, 150px) 0;
  text-align: center;
}

.final-inner {
  position: relative;
  max-width: 980px;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  max-width: 720px;
  margin: 24px auto 34px;
  color: rgba(248, 250, 252, .75);
  font-size: 1.2rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 54px 0 34px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer p {
  max-width: 460px;
  margin-top: 18px;
  font-size: .95rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-content: start;
  justify-content: flex-end;
}

.footer nav a {
  color: var(--secondary);
  font-size: .95rem;
  font-weight: 800;
}

.legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .86rem;
}

.sticky-buy {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 36px);
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.sticky-buy strong {
  color: #fff;
  font-family: var(--font-number);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.page-success {
  min-height: 100vh;
  background: var(--bg);
}

.success-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
}

.success-card {
  width: min(100%, 620px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.success-badge {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(95, 138, 104, .12);
  color: var(--success);
  font-family: var(--font-number);
  font-size: 2rem;
}

.success-badge.err {
  background: rgba(217, 119, 87, .12);
  color: var(--accent);
}

.success-card h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.success-card .lead {
  margin: 18px auto 28px;
}

@media (max-width: 1160px) {
  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-visual {
    grid-column: 8 / span 5;
  }

  .nav-links {
    display: none;
  }

  .nav-grid {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 920px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-column,
  .compare-grid,
  .expert-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .section-copy,
  .text-stack,
  .compare-grid > div:first-child,
  .compare-table,
  .expert-media,
  .expert-copy,
  .faq-grid > div:first-child,
  .faq {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 560px;
    order: -1;
  }

  h1 {
    max-width: 11.5ch;
  }

  .feature-grid,
  .stats-grid,
  .testimonials,
  .proof-grid,
  .content-layout,
  .offer {
    grid-template-columns: 1fr;
  }

  .offer-art {
    min-height: 440px;
  }

  .credential-card {
    right: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .announce-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 0;
    line-height: 1.35;
  }

  .site-header .btn {
    display: none;
  }

  .nav-grid {
    min-height: 66px;
  }

  .brand {
    font-size: .9rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .visual-gradient {
    inset: 5% 0 2%;
  }

  .book-scene {
    inset: 10% 0 0;
  }

  .editorial-photo {
    width: 82%;
    height: 76%;
  }

  .book-cover {
    width: 54%;
  }

  .orbital-card {
    max-width: 190px;
    font-size: .78rem;
  }

  .card-top {
    left: 2%;
  }

  .card-bottom {
    right: 1%;
    bottom: 8%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .feature-card,
  .sample-card,
  .testimonial,
  .offer-content {
    padding: 24px;
  }

  .toc-row {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 22px 18px;
  }

  .compare-table {
    overflow-x: auto;
  }

  .compare-table > div {
    min-width: 620px;
  }

  .price-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer nav {
    justify-content: flex-start;
  }

  .sticky-buy {
    display: flex;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Before / After slider ---------- */
.ba-section {
  padding: 80px 0;
}

.ba-section .section-heading {
  margin-bottom: 36px;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ba-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ba-card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.ba-card-label strong {
  color: var(--primary);
  font-size: 1rem;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
  background: var(--soft);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Overlay (Po) – přes celou plochu, ořezán clip-path z LEVÉ strany.
 * JS aktualizuje hodnotu clip-path tak, ať odpovídá pozici posuvníku.
 * Při pozici 50 % je inset(0 0 0 50%) → viditelná pravá polovina = Po. */
.ba-overlay {
  clip-path: inset(0 0 0 50%);
  -webkit-clip-path: inset(0 0 0 50%);
}

.ba-tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}

.ba-tag.before { left: 14px; }
.ba-tag.after  { right: 14px; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 8px 24px rgba(15, 23, 42, .18);
  cursor: ew-resize;
  outline: none;
  z-index: 3;
}

.ba-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .24);
}

.ba-handle::after {
  content: "⇆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}

.ba-slider.is-dragging .ba-handle::before {
  transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 800px) {
  .ba-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Exit-intent modal ---------- */
body.modal-open { overflow: hidden; }

.exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}

.exit-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.exit-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(.98);
  transition: transform .3s var(--ease);
}

.exit-modal.is-open .exit-card { transform: translateY(0) scale(1); }

.exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: background .2s;
}
.exit-close:hover { background: var(--soft); color: var(--primary); }

.exit-card .kicker { margin-bottom: 12px; }

.exit-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.18;
  margin-bottom: 12px;
}

.exit-card p { color: var(--secondary); font-size: .95rem; line-height: 1.55; margin-bottom: 18px; }

.exit-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 12px;
  background: var(--surface);
}

.exit-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exit-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.exit-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
  margin: 4px 0 16px;
  cursor: pointer;
  line-height: 1.4;
}

.exit-consent input { margin-top: 3px; flex-shrink: 0; }

.exit-form button[type="submit"] {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.exit-form button[type="submit"]:hover:not([disabled]) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.exit-form button[disabled] { opacity: .6; cursor: not-allowed; }

.exit-status {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff3ef;
  color: #8a3f29;
  border-radius: 10px;
  font-size: .88rem;
}

.exit-thanks {
  text-align: center;
  padding: 12px 4px 4px;
}

.exit-thanks .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #e3efe5;
  color: #386343;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 14px;
}

.exit-thanks h2 { font-size: 1.4rem; margin-bottom: 10px; }

.exit-thanks p { color: var(--secondary); margin-bottom: 8px; }

.exit-microcopy {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Pokladna (embedded Stripe Checkout) ---------- */
.page-checkout {
  background: var(--bg);
}

.checkout-secured {
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-page {
  padding: 56px 0 72px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.checkout-form .kicker {
  margin-bottom: 14px;
}

.checkout-form h1 {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  max-width: none;
  margin-bottom: 14px;
}

.checkout-form .lead {
  max-width: 56ch;
  margin-bottom: 28px;
}

.checkout-mount {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 420px;
  box-shadow: var(--shadow-soft);
}

.checkout-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 18px;
  color: var(--muted);
  font-size: .95rem;
}

.checkout-loading .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: checkout-spin 1s linear infinite;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

.checkout-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3ef;
  color: #8a3f29;
  font-size: .95rem;
}

.checkout-footnote {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--muted);
}

.checkout-footnote a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.checkout-summary {
  position: sticky;
  top: 24px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.summary-label {
  display: block;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.summary-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.summary-cover {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.summary-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.summary-item span {
  font-size: .85rem;
  color: var(--muted);
}

.summary-totals {
  margin: 18px 0 16px;
  display: grid;
  gap: 6px;
}

.summary-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .95rem;
  color: var(--secondary);
}

.summary-totals dt,
.summary-totals dd {
  margin: 0;
}

.summary-totals .strike {
  text-decoration: line-through;
  color: var(--muted);
}

.summary-totals .discount {
  color: var(--success);
  font-weight: 600;
}

.summary-totals .grand {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.summary-totals .grand dt {
  font-weight: 600;
  color: var(--primary);
}

.summary-totals .grand dd {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-number);
}

.summary-trust {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: .9rem;
  color: var(--secondary);
}

.summary-trust li {
  padding: 4px 0;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.summary-badges span {
  font-size: .75rem;
  letter-spacing: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .checkout-summary {
    position: static;
    order: -1;
  }
}

/* ---------- Statické podstránky (kontakt, OP, GDPR) ---------- */
.legal-page {
  padding: 96px 0 80px;
}

.legal-page .legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  max-width: none;
  margin: 0 0 18px;
}

.legal-page h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 40px 0 12px;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page p + p {
  margin-top: 14px;
}

.legal-page ul,
.legal-page ol {
  margin: 10px 0 10px 22px;
}

.legal-page li + li {
  margin-top: 6px;
}

.legal-page .legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}

.legal-page .legal-card dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.legal-page .legal-card dt {
  color: var(--muted);
  font-weight: 600;
}

.legal-page .legal-card dd {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
}

.legal-page .legal-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 36px;
}

.legal-page a {
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 70px 0 60px;
  }
  .legal-page .legal-card dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .legal-page .legal-card dd {
    margin-bottom: 8px;
  }
}
