/* ================================================
   dumppp Landing Page — main.css
   BEM + CSS Custom Properties, mobile-first
   Ported from old Tailwind-based index.html
   ================================================ */

/* --- Design Tokens --- */
:root {
  --color-accent: #E16259;
  --color-accent-hover: #c94e46;
  --color-bg: #ffffff;
  --color-surface: #f9fafb;
  --color-surface-dark: #0a0a0a;
  --color-text: #0f172a;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-header-bg: rgba(255,255,255,.8);
  --color-selection-bg: #E16259;
  --color-selection-text: #ffffff;
  --font-family: 'Inter', sans-serif;
  --max-width: 1280px;
  --header-height: 80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #050505;
    --color-surface: #121212;
    --color-surface-dark: #000000;
    --color-text: #f1f5f9;
    --color-text-secondary: #9ca3af;
    --color-border: #1f2937;
    --color-border-light: rgba(31,41,55,.5);
    --color-header-bg: rgba(5,5,5,.8);
  }
}

/* --- FOUC Prevention --- */
html { visibility: hidden; }
html.fonts-loaded { visibility: visible; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body, .body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--color-selection-bg); color: var(--color-selection-text); }
img { max-width: 100%; height: auto; display: block; vertical-align: middle; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; }

/* --- Animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Utility: container --- */
.header__container, .hero__container, .video__container,
.why__container, .features__container, .philosophy__container,
.cta__container, .footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .header__container, .hero__container, .video__container,
  .why__container, .features__container, .philosophy__container,
  .cta__container, .footer__container { padding: 0 2rem; }
}

/* ========== Header ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.5);
}
@media (prefers-color-scheme: dark) {
  .header { border-bottom-color: rgba(31,41,55,.5); }
}
.header__container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
}
.header__logo { display: flex; align-items: center; transition: opacity .2s; }
.header__logo:hover { opacity: .8; }
.header__logo-img { height: 32px; width: auto; }
.header__nav { display: none; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .header__nav { display: flex; } .header__menu-toggle { display: none !important; } }
.header__nav-link {
  font-size: .875rem; font-weight: 600;
  color: var(--color-text-secondary); transition: color .2s;
}
@media (prefers-color-scheme: dark) { .header__nav-link { color: #d1d5db; } }
.header__nav-link:hover { color: var(--color-accent); }
.header__nav-docs {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 700;
  padding: .625rem 1.25rem; border-radius: 9999px;
  background: #f3f4f6; color: var(--color-text);
  transition: all .2s;
}
@media (prefers-color-scheme: dark) {
  .header__nav-docs { background: #1f2937; color: #fff; }
  .header__nav-docs:hover { background: #374151; }
}
.header__nav-docs:hover { background: #e5e7eb; }
.header__nav-docs-icon { font-size: 1rem; }
.header__menu-toggle {
  background: none; border: none; padding: .5rem;
  color: #4b5563;
}
@media (prefers-color-scheme: dark) { .header__menu-toggle { color: #d1d5db; } }
.header__mobile-nav {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1rem; border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  animation: fadeIn .3s ease-out;
}
@media (prefers-color-scheme: dark) {
  .header__mobile-nav { background: var(--color-surface); }
}
.header__mobile-nav--hidden { display: none; }
.header__mobile-link {
  display: block; padding: .75rem 1rem; border-radius: .5rem;
  font-size: 1.125rem; font-weight: 700;
}
.header__mobile-link:hover { background: var(--color-surface); }
@media (prefers-color-scheme: dark) { .header__mobile-link:hover { background: rgba(255,255,255,.05); } }

/* ========== Hero ========== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-height) + 4rem) 0 6rem;
}
@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-height) + 8rem) 0 10rem; }
}
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.hero__content {
  animation: fadeIn .6s ease-out;
  text-align: start; position: relative; z-index: 10;
  width: 670px; max-width: 100%;
}
@media (max-width: 767px) { .hero__content { width: 100%; } }
@media (min-width: 1024px) and (max-width: 1120px) { .hero__content { width: 480px; } }

.hero__heading {
  font-size: 3rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -.025em; margin-bottom: 1.5rem;
  color: var(--color-text);
}
@media (min-width: 640px) { .hero__heading { font-size: 3.75rem; } }
@media (min-width: 768px) { .hero__heading { font-size: 4.5rem; } }
.hero__heading--accent { color: var(--color-accent); }

.hero__description {
  font-size: 1.25rem; font-weight: 500; color: var(--color-text-secondary);
  margin-bottom: 2rem; max-width: 42rem; line-height: 1.625;
}
@media (min-width: 768px) { .hero__description { font-size: 1.5rem; } }

.hero__actions {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }
@media (min-width: 768px) { .hero__actions { justify-content: flex-start; } }

.hero__app-store { display: inline-block; transition: opacity .2s; flex-shrink: 0; }
.hero__app-store:hover { opacity: .8; }
.hero__app-store-badge { height: 56px; width: auto; }

.hero__manifest-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 56px; padding: 0 2rem;
  font-size: 1.125rem; font-weight: 700; color: var(--color-text);
  border: 2px solid #cbd5e1; border-radius: 9999px;
  background: transparent; transition: all .2s; flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  .hero__manifest-btn { color: #fff; border-color: #4b5563; }
  .hero__manifest-btn:hover { border-color: #6b7280; background: rgba(31,41,55,.5); }
}
.hero__manifest-btn:hover {
  border-color: #94a3b8;
  background: rgba(248,250,252,.5);
}

.hero__visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 1024px) { .hero__visual { justify-content: flex-end; } }

.hero__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: linear-gradient(to top right, rgba(225,98,89,.2), rgba(168,85,247,.2));
  filter: blur(100px); pointer-events: none; z-index: -10;
}
.hero__phone { position: relative; max-width: 340px; width: 100%; }
.hero__phone-frame {
  width: 100%; position: relative; z-index: 10; pointer-events: none;
}
.hero__phone-screen {
  position: absolute; top: 2.8%; left: 5.5%; width: 89%; height: 94.5%;
  object-fit: cover; border-radius: 2rem; z-index: 1;
}
.hero__phone-screen--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .hero__phone-screen--light { display: none; }
  .hero__phone-screen--dark { display: block; }
}

/* ========== Video ========== */
.video { padding: 4rem 0; }
@media (min-width: 1024px) { .video { padding: 6rem 0; } }
.video__wrapper {
  position: relative; width: 100%; padding-bottom: 56.25%;
  border-radius: 1rem; overflow: hidden; background: #000;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
@media (min-width: 1024px) { .video__wrapper { border-radius: 1.5rem; } }
.video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ========== Why ========== */
.why {
  padding: 6rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
@media (prefers-color-scheme: dark) {
  .why { background: #0a0a0a; }
}
.why__header { margin-bottom: 4rem; }
.why__heading {
  font-size: 1.875rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .why__heading { font-size: 3rem; max-width: 18ch; }
}
.why__description {
  font-size: 1.125rem; color: var(--color-text-secondary);
  line-height: 1.625; max-width: 42rem;
}
.why__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: var(--color-bg); padding: 2rem; border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  border: 1px solid var(--color-border-light);
}
@media (prefers-color-scheme: dark) {
  .why-card { background: var(--color-surface); border-color: var(--color-border); }
}
.why-card__icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 1rem; background: #fef2f2; color: var(--color-accent);
  margin-bottom: 1.5rem; font-size: 1.875rem;
}
@media (prefers-color-scheme: dark) {
  .why-card__icon { background: rgba(127,29,29,.2); }
}
.why-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.why-card__text { color: var(--color-text-secondary); line-height: 1.625; }

/* ========== Features ========== */
.features { padding: 6rem 0; }
@media (min-width: 1024px) { .features { padding: 8rem 0; } }
.features__header { margin-bottom: 4rem; }
.features__heading {
  font-size: 1.875rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .features__heading { font-size: 3rem; max-width: 16ch; }
}
.features__description {
  font-size: 1.125rem; color: var(--color-text-secondary);
  line-height: 1.625; max-width: 42rem;
}

/* Mobile cards */
.features__mobile { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .features__mobile { display: none; } }
.feature-card {
  border-radius: 1.5rem; overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 10px 15px -3px rgba(0,0,0,.1);
}
@media (prefers-color-scheme: dark) { .feature-card { background: var(--color-surface); } }
.feature-card__image { overflow: hidden; }
.feature-card__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feature-card__img--dark { display: none; }
@media (prefers-color-scheme: dark) { .feature-card__img--light { display: none; } .feature-card__img--dark { display: block; } }
.feature-card__body { padding: 1.25rem; }
.feature-card__title-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.feature-card__icon { font-size: 1.5rem; color: var(--color-accent); }
.feature-card__title { font-size: 1.125rem; font-weight: 700; }
.feature-card__text { font-size: .875rem; color: var(--color-text-secondary); line-height: 1.625; }

/* Desktop tabs + carousel */
.features__desktop { display: none; }
@media (min-width: 1024px) {
  .features__desktop {
    display: grid; grid-template-columns: 5fr 7fr;
    gap: 4rem; align-items: start;
  }
}
.features__tabs { display: flex; flex-direction: column; gap: 1.5rem; }
.features__tab {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem; border: 2px solid transparent; border-radius: 1.5rem;
  background: transparent; color: #6b7280;
  font: inherit; font-size: 1.5rem; font-weight: 700; cursor: pointer; text-align: start;
  transition: all .3s;
}
.features__tab:hover { background: var(--color-surface); }
@media (prefers-color-scheme: dark) { .features__tab:hover { background: rgba(255,255,255,.05); } }
.features__tab--active {
  background: var(--color-bg); color: var(--color-text);
  border-color: var(--color-accent);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  transform: scale(1.02);
}
@media (prefers-color-scheme: dark) {
  .features__tab--active { background: var(--color-surface); color: #fff; }
}
.features__tab--active .features__tab-icon { color: var(--color-accent); }
.features__tab--active .features__tab-label { color: inherit; }
.features__tab-icon { font-size: 1.875rem; color: #9ca3af; transition: color .2s; }
.features__tab-label { color: inherit; }
.features__carousel {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  aspect-ratio: 16/9; background: #f3f4f6;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) { .features__carousel { background: var(--color-surface); } }
.features__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 700ms ease;
  pointer-events: none; z-index: 0;
}
.features__slide--active { opacity: 1; pointer-events: auto; z-index: 10; }
.features__slide img { width: 100%; height: 100%; object-fit: cover; }
.features__slide-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.5) 50%, transparent);
  color: #fff; font-size: 1.125rem; font-weight: 500; line-height: 1.5; opacity: .9;
}

/* ========== Philosophy ========== */
.philosophy {
  padding: 6rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
}
@media (prefers-color-scheme: dark) {
  .philosophy { background: #0a0a0a; border-top-color: var(--color-border); }
}
.philosophy__heading {
  font-size: 1.875rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .philosophy__heading { font-size: 3rem; max-width: 14ch; }
}
.philosophy__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .philosophy__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.philosophy__image-wrapper { position: relative; }
.philosophy__image-bg {
  position: absolute; inset: -1rem; border-radius: 2rem;
  background: rgba(225,98,89,.2); transform: rotate(-2deg);
}
.philosophy__image {
  position: relative; border-radius: 1.8rem; width: 100%;
  object-fit: cover; aspect-ratio: 4/3; z-index: 1;
  filter: sepia(1); transition: all 700ms ease;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.philosophy__quote {
  font-size: 1.5rem; font-weight: 600; font-style: italic;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  border-inline-start: 4px solid var(--color-accent); padding-inline-start: 1.5rem; padding-top: .5rem; padding-bottom: .5rem;
  margin-bottom: 2rem; line-height: 1.5;
  color: #1f2937;
}
@media (min-width: 768px) { .philosophy__quote { font-size: 1.875rem; } }
@media (prefers-color-scheme: dark) { .philosophy__quote { color: #e5e7eb; } }
.philosophy__text {
  font-size: 1.125rem; color: var(--color-text-secondary);
  line-height: 1.625;
}

/* ========== CTA ========== */
.cta {
  position: relative; padding: 8rem 0; overflow: hidden;
  background: #0f172a; color: #fff;
}
@media (prefers-color-scheme: dark) { .cta { background: #000; } }
.cta__glow {
  position: absolute; top: 0; right: 0;
  width: 800px; height: 800px; border-radius: 50%;
  background: var(--color-accent); opacity: .1;
  filter: blur(200px); pointer-events: none;
}
.cta__container { position: relative; z-index: 10; }
.cta__content { text-align: center; max-width: 56rem; margin: 0 auto; }
@media (min-width: 1024px) { .cta__content { text-align: center; } }
.cta__heading {
  font-size: 3rem; font-weight: 900; letter-spacing: -.05em;
  line-height: 1; margin-bottom: 2rem; color: #fff;
}
@media (min-width: 768px) { .cta__heading { font-size: 4.5rem; } }
.cta__heading--accent { color: var(--color-accent); }
.cta__description {
  font-size: 1.25rem; color: #9ca3af;
  margin-bottom: 3rem; line-height: 1.625;
}
.cta__app-store { display: inline-block; transition: opacity .2s; }
.cta__app-store:hover { opacity: .8; }
.cta__app-store-badge { height: 64px; width: auto; }

/* ========== Footer ========== */
.footer {
  padding: 4rem 0 calc(4rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}
@media (prefers-color-scheme: dark) {
  .footer { background: #050505; border-top-color: #111827; }
}
.footer__inner {
  display: flex; flex-direction: column-reverse; gap: 2rem; align-items: center;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
}
.footer__brand { display: flex; align-items: center; gap: .5rem; }
.footer__logo { display: flex; align-items: center; gap: .5rem; }
.footer__logo-img { height: 32px; width: auto; }
.footer__copyright {
  font-size: .875rem; color: #9ca3af;
  margin-inline-start: 1rem; padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--color-border);
}
.footer__links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 1024px) { .footer__links { gap: 1.5rem; } }
.footer__link {
  font-size: .875rem; font-weight: 500; color: #6b7280;
  transition: color .2s;
}
.footer__link:hover { color: var(--color-accent); }
.footer__social {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-surface); color: #4b5563;
  transition: background .2s, color .2s;
}
@media (prefers-color-scheme: dark) {
  .footer__social { background: #111827; color: #9ca3af; }
  .footer__social:hover { background: #1f2937; }
}
.footer__social:hover { background: #f3f4f6; }
.footer__social-svg { width: 20px; height: 20px; }

/* Mobile: separate nav links and social icons into rows */
@media (max-width: 767px) {
  .footer__link { order: 0; }
  .footer__social { order: 2; }
  .footer__links::after {
    content: '';
    flex-basis: 100%;
    height: 0;
    order: 1;
  }
}

/* --- Scrollbar hiding (feature tabs) --- */
.features__tabs { scrollbar-width: none; -ms-overflow-style: none; }
.features__tabs::-webkit-scrollbar { display: none; }

/* --- Japanese Typography Optimization --- */
html[lang="ja"] body {
  line-height: 1.75;
  letter-spacing: 0.05em;
  overflow-wrap: break-word;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  line-height: 1.1 !important;
  letter-spacing: 0.03em;
  overflow-wrap: break-word;
}

html[lang="ja"] p {
  line-height: 1.8;
  overflow-wrap: break-word;
}

/* Enhanced Section Spacing for Japanese */
html[lang="ja"] .why,
html[lang="ja"] .features,
html[lang="ja"] .philosophy,
html[lang="ja"] .cta { padding-top: 6rem; padding-bottom: 6rem; }

@media (min-width: 768px) {
  html[lang="ja"] .why,
  html[lang="ja"] .features,
  html[lang="ja"] .philosophy,
  html[lang="ja"] .cta { padding-top: 9rem; padding-bottom: 9rem; }
}

/* Prevent Card Title Wrapping */
html[lang="ja"] .why-card__title,
html[lang="ja"] .feature-card__title {
  white-space: nowrap;
  font-size: clamp(1rem, 4vw, 1.25rem);
}

/* Prevent Section Heading Wrapping - 600px以上のみ */
@media (min-width: 600px) {
  html[lang="ja"] .why__heading,
  html[lang="ja"] .features__heading,
  html[lang="ja"] .philosophy__heading,
  html[lang="ja"] .cta__heading { white-space: nowrap; }
}
html[lang="ja"] .why__heading,
html[lang="ja"] .features__heading,
html[lang="ja"] .philosophy__heading,
html[lang="ja"] .cta__heading {
  font-size: clamp(1.5rem, 5vw, 3rem) !important;
}

/* Standardize section heading margins */
html[lang="ja"] .why__heading,
html[lang="ja"] .features__heading,
html[lang="ja"] .philosophy__heading {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

/* Improve long-form text readability */
html[lang="ja"] .philosophy__text {
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* Blockquote responsive wrapping - 600px以下で改行 */
@media (max-width: 600px) {
  html[lang="ja"] .philosophy__quote {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* Hero h1 mobile font size */
@media (max-width: 600px) {
  html[lang="ja"] .hero__heading {
    font-size: 2.3rem !important;
    line-height: 1.2 !important;
  }
}

/* ========== Language Switcher (Desktop) ========== */
.lang-switcher { position: relative; display: flex; align-items: center; }
.lang-switcher__trigger {
  display: flex; align-items: center; gap: .25rem;
  background: none; border: none; padding: .375rem .5rem;
  font-size: .875rem; font-weight: 600;
  color: var(--color-text-secondary); border-radius: .5rem;
  transition: color .2s, background .2s; font-family: inherit;
}
.lang-switcher__trigger:hover { color: var(--color-accent); background: var(--color-surface); }
@media (prefers-color-scheme: dark) {
  .lang-switcher__trigger { color: #d1d5db; }
  .lang-switcher__trigger:hover { background: rgba(255,255,255,.05); }
}
.lang-switcher__current { font-size: .8125rem; }
.lang-switcher__arrow { font-size: 1.125rem; transition: transform .2s; }
.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__arrow { transform: rotate(180deg); }
.lang-switcher__dropdown {
  position: absolute; top: calc(100% + .5rem); inset-inline-end: 0;
  min-width: 160px; max-height: 320px; overflow-y: auto;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: .75rem; box-shadow: 0 10px 25px rgba(0,0,0,.1);
  z-index: 50; padding: .375rem;
  animation: fadeIn .15s ease-out;
}
@media (prefers-color-scheme: dark) {
  .lang-switcher__dropdown {
    background: var(--color-surface); border-color: var(--color-border);
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
  }
}
.lang-switcher__dropdown--hidden { display: none; }
.lang-switcher__item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: .5rem;
  font-size: .875rem; color: var(--color-text);
  transition: background .15s; white-space: nowrap;
}
.lang-switcher__item:hover { background: var(--color-surface); }
@media (prefers-color-scheme: dark) {
  .lang-switcher__item:hover { background: rgba(255,255,255,.05); }
}
.lang-switcher__item--active { color: var(--color-accent); font-weight: 600; }
.lang-switcher__check { font-size: 1rem; color: var(--color-accent); }

/* ========== Language Switcher (Mobile) ========== */
.lang-switcher-mobile { padding: .75rem 1rem; border-top: 1px solid var(--color-border-light); }
.lang-switcher-mobile__label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--color-text-secondary);
  margin-bottom: .5rem;
}
.lang-switcher-mobile__list {
  display: flex; flex-wrap: wrap; gap: .375rem;
}
.lang-switcher-mobile__item {
  display: inline-block; padding: .375rem .75rem;
  font-size: .8125rem; border-radius: 9999px;
  background: var(--color-surface); color: var(--color-text);
  transition: background .15s;
}
@media (prefers-color-scheme: dark) {
  .lang-switcher-mobile__item { background: rgba(255,255,255,.05); }
}
.lang-switcher-mobile__item:hover { background: var(--color-border-light); }
.lang-switcher-mobile__item--active {
  background: var(--color-accent); color: #fff; font-weight: 600;
}
.lang-switcher-mobile__item--active:hover { background: var(--color-accent-hover); }

/* ========== Language Suggestion Banner ========== */
.lang-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--color-accent); color: #fff;
  padding: .625rem 0;
}
.lang-banner--hidden { display: none; }
.lang-banner__container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap;
}
.lang-banner__text { font-size: .875rem; font-weight: 500; margin: 0; }
.lang-banner__yes {
  display: inline-block; padding: .25rem .875rem;
  font-size: .8125rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 9999px;
  color: #fff; background: transparent; transition: background .15s;
}
.lang-banner__yes:hover { background: rgba(255,255,255,.15); }
.lang-banner__no {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: .8125rem; font-weight: 500; cursor: pointer;
  padding: .25rem .5rem; transition: color .15s; font-family: inherit;
}
.lang-banner__no:hover { color: #fff; }

/* Push header down when banner is visible */
.lang-banner:not(.lang-banner--hidden) ~ .header { top: 38px; }

/* ========== Product Hunt Badge ========== */
.producthunt {
  padding: 3rem 0;
  background: var(--color-bg);
}
.producthunt__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}
.producthunt__badge {
  transition: opacity .2s;
}
.producthunt__badge:hover {
  opacity: .8;
}

/* --- Material Symbols baseline fix --- */
.material-symbols-outlined { vertical-align: middle; user-select: none; }
