/* Suddenly Single — Shared Public Stylesheet */
/* Unified design tokens — used across all public pages */

:root {
  --navy: #173657;
  --navy2: #0f2943;
  --copper: #c47b4b;
  --copper-light: #e4a77e;
  --cream: #f6f0e5;
  --cream-dark: #ece3d0;
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #d8dee5;
  --white: #fff;
  --green: #2f6c55;
  --green-light: #edf8f1;
  --soft: #eef4f8;
  --shadow: 0 16px 40px rgba(15,41,67,.10);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.16);
  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --max-w: 1160px;
  --max-w-article: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; }

/* Layout */
.container { width: min(var(--max-w), calc(100% - 36px)); margin: auto; }
.container-narrow { width: min(var(--max-w-article), calc(100% - 36px)); margin: auto; }

/* Top bar */
.topbar {
  background: var(--navy2);
  color: var(--white);
  font-size: .92rem;
  text-align: center;
  padding: 9px 16px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,54,87,.10);
}
nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-family: Georgia, serif;
  font-size: 1.55rem;
}
.brand strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.05; }
.brand span { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.navlinks a:hover { color: var(--copper); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition: filter .15s ease, background .15s ease;
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { filter: brightness(.94); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--soft); }
.btn-light { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-light:hover { background: rgba(255,255,255,.1); }

/* Typography */
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; }
h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; }
h2 { font-family: Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.45rem); font-weight: 500; color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .78rem; color: var(--copper-light); }
.lead { font-size: 1.15rem; color: #394957; }

/* Sections */
section { padding: 82px 0; }
.section-head { max-width: 780px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy2), var(--navy) 60%, #294d70);
  color: var(--white);
  padding: 88px 0 76px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 58px; align-items: center; }
.hero p { font-size: 1.18rem; color: #e9eef4; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--white); font-size: 1.3rem; }
.hero-card .stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.stat div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 15px; }
.stat strong { display: block; font-size: 1.35rem; }
.stat span { font-size: .84rem; color: #dce5ee; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin-bottom: 0; }

/* Path grid (two-column cards) */
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.path-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.path-card p { color: var(--muted); }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* Book grid */
.book-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.book-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); display: flex; flex-direction: column; min-height: 100%; }
.book-cover-image { display: block; width: 100%; height: auto; object-fit: cover; background: var(--cream); border-bottom: 1px solid var(--line); }
.book-cover-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: var(--white);
  font-family: Georgia, serif;
  font-size: .9rem;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.book-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.book-body p { font-size: .93rem; color: var(--muted); margin: 0; }
.book-actions { margin-top: auto; display: grid; gap: 8px; }

/* Program section */
.program-intro { background: var(--navy); color: var(--white); }
.program-intro h2, .program-intro h3 { color: var(--white); }
.program-intro .section-head p { color: #dbe5ef; }
.program-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; }
.program-card { background: var(--white); color: var(--ink); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.program-card h3 { color: var(--navy); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; }
.checklist li:before { content: "\2713"; position: absolute; left: 0; color: var(--copper); font-weight: 900; }

/* Roadmap */
.roadmap { background: var(--soft); }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.week { background: var(--white); border: 1px solid #d9e3eb; border-radius: 15px; padding: 22px; }
.week .num { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 900; margin-bottom: 14px; }
.week p { margin: 0; color: var(--muted); font-size: .94rem; }

/* How it works flow */
.how-it-works { background: var(--white); }
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 200px; text-align: center; padding: 24px 16px; position: relative; }
.flow-step .flow-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--soft); border: 3px solid var(--copper);
  display: grid; place-items: center;
  font-size: 1.8rem; margin: 0 auto 14px;
}
.flow-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow-step p { font-size: .9rem; color: var(--muted); margin: 0; }
.flow-arrow {
  display: flex; align-items: center;
  color: var(--copper); font-size: 1.5rem;
  padding: 0 4px;
}

/* Testimonials */
.testimonials { background: var(--cream); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.testimonial-card .stars { color: var(--copper); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card .quote { font-family: Georgia, serif; font-size: 1.1rem; color: var(--navy); line-height: 1.5; margin-bottom: 16px; }
.testimonial-card .author { font-size: .9rem; }
.testimonial-card .author strong { display: block; color: var(--navy); }
.testimonial-card .author span { color: var(--muted); }

/* Lead capture */
.lead-capture {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: var(--white);
  text-align: center;
}
.lead-capture h2 { color: var(--white); }
.lead-capture p { color: #dce6ef; max-width: 620px; margin: 0 auto 26px; }
.lead-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.lead-form input {
  flex: 1; min-width: 200px;
  padding: 14px 16px; border: none; border-radius: var(--radius-sm);
  font-size: 1rem;
}
.lead-form button {
  padding: 14px 28px; border: none; border-radius: var(--radius-sm);
  background: var(--copper); color: var(--white); font-weight: 800;
  font-size: 1rem; cursor: pointer;
}
.lead-form button:hover { filter: brightness(.94); }
.lead-form .fine { width: 100%; font-size: .8rem; color: #9fb0c0; margin-top: 10px; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy2), var(--navy)); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #dce6ef; max-width: 760px; margin: 0 auto 26px; }

/* Forms */
.forms { background: #f7f9fb; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
label { font-weight: 800; font-size: .9rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 13px;
  border: 1px solid #bcc7d1; border-radius: 9px;
  font: inherit; margin-bottom: 15px;
}
textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer { background: #0b2034; color: #cad6e2; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; }
footer a { color: var(--white); }
.legal { font-size: .82rem; color: #9fb0c0; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; }

/* Guides */
.guides { background: #f7f9fb; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 22px; }
.guide-card strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; }
.guide-card span { color: var(--muted); font-size: .94rem; }

/* Article (guide pages) */
.article { padding: 56px 0; }
.article h2 { font-family: Georgia, serif; color: var(--navy); font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1.15; margin: 46px 0 16px; }
.article h3 { color: var(--navy); font-size: 1.25rem; margin: 30px 0 8px; }
.article p, .article li { font-size: 1.04rem; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.toc strong { color: var(--navy); }
.toc ul { margin: 10px 0 0; padding-left: 20px; }
.toc a { color: var(--navy); }
.callout { background: var(--cream); border-left: 5px solid var(--copper); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.callout strong { color: var(--navy); }
.related { background: #f7f9fb; padding: 48px 0; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-grid a { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: var(--navy); font-weight: 700; }
.related-grid a:hover { border-color: var(--copper); }

/* Breadcrumbs */
.breadcrumbs { font-size: .86rem; margin-bottom: 18px; color: #d9e3ec; }
.breadcrumbs a { color: var(--white); }

/* Checkout page */
.checkout-page { background: var(--cream); min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; }
.checkout-wrapper { max-width: 880px; width: 100%; }
.checkout-header { text-align: center; margin-bottom: 24px; }
.checkout-header .brand-mark { margin: 0 auto 12px; }
.checkout-card-main {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.checkout-header-bar { background: var(--navy); color: var(--cream); padding: 28px 24px; }
.checkout-eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; color: var(--copper-light); margin-bottom: 6px; }
.checkout-body { padding: 28px 24px; }
.checkout-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.checkout-features div { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); }
.checkout-features div:before { content: "\2713"; color: var(--green); font-weight: 900; }
.checkout-faq { background: var(--soft); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.checkout-faq h3 { font-size: 1.1rem; margin-bottom: 14px; }
.checkout-faq details { margin-bottom: 12px; }
.checkout-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .95rem; }
.checkout-faq details p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.trust-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.trust-badge svg { width: 16px; height: 16px; }

/* 404 page */
.error-page { background: var(--cream); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.error-page h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--navy); margin-bottom: 8px; }
.error-page p { color: var(--muted); font-size: 1.1rem; max-width: 460px; margin: 0 auto 28px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .mission-grid, .program-grid, .measure-grid, .form-grid, .purchase-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .nav-toggle { display: flex; }
  .navlinks.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .navlinks.open a { font-size: 1rem; padding: 8px 0; }
  .brand span { font-size: .65rem; }
  nav { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.3rem; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; }
}

@media (max-width: 620px) {
  section { padding: 62px 0; }
  .hero { padding: 64px 0 54px; }
  .book-grid, .weeks, .system-grid, .org-grid, .feature-grid, .metrics, .path-grid, .related-grid { grid-template-columns: 1fr; }
  .book-card { max-width: 520px; margin: 0 auto; width: 100%; }
  .book-body { padding: 16px 18px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .checkout-features { grid-template-columns: 1fr; }
}
