/* Reset, typography and small shared primitives. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.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; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--fg); color: var(--bg); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h1 { margin: 16px 0 0; font-size: clamp(2.25rem, 6vw, 4.8rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.h1 > span { display: block; }
.h2 { margin: 12px 0 0; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; max-width: 22ch; }
.sub { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.center { text-align: center; }
.center .h2, .center .sub { margin-left: auto; margin-right: auto; }

/* primitives */
.check { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: none; }
.check svg { width: 13px; height: 13px; }
.badge-ex { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--sunk); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.values { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 12px 28px; flex-wrap: wrap; }
.values li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background .25s, transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease-soft); }
.btn:hover svg { transform: translateX(3px); }
.btn-p { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-p:hover { background: var(--primary-h); transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-s { border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.btn-s:hover { border-color: color-mix(in srgb, var(--fg) 40%, var(--line)); }

/* theme and language swaps */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important;
}
.lang-anim [data-i18n] { transition: opacity .16s ease, filter .16s ease; }
.is-switching [data-i18n] { opacity: 0; filter: blur(3px); }
.menu-open { overflow: hidden; }
