/* Motix AI website. Tokens follow the app (src/renderer/src/styles.css): iOS-like greys, one accent, the sidebar's
   colour squircles and the logo gradient. Light/dark from the system; every focus ring is drawn inside its element. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/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-display: swap;
  font-weight: 100 900;
  src: url(/assets/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;
}

:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --tint: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --bar: rgb(251 251 253 / 0.8);
  --fg: #1c1c1e;
  --fg-2: #55555c;
  --fg-3: #6e6e75;
  --line: rgb(60 60 67 / 0.14);
  --fill: rgb(118 118 128 / 0.12);
  --fill-hover: rgb(118 118 128 / 0.2);
  --accent: #0068d9;
  --accent-text: #0062cc;
  --accent-soft: rgb(0 104 217 / 0.1);
  --ok: #1a7f37;
  --warn: #a85400;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 30px 80px -24px rgb(64 60 190 / 0.35), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  --grad: linear-gradient(135deg, #0068d9 0%, #5e5ce6 55%, #8a3fc4 100%);
  --grad-text: linear-gradient(90deg, #0a6cff 0%, #5e5ce6 50%, #9b3fd6 100%);
  --ph: rgb(255 204 0 / 0.3);
  --draft-bg: #fff6d6;
  --draft-line: #f0c94a;
  --r: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t: 160ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --tint: #0c0c0f;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --bar: rgb(10 10 12 / 0.78);
    --fg: #f5f5f7;
    --fg-2: #aeaeb6;
    --fg-3: #9a9aa2;
    --line: rgb(84 84 88 / 0.5);
    --fill: rgb(118 118 128 / 0.24);
    --fill-hover: rgb(118 118 128 / 0.36);
    --accent-text: #5aa9ff;
    --accent-soft: rgb(90 169 255 / 0.14);
    --ok: #4cd07a;
    --warn: #ffa64d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 30px 90px -24px rgb(94 92 230 / 0.45), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --grad-text: linear-gradient(90deg, #5aa9ff 0%, #8c8aff 50%, #d08cff 100%);
    --ph: rgb(255 214 10 / 0.22);
    --draft-bg: #2a2208;
    --draft-line: #8a6d12;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: var(--accent-text);
  text-decoration: none;
  border-radius: 4px;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: -2px;
}
::selection {
  background: rgb(94 92 230 / 0.28);
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}
.narrow {
  max-width: 860px;
}

/* skip link */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--fg);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 10px;
}

/* ───────── buttons ───────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--fg);
  background: var(--fill);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--fill-hover);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 20px -8px rgb(70 70 220 / 0.7);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.btn-primary:hover {
  background: var(--grad);
  box-shadow: 0 10px 28px -8px rgb(70 70 220 / 0.8);
}
.btn-primary:hover::after {
  opacity: 0.08;
}
.btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}
.btn-ghost {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-sm .i {
  width: 17px;
  height: 17px;
}

/* ───────── header ───────── */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  padding: 4px;
  margin-left: -4px;
  border-radius: 10px;
}
.brand b {
  font-weight: 650;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo {
  width: 32px;
  height: 32px;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav a:hover {
  color: var(--fg);
  background: var(--fill);
  text-decoration: none;
}
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
}
.top-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.langs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: var(--fill);
}
.langs a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.langs a:hover {
  color: var(--fg);
  text-decoration: none;
}
.langs a[aria-current='page'] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
@media (max-width: 440px) {
  .top-dl span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .top-dl {
    width: 40px;
    padding: 0;
  }
  .brand {
    font-size: 17px;
  }
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  padding: 56px 0 24px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) {
  .hero {
    padding-top: 88px;
  }
}
.glow {
  position: absolute;
  inset: -10% -20% auto;
  height: 820px;
  z-index: -1;
  background:
    radial-gradient(34% 42% at 22% 18%, rgb(10 132 255 / 0.2), transparent 72%),
    radial-gradient(30% 40% at 78% 12%, rgb(191 90 242 / 0.18), transparent 72%),
    radial-gradient(40% 40% at 50% 62%, rgb(94 92 230 / 0.16), transparent 75%);
  pointer-events: none;
}
.hero-in {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 550;
}
.eyebrow .i {
  width: 16px;
  height: 16px;
  color: #8a5cf6;
}
.hero h1 {
  margin-top: 22px;
  max-width: 900px;
  font-size: clamp(2.3rem, 1.1rem + 5vw, 4.6rem);
  line-height: 1.03;
  font-weight: 760;
  letter-spacing: -0.04em;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead {
  margin-top: 20px;
  max-width: 680px;
  color: var(--fg-2);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.5;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 480px) {
  .cta {
    width: 100%;
    flex-direction: column;
  }
  .cta .btn {
    width: 100%;
  }
}
.note {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  margin-top: 16px;
  color: var(--fg-3);
  font-size: 14px;
}
.note .i {
  width: 16px;
  height: 16px;
}
.ver::before {
  content: '·';
  margin-right: 8px;
}
.hero-shot {
  margin: 48px auto 0;
  max-width: 1140px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * {
    animation: rise 180ms var(--ease) both;
  }
  .hero-in > :nth-child(2) {
    animation-delay: 30ms;
  }
  .hero-in > :nth-child(3) {
    animation-delay: 60ms;
  }
  .hero-in > :nth-child(n + 4) {
    animation-delay: 90ms;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* screenshot frame: a thin logo-gradient edge and a soft coloured shadow */
.win {
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(10 132 255 / 0.55), rgb(94 92 230 / 0.25) 45%, rgb(191 90 242 / 0.55));
  box-shadow: var(--shadow-lg);
}
.win img {
  width: 100%;
  border-radius: 15px;
  background: #000;
}

/* ───────── sections ───────── */
.sec {
  padding: 72px 0;
}
@media (min-width: 900px) {
  .sec {
    padding: 104px 0;
  }
}
.sec-tint {
  background: var(--tint);
}
.sec-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.sec-head.left {
  margin-left: 0;
  text-align: left;
}
.sec-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 740;
  letter-spacing: -0.035em;
}
.sec-head p {
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 1.1rem;
}

/* how it works */
.steps {
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: s;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1060px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}
.step {
  position: relative;
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
  background: var(--grad);
}
.step h3 {
  font-size: 18px;
  font-weight: 680;
}
.step p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 15px;
}
@media (max-width: 719px) {
  .step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .step-n {
    grid-row: span 2;
    margin: 0;
  }
  .step p {
    margin-top: 4px;
  }
}
@media (min-width: 1060px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 39px;
    right: -14px;
    width: 14px;
    height: 2px;
    background: linear-gradient(90deg, rgb(94 92 230 / 0.5), rgb(94 92 230 / 0.1));
  }
}

/* features */
.feats {
  list-style: none;
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .feats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .feats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.feat {
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
@media (hover: hover) {
  .feat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.22), inset 0 0 0 1px var(--line);
  }
}
.feat h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 680;
}
.feat p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 15px;
}
.sq {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 4px 12px -4px rgb(0 0 0 / 0.3);
}
.sq .i {
  width: 22px;
  height: 22px;
}
.sq-blue { background: linear-gradient(160deg, #3d9bff, #0a6ce0); }
.sq-purple { background: linear-gradient(160deg, #cf7af7, #9a3fd8); }
.sq-red { background: linear-gradient(160deg, #ff6a5f, #e0302a); }
.sq-pink { background: linear-gradient(160deg, #ff5f80, #e0244c); }
.sq-orange { background: linear-gradient(160deg, #ffb340, #ff7a00); }
.sq-yellow { background: linear-gradient(160deg, #ffd84a, #f0a800); }
.sq-green { background: linear-gradient(160deg, #4cd97a, #1fa84a); }
.sq-teal { background: linear-gradient(160deg, #5fd4ea, #159cbd); }
.sq-indigo { background: linear-gradient(160deg, #7f7dff, #4644c9); }
.sq-violet { background: linear-gradient(160deg, #c27ae8, #8944c9); }
.sq-sky { background: linear-gradient(160deg, #6fd3ff, #1f96e0); }
.sq-flame { background: linear-gradient(160deg, #ff8a4c, #ff3b30); }
.sq-graphite { background: linear-gradient(160deg, #9a9aa0, #5d5d63); }
.sq-mint { background: linear-gradient(160deg, #3fdcd2, #00a39b); }

/* gallery */
.tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 14px;
  background: var(--fill);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.tabs button:hover {
  color: var(--fg);
}
.tabs button:active {
  transform: scale(0.97);
}
.tabs button[aria-selected='true'] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.14);
}
html:not(.js) .tabs {
  display: none;
}
.panels {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}
.panel figure {
  margin: 0;
}
.js .panel {
  animation: fade 160ms var(--ease) both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.panel figcaption {
  margin-top: 18px;
  text-align: center;
  color: var(--fg-2);
  font-size: 15px;
}

/* money */
.money {
  display: grid;
  gap: 8px;
}
@media (min-width: 960px) {
  .money {
    grid-template-columns: 0.9fr 1.4fr;
    gap: 56px;
    align-items: start;
  }
}
.money-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .money-list {
    grid-template-columns: 1fr 1fr;
  }
}
.money-list li {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.mi {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.money-list h3 {
  font-size: 17px;
  font-weight: 680;
}
.money-list p {
  margin-top: 6px;
  color: var(--fg-2);
  font-size: 15px;
}

/* plans */
.plans-bar {
  display: flex;
  justify-content: center;
  margin: -12px 0 28px;
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--fill);
}
.seg button {
  min-width: 64px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.seg button:active {
  transform: scale(0.97);
}
.seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.14);
}
.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}
.plans-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--fg-3);
  padding: 32px 0;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.plan.hl {
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #6d6bf0;
}
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
  font-size: 12px;
  font-weight: 650;
}
.plan h3 {
  font-size: 20px;
  font-weight: 700;
  padding-right: 110px;
}
.plan-desc {
  margin-top: 6px;
  color: var(--fg-2);
  font-size: 14px;
  min-height: 1.5em;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 4px;
}
.price b {
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price span {
  color: var(--fg-3);
  font-size: 15px;
}
.price.none b {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 16px 0 22px;
  font-size: 15px;
}
.plan li {
  display: flex;
  gap: 9px;
}
.plan li .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ok);
}
.plan li small {
  display: block;
  color: var(--fg-3);
  font-size: 13px;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding-top: 8px;
  padding-bottom: 8px;
}
.plans-pay {
  margin-top: 22px;
  text-align: center;
  color: var(--fg-2);
  font-size: 15px;
}
.card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.fallback {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.fallback h3 {
  font-size: 22px;
}
.fallback p {
  margin-top: 10px;
  color: var(--fg-2);
}
.fallback .contact-cards {
  margin-top: 20px;
  text-align: left;
}

/* download */
.dl-card {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgb(10 132 255 / 0.12), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgb(191 90 242 / 0.12), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
  .dl-card {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
  }
}
.dl-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 20px;
}
.dl-main h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 740;
  letter-spacing: -0.03em;
}
.dl-main > p {
  margin: 12px 0 24px;
  color: var(--fg-2);
}
.dl-main .btn {
  width: 100%;
}
@media (min-width: 480px) {
  .dl-main .btn {
    width: auto;
  }
}
.dl-status {
  margin-top: 12px;
  min-height: 1.5em;
  color: var(--fg-3);
  font-size: 14px;
}
.info {
  padding: 18px;
  border-radius: 16px;
  background: var(--accent-soft);
}
.info h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 680;
}
.info h3 .i {
  color: var(--accent-text);
}
.info p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 15px;
}
.info b {
  color: var(--fg);
  font-weight: 650;
}
.req-h {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 680;
}
.checks {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.checks li {
  display: flex;
  gap: 10px;
  color: var(--fg-2);
}
.checks .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--ok);
}

/* faq */
.faq {
  display: grid;
  gap: 10px;
}
.qa {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--t) var(--ease);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:hover {
  background: var(--fill);
}
.chev {
  color: var(--fg-3);
  transition: transform var(--t) var(--ease);
}
.qa[open] .chev {
  transform: rotate(180deg);
}
.qa-a {
  padding: 0 18px 18px;
  color: var(--fg-2);
}

/* contacts */
.contact-cards {
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}
.fallback .contact {
  background: var(--surface-2);
  box-shadow: none;
}
.contact > .i {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.contact div {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lbl {
  color: var(--fg-3);
  font-size: 13px;
}
.ph {
  padding: 0 4px;
  border-radius: 5px;
  background: var(--ph);
  color: var(--fg);
  font-weight: 550;
}

/* footer */
.foot {
  padding: 48px 0 40px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 15px;
}
.foot-in {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .foot-in {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.foot-brand p {
  margin-top: 10px;
  color: var(--fg-2);
}
.foot-links,
.foot-contacts {
  display: grid;
  gap: 8px;
  align-content: start;
}
.foot-links a {
  color: var(--fg-2);
  justify-self: start;
}
.foot-links a:hover {
  color: var(--fg);
}
.foot-contacts > * {
  justify-self: start;
}
.foot-small {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  box-shadow: inset 0 1px 0 var(--line);
  color: var(--fg-3);
  font-size: 13px;
}
.foot-small a {
  color: var(--fg-3);
}

/* legal pages */
.legal {
  max-width: 820px;
  padding-top: 40px;
  padding-bottom: 72px;
}
.legal h1 {
  margin-top: 28px;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.legal-intro {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 1.08rem;
}
.draft {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--draft-bg);
  box-shadow: inset 0 0 0 1px var(--draft-line);
}
.draft strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.draft p {
  margin-top: 6px;
  color: var(--fg-2);
  font-size: 15px;
}
/* An optional seller field (the phone) left empty: no row once the documents are final (own rule: a browser without
   :has() drops only this one). */
[data-legal='ready'] .req li[data-opt]:has(> .ph) {
  display: none;
}
[data-legal='ready'] .draft,
[data-legal='ready'] .owner-note {
  display: none;
}
.owner-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--draft-bg);
  box-shadow: inset 0 0 0 1px var(--draft-line);
  font-size: 15px;
  color: var(--fg-2);
}
.owner-note b {
  color: var(--fg);
}
.toc {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--tint);
}
.toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.toc ol {
  margin-top: 10px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.8;
}
@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}
.legal section {
  margin-top: 36px;
}
.legal section h2 {
  font-size: 22px;
  font-weight: 700;
}
.legal .n {
  color: var(--fg-3);
}
.legal section p,
.legal section ul {
  margin-top: 12px;
  color: var(--fg-2);
}
.legal section ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.legal b {
  color: var(--fg);
}
.legal ul.req {
  list-style: none;
  padding: 0;
  gap: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.req li {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  color: var(--fg);
}
.req li + li {
  box-shadow: inset 0 1px 0 var(--line);
}
.req li > span:first-child {
  color: var(--fg-3);
  font-size: 13px;
}
@media (min-width: 640px) {
  .req li {
    grid-template-columns: 200px 1fr;
    gap: 16px;
  }
}
.legal-back {
  margin-top: 48px;
}
.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
}

/* payment return, download, 404 */
.center-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 60px - 240px);
  padding-top: 48px;
  padding-bottom: 64px;
}
.status-card {
  width: 100%;
  max-width: 560px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px 24px;
}
.status-card h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 740;
  letter-spacing: -0.03em;
}
.status-card .lead {
  margin-top: 0;
}
.status-card .dl-icon {
  margin: 0;
}
.badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
}
.badge .i {
  width: 32px;
  height: 32px;
}
.badge.ok {
  background: linear-gradient(160deg, #4cd97a, #1a8f3e);
}
.badge.warn {
  background: linear-gradient(160deg, #ffb340, #d26a00);
}
.muted {
  color: var(--fg-3);
  font-size: 15px;
}
.other-langs {
  display: grid;
  gap: 4px;
  color: var(--fg-3);
  font-size: 14px;
}
.contact-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .top,
  .foot,
  .draft,
  .toc {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
