/* ==========================================================================
   SkoolDoc — Shared Stylesheet
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  --emerald: #0F3D2A;
  --emerald-deep: #0A2A1D;
  --emerald-soft: #1A5A3F;
  --emerald-tint: #E8EFE9;
  --gold: #D4A853;
  --gold-soft: #E8C57A;
  --coral: #FF8552;
  --coral-soft: #FFB590;
  --cream: #F8F1E3;
  --cream-deep: #F1E7D1;
  --ink: #1C1A15;
  --ink-soft: #4A463C;
  --muted: #7A7365;
  --line: rgba(15, 61, 42, 0.12);
  --line-strong: rgba(15, 61, 42, 0.22);
  --white: #FFFDF8;

  --shadow-sm: 0 1px 2px rgba(15, 61, 42, 0.06), 0 2px 6px rgba(15, 61, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 61, 42, 0.08), 0 10px 30px rgba(15, 61, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 61, 42, 0.10), 0 30px 80px rgba(15, 61, 42, 0.08);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--emerald);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 450; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 450; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.italic { font-style: italic; color: var(--coral); }
.serif { font-family: var(--serif); }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-soft);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(232, 239, 233, 0.6);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
}

/* --- Container ----------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* --- Background textures & blobs ---------------------------------------- */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
}
.blob-1 { width: 520px; height: 520px; top: -200px; right: -180px; background: var(--gold-soft); }
.blob-2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: var(--coral-soft); opacity: 0.22; }
.blob-3 { width: 340px; height: 340px; top: 50%; left: 60%; background: var(--emerald-tint); opacity: 0.5; }

/* --- Logo ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 7px;
  transform: rotate(-4deg);
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(212, 168, 83, 0.35);
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; transform: rotate(4deg); }
.logo-word {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--emerald);
}
.logo-word .doc { font-style: italic; color: var(--coral); }

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: rgba(248, 241, 227, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container); margin: 0 auto;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--emerald); background: rgba(15, 61, 42, 0.05); }
.nav-link.active { color: var(--emerald); }
.nav-cta {
  padding: 10px 18px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--emerald-deep); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 16px; gap: 6px;
    background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 10px; color: var(--emerald);
  }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 2px 0 var(--emerald-deep), var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--emerald-soft); }
.btn-secondary {
  background: var(--white);
  color: var(--emerald);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background: var(--cream-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--emerald); padding: 12px 0;
}
.btn-ghost:hover { color: var(--coral); }
.btn svg { width: 18px; height: 18px; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-proof {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.proof-item { display: flex; flex-direction: column; gap: 2px; }
.proof-num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
  color: var(--emerald); letter-spacing: -0.02em;
}
.proof-label { font-size: 0.82rem; color: var(--muted); }

.hero-art {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(140deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 20% 0%, rgba(212, 168, 83, 0.35), transparent 50%),
              radial-gradient(500px circle at 100% 100%, rgba(255, 133, 82, 0.22), transparent 50%);
}
.hero-art-inner {
  position: absolute; inset: 0; padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--cream);
}
.hero-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(248, 241, 227, 0.14);
  border: 1px solid rgba(248, 241, 227, 0.22);
  border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.hero-art-card {
  background: rgba(248, 241, 227, 0.08);
  border: 1px solid rgba(248, 241, 227, 0.16);
  padding: 22px; border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.hero-art-card .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.hero-art-card .row + .row { border-top: 1px solid rgba(248, 241, 227, 0.12); }
.hero-art-card .row b { color: var(--gold-soft); font-weight: 500; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 48px 0 40px; }
  .hero-art { aspect-ratio: 4/3; }
}

/* --- Sections ------------------------------------------------------------ */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-emerald {
  background: var(--emerald);
  color: var(--cream);
}
.section-emerald h1, .section-emerald h2, .section-emerald h3, .section-emerald h4 { color: var(--cream); }
.section-emerald p { color: rgba(248, 241, 227, 0.8); }
.section-emerald .eyebrow { color: var(--gold-soft); border-color: rgba(212, 168, 83, 0.35); background: rgba(212, 168, 83, 0.08); }

.section-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header .eyebrow { margin-bottom: 18px; }
.section-header h2 { margin-bottom: 16px; }
.section-header .lead { margin: 0 auto; }

@media (max-width: 700px) { .section { padding: 64px 0; } }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--emerald-tint);
  color: var(--emerald);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.96rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Problem strip ------------------------------------------------------- */
.problem-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
}
.problem-stat { padding: 0 28px; border-left: 1px solid var(--line); }
.problem-stat:first-child { border-left: 0; padding-left: 0; }
.problem-stat .big {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 500;
  color: var(--coral); letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 10px;
}
.problem-stat p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
@media (max-width: 780px) {
  .problem-strip { grid-template-columns: 1fr; padding: 28px; }
  .problem-stat { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .problem-stat:first-child { padding-top: 0; border-top: 0; }
}

/* --- Service blocks ------------------------------------------------------ */
.service {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service .cadence {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
  color: var(--coral);
}
.service h3 { margin-bottom: 12px; }
.service ul { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 8px; }
.service ul li {
  padding-left: 22px; position: relative; font-size: 0.96rem; color: var(--ink-soft);
}
.service ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 720px) { .service { grid-template-columns: 1fr; gap: 16px; } }

/* --- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 2.4rem;
  color: var(--coral); line-height: 1; margin-bottom: 14px; display: block;
}
.step h4 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* --- Team / bios --------------------------------------------------------- */
.bio {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bio:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bio-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  position: relative;
  overflow: hidden;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-photo .fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gold-soft);
  font-family: var(--serif); font-size: 4rem; font-style: italic;
}
.bio-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.bio-role {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 10px;
}
.bio h3 { margin-bottom: 4px; }
.bio .credentials { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.bio p { margin: 0 0 12px; font-size: 0.96rem; }
.bio .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bio .tag {
  font-size: 0.78rem;
  padding: 6px 12px;
  background: var(--emerald-tint);
  color: var(--emerald);
  border-radius: 999px;
  font-weight: 500;
}
@media (max-width: 780px) { .bio { grid-template-columns: 1fr; } .bio-photo { aspect-ratio: 16/10; } }

/* --- Split feature ------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.split.reverse .split-art { order: 2; }
.split-art {
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  background: var(--emerald-tint);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-art.coral { background: linear-gradient(160deg, #FFE4D4 0%, #FFB590 100%); }
.split-art.gold { background: linear-gradient(160deg, #F3E0B4 0%, var(--gold-soft) 100%); }
.split-art.emerald {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: var(--cream);
}
.split-art-inner {
  position: absolute; inset: 0; padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-art { order: 0; }
  .split-art { aspect-ratio: 4/3; }
}

/* --- Feature bullets ----------------------------------------------------- */
.bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.bullets li {
  padding-left: 36px; position: relative;
  color: var(--ink-soft);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F1E3' stroke-width='3' stroke-linecap='round'><path d='M5 12l5 5L20 7'/></svg>");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.bullets li strong { color: var(--emerald); font-weight: 600; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--emerald);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--coral); flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 26px 22px; color: var(--ink-soft); font-size: 0.98rem; }

/* --- Form ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.82rem; font-weight: 600; color: var(--emerald);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15, 61, 42, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* --- CTA banner ---------------------------------------------------------- */
.cta-banner {
  background: var(--emerald);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at 20% 10%, rgba(212, 168, 83, 0.22), transparent 50%),
              radial-gradient(500px circle at 80% 100%, rgba(255, 133, 82, 0.22), transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--cream); margin-bottom: 12px; }
.cta-banner p { color: rgba(248, 241, 227, 0.8); margin: 0 auto 28px; max-width: 56ch; }
.cta-banner .btn-primary { background: var(--gold); color: var(--emerald-deep); box-shadow: 0 2px 0 #B7912E; }
.cta-banner .btn-primary:hover { background: var(--gold-soft); }
@media (max-width: 640px) { .cta-banner { padding: 48px 24px; } }

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: var(--emerald-deep);
  color: rgba(248, 241, 227, 0.72);
  padding: 64px 0 28px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(248, 241, 227, 0.12);
}
.footer h4 { color: var(--cream); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; font-family: var(--sans); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(248, 241, 227, 0.75); font-size: 0.92rem; transition: color .2s var(--ease); }
.footer a:hover { color: var(--gold-soft); }
.footer .logo-word { color: var(--cream); }
.footer-about { max-width: 320px; font-size: 0.92rem; line-height: 1.6; margin-top: 16px; color: rgba(248, 241, 227, 0.7); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem; color: rgba(248, 241, 227, 0.55);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Utilities ----------------------------------------------------------- */
.text-center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 52px; }

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
