:root {
  --bg: #eef6fb;
  --bg-soft: #e0edf7;
  --text: #1f2a33;
  --text-soft: #55707f;
  --accent-corn: #f4c542;
  --accent-orange: #f2894e;
  --accent-toast: #d99a52;
  --accent-brocci: #6fa25a;
  --card-shadow: 0 12px 30px rgba(30, 64, 102, 0.08);
  --border: rgba(30, 64, 102, 0.08);
  color-scheme: light;
}

:root[data-palette="blue"] {
  --bg: #eef6fb;
  --bg-soft: #e0edf7;
  --text: #1f2a33;
  --text-soft: #55707f;
  --card-shadow: 0 12px 30px rgba(30, 64, 102, 0.08);
  --border: rgba(30, 64, 102, 0.08);
}

:root[data-palette="beige"] {
  --bg: #fdf8f0;
  --bg-soft: #f7efe0;
  --text: #2b2420;
  --text-soft: #6b5f54;
  --card-shadow: 0 12px 30px rgba(60, 40, 20, 0.08);
  --border: rgba(60, 40, 20, 0.08);
}

:root[data-palette="pink"] {
  --bg: #fdf0f4;
  --bg-soft: #fbe1ea;
  --text: #3a2430;
  --text-soft: #8a5a70;
  --card-shadow: 0 12px 30px rgba(150, 40, 90, 0.08);
  --border: rgba(150, 40, 90, 0.08);
}

:root[data-palette="green"] {
  --bg: #eef7ee;
  --bg-soft: #e0f0e1;
  --text: #1f2e21;
  --text-soft: #587a5c;
  --card-shadow: 0 12px 30px rgba(30, 80, 40, 0.08);
  --border: rgba(30, 80, 40, 0.08);
}

/* Dark mode: fallback (no palette set yet) + one tinted variant per palette */
:root[data-theme="dark"] {
  --bg: #121a22;
  --bg-soft: #1b2530;
  --text: #eef6fb;
  --text-soft: #a9c0cf;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

:root[data-theme="dark"][data-palette="blue"] {
  --bg: #121a22;
  --bg-soft: #1b2530;
  --text: #eef6fb;
  --text-soft: #a9c0cf;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"][data-palette="beige"] {
  --bg: #1c1712;
  --bg-soft: #241d16;
  --text: #f6ede1;
  --text-soft: #cbbeae;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"][data-palette="pink"] {
  --bg: #201017;
  --bg-soft: #2b1620;
  --text: #fbe7ef;
  --text-soft: #caa0b3;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"][data-palette="green"] {
  --bg: #101a12;
  --bg-soft: #16241a;
  --text: #eaf5ea;
  --text-soft: #a8c7ac;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a22;
    --bg-soft: #1b2530;
    --text: #eef6fb;
    --text-soft: #a9c0cf;
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "SF Pro Rounded", ui-rounded, "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", ui-rounded, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  border: none;
  background: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-1px) scale(1.05);
}

.icon-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lang-switch {
  position: relative;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 0.4rem;
  display: none;
  min-width: 140px;
  z-index: 20;
}

.lang-menu.open {
  display: block;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border: none;
  background: none;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  background: var(--bg-soft);
}

main.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem clamp(1.25rem, 6vw, 3rem) 2rem;
  gap: 1.75rem;
}

.mascots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.2rem);
}

.mascots img {
  width: clamp(56px, 9vw, 96px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(60, 40, 20, 0.15));
}

.mascots img:nth-child(2) { transform: translateY(-10px); }
.mascots img:nth-child(4) { transform: translateY(-6px); }

h1.title {
  font-family: "Space Grotesk", ui-rounded, sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--text-soft);
  max-width: 34rem;
  margin: 0;
  line-height: 1.5;
}

.pill-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.5rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.cta-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--text);
}

main.doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Privacy page */
main.doc {
  flex: 1;
  padding: 1rem clamp(1.25rem, 6vw, 3rem) 3rem;
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

main.doc h1 {
  font-size: 1.9rem;
  margin-bottom: 0.2rem;
}

main.doc .updated {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

main.doc h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

main.doc p, main.doc li {
  color: var(--text-soft);
  line-height: 1.65;
}

main.doc a {
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.lang-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
