/* ==========================================================================
   The Deliberate Dollar — Lead Magnet Landing Pages
   Shared stylesheet
   Brand: Deep Navy #0E2540 + Gold #F5C754
   Type:  Plus Jakarta Sans (UI) + Fraunces (display)
   ========================================================================== */

/* ---------- Reset + tokens ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette — locked, do not edit */
  --navy:        #0E2540;
  --navy-deep:   #081A30;
  --navy-soft:   #1B3556;
  --gold:        #F5C754;
  --gold-deep:   #C9A33E;
  --cream:       #F8F4ED;
  --ivory:       #FCF9F2;
  --whisper:     #E8E1D2;
  --ink:         #1A1A1A;
  --ink-soft:    #3A3A3A;
  --muted:       #7B7264;
  --error:       #B0322B;
  --success:     #2E6E4C;
  --white:       #FFFFFF;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 37, 64, 0.10);
  --shadow-lg: 0 18px 48px rgba(14, 37, 64, 0.22);

  /* Layout */
  --container-max: 1100px;
  --container-narrow: 720px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Focus styles — WCAG 2.2 AA */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--narrow {
  max-width: var(--container-narrow);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
}

/* ---------- Type system ---------- */
.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--on-dark { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 em, h2 em { color: var(--gold-deep); font-style: italic; font-weight: 400; }

h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 300; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; }

p   { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
p.lead { font-size: 20px; line-height: 1.55; color: var(--ink); }
@media (max-width: 640px) {
  p { font-size: 16px; }
  p.lead { font-size: 18px; }
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  min-height: 48px;       /* hit target */
  line-height: 1.2;
  text-align: center;
}
.btn:disabled, .btn[aria-busy="true"] { cursor: wait; opacity: 0.85; }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover:not(:disabled) {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: var(--cream); }

.btn--on-dark {
  background: var(--gold);
  color: var(--navy);
}
.btn--ghost-on-dark {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn--ghost-on-dark:hover { background: var(--cream); color: var(--navy); }

.btn--block { width: 100%; }

/* Loading spinner inside button */
.btn .spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero (editorial) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
  color: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at 70% 30%, rgba(245, 199, 84, 0.10) 0%, transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr 1fr; }
}

.hero h1 {
  color: var(--cream);
  margin: 16px 0 20px;
}
.hero h1 em { color: var(--gold); }
.hero .lead {
  color: rgba(248, 244, 237, 0.86);
  max-width: 56ch;
}

/* ---------- Signup form ---------- */
.signup {
  margin-top: clamp(24px, 4vw, 36px);
  max-width: 520px;
}
.signup__fields {
  display: flex;
  gap: var(--space-3);
  flex-direction: column;
}
@media (min-width: 560px) {
  .signup__fields { flex-direction: row; }
  .signup__fields .form-field { flex: 1; }
}

.form-field { position: relative; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-2);
}
.form-field--on-light label { color: var(--navy); }

.form-field input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px;             /* >=16px prevents iOS zoom */
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: var(--cream);
  color: var(--ink);
  min-height: 48px;
}
.form-field input[type="email"]::placeholder { color: var(--muted); }
.form-field input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 199, 84, 0.35);
}
.form-field input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(176, 50, 43, 0.20);
}

/* Honeypot — visually hidden but not display:none (some bots skip display:none) */
.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: var(--space-3);
  font-size: 14px;
  min-height: 1.2em;
  font-weight: 500;
}
.form-message--error { color: #FFB1AC; }
.form-message--on-light.form-message--error { color: var(--error); }

.privacy-line {
  margin-top: var(--space-4);
  font-size: 13px;
  color: rgba(248, 244, 237, 0.66);
}
.privacy-line--on-light { color: var(--muted); }

/* ---------- PDF cover mockup (CSS-only) ---------- */
.cover-mockup {
  --cover-w: 280px;
  --cover-h: 360px;
  width: 100%;
  max-width: var(--cover-w);
  aspect-ratio: 5 / 6.4;
  margin: 0 auto;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  position: relative;
  box-shadow:
    var(--shadow-lg),
    inset 4px 0 0 rgba(255,255,255,0.04),
    inset -2px 0 0 rgba(0,0,0,0.18);
  overflow: hidden;
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover-mockup::before {
  /* Spine highlight */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 60%);
}
.cover-mockup::after {
  /* Gold corner flourish */
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle at center, rgba(245,199,84,0.32) 0%, transparent 65%);
}
.cover-mockup__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative; z-index: 1;
}
.cover-mockup__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.1;
  margin-top: var(--space-4);
  position: relative; z-index: 1;
}
.cover-mockup__title em { color: var(--gold); font-style: italic; }
.cover-mockup__rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--space-5) 0;
  position: relative; z-index: 1;
}
.cover-mockup__footer {
  position: relative; z-index: 1;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 244, 237, 0.7);
}
.cover-mockup__wordmark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: normal;
  text-transform: none;
}
/* Slight float */
.cover-mockup--floated { transform: rotate(-2deg); }
@media (max-width: 900px) {
  .cover-mockup--floated { transform: rotate(0); }
}

/* ---------- Section primitives ---------- */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--cream); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--cream); }

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.section__header .eyebrow { display: block; margin-bottom: var(--space-4); }
.section__header p { color: var(--ink-soft); margin-top: var(--space-4); }

/* ---------- "What's inside" bullet list ---------- */
.value-list {
  list-style: none;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .value-list { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.value-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--whisper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.value-list .check {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}
.value-list h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.value-list p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- "Who this is for" ---------- */
.for-you {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .for-you { grid-template-columns: repeat(3, 1fr); }
}
.for-you__item {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-sm);
}
.for-you__item h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: var(--space-2); color: var(--navy); }
.for-you__item p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Hub page: product grid ---------- */
.hub-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 88px);
  text-align: center;
}
.hub-hero h1 { color: var(--cream); }
.hub-hero p.lead { color: rgba(248, 244, 237, 0.86); max-width: 60ch; margin: var(--space-5) auto 0; }
.hub-hero .eyebrow { color: var(--gold); }

.product-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
.product-card {
  background: var(--white);
  border: 1px solid var(--whisper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.product-card .cover-mockup { --cover-w: 240px; margin: 0 auto; }
.product-card__body { text-align: center; }
.product-card h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: var(--space-3);
  color: var(--navy);
}
.product-card p { font-size: 16px; color: var(--ink-soft); margin-bottom: var(--space-5); }
.product-card .btn { align-self: center; }

/* ---------- Thank-you page ---------- */
.thanks-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  text-align: center;
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 88px);
}
.thanks-hero h1 { color: var(--cream); }
.thanks-hero h1 em { color: var(--gold); }
.thanks-hero .lead { color: rgba(248, 244, 237, 0.86); max-width: 60ch; margin: var(--space-5) auto var(--space-6); }
.thanks-hero .eyebrow { color: var(--gold); }
.thanks-hero .confirmed-email {
  display: inline-block;
  background: rgba(245, 199, 84, 0.12);
  border: 1px solid rgba(245, 199, 84, 0.35);
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  margin-top: var(--space-4);
  font-size: 14px;
  color: var(--cream);
  word-break: break-all;
}
.thanks-hero .confirmed-email strong { color: var(--gold); margin-right: 6px; }

.download-status {
  margin-top: var(--space-6);
  font-size: 14px;
  color: rgba(248, 244, 237, 0.86);
  min-height: 1.4em;
}
.download-status a { color: var(--gold); }

/* While-you-wait */
.video-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card {
  background: var(--white);
  border: 1px solid var(--whisper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.video-card__thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card__thumb::after {
  content: "";
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  box-shadow: var(--shadow-md);
}
.video-card__thumb::before {
  content: "";
  position: absolute;
  z-index: 1;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--navy);
  margin-left: 6px;
}
.video-card__body { padding: var(--space-5); }
.video-card__body h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.video-card__body p { font-size: 13px; color: var(--muted); }
.video-card__placeholder-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-4);
  text-align: center;
}

/* Social share row */
.share-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--whisper);
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.share-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.share-btn svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 244, 237, 0.7);
  padding: var(--space-7) 0;
  text-align: center;
  font-size: 14px;
}
.site-footer__wordmark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  display: inline-block;
  margin-bottom: var(--space-2);
}
.site-footer__tagline {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 244, 237, 0.5);
  margin-bottom: var(--space-4);
}
.site-footer a { color: rgba(248, 244, 237, 0.7); }
.site-footer a:hover { color: var(--gold); }
.site-footer__row { margin-top: var(--space-3); }
.site-footer__row a + a { margin-left: var(--space-4); }

/* ---------- Utility ---------- */
.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;
}
.text-center { text-align: center; }

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