/* ===== Theme ===== */
:root {
  --sky: #6cb4e4;
  --sky-light: #a7d4f0;
  --sky-deep: #1f6fb2;
  --navy: #0e2a40;
  --ink: #14222e;
  --ink-soft: #41525e;
  --paper: #ffffff;
  --paper-alt: #eef5fb;
  --line: #dbe6ef;
  --gold: #f2c14e;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(20, 34, 46, 0.18);
  --shadow-lift: 0 26px 60px rgba(20, 34, 46, 0.28);
  --max: 1100px;
  /* halftone dot texture, comic-book nod to the cover art */
  --dots: radial-gradient(rgba(255,255,255,.10) 1.4px, transparent 1.5px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .brand, .nav-cta, .btn, .price, .proof-num, .buy-tag {
  font-family: "Oswald", "Source Sans 3", sans-serif;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--sky-deep); text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ===== Inline icons ===== */
.ico {
  width: 1.05em; height: 1.05em; vertical-align: -2px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; margin-right: .35rem;
}

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .15rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.8rem; font-weight: 600; color: var(--sky-deep);
  margin: 0 0 .7rem; padding: .35rem .85rem;
  background: rgba(31,111,178,.09); border-radius: 999px;
}
.eyebrow.center { display: inline-flex; }
.eyebrow-light { background: rgba(255,255,255,.14); color: #dbeefc; }
.center.reveal, h2.center { display: block; }
p.eyebrow.center { display: inline-flex; }
.center > .eyebrow { margin-left: auto; margin-right: auto; }

/* Center wrapper for eyebrows that are block-centered */
.section .center.eyebrow { display: inline-flex; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 0.9rem 1.7rem; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn .ico { margin-right: 0; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--sky-deep); color: #fff; box-shadow: 0 12px 26px rgba(31,111,178,.4); }
.btn-primary:hover { background: #185e99; box-shadow: 0 18px 34px rgba(31,111,178,.5); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--ink); color: #fff; border: none; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.2rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  text-transform: uppercase; line-height: 1; display: flex; flex-direction: column;
}
.brand span { font-size: .72rem; color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--sky-deep); }
.nav-cta {
  background: var(--sky-deep); color: #fff !important;
  padding: .5rem 1.15rem; border-radius: 999px; text-transform: uppercase;
  font-size: .82rem; letter-spacing: .04em;
  box-shadow: 0 8px 18px rgba(31,111,178,.35);
}
.nav-cta:hover { background: #185e99; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(14,42,64,.92), rgba(31,111,178,.82)),
    radial-gradient(circle at 72% 18%, var(--sky), var(--navy));
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
/* halftone + smoke glow overlays */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--dots); background-size: 16px 16px;
  opacity: .5; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(108,180,228,.55), transparent 60%);
  filter: blur(10px); pointer-events: none;
}
.hero-ball {
  position: absolute; left: -55px; bottom: -45px; width: 260px; height: 260px;
  opacity: .09; z-index: 0; pointer-events: none;
}
.hero-ball svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.tagline { font-size: 1.22rem; color: #eaf4fc; max-width: 36ch; }
.hero-actions { display: flex; gap: 1rem; margin: 1.8rem 0 1.2rem; flex-wrap: wrap; }
.hero-meta { font-size: .95rem; color: #d6e9f7; margin: 0; }
.hero-meta strong { color: #fff; }

/* Cover */
.hero-cover { display: flex; justify-content: center; perspective: 1200px; }
.cover-frame { position: relative; }
.cover-frame::before {
  content: ""; position: absolute; inset: -8% -8% -14%;
  background: radial-gradient(circle at 50% 40%, rgba(108,180,228,.6), transparent 65%);
  filter: blur(14px); z-index: 0;
}
.hero-cover img,
.cover-placeholder {
  position: relative; z-index: 1;
  width: 330px; max-width: 78vw; height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(-3deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-cover img:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: var(--shadow-lift); }
.cover-placeholder {
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, var(--navy), var(--sky-deep) 60%, var(--sky));
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 2rem 1.6rem; text-align: center; color: #fff;
}
.cover-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: #bfe0f6; }
.cover-title { font-family: "Oswald"; font-size: 1.7rem; font-weight: 700; line-height: 1.05; }
.cover-author { font-size: .95rem; color: #d6e9f7; margin-top: auto; }

/* wave divider into proof bar */
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 70px; display: block; }
.hero-wave path { fill: var(--navy); }

/* ===== Proof bar ===== */
.proof { background: var(--navy); color: #fff; padding: 2.2rem 0; position: relative; }
.proof-grid { display: flex; justify-content: center; gap: clamp(1.5rem, 7vw, 5rem); text-align: center; flex-wrap: wrap; }
.proof-item {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  min-width: 150px;
}
.proof-ico { width: 30px; height: 30px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .35rem; }
.proof-num { font-size: 2.4rem; font-weight: 700; color: var(--sky-light); line-height: 1; }
.proof-label { font-size: .82rem; color: #9fb6c8; text-transform: uppercase; letter-spacing: .1em; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.section-alt { background: linear-gradient(180deg, var(--paper-alt), #fff); }
.section p { color: var(--ink-soft); font-size: 1.08rem; }
.section h2 { color: var(--navy); }

/* decorative background blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; pointer-events: none; z-index: 0; }
.blob-a { width: 380px; height: 380px; background: rgba(108,180,228,.28); top: -120px; right: -120px; }
.blob-b { width: 340px; height: 340px; background: rgba(31,111,178,.16); bottom: -120px; left: -120px; }
.section .container { position: relative; z-index: 1; }

/* ===== Feature cards ===== */
.features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 0;
}
.feature-wide { grid-column: 1 / -1; }
.feature-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 6px 18px rgba(20,34,46,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky); }
.fi {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--sky), var(--sky-deep) 78%);
  box-shadow: 0 7px 16px rgba(31,111,178,.35),
              inset 0 -3px 6px rgba(0,0,0,.18),
              inset 0 3px 7px rgba(255,255,255,.3);
}
.fi svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-card strong { display: block; color: var(--navy); font-size: 1.02rem; }
.feature-card span { color: var(--ink-soft); font-size: .96rem; }

/* ===== Author ===== */
.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.author-photo { position: relative; }
.author-photo img, .photo-placeholder {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
  outline: 1px solid var(--line);
}
.author-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border-radius: 18px; background: linear-gradient(150deg, var(--sky), var(--sky-deep));
  z-index: -1;
}
.photo-placeholder {
  background: linear-gradient(155deg, var(--sky-deep), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-family: "Oswald"; font-size: 4rem; color: #fff; font-weight: 700;
}
/* ===== Praise (distinct, colourful feature section) ===== */
.praise {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: linear-gradient(160deg, #2f86c7, var(--sky-deep) 55%, #16567f);
  color: #fff;
}
.praise::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--dots); background-size: 16px 16px; opacity: .55; pointer-events: none;
}
.praise .container { position: relative; z-index: 1; }
.praise-title { color: #fff !important; }
.stars-row { display: flex; justify-content: center; gap: .35rem; margin: .2rem 0 1.8rem; }
.stars-row svg { width: 26px; height: 26px; fill: var(--gold); filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }

/* ===== Quotes ===== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }
blockquote {
  position: relative; margin: 0; padding: 2.4rem 1.8rem 1.6rem; overflow: hidden;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(13,42,64,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
blockquote:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(13,42,64,.3); }
/* coloured top accent strip, varied per card */
blockquote::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--sky), var(--sky-deep));
}
.quotes blockquote:nth-child(2)::after { background: linear-gradient(90deg, var(--gold), #e0a92e); }
.quotes blockquote:nth-child(3)::after { background: linear-gradient(90deg, var(--sky-deep), var(--navy)); }
.quotes blockquote:nth-child(4)::after { background: linear-gradient(90deg, var(--gold), var(--sky)); }
blockquote::before {
  content: "\201C"; position: absolute; top: .15rem; left: 1rem;
  font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; color: var(--sky);
  opacity: .35;
}
blockquote p { font-size: 1.18rem; font-style: italic; color: var(--ink); margin-bottom: .8rem; position: relative; }
blockquote cite {
  display: block;
  font-style: normal; font-weight: 700; color: var(--sky-deep); font-size: .95rem;
}
blockquote cite::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--sky); margin-right: .55rem; vertical-align: middle;
}
.quote-aside {
  display: block; margin-top: .35rem; margin-left: 1.85rem;
  font-weight: 400; color: #94a3ad; font-style: italic; font-size: .85rem;
}

/* ===== Buy ===== */
.buy {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, var(--sky-deep), var(--navy));
  color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.buy::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--dots); background-size: 16px 16px; opacity: .5;
}
.buy::after {
  content: ""; position: absolute; bottom: -25%; left: 50%; transform: translateX(-50%);
  width: 70vw; height: 50vw; max-width: 800px; max-height: 500px;
  background: radial-gradient(circle, rgba(108,180,228,.4), transparent 60%); filter: blur(10px);
}
.buy .container { position: relative; z-index: 1; }
.buy h2, .buy h3 { color: #fff; }
.buy p { color: #dceaf6; }
.buy-tag {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; padding: .4rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #eaf4fc; margin-bottom: 1rem;
}
.buy-price { margin: .2rem 0; }
.release-note {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: .2rem 0 1rem; padding: .4rem 1rem; border-radius: 999px;
  background: rgba(242,193,78,.16); color: #ffe6a8 !important;
  font-weight: 600; font-size: .98rem;
}
.release-note .ico { color: var(--gold); }
.release-note strong { color: #fff; }
.price { font-size: 3.4rem; font-weight: 700; color: #fff; }
.price-note { color: #bcd6ec; font-size: 1rem; }
.buy-sub { margin-bottom: 1.8rem; }
.secure-note { font-size: .85rem; color: #bcd6ec; margin-top: 1rem; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,.18); margin: 2.6rem 0; }
.buy-link { color: #cfe8fb; text-decoration: underline; }

.signup { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.signup input {
  padding: .9rem 1.1rem; border-radius: 999px; border: none; min-width: 260px;
  font-size: 1rem; font-family: inherit;
}
.signup input:focus { outline: 3px solid var(--sky); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cdd9e2; padding: 2.2rem 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-link { color: #cdd9e2; text-decoration: underline; }
.muted { color: #7e94a4; margin: 0; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-cover img { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-cover { order: -1; }
  .features { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author-photo { max-width: 280px; }
  .author-copy .eyebrow { margin-left: auto; margin-right: auto; }
  .nav-links a:not(.nav-cta) { display: none; }
}
