/* =========================================================
   CastPilot — Design System
   Palette: cream paper / ink / gold  (matches Riptide brand)
   Type: Fraunces (display serif) + Inter (body sans)
   ========================================================= */

:root {
  /* Palette */
  --paper: #f7f3ec;
  --paper-alt: #f2ede3;
  --paper-deep: #ede5d3;
  --ink: #141210;
  --ink-soft: #2a2621;
  --text: #3c352c;
  --muted: #7a6f60;
  --faint: #b7ac9b;
  --rule: #e6dfd1;
  --gold: #b88a3c;
  --gold-dim: #8f6924;
  --gold-soft: #d5ac66;
  --accent-surface: #efe8d6;

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: clamp(24px, 3vw, 32px);
  --text-2xl: clamp(30px, 4vw, 44px);
  --text-3xl: clamp(40px, 6vw, 72px);
  --text-hero: clamp(48px, 8vw, 96px);

  /* Layout */
  --max-width: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'ss02', 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-outer {
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(56px, 9vh, 96px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark svg { color: var(--gold); }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}
.site-nav a { transition: color .18s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease;
}
.site-nav .nav-cta:hover {
  background: var(--gold-dim);
  color: var(--paper);
  transform: translateY(-1px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: clamp(56px, 10vh, 96px);
  padding-bottom: clamp(32px, 6vh, 56px);
  text-align: center;
}
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 clamp(20px, 3vh, 32px);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 clamp(20px, 3vh, 32px);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-dim);
  font-weight: 400;
}
.hero-lede {
  max-width: 58ch;
  margin: 0 auto clamp(28px, 4vh, 40px);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-fine {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 12px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--gold-dim);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-lg { padding: 14px 28px; font-size: var(--text-base); }

/* =========================================================
   EXAMPLE PREP CARD
   ========================================================= */
.example {
  padding-top: clamp(20px, 4vh, 48px);
  padding-bottom: clamp(56px, 9vh, 96px);
}
.prep-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 18, 16, 0.06);
}
.prep-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.prep-header .dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
}
.prep-header .dot:nth-child(1) { background: #d68b8b; }
.prep-header .dot:nth-child(2) { background: #d5b866; }
.prep-header .dot:nth-child(3) { background: #97b287; }
.prep-title {
  margin-left: 14px;
  font-size: var(--text-sm);
  color: var(--muted);
  font-family: var(--font-body);
}
.prep-title em {
  color: var(--ink);
  font-style: italic;
  font-family: var(--font-display);
}
.prep-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 26px 26px;
}
.prep-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  margin: 16px 0 6px;
}
.prep-label:first-child { margin-top: 0; }
.prep-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.prep-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.prep-list li { margin-bottom: 4px; }
.prep-list em { font-style: italic; color: var(--gold-dim); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--rule);
}
.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-alt.wrap-outer { border-top: 1px solid var(--rule); }
.section-alt .section { border-top: none; padding: 0; }

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
}
.section-head { margin-bottom: clamp(32px, 5vh, 48px); max-width: 640px; }

/* =========================================================
   HOW IT WORKS — steps
   ========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  counter-reset: none;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
  min-width: 40px;
}
.steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.steps p {
  margin: 0;
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.55;
}

/* =========================================================
   WHAT IT HELPS WITH — grid
   ========================================================= */
.helps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.help {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.help:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 18, 16, 0.05);
}
.help h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.help p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

/* =========================================================
   OUR APPROACH
   ========================================================= */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.approach-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}
.approach-body p { margin: 0 0 16px; }
.approach-body p:last-child { margin-bottom: 0; }
.approach-body strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   STUDIOS & COACHES
   ========================================================= */
.studios-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.studios-body {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 56ch;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download {
  text-align: center;
  background: var(--accent-surface);
  border-radius: 24px;
  margin: clamp(40px, 6vh, 72px) var(--gutter) clamp(40px, 6vh, 72px);
  max-width: none;
  padding: clamp(56px, 8vh, 96px) 32px;
  border-top: none;
}
.download-inner { max-width: 560px; margin: 0 auto; }
.download-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.05;
}
.download-sub {
  color: var(--muted);
  font-size: var(--text-lg);
  margin: 0 0 28px;
}
.download-fine {
  margin: 24px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.download-fine a {
  color: var(--gold-dim);
  border-bottom: 1px dotted var(--gold);
}
.download-fine a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 24px;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.footer-tag {
  font-size: var(--text-sm);
  color: var(--muted);
}
.footer-nav {
  display: flex;
  gap: 20px;
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  flex-wrap: wrap;
}
.footer-nav a { transition: color .18s ease; }
.footer-nav a:hover { color: var(--ink); }

.footer-fine {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--text-xs);
  color: var(--muted);
  flex-wrap: wrap;
}
.fine-left { max-width: 60ch; margin: 0; }
.fine-right { margin: 0; text-align: right; }
.riptide-link {
  color: var(--gold-dim);
  border-bottom: 1px solid var(--gold);
  transition: color .18s ease;
}
.riptide-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .helps-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .prep-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .helps-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-fine { flex-direction: column; }
  .fine-right { text-align: left; }
  .download { margin: 24px 12px; padding: 40px 20px; border-radius: 16px; }
}
