/* Fonts */
/* Playfair Display + DM Sans already loaded via layout.ejs link tag */

/* Variables */
:root {
  --bg: #FAF8F5;
  --bg-alt: #F2EEE7;
  --fg: #2C2C2C;
  --fg-muted: #6B6B6B;
  --teal: #1B6B6B;
  --teal-light: #E8F4F4;
  --amber: #E8913A;
  --amber-light: #FDF3E8;
  --red: #C0392B;
  --cream-dark: #E8E0D4;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
}

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }

p { color: var(--fg-muted); font-size: 1rem; line-height: 1.7; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--fg);
  text-decoration: none;
}
.wordmark strong { color: var(--teal); }
.site-header nav {
  display: flex;
  gap: 2rem;
}
.site-header nav a {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--teal); text-decoration: none; }

/* Hero */
.hero {
  background: var(--bg);
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text .hero-eyebrow {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  margin-bottom: 1.25rem;
  color: var(--fg);
}
.hero-text .lede {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-steps {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: var(--fg);
}
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
}
.phone-frame {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  width: 220px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.phone-screen .screen-header {
  background: var(--white);
  padding: 8px 12px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  justify-content: center;
}
.phone-screen .screen-notch {
  width: 60px;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
}
.phone-screen .screen-content {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.step-callout {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.step-callout.top { align-items: flex-start; }
.step-callout.mid { align-items: center; }
.step-callout.bot { align-items: flex-end; }
.callout-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.callout-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.callout-text-line {
  height: 4px;
  border-radius: 2px;
  background: var(--cream-dark);
}
.callout-text-line.long { width: 80px; }
.callout-text-line.medium { width: 56px; }
.callout-label {
  font-size: 0.65rem;
  color: var(--teal);
  font-weight: 500;
}
.screen-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
}

/* Guide cards */
.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}
.guide-card {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.guide-card.active {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}
.guide-icon { display: flex; align-items: center; flex-shrink: 0; }

/* The Problem */
.theproblem {
  background: var(--bg-alt);
  padding: 5rem 2rem;
}
.theproblem-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.theproblem h2 {
  max-width: 680px;
  margin-bottom: 3rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.problem-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.problem-card.wrong { border-left: 4px solid var(--red); }
.problem-icon { margin-bottom: 1rem; }
.problem-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.problem-card p {
  font-size: 0.9rem;
  font-style: italic;
}
.problem-solution {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: 16px;
  padding: 2rem 2.5rem;
}
.solution-arrow { flex-shrink: 0; }
.problem-answer h3 {
  font-family: 'Playfair Display', serif;
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.problem-answer p { color: var(--fg); }

/* Guides */
.guides {
  background: var(--bg);
  padding: 5rem 2rem;
}
.guides-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.guides h2 {
  margin-bottom: 1rem;
}
.guides-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.guide-item {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.guide-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--teal);
}
.guide-item-icon { margin-bottom: 0.25rem; }
.guide-item h3 { font-size: 1.15rem; margin-bottom: 0.25rem; color: var(--fg); }
.guide-item p { font-size: 0.88rem; flex-grow: 1; }
.guide-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  margin-top: auto;
}

/* Approach */
.approach {
  background: var(--bg-alt);
  padding: 5rem 2rem;
}
.approach-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}
.approach h2 { margin-bottom: 2.5rem; max-width: 480px; }
.approach-principles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.principle {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.principle-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  width: 40px;
  flex-shrink: 0;
  line-height: 1;
}
.principle-text h4 { margin-bottom: 0.4rem; }
.principle-text p { font-size: 0.9rem; }

/* Quote block */
.approach-quote {
  background: var(--teal);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  color: white;
}
blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: white;
  font-style: italic;
  margin-bottom: 1.5rem;
}
blockquote cite {
  font-size: 0.8rem;
  font-style: normal;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Closing */
.closing {
  background: var(--teal);
  padding: 6rem 2rem;
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing h2 {
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}
.closing p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.closing-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: white;
  color: var(--teal);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--amber);
  color: white;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: white;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-brand .wordmark { color: white; margin-bottom: 0.75rem; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 4rem; }
.footer-col h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { align-items: center; }
  .guide-cards { grid-template-columns: repeat(4, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-inner { grid-template-columns: 1fr; }
  .approach-quote { order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .theproblem, .guides, .approach { padding: 3rem 1.25rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-cards { grid-template-columns: 1fr 1fr; }
  .phone-frame { width: 180px; }
  .hero-steps { gap: 0.5rem; }
}