/* GoodBooks — Public Marketing Site Styles */
/* www.dogoodbooks.org */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:      #1a3a4a;
  --cream:     #fdf6e3;
  --teal:      #539592;
  --teal-dark: #3d7370;
  --clay:      #ce7459;
  --slate:     #4c585a;
  --white:     #ffffff;
  --shadow:    rgba(26, 58, 74, 0.10);

  --serif: 'Lora', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background-color: var(--cream);
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline-light:hover {
  background: var(--cream);
  color: var(--navy);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  display: block;
  /* Invert dark-navy mark to cream on the dark nav background */
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(253, 246, 227, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 150ms;
  text-decoration: none;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta { margin-left: 8px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tagline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(253, 246, 227, 0.82);
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  font-size: 0.82rem;
  color: rgba(253, 246, 227, 0.5);
  margin-top: 14px;
}
/* Hero illustration placeholder */
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art svg {
  width: 100%;
  max-width: 340px;
  opacity: 0.92;
}

/* ─────────────────────────────────────────
   PROBLEM
───────────────────────────────────────── */
.problem { background: var(--cream); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}
.problem-list {
  list-style: none;
  margin-top: 24px;
}
.problem-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--slate);
}
.problem-list li::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.problem-callout {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.problem-callout::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 28px;
  font-size: 6rem;
  font-family: var(--serif);
  color: var(--clay);
  line-height: 1;
  opacity: 0.6;
}
.problem-callout blockquote {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 20px;
  padding-top: 24px;
}
.problem-callout cite {
  font-size: 0.85rem;
  color: rgba(253, 246, 227, 0.6);
  font-style: normal;
}

/* ─────────────────────────────────────────
   FEATURES
───────────────────────────────────────── */
.features { background: var(--white); }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--slate);
  margin-top: 12px;
}
.clay-rule {
  width: 48px;
  height: 3px;
  background: var(--clay);
  border-radius: 2px;
  margin: 16px auto 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--teal);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p  { font-size: 0.97rem; }

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.how-it-works { background: var(--cream); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: var(--teal);
  opacity: 0.25;
}
.step { text-align: center; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 8px; }
.step p   { font-size: 0.95rem; }

/* ─────────────────────────────────────────
   PRICING
───────────────────────────────────────── */
.pricing { background: var(--white); }
.pricing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pricing-badge {
  display: inline-block;
  background: var(--clay);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.pricing-list {
  list-style: none;
  margin-top: 24px;
}
.pricing-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.pricing-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  color: var(--cream);
}
.pricing-card h3 {
  color: var(--cream);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--cream);
  margin: 20px 0 4px;
  line-height: 1;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.6;
}
.pricing-note {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-bottom: 28px;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about { background: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-avatar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.founder-photo {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 4px 24px rgba(26, 58, 74, 0.15);
}

/* ─────────────────────────────────────────
   WAITLIST / CTA
───────────────────────────────────────── */
.waitlist {
  background: var(--teal);
  padding: 80px 0;
  text-align: center;
}
.waitlist h2 { color: var(--white); margin-bottom: 12px; }
.waitlist p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; }
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
}
.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 150ms;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.waitlist-form input[type="email"]:focus { border-color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--teal-dark);
}
.waitlist-reassure {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 56px 0 32px;
  color: var(--cream);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(253, 246, 227, 0.12);
  margin-bottom: 32px;
}
.footer-brand img {
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: rgba(253, 246, 227, 0.55);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 246, 227, 0.45);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(253, 246, 227, 0.7);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 150ms;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(253, 246, 227, 0.35);
}
.footer-bottom a {
  color: rgba(253, 246, 227, 0.45);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(253, 246, 227, 0.7); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner,
  .problem-grid,
  .pricing-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 64px 0 72px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-inner { grid-template-columns: 1fr; }
  .about-avatar { order: -1; }
}

@media (max-width: 600px) {
  .section-pad { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .waitlist-form {
    flex-direction: column;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .pricing-inner { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
