/* Self-hosted: Unbounded and Onest, SIL Open Font License 1.1 */
@font-face{font-family:"Unbounded";font-style:normal;font-weight:300 800;font-display:swap;src:url("/assets/fonts/unbounded-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:300 800;font-display:swap;src:url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:300 800;font-display:swap;src:url("/assets/fonts/unbounded-latin-ext.woff2") format("woff2");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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:300 800;font-display:swap;src:url("/assets/fonts/unbounded-latin.woff2") format("woff2");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;}
@font-face{font-family:"Onest";font-style:normal;font-weight:300 700;font-display:swap;src:url("/assets/fonts/onest-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Onest";font-style:normal;font-weight:300 700;font-display:swap;src:url("/assets/fonts/onest-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Onest";font-style:normal;font-weight:300 700;font-display:swap;src:url("/assets/fonts/onest-latin-ext.woff2") format("woff2");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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Onest";font-style:normal;font-weight:300 700;font-display:swap;src:url("/assets/fonts/onest-latin.woff2") format("woff2");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;}

/* Surta — the paywall's warm dark palette, glass surfaces and orange light. */

:root {
  --bg-top: #2b170d;
  --bg-bottom: #120b09;
  --ink: #fff6ef;
  --ink-2: rgb(255 238 226 / 0.70);
  --ink-3: rgb(255 238 226 / 0.48);
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --glass: rgb(255 255 255 / 0.055);
  --glass-hi: rgb(255 255 255 / 0.09);
  --orange: #ff9500;
  --coral: #f26b59;
  --brand: #e86424;
  --accent: linear-gradient(135deg, var(--orange), var(--coral));

  --font-display: "Unbounded", ui-rounded, system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, sans-serif;

  --radius-l: 28px;
  --radius-m: 22px;
  --radius-s: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg-bottom);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 62%) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgb(255 149 0 / 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- atmosphere ---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.glow-a {
  width: min(78vw, 820px);
  aspect-ratio: 1;
  top: -32%;
  right: -22%;
  background: radial-gradient(closest-side, rgb(255 149 0 / 0.42), rgb(255 149 0 / 0.12) 55%, transparent);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.glow-b {
  width: min(70vw, 640px);
  aspect-ratio: 1;
  bottom: -30%;
  left: -24%;
  background: radial-gradient(closest-side, rgb(242 107 89 / 0.22), transparent);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.glow-c {
  width: min(46vw, 420px);
  aspect-ratio: 1;
  top: 38%;
  left: 52%;
  background: radial-gradient(closest-side, rgb(232 100 36 / 0.14), transparent);
  animation: drift-c 22s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(-9vw, 7vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(10vw, -8vh) scale(1.12); } }
@keyframes drift-c { to { transform: translate(-14vw, -6vh) scale(0.9); } }

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- glass ---------- */

.glass {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.025)),
    rgb(30 18 12 / 0.35);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 24px 60px -30px rgb(0 0 0 / 0.65);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

/* Scales with the screen so long Russian words ("конфиденциальности") fit whole on a 320px phone. */
.is-doc .display,
.is-support .display { font-size: clamp(22px, 7.4vw, 56px); }
:lang(ru) .is-doc .display { font-size: clamp(19px, 6vw, 56px); line-height: 1.14; }

/* Last resort for an unexpectedly long word: break it instead of running off the screen. */
.display { overflow-wrap: break-word; }

.accent {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  margin: 20px 0 0;
  text-wrap: pretty;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn .apple { width: 17px; height: 20px; fill: currentColor; margin-top: -2px; }

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 30px -8px rgb(255 120 40 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.28);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgb(255 120 40 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.28); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-primary.is-soon {
  cursor: default;
  color: var(--ink);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 0.04);
}

.btn-ghost:hover { background: rgb(255 255 255 / 0.09); transform: translateY(-2px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 0;
  view-transition-name: site-header;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(255 255 255 / 0.08);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a,
.mobile-menu a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.nav a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 0.1); }

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.25);
  border: 1px solid var(--line);
}

.lang-switch a {
  min-width: 40px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.lang-switch a:hover { color: var(--ink); }

.lang-switch a[aria-current="true"] {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 14px -4px rgb(255 120 40 / 0.7);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.07);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.menu-button span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 25px; }
.menu-button[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 8px;
  border-radius: var(--radius-m);
  display: grid;
  gap: 2px;
}

.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; font-size: 17px; border-radius: var(--radius-s); }
.mobile-menu a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 0.09); }
.mobile-menu.is-open { animation: menu-in 0.4s var(--ease-out); }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

/* ---------- page shell ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  view-transition-name: page;
}

/* ---------- home ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: min(760px, calc(100dvh - var(--header-h)));
  padding: clamp(48px, 9vh, 110px) 0 clamp(40px, 7vh, 80px);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
}

.hero-waves {
  position: absolute;
  inset: -22% -26% auto auto;
  width: 120%;
  opacity: 0.16;
  z-index: -1;
}

.wave-mark path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 64;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease-out) forwards;
}

.wave-mark path:nth-child(2) { animation-delay: 0.15s; }
.wave-mark path:nth-child(3) { animation-delay: 0.3s; }
.wave-mark path:nth-child(4) { animation-delay: 0.45s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.slide {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-l);
}

.slide-back { transform: rotate(-9deg) translate(-12%, 4%) scale(0.9); opacity: 0.55; }
.slide-mid { transform: rotate(-4deg) translate(-5%, 1%) scale(0.95); opacity: 0.8; }

.slide-front {
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  transform: rotate(3deg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(255 149 0 / 0.38), transparent 60%),
    linear-gradient(160deg, #3a1f11, #1a0f0b);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(0 0 0 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.12);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% { transform: rotate(3deg) translateY(-10px); }
}

.slide-top {
  display: flex;
  justify-content: space-between;
}

.slide-top .pill { height: 26px; font-size: 12px; background: rgb(0 0 0 / 0.22); }

.kinetic {
  flex: 1;
  display: grid;
  place-items: center;
}

.kinetic span {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 54px);
  letter-spacing: -0.04em;
  opacity: 0;
  animation: word 6s var(--ease-out) infinite;
  animation-delay: calc(var(--w) * 1.5s);
}

.kinetic span:last-child {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes word {
  0% { opacity: 0; transform: translateY(40%) scale(0.92); filter: blur(10px); }
  6%, 20% { opacity: 1; transform: none; filter: blur(0); }
  25%, 100% { opacity: 0; transform: translateY(-30%) scale(1.04); filter: blur(8px); }
}

.route svg { width: 100%; height: 40px; }

.route path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route 6s var(--ease-out) infinite;
}

@keyframes route {
  0% { stroke-dashoffset: 1; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.features { padding: clamp(40px, 8vh, 90px) 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feature {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius-m);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}

.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.feature-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 40px;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

.cta {
  position: relative;
  overflow: hidden;
  margin: clamp(20px, 5vh, 60px) 0 clamp(60px, 10vh, 120px);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-l);
  text-align: center;
}

.cta .lead { margin-inline: auto; }
.cta .actions { justify-content: center; }

.cta-waves {
  position: absolute;
  width: 440px;
  right: -70px;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.13;
  z-index: -1;
}

.cta-waves.is-left { right: auto; left: -70px; scale: -1 1; }

@media (max-width: 860px) {
  .cta-waves { width: 300px; right: -110px; top: 0; translate: none; }
}

/* ---------- documents ---------- */

.doc-hero {
  padding: clamp(48px, 9vh, 100px) 0 clamp(28px, 5vh, 48px);
  max-width: 820px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: clamp(60px, 10vh, 120px);
}

.toc { position: sticky; top: calc(var(--header-h) + 20px); }

.toc-card {
  border-radius: var(--radius-m);
  padding: 8px;
  max-height: calc(100dvh - var(--header-h) - 48px);
  overflow: auto;
  scrollbar-width: thin;
}

.toc-card summary {
  list-style: none;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: default;
}

.toc-card summary::-webkit-details-marker { display: none; }

.toc-card ol {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}

.toc-card a {
  display: block;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.toc-card a:hover { color: var(--ink); background: rgb(255 255 255 / 0.05); }

.toc-card a.is-active {
  color: var(--ink);
  background: rgb(255 149 0 / 0.12);
  box-shadow: inset 2px 0 0 var(--orange);
}

.prose {
  border-radius: var(--radius-l);
  padding: clamp(24px, 5vw, 56px);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.prose > :first-child { margin-top: 0; }

.prose h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.4em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}

.prose h2 .anchor {
  position: absolute;
  left: -1.1em;
  opacity: 0;
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s;
}

.prose h2:hover .anchor { opacity: 1; }

.prose h3 {
  font-size: 18.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}

.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: #ffb36b;
  text-decoration: underline;
  text-decoration-color: rgb(255 179 107 / 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.prose a:hover { color: #ffc993; text-decoration-color: currentColor; }

.prose ul,
.prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin: 0.45em 0; padding-left: 0.3em; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--orange); font-weight: 600; }

.prose hr { display: none; }

.prose .notice {
  margin: 0 0 2em;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: rgb(255 149 0 / 0.1);
  border: 1px solid rgb(255 149 0 / 0.25);
  color: var(--ink);
  font-size: 15.5px;
}

.back-top {
  margin: 3em 0 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.back-top a { text-decoration: none; }

/* ---------- support ---------- */

.support-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: clamp(60px, 10vh, 120px);
}

.contact-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
}

.contact-card p { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; }

.contact-email {
  align-self: center;
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
}

.contact-email:hover { color: var(--ink); }

.contact-waves {
  position: absolute;
  width: 300px;
  top: -110px;
  right: -110px;
  opacity: 0.14;
  z-index: -1;
}

.faq { display: grid; gap: 10px; }

.faq-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.faq-item {
  border-radius: var(--radius-m);
  interpolate-size: allow-keywords;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: var(--line-strong); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.07);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 9px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.faq-item summary i::after { transform: rotate(90deg); transition: transform 0.4s var(--ease-out); }
.faq-item[open] summary i { background: var(--accent); transform: rotate(180deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}

.faq-item[open]::details-content { block-size: auto; }

.faq-answer { padding: 0 22px 22px; color: var(--ink-2); }
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--ink); font-weight: 600; }
.faq-answer a { color: #ffb36b; text-underline-offset: 3px; }

/* ---------- 404 ---------- */

.not-found {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found .hero-waves { width: 420px; inset: 0 -60px auto auto; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / 0.18);
  padding: 48px var(--gutter) max(28px, env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p { margin: 14px 0 0; color: var(--ink-3); font-size: 15px; max-width: 26em; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h2 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col a {
  width: fit-content;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--ink); }

.footer-legal {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- page transitions ---------- */

@view-transition { navigation: auto; }

.atmosphere { view-transition-name: atmosphere; }
.site-footer { view-transition-name: site-footer; }

::view-transition-group(atmosphere),
::view-transition-group(site-header) { animation: none; }
::view-transition-old(atmosphere) { display: none; }
::view-transition-new(atmosphere) { animation: none; }

::view-transition-old(page) { animation: page-out 0.26s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(page) { animation: page-in 0.6s var(--ease-out) both; }
::view-transition-old(site-footer) { animation: fade-out 0.2s both; }
::view-transition-new(site-footer) { animation: fade-in 0.5s 0.1s both; }
::view-transition-group(page),
::view-transition-group(site-footer) { animation-duration: 0.6s; animation-timing-function: var(--ease-out); }

@keyframes page-out { to { opacity: 0; transform: translateY(-10px) scale(0.99); filter: blur(6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Browsers without cross-document transitions still get a soft entrance. */
.no-vt .page { animation: page-in 0.7s var(--ease-out) both; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .support-layout { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .nav { display: none; }
  .header-end { margin-left: auto; }
  .menu-button { display: block; }
  .header-inner { height: 56px; padding: 0 6px 0 10px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 40px 0 12px;
    gap: 44px;
    text-align: left;
  }

  .hero-visual { width: min(74vw, 330px); margin: 0 auto; }
  .features { padding-top: 56px; }

  .doc-layout,
  .support-layout { grid-template-columns: 1fr; gap: 16px; }

  .toc { position: static; }
  .toc-card { max-height: none; }
  .toc-card summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc-card summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.3s var(--ease-out);
  }
  .toc-card[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

  .contact-card { position: relative; top: 0; padding: 28px 22px; }
  .contact-card .btn { padding: 0 18px; white-space: nowrap; }
  .contact-waves { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-num { margin-bottom: 18px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .prose { font-size: 16.5px; border-radius: var(--radius-m); }
  .prose h2 .anchor { display: none; }
  .lang-switch a { min-width: 36px; }
  .brand span { font-size: 17px; }
  .faq-item summary { padding: 18px; font-size: 16px; }
  .faq-answer { padding: 0 18px 18px; }
  .doc-meta .pill:last-child { display: none; }
}

/* ---------- motion & contrast preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .kinetic span { opacity: 0; }
  .kinetic span:last-child { opacity: 1; animation: none !important; }
  .wave-mark path, .route path { stroke-dashoffset: 0; }

  @view-transition { navigation: none; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgb(40 24 16 / 0.92); }
}
