/* KAPASTARS design system.
   Dark theme: near-black with a warm orange glow, faint stars, glass cards.
   Light theme: airy "sky" (pale blue, soft clouds, white cards).
   Orange is the accent in both, used sparingly: buttons, highlights, icons.
   All colors are tokens: the palette lives in these :root blocks only. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-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: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-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;
}

:root {
  color-scheme: light;

  /* Brand palette */
  --orange-50: #ffece5;
  --orange-100: #fcb59a;
  --orange-300: #ff9b5c;
  --orange-400: #f56630;
  --orange-500: #eb5017;
  --orange-600: #cc400c;
  --orange-700: #ad3307;

  --grey-50: #f9fafb;
  --grey-100: #f0f2f5;
  --grey-200: #e4e7ec;
  --grey-300: #d0d5dd;
  --grey-400: #98a2b3;
  --grey-500: #667185;
  --grey-600: #475367;
  --grey-700: #344054;
  --grey-800: #1d2739;
  --grey-900: #101928;

  /* Light theme: sky */
  --bg: #eef5ff;
  --surface: #ffffff;
  --surface-sunken: #f1f5fc;
  --text: #3b4663;
  --text-strong: #0c1430;
  --text-muted: #5b6684;
  --text-faint: #7c86a2;
  --border: rgb(30 64 140 / 0.09);
  --border-strong: rgb(30 64 140 / 0.17);
  --accent: var(--orange-500);
  --accent-text: #c2410c; /* 4.7:1 on the sky, 5.2:1 on white */
  --accent-soft: var(--orange-50);
  /* Filled accent (buttons, badges, checks, chat): the same vivid orange in both themes.
     White text on it would be ~3:1, so the text on it is dark: 7.4:1 and up. */
  --accent-solid: #ff7a2e;
  --accent-solid-hover: #ff8a3d;
  --on-accent: #1c0b02; /* text on --accent-solid / --btn-primary-bg */
  --focus: var(--orange-700);
  --success: #098a35;
  --success-soft: #e3f5ea;
  --error: #c4170f;
  --error-soft: #fdeceb;
  --warning: #945b00;
  --warning-soft: #fff4e0;
  --warning-border: #f0c373;
  --gold: #f5a300;

  --btn-primary-bg: linear-gradient(180deg, #ffb584 0%, #ff7a2e 100%);
  --btn-primary-glow: 0 12px 30px -8px rgb(255 110 40 / 0.6);
  /* Accent words in big headlines (large text: 3:1 is enough, this is 4.7:1) */
  --title-accent: #c2410c;

  /* Cards on the page (packages, features, FAQ...) */
  --card-bg: #ffffff;
  --card-border: rgb(30 64 140 / 0.08);
  --card-shadow: 0 1px 2px rgb(20 50 110 / 0.04), 0 12px 32px -12px rgb(20 60 140 / 0.14);
  --card-highlight: inset 0 1px 0 rgb(255 255 255 / 0.9);
  --input-bg: #ffffff;
  --chip-bg: #f2f6fd; /* small labels and mock UI inside cards */

  /* Glass: header, menus, the order card */
  --glass-bg: rgb(255 255 255 / 0.72);
  --glass-bg-dense: rgb(255 255 255 / 0.94);
  --glass-bg-control: rgb(255 255 255 / 0.62);
  --glass-border: rgb(255 255 255 / 0.85);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 0.95);
  --glass-blur: 22px;

  /* Page backdrop: sky with soft clouds at the edges */
  --backdrop:
    radial-gradient(26rem 9rem at 2% 24%, #fff 30%, rgb(255 255 255 / 0) 72%),
    radial-gradient(15rem 7rem at 13% 19%, rgb(255 255 255 / 0.95) 25%, rgb(255 255 255 / 0) 72%),
    radial-gradient(28rem 10rem at 99% 14%, #fff 30%, rgb(255 255 255 / 0) 72%),
    radial-gradient(16rem 7rem at 87% 20%, rgb(255 255 255 / 0.9) 25%, rgb(255 255 255 / 0) 72%),
    radial-gradient(30rem 11rem at 100% 82%, rgb(255 255 255 / 0.95) 30%, rgb(255 255 255 / 0) 72%),
    radial-gradient(24rem 9rem at 0% 90%, rgb(255 255 255 / 0.9) 30%, rgb(255 255 255 / 0) 72%),
    radial-gradient(46rem 26rem at 50% -12%, rgb(255 170 120 / 0.2), transparent 70%),
    linear-gradient(180deg, #cfe3ff 0%, #e4efff 38%, #f3f7ff 100%);
  --stars-opacity: 0;

  --shadow-xs: 0 1px 2px rgb(20 50 110 / 0.06);
  --shadow-sm: 0 6px 18px rgb(20 50 110 / 0.08), 0 1px 3px rgb(20 50 110 / 0.05);
  --shadow-md: 0 18px 44px rgb(20 50 110 / 0.14), 0 2px 6px rgb(20 50 110 / 0.06);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  /* Motion: one named set, used everywhere. Tap-driven UI never overshoots (no bounce). */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-press: 100ms; /* feedback on pointer-down */
  --dur: 200ms; /* hover, color, small state changes */
  --dur-panel: 320ms; /* menus, chat, banners, answers appearing */
  --rise: 8px; /* how far a panel travels while appearing */
}

/* Dark theme: system preference unless the visitor chose light; or chosen explicitly.
   (Two copies of the same block: CSS has no way to share it between the selectors.) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0908;
    --surface: #161311;
    --surface-sunken: #100e0d;
    --text: #cbc5c0;
    --text-strong: #f7f4f1;
    --text-muted: #9d968f;
    --text-faint: #736c66;
    --border: rgb(255 238 222 / 0.08);
    --border-strong: rgb(255 238 222 / 0.15);
    --accent: #ff8a4c;
    --accent-text: #ff9f6b;
    --accent-soft: rgb(255 138 76 / 0.14);
    --accent-solid: #ff7a2e;
    --accent-solid-hover: #ff8a3d;
    --on-accent: #1c0b02;
    --focus: #ffb48a;
    --success: #3fbf6b;
    --success-soft: rgb(63 191 107 / 0.14);
    --error: #f0625d;
    --error-soft: rgb(240 98 93 / 0.14);
    --warning: #f5b544;
    --warning-soft: rgb(245 181 68 / 0.12);
    --warning-border: rgb(245 181 68 / 0.38);
    --gold: #ffc15e;
    --btn-primary-bg: linear-gradient(180deg, #ffb584 0%, #ff7a2e 100%);
    --btn-primary-glow: 0 12px 36px -8px rgb(255 110 40 / 0.75);
    --title-accent: #ffab7a;
    --card-bg: linear-gradient(180deg, rgb(255 255 255 / 0.055) 0%, rgb(255 255 255 / 0.018) 100%);
    --card-border: rgb(255 238 222 / 0.08);
    --card-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.6);
    --card-highlight: inset 0 1px 0 rgb(255 255 255 / 0.06);
    --input-bg: rgb(255 255 255 / 0.04);
    --chip-bg: rgb(255 255 255 / 0.05);
    --glass-bg: rgb(24 21 19 / 0.64);
    --glass-bg-dense: rgb(17 15 14 / 0.95);
    --glass-bg-control: rgb(255 255 255 / 0.05);
    --glass-border: rgb(255 238 222 / 0.1);
    --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 0.07);
    --backdrop:
      radial-gradient(56rem 38rem at 6% -8%, rgb(235 80 23 / 0.16), transparent 62%),
      radial-gradient(44rem 32rem at 96% 2%, rgb(255 140 70 / 0.09), transparent 62%),
      radial-gradient(40rem 26rem at 50% -14%, rgb(255 120 60 / 0.12), transparent 70%),
      radial-gradient(52rem 40rem at 104% 100%, rgb(173 51 7 / 0.14), transparent 62%),
      linear-gradient(180deg, #0e0c0b 0%, #09090b 45%, #070708 100%);
    --stars-opacity: 1;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.35);
    --shadow-sm: 0 6px 16px rgb(0 0 0 / 0.35), 0 1px 3px rgb(0 0 0 / 0.3);
    --shadow-md: 0 18px 44px rgb(0 0 0 / 0.5), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0908;
  --surface: #161311;
  --surface-sunken: #100e0d;
  --text: #cbc5c0;
  --text-strong: #f7f4f1;
  --text-muted: #9d968f;
  --text-faint: #736c66;
  --border: rgb(255 238 222 / 0.08);
  --border-strong: rgb(255 238 222 / 0.15);
  --accent: #ff8a4c;
  --accent-text: #ff9f6b;
  --accent-soft: rgb(255 138 76 / 0.14);
  --accent-solid: #ff7a2e;
  --accent-solid-hover: #ff8a3d;
  --on-accent: #1c0b02;
  --focus: #ffb48a;
  --success: #3fbf6b;
  --success-soft: rgb(63 191 107 / 0.14);
  --error: #f0625d;
  --error-soft: rgb(240 98 93 / 0.14);
  --warning: #f5b544;
  --warning-soft: rgb(245 181 68 / 0.12);
  --warning-border: rgb(245 181 68 / 0.38);
  --gold: #ffc15e;
  --btn-primary-bg: linear-gradient(180deg, #ffb584 0%, #ff7a2e 100%);
  --btn-primary-glow: 0 12px 36px -8px rgb(255 110 40 / 0.75);
  --title-accent: #ffab7a;
  --card-bg: linear-gradient(180deg, rgb(255 255 255 / 0.055) 0%, rgb(255 255 255 / 0.018) 100%);
  --card-border: rgb(255 238 222 / 0.08);
  --card-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.6);
  --card-highlight: inset 0 1px 0 rgb(255 255 255 / 0.06);
  --input-bg: rgb(255 255 255 / 0.04);
  --chip-bg: rgb(255 255 255 / 0.05);
  --glass-bg: rgb(24 21 19 / 0.64);
  --glass-bg-dense: rgb(17 15 14 / 0.95);
  --glass-bg-control: rgb(255 255 255 / 0.05);
  --glass-border: rgb(255 238 222 / 0.1);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 0.07);
  --backdrop:
    radial-gradient(56rem 38rem at 6% -8%, rgb(235 80 23 / 0.16), transparent 62%),
    radial-gradient(44rem 32rem at 96% 2%, rgb(255 140 70 / 0.09), transparent 62%),
    radial-gradient(40rem 26rem at 50% -14%, rgb(255 120 60 / 0.12), transparent 70%),
    radial-gradient(52rem 40rem at 104% 100%, rgb(173 51 7 / 0.14), transparent 62%),
    linear-gradient(180deg, #0e0c0b 0%, #09090b 45%, #070708 100%);
  --stars-opacity: 1;
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.35);
  --shadow-sm: 0 6px 16px rgb(0 0 0 / 0.35), 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-md: 0 18px 44px rgb(0 0 0 / 0.5), 0 2px 6px rgb(0 0 0 / 0.3);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* The backdrop: glows or clouds, then (dark theme only) a field of faint stars.
   Gradients, not images or filters: cheap on weak phones. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: var(--backdrop);
}

body::after {
  z-index: -1;
  opacity: var(--stars-opacity);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1px 1px at 27% 64%, rgb(255 255 255 / 0.45), transparent),
    radial-gradient(1.5px 1.5px at 41% 32%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 55% 81%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1px 1px at 68% 12%, rgb(255 255 255 / 0.55), transparent),
    radial-gradient(1.5px 1.5px at 79% 47%, rgb(255 255 255 / 0.45), transparent),
    radial-gradient(1px 1px at 91% 73%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 6% 88%, rgb(255 255 255 / 0.4), transparent),
    radial-gradient(1px 1px at 34% 7%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1px 1px at 86% 28%, rgb(255 255 255 / 0.45), transparent);
  background-size: 540px 540px;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 32px, 1136px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 14px;
}

.accent {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

/* ---------- Glass ---------- */

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: var(--glass-highlight), var(--shadow-sm);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  }
}

/* The material stays, it just becomes opaque. */
@media (prefers-reduced-transparency: reduce) {
  .glass,
  .btn--glass {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .glass,
  .btn--glass {
    background: var(--surface);
    border-color: var(--text-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- Header + menu ---------- */

.header {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin-top: 12px;
  border-radius: var(--radius-full);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Scroll edge: content passes under the header, so its glass gets denser and lifts a little. */
.header[data-scrolled].glass {
  background: var(--glass-bg-dense);
  border-color: var(--border-strong);
  box-shadow: var(--glass-highlight), var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 7px 7px 7px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgb(255 122 60 / 0.45));
}

/* Desktop: the sections sit in their own capsule in the middle of the header */
.nav {
  display: none;
  gap: 2px;
  margin-inline: auto;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-control);
  border: 1px solid var(--border);
}

.nav a,
.menu__nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav a:hover,
.menu__nav a:hover {
  color: var(--text-strong);
  background: var(--glass-bg-control);
  text-decoration: none;
}

.nav a[aria-current="page"],
.menu__nav a[aria-current="page"] {
  color: var(--text-strong);
  background: var(--chip-bg);
  box-shadow: var(--card-highlight), 0 0 0 1px var(--border);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* .header__actions prefix: must beat .btn / .lang-switch, which come later */
.header__actions .header__check,
.header__actions .lang-switch {
  display: none;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-control);
  border: 1px solid var(--border);
}

.lang-switch a {
  min-width: 40px;
  padding: 6px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.lang-switch a:hover {
  color: var(--text-strong);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-xs);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--text-strong);
  background: var(--glass-bg-control);
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Outside .header on purpose: a backdrop-filter inside another one can't blur the page. */
.menu {
  position: fixed;
  top: 84px;
  left: 16px;
  right: 16px;
  z-index: 29;
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--radius-lg);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu.glass {
    background: var(--glass-bg-dense);
  }
}

.menu__nav {
  display: grid;
  gap: 2px;
}

.menu__nav a {
  padding: 12px;
  font-size: 16px;
}

.menu__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--btn-primary-glow);
}

.btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--btn-primary-glow),
    0 0 0 4px var(--accent-soft);
}

/* Secondary action that should still catch the eye (hero): an orange tint, not a solid fill. */
.btn--tint {
  background: var(--accent-soft);
  border-color: rgb(255 122 60 / 0.5);
  color: var(--text-strong);
  box-shadow: var(--card-highlight);
}

.btn--tint:hover {
  border-color: var(--accent);
  box-shadow: var(--card-highlight), 0 0 0 4px var(--accent-soft);
}

/* A translucent control, not a second glass layer: it usually sits inside glass chrome or a card,
   and glass can't sample glass (the result is mud, and a second blur costs weak phones). */
.btn--glass {
  background: var(--glass-bg-control);
  border-color: var(--border-strong);
  color: var(--text-strong);
  box-shadow: var(--glass-highlight);
}

.btn--glass:hover {
  border-color: var(--text-faint);
  background: var(--chip-bg);
}

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--glass-bg-control);
  box-shadow: var(--glass-highlight);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.pill .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- Hero: centered text ---------- */

.hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 56px 0 32px;
  text-align: center;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  max-width: 900px;
  font-size: 40px;
  line-height: 1.08;
}

.hero h1 .accent {
  display: block;
  color: var(--title-accent);
}

.hero__subtitle {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(100%, 440px);
  margin-top: 8px;
}

/* side by side whenever both fit; stacked only on the narrowest phones */
.hero__actions .btn {
  flex: 1 1 150px;
  padding: 0 14px;
  font-size: 16px;
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.stat {
  display: grid;
  align-content: start;
  gap: 6px;
}

.stat__value {
  display: block;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  max-width: 18ch;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* round icon badge, used by the contact and order info cards */
.stat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.section__head p {
  margin-top: 6px;
  color: var(--text-muted);
}

.section__head--center {
  justify-content: center;
  text-align: center;
}

.section__title--center {
  text-align: center;
}

/* Cards that sit on the page (not chrome): packages, features, FAQ, reviews... */
.surface {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-highlight), var(--card-shadow);
}

/* ---------- Feature cards with small illustrations ---------- */

.feature-cards {
  display: grid;
  gap: 14px;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 14px 20px;
}

.feature-card h3 {
  padding: 0 6px;
}

.feature-card p {
  padding: 0 6px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* the illustration area at the top of a card */
.art {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  height: 148px;
  margin-bottom: 8px;
  padding: 16px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    radial-gradient(60% 70% at 50% 40%, var(--accent-soft), transparent 70%),
    var(--chip-bg);
  border: 1px solid var(--card-border);
}

.art__ring {
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.art__ring--2 {
  width: 172px;
  height: 172px;
  opacity: 0.6;
}

.art__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--card-bg), var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-highlight), 0 0 32px -4px rgb(255 122 60 / 0.45);
  color: var(--accent);
}

.art__icon .icon {
  width: 28px;
  height: 28px;
}

.art__chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.art__chip .icon {
  width: 16px;
  height: 16px;
}

.art__chip--tl {
  top: 18px;
  left: 20%;
}

.art__chip--br {
  right: 20%;
  bottom: 18px;
}

/* mock interface pieces inside the illustrations */
.mock {
  display: grid;
  gap: 8px;
  width: min(100%, 250px);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.mock--faint {
  width: min(88%, 220px);
  opacity: 0.55;
}

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mock__row span + span {
  color: var(--text-muted);
  font-weight: 500;
}

.mock__bar {
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--border);
}

.mock__bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--btn-primary-bg);
  box-shadow: 0 0 12px rgb(255 122 60 / 0.6);
}

.mock__line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock__line > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}

.mock__line small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.mock__badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mock__badge .icon,
.mock__ok .icon {
  width: 16px;
  height: 16px;
}

.mock__ok {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.mock__input {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
  font-size: 13px;
}

.mock__input b {
  color: var(--text-faint);
  font-weight: 600;
}

.mock__caret {
  width: 2px;
  height: 16px;
  margin-left: 2px;
  background: var(--accent);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* ---------- Stars packages & Premium plans ---------- */

.packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pkg {
  position: relative;
  display: grid;
  color: inherit;
  cursor: pointer;
}

.pkg:hover {
  text-decoration: none;
}

.pkg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pkg__card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 100%;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-highlight), var(--card-shadow);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.pkg:hover .pkg__card {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.pkg--popular .pkg__card {
  border-color: rgb(255 122 46 / 0.6);
  box-shadow: var(--card-highlight), var(--card-shadow), 0 18px 40px -22px rgb(255 110 40 / 0.6);
}

.pkg__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 6px;
}

.pkg__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgb(255 138 76 / 0.25);
  color: var(--accent);
  box-shadow: 0 0 22px -6px rgb(255 122 60 / 0.55);
}

.pkg__icon .icon {
  width: 20px;
  height: 20px;
}

.pkg__icon .icon--fill {
  fill: currentColor;
  stroke: none;
}

.pkg__badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pkg__check {
  display: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent-solid);
  color: var(--on-accent);
  stroke-width: 3;
}

.pkg__badge + .pkg__check {
  margin-left: 0;
}

.pkg__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.pkg__unit {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.pkg__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pkg__off {
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.pkg__price s {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 500;
}

.pkg__meta {
  color: var(--text-muted);
  font-size: 13px;
}

/* selected: a solid 2 px ring in the button orange plus a soft halo */
.pkg input:checked + .pkg__card {
  border-color: var(--accent-solid);
  box-shadow: var(--card-highlight), 0 0 0 1px var(--accent-solid), 0 0 0 6px rgb(255 122 46 / 0.22),
    0 18px 44px -18px rgb(255 110 40 / 0.7);
}

.pkg input:checked + .pkg__card .pkg__check {
  display: block;
}

.pkg input:focus-visible + .pkg__card {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.pkg input:disabled + .pkg__card {
  filter: grayscale(1);
  opacity: 0.5;
  cursor: not-allowed;
}

.plan .pkg__amount {
  font-size: 20px;
}

.packages__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-muted);
}

.empty {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Premium: a band of space with a glowing planet (dark in both themes) ---------- */

.space-band {
  --text-strong: #f7f4f1;
  --text-muted: #a8a8b3;
  --btn-primary-bg: linear-gradient(180deg, #ffb584 0%, #ff7a2e 100%);
  --on-accent: #1c0b02;
  --btn-primary-glow: 0 12px 36px -8px rgb(255 110 40 / 0.75);
  --accent-soft: rgb(255 138 76 / 0.14);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 44px 20px 120px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgb(255 255 255 / 0.1);
  background:
    radial-gradient(1px 1px at 14% 22%, rgb(255 255 255 / 0.8), transparent),
    radial-gradient(1px 1px at 31% 58%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1px 1px at 86% 44%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1px 1px at 58% 34%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 8% 64%, rgb(255 255 255 / 0.45), transparent),
    radial-gradient(40rem 20rem at 50% 0%, rgb(235 80 23 / 0.16), transparent 70%),
    linear-gradient(180deg, #131110 0%, #09090b 100%);
  color: var(--text-muted);
  text-align: center;
}

.space-band h2 {
  color: var(--text-strong);
}

.space-band p {
  max-width: 460px;
}

.space-band .btn {
  margin-top: 6px;
}

.space-band__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 200 170 / 0.3);
  box-shadow: 0 0 40px -6px rgb(255 122 60 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.12);
  color: #ffb48a;
}

.space-band__icon .icon {
  width: 30px;
  height: 30px;
}

/* The planet: a huge circle whose top edge is the glowing horizon. */
.space-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(100% - 84px);
  width: max(900px, 150%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #1e1814 0%, #0e0c0b 34%, #09090b 60%);
  box-shadow:
    0 0 0 1px rgb(255 205 175 / 0.55),
    0 -8px 30px rgb(255 150 95 / 0.45),
    0 -26px 90px rgb(255 110 50 / 0.35),
    0 -40px 140px rgb(235 80 23 / 0.22);
}

/* ---------- How it works: a numbered timeline, not cards (the order is the information) ---------- */

.steps {
  display: grid;
  max-width: 640px;
  margin-inline: auto;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  align-content: start;
  padding-bottom: 28px;
}

.step:last-child {
  padding-bottom: 0;
}

/* the line that joins the numbers */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 8px;
  left: 15px;
  width: 1px;
  background: var(--border-strong);
}

.step__num {
  grid-row: span 2;
  color: var(--accent-text);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  padding-top: 4px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.faq details {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-highlight), var(--card-shadow);
  transition: border-color var(--dur) var(--ease);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 14px 14px 20px;
  color: var(--text-strong);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

/* the chevron sits in a small square button, as in the reference */
.faq summary .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Inner pages ---------- */

.page {
  padding: 40px 0 24px;
}

.page__head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.page__head p {
  color: var(--text-muted);
  font-size: 17px;
}

.card {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.checkout {
  display: grid;
  gap: 24px;
}

.checkout > * {
  min-width: 0;
}

.banner,
.notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--warning-border);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.banner .icon,
.notice .icon {
  margin-top: 1px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
}

.field__hint {
  color: var(--text-muted);
  font-size: 13px;
}

.field__hint[data-state="error"] {
  color: var(--error);
}

.input-wrap {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-wrap[data-state="error"] {
  border-color: var(--error);
}

.input-wrap__prefix {
  padding-left: 16px;
  color: var(--text-faint);
  font-weight: 500;
}

.input {
  flex: 1;
  /* width in %: an input's intrinsic ~20ch width no longer stretches the card on phones */
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 17px; /* >= 16px: iOS doesn't zoom in */
  outline: none;
}

.input-wrap__prefix + .input {
  padding-left: 2px;
}

.input::placeholder {
  color: var(--text-faint);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.status-line[data-state="error"] {
  color: var(--error);
}

.status-line[data-state="ok"] {
  color: var(--text-strong);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-sunken);
}

.avatar--letter {
  display: inline-grid;
  place-items: center;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
}

.check {
  color: var(--success);
}

.promo {
  display: flex;
  gap: 8px;
}

.promo .input-wrap {
  flex: 1;
  min-width: 0;
  min-height: 48px;
}

.promo .input {
  height: 46px;
  text-transform: uppercase;
}

.promo .btn {
  flex-shrink: 0;
  min-height: 50px;
}

.checkout-bar {
  display: grid;
  gap: 16px;
}

.total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Phones: the total and the pay button float at the bottom of the screen while the form scrolls
   (a functional layer over content: the one place in the form where glass belongs). */
@media (max-width: 599px) {
  .checkout-bar {
    position: sticky;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 5;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-inline: -8px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--glass-bg-dense);
    box-shadow: var(--glass-highlight), var(--shadow-md);
  }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .checkout-bar {
      background: var(--glass-bg);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
      backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    }
  }

  .checkout-bar .total {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
  }

  .checkout-bar .total__label {
    font-size: 12px;
  }

  .checkout-bar .total__amount {
    font-size: 20px;
  }

  .checkout-bar .btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  /* keep the chat button clear of the bar */
  body:has(.checkout-bar) .chat__fab {
    bottom: 96px;
  }

  /* while the consent banner is open it owns the bottom of the screen */
  body:has(.cookie-banner:not([hidden])) .chat__fab {
    opacity: 0;
    pointer-events: none;
  }
}

.total__label {
  color: var(--text-muted);
  font-size: 14px;
}

.total__value {
  display: grid;
  justify-items: end;
}

.total__amount {
  color: var(--text-strong);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.total__old {
  color: var(--text-faint);
  font-size: 14px;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--error-soft);
  color: var(--error);
  font-size: 14px;
}

.consent {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.turnstile:empty {
  display: none;
}

/* Reviews */
.rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.rating__count {
  display: block;
  margin-top: 2px;
}

.rating__value {
  color: var(--text-strong);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.stars .icon {
  width: 18px;
  height: 18px;
}

/* Review on the order page */
.review-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.review-card h2 {
  font-size: 20px;
}

.review-card__text {
  white-space: pre-wrap;
}

.review-form {
  display: grid;
  gap: 14px;
}

/* 5 radio buttons drawn as stars. DOM order 5..1 shown as 1..5 (row-reverse), so
   "checked ~ label" and "hover ~ label" light up the chosen star and the ones before it. */
.rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rate label {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--border-strong);
  cursor: pointer;
  transition: color var(--dur) var(--ease), transform var(--dur-press) var(--ease);
}

.rate label .icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: none;
}

.rate input:checked ~ label,
.rate label:hover,
.rate label:hover ~ label {
  color: var(--gold);
}

.rate label:active {
  transform: scale(0.9);
}

.rate input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  color: var(--text-strong);
  font: inherit;
  font-size: 16px; /* >= 16px: iOS doesn't zoom in */
  line-height: 1.5;
  resize: vertical;
}

.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.textarea::placeholder {
  color: var(--text-faint);
}

.stars .icon--off {
  color: var(--border-strong);
}

.review-list {
  display: grid;
  gap: 12px;
}

.review {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-highlight), var(--card-shadow);
}

.review__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.review__author {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
}

.review p {
  line-height: 1.6;
}

/* Contacts + check order */
.info-cards {
  display: grid;
  gap: 12px;
}

.info-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-highlight), var(--card-shadow);
}

.info-card h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.info-card p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.info-card .stat__icon {
  width: 40px;
  height: 40px;
}

.requisites-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 8px 0 0;
  font-size: 14px;
}

.requisites-list dt {
  color: var(--text-muted);
}

.requisites-list dd {
  margin: 0;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.search-form {
  display: grid;
  gap: 12px;
}

/* ---------- Order page ---------- */

.order {
  display: grid;
  gap: 16px;
  padding: 32px 0 24px;
}

.order__head {
  display: grid;
  gap: 4px;
}

.order__code {
  color: var(--text-muted);
  font-size: 14px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.stepper li::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.stepper li:first-child::before {
  display: none;
}

.stepper__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}

.stepper__dot .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
  opacity: 0;
}

.stepper li[data-state="done"],
.stepper li[data-state="current"] {
  color: var(--text-strong);
}

.stepper li[data-state="done"]::before,
.stepper li[data-state="current"]::before {
  background: var(--accent);
}

.stepper li[data-state="done"] .stepper__dot {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: var(--on-accent);
}

.stepper li[data-state="done"] .stepper__dot .icon {
  opacity: 1;
}

.stepper li[data-state="current"] .stepper__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.status-text {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text-strong);
  font-size: 15px;
}

.status-text[data-tone="ok"] {
  background: var(--success-soft);
  color: var(--success);
}

.status-text[data-tone="warn"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.pay {
  display: grid;
  gap: 16px;
}

.pay__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pay__timer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pay__timer strong {
  color: var(--text-strong);
}

.pay__qr {
  display: none;
  gap: 8px;
  justify-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.qr {
  width: 184px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff; /* QR stays dark-on-white in both themes */
  border: 1px solid var(--border);
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.requisites {
  display: grid;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
}

.requisites > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  padding: 12px 8px 12px 14px;
}

.requisites > div + div {
  border-top: 1px solid var(--border);
}

.requisites dt {
  grid-column: 1;
  color: var(--text-muted);
  font-size: 12px;
}

.requisites dd {
  grid-column: 1;
  margin: 0;
  color: var(--text-strong);
  font-weight: 500;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.requisites .copy-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.copy-btn:hover {
  background: var(--accent-soft);
}

.copy-btn .icon {
  width: 16px;
  height: 16px;
}

.save-link {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.save-link strong {
  color: var(--text-strong);
}

.save-link .btn {
  margin-top: 8px;
}

.tx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.tx-link .icon {
  width: 16px;
  height: 16px;
}

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

.doc {
  display: grid;
  gap: 16px;
  padding: 40px 0;
}

.doc dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}

.doc dt {
  color: var(--text-muted);
}

.doc dd {
  margin: 0;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

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

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text-muted);
  font-size: 14px;
}

.footer__grid {
  display: grid;
  gap: 28px;
  padding: 40px 0 32px;
}

.footer__brand p {
  max-width: 320px;
  margin-top: 12px;
  line-height: 1.55;
}

.footer__title {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

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

.footer__links a {
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text-strong);
}

.footer__support p {
  margin-bottom: 14px;
  line-height: 1.55;
}

.footer__bottom {
  display: grid;
  gap: 6px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Support chat ---------- */

.chat {
  display: none; /* needs JavaScript */
}

.js .chat {
  display: block;
}

.chat__fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--btn-primary-glow);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.chat__fab:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.chat__fab .icon {
  width: 24px;
  height: 24px;
}

.chat__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--on-accent);
  box-shadow: 0 0 0 2px var(--accent-solid);
}

.chat__panel {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chat__panel.glass {
    background: var(--glass-bg-dense);
  }
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 16px;
  border-bottom: 1px solid var(--border);
}

.chat__head h2 {
  font-size: 16px;
  letter-spacing: 0;
}

.chat__head p {
  color: var(--text-muted);
  font-size: 13px;
}

.chat__head .icon-btn {
  margin-left: auto;
}

.chat__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat__note {
  align-self: center;
  max-width: 92%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.chat__msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat__msg--visitor {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--accent-solid);
  color: var(--on-accent);
}

.chat__msg--support {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.chat__time {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.72;
  text-align: right;
}

.chat__turnstile {
  padding: 0 16px;
}

.chat__error {
  margin: 0 16px 8px;
  color: var(--error);
  font-size: 13px;
}

.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat__input {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
  font-size: 16px; /* >= 16px: iOS doesn't zoom in */
  line-height: 1.35;
  resize: none;
  outline: none;
}

.chat__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chat__send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  cursor: pointer;
}

.chat__send:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Phones: the chat takes the whole screen; the page behind doesn't scroll. */
@media (max-width: 599px) {
  .chat-open body {
    overflow: hidden;
  }
}

@media (min-width: 600px) {
  .chat__panel {
    inset: auto 16px 84px auto;
    width: 380px;
    height: min(560px, calc(100dvh - 120px));
    border-radius: var(--radius-xl);
  }
}

/* ---------- Motion ----------
   One set of tokens (see :root). Tap-driven UI is critically damped: no bounce, ~0.2-0.3 s.
   Feedback starts on pointer-down. Everything is readable at rest: nothing waits hidden for a
   scroll observer. Panels animate in each time they go from hidden to shown. */

.btn:active:not(:disabled),
.icon-btn:active,
.chat__fab:active {
  transform: scale(0.97);
  transition-duration: var(--dur-press);
}

.pkg:active .pkg__card {
  transform: scale(0.985);
  transition-duration: var(--dur-press);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(var(--rise)) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

.menu:not([hidden]),
.chat__panel:not([hidden]),
.cookie-banner:not([hidden]) {
  animation: rise-in var(--dur-panel) var(--ease);
}

.faq details[open] p {
  animation: fade-in var(--dur-panel) var(--ease);
}

.pkg input:checked + .pkg__card .pkg__check {
  animation: pop-in var(--dur) var(--ease);
}

/* Reduce Motion: substitute, don't remove. Movement turns into a short crossfade. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --rise: 0px;
    --dur-panel: 150ms;
  }

  html {
    scroll-behavior: auto;
  }

  .btn:active:not(:disabled),
  .icon-btn:active,
  .chat__fab:active,
  .chat__fab:hover,
  .pkg:active .pkg__card,
  .pkg:hover .pkg__card {
    transform: none;
  }

  @keyframes pop-in {
    from {
      opacity: 0;
    }
  }

  .mock__caret {
    animation: none;
  }

  .spinner {
    animation: none;
    border-top-color: color-mix(in srgb, currentColor 35%, transparent);
  }
}

/* ---------- Larger screens ---------- */

@media (min-width: 600px) {
  .card {
    padding: 28px;
  }

  .packages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .pkg__card {
    padding: 18px;
  }

  .stats {
    padding: 26px 32px;
  }

  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 48px;
  }

  .space-band {
    padding: 56px 32px 150px;
  }

  .pay__qr {
    display: grid;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-cards--two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    padding: 88px 0 48px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
    margin-inline: auto;
  }

  .section {
    padding: 72px 0;
  }

  .feature-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: none;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }

  .step__num {
    grid-row: auto;
    font-size: 36px;
  }

  /* on wide screens the line runs across, from each number towards the next */
  .step:not(:last-child)::after {
    top: 18px;
    bottom: auto;
    left: 64px;
    right: -12px;
    width: auto;
    height: 1px;
  }

  .faq--columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1100px) {
  .nav,
  .header__actions .header__check,
  .header__actions .lang-switch {
    display: flex;
  }

  .nav + .header__actions {
    margin-left: 0;
  }

  .menu-toggle,
  .menu {
    display: none !important;
  }
}

/* Consent stays readable over either theme, with equal-sized choices on phones. */
/* Consent banner: a compact floating sheet, never covering the page's main button. */
.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 10px;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.cookie-banner h2 {
  font-size: 15px;
  letter-spacing: 0;
}

.cookie-banner p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
}

.cookie-banner__actions .btn {
  flex: 1 1 0;
  min-width: 0;
}
