/* Indivind, base layer for the Tailwind + Preline pages: fonts, focus, a few brand components, the mobile menu. */
/* Inter as a Latin subset in WOFF (about a fifth of the TTF); the TTF stays as a fallback for old browsers. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular-latin.woff") format("woff"), url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold-latin.woff") format("woff"), url("../fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* focus: one visible ring for every control (WCAG 2.4.7), brand blue on light grounds, pale violet on the dark bands */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #4000ff; outline-offset: 3px; border-radius: 6px; }
:where(.bg-brand-ink, .band-gradient) :focus-visible { outline-color: #ddd4ff; }
:where(.bg-brand-ink, .band-gradient) :where(.bg-white) :focus-visible { outline-color: #4000ff; }
/* form fields keep their own ring (border + soft glow) and add the outline on keyboard focus only */
:where(input, select, textarea):focus-visible { outline-offset: 1px; border-radius: 12px; }

/* kicker: small tracked caps with a short rule; #6f5899 is the secondary tone darkened to pass 4.5:1 on every light ground */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6f5899; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker--light { color: #ddd4ff; }

/* the dark gradient band (ink indigo into the secondary tone) */
.band-gradient { background: linear-gradient(105deg, #0f0a2e 0%, #0f0a2e 52%, #3a2f6e 78%, #7D65A7 100%); }

/* the one CTA, same wording everywhere */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: #4000ff; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; box-shadow: 0 8px 24px -8px rgba(64, 0, 255, .45); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.cta:hover { background: #3401cb; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15,10,46,.06), 0 16px 40px -12px rgba(15,10,46,.22); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline-offset: 4px; border-radius: 999px; }
.cta--light { background: #fff; color: #4000ff; box-shadow: 0 8px 24px -8px rgba(15, 10, 46, .35); }
.cta--light:hover { background: #ece7f7; }
.cta--ghost { background: transparent; color: #4000ff; box-shadow: inset 0 0 0 1.5px #4000ff; }
.cta--ghost:hover { background: rgba(64, 0, 255, .06); box-shadow: inset 0 0 0 1.5px #3401cb; }
@media (prefers-reduced-motion: reduce) { .cta, .cta:hover, .cta:active { transform: none; } }

/* text link: underline instead of a bottom border, so the 44px tap area does not push the line away from the words */
.tlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .15s ease, text-underline-offset .15s ease; }
.tlink:hover { color: #4000ff; text-underline-offset: 7px; }
:where(.bg-brand-ink, .band-gradient) .tlink:hover { color: #ddd4ff; }

/* language switch: flag + code, 44px tap area, the active language underlined in brand blue */
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; color: #5f5880; text-decoration: none; letter-spacing: .04em; }
.lang:hover { color: #4000ff; }
.lang--active { color: #06050b; }
.lang--active .lang__code { text-decoration: underline 2px #4000ff; text-underline-offset: 6px; }
.lang__flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(6, 5, 11, .12); }

/* mobile menu (below 1024px): a panel under the header, opened by the Menu button (js/main.js) */
.mnav[hidden] { display: none; }
.mnav a:not(.cta) { display: flex; align-items: center; min-height: 48px; }
