/* The First 9 — premium digital-product landing page
   8px rhythm · Newsreader + Inter · cream / white / soft sage */

:root {
  /* Palette */
  --ink: #1c1c1a;
  --ink-soft: #3d3d38;
  --muted: #6b6b63;
  --muted-soft: #8a8a82;
  --cream: #f7f3eb;
  --cream-warm: #f3eee4;
  --cream-deep: #ebe4d6;
  --white: #ffffff;
  --sage: #eef2ee;
  --sage-mid: #dfe8e1;
  --green: #1a3c2e;
  --green-mid: #245240;
  --green-deep: #0f2419;
  --green-soft: #e8f0eb;
  --gold: #b8956a;
  --border: rgba(26, 60, 46, 0.12);
  --border-strong: rgba(26, 60, 46, 0.2);

  /* Type */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space (8px grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;

  /* Layout */
  --max: 640px;
  --wide: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 36, 25, 0.04), 0 2px 8px rgba(15, 36, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 36, 25, 0.06), 0 1px 3px rgba(15, 36, 25, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 36, 25, 0.1), 0 4px 12px rgba(15, 36, 25, 0.06);
  --shadow-form: 0 8px 32px rgba(15, 36, 25, 0.08), 0 2px 8px rgba(15, 36, 25, 0.04);
  --focus-ring: 0 0 0 3px rgba(26, 60, 46, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-mid);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.container.narrow {
  width: min(100% - 48px, var(--max));
}

/* ========== Trust bar ========== */
.trust-bar {
  background: var(--green-deep);
  color: rgba(247, 243, 235, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  text-align: center;
}

.trust-bar a {
  color: var(--cream);
  text-decoration: none;
}

.trust-bar a:hover {
  text-decoration: underline;
  color: var(--cream);
}

.trust-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(247, 243, 235, 0.35);
  margin: 0 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

@media (max-width: 519px) {
  .trust-bar .trust-dot {
    display: none;
  }

  .trust-bar-inner {
    flex-direction: column;
    gap: 4px;
  }
}

/* ========== Site header ========== */
.site-header {
  background: rgba(247, 243, 235, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--s2);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
}

.logo:hover {
  color: var(--green);
}

.logo-mark svg {
  border-radius: 8px;
}

.logo-word {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--s3);
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
}

.site-nav .nav-cta {
  background: var(--green);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--green-mid);
  color: var(--cream);
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }
}

/* ========== Hero ========== */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 240, 235, 0.9) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  padding: var(--s8) 0 var(--s10);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: start;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 var(--s2);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--green-deep);
  margin: 0 0 var(--s3);
  max-width: 14ch;
}

.promise {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 var(--s3);
  max-width: 36rem;
}

.opening-line {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--green);
  margin: 0 0 var(--s2);
  max-width: 32rem;
}

.social-soft {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 var(--s4);
  max-width: 32rem;
}

.outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 28rem;
}

.outcomes li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.18);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
}

/* ========== PDF mockup (layered) ========== */
.mockup-stage {
  position: relative;
  width: 220px;
  height: 290px;
  margin: 0 auto;
}

.mockup-card {
  position: absolute;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.mockup-card--back {
  width: 180px;
  height: 240px;
  top: 8px;
  left: 28px;
  background: var(--sage-mid);
  transform: rotate(8deg);
  opacity: 0.7;
}

.mockup-card--mid {
  width: 190px;
  height: 252px;
  top: 12px;
  left: 18px;
  background: linear-gradient(160deg, #2a5340 0%, var(--green) 100%);
  transform: rotate(3.5deg);
  box-shadow: var(--shadow-md);
}

.mockup-card--front {
  width: 200px;
  height: 268px;
  top: 16px;
  left: 0;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: transparent;
}

.mockup-cover {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #214a38 0%, var(--green) 48%, var(--green-deep) 100%);
  border: 1px solid rgba(247, 243, 235, 0.15);
  border-radius: 6px;
  padding: 20px;
  color: var(--cream);
}

.mockup-frame {
  height: 100%;
  border: 1px solid rgba(184, 149, 106, 0.4);
  border-radius: 3px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
}

.mockup-eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.mockup-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.mockup-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.65);
  margin: 0;
}

.mockup-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(247, 243, 235, 0.12);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
}

.mockup-brand {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.5);
}

/* ========== Signup card (Stripe-quality) ========== */
.signup-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-form);
}

.signup-card--centered {
  margin-inline: auto;
  max-width: 420px;
}

.signup-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green-deep);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.signup-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 var(--s3);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-soft);
}

.signup-form input[type="email"] {
  font-family: var(--font-sans);
  font-size: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-form input[type="email"]::placeholder {
  color: #a3a39a;
}

.signup-form input[type="email"]:hover {
  border-color: rgba(26, 60, 46, 0.35);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: var(--focus-ring);
}

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

.consent input[type="checkbox"] {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
  border-radius: 3px;
}

.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.signup-success {
  text-align: center;
  padding: var(--s2) 0;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--green);
  margin: 0 0 8px;
}

.signup-success p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted);
}

.success-fallback {
  font-size: 13px !important;
  margin-top: var(--s2) !important;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.3;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
  box-shadow: 0 1px 2px rgba(15, 36, 25, 0.12);
}

.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--cream);
}

/* ========== Sections ========== */
.section {
  padding: var(--s10) 0;
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-sage {
  background: var(--sage);
}

.section-kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin: 0 0 var(--s2);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin: 0 0 var(--s2);
  text-align: center;
  line-height: 1.25;
}

.lead {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin: 0 auto var(--s5);
  max-width: 36rem;
}

.prose {
  max-width: 36rem;
  margin: 0 auto;
}

.prose p {
  margin: 0 0 var(--s3);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s5);
}

.checklist li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--ink);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.checklist-mute li {
  color: var(--ink-soft);
}

.checklist-mute li::before {
  background: var(--muted-soft);
}

.note {
  font-size: 15px;
  text-align: center;
  color: var(--muted);
  margin: 0;
}

/* ========== Product card ========== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-md);
  max-width: 440px;
  margin: 0 auto var(--s6);
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s4);
  right: var(--s4);
  height: 3px;
  background: var(--green);
  border-radius: 0 0 2px 2px;
}

.product-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: 4px;
}

.product-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
}

.product-price {
  margin: 0;
}

.price-amount {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--green-deep);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.product-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 var(--s3);
  line-height: 1.55;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
}

.product-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.product-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--green);
  opacity: 0.65;
}

.product-also {
  font-size: 13px;
  color: var(--muted-soft);
  text-align: center;
  margin: var(--s3) 0 0;
}

.not-buying {
  max-width: 440px;
  margin: 0 auto;
}

.not-buying h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green-deep);
  text-align: center;
  margin: 0 0 var(--s2);
}

.not-buying .checklist {
  margin-bottom: 0;
}

/* ========== FAQ ========== */
.faq-list {
  margin-top: var(--s2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.section-white .faq-item {
  background: var(--cream);
}

.faq-item summary {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--green-deep);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  line-height: 1.4;
}

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

.faq-item summary::after {
  content: "+";
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--muted-soft);
  flex-shrink: 0;
  line-height: 1;
}

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

.faq-item[open] {
  background: var(--white);
  border-color: var(--border-strong);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item a {
  color: var(--green);
}

/* ========== Final CTA ========== */
.cta-block {
  text-align: center;
}

.cta-block .signup-card {
  text-align: left;
  margin-top: 0;
}

.cta-bundle {
  margin: var(--s5) 0 0;
  font-size: 15px;
  color: var(--muted);
}

.cta-bundle a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.cta-bundle a:hover {
  color: var(--green-mid);
}

/* ========== Footer ========== */
.footer {
  background: var(--green-deep);
  color: rgba(247, 243, 235, 0.72);
  padding: var(--s6) 0;
  text-align: center;
  font-size: 13px;
}

.footer a {
  color: var(--cream);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--cream);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  margin: 0;
  font-weight: 500;
  color: rgba(247, 243, 235, 0.88);
}

.footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0.9;
}

.footer-meta .trust-dot {
  background: rgba(247, 243, 235, 0.3);
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

.logo-mark--sm svg {
  border-radius: 6px;
}

/* ========== Desktop hero ========== */
@media (min-width: 900px) {
  .hero {
    padding: var(--s10) 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s8);
    align-items: center;
  }

  .hero-visual {
    align-items: stretch;
  }

  .mockup-stage {
    width: 240px;
    height: 310px;
  }

  .mockup-card--front {
    width: 210px;
    height: 280px;
  }

  .mockup-card--mid {
    width: 200px;
    height: 264px;
  }

  .mockup-card--back {
    width: 190px;
    height: 252px;
  }

  .signup-card {
    max-width: none;
  }
}

/* ========== Tablet / mobile tweaks ========== */
@media (max-width: 899px) {
  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 16ch;
  }

  .promise,
  .opening-line,
  .social-soft {
    margin-left: auto;
    margin-right: auto;
  }

  .outcomes {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 519px) {
  .container,
  .container.narrow {
    width: min(100% - 32px, var(--wide));
  }

  .hero {
    padding: var(--s5) 0 var(--s6);
  }

  .hero h1 {
    max-width: none;
  }

  .section {
    padding: var(--s8) 0;
  }

  .site-header-inner {
    min-height: 56px;
  }

  .signup-card {
    padding: var(--s3);
  }

  .product-card {
    padding: var(--s4) var(--s3);
  }

  .product-card::before {
    left: var(--s3);
    right: var(--s3);
  }

  .mockup-stage {
    width: 180px;
    height: 240px;
  }

  .mockup-card--front {
    width: 160px;
    height: 214px;
  }

  .mockup-card--mid {
    width: 152px;
    height: 202px;
    left: 14px;
  }

  .mockup-card--back {
    width: 144px;
    height: 192px;
    left: 22px;
  }

  .mockup-title {
    font-size: 18px;
  }

  .mockup-cover {
    padding: 14px;
  }

  .mockup-frame {
    padding: 14px 10px 10px;
  }

  .footer-meta .trust-dot {
    display: none;
  }

  .footer-meta {
    flex-direction: column;
    gap: 6px;
  }
}
