/* ============================================================
   Thrive Mind Body Health — shared stylesheet
   Palette + type pulled from the Base44 "Grounded Intellectualism"
   redesign: Fraunces (headings) + Instrument Sans (body),
   deep forest green on warm paper, sage/lime accent.
   ============================================================ */

:root {
  --bg: hsl(90, 30%, 97%);
  --fg: hsl(150, 40%, 16%);
  --card: hsl(90, 20%, 96%);
  --secondary: hsl(90, 25%, 92%);
  --muted: hsl(90, 18%, 90%);
  --muted-fg: hsl(150, 15%, 42%);
  --accent: hsl(83, 68%, 42%);
  --accent-fg: hsl(150, 45%, 8%);
  --border: hsl(90, 18%, 86%);
  --dark: hsl(150, 42%, 13%);
  --dark-border: hsla(90, 30%, 97%, 0.14);

  --font-heading: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 0.4rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  --max-width: 1180px;
  --nav-max-width: 1300px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
}
.eyebrow.on-dark { color: var(--accent); }

.italic-accent {
  display: block;
  font-style: italic;
  color: var(--accent-fg);
  background: linear-gradient(0deg, var(--accent) 38%, transparent 38%);
}
h1 .accent-line, h2 .accent-line {
  display: block;
  font-style: italic;
  color: #4a6b1e;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: hsl(83, 68%, 36%); }
.btn-outline { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-outline.on-dark { border-color: var(--dark-border); color: #fff; }
.btn-outline.on-dark:hover { background: #fff; color: var(--dark); }
.btn-block { width: 100%; }

/* ---------- navbar ---------- */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: hsla(90, 30%, 97%, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 22px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  flex-wrap: wrap;
  white-space: nowrap;
}
.nav-links a { opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-divider { width: 1px; height: 20px; background: var(--border); }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: var(--bg);
    border: 1px solid var(--border); border-radius: 20px; padding: 18px 24px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-divider { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    background: transparent; cursor: pointer; flex-shrink: 0;
  }
}
@media (max-width: 480px) {
  .navbar { top: 10px; padding: 0 12px; }
  .navbar-inner { padding: 8px 8px 8px 16px; gap: 8px; }
  .logo { font-size: 1.05rem; }
  .logo small { display: none; }
  .nav-cta { padding: 12px 16px; font-size: 0.85rem; }
}

/* ---------- hero ---------- */
.hero-frame {
  max-width: var(--max-width);
  margin: 18px auto 0;
  padding: 0 24px;
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 78vh;
  min-height: 460px;
  max-height: 760px;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: hsla(90, 30%, 97%, 0.88);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  max-width: 220px;
}
.hero-caption .num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.hero-caption p { margin: 0; font-size: 0.82rem; color: var(--muted-fg); }

.hero-copy { max-width: 720px; padding: 56px 24px 0; margin: 0 auto; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero-copy .lede { font-size: 1.15rem; color: var(--muted-fg); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- generic two-col intro ---------- */
.section-head { max-width: 680px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head .lede { color: var(--muted-fg); font-size: 1.05rem; }

/* ---------- library cards ---------- */
.arcade-trigger {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--fg); border-radius: var(--radius-pill);
  padding: 10px 22px 10px 10px; font-weight: 600; cursor: pointer;
  background: transparent; margin: 8px 0 40px; font-family: var(--font-body); font-size: 0.95rem;
}
.arcade-trigger .play-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.lib-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; isolation: isolate;
}
.lib-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lib-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 20, 12, 0.82) 100%);
}
.lib-card .num { font-family: var(--font-heading); font-size: 2.4rem; opacity: 0.9; margin-bottom: 6px; }
.lib-card h3 { color: #fff; margin-bottom: 6px; }
.lib-card .tags { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-bottom: 14px; }
.lib-card .explore { font-weight: 600; color: var(--accent); }

/* ---------- start here / steps ---------- */
.step-list { margin-top: 44px; border-left: 2px solid var(--border); }
.step-item { position: relative; padding: 20px 0 32px 34px; }
.step-item::before {
  content: ""; position: absolute; left: -7px; top: 24px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--accent); background: var(--bg);
}
.step-item .step-num { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent); margin-right: 10px; }
.step-item h3 { display: inline; font-size: 1.15rem; }
.step-item p { margin-top: 8px; color: var(--muted-fg); max-width: 560px; }

/* ---------- bullet dash list ---------- */
.dash-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.dash-list li { display: flex; gap: 14px; color: var(--muted-fg); }
.dash-list li::before { content: ""; width: 22px; height: 2px; background: var(--accent); margin-top: 11px; flex-shrink: 0; }

/* ---------- numbered box (how thrive teaches) ---------- */
.numbered-box { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 44px; overflow: hidden; }
.numbered-row { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 34px 34px; border-bottom: 1px solid var(--border); }
.numbered-row:last-child { border-bottom: none; }
.numbered-row .num { font-family: var(--font-heading); font-size: 2rem; color: var(--accent); }
.numbered-row h3 { margin-bottom: 8px; }
.numbered-row p { color: var(--muted-fg); margin: 0; max-width: 520px; }
@media (max-width: 600px) { .numbered-row { grid-template-columns: 1fr; } }

/* ---------- dark callout ---------- */
.callout-dark {
  background: var(--dark); color: #fff; border-radius: var(--radius-lg);
  padding: 44px; margin-top: 20px;
}
.callout-dark h3 { color: #fff; font-size: 1.4rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-top: 24px; list-style: none; padding: 0; }
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }
.check-grid li { display: flex; gap: 12px; color: hsla(90, 30%, 97%, 0.85); }
.check-grid li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- nexus / timeline with image ---------- */
.nexus-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 44px; }
@media (max-width: 900px) { .nexus-layout { grid-template-columns: 1fr; } }
.nexus-image { position: sticky; top: 110px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; }
.nexus-image img { width: 100%; height: 100%; object-fit: cover; }
.timeline-item { padding: 26px 0; border-top: 1px solid var(--border); }
.timeline-item:first-child { border-top: none; }
.timeline-item .num { font-family: var(--font-heading); font-size: 2.6rem; color: var(--accent); }
.timeline-item h3 { display: inline-block; margin-left: 12px; }
.timeline-item p { color: var(--muted-fg); margin-top: 10px; }

/* ---------- founder ---------- */
.founder-image { border-radius: var(--radius-lg); overflow: hidden; filter: grayscale(0.55); max-height: 640px; }
.founder-image img { width: 100%; height: 100%; object-fit: cover; }
.founder-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .founder-layout { grid-template-columns: 1fr; } }
.founder-layout h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* ---------- connect ---------- */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .connect-grid { grid-template-columns: 1fr; } }
.connect-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; }
.connect-card h3 { font-size: 1.5rem; }
.field-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 180px; }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; color: var(--fg);
}
textarea { resize: vertical; min-height: 100px; }
.field-note { font-size: 0.8rem; color: var(--muted-fg); margin-top: 14px; }
.form-confirm { display: none; background: var(--secondary); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.9rem; margin-top: 14px; }
.form-confirm.show { display: block; }
.ml-embedded { margin-top: 20px; }
.ml-embedded form, .ml-embedded iframe { width: 100% !important; max-width: 100%; }
.ml-embedded .ml-form-embedContent { display: none !important; }
.ml-embedded input.form-control {
  border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important; color: var(--fg) !important;
}
.ml-embedded button.primary {
  background: var(--accent) !important; color: var(--accent-fg) !important;
  border-radius: var(--radius-pill) !important; border: none !important;
  font-family: var(--font-body) !important; font-weight: 600 !important;
}

/* ---------- closer / footer (dark) ---------- */
.closer { background: var(--dark); color: #fff; }
.closer h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.closer-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.footer { background: var(--dark); color: hsla(90, 30%, 97%, 0.75); padding-top: 40px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--dark-border); }
.footer .logo { color: #fff; }
.footer .logo small { color: hsla(90, 30%, 97%, 0.6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; max-width: 420px; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 22px; font-size: 0.8rem; }

/* ---------- logo ---------- */
.logo-img { height: 42px; width: auto; display: block; }
.logo-tagline {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--muted-fg); white-space: nowrap;
  margin-left: 2px;
}
@media (max-width: 480px) { .logo-img { height: 34px; } .logo-tagline { display: none; } }
@media (max-width: 900px) { .logo-tagline { display: none; } }

/* ---------- instant chat widget ---------- */
.instant-chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: min(360px, calc(100vw - 48px)); font-family: var(--font-body);
}
.instant-chat-toggle {
  width: 100%; min-height: 56px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: none; border-radius: var(--radius-pill);
  background: var(--dark); color: #fff;
  box-shadow: 0 18px 44px hsla(150, 40%, 16%, 0.28);
  cursor: pointer; font-size: 14px; font-weight: 700; font-family: var(--font-body);
}
.instant-chat-toggle span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.instant-chat-dot {
  width: 10px; height: 10px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 5px hsla(83, 68%, 42%, 0.22);
}
.instant-chat-panel {
  margin-bottom: 12px; display: none;
  max-height: min(600px, calc(100vh - 110px)); overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: 0 24px 70px hsla(150, 40%, 13%, 0.2);
}
.instant-chat.open .instant-chat-panel { display: block; }
.instant-chat-head { padding: 20px 22px; background: var(--secondary); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.instant-chat-head strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--fg); }
.instant-chat-head p { margin: 8px 0 0; color: var(--muted-fg); font-size: 0.85rem; line-height: 1.5; }
.instant-chat-body { padding: 20px 22px 22px; }
.instant-chat-options { margin: 0 0 14px; padding: 0; display: grid; gap: 8px; list-style: none; }
.instant-chat-options button {
  width: 100%; min-height: 42px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--fg); cursor: pointer;
  font-size: 0.85rem; font-weight: 600; text-align: left; font-family: var(--font-body);
}
.instant-chat-options button:hover { background: var(--muted); }
.instant-chat-body textarea {
  width: 100%; min-height: 80px; margin-bottom: 10px;
}
.instant-chat-email { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 14px; }
.instant-chat-email input { margin-top: 6px; }
.instant-chat-send { width: 100%; }
.instant-chat-reply {
  margin: 10px 0 0; padding: 12px 14px;
  background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--fg); font-size: 0.85rem; line-height: 1.5;
}
.instant-chat-body .field-note { margin-top: 10px; margin-bottom: 0; }

@media (max-width: 480px) {
  .instant-chat { right: auto; left: 50%; bottom: 14px; width: min(320px, calc(100vw - 32px)); transform: translateX(-50%); }
  .instant-chat-toggle span[aria-hidden="true"] { display: none; }
}

/* ---------- video arcade modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: hsla(150, 40%, 8%, 0.6);
  backdrop-filter: blur(4px); z-index: 100; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-panel {
  background: var(--bg); border-radius: var(--radius-lg); max-width: 900px; width: 100%;
  padding: 40px; position: relative;
}
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 1.1rem;
}
.arcade-coming-soon {
  text-align: center; padding: 48px 24px; margin-top: 20px;
  border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--card);
}
.arcade-coming-soon-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.arcade-coming-soon h3 { font-size: 1.5rem; margin-bottom: 10px; }
.arcade-coming-soon p { max-width: 420px; margin-left: auto; margin-right: auto; }
.arcade-coming-soon .btn { margin-top: 18px; }

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

/* ---------- misc page-specific bits shared ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.tag-pill {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 7px 16px; font-size: 0.82rem; font-weight: 500; color: var(--muted-fg);
}
.pill-price {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  border-radius: var(--radius-pill); padding: 4px 16px; font-weight: 700; font-size: 0.85rem;
}
.center { text-align: center; }
.muted { color: var(--muted-fg); }
