/* Fallback fonts с метриками для предотвращения CLS при загрузке веб-шрифтов */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 106%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 98%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* Кастомный чекбокс для подписки */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #fff;
  border: 1.5px solid #bbb;
  transition: border-color 120ms;
  cursor: pointer !important;
  position: relative;
}

.custom-checkbox:hover .custom-checkbox-box,
.custom-checkbox-box:hover {
  border-color: #3a7;
}

.custom-checkbox:hover .custom-checkbox-box svg rect,
.custom-checkbox-box:hover svg rect {
  stroke: #3a7;
}

.custom-checkbox input[type="checkbox"]:focus + .custom-checkbox-box {
  border-color: #3a7;
  box-shadow: 0 0 0 2px rgba(51, 170, 119, 0.18);
}

.custom-checkbox input[type="checkbox"]:focus + .custom-checkbox-box svg rect {
  stroke: #3a7;
}

.custom-checkbox input[type="checkbox"]:checked + .custom-checkbox-box svg path:last-child {
  opacity: 1 !important;
  transition: opacity 120ms;
}

.custom-checkbox input[type="checkbox"] + .custom-checkbox-box svg path:last-child {
  opacity: 0 !important;
  transition: opacity 120ms;
}

.btn-error {
  background: var(--snack-error-bg) !important;
  border-color: var(--snack-error-border) !important;
  color: #b00 !important;
}

:root {
  color-scheme: light;
  --default-accent-rgb: 40, 117, 255;
  --default-accent-2-rgb: 24, 91, 232;
  --container: 1040px;
  --pad: 24px;
  --radius: 18px;
  --accent: rgba(40, 117, 255, 1);
  --accent-2: rgba(24, 91, 232, 1);
  --accent-rgb: 40, 117, 255;
  --accent-2-rgb: 24, 91, 232;
  --bg-accent-rgb: var(--accent-rgb);
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.16);
  --bg-glass: rgba(255, 255, 255, 0.74);
  --bg-glass-hover: rgba(255, 255, 255, 0.84);
  --bg-topbar: rgba(255, 255, 255, 0.30);
  --text: rgba(0, 0, 0, 0.92);
  --text-muted: rgba(0, 0, 0, 0.66);

  /* Snackbar variants (requested: burgundy for errors, lime for success) */
  --snack-success-bg: rgba(140, 255, 140, 0.22);
  --snack-success-border: rgba(70, 180, 70, 0.35);
  --snack-error-bg: rgba(120, 0, 30, 0.14);
  --snack-error-border: rgba(120, 0, 30, 0.38);
}

* { box-sizing: border-box; }

/* Prevent horizontal scroll - rely on max-width instead of overflow-x: clip to avoid clipping Kaonashi */
body {
  margin: 0;
  font-family: Inter, 'Inter Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text);
  min-height: 100vh;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(980px 680px at 86% -10%, rgba(var(--bg-accent-rgb), 0.20), rgba(255, 255, 255, 0) 62%),
    radial-gradient(980px 680px at 18% 0%, rgba(228, 232, 255, 0.58), rgba(255, 255, 255, 0) 62%),
    radial-gradient(860px 620px at 12% 92%, rgba(206, 238, 255, 0.40), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(242, 246, 255, 1) 0%, rgba(255, 255, 255, 1) 56%, rgba(245, 248, 255, 1) 100%);
}

/* Homepage background + tokens (scoped) */
body.page-home {
  /* Homepage accent: silver/grey (overrides global blue accent) */
  --accent: rgba(155, 163, 175, 1);
  --accent-2: rgba(214, 220, 228, 1);
  --accent-rgb: 155, 163, 175;
  --accent-2-rgb: 214, 220, 228;
  /* Keep homepage accents, but align the page background with the rest of the site */
  --bg-accent-rgb: var(--default-accent-rgb);
  --lp-green: var(--accent);
  --lp-green-2: var(--accent-2);
  --lp-mint: rgba(226, 247, 240, 1);
  --lp-ink: rgba(0, 0, 0, 0.88);
  --lp-ink-muted: rgba(0, 0, 0, 0.58);
  /* Homepage typography overrides */
  --home-heading-font: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Requested: homepage headings 700 / 24px */
  --home-heading-weight: 700;
  --home-heading-tracking: 0em;
  --home-heading-line: 1.25;
  --home-h1-size: 24px;
  --home-h2-size: 24px;

  /* Slightly richer mesh background, aligned with the rest of the site */
  background:
    radial-gradient(760px 560px at 78% 14%, rgba(var(--default-accent-2-rgb), 0.10), rgba(255, 255, 255, 0) 62%),
    radial-gradient(820px 600px at 28% 82%, rgba(var(--default-accent-rgb), 0.10), rgba(255, 255, 255, 0) 62%),
    radial-gradient(980px 680px at 86% -10%, rgba(var(--bg-accent-rgb), 0.20), rgba(255, 255, 255, 0) 62%),
    radial-gradient(980px 680px at 18% 0%, rgba(228, 232, 255, 0.58), rgba(255, 255, 255, 0) 62%),
    radial-gradient(860px 620px at 12% 92%, rgba(206, 238, 255, 0.40), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(242, 246, 255, 1) 0%, rgba(255, 255, 255, 1) 56%, rgba(245, 248, 255, 1) 100%);
}

/* Homepage: ensure all headings use Manrope */
body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4,
body.page-home h5,
body.page-home h6 {
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
}

/* Comic theme (original; no direct imitation of any specific copyrighted work) */
body.theme-comic {
  /* Use existing tokens, but push contrast toward ink-on-paper. */
  --border: rgba(0, 0, 0, 0.16);
  --border-strong: rgba(0, 0, 0, 0.78);
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-glass-hover: rgba(255, 255, 255, 0.92);
  --bg-topbar: rgba(255, 255, 255, 0.72);
  --text: rgba(0, 0, 0, 0.92);
  --text-muted: rgba(0, 0, 0, 0.66);

  background:
    radial-gradient(760px 560px at 78% 14%, rgba(var(--default-accent-2-rgb), 0.08), rgba(255, 255, 255, 0) 62%),
    radial-gradient(820px 600px at 28% 82%, rgba(var(--default-accent-rgb), 0.08), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(248, 249, 252, 1) 0%, rgba(255, 255, 255, 1) 56%, rgba(250, 250, 252, 1) 100%);
}

/* Paper texture + halftone dots overlay (visual only). */
body.theme-comic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, rgba(255, 255, 255, 0) 1px),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 10px);
  background-size: 12px 12px, 24px 24px;
  background-position: 0 0, 0 0;
}

/* Prevent horizontal "wiggle" caused by crooked outlines/negative insets. */
html,
body {
  overflow-x: clip !important;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden !important;
  }
}

body.theme-comic .site-topbar,
body.theme-comic main {
  position: relative;
  z-index: 1;
}

/* Inked outlines: cards, feature cards, pricing cards */
body.theme-comic .card,
body.theme-comic .lp-feature-card,
body.theme-comic .pricing-card {
  border-color: var(--border-strong);
}

body.theme-comic .card {
  border-width: 3px;
  background: var(--bg-glass);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.55),
    0 22px 60px rgba(0, 0, 0, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.06);
}

/* Buttons: chunky comic pill */
body.theme-comic .btn,
body.theme-comic .pricing-cta-pill,
body.theme-comic .pricing-info-btn {
  border-color: var(--border-strong);
  border-width: 2px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(0, 0, 0, 0.92);
}

@media (hover: hover) and (pointer: fine) {
  body.theme-comic .btn:hover,
  body.theme-comic .pricing-cta-pill:hover,
  body.theme-comic .pricing-info-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px)
      rotate(calc(var(--comic-ui-rot, 0deg) + var(--comic-hover-delta, -0.55deg)))
      skewX(calc(var(--comic-text-skew, -10deg) + var(--comic-hover-skew, 0deg)));
  }
}

/* Section titles as speech bubbles */
body.theme-comic .lp-section-title {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
}

body.theme-comic .lp-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-20%) rotate(10deg);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 12px 0 12px;
  border-color: rgba(0, 0, 0, 0.78) transparent transparent transparent;
}

body.theme-comic .lp-section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-20%) rotate(10deg);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 10px 0 10px;
  border-color: rgba(255, 255, 255, 0.92) transparent transparent transparent;
}

/* Topbar/menu: make it feel hand-drawn (homepage only). */
body.theme-comic .site-nav-link {
  position: relative;
  padding: 8px 10px;
  border-radius: 12px;
  background-image: none !important;
}

/* Global comic mode (applies site-wide once body has .theme-comic). */
body.theme-comic {
  /* Typography: push into comic lettering (stronger than before). */
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  letter-spacing: 0.01em;

  /* Requested: make ALL letters visibly slanted. */
  --comic-text-slant-angle: 12deg;
  font-style: oblique var(--comic-text-slant-angle);

  /* Stronger crooked UI controls (skew + rotate). */
  --comic-text-skew: -10deg;
  --comic-ui-rot-a: -1.35deg;
  --comic-ui-rot-b: 1.05deg;
  --comic-ui-rot-c: -0.85deg;
  --comic-ui-rot-d: 1.2deg;

  /* Hover: per-element crookedness (elements override these via nth-child patterns). */
  --comic-hover-delta: -0.55deg;
  --comic-hover-skew: 0deg;

  /* Menu hover: unify angle (stronger than before). */
  --comic-menu-hover-rot: -2.05deg;

  /* Panels (used on homepage, but keep vars global). */
  --comic-panel-radius: 24px;
  --comic-panel-pad: 22px;
  --comic-panel-border: 3px;
}

/* Keep code blocks readable even in full comic mode. */
body.theme-comic code,
body.theme-comic pre,
body.theme-comic kbd,
body.theme-comic samp {
  font-style: normal;
  letter-spacing: 0;
}

/* Make topbar + navigation obviously "hand-drawn" on every page. */
body.theme-comic .site-nav-link,
body.theme-comic .site-topbar-wrap .site-nav-cta,
body.theme-comic .site-topbar-wrap .site-menu-toggle {
  --comic-ui-rot: var(--comic-ui-rot-c);
  transform: rotate(var(--comic-ui-rot)) skewX(var(--comic-text-skew));
  transform-origin: 50% 50%;
  transition: transform 140ms ease;
  will-change: transform;
}

/* Topbar: tilt the whole bar + draw a crooked separator line. */
body.theme-comic .site-topbar {
  position: relative;
  overflow-y: visible;
  overflow-x: clip;
  border-bottom-color: transparent;
}

@supports not (overflow: clip) {
  body.theme-comic .site-topbar {
    overflow-x: hidden;
  }
}

body.theme-comic .site-topbar-inner {
  transform: rotate(-1.65deg) skewX(-10deg);
  transform-origin: 50% 0;
}

body.theme-comic .site-topbar::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: -10px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(-1.15deg);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.00) 0 8px,
      rgba(255, 255, 255, 0.08) 8px 12px
    ),
    linear-gradient(
      transparent 0 62%,
      rgba(0, 0, 0, 0.84) 62% 72%,
      transparent 72% 100%
    ),
    linear-gradient(
      transparent 0 64%,
      rgba(0, 0, 0, 0.50) 64% 76%,
      transparent 76% 100%
    );
  filter: blur(0.18px);
}

/* When the page is scrolled, the topbar background becomes more opaque.
   In comic mode we paint that background as a slanted "marker fill" so it ends cleanly on the crooked separator line. */
body.theme-comic .site-topbar-wrap[data-topbar="scrolled"] .site-topbar {
  background: transparent;
}

body.theme-comic .site-topbar-wrap[data-topbar="scrolled"] .site-topbar::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: -14px;
  bottom: -14px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.94;
  transform: rotate(-1.15deg);
  transform-origin: 50% 50%;
  border-radius: 28px;
  background:
    radial-gradient(520px circle at 16% 18%, rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 12% 30%, rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0) 22%),
    radial-gradient(circle at 28% 62%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 24%),
    radial-gradient(circle at 46% 22%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 18%),
    radial-gradient(circle at 64% 54%, rgba(0, 0, 0, 0.055), rgba(0, 0, 0, 0) 22%),
    radial-gradient(circle at 82% 28%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 20%),
    radial-gradient(circle at 86% 74%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 24%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.30);
}

body.theme-comic .site-topbar-wrap[data-topbar="scrolled"] .site-topbar > * {
  position: relative;
  z-index: 2;
}

body.theme-comic .site-nav-link:nth-child(4n + 1) { --comic-ui-rot: var(--comic-ui-rot-a); }
body.theme-comic .site-nav-link:nth-child(4n + 2) { --comic-ui-rot: var(--comic-ui-rot-b); --comic-text-skew: 9deg; }
body.theme-comic .site-nav-link:nth-child(4n + 3) { --comic-ui-rot: var(--comic-ui-rot-c); }
body.theme-comic .site-nav-link:nth-child(4n + 4) { --comic-ui-rot: var(--comic-ui-rot-d); --comic-text-skew: -11deg; }

/* Menu hover: each link gets its own extra tilt/skew. */
body.theme-comic .site-nav-link:nth-child(4n + 1) { --comic-hover-delta: -0.35deg; --comic-hover-skew: 1deg; }
body.theme-comic .site-nav-link:nth-child(4n + 2) { --comic-hover-delta: 0.65deg; --comic-hover-skew: -2deg; }
body.theme-comic .site-nav-link:nth-child(4n + 3) { --comic-hover-delta: -0.85deg; --comic-hover-skew: 2deg; }
body.theme-comic .site-nav-link:nth-child(4n + 4) { --comic-hover-delta: 0.45deg; --comic-hover-skew: -1deg; }

body.theme-comic .site-topbar-wrap .site-nav-cta { --comic-ui-rot: var(--comic-ui-rot-b); --comic-hover-delta: -0.45deg; --comic-hover-skew: 1deg; }
body.theme-comic .site-topbar-wrap .site-menu-toggle { --comic-ui-rot: var(--comic-ui-rot-a); --comic-hover-delta: 0.55deg; --comic-hover-skew: -1deg; }

/* Buttons across the site: crooked + sketchy (but keep layout stable). */
body.theme-comic .btn,
body.theme-comic .pricing-cta-pill,
body.theme-comic .pricing-info-btn,
body.theme-comic .ip-snackbar-close,
body.theme-comic button,
body.theme-comic summary {
  --comic-ui-rot: var(--comic-ui-rot-c);
  transform: rotate(var(--comic-ui-rot)) skewX(var(--comic-text-skew));
  transform-origin: 50% 50%;
}

body.theme-comic .btn:nth-of-type(3n + 1) { --comic-ui-rot: var(--comic-ui-rot-a); }
body.theme-comic .btn:nth-of-type(3n + 2) { --comic-ui-rot: var(--comic-ui-rot-b); --comic-text-skew: 8deg; }
body.theme-comic .btn:nth-of-type(3n + 3) { --comic-ui-rot: var(--comic-ui-rot-c); }

/* Comic panels: treat each main section like a panel with thick frame + inner contour. */
body.page-home.theme-comic main.container > header.home-hero,
body.page-home.theme-comic main.container > section {
  position: relative;
  z-index: 0;
  border-radius: var(--comic-panel-radius);
  padding: var(--comic-panel-pad);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  transform: translateZ(0);
}

/* Some blocks already have their own layout/padding; keep it a bit tighter. */
body.page-home.theme-comic main.container > section.lp-trust {
  padding: 16px 18px;
}

body.page-home.theme-comic main.container > header.home-hero::before,
body.page-home.theme-comic main.container > section::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: var(--comic-panel-border) solid var(--border-strong);
  border-radius: calc(var(--comic-panel-radius) + 6px);
  transform: rotate(var(--comic-panel-tilt, 0deg)) translate(var(--comic-panel-shift-x, 0px), var(--comic-panel-shift-y, 0px));
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: -1;
}

body.page-home.theme-comic main.container > header.home-hero::after,
body.page-home.theme-comic main.container > section::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  border-radius: calc(var(--comic-panel-radius) - 10px);
  transform: rotate(var(--comic-panel-tilt-2, 0deg));
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: -1;
}

/* Make panels imperfect: different tiny tilts/shifts per section (only for devices where it won't cause layout issues). */
@media (min-width: 720px) {
  body.page-home.theme-comic main.container > header.home-hero {
    --comic-panel-tilt: -0.75deg;
    --comic-panel-tilt-2: 0.55deg;
    --comic-panel-shift-x: -4px;
    --comic-panel-shift-y: 3px;
  }

  body.page-home.theme-comic main.container > section:nth-of-type(1) {
    --comic-panel-tilt: 0.7deg;
    --comic-panel-tilt-2: -0.55deg;
    --comic-panel-shift-x: 3px;
    --comic-panel-shift-y: -3px;
  }

  body.page-home.theme-comic main.container > section:nth-of-type(2) {
    --comic-panel-tilt: -0.6deg;
    --comic-panel-tilt-2: 0.5deg;
    --comic-panel-shift-x: -3px;
    --comic-panel-shift-y: 4px;
  }

  body.page-home.theme-comic main.container > section:nth-of-type(3) {
    --comic-panel-tilt: 0.55deg;
    --comic-panel-tilt-2: -0.4deg;
    --comic-panel-shift-x: 4px;
    --comic-panel-shift-y: 1px;
  }

  body.page-home.theme-comic main.container > section:nth-of-type(4) {
    --comic-panel-tilt: -0.48deg;
    --comic-panel-tilt-2: 0.36deg;
    --comic-panel-shift-x: 1px;
    --comic-panel-shift-y: -3px;
  }
}

/* Extra "hand-drawn" crookedness for smaller elements. */
body.page-home.theme-comic .lp-how-card,
body.page-home.theme-comic .lp-support-item,
body.page-home.theme-comic .lp-pill,
body.page-home.theme-comic .lp-rating,
body.page-home.theme-comic .lp-trust__logos span,
body.page-home.theme-comic .lp-hero__media {
  --comic-tilt: 0deg;
  transform: rotate(var(--comic-tilt));
  transform-origin: 50% 50%;
  will-change: transform;
}

@media (min-width: 720px) {
  body.page-home.theme-comic .lp-pill:nth-child(odd) { --comic-tilt: -1.15deg; }
  body.page-home.theme-comic .lp-pill:nth-child(even) { --comic-tilt: 0.85deg; }
  body.page-home.theme-comic .lp-trust__logos span:nth-child(odd) { --comic-tilt: 0.95deg; }
  body.page-home.theme-comic .lp-trust__logos span:nth-child(even) { --comic-tilt: -0.75deg; }
  body.page-home.theme-comic .lp-support-item:nth-child(odd) { --comic-tilt: -0.65deg; }
  body.page-home.theme-comic .lp-support-item:nth-child(even) { --comic-tilt: 0.55deg; }
  body.page-home.theme-comic .lp-how-card:nth-child(odd) { --comic-tilt: 0.75deg; }
  body.page-home.theme-comic .lp-how-card:nth-child(even) { --comic-tilt: -0.6deg; }
  body.page-home.theme-comic .lp-rating:nth-child(odd) { --comic-tilt: -0.55deg; }
  body.page-home.theme-comic .lp-rating:nth-child(even) { --comic-tilt: 0.45deg; }
  body.page-home.theme-comic .lp-hero__media { --comic-tilt: -0.85deg; }
}

body.theme-comic .site-nav-link {
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.theme-comic .site-nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 5px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: rgba(0, 0, 0, 0.84);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body.theme-comic .site-topbar-wrap .site-nav-cta,
body.theme-comic .site-topbar-wrap .site-menu-toggle {
  background: transparent;
  border-color: var(--border-strong);
  border-width: 2px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.62);
}

body.theme-comic .site-topbar-wrap .site-nav-cta::after,
body.theme-comic .site-topbar-wrap .site-menu-toggle::after {
  display: none;
}

body.theme-comic .site-topbar-wrap .site-nav-cta {
  position: relative;
}

body.theme-comic .site-topbar-wrap .site-nav-cta::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  height: 10px;
  opacity: 0;
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: 0 50%;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  clip-path: polygon(
    0% 65%, 10% 40%, 20% 68%, 30% 44%, 40% 70%, 50% 46%, 60% 72%, 70% 48%, 80% 70%, 90% 52%, 100% 64%,
    100% 100%, 0% 100%
  );
}

/* Primary hero CTA: marker-highlight feel. */
body.page-home.theme-comic .lp-cta-primary {
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.18) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.86);
}

/* Secondary hero link: thicker hand-drawn underline on hover. */
body.page-home.theme-comic .lp-cta-secondary {
  position: relative;
  text-decoration: none;
}

body.page-home.theme-comic .lp-cta-secondary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: rgba(0, 0, 0, 0.80);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* Headings: slight "ink edge" so it feels like marker. */
body.page-home.theme-comic .home-hero__title,
body.page-home.theme-comic .lp-section-title {
  text-shadow:
    0.6px 0 rgba(0, 0, 0, 0.22),
    -0.6px 0 rgba(0, 0, 0, 0.12);
}

/* Home hero text: make it obviously hand-drawn (nothing perfectly straight). */
body.page-home.theme-comic .home-hero__logo {
  transform: rotate(-2.35deg) skewX(-14deg);
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.22),
    -1px 0 0 rgba(0, 0, 0, 0.10);
}

body.page-home.theme-comic .home-hero__title {
  transform: rotate(1.55deg) skewX(-13deg);
  transform-origin: 0 50%;
}

body.page-home.theme-comic .home-hero__subtitle {
  transform: rotate(-1.05deg) skewX(-12deg);
  transform-origin: 0 50%;
  background:
    linear-gradient(transparent 56%, rgba(var(--accent-rgb), 0.10) 56% 92%, transparent 92%);
  padding: 2px 6px;
  border-radius: 14px;
}

body.page-home.theme-comic .lp-hero__underline {
  position: relative;
  height: 10px;
  border-radius: 999px;
  transform: rotate(-1.15deg) skewX(-6deg);
  transform-origin: 0 50%;
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.22),
    0 8px 20px rgba(var(--accent-rgb), 0.12);
  background:
    /* smudges / imperfections */
    radial-gradient(16px 10px at 6% 55%, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 70%),
    radial-gradient(20px 12px at 18% 40%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 72%),
    radial-gradient(18px 10px at 33% 60%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 72%),
    radial-gradient(22px 12px at 52% 45%, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0) 72%),
    radial-gradient(18px 10px at 68% 58%, rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0) 72%),
    radial-gradient(20px 12px at 84% 42%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 72%),
    /* main marker stroke (soft edges) */
    linear-gradient(
      to bottom,
      rgba(var(--accent-rgb), 0) 0%,
      rgba(var(--accent-rgb), 0.92) 20%,
      rgba(var(--accent-rgb), 0.92) 82%,
      rgba(var(--accent-rgb), 0) 100%
    );
  filter: blur(0.18px);
}

/* A second, lighter pass to make the underline feel like a human re-stroked it. */
body.page-home.theme-comic .lp-hero__underline::after {
  content: "";
  position: absolute;
  inset: -2px -12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.40;
  transform: rotate(0.85deg) translateY(1px);
  background:
    radial-gradient(18px 10px at 14% 50%, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 72%),
    radial-gradient(20px 12px at 46% 60%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 72%),
    radial-gradient(18px 10px at 74% 45%, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0) 72%),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0,  0,  0, 0.18) 24%,
      rgba(0,  0,  0, 0.18) 78%,
      rgba(0, 0, 0, 0) 100%
    );
  filter: blur(0.28px);
  mix-blend-mode: multiply;
}

/* Trust / Support / How-it-works: comic inner styling (home). */
body.page-home.theme-comic .lp-trust__title {
  font-weight: 900;
  letter-spacing: 0.02em;
  transform: rotate(-1.1deg) skewX(-10deg);
  transform-origin: 0 50%;
  text-shadow:
    0.9px 0 rgba(0, 0, 0, 0.22),
    -0.9px 0 rgba(0, 0, 0, 0.12);
}

body.page-home.theme-comic .lp-trust__logos span {
  border: 2px solid var(--border-strong);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.86);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  --chip-fill: rgba(var(--default-accent-rgb), 0.22);
  --chip-hue: 0deg;
  --chip-bleed-inset-x: -6px;
  --chip-bleed-inset-y: -5px;
  --chip-bleed-rot: -1.2deg;
  --chip-bleed-skew: -6deg;
  --chip-bleed-poly: 0% 8%, 8% 0%, 94% 3%, 100% 18%, 96% 92%, 86% 100%, 10% 96%, 0% 84%;
  --chip-rot: 0deg;
  background: transparent;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.64);
  transform: rotate(var(--chip-rot));
  transform-origin: 50% 50%;
}

body.page-home.theme-comic .lp-trust__logos span::before {
  content: "";
  position: absolute;
  left: var(--chip-bleed-inset-x);
  right: var(--chip-bleed-inset-x);
  top: var(--chip-bleed-inset-y);
  bottom: var(--chip-bleed-inset-y);
  background:
    linear-gradient(transparent 58%, rgba(0, 0, 0, 0.06) 58% 92%, transparent 92%),
    var(--chip-fill);
  clip-path: polygon(var(--chip-bleed-poly));
  border-radius: 14px;
  transform: rotate(var(--chip-bleed-rot)) skewX(var(--chip-bleed-skew));
  transform-origin: 50% 50%;
  z-index: -1;
  filter: hue-rotate(var(--chip-hue)) saturate(1.15);
}

/* Per-platform: unique crooked fills + unique colors (no duplicates). */
body.page-home.theme-comic .lp-trust__logos span:nth-child(1) {
  --chip-hue: 0deg;
  --chip-rot: -1.15deg;
  --chip-bleed-rot: -2.0deg;
  --chip-bleed-skew: -10deg;
  --chip-bleed-poly: 2% 12%, 10% 1%, 92% 5%, 99% 22%, 96% 90%, 84% 99%, 12% 95%, 1% 78%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(2) {
  --chip-hue: 115deg;
  --chip-rot: 0.85deg;
  --chip-bleed-rot: 1.6deg;
  --chip-bleed-skew: -6deg;
  --chip-bleed-poly: 1% 18%, 14% 2%, 90% 1%, 100% 18%, 98% 86%, 88% 100%, 10% 97%, 0% 80%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(3) {
  --chip-hue: 42deg;
  --chip-rot: -0.65deg;
  --chip-bleed-rot: -1.1deg;
  --chip-bleed-skew: -14deg;
  --chip-bleed-poly: 0% 10%, 12% 0%, 92% 6%, 100% 26%, 98% 94%, 80% 100%, 10% 93%, 1% 74%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(4) {
  --chip-hue: 210deg;
  --chip-rot: 1.05deg;
  --chip-bleed-rot: 2.2deg;
  --chip-bleed-skew: -8deg;
  --chip-bleed-poly: 2% 20%, 14% 1%, 94% 2%, 100% 22%, 97% 92%, 86% 100%, 12% 98%, 0% 84%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(5) {
  --chip-hue: 315deg;
  --chip-rot: -0.95deg;
  --chip-bleed-rot: -2.4deg;
  --chip-bleed-skew: -9deg;
  --chip-bleed-poly: 1% 14%, 9% 0%, 92% 4%, 100% 20%, 98% 88%, 82% 100%, 8% 96%, 0% 78%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(6) {
  --chip-hue: 18deg;
  --chip-rot: 0.65deg;
  --chip-bleed-rot: 1.9deg;
  --chip-bleed-skew: -12deg;
  --chip-bleed-poly: 1% 10%, 10% 0%, 93% 6%, 100% 24%, 98% 92%, 86% 100%, 12% 96%, 0% 82%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(7) {
  --chip-hue: 168deg;
  --chip-rot: -0.85deg;
  --chip-bleed-rot: -1.7deg;
  --chip-bleed-skew: -7deg;
  --chip-bleed-poly: 2% 18%, 16% 2%, 92% 1%, 100% 20%, 96% 88%, 84% 100%, 10% 98%, 0% 84%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(8) {
  --chip-hue: 260deg;
  --chip-rot: 1.2deg;
  --chip-bleed-rot: 2.4deg;
  --chip-bleed-skew: -9deg;
  --chip-bleed-poly: 0% 14%, 12% 1%, 94% 4%, 100% 22%, 99% 94%, 82% 100%, 8% 96%, 1% 78%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(9) {
  --chip-hue: 86deg;
  --chip-rot: -0.55deg;
  --chip-bleed-rot: -2.2deg;
  --chip-bleed-skew: -13deg;
  --chip-bleed-poly: 2% 12%, 14% 0%, 92% 3%, 100% 18%, 97% 90%, 86% 100%, 12% 97%, 0% 80%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(10) {
  --chip-hue: 340deg;
  --chip-rot: 0.95deg;
  --chip-bleed-rot: 1.1deg;
  --chip-bleed-skew: -6deg;
  --chip-bleed-poly: 1% 20%, 18% 2%, 90% 1%, 100% 20%, 98% 86%, 88% 100%, 10% 98%, 0% 84%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(11) {
  --chip-hue: 140deg;
  --chip-rot: -1.05deg;
  --chip-bleed-rot: -1.0deg;
  --chip-bleed-skew: -11deg;
  --chip-bleed-poly: 1% 14%, 12% 0%, 94% 6%, 100% 28%, 98% 92%, 78% 100%, 10% 94%, 0% 74%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(12) {
  --chip-hue: 52deg;
  --chip-rot: 0.75deg;
  --chip-bleed-rot: 2.0deg;
  --chip-bleed-skew: -8deg;
  --chip-bleed-poly: 2% 16%, 12% 1%, 92% 2%, 100% 18%, 97% 90%, 84% 100%, 10% 98%, 0% 82%;
}

body.page-home.theme-comic .lp-trust__logos span:nth-child(13) {
  --chip-hue: 235deg;
  --chip-rot: -0.75deg;
  --chip-bleed-rot: -2.6deg;
  --chip-bleed-skew: -10deg;
  --chip-bleed-poly: 1% 12%, 8% 0%, 92% 5%, 100% 22%, 98% 90%, 82% 100%, 10% 96%, 0% 76%;
}

/* Section descriptions: marker-highlight + crooked. */
body.page-home.theme-comic .lp-section-desc {
  display: inline-block;
  transform: rotate(-0.85deg) skewX(-10deg);
  transform-origin: 0 50%;
  background:
    linear-gradient(transparent 56%, rgba(var(--accent-rgb), 0.10) 56% 94%, transparent 94%);
  padding: 2px 6px;
  border-radius: 14px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
}

body.theme-comic .lp-section-desc {
  display: inline-block;
  transform: rotate(-0.65deg) skewX(-10deg);
  transform-origin: 0 50%;
  background:
    linear-gradient(transparent 56%, rgba(var(--accent-rgb), 0.10) 56% 94%, transparent 94%);
  padding: 2px 6px;
  border-radius: 14px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
}

body.page-home.theme-comic .lp-support-item {
  border: 2px solid rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(transparent 58%, rgba(var(--accent-rgb), 0.06) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

body.page-home.theme-comic .lp-support-item__icon {
  border: 2px solid rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

body.page-home.theme-comic .lp-support-item__title {
  font-weight: 900;
  transform: rotate(-0.55deg) skewX(-8deg);
  transform-origin: 0 50%;
}

body.page-home.theme-comic .lp-how-card {
  border: 2px solid rgba(0, 0, 0, 0.22);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

body.page-home.theme-comic .lp-how-card__step {
  border: 2px solid rgba(0, 0, 0, 0.28);
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.14) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.62);
  transform: rotate(-1.8deg) skewX(-10deg);
  color: rgba(0, 0, 0, 0.92);
  font-size: 16px;
  width: 48px;
  height: 48px;
  text-shadow:
    0.8px 0 rgba(0, 0, 0, 0.12),
    -0.8px 0 rgba(0, 0, 0, 0.08);
}

/* How-it-works arrows: make them chunky + comic. */
@media (min-width: 880px) {
  body.page-home.theme-comic .lp-how-card:not(:last-child)::after {
    content: "➜";
    right: -20px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.90);
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(0, 0, 0, 0.72);
    border-radius: 999px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.62);
    transform: translateY(-50%) rotate(-1.6deg);
    opacity: 0.95;
  }
}

/* Feature cards: more comic inside (home). */
body.page-home.theme-comic .lp-feature-card {
  border-width: 3px;
  border-color: rgba(0, 0, 0, 0.24);
  background:
    radial-gradient(420px circle at 20% 18%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0) 58%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.62);
}

body.theme-comic .lp-feature-card {
  border-width: 3px;
  border-color: rgba(0, 0, 0, 0.22);
  background:
    radial-gradient(420px circle at 20% 18%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0) 58%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.62);
}

body.page-home.theme-comic .lp-feature-card__icon {
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(transparent 58%, rgba(var(--accent-rgb), 0.10) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.86);
}

body.theme-comic .lp-feature-card__icon {
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(transparent 58%, rgba(var(--accent-rgb), 0.10) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.86);
}

body.page-home.theme-comic .lp-feature-card__name {
  display: inline-block;
  transform: rotate(var(--comic-feat-name-rot, -0.55deg)) skewX(var(--comic-feat-name-skew, -8deg));
  transform-origin: 0 50%;
}

body.page-home.theme-comic .lp-feature-card__desc {
  display: inline-block;
  transform: rotate(var(--comic-feat-desc-rot, -0.25deg)) skewX(var(--comic-feat-desc-skew, -8deg));
  transform-origin: 0 50%;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home.theme-comic .lp-feature-card:hover .lp-feature-card__name {
    transform: rotate(var(--comic-feat-name-rot-hover, 0.95deg)) skewX(var(--comic-feat-name-skew-hover, -12deg));
  }

  body.page-home.theme-comic .lp-feature-card:hover .lp-feature-card__desc {
    transform: rotate(var(--comic-feat-desc-rot-hover, 0.65deg)) skewX(var(--comic-feat-desc-skew-hover, -12deg));
  }
}

body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 1) { --comic-feat-name-rot: -0.85deg; --comic-feat-desc-rot: -0.45deg; --comic-feat-name-rot-hover: 1.2deg; --comic-feat-desc-rot-hover: 0.85deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 2) { --comic-feat-name-rot: 0.65deg; --comic-feat-desc-rot: 0.35deg; --comic-feat-name-rot-hover: -1.1deg; --comic-feat-desc-rot-hover: -0.75deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 3) { --comic-feat-name-rot: -0.55deg; --comic-feat-desc-rot: -0.25deg; --comic-feat-name-rot-hover: 1.05deg; --comic-feat-desc-rot-hover: 0.7deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 4) { --comic-feat-name-rot: 0.85deg; --comic-feat-desc-rot: 0.55deg; --comic-feat-name-rot-hover: -1.25deg; --comic-feat-desc-rot-hover: -0.9deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 5) { --comic-feat-name-rot: -0.75deg; --comic-feat-desc-rot: -0.35deg; --comic-feat-name-rot-hover: 1.15deg; --comic-feat-desc-rot-hover: 0.8deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 6) { --comic-feat-name-rot: 0.55deg; --comic-feat-desc-rot: 0.25deg; --comic-feat-name-rot-hover: -1.0deg; --comic-feat-desc-rot-hover: -0.65deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 7) { --comic-feat-name-rot: -0.45deg; --comic-feat-desc-rot: -0.2deg; --comic-feat-name-rot-hover: 0.95deg; --comic-feat-desc-rot-hover: 0.6deg; }
body.page-home.theme-comic .lp-features__grid .lp-feature-card:nth-child(8n + 8) { --comic-feat-name-rot: 0.75deg; --comic-feat-desc-rot: 0.45deg; --comic-feat-name-rot-hover: -1.2deg; --comic-feat-desc-rot-hover: -0.85deg; }

body.theme-comic .lp-feature-card__name {
  transform: rotate(-0.45deg) skewX(-8deg);
  transform-origin: 0 50%;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home.theme-comic .lp-feature-card:hover {
    transform: translateY(-6px) rotate(var(--comic-tilt)) scale(1.02);
  }
}

/* Pricing cards: "hand-cut" + unique crookedness + hover zoom (original implementation, CodePen-like vibe). */
body.theme-comic .pricing-card {
  --comic-pricing-tilt: var(--comic-tilt, 0deg);
  --comic-pricing-shift-x: 0px;
  --comic-pricing-shift-y: 0px;
  --comic-pricing-scale: 1;
  --comic-pricing-frame: 8px;
  --comic-pricing-outline-rot: calc(var(--comic-pricing-tilt) * -0.65);
  --comic-pricing-inner-rot: calc(var(--comic-pricing-tilt) * 0.4);
  --comic-pricing-cut: 18px;
  isolation: isolate;
  z-index: 0;
  border: 0;
  box-shadow: none;
  transform:
    translate3d(var(--comic-pricing-shift-x), var(--comic-pricing-shift-y), 0)
    rotate(var(--comic-pricing-tilt))
    scale(var(--comic-pricing-scale));
  transition: transform 220ms cubic-bezier(0.2, 0.95, 0.2, 1), box-shadow 220ms ease;
}

body.theme-comic .pricing-card::before {
  content: "";
  position: absolute;
  inset: calc(var(--comic-pricing-frame) * -1);
  border-radius: calc(var(--comic-pricing-cut) + var(--comic-pricing-frame));
  border: 4px solid rgba(0, 0, 0, 0.86);
  background:
    radial-gradient(720px circle at 20% 18%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0) 62%),
    rgba(255, 255, 255, 0.18);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.72);
  transform: rotate(var(--comic-pricing-outline-rot));
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 0;
}

body.theme-comic .pricing-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--comic-pricing-cut) - 6px);
  border: 2px solid rgba(0, 0, 0, 0.18);
  transform: rotate(var(--comic-pricing-inner-rot));
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 0;
}

body.theme-comic .pricing-card--shell {
  z-index: 1;
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.06) 0 1px,
      rgba(255, 255, 255, 0) 1px 12px
    ),
    rgba(255, 255, 255, 0.90);
}

/* Base plan: no stripe hatching — keep it transparent like it was earlier. */
body.theme-comic .pricing-card--basic .pricing-card--shell {
  background: transparent;
}

body.theme-comic .pricing-card--paid .pricing-card__header {
  text-shadow:
    0.8px 0 rgba(0, 0, 0, 0.25),
    -0.8px 0 rgba(0, 0, 0, 0.18);
}

/* Pricing internals: push further into comic style (inked UI inside the card, not just the outline). */
body.theme-comic .pricing-card__header {
  border-bottom-width: 2px;
  border-bottom-color: rgba(0, 0, 0, 0.28);
}

body.theme-comic .pricing-card__icon {
  border-width: 2px;
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  transform: rotate(-1.2deg);
}

body.theme-comic .pricing-card__name {
  transform: rotate(-0.65deg) skewX(-9deg);
  transform-origin: 0 50%;
  letter-spacing: 0.01em;
}

body.theme-comic .pricing-badge-pill {
  border-width: 3px;
  border-color: rgba(0, 0, 0, 0.78);
  background:
    radial-gradient(220px circle at 25% 20%, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0) 56%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-comic .pricing-badge-pill--left {
  transform: rotate(-1.15deg) skewX(-6deg);
  transform-origin: 10% 50%;
}

body.theme-comic .pricing-badge-pill--right {
  transform: rotate(1.05deg) skewX(-6deg);
  transform-origin: 90% 50%;
}

body.theme-comic .pricing-badge-pill__main,
body.theme-comic .pricing-badge-pill__label {
  transform: rotate(-0.35deg) skewX(-8deg);
  transform-origin: 0 50%;
}

body.theme-comic .pricing-subtext {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  transform: rotate(-0.25deg) skewX(-6deg);
  transform-origin: 50% 50%;
}

body.theme-comic .pricing-feature-list li {
  font-weight: 700;
}

body.theme-comic .pricing-feature-list li::before {
  border-width: 2px;
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  body.theme-comic .pricing-card:nth-child(1) { --comic-pricing-tilt: -2.9deg; --comic-pricing-shift-x: -6px; --comic-pricing-shift-y: 6px; --comic-pricing-frame: 10px; --comic-pricing-cut: 22px; --comic-pricing-outline-rot: 1.4deg; --comic-pricing-inner-rot: -0.7deg; }
  body.theme-comic .pricing-card:nth-child(2) { --comic-pricing-tilt: 2.15deg; --comic-pricing-shift-x: 4px; --comic-pricing-shift-y: -4px; --comic-pricing-frame: 7px; --comic-pricing-cut: 18px; --comic-pricing-outline-rot: -1.05deg; --comic-pricing-inner-rot: 0.55deg; }
  body.theme-comic .pricing-card:nth-child(3) { --comic-pricing-tilt: -1.6deg; --comic-pricing-shift-x: 7px; --comic-pricing-shift-y: 2px; --comic-pricing-frame: 9px; --comic-pricing-cut: 20px; --comic-pricing-outline-rot: 1.1deg; --comic-pricing-inner-rot: -0.45deg; }
  body.theme-comic .pricing-card:nth-child(4) { --comic-pricing-tilt: 2.75deg; --comic-pricing-shift-x: -4px; --comic-pricing-shift-y: -2px; --comic-pricing-frame: 8px; --comic-pricing-cut: 24px; --comic-pricing-outline-rot: -1.3deg; --comic-pricing-inner-rot: 0.6deg; }

  body.theme-comic .pricing-card:hover {
    --comic-pricing-scale: 1.065;
    --comic-pricing-shift-y: -14px;
    box-shadow:
      0 26px 70px rgba(0, 0, 0, 0.16),
      0 10px 24px rgba(0, 0, 0, 0.10);
  }
}

/* Footer: tilt + crooked separators (mega footer + copyright bar). */
body.theme-comic .site-footer-mega {
  position: relative;
  overflow-y: visible;
  overflow-x: clip;
  border-top-color: transparent;
}

@supports not (overflow: clip) {
  body.theme-comic .site-footer-mega {
    overflow-x: hidden;
  }
}

body.theme-comic .site-footer-mega-inner {
  transform: rotate(1.55deg) skewX(9deg);
  transform-origin: 50% 0;
}

body.theme-comic .site-footer-mega::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: -10px;
  height: 18px;
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(-1.15deg);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.00) 0 8px,
      rgba(255, 255, 255, 0.08) 8px 12px
    ),
    linear-gradient(
      transparent 0 62%,
      rgba(0, 0, 0, 0.84) 62% 72%,
      transparent 72% 100%
    ),
    linear-gradient(
      transparent 0 64%,
      rgba(0, 0, 0, 0.50) 64% 76%,
      transparent 76% 100%
    );
  filter: blur(0.18px);
}

body.theme-comic .site-footer-inner {
  position: relative;
  overflow-y: visible;
  overflow-x: clip;
  border-top-color: transparent;
}

@supports not (overflow: clip) {
  body.theme-comic .site-footer-inner {
    overflow-x: hidden;
  }
}

body.theme-comic .site-footer-inner::before {
  display: none;
}

/* Footer bottom row: make it feel like the same comic UI (inked pills + framed icon). */
body.theme-comic .site-footer-inner small,
body.theme-comic .site-footer-credit {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 3px solid var(--border-strong, var(--border));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  color: var(--text, rgba(0, 0, 0, 0.92));
  font-weight: 900;
  letter-spacing: 0.01em;
}

body.theme-comic .site-footer-inner small.muted {
  color: var(--text, rgba(0, 0, 0, 0.92));
  opacity: 1;
}

body.theme-comic .site-footer-credit-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 4px solid var(--border-strong, var(--border));
}

.site-footer-credit-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  border-bottom: 4px solid var(--border-strong, var(--border));
  transform: rotate(var(--comic-ui-rot, 0deg)) skewX(var(--comic-text-skew, -6deg));
  transform-origin: 0 50%;
}

.site-social {
  transform: rotate(var(--comic-ui-rot, 0deg)) skewX(var(--comic-text-skew, -6deg));
  transform-origin: 50% 50%;
}

/* Footer links: match menu hover feel + per-link initial crooked placement. */
.site-footer-list a {
  --footer-x: 0px;
  --footer-y: 0px;
  --footer-rot: -0.35deg;
  --footer-hover-x: 0px;
  --footer-hover-y: 0px;
  --footer-hover-rot: -0.85deg;
  --comic-marker-anim: comic-marker-draw;
}

.site-footer-list a:nth-child(12n + 1) { --footer-x: 1px; --footer-y: 0px; --footer-rot: -0.65deg; --footer-hover-x: 0px; --footer-hover-y: 1px; --footer-hover-rot: -0.95deg; --comic-marker-anim: comic-marker-draw; }
.site-footer-list a:nth-child(12n + 2) { --footer-x: -1px; --footer-y: 1px; --footer-rot: 0.55deg; --footer-hover-x: 1px; --footer-hover-y: 0px; --footer-hover-rot: 0.85deg; --comic-marker-anim: comic-marker-draw-2; }
.site-footer-list a:nth-child(12n + 3) { --footer-x: 0px; --footer-y: -1px; --footer-rot: -0.45deg; --footer-hover-x: -1px; --footer-hover-y: 1px; --footer-hover-rot: -0.75deg; --comic-marker-anim: comic-marker-draw; }
.site-footer-list a:nth-child(12n + 4) { --footer-x: 1px; --footer-y: 1px; --footer-rot: 0.75deg; --footer-hover-x: 0px; --footer-hover-y: 1px; --footer-hover-rot: 0.65deg; --comic-marker-anim: comic-marker-draw-2; }
.site-footer-list a:nth-child(12n + 5) { --footer-x: -1px; --footer-y: 0px; --footer-rot: -0.85deg; --footer-hover-x: 1px; --footer-hover-y: 0px; --footer-hover-rot: -1.05deg; --comic-marker-anim: comic-marker-draw; }
.site-footer-list a:nth-child(12n + 6) { --footer-x: 0px; --footer-y: 1px; --footer-rot: 0.35deg; --footer-hover-x: -1px; --footer-hover-y: 0px; --footer-hover-rot: 0.95deg; --comic-marker-anim: comic-marker-draw-2; }
.site-footer-list a:nth-child(12n + 7) { --footer-x: 1px; --footer-y: -1px; --footer-rot: -0.55deg; --footer-hover-x: 0px; --footer-hover-y: 1px; --footer-hover-rot: -0.85deg; --comic-marker-anim: comic-marker-draw; }
.site-footer-list a:nth-child(12n + 8) { --footer-x: -1px; --footer-y: -1px; --footer-rot: 0.85deg; --footer-hover-x: 1px; --footer-hover-y: 0px; --footer-hover-rot: 0.75deg; --comic-marker-anim: comic-marker-draw-2; }
.site-footer-list a:nth-child(12n + 9) { --footer-x: 0px; --footer-y: 0px; --footer-rot: -0.75deg; --footer-hover-x: -1px; --footer-hover-y: 1px; --footer-hover-rot: -0.95deg; --comic-marker-anim: comic-marker-draw; }
.site-footer-list a:nth-child(12n + 10) { --footer-x: 1px; --footer-y: 0px; --footer-rot: 0.65deg; --footer-hover-x: 0px; --footer-hover-y: 1px; --footer-hover-rot: 0.55deg; --comic-marker-anim: comic-marker-draw-2; }
.site-footer-list a:nth-child(12n + 11) { --footer-x: -1px; --footer-y: 1px; --footer-rot: -0.35deg; --footer-hover-x: 1px; --footer-hover-y: 0px; --footer-hover-rot: -0.75deg; --comic-marker-anim: comic-marker-draw; }
.site-footer-list a:nth-child(12n + 12) { --footer-x: 0px; --footer-y: -1px; --footer-rot: 0.95deg; --footer-hover-x: -1px; --footer-hover-y: 1px; --footer-hover-rot: 0.85deg; --comic-marker-anim: comic-marker-draw-2; }


.site-footer-credit-link {
  --footer-x: 0px;
  --footer-y: 0px;
  --footer-rot: 0.75deg;
  --footer-hover-x: 0px;
  --footer-hover-y: 1px;
  --footer-hover-rot: 0.65deg;
  --comic-marker-anim: comic-marker-draw-2;
}


.site-social {
  --footer-x: 0px;
  --footer-y: 0px;
  --footer-rot: -0.65deg;
  --footer-hover-x: 0px;
  --footer-hover-y: 1px;
  --footer-hover-rot: -0.85deg;
  --comic-marker-anim: comic-marker-draw;
}

.site-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 3px solid var(--border-strong, var(--border));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  overflow: hidden;
  isolation: isolate;
  color: var(--text, rgba(0, 0, 0, 0.92));
  text-decoration: none;
}

.site-social .site-social-icon {
  position: relative;
  z-index: 1;
}

body.page-home.theme-comic .lp-how-card__icon {
  border: 2px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  transform: rotate(1.1deg);
}

body.page-home.theme-comic .lp-how-card__title {
  font-weight: 900;
  transform: rotate(var(--comic-title-rot, -0.65deg)) skewX(var(--comic-title-skew, -9deg));
  transform-origin: 0 50%;
}

body.page-home.theme-comic .lp-how-card__desc {
  display: inline-block;
  transform: rotate(var(--comic-desc-rot, -0.35deg)) skewX(var(--comic-desc-skew, -8deg));
  transform-origin: 0 50%;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home.theme-comic .lp-how-card:hover .lp-how-card__title {
    transform: rotate(var(--comic-title-rot-hover, 0.95deg)) skewX(var(--comic-title-skew-hover, -12deg));
  }

  body.page-home.theme-comic .lp-how-card:hover .lp-how-card__desc {
    transform: rotate(var(--comic-desc-rot-hover, 0.65deg)) skewX(var(--comic-desc-skew-hover, -12deg));
  }
}

body.page-home.theme-comic .lp-how__grid .lp-how-card:nth-child(4n + 1) {
  --comic-title-rot: -0.85deg;
  --comic-desc-rot: -0.55deg;
  --comic-title-rot-hover: 1.15deg;
  --comic-desc-rot-hover: 0.85deg;
}

body.page-home.theme-comic .lp-how__grid .lp-how-card:nth-child(4n + 2) {
  --comic-title-rot: 0.55deg;
  --comic-desc-rot: 0.35deg;
  --comic-title-rot-hover: -1.05deg;
  --comic-desc-rot-hover: -0.75deg;
}

body.page-home.theme-comic .lp-how__grid .lp-how-card:nth-child(4n + 3) {
  --comic-title-rot: -0.45deg;
  --comic-desc-rot: -0.25deg;
  --comic-title-rot-hover: 0.95deg;
  --comic-desc-rot-hover: 0.65deg;
}

body.page-home.theme-comic .lp-how__grid .lp-how-card:nth-child(4n + 4) {
  --comic-title-rot: 0.75deg;
  --comic-desc-rot: 0.55deg;
  --comic-title-rot-hover: -1.2deg;
  --comic-desc-rot-hover: -0.9deg;
}

/* Form fields: comic style (applies across pages that reuse feedback inputs). */
body.theme-comic .feedback-input,
body.theme-comic .ws-input-wrap input {
  border-width: 2px;
  border-color: rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(220px circle at 20% 18%, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0) 52%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

body.theme-comic .feedback-field:nth-child(odd) .feedback-input { transform: rotate(-0.75deg) skewX(-6deg); }
body.theme-comic .feedback-field:nth-child(even) .feedback-input { transform: rotate(0.65deg) skewX(-6deg); }

body.theme-comic .feedback-input:focus,
body.theme-comic .ws-input-wrap input:focus {
  border-color: rgba(0, 0, 0, 0.36);
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.60),
    0 0 0 4px rgba(var(--accent-rgb), 0.18);
}

/* Micro-animations: make the comic UI feel "alive" on hover (home only). */
@keyframes comic-pop {
  0% { transform: translateY(0) scale(1); }
  55% { transform: translateY(-1px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Marker underline: draw left-to-right like a human stroke. */
@keyframes comic-marker-draw {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transform: translateX(-10px) rotate(-1.2deg);
  }
  55% {
    opacity: 0.92;
    clip-path: polygon(0 0, 105% 0, 105% 100%, 0 100%);
    transform: translateX(-2px) rotate(-0.9deg);
  }
  100% {
    opacity: 0.92;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(0) rotate(-0.8deg);
  }
}

@keyframes comic-marker-draw-2 {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transform: translateX(-8px) rotate(0.8deg);
  }
  60% {
    opacity: 0.88;
    clip-path: polygon(0 0, 110% 0, 110% 100%, 0 100%);
    transform: translateX(-1px) rotate(0.55deg);
  }
  100% {
    opacity: 0.88;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(0) rotate(0.55deg);
  }
}

@keyframes comic-wiggle {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-2px) rotate(-0.35deg); }
  70% { transform: translateY(-1px) rotate(0.25deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes comic-paper-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 24px 18px, -36px 28px; }
}

@keyframes comic-solid-underline-drawout {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  32% {
    opacity: 0.92;
    transform: scaleX(1);
  }
  72% {
    opacity: 0.92;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  /* Subtle motion in the texture layer only while the user is active. */
  body.page-home.theme-comic:hover::before {
    animation: comic-paper-drift 9s linear infinite;
  }

  /* Links: underline "ink" draws in (text links only, not buttons). */
  body.page-home.theme-comic a:not(.btn):not(.pricing-cta-pill):not(.pricing-info-btn):not(.site-brand):not(.lp-cta-secondary) {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 180ms ease;
  }
  body.page-home.theme-comic a:not(.btn):not(.pricing-cta-pill):not(.pricing-info-btn):not(.site-brand):not(.lp-cta-secondary):hover {
    background-size: 100% 2px;
  }

  /* Footer links already use the marker-underline; don't layer the homepage underline on top.
     Match the specificity of the homepage underline selector (many :not(...)) so this always wins. */
  body.page-home.theme-comic .site-footer a:not(.btn):not(.pricing-cta-pill):not(.pricing-info-btn):not(.site-brand):not(.lp-cta-secondary),
  body.page-home.theme-comic .site-footer-mega a:not(.btn):not(.pricing-cta-pill):not(.pricing-info-btn):not(.site-brand):not(.lp-cta-secondary) {
    background-image: none;
    background-size: 0 0;
  }

  body.page-home.theme-comic .site-footer a:not(.btn):not(.pricing-cta-pill):not(.pricing-info-btn):not(.site-brand):not(.lp-cta-secondary):hover,
  body.page-home.theme-comic .site-footer-mega a:not(.btn):not(.pricing-cta-pill):not(.pricing-info-btn):not(.site-brand):not(.lp-cta-secondary):hover {
    background-size: 0 0;
  }

  /* Ensure the secondary CTA uses only the comic underline (no legacy hover visuals). */
  body.page-home.theme-comic .lp-cta-secondary:hover {
    background: transparent;
    outline: none;
    box-shadow: none;
    border-color: transparent;
  }

  /* Menu underline: marker stroke draws in. */
  body.theme-comic .site-nav-link::after {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    background: rgba(0, 0, 0, 0.80);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  }

  body.theme-comic .site-nav-link:hover::after {
    animation: comic-solid-underline-drawout 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 1;
  }

  body.theme-comic .site-nav-link:hover {
    background: transparent;
    transform: translateY(-1px)
      rotate(var(--comic-menu-hover-rot, -2.05deg))
      skewX(var(--comic-text-skew, -10deg));
  }

  /* Footer links: same marker-underline hover on every page (not just homepage). */
  .site-footer-list a {
    position: relative;
    transition: transform 140ms ease;
  }

  .site-footer-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 6px;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    background: rgba(0, 0, 0, 0.80);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
  }

  .site-footer-list a:hover::after {
    animation: comic-solid-underline-drawout 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 1;
  }

  .site-footer-list a:hover {
    transform:
      translate(var(--footer-x, 0px), var(--footer-y, 0px))
      translate(var(--footer-hover-x, 0px), var(--footer-hover-y, 0px))
      translateY(-1px)
      rotate(calc(var(--footer-rot, 0deg) + var(--footer-hover-rot, -0.85deg)))
      skewX(var(--comic-text-skew, -10deg));
  }

  /* Footer bottom row: give credit + social the same hover "pop" feel everywhere. */
  .site-footer-credit-link {
    position: relative;
    transition: transform 140ms ease;
  }

  .site-footer-credit-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 6px;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    background: rgba(0, 0, 0, 0.80);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
  }

  .site-footer-credit-link:hover::after {
    animation: comic-solid-underline-drawout 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 1;
  }

  .site-footer-credit-link:hover {
    transform:
      translate(var(--footer-x, 0px), var(--footer-y, 0px))
      translate(var(--footer-hover-x, 0px), var(--footer-hover-y, 0px))
      translateY(-1px)
      rotate(calc(var(--footer-rot, 0deg) + var(--footer-hover-rot, -0.85deg)))
      skewX(var(--comic-text-skew, -10deg));
  }

  .site-social {
    position: relative;
    transition: transform 140ms ease, box-shadow 200ms ease;
  }

  .site-social::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 3px;
    height: 7px;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    background: rgba(0, 0, 0, 0.80);
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
    z-index: 0;
  }

  .site-social:hover::after {
    animation: comic-solid-underline-drawout 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 1;
  }

  .site-social:hover {
    transform:
      translate(var(--footer-x, 0px), var(--footer-y, 0px))
      translate(var(--footer-hover-x, 0px), var(--footer-hover-y, 0px))
      translateY(-1px)
      rotate(calc(var(--footer-rot, 0deg) + var(--footer-hover-rot, -0.85deg)))
      skewX(var(--comic-text-skew, -10deg));
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  }

  /* Menu buttons: no background fill on hover (underline does the work). */
  body.theme-comic .site-topbar-wrap .site-nav-cta:hover,
  body.theme-comic .site-topbar-wrap .site-menu-toggle:hover {
    background: transparent;
    transform: translateY(-1px)
      rotate(calc(var(--comic-ui-rot, 0deg) + var(--comic-hover-delta, -0.55deg)))
      skewX(calc(var(--comic-text-skew, -10deg) + var(--comic-hover-skew, 0deg)));
  }

  body.theme-comic .site-topbar-wrap .site-nav-cta:hover::before {
    opacity: 0.9;
    transform: rotate(-1.2deg) scaleX(1);
  }

  /* Secondary CTA underline: same marker draw effect. */
  body.theme-comic .lp-cta-secondary::after {
    opacity: 0;
    transform: translateX(-8px) rotate(0.8deg);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: none;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.00) 0 7px,
        rgba(255, 255, 255, 0.08) 7px 11px
      ),
      rgba(0, 0, 0, 0.84);
  }

  body.theme-comic .lp-cta-secondary:hover::after {
    animation: comic-marker-draw-2 360ms cubic-bezier(0.15, 0.95, 0.25, 1) 1;
  }


/* Buttons: in comic mode, fully replace the global .btn.primary "wave" styling. */
body.theme-comic .btn.primary {
  border-width: 3px;
  border-color: var(--border-strong);
  color: rgba(0, 0, 0, 0.92);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.72);
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.18) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.90);
  letter-spacing: 0.01em;
}

body.theme-comic .btn.primary::before,
body.theme-comic .btn.primary::after {
  display: none;
  animation: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Remove speed-lines overlay on buttons in comic mode to avoid style stacking. */
body.theme-comic .btn::after,
body.theme-comic .pricing-cta-pill::after,
body.theme-comic .pricing-info-btn::after {
  display: none;
}


  /* Buttons: quick stamp + speed-lines. */
  body.page-home.theme-comic .btn,
  body.page-home.theme-comic .pricing-cta-pill,
  body.page-home.theme-comic .pricing-info-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 140ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
  }

  body.page-home.theme-comic .btn::after,
  body.page-home.theme-comic .pricing-cta-pill::after,
  body.page-home.theme-comic .pricing-info-btn::after {
    content: "";
    position: absolute;
    inset: -40% -30%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-10px) rotate(-10deg);
    background-image: repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.18) 0 1px,
      rgba(255, 255, 255, 0) 1px 10px
    );
    transition: opacity 140ms ease, transform 220ms ease;
  }

  body.page-home.theme-comic .btn:hover,
  body.page-home.theme-comic .pricing-cta-pill:hover,
  body.page-home.theme-comic .pricing-info-btn:hover {
    transform: translateY(-1px) rotate(calc(var(--comic-ui-rot, 0deg) - 0.45deg)) skewX(var(--comic-text-skew, -10deg));
    animation: comic-pop 180ms ease-out 1;
  }

  body.page-home.theme-comic .btn:hover::after,
  body.page-home.theme-comic .pricing-cta-pill:hover::after,
  body.page-home.theme-comic .pricing-info-btn:hover::after {
    opacity: 0.22;
    transform: translateX(10px) rotate(-10deg);
  }

  /* Speech bubbles: gentle wiggle. */
  body.page-home.theme-comic .lp-section-title {
    transition: transform 160ms ease;
  }
  body.page-home.theme-comic .lp-section-title:hover {
    animation: comic-wiggle 240ms ease-out 1;
  }
}

/* Comic jitter: tiny hand-drawn tilt for variety (feature cards only). */
body.page-home.theme-comic .lp-feature-card {
  --comic-tilt: 0deg;
  transform: rotate(var(--comic-tilt));
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home.theme-comic .lp-feature-card:nth-child(odd) { --comic-tilt: -0.25deg; }
  body.page-home.theme-comic .lp-feature-card:nth-child(even) { --comic-tilt: 0.2deg; }

  body.page-home.theme-comic .card:not(.pricing-card):not(.lp-feature-card):hover,
  body.page-home.theme-comic .lp-feature-card:hover {
    transform: translateY(-6px) rotate(var(--comic-tilt)) scale(1.02);
    animation: comic-wiggle 260ms ease-out 1;
  }
}

/* Respect reduced motion preferences. */
@media (prefers-reduced-motion: reduce) {
  body.page-home.theme-comic * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body.page-home.theme-comic::before {
    animation: none !important;
  }
}

/* Popovers: slightly chunkier outline in comic mode */
body.page-home.theme-comic .pricing-models-popover__inner,
body.page-home.theme-comic .pricing-info-popover__inner {
  border-width: 3px;
}

/* Cursor: default everywhere, pointer only on links. */
body { cursor: default; }
a, a * { cursor: pointer; }
input, textarea { cursor: text; }

/* Inputs: unified site style */
:where(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea
) {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-glass);
  color: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

:where(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea
):hover {
  border-color: var(--border-strong);
  background: var(--bg-glass-hover);
}

:where(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea
):focus {
  border-color: var(--border-strong);
  background: var(--bg-glass-hover);
}

/* Validation (only after user interaction) */
:where(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea
)[data-touched="1"]:invalid {
  border-color: var(--snack-error-border);
  background: var(--snack-error-bg);
}

:where(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea
)[data-touched="1"][data-filled="1"]:valid {
  border-color: var(--snack-success-border);
  background: var(--snack-success-bg);
}
button,
summary,
.btn,
.ip-snackbar-close,
[role="button"] {
  cursor: pointer;
}

h1, h2, h3 {
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
}

a { color: inherit; }
/* Strict minimalism: no global hover underline (buttons/links decide their own). */
a:hover { text-decoration: none; }

/* Hide Yandex.Metrika debugger/opener floating icon (if injected). */
#__ymDebuggerOpener,
#ymDebuggerOpener,
.ym-debugger-opener,
.ym-debugger,
[id*="ymDebugger" i],
[class*="ymDebugger" i] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Disable Safari auto-linking for detected data (numbers, emails) */
a[x-apple-data-detectors],
a[x-apple-data-detectors] * {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: default;
}

.token-line-text {
  white-space: nowrap;
}

/* Links: no underline, but clearly clickable (primarily inside content cards). */
.card a:not(.btn) {
  color: rgba(0, 0, 0, 0.72);
  font-weight: 600;
  transition: color 140ms ease;
}

.card a:not(.btn):hover {
  color: rgba(0, 0, 0, 0.92);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--pad);
}

/* Анимация серебристого градиента */
@keyframes wspeak-silver-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Home hero */
.home-hero {
  text-align: center;
  padding: 10px 0;
  min-height: 500px;
  contain: layout;
}

body.page-home .home-hero {
  text-align: left;
  padding: 18px 0 6px;
  min-height: 600px;
}

body.page-home .home-hero__title {
  font-family: var(--home-heading-font);
  font-weight: var(--home-heading-weight);
  letter-spacing: var(--home-heading-tracking);
  line-height: var(--home-heading-line);
  font-size: var(--home-h1-size);
  color: #000;
  transition: opacity 0.3s ease;
}

/* Градиент применяется после загрузки для улучшения FCP/LCP */
body.gradients-loaded.page-home .home-hero__title {
  background: linear-gradient(90deg, 
    #d4d4d4 0%, 
    #b8b8b8 25%, 
    #888888 50%, 
    #b8b8b8 75%, 
    #d4d4d4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: wspeak-silver-shimmer 6s ease-in-out infinite;
}

body.page-home .lp-section-title {
  font-family: var(--home-heading-font);
  font-weight: var(--home-heading-weight);
  letter-spacing: var(--home-heading-tracking);
  line-height: var(--home-heading-line);
  font-size: var(--home-h2-size);
}

body.page-home .home-hero__subtitle {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lp-ink-muted);
}

.lp-hero__underline {
  width: min(340px, 62%);
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.85);
  margin-top: 10px;
}

.lp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 480px;
  contain: layout;
}

@media (min-width: 980px) {
  .lp-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: center;
  }
}

.lp-hero__left {
  display: grid;
  gap: 10px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 4px;
  box-sizing: border-box;
  max-width: 100%;
}

body.page-home .lp-cta-primary {
  padding: 12px 18px;
  font-weight: 900;
}

body.page-home .lp-cta-primary:hover {
  transform: translateY(-1px);
}

body.page-home .lp-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
  padding: 10px 12px;
  border-radius: 999px;
  background: transparent;
  box-sizing: border-box;
  max-width: 100%;
}

body.page-home .lp-cta-secondary:hover {
  color: rgba(0, 0, 0, 0.88);
}

/* Landing CTAs (shared across pages) */
.lp-cta-primary {
  padding: 12px 18px;
  font-weight: 900;
}

.lp-cta-primary:hover {
  transform: translateY(-1px);
}

.lp-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
  padding: 10px 12px;
  border-radius: 999px;
  background: transparent;
}

.lp-cta-secondary:hover {
  color: rgba(0, 0, 0, 0.88);
}

.lp-play {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.lp-play svg {
  width: 22px;
  height: 22px;
  color: rgba(0, 0, 0, 0.70);
}

.lp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  box-sizing: border-box;
  max-width: 100%;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.70);
  white-space: nowrap;
  box-sizing: border-box;
}

.lp-hero__right {
  display: grid;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.lp-hero__media {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.lp-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-2-rgb), 0.10));
  opacity: 1;
  pointer-events: none;
}

.lp-hero__media .video-overlay-wrap {
  position: relative;
  z-index: 1;
  padding: 0;
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* Homepage demo: the right column stretches to match hero height; make video fill the card. */
body.page-home .lp-hero__media {
  height: 100%;
  min-height: 360px;
}

body.page-home .lp-hero__media .video-overlay-wrap {
  height: 100%;
}

body.page-home .prepared-video {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lp-hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Demo preview: keep it clean (no floating chips/cards). */
body.page-home .lp-hero__floats {
  display: none;
}

.lp-float-card {
  position: absolute;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.lp-float-card__title {
  font-size: 11px;
  opacity: 0.68;
}

.lp-float-card__value {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.lp-float-card--a {
  top: 82px;
  left: 22px;
}

.lp-float-card--b {
  bottom: 24px;
  left: 46px;
}

.lp-float-chip {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.lp-float-chip--c {
  top: 120px;
  right: 38px;
  transform: rotate(-8deg);
  color: var(--accent);
}

.lp-float-chip--d {
  bottom: 84px;
  right: 28px;
  transform: rotate(10deg);
  color: rgba(0, 0, 0, 0.50);
}

/* Trust row (logos) */
.lp-trust {
  text-align: center;
  padding: 12px 0 6px;
}

.lp-trust__title {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.78);
}

.lp-trust__logos {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: rgba(0, 0, 0, 0.35);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Support section */
.lp-support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

@media (min-width: 980px) {
  .lp-support__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: center;
  }
}

.lp-section-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(26px, 3.2vw, 42px);
}

.lp-section-desc {
  margin: 10px auto 0;
  max-width: 640px;
  text-align: center;
}

.lp-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}

.lp-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-stars {
  color: rgba(245, 170, 35, 1);
  letter-spacing: 2px;
  font-size: 14px;
}

.lp-rating__meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.lp-rating__label {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.56);
}

.lp-ratings__note {
  margin-top: 12px;
  max-width: 620px;
  font-size: 12px;
  line-height: 1.45;
}

.lp-support__right {
  display: grid;
  gap: 12px;
}

.lp-support-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  contain: layout style paint;
}

.lp-support-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lp-support-item__icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.lp-support-item__title {
  font-weight: 900;
}

.lp-support-item__desc {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.lp-hero__media-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  padding: 10px 14px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

/* macOS-like window dots */
.lp-hero__media-head::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 90, 90, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.10),
    14px 0 0 rgba(255, 200, 80, 0.94),
    14px 0 0 1px rgba(0, 0, 0, 0.10),
    28px 0 0 rgba(80, 210, 120, 0.92),
    28px 0 0 1px rgba(0, 0, 0, 0.10);
  filter: saturate(1.15) brightness(1.05);
}

.lp-hero__media-title {
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  font-weight: 850;
  letter-spacing: 0.2px;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.70);
}

.lp-hero__media-sub {
  font-size: 12px;
}

body.page-home .prepared-video {
  border: 0;
  border-radius: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  body.page-home .home-hero {
    text-align: center;
  }

  .lp-hero {
    gap: 12px;
  }

  .lp-hero__left {
    gap: 8px;
  }

  body.page-home .home-hero__brand {
    margin-left: auto;
    margin-right: auto;
  }

  body.page-home .lp-hero__floats {
    display: none;
  }

  body.page-home .lp-hero__media::before {
    inset: 0;
  }

  body.page-home .lp-hero__ctas {
    justify-content: center;
  }

  body.page-home .lp-hero__badges {
    justify-content: center;
  }
}

.home-hero__title {
  margin: 0;
}

.home-hero__subtitle {
  margin: 10px auto 0;
  max-width: 820px;
}

body.page-home .home-hero__brand {
  margin: 0 0 10px;
}

/* Glitch logo (homepage) */
.home-hero__brand {
  margin: 0 auto 10px;
}

/* Simple logo without glitch effects (performance optimization) */
.home-hero__logo {
  display: inline-block;
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  transition: opacity 0.3s ease;
}

/* Градиент применяется после загрузки для улучшения FCP/LCP */
body.gradients-loaded .home-hero__logo {
  background: linear-gradient(90deg, 
    #d4d4d4 0%, 
    #b8b8b8 25%, 
    #888888 50%, 
    #b8b8b8 75%, 
    #d4d4d4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: wspeak-silver-shimmer 6s ease-in-out infinite;
}

.glitch-logo {
  display: inline-grid;
  place-items: center;
  position: relative;
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: clamp(32px, 3.2vw, 63px);
  line-height: 1;
  color: rgba(0, 0, 0, 0.85);
  user-select: none;
  isolation: isolate;
}

.glitch-logo__layer {
  grid-area: 1 / 1;
  position: relative;
  display: inline-flex;
  gap: 0.02em;
}

.glitch-logo__layer--base {
  z-index: 3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.glitch-logo__layer--a,
.glitch-logo__layer--b,
.glitch-logo__layer--c {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.0;
  pointer-events: none;
}

.glitch-logo__layer--a {
  color: rgba(0, 255, 200, 0.95);
  mix-blend-mode: multiply;
}

.glitch-logo__layer--b {
  color: rgba(255, 70, 200, 0.95);
  mix-blend-mode: multiply;
}

.glitch-logo__layer--c {
  color: rgba(80, 140, 255, 0.95);
  mix-blend-mode: multiply;
}

.glitch-logo .glitch-ch {
  display: inline-block;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--rot, 0deg)) skewX(var(--skx, 0deg));
  opacity: var(--op, 1);
  will-change: transform, opacity;
}

.glitch-logo.is-burst .glitch-logo__layer--a,
.glitch-logo.is-burst .glitch-logo__layer--b,
.glitch-logo.is-burst .glitch-logo__layer--c {
  opacity: 0.85;
}

.glitch-logo.is-burst .glitch-logo__layer--a { animation: wspeak-glitch-slice-a 180ms steps(2, end) both; }
.glitch-logo.is-burst .glitch-logo__layer--b { animation: wspeak-glitch-slice-b 180ms steps(2, end) both; }
.glitch-logo.is-burst .glitch-logo__layer--c { animation: wspeak-glitch-slice-c 180ms steps(2, end) both; }

/* Glitch text (homepage headline/subtitle) */
.glitch-text {
  position: relative;
  display: inline-block;
  --gdx1: 0px;
  --gdy1: 0px;
  --gdx2: 0px;
  --gdy2: 0px;
  --gt1: 0%;
  --gb1: 0%;
  --gt2: 0%;
  --gb2: 0%;
  --gop: 0.0;
  --gblur: 0px;
}

/* Glitch text should not collapse block layout for headings/subtitles */
h1.glitch-text,
h2.glitch-text,
h3.glitch-text,
p.glitch-text {
  display: block;
}
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font: inherit;
  pointer-events: none;
  opacity: var(--gop);
  transform: translate(var(--footer-x, 0px), var(--footer-y, 0px)) rotate(var(--footer-rot, 0deg)) skewX(var(--comic-text-skew, -6deg));
  will-change: transform, clip-path, opacity, filter;
}

.glitch-text::before {
  transform: translate(var(--footer-x, 0px), var(--footer-y, 0px)) rotate(var(--footer-rot, 0deg)) skewX(var(--comic-text-skew, -6deg));
  transform: translate3d(var(--gdx1), var(--gdy1), 0);
  clip-path: inset(var(--gt1) 0 var(--gb1) 0);
  mix-blend-mode: multiply;
}

.glitch-text::after {
  color: rgba(255, 50, 200, 0.95);
  transform: translate3d(var(--gdx2), var(--gdy2), 0);
  clip-path: inset(var(--gt2) 0 var(--gb2) 0);
  mix-blend-mode: multiply;
}

.glitch-text.is-burst::before {
  animation: wspeak-glitch-text-a 160ms steps(2, end) both;
}

.glitch-text.is-burst::after {
  animation: wspeak-glitch-text-b 160ms steps(2, end) both;
}

.glitch-text.is-burst {
  --gop: 0.95;
  --gblur: 0.18px;
}

.glitch-text--sub {
  --gop: 0.0;
}

.glitch-text--sub.is-burst {
  --gop: 0.60;
  --gblur: 0.12px;
}

@keyframes wspeak-glitch-text-a {
  0% { clip-path: inset(10% 0 75% 0); opacity: 0.65; }
  35% { clip-path: inset(62% 0 18% 0); opacity: 0.95; }
  80% { clip-path: inset(22% 0 55% 0); opacity: 0.75; }
  100% { clip-path: inset(0 0 0 0); opacity: var(--gop); }
}

@keyframes wspeak-glitch-text-b {
  0% { clip-path: inset(68% 0 12% 0); opacity: 0.70; }
  40% { clip-path: inset(18% 0 64% 0); opacity: 0.95; }
  85% { clip-path: inset(40% 0 38% 0); opacity: 0.72; }
  100% { clip-path: inset(0 0 0 0); opacity: var(--gop); }
}

@keyframes wspeak-glitch-slice-a {
  0% { clip-path: inset(20% 0 70% 0); transform: translate3d(-2px, -1px, 0); }
  40% { clip-path: inset(65% 0 15% 0); transform: translate3d(4px, 1px, 0); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate3d(-5px, 0px, 0); }
  100% { clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
}

@keyframes wspeak-glitch-slice-b {
  0% { clip-path: inset(55% 0 25% 0); transform: translate3d(3px, 0px, 0); }
  35% { clip-path: inset(15% 0 70% 0); transform: translate3d(-6px, -1px, 0); }
  75% { clip-path: inset(75% 0 8% 0); transform: translate3d(5px, 1px, 0); }
  100% { clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
}

@keyframes wspeak-glitch-slice-c {
  0% { clip-path: inset(8% 0 78% 0); transform: translate3d(0px, 1px, 0); }
  45% { clip-path: inset(72% 0 12% 0); transform: translate3d(4px, -1px, 0); }
  85% { clip-path: inset(32% 0 46% 0); transform: translate3d(-4px, 0px, 0); }
  100% { clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-logo.is-burst .glitch-logo__layer--a,
  .glitch-logo.is-burst .glitch-logo__layer--b,
  .glitch-logo.is-burst .glitch-logo__layer--c {
    animation: none !important;
  }
  .glitch-logo .glitch-ch {
    transform: none !important;
  }

  .glitch-text::before,
  .glitch-text::after {
    content: none !important;
    animation: none !important;
  }
}

/* Account page */
.container.account-container {
  max-width: var(--container);
}

body.page-account {
  --account-chart-accent: var(--account-plan-accent, rgba(0, 130, 255, 0.92));
}

.page-account .account-container {
  display: grid;
  gap: 12px;
}

.page-account .account-container > .card {
  margin-bottom: 0;
}

.account-hero {
  position: relative;
  overflow: hidden;
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: -50% -45%;
  background: var(--account-plan-gradient, linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.10)));
  opacity: 0.30;
  filter: blur(46px) saturate(1.20);
  transform: rotate(14deg);
  pointer-events: none;
  z-index: 0;
}

.account-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.account-hero > * {
  position: relative;
  z-index: 1;
}

.account-hero__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

@media (min-width: 860px) {
  .account-hero__top {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.account-hero__profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.86);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

.account-hero__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.account-hero__email {
  margin: 4px 0 0;
}

.account-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px) saturate(1.20);
  -webkit-backdrop-filter: blur(14px) saturate(1.20);
  font-size: 12px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.72);
}

.account-badge--muted {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.62);
}

.account-badge__label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.55);
}

.account-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

@media (min-width: 860px) {
  .account-hero__actions {
    justify-content: flex-end;
  }
}

.account-hero__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 860px) {
  .account-hero__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.account-kpi {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding: 12px;
}

.account-kpi__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.56);
}

.account-kpi__value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.86);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.account-section-head h2 {
  margin: 0;
  /* Cards use overflow-wrap:anywhere; headings should wrap by words. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.account-section-head p {
  margin: 0;
}

@media (max-width: 480px) {
  .account-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.account-usage .account-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 860px) {
  .account-usage .account-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.account-metric {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.40);
  padding: 12px;
}

.account-metric__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-metric__value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.86);
}

.usage-progress {
  margin-top: 10px;
  border-radius: 999px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
}

.usage-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--account-plan-gradient, linear-gradient(135deg, rgba(0, 215, 200, 0.92), rgba(0, 130, 255, 0.82)));
  filter: saturate(1.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: width 420ms ease;
}

.account-chart {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.40);
  padding: 12px;
}

.account-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.account-chart__title {
  font-weight: 900;
  color: rgba(0, 0, 0, 0.84);
}

.usage-chart {
  width: 100%;
}

.usage-chart__svg {
  display: block;
}

.usage-chart__grid line {
  stroke: rgba(0, 0, 0, 0.10);
  stroke-width: 1;
}

.usage-chart__area {
  filter: saturate(1.10);
}

.usage-chart__line {
  stroke: var(--account-chart-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.usage-chart__dots circle {
  fill: rgba(255, 255, 255, 0.78);
  stroke: var(--account-chart-accent);
  stroke-width: 2;
}

.usage-chart__labels text {
  font-size: 12px;
  fill: rgba(0, 0, 0, 0.56);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex: 0 0 auto;
}

.status-pill > span {
  display: inline-block;
  line-height: 1.1;
}

.status-pill--paid {
  background: rgba(0, 215, 200, 0.18);
  border-color: rgba(0, 150, 135, 0.26);
  color: rgba(0, 90, 80, 0.88);
}

.status-pill--pending {
  background: rgba(255, 205, 90, 0.22);
  border-color: rgba(200, 140, 30, 0.28);
  color: rgba(120, 75, 20, 0.90);
}

.status-pill--processing {
  background: rgba(35, 120, 255, 0.16);
  border-color: rgba(35, 120, 255, 0.22);
  color: rgba(10, 70, 160, 0.90);
}

.status-pill--bad {
  background: rgba(255, 110, 160, 0.16);
  border-color: rgba(220, 80, 120, 0.24);
  color: rgba(140, 30, 60, 0.92);
}

.status-pill--neutral {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.70);
}

/* Purchases (Account) — match reference screenshot */
.account-purchases__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-purchases__head h2 {
  margin: 0;
}

.purchases-export {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 12px;
  /* Silver/grey (not blue) + avoid per-letter wrapping */
  color: rgba(90, 97, 110, 0.92);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.purchases-export__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.purchases-export svg {
  width: 18px;
  height: 18px;
}

.purchases-export:hover {
  background: rgba(90, 97, 110, 0.10);
}

.account-purchases .table-wrap {
  border-radius: 18px;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.account-purchases .table {
  table-layout: auto;
}

.account-purchases .table th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.62);
  background: rgba(255, 255, 255, 0.50);
}

.account-purchases .table th,
.account-purchases .table td {
  padding: 16px 14px;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.account-purchases .table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.42);
}

.cell-invoice {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.86);
}

.cell-date {
  color: rgba(0, 0, 0, 0.68);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.purchases-desc {
  min-width: 0;
}

.purchases-desc__main {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.90);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchases-desc__sub {
  font-size: 13px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-amount {
  font-weight: 700;
  white-space: nowrap;
}

.receipt-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: rgba(35, 120, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.receipt-btn svg {
  width: 18px;
  height: 18px;
}

.receipt-btn:hover {
  background: rgba(35, 120, 255, 0.10);
}

.receipt-dash {
  color: rgba(0, 0, 0, 0.32);
}

.purchases-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.purchases-pagination {
  display: inline-flex;
  gap: 10px;
}

.purchases-page-btn {
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.purchases-page-btn:disabled {
  opacity: 0.55;
}

.purchases-callout {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(35, 120, 255, 0.26);
  background: rgba(35, 120, 255, 0.07);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.purchases-callout__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(35, 120, 255, 0.92);
  background: rgba(35, 120, 255, 0.14);
}

.purchases-callout__title {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.86);
}

.purchases-callout__desc {
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.70);
}

@media (max-width: 720px) {
  .container.account-container {
    padding: 14px;
  }

  .account-container > .card {
    padding: 14px;
  }
}

.account-auto-renew {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-auto-renew-hint {
  margin-top: 6px;
}

.account-bottom-actions {
  margin-top: 14px;
  display: grid;
  justify-items: start;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-glass);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 200ms ease;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Homepage demo preview card: no inner padding (true edge-to-edge media). */
body.page-home .lp-hero__media.card {
  padding: 0;
}

.prepared-video-wrap {
  margin-top: 12px;
}

.prepared-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  object-fit: cover;
}

.video-overlay-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  contain: layout;
}

.video-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  pointer-events: none;
}

.video-overlay-inner {
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  padding: 12px;
}

.video-overlay-title {
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  font-weight: 800;
  margin-bottom: 6px;
}

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

/* Video overlays on mobile: don't cover the video; make text readable */
@media (max-width: 720px), (pointer: coarse) {
  .video-overlay {
    position: static;
    padding: 10px 0 0;
    pointer-events: auto;
  }

  .video-overlay-inner {
    padding: 10px;
    max-height: 42vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .video-overlay-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .video-overlay-text {
    font-size: 14px;
    line-height: 1.45;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  transition: background 140ms ease, border-color 140ms ease;
  position: relative;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
}

.btn__label {
  transition: opacity 400ms ease;
}

.btn__spinner {
  --wspeak-spinner-scale: 0.72;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  border-top-color: rgba(0, 0, 0, 0.68);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg) scale(var(--wspeak-spinner-scale));
  transition: opacity 400ms ease, transform 400ms ease;
  animation: wspeak-btn-spin 820ms linear infinite;
  pointer-events: none;
}

.btn.is-loading {
  cursor: wait;
}

.btn.is-loading .btn__spinner {
  --wspeak-spinner-scale: 1;
  opacity: 1;
}

.btn.is-loading .btn__label {
  opacity: 0;
}

@keyframes wspeak-btn-spin {
  to { transform: translate(-50%, -50%) rotate(360deg) scale(var(--wspeak-spinner-scale)); }
}

/* Verify email button: during async send, show only the spinner. */
.btn-verify-email.is-loading {
  gap: 0;
}

.btn-verify-email.is-loading .btn__label {
  display: none;
}

button.btn {
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.btn:active {
  background: rgba(255, 255, 255, 0.78);
}

.btn.primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  min-width: 135px;
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.62);
  /* Wave palette (silver) */
  --wave-a: rgba(35, 38, 46, 0.18);
  --wave-b: rgba(255, 255, 255, 0.72);
  --wave-c: rgba(205, 210, 220, 0.62);
  --wave-d: rgba(120, 128, 142, 0.26);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 160ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.btn.primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(120% 220% at 0% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(
      115deg,
      var(--wave-b) 0%,
      rgba(255, 255, 255, 0.16) 18%,
      var(--wave-c) 36%,
      rgba(255, 255, 255, 0.10) 52%,
      var(--wave-d) 70%,
      var(--wave-b) 100%
    );
  background-size: 140% 140%, 300% 100%;
  background-position: 0% 0%, 0% 50%;
  opacity: 0.95;
  pointer-events: none;
  z-index: -2;
  animation: wspeak-wave-shimmer 4.6s ease-in-out infinite;
  transition: opacity 240ms ease;
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.22)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.0) 72%),
    radial-gradient(140% 200% at 0% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
  opacity: 0.78;
  pointer-events: none;
  z-index: -1;
}

@keyframes wspeak-wave-shimmer {
  0%   { background-position: 0% 0%, 0% 50%; }
  50%  { background-position: 0% 0%, 100% 50%; }
  100% { background-position: 0% 0%, 0% 50%; }
}

.btn.primary:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.btn.primary:hover::before {
  opacity: 1;
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

.btn.primary:focus-visible {
  outline: none;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(90, 97, 110, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .btn.primary::before { animation: none; }
}


.site-nav-cta {
  min-width: 0;
}

.muted { opacity: 0.8; }

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

/* Auth page (migrated from inline <style>) */
.auth-page {
  max-width: none;
}

.auth-card {
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .auth-card {
    width: 400px;
  }
}

@media (max-width: 768px) {
  .auth-card {
    width: 400px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    width: 400px;
  }
}

@media (max-width: 380px) {
  .auth-card {
    width: 320px;
  }
}

@media (max-width: 320px) {
  .auth-card {
    width: 320px;
  }
}

/* 320px — 480px: Mobile devices
481px — 768px: iPads, Tablets
769px — 1024px: Small screens, laptops
1025px — 1200px: Desktops, large screens
1201px and more —  Extra large screens, TV */

.btn.block {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

/* Respect the HTML [hidden] attribute for buttons/links (avoid specificity overrides). */
.btn[hidden] {
  display: none;
}

/* Respect [hidden] on any element (Safari + layout overrides). */
[hidden] {
  display: none !important;
}

/* Auth: Continue button (light gray like cookie notice, but not black) */
.auth-continue {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
}

.hint {
  opacity: 0.75;
  font-size: 13px;
  margin-top: 10px;
}

.error {
  color: #c00;
  margin-top: 10px;
  white-space: pre-wrap;
}

.ok {
  color: #0a7;
  margin-top: 10px;
  white-space: pre-wrap;
}

.sep {
  margin: 18px 0;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.auth-page label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
}

.auth-page input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  outline: none;
}

.auth-page input:focus {
  border-color: var(--border-strong);
}

/* Auth inputs: comic-ink look (email + forgot email too). */
body.theme-comic .auth-page input {
  border: 2px solid var(--border-strong, var(--border));
  border-radius: 14px;
  background:
    radial-gradient(220px circle at 20% 18%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0) 52%),
    rgba(255, 255, 255, 0.90);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.60);
  transform: rotate(-0.7deg) skewX(-6deg);
  transform-origin: 50% 50%;
}

body.theme-comic .auth-page input:focus {
  border-color: rgba(0, 0, 0, 0.86);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.66);
}

body.theme-comic .auth-page label {
  transform: rotate(0.6deg) skewX(6deg);
  transform-origin: 0 50%;
}

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

.emailRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

/* When the magic-link button is hidden, make the row a single full-width column. */
.emailRow.is-single {
  grid-template-columns: 1fr;
  gap: 0;
}

.emailRow input {
  min-height: 44px;
}

.emailRow .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Ensure hidden buttons are truly hidden even inside .emailRow. */
.emailRow .btn[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .emailRow {
    grid-template-columns: 1fr;
  }
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.actions .btn {
  margin-top: 0;
}

.emailActions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.subactions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.small {
  font-size: 13px;
  opacity: 0.85;
}

#passwordStep {
  display: grid;
  gap: 10px;
}

#passwordStep[hidden] {
  display: none;
}

#passwordStep .subactions {
  margin-top: 0;
  font-size: 13px;
}

/* Pricing (homepage) */
.pricing-head {
  margin: 32px 0 14px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.pricing-feature--strike {
  text-decoration: line-through;
  opacity: 0.62;
}

.pricing-feature--promo {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.pricing-promo-timer {
  margin: 10px auto 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.pricing-promo-timer__label {
  font-size: 11px;
}

.pricing-promo-timer__value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.95);
}

.pricing-head__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.pricing-head__title h2 {
  width: fit-content;
  text-align: center;
}

.pricing-info-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}

.pricing-info-btn svg {
  width: 18px;
  height: 18px;
}

.pricing-info-btn:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.9);
  outline-offset: 3px;
}

.pricing-info-popover {
  position: absolute;
  top: -25px;
  left: -5%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 260px;
  max-width: 360px;
  display: none;
  overflow: visible;
}

@media (max-width: 720px), (pointer: coarse) {
  .pricing-info-popover {
    top: -80px;
    left: 50%;
    z-index: 80;
    overflow: visible;
  }
}

/* Promo visibility on the free (white) card */
.pricing-card--basic .pricing-feature--promo {
  color: rgba(var(--accent-rgb), 1);
}

.pricing-card--basic .pricing-promo-timer {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.10);
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pricing-card--basic .pricing-promo-timer__label {
  color: rgba(55, 65, 81, 0.85);
}

.pricing-card--basic .pricing-promo-timer__value {
  color: rgba(var(--accent-rgb), 1);
  font-size: 16px;
}

.pricing-info-popover.is-open {
  display: block;
}

.pricing-info-popover__inner {
  position: relative;
  padding: 12px 14px;
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.78);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(0, 0, 0, 0.92);
  font-size: 13px;
  line-height: 1.35;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

/* Comic tail for pricing info bubble */
.pricing-info-popover__inner::before,
.pricing-info-popover__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-20%) rotate(10deg);
  width: 0;
  height: 0;
  border-style: solid;
}

.pricing-info-popover__inner::before {
  border-width: 14px 12px 0 12px;
  border-color: rgba(0, 0, 0, 0.78) transparent transparent transparent;
}

.pricing-info-popover__inner::after {
  bottom: -12px;
  border-width: 12px 10px 0 10px;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Pricing background artwork: Kaonashi SVG (provided by user) */
.pricing {
  position: relative;
  overflow: visible;
}

.pricing > .pricing-head {
  position: relative;
  z-index: 4;
}

@media (max-width: 720px), (pointer: coarse) {
  /* Let the pricing info bubble appear over the feature cards above. */
  .pricing > .pricing-head {
    z-index: 12;
  }
}

.pricing > .pricing-grid {
  position: relative;
  z-index: 2;
}

/* When models popover is visible, ensure it can appear above the pricing header + info button. */
.pricing.has-models-popover-open > .pricing-grid {
  z-index: 30;
}

/* CSS fallback: keep models popover above the header even if JS hover-binding fails. */
@media (hover: hover) and (pointer: fine) {
  .pricing:hover > .pricing-grid {
    z-index: 30;
  }
}

.pricing-head .pricing-info-popover {
  z-index: 60;
}

.pricing-kaonashi {
  position: absolute;
  left: -33%;
  top: 50%;
  width: min(480px, 94vw);
  height: 480px;
  --kaonashi-tx: 0px;
  --kaonashi-ty: -50%;
  transform: translate(var(--kaonashi-tx), var(--kaonashi-ty));
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  filter: saturate(0.95);
  animation: ip-kaonashi-float 6.2s ease-in-out infinite;
}

@media (max-width: 450px), (pointer: coarse) {
  .pricing-kaonashi {
    top: -99%;
    left: 50%;
  }
}

@media (max-width: 720px), (pointer: coarse) {
  .pricing-kaonashi {
    top: 20%;
    left: 50%;
    --kaonashi-tx: -50%;
    --kaonashi-ty: -50%;
  }
}

.pricing-kaonashi__img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: contain;
}

.pricing-kaonashi.has-kaonashi-inline > img[data-kaonashi-fallback="1"] {
  display: none;
}

.pricing-kaonashi .kaonashi-svg,
.promo-kaonashi .kaonashi-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  /* Allow overflow for filter effects (drop-shadow) */
  overflow: visible;
}

@keyframes ip-kaonashi-float {
  0%, 100% { transform: translate(var(--kaonashi-tx), var(--kaonashi-ty)); }
  50% { transform: translate(var(--kaonashi-tx), calc(var(--kaonashi-ty) - 10px)); }
}

/* Promo ghost intro (homepage): appear -> "talk" -> disappear */
.promo-ghost-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: start center;
  padding: 86px 16px 16px;
  pointer-events: none;
}

.promo-ghost-stage {
  position: relative;
  width: min(560px, 94vw);
  height: 520px;
}

.promo-kaonashi {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 340px;
  height: 520px;
  z-index: 1;
  transform: translateX(-50%) translateY(-10px) scale(0.94);
  opacity: 0;
  filter: saturate(0.95) drop-shadow(0 24px 70px rgba(0, 0, 0, 0.30));
}

.promo-kaonashi.has-kaonashi-inline > img[data-kaonashi-fallback="1"] {
  display: none;
}

.kaonashi-svg {
  width: 100%;
  height: 100%;
  min-width: 1px;
  min-height: 1px;
  display: block;
  pointer-events: none;
  /* Use clip instead of visible to comply with modern browser standards */
  /* Filter edges are handled by proper SVG viewBox sizing instead */
  overflow: clip;
}

.promo-ghost-bubble {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translateX(-50%) translateY(-18px) scale(0.98);
  opacity: 0;
  max-width: min(520px, 92vw);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 24, 32, 0.52);
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

/* Comic-style speech bubble (promo only) */
.promo-ghost-bubble--comic {
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.78);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(0, 0, 0, 0.92);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

.promo-ghost-bubble--comic .promo-ghost-bubble__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.promo-ghost-bubble--comic::before,
.promo-ghost-bubble--comic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-36%) rotate(8deg);
  width: 0;
  height: 0;
  border-style: solid;
}

/* Tail border */
.promo-ghost-bubble--comic::before {
  border-width: 14px 12px 0 12px;
  border-color: rgba(0, 0, 0, 0.78) transparent transparent transparent;
}

/* Tail fill */
.promo-ghost-bubble--comic::after {
  bottom: -12px;
  border-width: 12px 10px 0 10px;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.promo-ghost-bubble__title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.promo-ghost-bubble__text {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
}

@keyframes ip-promo-ghost-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.92); }
  60% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.00); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.00); }
}

@keyframes ip-promo-ghost-idle {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1.00); }
  50% { transform: translateX(-50%) translateY(-10px) scale(1.00); }
}

@keyframes ip-promo-bubble-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.98); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.00); }
}

@keyframes ip-promo-out-ghost {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.00); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.985); }
}

@keyframes ip-promo-out-bubble {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.00); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.985); }
}

.promo-ghost-overlay.is-in .promo-kaonashi {
  opacity: 1;
  animation:
    ip-promo-ghost-in 620ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards,
    ip-promo-ghost-idle 2.8s ease-in-out 680ms infinite;
}

.promo-ghost-overlay.is-in .promo-ghost-bubble {
  opacity: 1;
  animation: ip-promo-bubble-in 520ms cubic-bezier(0.2, 0.9, 0.2, 1) 180ms forwards;
}

@media (max-width: 420px) {
  .promo-ghost-overlay {
    padding: 64px 12px 12px;
  }

  .promo-ghost-stage {
    width: min(520px, 96vw);
    height: 460px;
  }

  .promo-kaonashi {
    top: 70px;
    width: 300px;
    height: 460px;
  }

  .promo-ghost-bubble {
    max-width: min(520px, 96vw);
  }
}

.promo-ghost-overlay.is-out .promo-kaonashi {
  animation: ip-promo-out-ghost 700ms ease forwards;
}

.promo-ghost-overlay.is-out .promo-ghost-bubble {
  animation: ip-promo-out-bubble 700ms ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .promo-ghost-overlay.is-in .promo-kaonashi,
  .promo-ghost-overlay.is-in .promo-ghost-bubble,
  .promo-ghost-overlay.is-out .promo-kaonashi,
  .promo-ghost-overlay.is-out .promo-ghost-bubble {
    animation: none;
  }

  .promo-kaonashi {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .promo-ghost-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }

}

@media (prefers-reduced-motion: reduce) {
  .pricing-kaonashi {
    animation: none;
  }
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

/* Pricing cards — screenshot-like layout (glass + gradient) */
.pricing-card {
  /* article already has .card for border/backdrop; here we override to match screenshot */
  position: relative;
  padding: 0;
  overflow: visible;
  border-radius: 18px;
  opacity: 1;
  transition: box-shadow 220ms ease, opacity 300ms ease;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.08);
  contain: layout style;
}

@media (hover: hover) and (pointer: fine) {
  /* Ensure hovered card (and its popover) paints above neighbors. */
  .pricing-card:hover {
    z-index: 5;
  }

  /* Subscribe page: the models popover must paint above the sticky topbar. */
  .subscribe-stack .pricing-card:hover {
    z-index: 120;
  }
}

/* Pricing: reveal animation (enabled by JS via .pricing--anim) */
.pricing.pricing--anim .pricing-card {
  opacity: 0;
  transition: box-shadow 220ms ease, opacity 380ms ease;
  transition-delay: var(--pricing-reveal-delay, 0ms);
}

.pricing.pricing--anim.pricing--inview .pricing-card {
  opacity: 1;
}

/* When section leaves viewport, hide immediately (no staggered delay). */
.pricing.pricing--anim:not(.pricing--inview) .pricing-card {
  transition-delay: 0ms;
}

@media (hover: hover) and (pointer: fine) {
  /* Homepage pricing: dim all cards on hover, keep hovered one fully opaque. */
  body.page-home .pricing:hover .pricing-card {
    opacity: 0.86;
    transition-delay: 0ms;
  }

  body.page-home .pricing:hover .pricing-card:hover {
    opacity: 1;
    transition-delay: 0ms;
  }
}

@media (hover: none) {
  .pricing-card {
    opacity: 1;
  }
}

.pricing-card--shell {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: inherit;
  isolation: isolate;
}

/* Pricing: iridescent "oil/water" shimmer overlay (paid + base). */
.pricing-card--shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: var(--oil-opacity, 0.46);
  background:
    radial-gradient(120% 90% at 18% 14%, rgba(0, 215, 200, 0.42), rgba(255, 255, 255, 0) 58%),
    radial-gradient(110% 86% at 82% 26%, rgba(190, 95, 255, 0.34), rgba(255, 255, 255, 0) 60%),
    radial-gradient(95% 76% at 44% 92%, rgba(35, 120, 255, 0.40), rgba(255, 255, 255, 0) 62%),
    radial-gradient(90% 70% at 72% 78%, rgba(255, 110, 160, 0.28), rgba(255, 255, 255, 0) 62%),
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(255, 255, 255, 0.00) 0deg,
      rgba(255, 255, 255, 0.26) 60deg,
      rgba(var(--default-accent-rgb), 0.22) 120deg,
      rgba(0, 215, 200, 0.18) 175deg,
      rgba(var(--default-accent-2-rgb), 0.22) 230deg,
      rgba(255, 255, 255, 0.18) 285deg,
      rgba(255, 255, 255, 0.00) 360deg
    );
  background-size: 220% 220%, 240% 240%, 220% 220%, 220% 220%, 170% 170%;
  background-position: 0% 10%, 100% 0%, 40% 100%, 80% 90%, 50% 50%;
  mix-blend-mode: overlay;
  filter: blur(14px) saturate(2.05) contrast(1.18) brightness(1.05);
  will-change: transform, background-position;
  transform: translate3d(0, 0, 0);
  animation: ip-oil-flow 12.5s ease-in-out infinite;
}

.pricing-card--paid .pricing-card--shell::before {
  --oil-opacity: 0.68;
  mix-blend-mode: color-dodge;
  filter: blur(12px) saturate(2.35) contrast(1.22) brightness(1.08);
}

.pricing-card--basic .pricing-card--shell::before {
  --oil-opacity: 0.34;
  mix-blend-mode: screen;
  filter: blur(16px) saturate(1.95) contrast(1.16) brightness(1.04);
}

@keyframes ip-oil-flow {
  0% {
    background-position: 0% 10%, 100% 0%, 40% 100%, 80% 90%, 50% 50%;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    background-position: 110% 60%, -10% 70%, 60% -10%, 30% 20%, 50% 50%;
    transform: translate3d(0, 0, 0) rotate(22deg) scale(1.04);
  }
  100% {
    background-position: 0% 10%, 100% 0%, 40% 100%, 80% 90%, 50% 50%;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

/* Pricing: models popover (comic bubble) */
.pricing-models-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 1200;
  width: min(340px, calc(100% - 24px));
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.985);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  will-change: opacity, transform;
}

/* Subscribe page: support the click-to-open state on touch devices too. */
.subscribe-stack .pricing-card.is-models-open {
  z-index: 120;
}

.pricing-models-popover__inner {
  position: relative;
  padding: 12px 14px;
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.78);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(0, 0, 0, 0.92);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

/* Comic tail (same style as pricing info bubble) */
.pricing-models-popover__inner::before,
.pricing-models-popover__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-20%) rotate(10deg);
  width: 0;
  height: 0;
  border-style: solid;
}

.pricing-models-popover__inner::before {
  border-width: 14px 12px 0 12px;
  border-color: rgba(0, 0, 0, 0.78) transparent transparent transparent;
}

.pricing-models-popover__inner::after {
  bottom: -12px;
  border-width: 12px 10px 0 10px;
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

.pricing-models-popover__title {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.1;
}

.pricing-models-popover__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.25;
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover .pricing-models-popover {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
  }
}

.pricing-card.is-models-open .pricing-models-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Desktop: slow placeholder fade for auth text fields */
@media (hover: hover) and (pointer: fine) {
  .auth-page input[type="email"]::placeholder,
  .auth-page input[type="password"]::placeholder,
  .auth-page input[type="text"]::placeholder {
    opacity: 0;
    transition: opacity 1200ms ease;
  }

  .auth-page input[type="email"]:hover::placeholder,
  .auth-page input[type="email"]:focus::placeholder,
  .auth-page input[type="password"]:hover::placeholder,
  .auth-page input[type="password"]:focus::placeholder,
  .auth-page input[type="text"]:hover::placeholder,
  .auth-page input[type="text"]:focus::placeholder {
    opacity: 0.78;
  }
}

/* Paid plans get a subtle gradient background under glass */
.pricing-card--paid {
  --plan-accent: rgba(0, 0, 0, 0.92);
  --plan-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.10));
}

/* Ensure gradient is the only fill (avoid iOS/mobile looking "white" at edges). */
.pricing-card.pricing-card--paid {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.pricing-card--paid .pricing-card__bg {
  position: absolute;
  /* Extend under the border to avoid visible "gutters" at the edges (desktop + mobile). */
  inset: 0;
  border-radius: inherit;
  background: var(--plan-gradient);
  background-size: 140% 140%;
  background-position: 50% 50%;
  transition: none;
  z-index: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .pricing-card--shell::before { animation: none; opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card--paid:hover {
    box-shadow:
      0 26px 70px rgba(0, 0, 0, 0.14),
      0 10px 24px rgba(0, 0, 0, 0.10);
  }
}

/* Basic: same shell, but no internal gradient fill */
.pricing-card--basic .pricing-card__bg {
  display: none;
}

.pricing-card__header {
  position: relative;
  z-index: 2;
  padding: 16px 18px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.pricing-card--paid .pricing-card__header {
  color: rgba(255, 255, 255, 0.95);
}

.pricing-card__icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  transition: none;
}

.pricing-card__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.95;
}

.pricing-card__icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.pricing-card__name {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 14px;
}

.pricing-card__body {
  position: relative;
  z-index: 2;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.pricing-badges {
  position: relative;
  min-height: 54px;
}

.pricing-badge-pill {
  position: absolute;
  top: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  max-width: calc(100% - 18px);
  white-space: nowrap;
}

.pricing-badge-pill--left {
  left: -10px;
}

.pricing-badge-pill--right {
  right: -10px;
}

.pricing-badge-pill__main {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.pricing-badge-pill__suffix {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.72;
}

.pricing-badge-pill__label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.78;
  position: relative;
  display: inline-block;
}

.pricing-badge-pill__text--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: var(--plan-gradient);
  background-size: 140% 140%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: none;
  pointer-events: none;
}

.pricing-card--paid .pricing-badge-pill__main,
.pricing-card--paid .pricing-badge-pill__label {
  color: var(--plan-accent);
}

.pricing-subtext {
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  margin-top: 6px;
}

.pricing-card--paid .pricing-subtext,
.pricing-card--paid .pricing-subtext.muted {
  opacity: 1;
  color: rgba(255, 255, 255, 0.86);
}

.pricing-note {
  font-size: 12px;
  text-align: center;
}

.pricing-card--paid .pricing-note,
.pricing-card--paid .pricing-note.muted {
  opacity: 1;
  color: rgba(255, 255, 255, 0.76);
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pricing-feature-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  overflow-wrap: normal;
  word-break: normal;
}

.pricing-feature-list li::before {
  content: "✓";
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.pricing-card--basic .pricing-feature-list li::before {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.22);
}

.pricing-cta-pill {
  margin-top: auto;
  align-self: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 0;
}

/* Mobile adjustments for pricing cards */
@media (max-width: 520px) {
  .pricing-card--shell { min-height: unset; }
}

@media (max-width: 420px) {
  .pricing-badges {
    min-height: 54px;
  }

  .pricing-badge-pill {
    max-width: calc(100% - 12px);
  }

  /* Right pill overlaps and moves toward center */
  .pricing-badge-pill--right {
    right: 33.3%;
    /* left: 35%; */
    /* align-self: center; */
    /* transform: translateX(-100%); */
  }

  .pricing-badge-pill__main { font-size: 28px; }
}


.pricing-card--basic .pricing-cta-pill {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.pricing-card--paid .pricing-cta-pill {
  color: rgba(255, 255, 255, 0.96);
}

.pricing-cta-pill:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.20);
}

.pricing-card--plan7 { --plan-accent: rgba(0, 150, 135, 1); --plan-gradient: linear-gradient(135deg, rgba(0, 215, 200, 0.92), rgba(0, 130, 255, 0.82)); }
.pricing-card--plan30 { --plan-accent: rgba(120, 75, 170, 1); --plan-gradient: linear-gradient(135deg, rgba(190, 95, 255, 0.88), rgba(35, 120, 255, 0.80)); }
.pricing-card--plan90 { --plan-accent: rgba(90, 97, 110, 1); --plan-gradient: linear-gradient(135deg, rgba(40, 44, 54, 0.88), rgba(210, 215, 224, 0.86)); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* iOS Safari: backdrop-filter can break hit-testing on interactive elements */
@supports (-webkit-touch-callout: none) {
  .btn,
  .card,
  .site-topbar,
  .cookie-notice,
  .ip-snackbar,
  .ip-modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Top snackbar (shared) */
.ip-snackbar {
  position: fixed;
  left: 50%;
  top: 12px;
  z-index: 40;
  display: none;
  width: min(560px, calc(100% - 24px));
  transform: translateX(-50%) rotate(-0.65deg) skewX(-4deg);
  transform-origin: 50% 0;
  border: 3px solid var(--border-strong);
  border-radius: 18px 14px 22px 16px;
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.10) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ip-snackbar.ip-snackbar--success {
  border-color: var(--snack-success-border);
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.10) 58% 96%, transparent 96%),
    linear-gradient(var(--snack-success-bg), var(--snack-success-bg)),
    rgba(255, 255, 255, 0.92);
}

.ip-snackbar.ip-snackbar--error {
  border-color: var(--snack-error-border);
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.10) 58% 96%, transparent 96%),
    linear-gradient(var(--snack-error-bg), var(--snack-error-bg)),
    rgba(255, 255, 255, 0.92);
}

.ip-snackbar-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.ip-snackbar-text {
  text-align: center;
  justify-self: center;
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ip-snackbar-close {
  width: 40px;
  height: 40px;
  border-radius: 14px 10px 16px 12px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  font-size: 26px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.78);
}

.ip-snackbar-close:hover {
  background: rgba(255, 255, 255, 0.86);
}

/* Global modal (blur confirm) */
.ip-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
  z-index: 60;
}

.ip-modal {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ip-modal-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.ip-modal-body {
  margin: 0;
}

.ip-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Liquid glass top bar */
.site-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-topbar {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(30px) saturate(1.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-topbar { background: var(--bg-topbar); }

/* At the very top: topbar "merged" with background */
.site-topbar-wrap[data-topbar="top"] .site-topbar {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Scrolled: bring back the current glass/transparent look */
.site-topbar-wrap[data-topbar="scrolled"] .site-topbar {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-topbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-menu-toggle {
  display: none;
  font-size: 0.8125rem;
  font-weight: 300;
  padding: 7px 10px;
  line-height: 1.2;
}

.site-menu-toggle-label {
  display: inline-block;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-topbar-wrap[data-menu="open"] .site-menu-toggle-label {
  transform: translateY(-1px);
}

.site-menu-icon {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-menu-icon__bar {
  height: 2px;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
}

.site-menu-toggle.is-open .site-menu-icon__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle.is-open .site-menu-icon__bar:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle.is-open .site-menu-icon__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 7px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.66);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.15;
  transition: color 140ms ease, background 140ms ease;
}

.site-nav-link:hover {
  color: rgba(0, 0, 0, 0.88);
  background: rgba(255, 255, 255, 0.55);
}

.site-nav-cta {
  font-size: 0.875rem;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 16px;
  padding-right: 16px;
}

.site-nav-cta--icon {
  min-width: 44px;
  padding-left: 14px;
  padding-right: 14px;
}

.site-nav-cta__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* Brand text reveal on scroll (sync with topbar state) */
.site-brand-text {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
  color: #000;
  will-change: opacity, transform;
}

/* Градиент применяется после загрузки для улучшения FCP/LCP */
body.gradients-loaded .site-brand-text {
  background: linear-gradient(90deg, 
    #d4d4d4 0%, 
    #b8b8b8 25%, 
    #888888 50%, 
    #b8b8b8 75%, 
    #d4d4d4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: wspeak-silver-shimmer 6s ease-in-out infinite;
}

.site-topbar-wrap[data-topbar="scrolled"] .site-brand-text {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 721px) {
  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    padding: 2px 6px 6px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav-link,
  .site-nav-cta {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-brand-text { transition: none; }
  .site-topbar { transition: none; }
}

/* Demo modal (homepage) */
.ip-demo-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  overflow: auto;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.ip-demo-modal {
  position: relative;
  width: min(980px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  overflow: hidden;
  max-height: calc(100vh - (var(--pad) * 2));
  display: grid;
  grid-template-rows: auto 1fr;
}

.ip-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ip-demo-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.ip-demo-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.ip-demo-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ip-demo-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ip-demo-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ip-demo-nav-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ip-demo-nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ip-demo-nav-icon {
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.ip-demo-nav-btn svg {
  width: 18px;
  height: 18px;
}

.ip-demo-body {
  padding: 14px 16px 16px;
}

.ip-demo-body {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.ip-demo-player {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 70vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.26);
  object-fit: contain;
  display: block;
}

/* Demo modal: comic redesign (same structure, new visuals). */
body.theme-comic .ip-demo-backdrop {
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

body.theme-comic .ip-demo-modal {
  border: 4px solid var(--border-strong);
  border-radius: 22px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.05) 0 1px,
      rgba(255, 255, 255, 0) 1px 12px
    ),
    rgba(255, 255, 255, 0.92);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: rotate(-1.2deg) skewX(-6deg);
  transform-origin: 50% 50%;
  isolation: isolate;
}

body.theme-comic .ip-demo-modal::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 0;
}

body.theme-comic .ip-demo-modal > * {
  position: relative;
  z-index: 1;
}

body.theme-comic .ip-demo-head {
  border-bottom: 3px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

body.theme-comic .ip-demo-title {
  color: rgba(0, 0, 0, 0.92);
  transform: rotate(-0.65deg) skewX(-10deg);
  transform-origin: 0 50%;
}

body.theme-comic .ip-demo-close,
body.theme-comic .ip-demo-nav-btn {
  border: 2px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.90);
  color: rgba(0, 0, 0, 0.92);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.62);
}

body.theme-comic .ip-demo-nav-btn {
  transform: rotate(-1deg) skewX(-6deg);
}

body.theme-comic .ip-demo-nav-btn.ip-demo-next {
  transform: rotate(1.2deg) skewX(-6deg);
}

body.theme-comic .ip-demo-close {
  transform: rotate(1.6deg) skewX(-6deg);
  font-weight: 900;
}

@media (hover: hover) and (pointer: fine) {
  body.theme-comic .ip-demo-close:hover,
  body.theme-comic .ip-demo-nav-btn:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px) rotate(0.8deg) skewX(-6deg);
  }
}

body.theme-comic .ip-demo-player {
  border: 3px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
  border-radius: 18px;
}

body.theme-comic .ip-demo-meta {
  color: rgba(0, 0, 0, 0.66);
  opacity: 1;
  font-weight: 800;
  transform: rotate(-0.35deg) skewX(-8deg);
  transform-origin: 0 50%;
}

/* Scroll lock when demo modal is open (set by JS). */
html.ip-demo-open,
body.ip-demo-open {
  overflow: hidden;
}

.lp-how .lp-section-desc,
.lp-features .lp-section-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.ip-demo-meta {
  font-size: 12px;
  opacity: 0.85;
}

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

.ip-demo-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.ip-demo-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.26);
}

@media (max-width: 900px) {
  .ip-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .ip-demo-grid { grid-template-columns: 1fr; }
}

.site-footer {
  margin-top: 20px;
  flex-shrink: 0;
}

/* Expanded footer links (above the simple footer) */
.site-footer-mega {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.site-footer-mega-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 22px;
}

@media (max-width: 900px) {
  .site-footer-mega-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer-mega-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer-brand-title {
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 10px;
  white-space: nowrap;
}

.site-footer-brand-desc {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}

.site-footer-title {
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color 140ms ease;
}

/* При hover на колонку — чуть темнее (без opacity). */
.site-footer-col:hover .site-footer-title {
  color: var(--text);
}

.site-footer-list {
  display: grid;
  gap: 8px;
}

.site-footer-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-muted);
  transform: rotate(var(--comic-ui-rot, 0deg)) skewX(var(--comic-text-skew, -6deg));
  transform-origin: 0 50%;
  transition: color 140ms ease, transform 140ms ease;
}

body:not(.theme-comic) .site-footer-list a,
body:not(.theme-comic) .site-footer-credit-link,
body:not(.theme-comic) .site-social {
  --comic-text-skew: -6deg;
  --comic-menu-hover-rot: -1.65deg;
}

.site-footer-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-desc-break {
  display: none;
}

@media (min-width: 720px) {
  .footer-desc-break {
    display: inline;
  }
}

/* Footer: server status indicator */
.ip-server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.ip-server-status-text {
  font-size: 13px;
}

.ip-server-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.18);
}

@keyframes ip-server-blink {
  0% { opacity: 0.25; }
  50% { opacity: 1; }
  100% { opacity: 0.25; }
}

.ip-server-status--ok .ip-server-status-dot {
  border-color: var(--snack-success-border);
  background: var(--snack-success-bg);
  animation: ip-server-blink 1.1s ease-in-out infinite;
}

.ip-server-status--down .ip-server-status-dot {
  border-color: var(--snack-error-border);
  background: var(--snack-error-bg);
  animation: none;
  opacity: 1;
}

/* Default list indentation for content pages (pricing lists override this). */
main ul,
main ol {
  padding-left: 18px;
}

/* Pricing section headings (used on multiple pages) */
.pricing-head h2 {
  margin: 0;
  text-align: center;
}

/* Home: two-column row helper */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 780px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Download page grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Download CTA */
.download-cta {
  margin: 12px 0px;
  display: flex;
  justify-content: flex-start;
}

.download-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

.download-icon-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.download-icon-title {
  display: block;
  font-weight: 700;
  line-height: 1.2;
}

.download-icon-sub {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

/* Auth: password visibility toggle */
.ws-input-wrap {
  position: relative;
  width: 100%;
}

.ws-input-wrap input {
  padding-right: 44px;
}

.ws-input-icon-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Ensure the pointer cursor also shows over the SVG/path (global cursor default overrides children). */
.ws-input-icon-btn * {
  cursor: pointer;
}

.ws-input-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ws-input-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Auth: eye icon button alignment in comic mode (slightly higher + crooked). */
body.theme-comic .auth-page .ws-input-icon-btn {
  transform: translateY(calc(-50% - 4px)) rotate(-1.4deg) skewX(-6deg);
  border: 2px solid var(--border-strong, var(--border));
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

body.theme-comic .auth-page .ws-input-icon-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Simple layout utilities (replaces inline styles) */
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-64 { margin-top: 64px; }
.u-mt-14 { margin-top: 14px; }
.u-mb-12 { margin-bottom: 12px; }
.u-text-center { text-align: center; }

/* Whats-new */
.whats-new-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: var(--pad);
}

.whats-new-card {
  width: 100%;
  margin-bottom: 12px;
}

/* FAQ (homepage) */
body.page-home .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (hover:hover) and (pointer:fine) {
  body.page-home .faq-list:hover .faq-item {
    opacity: 0.86;
  }

  body.page-home .faq-list:hover .faq-item:hover {
    opacity: 1;
  }
}

body.page-home .faq-item {
  --faq-accent-rgb: 132, 100, 255;
  --faq-accent2-rgb: 60, 214, 180;

  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: opacity 300ms ease, box-shadow 300ms ease;
  transition-delay: 0s;
}

/* FAQ: comic overrides (homepage only). */
body.page-home.theme-comic .faq-item {
  border-width: 2px;
  border-color: rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(420px circle at 20% 18%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0) 58%),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.60),
    0 14px 34px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: rotate(var(--comic-faq-tilt, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

@media (min-width: 720px) {
  body.page-home.theme-comic .faq-item:nth-child(odd) { --comic-faq-tilt: -0.85deg; --comic-faq-hover-delta: 0.55deg; }
  body.page-home.theme-comic .faq-item:nth-child(even) { --comic-faq-tilt: 0.65deg; --comic-faq-hover-delta: -0.75deg; }
  body.page-home.theme-comic .faq-item:nth-child(3n) { --comic-faq-tilt: -0.55deg; --comic-faq-hover-delta: 0.35deg; }
}

body.page-home.theme-comic .faq-summary {
  position: relative;
}

body.page-home.theme-comic .faq-summary::after {
  content: "";
  position: absolute;
  left: 62px;
  right: 40px;
  bottom: 10px;
  height: 7px;
  border-radius: 999px;
  opacity: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.00) 0 7px,
      rgba(255, 255, 255, 0.09) 7px 11px
    ),
    rgba(0, 0, 0, 0.84);
  transform: translateX(-8px) rotate(-1.05deg);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home.theme-comic .faq-item:hover .faq-summary::after {
    animation: comic-marker-draw 380ms cubic-bezier(0.15, 0.95, 0.25, 1) 1;
  }
}

body.page-home.theme-comic .faq-icon {
  border: 2px solid rgba(0, 0, 0, 0.22);
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.55),
    0 14px 28px rgba(var(--faq-accent-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (hover:hover) and (pointer:fine) {
  body.page-home .faq-item:hover {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }

  body.page-home.theme-comic .faq-item:hover {
    transform: translateY(-2px) rotate(calc(var(--comic-faq-tilt, 0deg) + var(--comic-faq-hover-delta, -0.65deg)));
  }
}

body.page-home .faq-item--blue { --faq-accent-rgb: 90, 140, 255; --faq-accent2-rgb: 58, 255, 209; }
body.page-home .faq-item--purple { --faq-accent-rgb: 164, 108, 255; --faq-accent2-rgb: 255, 122, 220; }
body.page-home .faq-item--orange { --faq-accent-rgb: 255, 168, 64; --faq-accent2-rgb: 255, 110, 86; }
body.page-home .faq-item--green { --faq-accent-rgb: 75, 214, 160; --faq-accent2-rgb: 58, 255, 209; }
body.page-home .faq-item--indigo { --faq-accent-rgb: 112, 120, 255; --faq-accent2-rgb: 164, 108, 255; }
body.page-home .faq-item--amber { --faq-accent-rgb: 255, 193, 82; --faq-accent2-rgb: 255, 168, 64; }

body.page-home .faq-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: rgba(0, 0, 0, 0.84);
  background: rgba(255, 255, 255, 0.55);
  transition: background 220ms ease, box-shadow 220ms ease;
}

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

body.page-home .faq-summary::marker {
  content: "";
}

@media (hover:hover) and (pointer:fine) {
  body.page-home .faq-item:hover .faq-summary {
    background: rgba(255, 255, 255, 0.78);
  }
}

body.page-home .faq-summary:focus-visible {
  outline: 2px solid rgba(var(--faq-accent-rgb), 0.55);
  outline-offset: 4px;
  border-radius: 16px;
}

@media (max-width: 560px) {
  body.page-home .faq-summary {
    padding: 13px 12px;
    gap: 12px;
  }

  body.page-home .faq-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  body.page-home .faq-question {
    font-size: 14px;
  }

  body.page-home .faq-body {
    padding: 0 12px 14px;
  }
}

body.page-home .faq-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(135deg,
      rgba(var(--faq-accent-rgb), 0.92),
      rgba(var(--faq-accent2-rgb), 0.86));
  box-shadow:
    0 14px 28px rgba(var(--faq-accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-origin: 50% 50%;
  will-change: transform;
}

body.page-home .faq-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.page-home .faq-question {
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
}

body.page-home .faq-chevron {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.46);
  transition: transform 220ms ease, color 220ms ease;
}

body.page-home .faq-chevron svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.page-home .faq-item[open] {
  border-color: rgba(var(--faq-accent-rgb), 0.35);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(var(--faq-accent-rgb), 0.10) inset;
}

body.page-home .faq-item[open] .faq-summary {
  background:
    linear-gradient(90deg,
      rgba(var(--faq-accent-rgb), 0.20),
      rgba(255, 255, 255, 0.62) 62%);
}

body.page-home .faq-item[open] .faq-chevron {
  color: rgba(0, 0, 0, 0.64);
  transform: rotate(180deg);
}

body.page-home .faq-body {
  padding: 0 14px 14px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.64);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}

body.page-home .faq-body-inner {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

body.page-home .faq-item[open] .faq-body-inner::before {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, rgba(var(--faq-accent-rgb), 0.95), rgba(var(--faq-accent2-rgb), 0.95));
  opacity: 0.95;
}

body.page-home .faq-body a {
  color: rgba(0, 0, 0, 0.80);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}

body.page-home .faq-body a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.45);
}

@keyframes ip-faq-icon-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ip-faq-icon-spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

body.page-home .faq-item[data-faq-icon-spin="cw"] .faq-icon {
  animation: ip-faq-icon-spin-cw 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.page-home .faq-item[data-faq-icon-spin="ccw"] .faq-icon {
  animation: ip-faq-icon-spin-ccw 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .faq-item[data-faq-icon-spin] .faq-icon {
    animation: none;
  }
}

/* How It Works (homepage) */
.lp-how {
  text-align: center;
}

.lp-how__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 54px);
  color: rgba(0, 0, 0, 0.88);
}

.lp-how__subtitle {
  margin: 10px auto 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.58);
}

.lp-how__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow: visible;
}

@media (min-width: 880px) {
  .lp-how__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.lp-how-card {
  position: relative;
  text-align: left;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-height: 156px;
  overflow: visible;
}

@media (min-width: 880px) {
  .lp-how-card:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: rgba(var(--accent-rgb), 0.85);
    font-size: 26px;
    line-height: 1;
    opacity: 0.85;
    pointer-events: none;
  }
}

.lp-how-card__step {
  position: absolute;
  top: -14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 1), rgba(var(--accent-2-rgb), 1));
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.25);
}

.lp-how-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(var(--accent-rgb), 0.95);
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  margin-bottom: 14px;
}

.lp-how-card__icon svg {
  width: 22px;
  height: 22px;
}

.lp-how-card__title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.86);
}

.lp-how-card__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

/* Features grid (homepage) */
.lp-features {
  text-align: center;
}

@media (max-width: 720px), (pointer: coarse) {
  /* Keep feature cards above the pricing Kaonashi artwork when it shifts upward on mobile. */
  .lp-features {
    position: relative;
    z-index: 5;
  }
}

.lp-features__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 54px);
  color: rgba(0, 0, 0, 0.88);
}

.lp-features__subtitle {
  margin: 10px auto 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.58);
}

.lp-features__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .lp-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .lp-features__grid { grid-template-columns: 1fr; }
}

.lp-feature-card {
  text-align: left;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.lp-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: rgba(var(--accent-rgb), 1);
}

.lp-feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.lp-feature-card__name {
  margin-top: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.84);
}

.lp-feature-card__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.58);
}

/* JS drives these states to ensure fade-in/out even though <details> toggles display */
.faq-item[data-faq-state="opening"] > .faq-body,
.faq-item[data-faq-state="closing"] > .faq-body {
  opacity: 0;
  transform: translateY(-2px);
}

.faq-item[data-faq-state="open"] > .faq-body {
  opacity: 1;
  transform: translateY(0);
}

/* Subscribe page spacing (replaces inline margin-top) */
.subscribe-stack > .pricing {
  margin-top: 14px;
}

.subscribe-offer {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 14px;
}

.subscribe-offer-text {
  margin: 0;
  text-align: center;
}

.subscribe-offer-micro {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.92;
  max-width: 720px;
}

.offer-link {
  text-decoration: underline;
}

/* Auth: "button as link" (replaces inline styles) */
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
}

/* Feedback form (homepage) */
.feedback-card {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
}

body.page-home.theme-comic .feedback-card {
  border-width: 3px;
  border-color: var(--border-strong);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.62),
    0 18px 46px rgba(0, 0, 0, 0.10);
  background:
    radial-gradient(640px circle at 20% 18%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0) 58%),
    rgba(255, 255, 255, 0.88);
}

.feedback-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(135deg,
      rgba(var(--accent-rgb), 0.75),
      rgba(var(--accent-rgb), 0.22),
      rgba(255, 255, 255, 0)
    );
  opacity: 0.42;
  pointer-events: none;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Pure CSS hover effect (без JavaScript для устранения forced layout) */
.feedback-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease-out;
  background:
    radial-gradient(420px circle at 50% 35%, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0) 60%),
    radial-gradient(640px circle at 50% 42%, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0) 65%);
}

.feedback-card:hover::after,
.feedback-card:focus-within::after {
  opacity: 1;
}

.feedback-card > * {
  position: relative;
  z-index: 1;
}

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

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 780px) {
  .feedback-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feedback-field {
  display: grid;
  gap: 6px;
}

.feedback-field > .muted {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.feedback-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feedback-input:hover {
  border-color: rgba(0, 0, 0, 0.20);
}

textarea.feedback-input {
  resize: none;
}

.feedback-input:focus {
  border-color: rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.18);
}

.feedback-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.feedback-actions .btn.primary {
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.10),
    0 10px 24px rgba(0, 0, 0, 0.06);
}

.feedback-file {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.feedback-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feedback-file__btn {
  justify-self: start;
}

.feedback-file__btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.40);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

body.theme-comic .feedback-file__btn--icon {
  border-width: 2px;
  border-color: rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

.feedback-file__btn--icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}

.feedback-file__name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .feedback-file {
    grid-template-columns: 1fr;
  }
  .feedback-field input.feedback-input {
    height: 44px;
  }
  .feedback-file__btn {
    width: 100%;
    text-align: center;
  }
  .feedback-file__btn--icon {
    width: 44px;
    height: 44px;
    justify-self: center;
  }
  .feedback-file__name {
    text-align: center;
  }
}

/* Subscribe page: reuse pricing block look */
.subscribe-stack {
  display: grid;
  gap: 14px;
}

/* Subscribe page uses a light background; make the pricing info button visible here */
.subscribe-stack .pricing-info-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(0, 0, 0, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Subscribe page: tune info popover position (desktop) */
.subscribe-stack .pricing-info-popover {
  top: -80px;
  left: 60%;
}

@media (hover: hover) and (pointer: fine) {
  .subscribe-stack .pricing-info-btn:hover {
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.86);
  }
}

/* Homepage: match subscribe info button look */
body.page-home .pricing-info-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(0, 0, 0, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: none;
  animation: none;
}

/* Homepage comic mode adds extra tilt/speed-lines on buttons — keep the info icon clean like on Subscribe. */
body.page-home.theme-comic .pricing-info-btn::after {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.page-home .pricing-info-btn:hover {
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.86);
    transform: none;
    animation: none;
  }
}

.subscribe-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .subscribe-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.subscribe-plan {
  position: relative;
  opacity: 1;
}

/* Dim unselected cards without affecting the models popover bubble (which sits inside the card). */
.subscribe-plan:not(.is-selected) .pricing-card--shell > :not(.pricing-models-popover) {
  opacity: 0.86;
  transition: opacity 220ms ease;
}

.subscribe-plan input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.subscribe-plan,
.subscribe-plan * {
  cursor: pointer;
}

.subscribe-plan input:checked + .pricing-card--shell {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.subscribe-plan input:focus-visible + .pricing-card--shell {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.78);
}

@media (hover: hover) and (pointer: fine) {
  .pricing:hover .subscribe-plan.is-selected {
    opacity: 1;
  }
}

/* 3-card centered grid (subscribe) */
.pricing-grid.pricing-grid--center-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .pricing-grid.pricing-grid--center-3 {
    grid-template-columns: repeat(3, 1fr);
    /* Match homepage card width (homepage is 4 cols in a 1040px container).
       3 cards should not become wider than on the homepage; keep centered. */
    max-width: 734px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Payment method cards (subscribe) */
.pay-method {
  position: relative;
  padding: 0;
}

.pay-method input {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Keep the input clickable across browsers (esp. Safari). */
  pointer-events: auto;
}

.pay-method,
.pay-method * {
  cursor: pointer;
}

.pay-method__shell {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: var(--radius);
  background: #f1f1f3;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.pay-method__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.pay-method__icon svg {
  width: 18px;
  height: 18px;
}

.pay-method__title {
  font-weight: 700;
}

.pay-method__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: none;
  z-index: 2;
  opacity: 50%;
}

.pay-method input:checked + .pay-method__shell {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.pay-method input:focus-visible + .pay-method__shell {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.78);
}

/* Tables (account) */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-glass);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

/* Account payments table: fixed layout so columns can be evenly distributed */
.account-container .table {
  table-layout: fixed;
}

/* Account (redesign): allow the purchases table to breathe */
.account-purchases .table {
  table-layout: auto;
}

.account-purchases .table th {
  background: rgba(255, 255, 255, 0.16);
}

.account-purchases .table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.10);
}

.table.table--compact td {
  font-size: 13px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.table th {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

.table .table-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

/* Account table: keep actions column compact */
.table th.col-actions,
.table td.col-actions {
  width: 1%;
  white-space: nowrap;
}

/* Account payments table: avoid horizontal scroll on desktop */
@media (min-width: 900px) {
  .account-container .table {
    min-width: 0;
  }

  .account-container .table th,
  .account-container .table td {
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Table headers should not wrap by letters (e.g., "Описание"). */
  .account-container .table thead th {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  /* Purchases: description column should wrap by words, not letters. */
  .account-container .table tbody td:nth-child(3) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  /* Tighten the payments table so it always fits the card on desktop */
  .account-container .table th,
  .account-container .table td {
    padding: 9px 10px;
  }

  /* Column proportions: date gets more room, table still stays within container */
  .account-container .table th:nth-child(1),
  .account-container .table td:nth-child(1) { width: 26%; }
  .account-container .table th:nth-child(2),
  .account-container .table td:nth-child(2) { width: 12%; }
  .account-container .table th:nth-child(3),
  .account-container .table td:nth-child(3) { width: 10%; }
  .account-container .table th:nth-child(4),
  .account-container .table td:nth-child(4) { width: 12%; }
  .account-container .table th:nth-child(5),
  .account-container .table td:nth-child(5) { width: 24%; }
  .account-container .table th:nth-child(6),
  .account-container .table td:nth-child(6) { width: 16%; }

  /* Keep some columns compact/readable */
  .account-container .table th:nth-child(1),
  .account-container .table td:nth-child(1),
  .account-container .table th:nth-child(4),
  .account-container .table td:nth-child(4) {
    white-space: nowrap;
  }

  .account-container .table td.col-actions {
    overflow: visible;
  }

  .account-container .table .table-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .account-container .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

}


/* Account: purchase history cards (mobile-first UI) */
.payments-cards {
  display: grid;
  gap: 10px;
}

.payment-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-glass);
  padding: 12px;
}

.payment-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.payment-card__date {
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.payment-card__status {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.28);
  color: rgba(0, 0, 0, 0.78);
  white-space: nowrap;
}

.payment-card__body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.payment-card__row {
  display: grid;
  grid-template-columns: minmax(110px, 42%) 1fr;
  gap: 10px;
  align-items: start;
}

.payment-card__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-card__value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payment-card__actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Show cards only on mobile; show table on desktop */
@media (min-width: 721px) {
  .payments-cards { display: none; }
}

@media (max-width: 720px) {
  .account-container .table-wrap { display: none; }

  .payment-card__row {
    grid-template-columns: minmax(96px, 38%) 1fr;
  }

  .payment-card__actions {
    gap: 12px;
  }

  .payment-card__actions .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .payment-card__actions .icon-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Icon buttons with hover tooltip (used in account payments table) */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.34);
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.icon-btn,
.icon-btn * {
  cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.56);
  border-color: var(--border-strong);
  color: rgba(0, 0, 0, 0.92);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover[data-tooltip]::before,
  .icon-btn:focus-visible[data-tooltip]::before {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .icon-btn[data-tooltip]::before {
    display: none;
  }
}

/* Account: subscription status grid */
.sub-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 720px) {
  .sub-status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sub-status-item {
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
}

.sub-status-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sub-status-value {
  margin-top: 6px;
  font-weight: 700;
}

/* Toggle */
.ip-toggle {
  -webkit-appearance: none;
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  outline: none;
  flex: 0 0 auto;
  cursor: pointer;
}

.ip-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(0,0,0,0.18);
  transition: left 160ms ease;
}

.ip-toggle:checked {
  background: var(--snack-success-bg);
  border-color: var(--snack-success-border);
}

.ip-toggle:checked::after {
  left: 23px;
}

.ip-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ip-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.78);
}

/* Homepage: active plan overlay */
.pricing-card--activated .pricing-card--shell {
  position: relative;
  overflow: hidden;
}

.pricing-card__activated {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 10px;
}

/* Responsive (mobile-first tweaks) */
@media (max-width: 900px) {
  :root { --pad: 18px; }
  .site-topbar-inner { gap: 10px; }
  .site-nav { gap: 8px; }
}

@media (max-width: 720px) {
  :root { --pad: 14px; }
  .container { padding: var(--pad); }
  .btn { padding: 10px 12px; }
  .site-topbar-inner { flex-direction: column; align-items: stretch; }
  .site-menu-toggle { display: inline-block; width: auto; text-align: center; padding: 7px 10px; }
  .site-footer-brand-desc { white-space: normal; }

  /* Comic mode: keep the topbar crooked, but reduce the container skew on mobile
     so nav text/CTA don't drift off-screen and get clipped. */
  body.theme-comic .site-topbar {
    overflow-x: visible;
  }

  body.theme-comic .site-topbar-inner {
    transform: rotate(-0.95deg) skewX(-5deg);
    transform-origin: 50% 0;
  }

  body.theme-comic .site-nav-link,
  body.theme-comic .site-topbar-wrap .site-nav-cta,
  body.theme-comic .site-topbar-wrap .site-menu-toggle {
    transform-origin: 0 50%;
    transform: translateX(10px) rotate(var(--comic-ui-rot, 0deg)) skewX(var(--comic-text-skew, -10deg));
  }

  /* Make the icon-only download CTA behave like a normal row item on mobile. */
  body.theme-comic .site-nav-cta--icon {
    min-width: 0;
    justify-content: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    /* Абсолютно позиционируем меню в закрытом состоянии - не занимает места */
    /* Анимируем только GPU-ускоренные свойства: transform, opacity */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1), 
                transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0ms 240ms;
  }
  
  .site-topbar-wrap[data-menu="open"] .site-nav {
    position: static;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    margin-top: 8px;
    padding: 0 0 6px;
    transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1), 
                transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0ms 0ms;
  }

  /* Keep the whole expanded topbar blurred, but without a visible white block. */
  .site-topbar-wrap[data-menu="open"] .site-topbar {
    background: rgba(255, 255, 255, 0.001);
    backdrop-filter: blur(38px) saturate(1.35);
    -webkit-backdrop-filter: blur(38px) saturate(1.35);
  }

  /* Comic mode: when the mobile menu is open, paint a slanted "marker fill" behind it
     using the same angle as the separator stroke, so the background ends cleanly on that line. */
  body.theme-comic .site-topbar-wrap[data-menu="open"] .site-topbar {
    background: transparent;
  }

  body.theme-comic .site-topbar-wrap[data-menu="open"] .site-topbar::before {
    content: "";
    position: absolute;
    left: -18px;
    right: -18px;
    top: -14px;
    bottom: -14px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.92;
    transform: rotate(-1.15deg);
    transform-origin: 50% 50%;
    border-radius: 28px;
    background:
      radial-gradient(520px circle at 16% 18%, rgba(0, 0, 0, 0.055), rgba(255, 255, 255, 0) 58%),
      radial-gradient(circle at 12% 30%, rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0) 22%),
      radial-gradient(circle at 28% 62%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 24%),
      radial-gradient(circle at 46% 22%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 18%),
      radial-gradient(circle at 64% 54%, rgba(0, 0, 0, 0.055), rgba(0, 0, 0, 0) 22%),
      radial-gradient(circle at 82% 28%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 20%),
      radial-gradient(circle at 86% 74%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 24%),
      rgba(255, 255, 255, 0.90);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.32);
  }

  /* Keep content above the painted background but below the separator stroke. */
  body.theme-comic .site-topbar-wrap[data-menu="open"] .site-topbar > * {
    position: relative;
    z-index: 2;
  }

  /* Mobile: center only this section heading, as requested */
  body.page-home .lp-support__left .lp-section-title {
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --pad: 12px; }
  .card { border-radius: 14px; }
  .site-nav { align-items: stretch; }
  
  .lp-hero {
    gap: 10px;
  }
  
  .lp-hero__left {
    gap: 6px;
  }
  
  /* Убеждаемся что все дочерние элементы не выходят за пределы */
  .lp-hero__media,
  .lp-hero__right,
  .lp-hero__left,
  .lp-hero__ctas,
  .lp-hero__badges {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Кнопки во flex-контейнерах не должны иметь width: 100% */
  .lp-hero__ctas .btn,
  .lp-hero__badges .btn {
    width: auto;
    flex: 0 1 auto;
    max-width: 100%;
  }
  
  /* Обычные кнопки вне flex-контейнеров */
  .btn:not(.lp-hero__ctas .btn):not(.lp-hero__badges .btn) {
    width: 100%;
    text-align: center;
  }
  
  /* Убираем min-width для primary кнопок на маленьких экранах */
  .btn.primary {
    min-width: 0;
  }
  
  /* Ограничиваем ширину видео карточки */
  .lp-hero__media {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}

/* Composite logo in topbar */
.site-brand {
  text-decoration: none;
}

.site-logo {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.site-logo img {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  transform-origin: 50% 50%;
}

.site-brand-text {
  font-weight: 700;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  left: 12px;
  right: auto;
  bottom: 12px;
  z-index: 30;
  padding: 0;
  display: block;
}

.cookie-notice-inner {
  position: relative;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.08);
  padding: 10px 10px;
  display: grid;
  gap: 10px;
}

/* Cookie notice: comic-crooked variant */
body.theme-comic .cookie-notice-inner {
  border-width: 3px;
  border-color: var(--border-strong);
  border-radius: 18px 12px 22px 14px;
  transform: rotate(-2.1deg) skewX(-4deg);
  background:
    linear-gradient(transparent 58%, rgba(var(--default-accent-rgb), 0.10) 58% 96%, transparent 96%),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.62),
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

body.theme-comic .cookie-notice-title {
  transform: rotate(-1.2deg) skewX(-10deg);
  transform-origin: 0 50%;
}

body.theme-comic .cookie-notice-text {
  transform: rotate(0.8deg) skewX(-8deg);
  transform-origin: 0 50%;
}

.cookie-notice-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.72);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  --cookie-close-rot: 0deg;
  transform: rotate(var(--cookie-close-rot));
  transition: transform 140ms ease, background 140ms ease;
}

body.theme-comic .cookie-notice-close {
  border: 2px solid rgba(0, 0, 0, 0.22);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  --cookie-close-rot: 8deg;
  background: rgba(255, 255, 255, 0.70);
}

@keyframes cookie-close-wiggle {
  0% {
    transform: rotate(var(--cookie-close-rot, 0deg)) scale(1);
  }
  45% {
    transform: rotate(calc(var(--cookie-close-rot, 0deg) + 10deg)) scale(1.06);
  }
  100% {
    transform: rotate(var(--cookie-close-rot, 0deg)) scale(1);
  }
}

.cookie-notice-close:hover {
  background: rgba(0, 0, 0, 0.10);
}

@media (hover: hover) and (pointer: fine) {
  .cookie-notice-close:hover {
    animation: cookie-close-wiggle 240ms cubic-bezier(0.2, 0.95, 0.2, 1) 1;
  }
}

.cookie-notice-close:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.9);
  outline-offset: 3px;
}

.cookie-notice-title {
  font-family: Manrope, 'Manrope Fallback', Inter, 'Inter Fallback', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-notice-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-notice-link {
  text-decoration: underline;
}

.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 520px) {
  .cookie-notice-actions {
    gap: 8px;
  }
}

.cookie-notice-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 10px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
}

body.theme-comic .cookie-notice-btn {
  border: 2px solid rgba(0, 0, 0, 0.22);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.2, 0.95, 0.2, 1);
}

body.theme-comic .cookie-notice-btn--decline { transform: rotate(-2.6deg) skewX(-6deg); }
body.theme-comic .cookie-notice-btn--accept { transform: rotate(2.2deg) skewX(-6deg); }

@media (hover: hover) and (pointer: fine) {
  body.theme-comic .cookie-notice-btn--decline {
    transition-duration: 130ms;
  }

  body.theme-comic .cookie-notice-btn--accept {
    transition-duration: 210ms;
  }

  body.theme-comic .cookie-notice-btn--decline:hover {
    transform:
      translateY(-1px)
      rotate(1.6deg)
      skewX(-7deg)
      rotateX(3deg)
      rotateY(5deg);
  }

  body.theme-comic .cookie-notice-btn--accept:hover {
    transform:
      translateY(-2px)
      rotate(-2deg)
      skewX(-7deg)
      rotateX(-3deg)
      rotateY(-5deg);
  }
}

.cookie-notice-btn--decline,
.cookie-notice-btn--accept {
  flex: 1 1 140px;
}

.cookie-notice-btn--decline {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.cookie-notice-btn--accept {
  background: rgba(0, 0, 0, 0.86);
  color: rgba(255, 255, 255, 0.96);
}

/* Footer: keep tagline in one line on mobile; break only on desktop */
.footer-desc-break {
  display: none;
}

@media (min-width: 900px) {
  .footer-desc-break {
    display: block;
  }
}

@media (max-width: 360px) {
  :root { --pad: 10px; }
  .card { padding: 10px; }
  .btn { padding: 10px; }
}

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

.site-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grecaptcha-badge {
  visibility: hidden;
}
