/* IMEI-Tool – site styles. Light theme, system font, no framework. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #48484d;
  --ink-3: #6e6e73;
  --accent: #2d5bff;
  --accent-hover: #2350f0;
  --accent-press: #1c44d6;
  --accent-soft: rgba(45, 91, 255, 0.09);
  --ok: #1a7f37;
  --ok-soft: rgba(26, 127, 55, 0.1);
  --bad: #c4142c;
  --bad-soft: rgba(196, 20, 44, 0.09);
  --hairline: rgba(0, 0, 0, 0.09);
  --hairline-strong: rgba(0, 0, 0, 0.16);
  --chrome: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.12);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 70rem;
  --nav-h: 3.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--font);
  letter-spacing: -0.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

:focus-visible {
  outline: 3px solid rgba(45, 91, 255, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

kbd {
  font: 600 0.9em/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0.2em 0.45em;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 1px 0 var(--hairline-strong);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--subtle { background: var(--bg-subtle); }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.034em; }

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 700;
  text-wrap: balance;
}

.title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.lede {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.fineprint {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink-3);
  text-align: center;
}
.fineprint--left { text-align: left; margin-top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font: 500 1rem/1.2 var(--font);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease), transform 100ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { background: var(--accent-press); transform: scale(0.97); transition-duration: 60ms; }

.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }

.btn--sm { min-height: 2.25rem; padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn--lg { min-height: 3.25rem; padding: 0.8rem 1.6rem; font-size: 1.0625rem; }

.btn--quiet { background: var(--accent-soft); color: var(--accent); }
.btn--quiet:hover { background: rgba(45, 91, 255, 0.14); color: var(--accent); }
.btn--quiet:active { background: rgba(45, 91, 255, 0.2); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn--ghost:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink); }
.btn--ghost:active { background: rgba(0, 0, 0, 0.08); }

.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: #f0f0f2; color: var(--ink); }
.btn--on-dark:active { background: #e4e4e8; }

.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost-on-dark:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn--ghost-on-dark:active { background: rgba(255, 255, 255, 0.16); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.linklike:hover { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 200ms var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--hairline); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: block; flex: none; }
.brand img { width: auto; height: 1.6rem; }

.nav__links { display: flex; gap: 0.25rem; margin-right: auto; }
.nav__link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.875rem;
  transition: color 120ms var(--ease), background-color 120ms var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-switch:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.lang-switch:active { background: rgba(0, 0, 0, 0.08); }

.nav__toggle {
  display: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:active { background: rgba(0, 0, 0, 0.08); }

@media (max-width: 52rem) {
  .nav__links, .nav__hide-sm { display: none; }
  .nav__toggle { display: grid; }
}

/* Menu sheet (mobile) */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
}

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(22rem, 88vw);
  padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  background: rgba(252, 252, 253, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.18);
  transform: translate3d(100%, 0, 0);
  touch-action: pan-y;
  overflow-y: auto;
}

.sheet__head { display: flex; align-items: center; justify-content: space-between; height: 2.75rem; margin-bottom: 0.5rem; }
.sheet__title { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.sheet__close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-2);
  cursor: pointer;
}
.sheet__close:active { background: rgba(0, 0, 0, 0.1); }

.sheet__nav { display: flex; flex-direction: column; }
.sheet__link {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sheet__link:hover { text-decoration: none; color: var(--accent); }
.sheet__link[aria-current="page"] { color: var(--accent); }

.sheet__foot { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 2rem; }
.lang-switch--sheet { justify-content: center; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__copy .lede { max-width: 34rem; }
.hero__note { margin-top: 1.25rem; font-size: 0.8125rem; letter-spacing: 0; color: var(--ink-3); }
.hero--center { text-align: center; padding-block: clamp(5rem, 14vw, 9rem); }

@media (max-width: 56rem) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* Product mock */

.mock {
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-lg);
  overflow: hidden;
  max-width: 30rem;
  margin-inline: auto;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--hairline);
}
.mock__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #d9d9de; }
.mock__name { margin-left: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.mock__body { padding: 1.5rem; }
.mock__label { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.mock__imei {
  display: flex;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 4px var(--accent-soft);
  font: 500 1.125rem/1.3 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
}
.mock__caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--accent); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.mock__rows { margin-top: 1.25rem; }
.mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.mock__row dt { color: var(--ink-3); }
.mock__row dd { font-weight: 500; text-align: right; }

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-sm);
}
.section--subtle .card { box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.018em; font-weight: 650; }
.card p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.75rem; }
.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.card__link .icon { transition: transform 160ms var(--ease); }
.card__link:hover .icon { transform: translateX(3px); }

.badge {
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge--free { background: var(--ok-soft); color: var(--ok); }

.tile { padding: 1.5rem; border-radius: var(--r-lg); background: var(--bg-subtle); }
.tile h3 { margin-top: 1rem; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.015em; }
.tile p { margin-top: 0.35rem; color: var(--ink-2); font-size: 0.9375rem; }

.note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 44rem;
  margin-top: 2rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.note .icon { flex: none; margin-top: 0.15rem; color: var(--accent); }

/* Feature panels */

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
}
.panel p { color: var(--ink-2); max-width: 30rem; }
.panel .btn { margin-top: auto; }
.panel p + .btn { margin-top: 0.75rem; }
.panel__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
}
.section--subtle .step { background: var(--bg); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.step h3, .step__title { margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 650; }
.step p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; }
.step .btn { margin-top: 1.25rem; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 44rem; margin-inline: auto; padding: 0; list-style: none; }
.chip {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--bg);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--hairline);
  font-size: 0.9375rem;
  font-weight: 500;
}
.chip:last-child { background: transparent; box-shadow: none; color: var(--ink-3); }

/* ---------- CTA ---------- */

.cta {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 100% 0%, #2a3a8a 0%, #15172b 45%, #0b0b10 100%);
  color: #fff;
  text-align: center;
}
.cta p { max-width: 36rem; margin: 1rem auto 0; color: rgba(255, 255, 255, 0.76); font-size: 1.125rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Page head & breadcrumbs ---------- */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem); }
.page-head .lede { max-width: 40rem; }
.stamp { margin-top: 1rem; font-size: 0.8125rem; color: var(--ink-3); }

.crumbs { margin-bottom: 1.5rem; font-size: 0.8125rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--hairline-strong); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Specs ---------- */

.specs { border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-sm); overflow: hidden; }
.specs__row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
}
.specs__row + .specs__row { border-top: 1px solid var(--hairline); }
.specs__row dt { font-weight: 600; }
.specs__row dd { color: var(--ink-2); }
@media (max-width: 34rem) {
  .specs__row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- FAQ accordion ---------- */

.faq { border-top: 1px solid var(--hairline); }
.acc { border-bottom: 1px solid var(--hairline); }
.acc__heading { font-size: inherit; font-weight: inherit; }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 1.0625rem/1.4 var(--font);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc__btn:hover { color: var(--accent); }
.acc__sign { flex: none; color: var(--ink-3); transition: transform 280ms var(--ease); }
.acc__btn[aria-expanded="true"] .acc__sign { transform: rotate(180deg); }
.acc__panel { overflow: hidden; }
.acc__inner { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 40rem; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 52rem) {
  .contact { grid-template-columns: 1fr; }
}

.form { gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.25rem); }
.form .btn { align-self: flex-start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 34rem) {
  .form__row { grid-template-columns: 1fr; }
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.4 var(--font);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.input:hover { border-color: rgba(0, 0, 0, 0.28); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 9rem; resize: vertical; }
.field__error { min-height: 1.1em; font-size: 0.8125rem; color: var(--bad); }
.field.is-invalid .input { border-color: var(--bad); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 4px var(--bad-soft); }

.form__status {
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form__status.is-error { background: var(--bad-soft); color: var(--bad); }

.contact__aside { display: grid; gap: 0.75rem; }
.info { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-subtle); }
.info .card__icon { width: 2.5rem; height: 2.5rem; }
.info__title { font-size: 1rem; font-weight: 650; letter-spacing: -0.012em; }
.info p { margin-top: 0.25rem; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Legal ---------- */

.legal {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); font-size: 0.875rem; }
.toc__title { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); }
.toc ol { display: grid; gap: 0.1rem; padding: 0; list-style: none; border-left: 1px solid var(--hairline); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.is-current { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

@media (max-width: 52rem) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; padding: 1.25rem; border-radius: var(--r-lg); background: var(--bg-subtle); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}

.prose { max-width: 44rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1rem; }
.prose h2 {
  margin-top: 2.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; color: var(--ink); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose dl { display: grid; gap: 0.25rem 0; }
.prose dt { margin-top: 0.75rem; color: var(--ink); font-weight: 600; }
.prose dd { margin: 0; }
.callout { padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); }

/* ---------- Footer ---------- */

.footer {
  padding-block: 3.5rem 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 52rem) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
.footer__brand img { height: 1.6rem; width: auto; }
.footer__brand p { margin-top: 0.75rem; color: var(--ink-3); }
.footer__title { margin-bottom: 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.footer ul { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.footer ul a, .footer .linklike { color: var(--ink-2); }
.footer ul a:hover, .footer .linklike:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.footer__bottom a { color: var(--ink-2); }
.footer__langs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Cookie notice ---------- */

.cookie {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(44rem, calc(100% - 2rem));
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-lg);
  font-size: 0.875rem;
  color: var(--ink-2);
  transform: translate3d(-50%, 130%, 0);
}
.cookie p { flex: 1; }
.cookie .btn-row { flex: none; margin-top: 0; gap: 0.5rem; }
@media (max-width: 40rem) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie .btn-row > * { flex: 1; }
}

/* ---------- Language hint ---------- */

.lang-hint {
  position: fixed;
  left: 50%;
  top: calc(var(--nav-h) + 0.75rem);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-lg);
  font-size: 0.875rem;
  color: var(--ink-2);
  opacity: 0;
  transform: translate3d(-50%, -16px, 0);
}
.lang-hint > svg { flex: none; color: var(--ink-3); }
.lang-hint p { flex: 1; }
.lang-hint .btn { flex: none; }
.lang-hint__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-2);
  cursor: pointer;
}
.lang-hint__close:active { background: rgba(0, 0, 0, 0.1); transform: scale(0.94); }
@media (max-width: 40rem) {
  .lang-hint { width: calc(100% - 2rem); border-radius: var(--r-lg); padding-left: 0.875rem; }
  .lang-hint > svg { display: none; }
  .lang-hint p { line-height: 1.35; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .js .reveal { transform: none; transition: opacity 200ms linear !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet, .cookie, .lang-hint { background: #fcfcfd; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #1d1d1f;
    --ink-3: #3a3a3f;
    --hairline: rgba(0, 0, 0, 0.4);
    --hairline-strong: rgba(0, 0, 0, 0.6);
  }
  .nav { background: #fff; box-shadow: 0 1px 0 var(--hairline); }
  .card, .tile, .step, .panel, .info { box-shadow: 0 0 0 1px var(--hairline); }
}
