/* Blacksmith landing. The app's design system (docs/specs/app-visual.md V1, V2;
   app/lib/theme/app_theme.dart): "from cold steel to white heat", dark only.
   Self-hosted fonts, no inline styles anywhere (CSP default-src 'self'). */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --iron: #0f0e0d;
  --soot: #171513;
  --soot-deep: #131210;
  --soot-raised: #1d1a17;
  --line: #2d2925;
  --line-soft: #24211e;
  --tick: #3a352f;
  --steel: #8c949e;
  --red-heat: #b8650a;
  --ember-deep: #e8820f;
  --ember: #ff9a1f;
  --ember-light: #ffb547;
  --white-heat: #ffd27a;
  --spark: #ffe29a;
  --ink: #f0e9e0;
  --ink-muted: #a69c91;
  --on-ember: #1a0e06;
  --danger: #e5745a;

  --r-card: 14px;
  --r-big: 18px;
  --r-btn: 14px;
  --wrap: 1120px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
/* Page changes cross-fade where the browser can do it without script. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--iron);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 800px; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font: 700 clamp(2rem, 5vw, 3.5rem)/1.08 var(--f-display); letter-spacing: -0.01em; }
h2 { font: 500 clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem)/1.15 var(--f-display); letter-spacing: -0.01em; margin-bottom: 0.5rem; }
h3 { font: 600 1.125rem/1.35 var(--f-text); margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted); max-width: 36rem; margin-top: 1.25rem; text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--f-mono); }
.sub { margin-top: 0.25rem; font-size: 1.0625rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow {
  margin: 0 0 0.875rem;
  font: 600 0.75rem/1.2 var(--f-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

a { color: var(--ember-light); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--white-heat); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 154, 31, 0.35); color: var(--ink); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ember); color: var(--on-ember); padding: 0.75rem 1rem; border-radius: var(--r-btn); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- wordmark ---------- */
.wordmark {
  font: 700 1rem/1 var(--f-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .wm-vpn { color: var(--ember-light); font-weight: 500; }
.wordmark.small { font-size: 0.9375rem; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 14, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  view-transition-name: top;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.nav-wide { display: flex; align-items: center; gap: 0.5rem; }
.nav-wide ul { display: flex; gap: 0.25rem; list-style: none; margin: 0 0.75rem 0 0; padding: 0; }
.nav-wide ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.875rem;
  position: relative; color: var(--ink-muted); text-decoration: none; border-radius: 10px; font-weight: 500; white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.nav-wide ul a:hover { color: var(--ink); background: var(--soot); }
.nav-wide ul a[aria-current="page"] { color: var(--ink); }
.nav-wide ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.875rem; right: 0.875rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--ember);
}
.menu.lang summary {
  width: auto; height: 40px; gap: 0.375rem; padding: 0 0.5rem 0 0.625rem; border-color: transparent; background: transparent;
  color: var(--ink-muted); font: 500 0.9375rem/1 var(--f-text);
}
.menu.lang summary:hover { color: var(--ink); border-color: var(--line); background: var(--soot); }
.menu.lang[open] summary { color: var(--ink); border-color: var(--line); background: var(--soot); }
.menu.lang[open] summary svg:last-child { transform: rotate(180deg); }
.menu.lang .menu-panel { min-width: 11rem; }
.menu.lang .menu-panel ul { margin: 0; }
.menu.lang .menu-panel ul a { justify-content: space-between; }
.menu-panel ul a[aria-current="true"] { color: var(--ember-light); }

.nav-narrow { display: none; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu summary, .icon-btn {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--soot);
  color: var(--ink); cursor: pointer; transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.icon-btn { border-color: rgba(255, 154, 31, 0.5); color: var(--ember-light); background: transparent; }
.icon-btn:hover { background: rgba(255, 154, 31, 0.1); color: var(--white-heat); }
.menu summary:hover { border-color: var(--tick); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ember); color: var(--ember-light); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px));
  background: var(--soot); border: 1px solid var(--line); border-radius: var(--r-big);
  padding: 0.5rem; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  transform-origin: top right; animation: pop 0.18s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
.menu-panel ul { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.menu-panel ul a {
  display: flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 0.875rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.menu-panel ul a:hover { background: var(--soot-raised); }
.menu-panel ul a[aria-current="page"] { color: var(--ember-light); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--soot); color: var(--ink);
  font: 600 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover { color: var(--ink); background: var(--soot-raised); border-color: var(--tick); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--ember); border-color: var(--ember); color: var(--on-ember);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px -8px rgba(255, 154, 31, 0.55);
}
.btn.primary:hover { background: var(--ember-light); border-color: var(--ember-light); color: var(--on-ember); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 32px -8px rgba(255, 154, 31, 0.7); }
.btn.outline { background: transparent; border-color: var(--ember); color: var(--ember-light); }
.btn.outline:hover { background: rgba(255, 154, 31, 0.1); color: var(--white-heat); }
.btn.small { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; border-radius: 12px; }
.btn.block { display: flex; width: 100%; }
.btn .ico { flex: none; }
.quiet {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  color: var(--ink-muted); font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--tick);
}
.quiet:hover { color: var(--ember-light); text-decoration-color: currentColor; }
.more { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.more:hover .ico { transform: translateX(3px); }
.more .ico { transition: transform 0.15s; }

.pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 0.75rem;
  border: 1px solid var(--ember); border-radius: 999px; color: var(--ember-light);
  font: 600 0.75rem/1 var(--f-text); letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; padding: 72px 0 32px; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 1200px; height: 1200px; right: -330px; top: -330px;
  background: radial-gradient(closest-side, rgba(255, 154, 31, 0.12), rgba(232, 130, 15, 0.045) 45%, rgba(15, 14, 13, 0) 100%);
}
/* A faint plate grid behind the connect control, fading out to the edges. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 74% 42%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 75% at 74% 42%, #000, transparent 75%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.display em { font-style: normal; color: var(--ember); }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 1.75rem 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust .ico { flex: none; color: var(--ember); }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.cc-state { margin: 1.5rem 0 0.25rem; font: 500 1.5rem/1.2 var(--f-display); }
.cc-time { margin: -0.1em 0 0; font: 400 5rem/0.8 var(--f-mono); color: var(--white-heat); }

/* the connect control */
.cc { position: relative; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.cc-svg { position: relative; z-index: 1; width: 100%; height: auto; }
.cc-glow {
  position: absolute; inset: 6%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 154, 31, 0.42), rgba(232, 130, 15, 0.18) 55%, rgba(184, 101, 10, 0) 100%);
  filter: blur(18px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}
.cc .t { stroke: var(--tick); }
.cc .t-warm { stroke: var(--red-heat); }
.cc .t-hot { stroke: var(--ember); }
.cc-glyph { filter: drop-shadow(0 0 6px rgba(255, 154, 31, 0.75)); }

/* ---------- sections ---------- */
.section { padding: var(--section) 0 0; }
.section.tight { padding-top: 48px; }
/* A full-width band that sets one section apart from its neighbours. */
.section.band { margin-top: var(--section); padding-bottom: var(--section); background: var(--soot-deep); border-block: 1px solid var(--line-soft); }
.section.band + .section { padding-top: var(--section); }
main > .section:last-child { padding-bottom: var(--section); }
.page-head { position: relative; overflow: hidden; padding: 72px 0 8px; }
.page-head::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; width: 900px; height: 700px; left: 50%; top: -420px;
  background: radial-gradient(closest-side, rgba(255, 154, 31, 0.09), rgba(15, 14, 13, 0));
}
.page-head .wrap { position: relative; z-index: 1; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; }
.note { margin-top: 1.5rem; font-size: 0.9375rem; max-width: 46rem; }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 120px), var(--soot); border: 1px solid var(--line); border-radius: var(--r-big); padding: 28px; }
.card > :last-child { margin-bottom: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 2rem 0 0; padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 1.5rem 0 0; padding: 0; }

.feature-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 1.25rem;
  border-radius: var(--r-card); background: rgba(255, 154, 31, 0.08); border: 1px solid rgba(255, 154, 31, 0.22); color: var(--ember);
}
.feature { transition: border-color 0.2s; }
.feature:hover { border-color: var(--tick); }
.feature p { margin: 0; }

/* plans */
.plan {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-big); padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 120px), var(--soot);
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.plan:hover { border-color: var(--tick); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8); }
.plan.featured {
  border-color: rgba(255, 154, 31, 0.75);
  background: linear-gradient(180deg, rgba(255, 154, 31, 0.07), rgba(255, 154, 31, 0) 42%), var(--soot);
  box-shadow: 0 0 0 1px rgba(255, 154, 31, 0.15), 0 24px 60px -30px rgba(255, 154, 31, 0.45);
}
.plan.featured:hover { border-color: var(--ember); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.75rem; }
.plan-top .plan-name { margin: 0; }
.plan-name { font: 500 1.375rem/1.2 var(--f-display); margin: 0 0 0.75rem; }
.plan-meta { list-style: none; margin: 0 0 1.5rem; padding: 0; color: var(--ink-muted); font-size: 0.9375rem; }
.plan-meta li { display: flex; align-items: center; gap: 0.5rem; min-height: 28px; }
.plan-meta .ico { color: var(--steel); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: auto 0 0.375rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.price-from { color: var(--ink-muted); font-size: 0.9375rem; }
.price-main { font: 600 2.375rem/1.1 var(--f-mono); color: var(--white-heat); letter-spacing: -0.03em; }
.price-unit { margin-left: 0.25em; font-size: 0.6em; font-weight: 500; letter-spacing: 0; }
.price-term { color: var(--ink-muted); font-size: 0.9375rem; }
.price-alt { margin: 0 0 1.5rem; color: var(--ink-muted); font-size: 0.9375rem; }
.plan-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem; }

.grid3.plans, .grid3.term-tables { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* the paid trial strip */
.trial {
  display: flex; align-items: center; gap: 1.25rem; margin: 2rem 0 0; padding: 18px 22px;
  border-radius: var(--r-big); border: 1px solid rgba(255, 154, 31, 0.35);
  background: linear-gradient(90deg, rgba(255, 154, 31, 0.1), rgba(255, 154, 31, 0.02) 60%), var(--soot);
}
.trial .feature-ico { margin: 0; flex: none; }
.trial-text { flex: 1; min-width: 0; }
.trial-title { margin: 0 0 0.125rem; font: 500 1.0625rem/1.35 var(--f-display); }
.trial-text .muted { margin: 0; font-size: 0.9375rem; }
.trial .btn { flex: none; }
.trial + .plans { margin-top: 20px; }
.trial:first-child { margin-top: 0; }

/* term tables */
.term-tables { align-items: start; }
.term-card { padding: 24px; }
.term-card h3 { margin-bottom: 1rem; }
.terms { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: -6px; }
.terms thead th { white-space: nowrap; text-align: left; padding: 0 10px 2px; color: var(--ink-muted); font-size: 0.8125rem; font-weight: 500; }
.terms tbody th, .terms tbody td { background: var(--soot-deep); padding: 12px 10px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-align: left; }
.terms tbody th { font-weight: 500; border-left: 1px solid var(--line-soft); border-radius: 12px 0 0 12px; white-space: nowrap; }
.terms tbody td:last-child { border-right: 1px solid var(--line-soft); border-radius: 0 12px 12px 0; }
.terms .num { font-family: var(--f-mono); font-size: 0.875rem; white-space: nowrap; color: var(--ink-muted); }
.terms .num.main { color: var(--white-heat); font-weight: 600; }

/* steps */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step {
  display: flex; flex-direction: column; overflow: hidden; padding: 28px 28px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 120px), var(--soot);
  border: 1px solid var(--line); border-radius: var(--r-big);
}
.step-n { margin: 0 0 1.25rem; font: 600 0.875rem/1 var(--f-mono); color: var(--ember); letter-spacing: 0.08em; }
.step-n::after { content: ""; display: inline-block; vertical-align: middle; width: 32px; height: 1px; margin-left: 0.75rem; background: rgba(255, 154, 31, 0.5); }
.step h3 { font: 500 1.25rem/1.25 var(--f-display); margin-bottom: 0.5rem; }
.step-body p { margin: 0; }
.phone {
  display: block; width: 100%; max-width: 220px; height: auto; margin: auto auto 0; padding-top: 2rem;
  -webkit-mask-image: linear-gradient(#000 60%, rgba(0, 0, 0, 0.3)); mask-image: linear-gradient(#000 60%, rgba(0, 0, 0, 0.3));
}
.ph-frame { fill: var(--soot-deep); stroke: var(--line); stroke-width: 1.5; }
.ph-screen { fill: var(--iron); }
.ph-notch { fill: var(--line-soft); }
.ph-card { fill: var(--soot); stroke: var(--line); stroke-width: 1; }
.ph-track { fill: var(--line-soft); }
.ph-fill { fill: var(--ember); }
.ph-line { fill: var(--line); }
.ph-dot { fill: var(--ink-muted); }
.ph-qr rect { fill: var(--steel); }
.ph-btn { fill: var(--ember); }
.ph-word { fill: var(--ink); font: 500 15px var(--f-display); }
.phone .t { stroke: var(--tick); }
.phone .t-hot { stroke: var(--ember); }

/* download */
/* Four equal cards; each card's content runs from its top, whatever the others hold (owner, 2026-10-31). */
.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.file { display: flex; flex-direction: column; gap: 0.625rem; padding: 20px; }
.file h3 { display: flex; align-items: center; gap: 0.625rem; margin: 0; font: 500 1.25rem/1.25 var(--f-display); }
.file h3 .ico { flex: none; color: var(--ink-muted); }
.file > p { margin: 0 0 0.25rem; }
.file.off h3, .file.off h3 .ico { color: var(--steel); }
/* The checksum opens in a modal layer (native popover, no script): the card keeps its height. */
.sum-open { align-self: flex-start; min-height: 32px; padding: 0; background: none; border: 0; font: inherit; font-size: 0.8125rem; color: var(--ink-muted); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.sum-open:hover { color: var(--ink); }
.sum-modal { width: min(520px, calc(100vw - 32px)); padding: 24px; background: var(--soot); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-big); box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7); }
/* It is the card's last child: .card > :last-child would zero its bottom margin and pin it to the bottom. */
.sum-modal, .card > .sum-modal { margin: auto; }
.sum-modal::backdrop { background: rgba(8, 8, 7, 0.66); }
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.sum-head h3 { margin: 0; font: 500 1.125rem/1.3 var(--f-display); }
.sum-close { flex: none; width: 36px; height: 36px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-muted); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.sum-close:hover { color: var(--ink); border-color: var(--tick); }
.sum-modal .well { margin: 0 0 0.75rem; }
.sum-modal > p { margin: 0; }
.well {
  display: block; padding: 14px 16px; margin: 0 0 0.75rem;
  background: var(--soot-deep); border: 1px solid var(--line); border-radius: 12px;
  font: 500 0.875rem/1.6 var(--f-mono); color: var(--ink); letter-spacing: 0.02em;
  overflow-wrap: anywhere; word-break: break-all; user-select: all; -webkit-user-select: all; cursor: text;
}
.soon { display: flex; align-items: flex-start; gap: 1rem; padding: 24px; }
.soon > .ico { flex: none; color: var(--steel); margin-top: 2px; }
.soon h3 { margin: 0 0 0.25rem; }
.soon p { margin: 0; }

/* help */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--soot); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color 0.15s; }
.faq details[open] { border-color: var(--tick); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: 14px 20px; cursor: pointer; font-weight: 600; border-radius: var(--r-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--white-heat); }
.faq details:hover { border-color: var(--tick); }
.faq-home { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
/* Answers slide open where the browser can animate to an intrinsic height. */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.25s var(--ease), content-visibility 0.25s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* closing call to action */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 80px) 24px;
  border: 1px solid rgba(255, 154, 31, 0.3); border-radius: 28px;
  background: radial-gradient(ellipse 70% 110% at 50% 125%, rgba(255, 154, 31, 0.24), rgba(255, 154, 31, 0) 70%), var(--soot);
}
.cta .lead { margin: 0.75rem auto 0; text-wrap: balance; }
.cta .actions { justify-content: center; }
.faq .chev { flex: none; color: var(--ember); transition: transform 0.2s; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-muted); max-width: 68ch; }
.contact { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }
.contact .feature-ico { margin: 0; flex: none; }
.contact > div { flex: 1; }
.contact h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.contact p { margin: 0; }

/* legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 0 0 0 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--ember); }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; }
.prose section { padding-top: 2.5rem; }
.prose section:first-of-type { padding-top: 0.5rem; }
.prose h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.prose p, .prose li { color: #d8d0c6; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin: 0.5rem 0; }
.prose li::marker { color: var(--ember); }
.page-head .updated { margin-top: 0.75rem; color: var(--ink-muted); font-size: 0.9375rem; }
.prose section.sub { padding-top: 1.25rem; }
.prose h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
/* the support e-mail as outlines (EmailMark): its baseline on the text's; descent 275 of 1000 units */
.email-mark { vertical-align: -0.275em; }
.prose .clause-n { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.callout {
  margin: 0 0 2rem; padding: 16px 20px; border-radius: var(--r-card);
  background: rgba(255, 154, 31, 0.07); border: 1px solid rgba(255, 154, 31, 0.28); color: var(--ink) !important; font-size: 0.9375rem; line-height: 1.6;
}

/* ---------- footer ---------- */
.foot { flex-shrink: 0; margin-top: 0; background: var(--soot-deep); border-top: 1px solid var(--line-soft); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; padding-top: 56px; padding-bottom: 56px; }
.foot-brand p { margin: 0.75rem 0 0; font-size: 0.9375rem; max-width: 22rem; }
.foot-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem 4rem; }
.foot-h { margin: 0 0 0.5rem; font: 600 0.75rem/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.foot-col a:hover { color: var(--ember-light); }
.foot-col a[aria-current] { color: var(--ember-light); font-weight: 600; }

/* ---------- scroll reveal (no script; browsers without scroll timelines show everything) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature, .plan, .step, .trial, .cta, .term-card, .faq-home details {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; translate: 0 20px; }
}

/* ---------- responsive ---------- */
@media (min-width: 1024px) {
  body { font-size: 1.0625rem; }
}
@media (max-width: 1023px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-wide ul a { padding: 0 0.625rem; }
  .nav-wide ul { margin-right: 0.25rem; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cc { width: min(100%, 300px); }
  .hero::before { right: 50%; transform: translateX(50%); top: -480px; }
  .hero::after { -webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 72%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 45% at 50% 72%, #000, transparent 75%); }
  .faq-home { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .legal { gap: 24px; }
}
@media (max-width: 1199px) {
  .nav-wide { display: none; }
  .nav-narrow { display: flex; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 64px; }
  .bar { min-height: 64px; }
  .hero { padding-top: 32px; }
  .cc { width: min(100%, 260px); }
  .cc-state { margin-top: 1rem; font-size: 1.25rem; }
  .actions .btn { flex: 1 1 100%; }
  .trust { flex-direction: column; gap: 0.5rem; }
  .hero-art { margin-top: 8px; }
  .grid3, .grid2, .files, .grid3.plans, .grid3.term-tables, .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 22px 22px 0; }
  .phone { max-width: 170px; padding-top: 1.5rem; }
  .cta { border-radius: var(--r-big); }
  .cta .actions .btn { flex: 1 1 100%; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; width: 100%; }
  .foot-col a { min-height: 44px; }
  .feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .feature .feature-ico { grid-row: span 2; margin: 0; }
  .feature h3 { align-self: center; }
  .card, .plan { padding: 22px; }
  .file { padding: 20px; }
  .contact { flex-direction: column; align-items: flex-start; }
  .trial { flex-wrap: wrap; padding: 18px; }
  .trial-text { flex-basis: calc(100% - 68px); }
  .trial .btn { width: 100%; }
  .contact .btn { width: 100%; }
  .page-head { padding-top: 40px; }
  .faq summary { padding: 14px 16px; }
  .faq details p { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cc-glow { animation: none; opacity: 0.85; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- currency switch (prices-usd U4) ---------- */
/* Every currency is in the page; <html data-cur> (set by the page, changed by currency.js) picks one. */
html[data-cur="rub"] .cur:not(.cur-rub),
html[data-cur="usd"] .cur:not(.cur-usd),
html[data-cur="xtr"] .cur:not(.cur-xtr) { display: none; }
.cur-switch { display: none; align-items: center; gap: 0.75rem; margin: 0 0 1.25rem; }
html[data-js] .cur-switch { display: flex; }
.cur-switch .seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soot); }
.cur-switch button {
  min-width: 56px; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-muted); font: 600 1rem/1 var(--f-text); cursor: pointer;
}
.cur-switch button:hover { color: var(--ink); }
.cur-switch button[aria-pressed="true"] { background: var(--ember); color: var(--on-ember); }
.price-wrap { display: flex; flex-direction: column; margin-top: auto; }
.price-wrap .price { margin-top: 0; }
.trial-title.cur { margin: 0 0 0.125rem; }
