/* Shared public-site shell. The portal and extension map the same visual roles in their own assets. */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #424246;
  --mute: #606067;
  --line: #E0E0E5;
  --control-line: #85858D;
  --wash: #F5F5F7;
  --wash-2: #EBEBEF;
  --accent: #2255CD;
  --accent-hover: #1943A8;
  --accent-active: #143687;
  --accent-wash: #EAF0FF;
  --accent-4: #DCE7FF;
  --go: #0E7A3B;
  --amber: #9A4306;
  --sans-latin: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --sans: var(--sans-latin);
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 8px;
  --section-gap: clamp(4rem, 9vw, 7.5rem);
  --page-inset: clamp(1rem, 3vw, 2rem);
  scrollbar-color: var(--control-line) var(--wash);
}

:root:lang(ru), :root:lang(uk), :root:lang(ky), :root:lang(kk) {
  --sans: 'Golos Text', 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
:root:lang(pa) { --sans: 'Noto Sans Gurmukhi', 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; }
:root:lang(hi) { --sans: 'Noto Sans Devanagari', 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
img { max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure, hr { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-block-start: 1rem; }

.wrap {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: max(var(--page-inset), env(safe-area-inset-left, 0px)) max(var(--page-inset), env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 4.5rem;
  gap: .25rem 1.5rem;
  padding-block: .5rem;
}
.logo { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); }
.logo svg { width: 8.125rem; height: auto; }
.top > .wrap > .lang { margin-inline-start: auto; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.625rem, 2vw, 1.375rem); min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:active, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"] { border-color: currentColor; }
.nav-link svg { width: .875rem; height: .875rem; flex: none; }

/* The overlay select delegates its open menu and keyboard behavior to the platform. */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .625rem;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
}
.lang:hover { background: var(--wash); color: var(--accent); }
.lang svg { flex: none; }
.lang .globe { width: .9375rem; height: .9375rem; }
.lang .down { width: .625rem; height: .625rem; }
.lang-name { white-space: nowrap; line-height: 1.3; }
.lang-select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font: 1rem system-ui, sans-serif; }
.lang:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero { padding-block-start: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.75rem 4rem; align-items: center; }
.hero h1 { overflow-wrap: anywhere; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.sub { margin-top: 1rem; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 28em; text-wrap: pretty; }

.btn, .copy, .replay, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  max-width: 100%;
  min-height: 2.75rem;
  padding: .625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
:is(.btn-secondary, .copy, .replay, .ghost):not(:disabled):hover { background: var(--accent-wash); color: var(--accent-hover); }
:is(.btn-secondary, .copy, .replay, .ghost):not(:disabled):active { background: var(--wash-2); }
.btn { min-height: 3rem; padding-inline: 1.125rem; font-size: 1rem; }
.btn:not(.btn-secondary) { border-radius: 999px; background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn:not(.btn-secondary):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:not(.btn-secondary):active { background: var(--accent-active); border-color: var(--accent-active); transition-duration: 70ms; }
.btn svg, .replay svg { width: 1rem; height: 1rem; flex: none; }

.preview { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.band { padding-block-start: var(--section-gap); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.75rem 4rem; align-items: start; }
.steps li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 1rem; padding-block: 1.125rem; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { color: var(--accent); font: 500 .875rem/1 var(--mono); }
.steps p { font-size: 1.125rem; line-height: 1.5; }
.steps p .dim { color: var(--mute); }
.band .contact { margin-top: clamp(2.5rem, 6vw, 4rem); padding-block-start: clamp(1rem, 2vw, 1.5rem); border-top: 1px solid var(--line); }
.contact .k { color: var(--ink-2); font-size: 1.0625rem; }
.email-row { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; margin-top: .5rem; min-width: 0; }
.email { font: 600 clamp(1.25rem, 1rem + 1.2vw, 2rem)/1.2 var(--sans-latin); letter-spacing: -.02em; overflow-wrap: anywhere; user-select: all; }

footer { margin-top: var(--section-gap); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: 1.125rem 1.5rem; font-size: .875rem; color: var(--mute); }
footer .logo svg { width: 6.625rem; }
footer .f-mid { flex: 1 1 15rem; min-width: 0; }
footer .f-mail { font: 400 .84375rem/1.45 var(--mono); color: var(--ink-2); }
:where(footer .f-mail, footer .f-legal, .more, .small-fleet) a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:where(footer, .more, .small-fleet) a:hover { color: var(--accent); }

:root:is(:lang(pa), :lang(hi)) body { font-size: 1.125rem; line-height: 1.7; }
:root:is(:lang(pa), :lang(hi)) h2 { line-height: 1.22; letter-spacing: 0; }
:root:is(:lang(pa), :lang(hi)) :is(.sub, .steps p, .contact .k, .lede) { font-size: 1.1875rem; line-height: 1.65; }
:root:is(:lang(pa), :lang(hi)) :is(.btn, .nav-link) { font-size: 1rem; line-height: 1.45; }
:root:is(:lang(pa), :lang(hi)) :is(.lang, .copy, footer .wrap) { font-size: .9375rem; line-height: 1.6; }

@media (max-width: 55rem) {
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  .top .wrap { align-content: center; }
  .top .logo svg { width: 6.875rem; }
}
@media (max-width: 34rem) {
  .top-nav { width: 100%; }
}

/* Current legal pages share the shell and keep a comfortable measure for policy text. */
.legal { line-height: 1.65; }
.legal .top .wrap { flex-wrap: nowrap; }
.legal .top .logo { gap: .625rem; font-size: 1.3125rem; font-weight: 600; letter-spacing: -.01em; }
.legal .top .logo svg { width: 1.75rem; height: 1.75rem; }
.legal main .wrap { max-width: 46rem; padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); overflow-wrap: anywhere; }
.legal .eyebrow { margin-bottom: .75rem; color: var(--accent); font: 500 .8125rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.legal h1 { margin-bottom: .75rem; font-size: clamp(2rem, 1.6rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.3; }
.legal main :is(p, li) { color: var(--ink-2); }
.legal main p + p, .legal main ul + p { margin-top: .875rem; }
.legal main .meta { color: var(--mute); }
.legal main .meta + p:not(.meta) { margin-top: 2rem; }
.legal main ul { display: grid; gap: .625rem; padding-inline-start: 1.25rem; list-style: disc; }
.legal main strong { color: var(--ink); }
.legal main a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.legal main a:hover { color: var(--accent-hover); }
.legal code { padding: .0625rem .375rem; border-radius: 4px; background: var(--wash); color: var(--ink); font: .9em var(--mono); }
.legal .contact { margin-top: 2.5rem; padding-block-start: 1.25rem; border-top: 1px solid var(--line); }
.legal footer { margin-top: 0; }
.legal footer a { text-decoration: underline; text-underline-offset: .2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
  :focus-visible, .lang:focus-within { outline-color: Highlight; }
  .btn, .copy, .replay, .ghost, .lang { border-color: ButtonText; }
  .nav-link[aria-current="page"] { border-color: LinkText; }
}
