/* Software Island Taiwan — Redesign tokens & styles */
:root {
  --red: #C02020;
  --red-dark: #8B1818;
  --green: #009000;
  --green-dark: #006B00;
  --text: #0F172A;
  --muted: #475569;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --logo-dark: #1a1a1a;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.75rem;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand img {
  height: 44px;
  width: auto;
}
.brand-text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  max-width: 11.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
  background: rgba(192, 32, 32, 0.06);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  background: #fff;
}
.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-logo-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap img {
  max-height: 120px;
  width: auto;
}
.logo-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  width: 100%;
}
.logo-collage .tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}
.logo-collage .tile.dark {
  background: var(--logo-dark);
  border-color: #333;
}
.logo-collage .tile img {
  max-height: 36px;
  max-width: 90%;
  object-fit: contain;
}

.logo-collage a.tile {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.logo-collage a.tile:hover,
.logo-collage a.tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  outline: none;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: #fff;
  border-block: 1px solid var(--border);
}
.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}
.card p { color: var(--muted); font-size: 0.9375rem; }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  background: rgba(192, 32, 32, 0.08);
  color: var(--red);
}
.card-icon.green {
  background: rgba(0, 144, 0, 0.1);
  color: var(--green);
}

/* —— Partnership —— */
.partnership {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin-top: 2.5rem;
}
.partnership img {
  max-height: 72px;
  width: auto;
}
.partnership h3 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}
.partnership p { color: var(--muted); font-size: 0.9375rem; }

/* —— Product filters —— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
}
.filter-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
}

/* —— Product cards —— */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.product-card[hidden] { display: none !important; }
.product-top {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
.product-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  flex-shrink: 0;
}
.product-logo.dark {
  background: var(--logo-dark);
  border-color: #333;
}
.product-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-logo.placeholder {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem;
}
.product-meta .badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: rgba(0, 144, 0, 0.1);
  color: var(--green-dark);
}
.product-meta .badge.ios {
  background: rgba(192, 32, 32, 0.08);
  color: var(--red-dark);
}
.product-meta h2 {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.product-meta .subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.65rem;
}
.product-meta .desc {
  color: var(--text);
  font-size: 0.9375rem;
}
.feature-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.feature-block h3 {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.feature-list {
  display: grid;
  gap: 0.55rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.module-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.module-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.module-card h4 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.module-card p {
  font-size: 0.8125rem;
  color: var(--muted);
}
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-links a,
.product-links .note {
  font-size: 0.875rem;
  font-weight: 600;
}
.product-links .note {
  color: var(--muted);
  font-weight: 500;
}

/* —— Services —— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 0.25rem;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.service-card h2 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.service-card li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.service-card li:last-child { margin-bottom: 0; }

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.office-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.office-card h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 650;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.office-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.office-card a {
  font-weight: 600;
  color: var(--text);
}
.office-card a:hover { color: var(--red); }
.contact-meta {
  margin-top: 1.25rem;
}
.contact-meta p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
}
.social-links a:hover {
  border-color: var(--red);
  color: var(--red);
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-form h2 {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 144, 0, 0.15);
  background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--green-dark);
  display: none;
}
.form-status.show { display: block; }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 0.5rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}
.cta-band .btn-secondary {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.cta-band .btn-secondary:hover {
  background: var(--bg);
  color: var(--red-dark);
}

/* —— Home product teaser —— */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.teaser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.teaser:hover {
  border-color: rgba(192, 32, 32, 0.35);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.teaser .tl {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  background: #fff;
}
.teaser .tl.dark {
  background: var(--logo-dark);
  border-color: #333;
}
.teaser .tl img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.teaser h3 {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.teaser p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Footer —— */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.85rem;
  border-radius: 4px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: #94A3B8;
  max-width: 22rem;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  color: #94A3B8;
  font-size: 0.875rem;
  padding: 0.2rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #64748B;
}

/* —— Page title band —— */
.page-hero {
  padding: 2.75rem 0 2.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.0625rem;
}

/* —— About body —— */
.about-body {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; max-width: 420px; }
  .card-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .partnership { grid-template-columns: 1fr; text-align: left; }
  .product-top { grid-template-columns: 80px 1fr; gap: 1rem; }
  .product-logo { width: 80px; height: 80px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0.15rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.85rem; }
  .header-cta { display: none; }
  .brand-text { display: none; }
  .logo-collage { grid-template-columns: repeat(4, 1fr); }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .hero { padding: 2.25rem 0 2.75rem; }
  .section { padding: 3rem 0; }
  .teaser-grid { grid-template-columns: 1fr; }
  .logo-collage { grid-template-columns: repeat(2, 1fr); }
}


/* —— Language switcher —— */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover {
  color: var(--red);
  background: rgba(192, 32, 32, 0.06);
}
.lang-btn.is-active {
  color: #fff;
  background: var(--red);
}
.lang-btn.is-active:hover {
  color: #fff;
  background: var(--red-dark);
}
.lang-sep {
  color: var(--border);
  font-size: 0.7rem;
  user-select: none;
  line-height: 1;
}
.product-links .note {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.product-links .note a { font-weight: 600; }

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .lang-btn { font-size: 0.6875rem; padding: 0.3rem 0.35rem; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
