:root {
  --teal-900: #0B3B36;
  --teal-700: #10574F;
  --mint-100: #E8F5F0;
  --paper: #FDFBF6;
  --coral: #FF6B4A;
  --coral-100: #FFE6DE;
  --marigold: #F2C14E;
  --marigold-100: #FDF1D6;
  --ink: #1A2723;
  --ink-soft: #45564F;
  --radius-card: 18px;
  --radius-pill: 999px;
  --font-display: "Baloo 2", sans-serif;
  --font-body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--teal-900); line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid rgba(11,59,54,0.1); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--teal-900); }
.brand-smile { width: 34px; height: 14px; stroke: var(--coral); stroke-width: 4; fill: none; stroke-linecap: round; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.main-nav a:hover { color: var(--coral); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; font-family: var(--font-body); font-size: 1rem; }
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: #e85a3c; }
.btn-ghost { background: transparent; border-color: var(--teal-900); color: var(--teal-900); }
.btn-ghost:hover { background: var(--teal-900); color: white; }

/* Hero */
.hero { position: relative; padding-top: 60px; background: linear-gradient(180deg, var(--mint-100), var(--paper) 85%); }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 90px; }
.hero-copy { flex: 1 1 480px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-tip-card { flex: 0 0 300px; background: white; border-radius: var(--radius-card); padding: 22px; box-shadow: 0 12px 30px rgba(11,59,54,0.12); transform: rotate(-2deg); }
.tip-label { display: block; font-weight: 600; color: var(--coral); margin-bottom: 8px; font-size: 0.9rem; }

/* Smile divider */
.smile-divider { display: block; width: 100%; height: 60px; }
.smile-divider path { fill: var(--paper); }
.section-mint + .section .smile-divider path,
.section .smile-divider path { fill: inherit; }
.hero .smile-divider path { fill: var(--mint-100); }
.section-mint .smile-divider path { fill: var(--paper); }
.section-mint .smile-divider.flip path { fill: var(--mint-100); }
.section:not(.section-mint):not(.section-coral):not(.section-marigold) .smile-divider path { fill: var(--mint-100); }
.section-coral .smile-divider path { fill: var(--paper); }
.section-marigold .smile-divider.flip path { fill: var(--paper); }

/* Sections */
.section { padding: 70px 0 10px; position: relative; }
.section-mint { background: var(--mint-100); }
.section-coral { background: var(--coral-100); }
.section-marigold { background: var(--marigold-100); }
.section-intro { color: var(--ink-soft); max-width: 60ch; }

/* Tips */
.tip-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.chip { border: 2px solid var(--teal-900); background: transparent; color: var(--teal-900); padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-body); font-weight: 500; }
.chip.active, .chip:hover { background: var(--teal-900); color: white; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-bottom: 60px; }
.tip-card { background: white; border-radius: var(--radius-card); padding: 20px; border-left: 5px solid var(--coral); }
.tip-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tip-card span { font-size: 0.8rem; color: var(--teal-700); font-weight: 600; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-bottom: 60px; }
.video-card { background: var(--mint-100); border-radius: var(--radius-card); overflow: hidden; }
.video-card .video-frame { aspect-ratio: 16/9; background: var(--teal-900); display: flex; align-items: center; justify-content: center; color: white; }
.video-card .video-meta { padding: 14px 16px; }

/* Brush 3D */
.brush-row { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 70px; }
.brush-copy { flex: 1 1 400px; }
.brush-steps { padding-left: 20px; color: var(--ink-soft); }
.brush-canvas-wrap { flex: 1 1 360px; }
.brush-canvas-placeholder { aspect-ratio: 1/1; background: white; border-radius: var(--radius-card); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-soft); border: 2px dashed var(--teal-700); }
.timer-readout { font-family: var(--font-display); font-size: 1.4rem; color: var(--coral); min-height: 1.6em; }

/* Dos and donts */
.dosdonts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-bottom: 60px; }
.dosdonts-card { background: white; border-radius: var(--radius-card); padding: 20px; }
.dosdonts-card.do { border-top: 5px solid var(--teal-700); }
.dosdonts-card.dont { border-top: 5px solid var(--coral); }
.dosdonts-card .kicker { font-weight: 700; font-family: var(--font-display); }

/* FAQ */
.faq-search { width: 100%; max-width: 420px; padding: 12px 16px; border-radius: var(--radius-pill); border: 2px solid var(--teal-900); font-family: var(--font-body); font-size: 1rem; margin: 16px 0 24px; }
.faq-list { padding-bottom: 60px; }
.faq-item { border-bottom: 1px solid rgba(11,59,54,0.15); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); color: var(--teal-900); }
.faq-item p { margin-top: 10px; color: var(--ink-soft); }

/* Experts */
.experts-row { display: flex; gap: 50px; flex-wrap: wrap; padding-bottom: 70px; }
.experts-row > * { flex: 1 1 360px; }
.expert-options { list-style: none; padding: 0; }
.expert-options li { padding: 10px 0; border-bottom: 1px solid rgba(11,59,54,0.12); }
.expert-form { background: white; border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.expert-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.92rem; }
.expert-form input, .expert-form textarea { padding: 10px 12px; border-radius: 10px; border: 1.5px solid rgba(11,59,54,0.25); font-family: var(--font-body); font-size: 1rem; }
.form-note { color: var(--teal-700); font-weight: 600; }

/* Games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding-bottom: 60px; }
.game-card { background: white; border-radius: var(--radius-card); padding: 20px; text-align: left; }
.game-card .game-icon { font-size: 1.8rem; }

/* Quotes */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-bottom: 60px; }
.quote-card { background: var(--mint-100); border-radius: var(--radius-card); padding: 20px; }
.quote-card blockquote { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.1rem; color: var(--teal-900); }
.quote-card a { color: var(--coral); font-weight: 600; text-decoration: none; }

/* Tracker */
.tracker-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding-bottom: 70px; }
.habit-card { background: white; border-radius: var(--radius-card); padding: 20px; }
.habit-card h3 { font-size: 1.05rem; }
.streak-flame { font-size: 1.3rem; font-weight: 700; color: var(--coral); font-family: var(--font-display); }
.habit-card button { margin-top: 12px; width: 100%; }

/* Footer */
.site-footer { background: var(--teal-900); color: white; padding: 30px 0; text-align: center; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: 24px; background: white; border-radius: 12px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
