/* ===========================================================
   Clarity Board — stylesheet
   Palette pulled directly from the 3 book covers
=========================================================== */

:root {
  --mint: #8FD3AE;
  --mint-deep: #5FB98C;
  --yellow: #F5F179;
  --yellow-deep: #E6DE3E;
  --indigo: #433491;
  --indigo-deep: #322570;
  --blue: #3A77BF;
  --ink: #1F2438;
  --ink-soft: #4B5169;
  --paper: #FBF9F2;
  --paper-alt: #F3F0E4;
  --white: #FFFFFF;
  --line: rgba(31, 36, 56, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -20px rgba(31, 36, 56, 0.25);
  --shadow-sm: 0 8px 20px -10px rgba(31, 36, 56, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--indigo-deep);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-deep);
  display: inline-block;
}

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

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--indigo-deep); }

.btn-secondary {
  background: transparent;
  border-color: var(--indigo);
  color: var(--indigo);
}
.btn-secondary:hover { background: var(--indigo); color: var(--white); }

.btn-yellow {
  background: var(--yellow);
  color: var(--indigo-deep);
  box-shadow: var(--shadow-sm);
}
.btn-yellow:hover { background: var(--yellow-deep); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--indigo-deep);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a { color: var(--ink); opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--indigo); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta span::before {
  content: "✓";
  color: var(--mint-deep);
  font-weight: 900;
}

.hero-covers {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.hero-covers .book-mock {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 172px;
  height: fit-content;
}
.hero-covers .book-mock:nth-child(1) { transform: rotate(-13deg) translate(-206px, 22px); z-index: 1; width: 164px; }
.hero-covers .book-mock:nth-child(2) { transform: rotate(-7deg) translate(-76px, 10px); z-index: 2; }
.hero-covers .book-mock:nth-child(3) { transform: rotate(1deg) translate(46px, -18px); z-index: 4; width: 186px; }
.hero-covers .book-mock:nth-child(4) { transform: rotate(9deg) translate(160px, 12px); z-index: 3; }
@media (max-width: 520px) {
  .hero-covers .book-mock:nth-child(1) { transform: rotate(-13deg) translate(-150px, 30px); width: 128px; }
  .hero-covers .book-mock:nth-child(2) { transform: rotate(-7deg) translate(-56px, 16px); width: 148px; }
  .hero-covers .book-mock:nth-child(3) { transform: rotate(1deg) translate(30px, -12px); width: 156px; }
  .hero-covers .book-mock:nth-child(4) { transform: rotate(9deg) translate(112px, 18px); width: 148px; }
}

/* ---------- Paperback mockup (cover + peeking page edges) ---------- */
.book-mock {
  position: relative;
  display: block;
}
.book-mock::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  right: -8px;
  bottom: -8px;
  background:
    repeating-linear-gradient(to bottom, #ffffff 0px, #ffffff 3px, #e7e2d2 3px, #e7e2d2 4px);
  border-radius: 2px 9px 9px 2px;
  box-shadow: 3px 4px 10px rgba(31, 36, 56, 0.22);
  z-index: 0;
}
.book-mock img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 4px 2px 2px 4px;
  box-shadow: 5px 7px 18px rgba(31, 36, 56, 0.32), inset 2px 0 0 rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ---------- Why strip ---------- */
.why {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { text-align: left; }
.why-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.why-card:nth-child(1) .why-icon { background: rgba(143,211,174,0.35); }
.why-card:nth-child(2) .why-icon { background: rgba(245,241,121,0.45); }
.why-card:nth-child(3) .why-icon { background: rgba(67,52,145,0.15); }
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- System / flow ---------- */
.system-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .system-flow { grid-template-columns: 1fr; }
}
.flow-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  position: relative;
}
.flow-card .flow-step {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.flow-card.mint .flow-step { background: var(--mint); color: var(--indigo-deep); }
.flow-card.yellow .flow-step { background: var(--yellow); color: var(--indigo-deep); }
.flow-card.indigo .flow-step { background: var(--indigo); color: var(--white); }
.flow-card h3 { font-size: 21px; margin-bottom: 10px; }
.flow-card p { font-size: 15px; }
.flow-card .flow-question {
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 10px;
}
.flow-card .flow-question em { font-style: italic; }
.flow-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flow-tags span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.flow-arrow {
  display: none;
}
@media (min-width: 901px) {
  .flow-arrow-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: -44px;
    margin-bottom: 12px;
    pointer-events: none;
  }
}

.color-callout {
  background: var(--indigo);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) {
  .color-callout { grid-template-columns: 1fr; padding: 32px 24px; }
}
.color-callout h3 { color: var(--white); font-size: 24px; }
.color-callout p { color: rgba(255,255,255,0.82); font-size: 15.5px; }
.color-dots { display: flex; gap: 14px; flex-wrap: wrap; }
.color-dot {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 13px;
  font-weight: 600;
}
.color-dot i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }

.step-preview {
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: var(--shadow-sm);
}
.step-preview img { width: 100%; display: block; }

/* ---------- Books ---------- */
.books-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.book-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.book-header h3 { font-size: 23px; margin-bottom: 0; }
.book-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .book-content { grid-template-columns: 1fr; } }

.book-media {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 460px) { .book-media { flex-direction: column; align-items: stretch; } }

.book-card .book-cover {
  flex: 0 0 auto;
  width: 24%;
  min-width: 76px;
  max-width: 120px;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 460px) { .book-card .book-cover { width: 120px; max-width: 120px; margin: 0 auto; } }
.book-card .book-cover img { width: 100%; display: block; }

.book-card .book-preview {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: var(--shadow-sm);
}
.book-card .book-preview img {
  width: 100%;
  display: block;
}
.preview-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 36, 56, 0.82);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.book-card .book-body { display: flex; flex-direction: column; gap: 12px; }
.book-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.book-card.mint .book-badge { background: var(--mint); color: var(--indigo-deep); }
.book-card.yellow .book-badge { background: var(--yellow); color: var(--indigo-deep); }
.book-card.indigo .book-badge { background: var(--indigo); color: var(--white); }
.book-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.book-card ul li { margin-bottom: 4px; }
.book-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}
.book-price { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 20px; color: var(--indigo-deep); }

.bundle-banner {
  margin-top: 32px;
  background: var(--paper-alt);
  border: 1px dashed var(--indigo);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.bundle-banner h4 { margin-bottom: 4px; font-size: 18px; }
.bundle-banner p { margin-bottom: 0; font-size: 14px; }
@media (max-width: 640px) {
  .bundle-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }
  .bundle-banner .btn {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}

/* ---------- Supplies ---------- */
.supplies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .supplies-grid { grid-template-columns: 1fr; } }
.supply-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.supply-card .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--indigo-deep);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-family: "Baloo 2", sans-serif;
}
.supply-card h4 { font-size: 16.5px; margin-bottom: 6px; }
.supply-card p { font-size: 14.5px; margin-bottom: 10px; }
.supply-card a.shop-link { font-size: 13.5px; font-weight: 700; color: var(--blue); }
.supply-card a.shop-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .about .container { grid-template-columns: 1fr; } }
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 15px;
  color: var(--indigo-deep);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--indigo-deep);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 15px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--indigo);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  margin: 0 24px;
  padding: 64px 32px;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.8); font-size: 17px; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer {
  background: var(--paper-alt);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h5 {
  font-family: "Baloo 2", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo-deep);
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Placeholder flag (dev-only visual note, remove for launch) ---------- */
.needs-link {
  outline: 2px dashed #E4572E;
  outline-offset: 3px;
}
