/* =========================================
   PlainMoney — Main Stylesheet
   ========================================= */

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

:root {
  --white:      #FFFFFF;
  --navy:       #1A4D7A;
  --gold:       #C9A961;
  --text:       #222222;
  --muted:      #555555;
  --green:      #38B48B;
  --green-dark: #2a9070;
  --border:     #E8E8E8;
  --bg-light:   #F7F7F5;
  --font-head:  'Georgia', 'Times New Roman', serif;
  --font-body:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:      1100px;
  --radius:     6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--navy);
}

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--bg-light); }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--gold);
}

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--green-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background: var(--white);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 760px;
  margin: 0 auto 20px;
  color: var(--navy);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.hero__small {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

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

.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover { background: var(--green-dark); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: #143d62; }

/* =========================================
   TOPIC CARDS
   ========================================= */
.topics { padding: 80px 0; background: var(--bg-light); }

.section__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.15s;
}

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  opacity: 0.75;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================
   BOOK SECTION (Homepage)
   ========================================= */
.book-section {
  padding: 96px 0;
  background: var(--white);
}

.book-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.book-text__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.book-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  line-height: 1.25;
}

.book-text p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.75;
}

.book-cover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-placeholder {
  width: 260px;
  height: 360px;
  background: linear-gradient(145deg, #1A4D7A 0%, #0f3256 100%);
  border-radius: 4px 8px 8px 4px;
  box-shadow: -8px 8px 32px rgba(0,0,0,0.22), inset -3px 0 6px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.book-cover-placeholder__em {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 12px;
}

.book-cover-placeholder__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.book-cover-placeholder__sub {
  font-size: 0.72rem;
  opacity: 0.55;
  font-style: italic;
}

.book-cover-placeholder__badge {
  position: absolute;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--gold);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
  padding: 96px 0;
  background: var(--bg-light);
}

.about__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about__inner .section__label { display: block; margin-bottom: 12px; }
.about__inner h2 { margin-bottom: 20px; }
.about__inner p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.about__inner .btn { margin-top: 32px; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer__brand .logo { color: var(--white); margin-bottom: 8px; }
.footer__brand p { color: rgba(255,255,255,0.5); font-size: 0.82rem; max-width: 260px; }

.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 10px;
  max-width: 440px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s;
}

.modal__close:hover { color: var(--text); }

.modal__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.modal h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.modal p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Email Form */
.email-form { display: flex; flex-direction: column; gap: 12px; }

.email-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.email-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}

.email-form input[type="email"]:focus {
  border-color: var(--navy);
}

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

.email-form .btn { width: 100%; text-align: center; }

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* =========================================
   LANDING PAGE (book.html)
   ========================================= */
.lp-hero {
  padding: 80px 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.lp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.lp-text__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.lp-text h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.lp-subhead {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.8;
  font-style: italic;
}

.lp-bullets {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.lp-bullets li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================
   THANK YOU PAGE
   ========================================= */
.ty-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ty-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.ty-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.ty-check {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.ty-check svg { width: 28px; height: 28px; stroke: var(--white); }

.ty-inner h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
.ty-inner > p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 48px; }

.ty-affiliate {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 36px;
  margin-top: 0;
  text-align: left;
}

.ty-affiliate__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.ty-affiliate h2 { font-size: 1.25rem; margin-bottom: 12px; }

.ty-affiliate p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 20px; }
  .site-nav.is-open { display: flex; }
  .hamburger { display: flex; }

  .section { padding: 56px 0; }

  .book-layout,
  .lp-layout { grid-template-columns: 1fr; gap: 48px; }

  .book-cover-wrap { order: -1; }

  .cards { grid-template-columns: 1fr 1fr; }

  .lp-hero { padding: 48px 0; min-height: auto; }

  .modal { padding: 36px 24px; }

  .footer__inner { flex-direction: column; gap: 24px; }

  .hero { padding: 64px 0 56px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .lp-layout { gap: 36px; }
}
