/* ==========================================================================
   NEKIO — landing page styles
   Brand: Navy #0F172A · Blue #3B82F6 · Purple #8B5CF6 · Light #EDE9FE · Inter
   ========================================================================== */

/* ---------- Fonts (self-hosted Inter variable; latin + latin-ext covers ő, ű) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0F172A;
  --navy-2: #172036;
  --navy-3: #1E293B;
  --blue: #3B82F6;
  --blue-strong: #2563EB;   /* AA contrast with white text */
  --purple: #8B5CF6;
  --lilac: #EDE9FE;
  --lilac-2: #F5F3FF;
  --paper: #F6F7FB;
  --white: #fff;
  --ink: #0F172A;
  --ink-2: #475569;         /* body copy on light, AA */
  --ink-3: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --on-navy: #E2E8F0;
  --on-navy-2: #A9B6CA;     /* secondary text on navy, AA */
  --error: #B42318;
  --gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --container: 1160px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--navy);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03";
  overflow-wrap: break-word;
}
body.dialog-open { overflow: hidden; }
html.lang-pending body { visibility: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.section--navy :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.card--employer :focus-visible { outline-color: #9CC0FF; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: .65rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 750; letter-spacing: -0.025em; line-height: 1.12; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.25rem); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-strong); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 3px; background: var(--gradient); }
.eyebrow--dark { color: #9CC0FF; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-strong); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: 999px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .75); }
.btn--primary:hover { --btn-bg: #1D4FD8; box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .8); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .38); }
.btn--ghost-dark:hover { --btn-bg: rgba(255, 255, 255, .09); --btn-bd: rgba(255, 255, 255, .7); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--light:hover { --btn-bg: var(--lilac); }
.btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: block; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  color: var(--on-navy); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: .55rem .85rem; border-radius: 999px; transition: background-color .15s, color .15s;
}
.nav__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__cta { margin-left: .5rem; }
.site-header__tools { display: flex; align-items: center; gap: .6rem; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.lang__btn {
  min-width: 40px; min-height: 34px; padding: 0 .65rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--on-navy-2); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  transition: background-color .15s, color .15s;
}
.lang__btn:hover { color: #fff; }
.lang__btn[aria-pressed="true"] { background: #fff; color: var(--navy); }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); position: relative;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: #fff;
  transition: transform .2s var(--ease), opacity .2s;
}
.menu-btn__bars { top: 50%; margin-top: -1px; }
.menu-btn__bars::before { top: -6px; left: 0; margin: 0; }
.menu-btn__bars::after { top: 6px; left: 0; margin: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .site-header__inner { gap: .75rem; }
  .brand img { height: 24px; }
  .site-header__tools { margin-left: auto; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: .25rem; margin: 0;
    padding: .75rem var(--gutter) 1.25rem;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__link { padding: .9rem .75rem; font-size: 1.05rem; border-radius: 12px; }
  .nav__cta { margin: .5rem 0 0; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 30%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.hero__copy h1 { max-width: 12ch; margin-bottom: 1.4rem; }
.hero__text { max-width: 36rem; font-size: clamp(1.05rem, 1.9vw, 1.2rem); line-height: 1.65; color: var(--on-navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.status-pill {
  display: inline-flex; align-items: flex-start; gap: .65rem; margin-top: 1.75rem; max-width: 34rem;
  font-size: .92rem; line-height: 1.45; color: var(--on-navy-2);
}
.status-pill__dot { flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px rgba(139, 92, 246, .22); }
.hero__visual { justify-self: center; width: 100%; max-width: 520px; }
.hero__visual svg { width: 100%; height: auto; overflow: visible; }

/* hero composition motion — subtle, one-time draw + slow drift */
.hv-link { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hv-draw 1.4s .35s var(--ease) forwards; }
.hv-core { transform-box: fill-box; transform-origin: center; animation: hv-pop .7s .15s var(--ease) both; }
.hv-n { transform-box: fill-box; transform-origin: center; animation: hv-drift 9s ease-in-out infinite; }
.hv-n1 { animation-duration: 8s; }  .hv-n2 { animation-duration: 10s; animation-delay: -2s; }
.hv-n3 { animation-duration: 11s; animation-delay: -4s; } .hv-n4 { animation-duration: 9s; animation-delay: -6s; }
.hv-n5 { animation-duration: 12s; animation-delay: -3s; }
@keyframes hv-draw { to { stroke-dashoffset: 0; } }
@keyframes hv-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hv-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 14ch; }
  .hero__visual { max-width: 340px; margin-top: .5rem; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--light { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section--lilac { background: var(--lilac); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--wide { max-width: 52rem; }
.section__head h2 { margin-bottom: 1.1rem; }
.section__head .lead { color: var(--ink-2); }
.section--navy .section__head .lead { color: var(--on-navy); }

/* ---------- Audience cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.75rem); }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.card__icon { width: 40px; height: 40px; margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 1rem; max-width: 18ch; }
.card p:not(.eyebrow) { margin-bottom: 1.75rem; max-width: 34rem; }
.card .btn { margin-top: auto; }
.card--candidate { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card--candidate .card__icon { color: var(--blue-strong); }
.card--candidate p:not(.eyebrow) { color: var(--ink-2); }
.card--candidate::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--gradient);
}
.card--employer { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.card--employer .card__icon { color: #9CC0FF; }
.card--employer p:not(.eyebrow) { color: var(--on-navy); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.principle { padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.principle__num { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--blue-strong); margin-bottom: .35rem; }
.principle__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.principle h3 { margin-bottom: .9rem; }
.principle p:not(.principle__label) { color: var(--ink-2); }
.note {
  margin-top: clamp(2rem, 5vw, 3.5rem); padding: 1.1rem 1.35rem; max-width: 46rem;
  border-left: 4px solid var(--purple); background: var(--lilac-2); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink); font-weight: 500;
}
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Research options ---------- */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.75rem); }
.option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .09);
}
.option__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9CC0FF; }
.option__text { font-size: 1.2rem; line-height: 1.5; color: #fff; font-weight: 500; }
.option .btn { margin-top: auto; }
.option__meta { font-size: .88rem; color: var(--on-navy-2); }
@media (max-width: 820px) { .options { grid-template-columns: 1fr; } .option .btn { width: 100%; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__copy h2 { margin-bottom: 1.4rem; }
.about__copy .lead { color: var(--ink); margin-bottom: 1.1rem; }
.about__copy p:not(.lead):not(.eyebrow) { color: var(--ink-2); margin-top: 1rem; max-width: 40rem; }
.stages { padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.stages__title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.25rem; }
.stages__list { position: relative; display: grid; gap: 1.35rem; }
.stages__list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.stage { position: relative; display: grid; gap: .15rem; padding-left: 2rem; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.stage::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.stage--now { color: var(--ink); }
.stage--now::before { border: 0; background: var(--gradient); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.stage__label { font-weight: 750; color: var(--ink); font-size: 1.02rem; }
.stages__note { margin-top: 1.5rem; font-size: .88rem; color: var(--ink-3); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final__inner { text-align: center; max-width: 52rem; }
.final h2 { margin-bottom: 1rem; }
.final .lead { color: var(--ink-2); max-width: 36rem; margin-inline: auto; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }
.tagline { margin-top: 2.5rem; font-weight: 600; font-size: 1.05rem; color: #4C3FC4; letter-spacing: -.01em; }
@media (max-width: 520px) { .final__actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.site-footer__brand img { width: 190px; height: auto; }
.site-footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__nav a { color: var(--on-navy); text-decoration: none; font-weight: 550; padding: .4rem 0; border-bottom: 1px solid transparent; }
.site-footer__nav a:hover { border-bottom-color: currentColor; }
.site-footer__note { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
@media (max-width: 600px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Form dialogs ---------- */
.sheet {
  width: min(660px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg); color: var(--ink); background: #fff;
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .55);
  overflow: hidden;
}
.sheet[open] { display: flex; animation: sheet-in .28s var(--ease); }
.sheet::backdrop { background: rgba(15, 23, 42, .72); animation: fade-in .2s ease; }
.sheet__inner { position: relative; flex: 1; min-width: 0; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.5rem, 4vw, 2.5rem); }
.sheet__close {
  position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; margin: -.5rem -.5rem 0 .5rem;
  border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background-color .15s;
}
.sheet__close:hover { background: var(--lilac); }
.sheet h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .5rem; padding-right: 2.5rem; }
.sheet__lede { color: var(--ink-2); margin-bottom: 1.5rem; }
.setup-warning { margin-bottom: 1.25rem; padding: .8rem 1rem; border-radius: 10px; background: #FEF3C7; color: #78350F; font-size: .92rem; line-height: 1.45; }

.sheet__success { text-align: center; padding: 1.5rem 0 .5rem; }
.sheet__success[hidden], .sheet__body[hidden] { display: none; }
.sheet__tick { width: 64px; height: 64px; margin: 0 auto 1.25rem; color: var(--blue-strong); }
.sheet__success h2 { padding: 0; }
.sheet__success p { color: var(--ink-2); max-width: 30rem; margin: .75rem auto 1.75rem; }
.sheet__success:focus { outline: none; }

@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .sheet { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .sheet__inner { max-height: 94dvh; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .sheet[open] { animation-name: sheet-up; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- Form fields ---------- */
.field { margin-bottom: 1.25rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .98rem; line-height: 1.4; margin-bottom: .45rem; padding: 0; color: var(--ink); }
.opt { font-weight: 450; font-size: .85rem; color: var(--ink-3); margin-left: .25rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: #94A3B8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .16); }
.field__hint { margin-top: .4rem; font-size: .88rem; color: var(--ink-3); }
.field__error { margin-top: .4rem; font-size: .9rem; font-weight: 550; color: var(--error); }
.field__error[hidden] { display: none; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field--split { grid-template-columns: 1fr; } }

.choice__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { position: relative; display: inline-block; margin: 0 !important; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 48px; padding: .6rem 1.2rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.pill:hover span { border-color: #94A3B8; }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice[data-invalid="true"] .pill span { border-color: var(--error); }

.check { display: flex !important; gap: .8rem; align-items: flex-start; font-weight: 450 !important; font-size: .95rem !important; color: var(--ink-2) !important; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--blue-strong); cursor: pointer; }
.check a { color: var(--blue-strong); font-weight: 600; }
.consent[data-invalid="true"] .check input { outline: 2px solid var(--error); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; margin-bottom: .75rem; font-size: .95rem; font-weight: 550; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="busy"] { color: var(--ink-2); }

/* ---------- Privacy page ---------- */
.legal { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3.5rem, 9vw, 7rem); }
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .75rem; }
.legal h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin: 2.5rem 0 .75rem; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-top: .75rem; display: grid; gap: .45rem; }
.legal a { color: var(--blue-strong); }
.legal__meta { color: var(--ink-3); font-size: .95rem; }
.draft-banner { margin: 1.5rem 0 2rem; padding: 1rem 1.15rem; border-radius: 12px; background: #FEF3C7; border: 1px solid #F59E0B; color: #78350F; font-weight: 550; font-size: .97rem; line-height: 1.5; }
.ph { background: #FEF08A; color: #713F12; padding: .05em .35em; border-radius: 5px; font-weight: 650; white-space: normal; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; color: var(--ink); background: var(--paper); }
.legal td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.back-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--on-navy); text-decoration: none; font-weight: 550; font-size: .95rem; padding: .5rem .75rem; border-radius: 999px; }
.back-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
[data-lang-block] { display: none; }
html[lang="en"] [data-lang-block="en"], html[lang="hu"] [data-lang-block="hu"] { display: block; }

/* ---------- Scroll reveal (progressive; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hv-link { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
