/* Language welcome screen (root URL only) */
:root {
  --primary-green: #00843D;
  --dark-green: #006B35;
  --deep-green: #004F27;
  --lime-green: #C8E600;
  --golden-yellow: #FFD600;
  --light-green-bg: #F3F7F2;
  --charcoal: #1F2937;
  --ink-muted: #4B5563;
  --gradient: linear-gradient(90deg, var(--primary-green) 0%, var(--lime-green) 55%, var(--golden-yellow) 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.welcome {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 32px 16px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--charcoal);
  background: var(--light-green-bg); overflow-x: hidden; position: relative;
}
body.welcome::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 5px; background: var(--gradient); }
.welcome__glow {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 45% at 50% 30%, rgba(255, 214, 0, .32), transparent 70%),
    radial-gradient(55% 55% at 50% 35%, rgba(200, 230, 0, .28), transparent 72%),
    radial-gradient(75% 65% at 50% 40%, rgba(0, 132, 61, .10), transparent 75%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 214, 0, .07) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000 0%, transparent 80%);
  mask-image: radial-gradient(60% 60% at 50% 35%, #000 0%, transparent 80%);
}
.welcome__card {
  position: relative; z-index: 1; width: 100%; max-width: 920px; text-align: center;
  animation: welcome-in .8s cubic-bezier(.2, .7, .2, 1) both;
}
.welcome__logo { display: block; width: 148px; height: 148px; margin: 0 auto 32px; border-radius: 28px; background: #fff; padding: 10px; box-shadow: 0 18px 48px rgba(0, 79, 39, .14); }
.welcome__notes { display: grid; gap: 20px; margin-bottom: 40px; }
.welcome__note { padding: 0 8px; }
.welcome__note p { margin: 0; }
.welcome__hello { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--dark-green); }
.welcome__motto { font-size: 1rem; color: var(--charcoal); margin-top: 2px !important; }
.welcome__choose { font-size: .9375rem; color: var(--ink-muted); }
.welcome__choices { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.welcome__btn {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 16px 28px;
  border-radius: 16px; background: var(--primary-green); color: #fff; text-decoration: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.1875rem; letter-spacing: .01em;
  border: 2px solid var(--primary-green);
  box-shadow: 0 10px 24px rgba(0, 107, 53, .22);
  transition: transform .2s, background-color .2s, box-shadow .2s, border-color .2s;
}
.welcome__btn::after { /* golden-yellow accent bar on hover/focus */
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 10px; height: 3px; border-radius: 3px;
  background: var(--golden-yellow); transform: scaleX(0); transition: transform .25s;
}
.welcome__btn:hover { background: var(--dark-green); border-color: var(--dark-green); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 107, 53, .28); }
.welcome__btn:hover::after, .welcome__btn:focus-visible::after { transform: scaleX(1); }
.welcome__btn:focus-visible { outline: 3px solid var(--golden-yellow); outline-offset: 4px; box-shadow: 0 0 0 8px rgba(0, 107, 53, .25); }
.welcome__btn.is-suggested { border-color: var(--golden-yellow); box-shadow: 0 0 0 4px rgba(255, 214, 0, .45), 0 10px 24px rgba(0, 107, 53, .22); }
body.is-leaving .welcome__card { opacity: 0; transform: translateY(-8px) scale(.99); transition: opacity .28s, transform .28s; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 720px) {
  .welcome__notes { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .welcome__note + .welcome__note { border-left: 1px solid rgba(0, 107, 53, .16); }
  .welcome__note { padding: 0 24px; }
  .welcome__choices { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .welcome__logo { width: 176px; height: 176px; }
}
@keyframes welcome-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .welcome__card { animation: none; }
  .welcome__btn, .welcome__btn::after { transition: none; }
}

/* Language flags (decorative; the language name is the button text) */
.welcome__btn .flag { display: inline-block; flex: none; width: 27px; height: 18px; margin-right: 12px; border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
