
:root {
  --teal: #0c8f9a; --deep-teal: #056a77; --sky: #d7f5ff; --leaf: #78ad3b; --leaf-dark: #4f7f29;
  --cream: #fff8e8; --wood: #b87432; --brown: #593818; --ink: #21323a; --paper: #ffffff;
  --shadow: 0 22px 60px rgba(34, 70, 80, .18); --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Trebuchet MS", "Nunito", system-ui, sans-serif; color: var(--ink);
  background: radial-gradient(circle at 10% 10%, rgba(120,173,59,.18), transparent 25%),
              radial-gradient(circle at 90% 5%, rgba(12,143,154,.15), transparent 22%),
              linear-gradient(180deg, #ffffff 0%, #f5fcff 45%, #fffaf0 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 54px); background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12,143,154,.12);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; color: var(--deep-teal); }
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center; color: white;
  background: linear-gradient(135deg, var(--teal), var(--leaf)); border-radius: 18px; box-shadow: 0 8px 18px rgba(12,143,154,.26);
}
.brand-text { line-height: 1.05; }
.brand-text em { color: var(--leaf-dark); font-style: normal; font-size: .9rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 800; color: var(--brown); }
.main-nav a, .nav-cta { text-decoration: none; }
.nav-cta { background: var(--teal); color: white; padding: 10px 18px; border-radius: 999px; font-weight: 900; }

.section-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; padding: 76px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--deep-teal); font-weight: 900; font-size: .82rem; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.05; margin: 0; color: var(--brown); }
h1 { font-size: clamp(3rem, 8vw, 6.6rem); letter-spacing: -.06em; }
h1 span { color: var(--teal); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); letter-spacing: -.04em; }
h3 { font-size: 1.55rem; }
p { font-size: 1.06rem; }

.hero {
  display: grid; grid-template-columns: 1fr 0.95fr; gap: 38px; align-items: center; min-height: 76vh; padding-top: 44px;
}
.hero-lede { font-size: clamp(1.1rem, 2.5vw, 1.35rem); max-width: 58ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 20px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px;
  font-weight: 900; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem;
}
.button.primary { background: linear-gradient(135deg, var(--teal), var(--deep-teal)); color: white; box-shadow: 0 12px 24px rgba(12,143,154,.24); }
.button.secondary { background: var(--cream); color: var(--brown); border: 2px solid rgba(89,56,24,.16); }
.mini-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.mini-badges span { background: white; border: 1px solid rgba(12,143,154,.15); border-radius: 999px; padding: 8px 12px; font-weight: 800; color: var(--deep-teal); }

.hero-art-compact {
  position: relative; min-height: 440px; border-radius: 42px; background: radial-gradient(circle at 50% 25%, rgba(255,255,255,.95), transparent 42%),
    linear-gradient(135deg, #dff7ff, #fff8e8 66%, #e7ffd3); box-shadow: var(--shadow); border: 8px solid white; overflow: hidden;
}
.hero-main { position: absolute; bottom: 0; width: 45%; max-height: 390px; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(34,70,80,.18)); }
.noki-hero { left: 11%; }
.tovi-hero { right: 12%; bottom: 26px; width: 36%; }
.hero-dovi { position: absolute; top: 30px; right: 44%; width: 116px; height: 116px; object-fit: cover; border-radius: 30px; background: white; border: 5px solid white; box-shadow: 0 14px 34px rgba(34,70,80,.18); transform: rotate(-8deg); }

.about-grid, .split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.mission-card, .join-card, .club-card, .merch-card, .lesson-grid > div, .character-tile {
  background: rgba(255,255,255,.94); border: 1px solid rgba(12,143,154,.12); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mission-card { padding: 38px; background: linear-gradient(135deg, #ffffff, var(--cream)); }
.mission-card h3::before { content: "🕊 "; }

.law-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 24px 16px;
  background: linear-gradient(90deg, var(--deep-teal), var(--teal));
}
.law-pill { color: white; font-weight: 900; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 14px; }

.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, #e8fbff, #fff5d8); border: 10px solid white; }
.channel-frame {
  display: grid; place-items: center; background: radial-gradient(circle at 25% 18%, rgba(255,255,255,.92), transparent 30%),
    linear-gradient(135deg, #d7f5ff, #fff8e8 60%, #e9ffd8);
}
.youtube-card { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: clamp(22px, 4vw, 46px); text-align: center; text-decoration: none; color: var(--brown); }
.youtube-card h3 { color: var(--deep-teal); font-size: clamp(1.8rem, 4vw, 3.4rem); }
.youtube-card p { max-width: 52ch; margin: 0 auto; font-weight: 700; }
.youtube-play {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px;
  background: #ff2f2f; color: white; font-size: 2.8rem; box-shadow: 0 16px 30px rgba(255,47,47,.28);
}

.centered { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.compact-character-section { padding-top: 58px; padding-bottom: 48px; }
.compact-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.gallery-title { margin: 20px 0 14px; color: var(--deep-teal); text-align: center; font-size: 1.55rem; }
.odd-title { margin-top: 30px; }

.character-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 14px; align-items: stretch;
}
.character-tile {
  margin: 0; padding: 12px 10px 10px; text-align: center; border-radius: 24px; overflow: hidden; min-height: 168px;
}
.character-tile img {
  width: 112px; height: 112px; margin: 0 auto 8px; object-fit: cover; object-position: top center;
  border-radius: 22px; background: #fff; border: 3px solid rgba(12,143,154,.10);
}
.character-tile figcaption {
  font-weight: 900; color: var(--brown); line-height: 1.12; font-size: .95rem;
}
.oddling-gallery { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); max-width: 780px; margin-inline: auto; }
.oddling-tile { background: linear-gradient(135deg, #fff, #fff8e8); min-height: 152px; }
.oddling-tile img { object-fit: contain; background: transparent; border: 0; }
.wide-oddling img { width: 128px; }

.club-section { background: linear-gradient(180deg, transparent, rgba(215,245,255,.7), transparent); }
.club-grid, .merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.club-card { padding: 28px; }
.club-card.featured { border: 4px solid rgba(120,173,59,.3); background: linear-gradient(135deg, #fff, #f2ffd9); }
.club-card ul { padding-left: 20px; margin-bottom: 0; }
.club-card li { margin: 8px 0; }

.lesson-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.lesson-grid > div { padding: 18px; }
.lesson-grid span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: white; font-weight: 900; margin-bottom: 10px; }
.lesson-grid h3 { font-size: 1.05rem; color: var(--deep-teal); }
.lesson-grid p { font-size: .92rem; }

.podcast-section { background: linear-gradient(135deg, rgba(255,248,232,.88), rgba(215,245,255,.88)); border-radius: 44px; padding-inline: 36px; margin-top: 60px; }
.podcast-player { width: 100%; min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: white; border: 10px solid white; }
.podcast-player iframe { display: block; width: 100%; min-height: 360px; border: 0; }

.merch-card { padding: 18px; text-align: center; }
.merch-card img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; }
.medallion-card { display: grid; align-content: center; min-height: 420px; background: linear-gradient(135deg, #fff, #fff0c6); }
.medallion { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 5rem; background: radial-gradient(circle at 30% 25%, #f8d77a, #b87432); border: 12px solid #7b4b1c; box-shadow: inset 0 5px 12px rgba(255,255,255,.4), var(--shadow); }

.languages-section { text-align: center; }
.language-grid { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.language-grid a { text-decoration: none; background: white; color: var(--deep-teal); padding: 12px 16px; border-radius: 999px; font-weight: 900; border: 1px solid rgba(12,143,154,.18); box-shadow: 0 8px 20px rgba(12,143,154,.1); }

.join-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; padding: 38px; background: linear-gradient(135deg, #ffffff, #eafbff 60%, #fff8e8); }
.signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-form label { font-weight: 900; color: var(--brown); }
.signup-form input, .signup-form select { width: 100%; margin-top: 5px; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(89,56,24,.2); font: inherit; background: white; }
.signup-form button { grid-column: 1 / -1; }

.site-footer { text-align: center; padding: 48px 16px; background: var(--brown); color: white; }
.site-footer p { margin: 6px 0; }
.site-footer .small { opacity: .78; font-size: .92rem; }
.site-footer a { color: #fffbe0; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero, .about-grid, .split-section, .join-card { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art-compact { min-height: 360px; }
  .club-grid, .merch-grid { grid-template-columns: 1fr; }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .site-header { gap: 12px; }
  .brand-text { font-size: .86rem; }
  .nav-cta { padding: 8px 12px; }
  .section-shell { width: min(100% - 22px, 1180px); padding: 54px 0; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.7rem); }
  .hero-art-compact { min-height: 300px; }
  .hero-main { width: 48%; max-height: 270px; }
  .hero-dovi { width: 82px; height: 82px; top: 18px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; }
  .character-gallery { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

.language-grid a.active-lang {
  background: linear-gradient(135deg, var(--teal), var(--deep-teal));
  color: white;
  border-color: transparent;
}


.language-topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: linear-gradient(90deg, #056a77, #0c8f9a);
  color: white;
  font-weight: 900;
  position: relative;
  z-index: 40;
}
.language-topbar-title {
  font-size: .9rem;
  letter-spacing: .02em;
  opacity: .98;
}
.language-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.top-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: white;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .84rem;
  line-height: 1;
}
.top-lang-link:hover,
.top-lang-link.active-top-lang {
  background: white;
  color: #056a77;
}
.main-page-note {
  font-size: .68rem;
  font-weight: 900;
  opacity: .82;
  border-left: 1px solid currentColor;
  padding-left: 5px;
}
.translated-site-name {
  text-align: center;
  background: #fff8e8;
  color: #593818;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(89,56,24,.12);
}
.language-grid a.active-lang {
  background: linear-gradient(135deg, var(--teal), var(--deep-teal));
  color: white;
  border-color: transparent;
}
@media (max-width: 620px) {
  .language-topbar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .language-topbar-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .top-lang-link {
    white-space: nowrap;
  }
}



/* Uploaded character image updates */
.tovi-hero {
  width: 32%;
  max-height: 360px;
  object-fit: contain;
  background: transparent;
}

.character-tile img[src*="tovi_uploaded.png"] {
  object-fit: contain;
  background: transparent;
  border: 0;
}

.oddlings-group-tile {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px 12px;
}

.oddlings-group-tile img {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 18px;
}

.oddlings-group-tile figcaption {
  margin-top: 8px;
  font-size: 1rem;
}

@media (max-width: 620px) {
  .tovi-hero {
    width: 38%;
    max-height: 250px;
  }
  .oddlings-group-tile {
    max-width: 100%;
  }
}






/* Exact SendFox embed form styling */
.sendfox-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sendfox-form p {
  margin: 0;
}

.sendfox-form label {
  display: block;
  font-weight: 900;
  color: var(--brown);
}

.sendfox-form input[type="text"],
.sendfox-form input[type="email"] {
  width: 100%;
  margin-top: 5px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(89,56,24,.2);
  font: inherit;
  background: white;
}

.sendfox-form p:nth-of-type(5),
.sendfox-form p:last-of-type {
  grid-column: 1 / -1;
}

.sendfox-form input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.15);
}

.sendfox-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--teal), var(--deep-teal));
  color: white;
  box-shadow: 0 12px 24px rgba(12,143,154,.24);
}

@media (max-width: 620px) {
  .sendfox-form {
    grid-template-columns: 1fr;
  }
}


/* Hero character alignment fix */
.hero-art-compact {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  padding: 42px 28px 0;
  min-height: 430px;
  overflow: hidden;
}

.hero-art-compact .hero-main {
  position: static;
  bottom: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(34,70,80,.18));
}

.hero-art-compact .noki-hero {
  width: auto;
  height: 365px;
  max-height: 82%;
  flex: 0 1 44%;
}

.hero-art-compact .tovi-hero {
  width: auto;
  height: 315px;
  max-height: 74%;
  flex: 0 1 36%;
  background: transparent;
}

.hero-art-compact .hero-dovi {
  position: absolute;
  top: 22px;
  right: 26px;
  left: auto;
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 28px;
}

@media (max-width: 980px) {
  .hero-art-compact {
    min-height: 360px;
    padding-top: 36px;
  }
  .hero-art-compact .noki-hero {
    height: 300px;
  }
  .hero-art-compact .tovi-hero {
    height: 260px;
  }
}

@media (max-width: 620px) {
  .hero-art-compact {
    min-height: 300px;
    padding: 32px 14px 0;
    gap: 8px;
  }
  .hero-art-compact .noki-hero {
    height: 248px;
  }
  .hero-art-compact .tovi-hero {
    height: 216px;
  }
  .hero-art-compact .hero-dovi {
    width: 74px;
    height: 74px;
    top: 14px;
    right: 14px;
  }
}
