:root {
  color-scheme: dark;
  --bg: #020711;
  --bg-soft: #07101d;
  --ink: #f7fbff;
  --muted: #a8b5cb;
  --soft: #7a879b;
  --line: rgba(93, 135, 210, 0.28);
  --line-strong: rgba(78, 141, 255, 0.46);
  --blue: #1874d9;
  --blue-strong: #0d5fc7;
  --cyan: #56a7ff;
  --panel: rgba(8, 15, 28, 0.84);
  --panel-strong: rgba(12, 19, 35, 0.94);
  --shadow: rgba(12, 52, 120, 0.26);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Desktop landing theme switcher */
.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(83, 144, 255, 0.22);
  border-radius: 12px;
  color: #dcecff;
  background: rgba(10, 18, 34, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition-property: transform, color, background-color, border-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 155, 255, 0.5);
  background: rgba(16, 28, 52, 0.9);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.theme-toggle-icon {
  grid-area: 1 / 1;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  transition-property: opacity, transform, filter;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.theme-toggle-icon svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-icon--sun {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25) rotate(-28deg);
}

html[data-theme="light"] .theme-toggle-icon--moon {
  opacity: 0;
  filter: blur(4px);
  transform: scale(0.25) rotate(28deg);
}

html[data-theme="light"] .theme-toggle-icon--sun {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) rotate(0deg);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 440ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }
}

@media (max-width: 780px) {
  .theme-toggle {
    display: none;
  }
}

@media (min-width: 781px) {
  html[data-theme="light"] {
    color-scheme: light;
  }

  html[data-theme="light"] body.page-home {
    --paper: #f5f1ea;
    --sheet: #fffdfc;
    --ink: #222326;
    --pencil: #68635f;
    --denim: #3f6f96;
    --brand-blue: #1874d9;
    --brand-blue-strong: #0d5fc7;
    --sky: #6ab2ff;
    --bg: var(--paper);
    --bg-soft: #ece8e1;
    --muted: var(--pencil);
    --soft: #8b857f;
    --line: rgba(34, 35, 38, 0.12);
    --line-strong: rgba(24, 116, 217, 0.3);
    --blue: var(--brand-blue);
    --blue-strong: var(--brand-blue-strong);
    --cyan: var(--denim);
    --panel: rgba(255, 253, 252, 0.88);
    --panel-strong: var(--sheet);
    --shadow: rgba(67, 52, 44, 0.12);
    color: var(--ink);
    background: var(--paper);
  }

  html[data-theme="light"] body.page-home::before {
    background-image:
      linear-gradient(rgba(34, 35, 38, 0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(34, 35, 38, 0.024) 1px, transparent 1px);
    opacity: 0.7;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 70%);
  }

  html[data-theme="light"] body.page-home .site-header {
    min-height: 62px;
    padding: 6px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-theme="light"] body.page-home .nav-links {
    color: #4f4d49;
  }

  html[data-theme="light"] body.page-home .nav-links a:hover {
    color: var(--brand-blue-strong);
  }

  html[data-theme="light"] body.page-home .nav-links a[href="/gallery"] {
    color: var(--denim);
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  html[data-theme="light"] body.page-home .theme-toggle {
    color: var(--brand-blue);
    border-color: rgba(34, 35, 38, 0.12);
    background: var(--sheet);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.72) inset,
      0 8px 20px rgba(67, 52, 44, 0.1);
  }

  html[data-theme="light"] body.page-home .theme-toggle:hover {
    color: var(--brand-blue-strong);
    border-color: rgba(24, 116, 217, 0.42);
    background: #f3f8fd;
  }

  /* Signed-in header account controls */
  html[data-theme="light"] body.page-home .header-account .create-comic-icon,
  html[data-theme="light"] body.page-home .header-account .credit-pill {
    border-color: var(--line);
    color: var(--ink);
    background: var(--sheet);
    box-shadow: 0 8px 20px rgba(67, 52, 44, 0.08);
  }

  html[data-theme="light"] body.page-home .header-account .credit-pill svg {
    color: var(--brand-blue);
  }

  html[data-theme="light"] body.page-home .header-account .avatar-button {
    border-color: rgba(24, 116, 217, 0.34);
    background: linear-gradient(180deg, #2f8fe6, #0f5fc7);
  }

  html[data-theme="light"] body.page-home .header-account .avatar {
    color: #ffffff;
  }

  html[data-theme="light"] body.page-home .header-account .create-comic-icon:hover,
  html[data-theme="light"] body.page-home .header-account .credit-pill:hover,
  html[data-theme="light"] body.page-home .header-account .avatar-button:hover {
    border-color: rgba(24, 116, 217, 0.42);
  }

  /* Profile dropdown */
  html[data-theme="light"] body.page-home .header-account .popover {
    border-color: var(--line);
    background: rgba(255, 253, 252, 0.98);
    box-shadow: 0 24px 60px rgba(67, 52, 44, 0.18);
  }

  html[data-theme="light"] body.page-home .header-account .popover-header {
    border-bottom-color: var(--line);
  }

  html[data-theme="light"] body.page-home .header-account .popover-header strong {
    color: var(--ink);
  }

  html[data-theme="light"] body.page-home .header-account .popover-header span {
    color: var(--denim);
  }

  html[data-theme="light"] body.page-home .header-account .popover a,
  html[data-theme="light"] body.page-home .header-account .popover button {
    color: var(--ink);
  }

  html[data-theme="light"] body.page-home .header-account .popover a:hover,
  html[data-theme="light"] body.page-home .header-account .popover button:hover {
    background: #edf5fc;
  }

  /* Gallery link keeps its shimmer, in darker blues so it reads on light */
  html[data-theme="light"] body.page-home .header-account .popover a[href="/gallery"],
  html[data-theme="light"] body.page-home .header-account .popover a[href="/gallery"]:hover {
    background: linear-gradient(
      90deg,
      #0d5fc7 0%,
      #2f8fe6 25%,
      #0b4ea8 50%,
      #2f8fe6 75%,
      #0d5fc7 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  html[data-theme="light"] body.page-home .hero-art {
    background-image: url("assets/comicly-hero-bg-light.webp?v=20260711-2224");
    background-image: image-set(
      url("assets/comicly-hero-bg-light.webp?v=20260711-2224") type("image/webp"),
      url("assets/comicly-hero-bg-light.png?v=20260711-2224") type("image/png")
    );
    background-position: center clamp(-90px, -5.5vw, -40px);
    opacity: 1;
    filter: none;
  }

  html[data-theme="light"] body.page-home .hero::before {
    background:
      linear-gradient(90deg, rgba(245, 241, 234, 0.02), rgba(245, 241, 234, 0.08) 28%, rgba(245, 241, 234, 0.08) 72%, rgba(245, 241, 234, 0.02)),
      linear-gradient(180deg, rgba(245, 241, 234, 0.02), rgba(245, 241, 234, 0.08) 62%, var(--paper) 98%);
  }

  html[data-theme="light"] body.page-home .hero::after {
    background: linear-gradient(180deg, rgba(245, 241, 234, 0) 0%, rgba(245, 241, 234, 0.34) 52%, var(--paper) 100%);
  }

  html[data-theme="light"] body.page-home .hero-kicker,
  html[data-theme="light"] body.page-home .hero-points span,
  html[data-theme="light"] body.page-home .hero-copy,
  html[data-theme="light"] body.page-home .section-lead,
  html[data-theme="light"] body.page-home .checkout-consent-note,
  html[data-theme="light"] body.page-home .feedback-copy p:last-child,
  html[data-theme="light"] body.page-home .feedback-status,
  html[data-theme="light"] body.page-home .site-footer p {
    color: var(--pencil);
  }

  html[data-theme="light"] body.page-home .hero h1,
  html[data-theme="light"] body.page-home .hero-points strong,
  html[data-theme="light"] body.page-home .section-heading h2,
  html[data-theme="light"] body.page-home .story-ideas-heading h2,
  html[data-theme="light"] body.page-home .story-idea-copy h3,
  html[data-theme="light"] body.page-home .feedback-copy h2,
  html[data-theme="light"] body.page-home .pricing-card h2,
  html[data-theme="light"] body.page-home .plan-label {
    color: var(--ink);
  }

  html[data-theme="light"] body.page-home .hero h1 .hero-typeword {
    color: var(--brand-blue);
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  html[data-theme="light"] body.page-home .hero-typeword::after {
    background: var(--sky);
    box-shadow: 0 0 0 4px rgba(106, 178, 255, 0.16);
  }

  html[data-theme="light"] body.page-home .hero-kicker span {
    color: var(--brand-blue);
  }

  html[data-theme="light"] body.page-home .hero-points svg {
    color: var(--denim);
  }

  html[data-theme="light"] body.page-home .button,
  html[data-theme="light"] body.page-home .primary-cta,
  html[data-theme="light"] body.page-home .plan-button,
  html[data-theme="light"] body.page-home .feedback-form button {
    border-color: rgba(13, 95, 199, 0.22);
    color: #fffdfc;
    background: var(--brand-blue);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 16px 32px rgba(24, 116, 217, 0.22);
  }

  html[data-theme="light"] body.page-home .button:hover,
  html[data-theme="light"] body.page-home .primary-cta:hover,
  html[data-theme="light"] body.page-home .plan-button:hover,
  html[data-theme="light"] body.page-home .feedback-form button:hover {
    background: var(--brand-blue-strong);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 20px 38px rgba(24, 116, 217, 0.28);
  }

  html[data-theme="light"] body.page-home .eyebrow,
  html[data-theme="light"] body.page-home .section-label {
    border-color: rgba(34, 35, 38, 0.1);
    color: #4f4d49;
    background: rgba(255, 253, 252, 0.8);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.72) inset,
      0 8px 20px rgba(67, 52, 44, 0.07);
  }

  html[data-theme="light"] body.page-home .eyebrow span,
  html[data-theme="light"] body.page-home .section-label span:first-child {
    color: var(--brand-blue);
  }

  html[data-theme="light"] body.page-home .preview-section {
    border-color: rgba(34, 35, 38, 0.1);
    background: rgba(255, 253, 252, 0.9);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.72) inset,
      0 28px 64px rgba(67, 52, 44, 0.12);
  }

  html[data-theme="light"] body.page-home .comic-sheet {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--sheet);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.7) inset,
      0 22px 58px rgba(67, 52, 44, 0.18);
  }

  html[data-theme="light"] body.page-home .comic-sheet[data-slot="left"],
  html[data-theme="light"] body.page-home .comic-sheet[data-slot="right"] {
    border-color: rgba(24, 116, 217, 0.28);
  }

  html[data-theme="light"] body.page-home .comic-page-image,
  html[data-theme="light"] body.page-home .story-idea-art {
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
  }

  html[data-theme="light"] body.page-home .icon-button {
    border-color: rgba(24, 116, 217, 0.2);
    color: var(--brand-blue);
    background: var(--sheet);
    box-shadow: 0 10px 26px rgba(67, 52, 44, 0.14);
  }

  html[data-theme="light"] body.page-home .icon-button:hover {
    border-color: rgba(24, 116, 217, 0.42);
    background: #f3f8fd;
  }

  html[data-theme="light"] body.page-home .community-cta {
    border-color: rgba(24, 116, 217, 0.2);
    background: #edf5fc;
    box-shadow: 0 10px 28px rgba(24, 116, 217, 0.1);
  }

  html[data-theme="light"] body.page-home .community-cta-text strong {
    color: var(--ink);
  }

  html[data-theme="light"] body.page-home .community-cta-text span {
    color: var(--pencil);
  }

  html[data-theme="light"] body.page-home .story-idea-card,
  html[data-theme="light"] body.page-home .pricing-card,
  html[data-theme="light"] body.page-home .faq-item {
    border-color: rgba(34, 35, 38, 0.1);
    background: var(--sheet);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.7) inset,
      0 16px 40px rgba(67, 52, 44, 0.09);
  }

  html[data-theme="light"] body.page-home .featured-plan {
    border-color: rgba(34, 35, 38, 0.1);
    background: var(--sheet);
    box-shadow:
      inset 0 3px 0 rgba(24, 116, 217, 0.82),
      inset 0 0 0 1px rgba(255, 255, 255, 0.72),
      0 18px 42px rgba(67, 52, 44, 0.11);
  }

  html[data-theme="light"] body.page-home .story-idea-visual {
    background: #ece8e1;
    outline-color: rgba(0, 0, 0, 0.1);
  }

  html[data-theme="light"] body.page-home .story-idea-copy p,
  html[data-theme="light"] body.page-home .plan-description,
  html[data-theme="light"] body.page-home .faq-answer,
  html[data-theme="light"] body.page-home .desktop-footer-nav-group a,
  html[data-theme="light"] body.page-home .site-footer .desktop-footer-brand p {
    color: var(--pencil);
  }

  html[data-theme="light"] body.page-home .plan-coins,
  html[data-theme="light"] body.page-home .site-footer .desktop-footer-nav-title,
  html[data-theme="light"] body.page-home .footer-consent a {
    color: var(--denim);
  }

  html[data-theme="light"] body.page-home .plan-badge {
    border-color: rgba(24, 116, 217, 0.2);
    border-top-color: rgba(24, 116, 217, 0.36);
    color: var(--brand-blue-strong);
    background: #dcecff;
    box-shadow: 0 7px 18px rgba(24, 116, 217, 0.1);
  }

  html[data-theme="light"] body.page-home .plan-generations {
    border-color: rgba(34, 35, 38, 0.1);
    background: #f3f0ea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  }

  html[data-theme="light"] body.page-home .plan-generations-title,
  html[data-theme="light"] body.page-home .plan-generation-model,
  html[data-theme="light"] body.page-home .plan-generation-model strong,
  html[data-theme="light"] body.page-home .plan-generation-count,
  html[data-theme="light"] body.page-home .faq-item > summary {
    color: var(--ink);
  }

  html[data-theme="light"] body.page-home .plan-generation-model + .plan-generation-model {
    border-left-color: rgba(34, 35, 38, 0.1);
  }

  html[data-theme="light"] body.page-home .plan-generations-info {
    border-color: rgba(24, 116, 217, 0.34);
    color: var(--brand-blue);
  }

  html[data-theme="light"] body.page-home .plan-generations-info::after {
    border-color: rgba(34, 35, 38, 0.12);
    color: var(--ink);
    background: var(--sheet);
    box-shadow: 0 10px 26px rgba(67, 52, 44, 0.13);
  }

  html[data-theme="light"] body.page-home .faq-item[open] {
    border-color: rgba(24, 116, 217, 0.34);
  }

  html[data-theme="light"] body.page-home .feedback-section {
    background:
      linear-gradient(90deg, rgba(245, 241, 234, 0.18) 0%, rgba(245, 241, 234, 0.42) 44%, rgba(245, 241, 234, 0.95) 100%),
      linear-gradient(180deg, rgba(255, 253, 252, 0.04), rgba(245, 241, 234, 0.28)),
      url("assets/feedback-bg-light.webp?v=20260712");
    box-shadow:
      0 0 0 1px rgba(34, 35, 38, 0.08) inset,
      0 24px 58px rgba(67, 52, 44, 0.1);
  }

  html[data-theme="light"] body.page-home .feedback-section::before {
    background:
      radial-gradient(circle at 35% 58%, rgba(106, 178, 255, 0.14), transparent 24%),
      radial-gradient(circle at 84% 66%, rgba(63, 111, 150, 0.1), transparent 28%);
    opacity: 0.52;
  }

  html[data-theme="light"] body.page-home .feedback-section::after {
    background: linear-gradient(90deg, transparent 0%, transparent 76%, rgba(245, 241, 234, 0.96) 100%);
  }

  html[data-theme="light"] body.page-home .feedback-section:hover .feedback-copy .eyebrow {
    border-color: rgba(24, 116, 217, 0.34);
    box-shadow: 0 0 0 1px rgba(24, 116, 217, 0.06), inset 0 0 20px rgba(24, 116, 217, 0.08);
  }

  html[data-theme="light"] body.page-home .feedback-form label span {
    color: #4f4d49;
  }

  html[data-theme="light"] body.page-home .feedback-form label:focus-within span {
    color: var(--brand-blue);
    text-shadow: none;
  }

  html[data-theme="light"] body.page-home .feedback-form input,
  html[data-theme="light"] body.page-home .feedback-form textarea {
    border-bottom-color: rgba(34, 35, 38, 0.24);
    color: var(--ink);
  }

  html[data-theme="light"] body.page-home .feedback-form input:focus,
  html[data-theme="light"] body.page-home .feedback-form textarea:focus {
    border-color: rgba(24, 116, 217, 0.5);
    box-shadow: 0 6px 16px -14px rgba(24, 116, 217, 0.68);
  }

  html[data-theme="light"] body.page-home .feedback-form input::placeholder,
  html[data-theme="light"] body.page-home .feedback-form textarea::placeholder,
  html[data-theme="light"] body.page-home .feedback-files small,
  html[data-theme="light"] body.page-home .feedback-form .feedback-consent,
  html[data-theme="light"] body.page-home .footer-consent,
  html[data-theme="light"] body.page-home .footer-copy {
    color: var(--soft);
  }

  html[data-theme="light"] body.page-home .feedback-files input {
    border-color: rgba(34, 35, 38, 0.14);
    background: rgba(255, 253, 252, 0.7);
  }

  html[data-theme="light"] body.page-home .feedback-files input:hover,
  html[data-theme="light"] body.page-home .feedback-files input:focus {
    border-color: rgba(24, 116, 217, 0.3);
    background: rgba(255, 253, 252, 0.9);
  }

  html[data-theme="light"] body.page-home .feedback-files input::file-selector-button {
    border-color: rgba(24, 116, 217, 0.22);
    color: var(--brand-blue);
    background: #edf5fc;
  }

  html[data-theme="light"] body.page-home .site-footer {
    border-top-color: rgba(34, 35, 38, 0.12);
  }

  html[data-theme="light"] body.page-home .desktop-footer-meta {
    box-shadow: 0 -1px rgba(34, 35, 38, 0.1);
  }

  html[data-theme="light"] body.page-home .desktop-footer-nav-group a:hover,
  html[data-theme="light"] body.page-home .footer-consent a:hover {
    color: var(--brand-blue);
  }

  html[data-theme="light"] body.page-home .footer-social-link {
    border-color: rgba(24, 116, 217, 0.18);
    color: var(--brand-blue);
    background: var(--sheet);
    box-shadow: 0 8px 20px rgba(67, 52, 44, 0.07);
  }

  html[data-theme="light"] body.page-home .footer-social-link:hover {
    border-color: rgba(24, 116, 217, 0.38);
    color: var(--brand-blue);
    background: #f3f8fd;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* macOS renders text heavier than intended by default. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #01060f 0%, #020914 54%, #020813 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 64%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  display: block;
  fill: currentColor;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 10;
  display: grid;
  width: min(100% - 48px, 1180px);
  min-height: 68px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 6px;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
}

/* Smaller header logo on the landing, pricing and gallery pages (desktop) */
@media (min-width: 781px) {
  .page-home .brand-logo,
  .page-pricing .brand-logo,
  .page-gallery .brand-logo {
    height: 48px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  color: #d5dced;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* The community gallery link shimmers in our blue so it stands out. */
.nav-links a[href="/gallery"] {
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    #d8ecff 25%,
    var(--blue) 50%,
    #d8ecff 75%,
    var(--cyan) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nav-gallery-shimmer 2.8s linear infinite;
}

.nav-links a[href="/gallery"]:hover {
  -webkit-text-fill-color: transparent;
}

@keyframes nav-gallery-shimmer {
  to {
    background-position: 200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a[href="/gallery"] {
    animation: none;
  }
}

/* Mobile burger menu (logged-out): expands the desktop nav links */
.nav-burger,
.mobile-nav-menu {
  display: none;
}

@media (max-width: 780px) {
  .header-actions {
    gap: 8px;
  }

  .nav-burger {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #cfe0ff;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(87, 155, 255, 0.24);
    border-radius: 14px;
    background: rgba(8, 16, 30, 0.98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-menu[hidden] {
    display: none;
  }

  .mobile-nav-menu a {
    padding: 11px 12px;
    border-radius: 10px;
    color: #d5dced;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }

  .mobile-nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-menu a[href="/gallery"] {
    font-weight: 700;
    background: linear-gradient(
      90deg,
      var(--cyan) 0%,
      #d8ecff 25%,
      var(--blue) 50%,
      #d8ecff 75%,
      var(--cyan) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nav-gallery-shimmer 2.8s linear infinite;
  }
}

@media (max-width: 780px) and (prefers-reduced-motion: reduce) {
  .mobile-nav-menu a[href="/gallery"] {
    animation: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.signup-bonus {
  display: block;
  width: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 20px rgba(86, 167, 255, 0.18));
  pointer-events: none;
  user-select: none;
}

.signup-bonus[hidden] {
  display: none !important;
}

.header-actions .ghost {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  min-height: 50px;
  border-radius: 8px;
  color: #b8c3d6;
  font-size: 14px;
  font-weight: 600;
  background: rgba(10, 18, 34, 0.7);
  border: 1px solid rgba(75, 104, 165, 0.22);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.header-actions .ghost:hover {
  color: #ffffff;
  background: rgba(16, 28, 52, 0.9);
  border-color: rgba(83, 144, 255, 0.32);
}

.button,
.primary-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(83, 144, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 180ms ease,
    border-color 160ms ease;
}

.button {
  padding: 0 22px;
  background: linear-gradient(180deg, #1776de 0%, #0e5dbe 100%);
  box-shadow: 0 16px 36px rgba(19, 93, 194, 0.28);
}

.button.compact {
  min-height: 50px;
}

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-actions [hidden] {
  display: none !important;
}

.header-account .create-comic-icon,
.header-account .credit-pill,
.header-account .avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(83, 144, 255, 0.22);
  border-radius: 10px;
  background: rgba(12, 22, 42, 0.82);
  color: #f2f3ff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-account .create-comic-icon {
  width: 44px;
  height: 44px;
  padding: 0;
}

.header-account .create-comic-icon img {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  object-fit: cover;
}

.header-account .credit-pill svg {
  width: 16px;
  height: 16px;
  color: #63a6ff;
}

.header-account .avatar-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: rgba(83, 144, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(24, 116, 217, 0.3), rgba(11, 26, 50, 0.92)),
    #121833;
}

.header-account .avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffe1c2;
  font-weight: 900;
  font-size: 14px;
}

.header-account .create-comic-icon:hover,
.header-account .credit-pill:hover,
.header-account .avatar-button:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 155, 255, 0.5);
}

.header-account .profile-wrap {
  position: relative;
}

.header-account .popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 240px;
  padding: 6px;
  border: 1px solid rgba(75, 104, 165, 0.26);
  border-radius: 16px;
  background: rgba(8, 15, 28, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.header-account .popover[hidden] {
  display: none;
}

.header-account .popover-header {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(75, 104, 165, 0.16);
  margin-bottom: 4px;
}

.header-account .popover-header strong {
  font-size: 14px;
  color: #f7fbff;
}

.header-account .popover-header span {
  color: var(--muted);
  font-size: 12px;
}

.header-account .popover a,
.header-account .popover button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #e8eaff;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.header-account .popover a:hover,
.header-account .popover button:hover {
  background: rgba(20, 41, 74, 0.72);
}

/* Community gallery link shimmers in the profile menu, like the nav link */
.header-account .popover a[href="/gallery"],
.header-account .popover a[href="/gallery"]:hover {
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    #d8ecff 25%,
    var(--blue) 50%,
    #d8ecff 75%,
    var(--cyan) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nav-gallery-shimmer 2.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .header-account .popover a[href="/gallery"] {
    animation: none;
  }
}

/* Signed-in users switch theme from inside the profile menu; the standalone
   header toggle is hidden for them and replaced by this switch row. */
body.is-authenticated .theme-toggle {
  display: none !important;
}

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.theme-switch-label {
  flex: 1;
  text-align: left;
}

.theme-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(120, 132, 156, 0.45);
  transition: background 180ms ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease;
}

.theme-switch[aria-pressed="true"] .theme-switch-track {
  background: #1874d9;
}

.theme-switch[aria-pressed="true"] .theme-switch-thumb {
  transform: translateX(18px);
}

.projects-shell {
  min-height: 100vh;
}

.projects-page {
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.projects-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.projects-list-section {
  display: grid;
  gap: 18px;
}

.projects-list-head h1 {
  margin: 0;
  color: #f5f8ff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.projects-status,
.projects-list-head span {
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr auto auto;
  min-height: 320px;
  border: 1px solid rgba(92, 133, 205, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(9, 18, 33, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.project-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(92, 133, 205, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(86, 167, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 49, 88, 0.32), rgba(5, 12, 25, 0.74));
}

.project-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-card-cover:hover img {
  transform: scale(1.025);
}

.project-card-cover.is-empty {
  display: grid;
  place-items: center;
  color: rgba(157, 204, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.project-card-cover.is-empty::before {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(99, 166, 255, 0.24);
  border-radius: 6px;
  content: "";
}

.project-card-main {
  display: grid;
  align-content: start;
  gap: 10px;
}

.project-card--new {
  grid-template-rows: none;
  place-items: center;
  align-content: center;
  justify-content: center;
  gap: 12px;
  border-style: dashed;
  color: #d8e8ff;
  background:
    linear-gradient(180deg, rgba(18, 49, 88, 0.36), rgba(8, 17, 31, 0.78)),
    rgba(9, 18, 33, 0.58);
  text-align: center;
}

.project-card--new:hover {
  border-color: rgba(99, 166, 255, 0.46);
  transform: translateY(-1px);
}

.project-new-plus {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(99, 166, 255, 0.34);
  border-radius: 999px;
  color: #9dccff;
  background: rgba(19, 47, 89, 0.38);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.project-card--new strong {
  color: #f8fbff;
  font-size: 19px;
}

@media (max-width: 780px) {
  .project-card--new {
    grid-auto-flow: column;
    min-height: 107px;
    gap: 10px;
  }

  .project-new-plus {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .project-card--new strong {
    font-size: 17px;
  }
}

.project-status {
  width: fit-content;
  border: 1px solid rgba(99, 166, 255, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9dccff;
  background: rgba(19, 47, 89, 0.38);
  font-size: 12px;
  font-weight: 800;
}

.project-card h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 21px;
}

.project-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card-meta {
  display: grid;
  gap: 4px;
  color: var(--soft);
  font-size: 13px;
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.projects-pagination[hidden] {
  display: none;
}

.projects-page-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.projects-page-info {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.project-archive-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(120, 153, 213, 0.24);
  border-radius: 8px;
  color: #9fb8de;
  background: rgba(10, 20, 36, 0.76);
  cursor: pointer;
}

.project-archive-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.project-archive-button:hover {
  border-color: rgba(255, 155, 155, 0.42);
  color: #ffb3b3;
}

.project-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(2, 7, 17, 0.58), rgba(2, 7, 17, 0.78)),
    rgba(2, 7, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-confirm-overlay[hidden] {
  display: none;
}

.project-confirm-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 430px);
  border: 1px solid rgba(83, 144, 255, 0.28);
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(18, 31, 56, 0.98), rgba(8, 15, 28, 0.98)),
    var(--panel-strong);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.58),
    0 0 64px rgba(24, 116, 217, 0.18);
  overflow: hidden;
}

.project-confirm-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(86, 167, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
}

.project-confirm-panel > * {
  position: relative;
  z-index: 1;
}

.project-confirm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(120, 153, 213, 0.24);
  border-radius: 12px;
  padding: 0;
  color: #a8b5cb;
  background: rgba(10, 20, 36, 0.68);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.project-confirm-close:hover {
  border-color: rgba(99, 166, 255, 0.44);
  color: #f8fbff;
  background: rgba(22, 42, 74, 0.82);
  transform: translateY(-1px);
}

.project-confirm-close svg {
  width: 16px;
  height: 16px;
}

.project-confirm-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(86, 167, 255, 0.34);
  border-radius: 16px;
  color: #9dccff;
  background:
    linear-gradient(180deg, rgba(24, 116, 217, 0.2), rgba(12, 95, 199, 0.08)),
    rgba(19, 47, 89, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-confirm-mark svg {
  width: 30px;
  height: 30px;
}

.project-confirm-copy {
  display: grid;
  gap: 10px;
  padding-right: 28px;
}

.project-confirm-panel h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
}

.project-confirm-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.project-confirm-actions button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.project-confirm-cancel {
  border: 1px solid rgba(120, 153, 213, 0.24);
  color: #e8eaff;
  background: rgba(10, 20, 36, 0.72);
}

.project-confirm-cancel:hover {
  border-color: rgba(99, 166, 255, 0.42);
  background: rgba(22, 42, 74, 0.78);
  transform: translateY(-1px);
}

.project-confirm-delete {
  border: 1px solid rgba(255, 126, 126, 0.36);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(246, 85, 85, 0.92), rgba(178, 48, 58, 0.96)),
    #b2303a;
  box-shadow: 0 18px 34px rgba(145, 35, 47, 0.24);
}

.project-confirm-delete:hover:not(:disabled) {
  border-color: rgba(255, 160, 160, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 103, 103, 0.95), rgba(190, 55, 66, 0.98)),
    #be3742;
  box-shadow: 0 22px 44px rgba(145, 35, 47, 0.34);
  transform: translateY(-1px);
}

.project-confirm-delete:disabled {
  cursor: wait;
  opacity: 0.7;
}

body.project-confirm-open {
  overflow: hidden;
}

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

.button:active,
.primary-cta:active {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  min-height: 900px;
  padding: 146px 24px 70px;
  place-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 17, 0.28), rgba(2, 7, 17, 0.74) 29%, rgba(2, 7, 17, 0.74) 71%, rgba(2, 7, 17, 0.26)),
    linear-gradient(180deg, rgba(2, 7, 17, 0.08), rgba(2, 7, 17, 0.38) 60%, #020813 96%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: -1;
  height: 170px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 8, 19, 0) 0%, rgba(2, 8, 19, 0.58) 54%, #020813 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 28%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 28%, #000 72%);
}

.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -2;
  width: 100%;
  background-image: url("assets/comicly-hero-bg.webp?v=20260711-2237");
  background-image: image-set(
    url("assets/comicly-hero-bg.webp?v=20260711-2237") type("image/webp"),
    url("assets/comicly-hero-bg.png?v=20260711-2237") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center clamp(-90px, -5.5vw, -40px);
  background-size: min(108vw, 2100px) auto;
  opacity: 0.98;
  filter: saturate(0.9) contrast(1.05);
}

.hero-art-left {
  left: 0;
  clip-path: none;
}

.hero-art-right {
  display: none;
}

.hero-content {
  width: min(100%, 980px);
  text-align: center;
  transform: translateY(-10px);
}

.hero-kicker {
  margin: 0 0 18px;
  color: #9faec5;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-kicker span {
  color: #5fa7ff;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  border: 1px solid rgba(57, 111, 193, 0.38);
  border-radius: 8px;
  color: #e4edf8;
  background: rgba(7, 18, 36, 0.76);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow span,
.section-label span:first-child {
  color: #5fa7ff;
}

.hero h1 {
  max-width: 860px;
  margin: 22px auto 18px;
  font-size: 76px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 .hero-typeword {
  background: linear-gradient(180deg, #5fb0ff 0%, #1c74e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-line {
  display: inline;
}

.hero-typeword {
  position: relative;
  display: inline-block;
  min-width: 6ch;
  padding-bottom: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.hero-typeword::after {
  display: inline-block;
  width: 0.08em;
  height: 0.94em;
  margin-left: 0.08em;
  vertical-align: -0.07em;
  background: #67b4ff;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(86, 167, 255, 0.78);
  content: "";
  animation: hero-type-caret 820ms steps(1) infinite;
}

@keyframes hero-type-caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typeword::after {
    animation: none;
    opacity: 0;
  }
}

.hero-copy {
  margin: 0;
  color: #b8c6da;
  font-size: 19px;
  line-height: 1.45;
}

.mobile-hero-title,
.mobile-hero-copy,
.mobile-hero-preview,
.mobile-comic-rail,
.mobile-feature-heading {
  display: none;
}

.feature-grid .mobile-feature-card {
  display: none;
}

.mobile-topup-panel {
  display: none;
}

.mobile-feedback-copy,
.mobile-feedback-note,
.mobile-submit-icon {
  display: none;
}

.primary-cta {
  min-width: 0;
  min-height: 56px;
  margin-top: 32px;
  padding: 0 24px;
  background: linear-gradient(180deg, #1776de 0%, #0f5fbe 100%);
  box-shadow: 0 22px 44px rgba(17, 94, 190, 0.28);
  font-size: 17px;
}

.hero-cta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-cta-row .primary-cta {
  margin-top: 0;
  position: relative;
  overflow: visible;
}

.signup-bonus--hero {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(108px, 10vw, 148px);
  height: auto;
  transform: translate(40%, -56%) rotate(14deg);
  transform-origin: center;
  z-index: 2;
}

html[data-theme="light"] body.page-home .signup-bonus--hero {
  width: clamp(108px, 7vw, 148px);
  transform: translate(46%, -58%) rotate(8deg);
  filter: drop-shadow(0 10px 18px rgba(24, 116, 217, 0.14));
}

.primary-cta svg {
  width: 22px;
  height: 22px;
}

.cta-note {
  margin: 14px 0 0;
  color: #c7d6ea;
  font-size: 15px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  transform: translateY(98px);
}

.hero-points li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 0;
  padding: 0;
}

.hero-points svg {
  width: 22px;
  height: 22px;
  color: #4f93ff;
  margin-top: 2px;
}

.hero-points strong {
  display: block;
  margin-bottom: 6px;
  color: #f1f6ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.hero-points span {
  display: block;
  color: #9faec5;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.preview-section {
  width: min(100% - 48px, 1120px);
  margin: -46px auto 0;
  padding: 18px 22px 24px;
  border: 1px solid rgba(75, 104, 165, 0.28);
  border-radius: 24px;
  background: rgba(13, 18, 34, 0.92);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.34);
}

.section-label {
  display: flex;
  width: max-content;
  margin: 0 auto 26px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #d6dfed;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
}

.showcase {
  position: relative;
  display: grid;
  min-height: 700px;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: visible;
}

.comic-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(73, 108, 170, 0.5);
  border-radius: 18px;
  background: #081120;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(27, 88, 184, 0.18);
  transition:
    width 620ms cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 620ms cubic-bezier(0.22, 0.8, 0.24, 1),
    transform 620ms cubic-bezier(0.22, 0.8, 0.24, 1),
    filter 620ms cubic-bezier(0.22, 0.8, 0.24, 1),
    border-color 620ms cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: transform, opacity, width;
}

.comic-sheet[data-slot="main"] {
  z-index: 3;
  width: min(460px, 48vw);
  opacity: 1;
  filter: saturate(1) brightness(1);
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.comic-sheet[data-slot="left"],
.comic-sheet[data-slot="right"] {
  z-index: 2;
  width: min(290px, 26vw);
  opacity: 0.9;
  filter: saturate(0.88) brightness(0.8);
}

.comic-sheet[data-slot="left"] {
  border-color: rgba(84, 155, 255, 0.52);
  transform: translate(calc(-50% + clamp(-330px, -27vw, -260px)), calc(-50% + 22px)) rotate(-2deg) scale(0.97);
}

.comic-sheet[data-slot="right"] {
  border-color: rgba(84, 155, 255, 0.52);
  transform: translate(calc(-50% + clamp(260px, 27vw, 330px)), calc(-50% + 22px)) rotate(2deg) scale(0.97);
}

.comic-sheet picture,
.comic-page-image {
  display: block;
  width: 100%;
  height: 100%;
}

.comic-page-image {
  object-fit: cover;
}

body.has-comic-lightbox {
  overflow: hidden;
}

.comic-sheet,
.mobile-comic-card {
  cursor: zoom-in;
}

.comic-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.comic-lightbox[hidden] {
  display: none;
}

.comic-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(1, 5, 12, 0.86);
  cursor: zoom-out;
  backdrop-filter: blur(16px);
}

.comic-lightbox__frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(92vw, 680px);
  max-height: min(92dvh, 920px);
  margin: 0;
  place-items: center;
}

.comic-lightbox__frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(86dvh, 860px);
  border: 1px solid rgba(84, 155, 255, 0.42);
  border-radius: 18px;
  background: #06101f;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.58),
    0 0 48px rgba(24, 116, 217, 0.22);
  object-fit: contain;
}

.comic-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(110, 171, 255, 0.34);
  border-radius: 14px;
  color: #edf6ff;
  background: rgba(7, 15, 29, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.comic-lightbox__close:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 171, 255, 0.62);
  background: rgba(13, 32, 61, 0.96);
}

.comic-lightbox__close svg {
  width: 16px;
  height: 16px;
}

.comic-lightbox__caption {
  margin-top: 12px;
  color: #c8d8ef;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 780px) {
  .comic-lightbox {
    padding: 18px 12px;
  }

  .comic-lightbox__frame {
    width: min(100%, 430px);
    max-height: 94dvh;
  }

  .comic-lightbox__frame img {
    max-height: 88dvh;
    border-radius: 14px;
  }

  .comic-lightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(3, 5, 13, 0.95);
  background-image: url("assets/comicly-reference.webp");
  background-image: image-set(
    url("assets/comicly-reference.webp") type("image/webp"),
    url("assets/comicly-reference.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-size: 1180px auto;
}

.panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08));
}

.panel-main-wide {
  grid-column: 1 / -1;
  background-position: 50% 44%;
}

.panel-main-hero {
  grid-column: 1 / -1;
  background-position: 71% 20%;
}

.panel-main-action {
  background-position: 45% 66%;
}

.panel-main-city {
  background-position: 58% 67%;
}

.main-sheet[data-theme="space"] .panel-main-wide {
  background-position: 12% 49%;
}

.main-sheet[data-theme="space"] .panel-main-hero {
  background-position: 16% 62%;
}

.main-sheet[data-theme="space"] .panel-main-action {
  background-position: 22% 68%;
}

.main-sheet[data-theme="space"] .panel-main-city {
  background-position: 5% 42%;
}

.main-sheet[data-theme="samurai"] .panel-main-wide {
  background-position: 84% 49%;
}

.main-sheet[data-theme="samurai"] .panel-main-hero {
  background-position: 89% 61%;
}

.main-sheet[data-theme="samurai"] .panel-main-action {
  background-position: 75% 67%;
}

.main-sheet[data-theme="samurai"] .panel-main-city {
  background-position: 95% 35%;
}

.panel-space-one {
  background-position: 8% 49%;
}

.panel-space-two {
  background-position: 13% 66%;
}

.panel-space-three {
  background-position: 22% 67%;
}

.panel-samurai-one {
  background-position: 84% 50%;
}

.panel-samurai-two {
  background-position: 89% 61%;
}

.panel-samurai-three {
  background-position: 78% 66%;
}

.speech {
  position: absolute;
  z-index: 3;
  max-width: 118px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  padding: 10px 12px;
  color: #171927;
  background: rgba(255, 248, 239, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.speech-main-one {
  top: 28px;
  left: 30px;
}

.speech-main-two {
  top: 222px;
  left: 48px;
}

.speech-main-three {
  right: 36px;
  bottom: 28px;
}

.speech-space-one {
  top: 30px;
  left: 28px;
}

.speech-space-two {
  top: 132px;
  left: 50px;
}

.speech-samurai-one {
  top: 92px;
  left: 46px;
}

.speech-samurai-two {
  right: 46px;
  bottom: 56px;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.icon-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(81, 125, 201, 0.46);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(12, 22, 42, 0.94);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(calc(-50% - 2px));
  border-color: rgba(87, 155, 255, 0.84);
  background: rgba(18, 34, 63, 0.98);
}

.icon-button svg {
  width: 26px;
  height: 26px;
}

.prev {
  left: 18px;
}

.next {
  right: 18px;
}

.workflow-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.workflow-strip article {
  position: relative;
  min-height: 188px;
  padding: 24px 22px 24px;
  border: 1px solid rgba(75, 104, 165, 0.22);
  border-radius: 18px;
  background: rgba(8, 15, 28, 0.72);
}

.workflow-strip article:not(:last-child)::after {
  position: absolute;
  top: 49px;
  right: -22px;
  z-index: 2;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(36, 133, 255, 0.25), rgba(103, 169, 255, 0.72));
  content: "";
}

.workflow-strip article:not(:last-child)::before {
  position: absolute;
  top: 44px;
  right: -24px;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(103, 169, 255, 0.78);
  border-right: 2px solid rgba(103, 169, 255, 0.78);
  content: "";
  transform: rotate(45deg);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 22px;
  color: rgba(130, 193, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #67a9ff;
  background: rgba(18, 58, 118, 0.24);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.workflow-strip h2,
.feature-grid h3 {
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.workflow-strip p,
.feature-grid p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-grid,
.prompt-section,
.landing-pricing-section,
.faq-section,
.feedback-section,
.site-footer {
  width: min(100% - 48px, 1120px);
  margin: 78px auto 0;
}

.compact-eyebrow {
  min-height: 34px;
  padding: 0 16px;
  font-size: 12px;
}

.section-heading h2 {
  margin: 20px 0 16px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

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

.section-heading {
  grid-column: 1 / -1;
  max-width: 760px;
}

.feature-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(75, 104, 165, 0.22);
  border-radius: 20px;
  padding: 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(13, 25, 46, 0.82), rgba(8, 15, 28, 0.74)),
    rgba(8, 15, 28, 0.7);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18);
}

.feature-card-image {
  display: block;
  width: calc(100% + 48px);
  height: 210px;
  margin: 0 -24px 24px;
  border-bottom: 1px solid rgba(75, 104, 165, 0.2);
  object-fit: cover;
  object-position: center;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.feature-grid p {
  font-size: 16px;
  line-height: 1.55;
}

.story-ideas-section {
  width: min(100% - 48px, 1120px);
  margin: 78px auto 0;
}

.story-ideas-heading {
  max-width: 900px;
  margin-bottom: 36px;
}

.story-ideas-heading h2 {
  margin: 20px 0 0;
  color: #f7f9fe;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.story-ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-idea-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 22, 41, 0.98), rgba(7, 15, 29, 0.98)),
    #07101f;
  box-shadow:
    0 0 0 1px rgba(91, 132, 204, 0.24),
    0 22px 64px rgba(0, 0, 0, 0.18);
}

.story-idea-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 508 / 437;
  background: #030a15;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.story-idea-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-idea-copy {
  min-height: 154px;
  padding: 23px 22px 26px;
}

.story-idea-copy h3 {
  margin: 0 0 12px;
  color: #f7f9fe;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.story-idea-copy p {
  margin: 0;
  color: #a8b5cb;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.prompt-section {
  position: relative;
}

.prompt-heading {
  max-width: 780px;
  margin: 0 0 34px;
  text-align: left;
}

.prompt-heading .eyebrow {
  margin-inline: 0;
}

.prompt-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
  isolation: isolate;
}

.prompt-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 2;
}

.prompt-wall::before {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.prompt-wall::before {
  inset: -38px -18px -34px;
  background:
    radial-gradient(circle at 31% 3%, rgba(95, 167, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 33% 21%, rgba(95, 167, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 13%, rgba(95, 167, 255, 0.68) 0 2px, transparent 3px),
    radial-gradient(circle at 67% 55%, rgba(95, 167, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 58% 72%, rgba(95, 167, 255, 0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 79%, rgba(95, 167, 255, 0.82) 0 4px, transparent 5px),
    radial-gradient(circle at 43% 34%, rgba(95, 167, 255, 0.82) 0 4px, transparent 5px);
  opacity: 0.92;
  animation: prompt-stars 5.5s ease-in-out infinite;
}

.prompt-lines {
  position: absolute;
  inset: -18px 0 -20px;
  z-index: 1;
  width: 100%;
  height: calc(100% + 38px);
  overflow: visible;
  pointer-events: none;
}

.prompt-lines .line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  opacity: 0.74;
  animation: prompt-dash 6s linear infinite;
}

.line-blue {
  stroke: #5fa7ff;
}

.line-cyan {
  stroke: #5fa7ff;
}

.line-violet {
  stroke: #5fa7ff;
}

.line-amber {
  stroke: #5fa7ff;
}

.prompt-card {
  --prompt-color: #5fa7ff;
  position: relative;
  display: block;
  width: 100%;
  min-height: 154px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 22px;
  background: rgba(8, 15, 28, 0.66);
  box-shadow: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.prompt-card-fill {
  flex: 1;
}

.prompt-card:hover {
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: none;
  transform: translateY(-2px);
}

.prompt-icon {
  float: left;
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 10px 0 0;
  color: var(--prompt-icon-color, #5fa7ff);
}

.prompt-icon svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.prompt-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-card h3 {
  margin: 8px 0 14px;
  color: #f1f6ff;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.prompt-card p {
  clear: both;
  margin: 0;
  color: #aab6c7;
  font-size: 14px;
  line-height: 1.46;
}

.tone-blue {
  --prompt-icon-color: #5fa7ff;
}

.tone-cyan {
  --prompt-icon-color: #35d6d0;
}

.tone-amber {
  --prompt-icon-color: #f6a12d;
}

.tone-violet {
  --prompt-icon-color: #9d68ff;
}

.tone-sky {
  --prompt-icon-color: #58c7ff;
}

.tone-orange {
  --prompt-icon-color: #f08a22;
}

@keyframes prompt-dash {
  to {
    stroke-dashoffset: -90;
  }
}

@keyframes prompt-stars {
  0%,
  100% {
    opacity: 0.52;
  }

  50% {
    opacity: 1;
  }
}

@keyframes feedback-section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes feedback-field-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes feedback-ambient-glow {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(-1.4%, 0, 0) scale(1);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(1.2%, -1.4%, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-wall::before,
  .prompt-lines .line,
  .feedback-section,
  .feedback-section::before,
  .feedback-form label {
    animation: none;
  }

  .feedback-form button::before {
    transition: none;
  }
}

.site-footer {
  display: grid;
  justify-items: stretch;
  width: min(100% - 48px, 1120px);
  margin: 78px auto 34px;
  padding: 34px 0 0;
  border-top: 1px solid rgba(75, 104, 165, 0.18);
  color: var(--muted);
  text-align: left;
}

@media (min-width: 781px) {
  .legal-shell + .site-footer {
    width: min(100% - 48px, 980px);
  }
}

.desktop-footer-content {
  display: grid;
  gap: 26px;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.desktop-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 48px;
}

.desktop-footer-brand {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 360px;
}

.desktop-footer-logo {
  width: 150px;
  height: auto;
}

.site-footer .desktop-footer-brand p {
  margin: 0;
  color: #aebad0;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.desktop-footer-brand .footer-social-link {
  margin: 6px 0 0;
}

.desktop-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
}

.desktop-footer-nav-group {
  display: grid;
  align-content: start;
  justify-items: start;
}

.site-footer .desktop-footer-nav-title {
  margin: 0 0 10px;
  color: #5ea8ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-footer-nav-group a {
  display: inline-flex;
  padding: 4px 0;
  color: #c3cee0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease;
}

.desktop-footer-nav-group a:hover {
  color: #ffffff;
}

.desktop-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 32px;
  padding-top: 18px;
  box-shadow: 0 -1px rgba(96, 153, 229, 0.14);
}

.desktop-footer-meta .footer-consent {
  max-width: 680px;
  margin: 0;
}

.desktop-footer-meta .footer-copy {
  margin-left: auto;
}

.footer-copy {
  margin: 0;
  color: #7f8a9e;
  font-size: 13px;
  line-height: 1.5;
}

.footer-consent {
  margin: 6px 0 0;
  color: #657189;
  font-size: 11px;
  line-height: 1.5;
}

.footer-consent a {
  color: #8093ad;
  text-decoration: underline;
}

.footer-consent a:hover {
  color: #ffffff;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 9px 18px;
  border: 1px solid rgba(70, 95, 137, 0.38);
  border-radius: 999px;
  color: #f6f9ff;
  background: rgba(7, 15, 29, 0.76);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 160, 230, 0.6);
  background: rgba(14, 26, 46, 0.9);
  color: #ffffff;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link svg path {
  fill: currentColor;
  stroke: none;
}

.mobile-footer-content {
  display: none;
}

.legal-shell {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
  overflow: visible;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 20px;
}

.legal-header .brand-logo {
  height: 56px;
}

.legal-page {
  margin: 28px 0 72px;
  border: 1px solid rgba(75, 104, 165, 0.24);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 54px);
  background: rgba(8, 15, 28, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.legal-page h1 {
  margin: 22px 0 10px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.legal-updated {
  margin: 0 0 34px;
  color: var(--muted);
}

.legal-page section {
  padding: 26px 0;
  border-top: 1px solid rgba(75, 104, 165, 0.18);
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-page h3 {
  margin: 24px 0 10px;
  color: #f7fbff;
  font-size: 18px;
  line-height: 1.35;
}

.legal-page p {
  margin: 10px 0 0;
  color: #d7e0ef;
  font-size: 16px;
  line-height: 1.7;
}

.legal-page ol,
.legal-page ul {
  margin: 12px 0 0;
  padding-left: 24px;
  color: #d7e0ef;
  font-size: 16px;
  line-height: 1.7;
}

.legal-page li {
  margin: 8px 0 0;
}

.legal-page li > ul {
  margin-top: 8px;
}

.legal-page strong {
  color: #f7fbff;
}

.requisites-header {
  padding-bottom: 0;
}

.requisites-page {
  width: min(100%, 760px);
  margin: 16px auto 72px;
}

.requisites-page h1 {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.requisites-card {
  border: 1px solid rgba(75, 104, 165, 0.34);
  border-radius: 8px;
  padding: 34px 32px;
  background:
    radial-gradient(circle at 14% 0%, rgba(86, 167, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(8, 18, 34, 0.92), rgba(6, 15, 29, 0.96));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.requisites-name {
  margin: 0 0 18px;
  color: #f6f9ff;
  font-size: 20px;
  line-height: 1.4;
}

.requisites-list {
  display: grid;
  margin: 0;
  padding: 0;
}

.requisites-list div {
  display: block;
  padding: 22px 0;
  border-top: 1px solid rgba(75, 104, 165, 0.24);
}

.requisites-list dt {
  margin: 0 0 10px;
  color: #f6f9ff;
  font-size: 16px;
  font-weight: 700;
}

.requisites-list dd {
  margin: 0;
  color: #d7e0ef;
  font-size: 16px;
  line-height: 1.55;
}

.requisites-list a {
  color: #82c1ff;
}

.pricing-shell {
  overflow: visible;
}

.pricing-header {
  position: relative;
  top: 0;
  left: auto;
  margin: 14px auto 0;
  transform: none;
}

.pricing-page {
  width: min(calc(100% - 48px), 1120px);
  margin: 74px auto 0;
}

.pricing-hero {
  max-width: 770px;
}

.pricing-hero .eyebrow {
  margin-inline: 0;
}

.pricing-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.pricing-hero p:last-child {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 52px 0 72px;
}

.page-pricing .mobile-pricing-picker,
.page-pricing .mobile-pricing-info {
  display: none;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 345px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(75, 104, 165, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 22, 42, 0.96), rgba(7, 13, 25, 0.92));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.featured-plan {
  z-index: 1;
  border-color: rgba(110, 184, 255, 0.82);
  background:
    radial-gradient(circle at 24% 0%, rgba(110, 184, 255, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(18, 42, 78, 0.99), rgba(8, 18, 34, 0.96));
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(28, 127, 230, 0.18);
  transform: scale(1.035);
}

.plan-main {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 28px 21px;
}

.plan-head {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-right: 104px;
}

.plan-icon {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.plan-badge {
  position: absolute;
  top: 28px;
  right: 24px;
  min-height: 28px;
  border: 1px solid rgba(86, 167, 255, 0.28);
  border-radius: 999px;
  padding: 5px 12px 0;
  color: #82c1ff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(5, 12, 24, 0.78);
}

.plan-badge-mobile {
  display: none;
}

@media (max-width: 780px) {
  .plan-badge-desktop {
    display: none;
  }

  .plan-badge-mobile {
    display: inline;
  }
}

.plan-label {
  display: block;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.pricing-card h2 {
  margin: 28px 0 8px;
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
}

.plan-coins {
  margin: 0 0 18px;
  color: #82c1ff;
  font-size: 22px;
  font-weight: 800;
}

.plan-description {
  margin: 0;
  min-height: 72px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.pricing-page {
  width: min(calc(100% - 48px), 1120px);
}

.pricing-page .pricing-plans,
.landing-pricing-section .pricing-plans {
  gap: 20px;
  margin: 52px 0 0;
}

.checkout-consent-note {
  width: 100%;
  max-width: 780px;
  margin: 16px 0 0;
  color: #8595ad;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.pricing-page .pricing-card,
.landing-pricing-section .pricing-card {
  min-height: 345px;
  border-color: rgba(27, 55, 94, 0.9);
  background:
    linear-gradient(180deg, rgba(5, 24, 47, 0.98) 0%, rgba(4, 19, 38, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(118, 184, 255, 0.06),
    0 22px 54px rgba(0, 0, 0, 0.28);
}

.pricing-page .featured-plan,
.landing-pricing-section .featured-plan {
  border-color: rgba(92, 171, 255, 0.78);
  background:
    radial-gradient(circle at 22% 0%, rgba(75, 151, 231, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(9, 34, 65, 0.99) 0%, rgba(5, 21, 42, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(118, 184, 255, 0.1),
    0 0 24px rgba(56, 144, 239, 0.26),
    0 24px 58px rgba(0, 0, 0, 0.36);
  transform: none;
}

.pricing-page .plan-main,
.landing-pricing-section .plan-main {
  padding: 16px 28px 21px;
}

.pricing-page .plan-head,
.landing-pricing-section .plan-head {
  min-height: 72px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-right: 104px;
}

.pricing-page .plan-icon,
.landing-pricing-section .plan-icon {
  width: auto;
  height: 72px;
}

.pricing-page .plan-badge,
.landing-pricing-section .plan-badge {
  top: -1px;
  right: 12px;
  min-height: 34px;
  padding: 8px 14px 0;
  border-color: rgba(93, 164, 255, 0.28);
  border-top-color: rgba(92, 171, 255, 0.78);
  border-radius: 0 0 10px 10px;
  color: #b8d8ff;
  font-size: 12px;
  background: rgba(4, 16, 32, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.pricing-page .plan-label,
.landing-pricing-section .plan-label {
  font-size: 21px;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pricing-page .pricing-card h2,
.landing-pricing-section .pricing-card h2 {
  margin: 8px 0 8px;
  font-size: 46px;
  font-weight: 900;
}

.pricing-page .plan-coins,
.landing-pricing-section .plan-coins {
  margin-bottom: 18px;
  color: #86bdff;
  font-size: 22px;
  line-height: 1;
}

.pricing-page .plan-description,
.landing-pricing-section .plan-description {
  min-height: 72px;
  max-width: none;
  color: rgba(196, 206, 223, 0.78);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.plan-generations {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(83, 113, 157, 0.35);
  border-radius: 9px;
  background: rgba(12, 29, 53, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 26px rgba(0, 0, 0, 0.14);
}

.plan-generations-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 10px;
  color: #c6d4e8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.plan-generations-info {
  position: relative;
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(122, 151, 190, 0.62);
  border-radius: 50%;
  color: #8da8ca;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  font-family: Arial, sans-serif;
  cursor: help;
}

.plan-generations-info::after {
  position: absolute;
  right: -10px;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: 260px;
  border: 1px solid rgba(94, 144, 205, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  color: #dce9fb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  background: rgba(5, 15, 30, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  content: attr(data-tooltip);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.plan-generations-info:hover::after,
.plan-generations-info:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.plan-generation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 103px;
  padding: 3px 8px 9px;
}

.plan-generation-model {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  color: #d9e4f4;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.plan-generation-model + .plan-generation-model {
  border-left: 1px solid rgba(110, 139, 177, 0.4);
}

.plan-generation-model img {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
  object-fit: contain;
}

.plan-generation-model strong {
  min-height: 24px;
  color: #e6eefb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
}

.plan-generation-count {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.92;
}

.plan-button {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  border: 1px solid rgba(83, 144, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(180deg, #1776de 0%, #0e5dbe 100%);
  box-shadow: 0 16px 36px rgba(19, 93, 194, 0.28);
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.pricing-page .plan-button,
.landing-pricing-section .plan-button {
  min-height: 50px;
  margin-top: 24px;
  font-size: 16px;
  border-color: rgba(80, 157, 255, 0.3);
  background: linear-gradient(180deg, #1784f2 0%, #116bd8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(12, 91, 196, 0.28);
}

.plan-button:hover {
  background: linear-gradient(180deg, #1d82ef 0%, #1168d3 100%);
  transform: translateY(-1px);
}

.plan-button:active {
  transform: translateY(0);
}

.pricing-table-section {
  margin-top: 58px;
}

.pricing-section-heading {
  max-width: 720px;
  margin: 0 0 20px;
}

.pricing-section-heading .eyebrow {
  margin-inline: 0;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(75, 104, 165, 0.24);
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.74);
}

.pricing-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #edf4ff;
  font-size: 17px;
  line-height: 1.35;
}

.pricing-table th,
.pricing-table td {
  padding: 19px 22px;
  border-bottom: 1px solid rgba(75, 104, 165, 0.18);
  text-align: left;
}

.pricing-table thead th {
  color: #f7fbff;
  font-size: 16px;
  font-weight: 900;
  background: rgba(22, 33, 54, 0.92);
}

.pricing-table tbody th {
  font-weight: 900;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
}

.landing-pricing-section .pricing-plans {
  margin: 36px 0 0;
}

.landing-pricing-heading {
  margin-bottom: 0;
}

.section-lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
  border-radius: 0;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(1, 8, 20, 0.08) 0%, rgba(1, 8, 20, 0.2) 42%, rgba(1, 8, 20, 0.7) 100%),
    linear-gradient(180deg, rgba(1, 8, 20, 0.04) 0%, rgba(1, 8, 20, 0.3) 100%),
    url("assets/feedback-bg.webp");
  background-position: -20px center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: feedback-section-rise 720ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.feedback-section::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(circle at 35% 58%, rgba(53, 138, 255, 0.18), transparent 24%),
    radial-gradient(circle at 84% 66%, rgba(38, 105, 214, 0.12), transparent 28%);
  opacity: 0.68;
  transform: translate3d(-1.4%, 0, 0);
  animation: feedback-ambient-glow 9s ease-in-out infinite;
  pointer-events: none;
}

.feedback-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 0%, transparent 78%, rgba(1, 8, 20, 0.96) 100%);
  pointer-events: none;
}

.feedback-copy {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.feedback-copy .eyebrow {
  margin-inline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feedback-section:hover .feedback-copy .eyebrow {
  border-color: rgba(86, 167, 255, 0.56);
  box-shadow: 0 0 0 1px rgba(86, 167, 255, 0.08), inset 0 0 24px rgba(40, 116, 224, 0.16);
  transform: translateY(-1px);
}

.feedback-copy h2 {
  margin: 20px 0 16px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.feedback-copy p:last-child,
.feedback-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feedback-status[data-state="success"] {
  color: #8fe7b2;
}

.feedback-status[data-state="error"] {
  color: #ffb2b2;
}

.feedback-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  animation: feedback-field-in 560ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.feedback-form label:nth-child(1) {
  animation-delay: 90ms;
}

.feedback-form label:nth-child(2) {
  animation-delay: 150ms;
}

.feedback-form label:nth-child(3) {
  animation-delay: 210ms;
}

.feedback-form label:nth-child(4) {
  animation-delay: 270ms;
}

.feedback-form label span {
  color: #d9e6f8;
  font-size: 13px;
  font-weight: 800;
  transition:
    color 160ms ease,
    text-shadow 160ms ease,
    transform 160ms ease;
}

.feedback-form label:focus-within span {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(86, 167, 255, 0.42);
  transform: translateY(-1px);
}

.feedback-form .feedback-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.feedback-form .feedback-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.feedback-form .feedback-consent span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: 600;
}

.feedback-form .feedback-consent a,
.checkout-consent-note a {
  color: #8bc2ff;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(93, 135, 210, 0.46);
  border-radius: 0;
  padding: 10px 0 13px;
  color: #f7fbff;
  background: transparent;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: rgba(86, 167, 255, 0.68);
  box-shadow: 0 6px 16px -14px rgba(86, 167, 255, 0.92);
  transform: translateY(-1px);
}

.feedback-form input:focus::placeholder,
.feedback-form textarea:focus::placeholder {
  color: rgba(211, 229, 255, 0.62);
}

.feedback-files input {
  border: 1px solid rgba(93, 135, 210, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 10, 22, 0.72);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.feedback-files input:hover,
.feedback-files input:focus {
  border-color: rgba(86, 167, 255, 0.48);
  background: rgba(5, 15, 31, 0.82);
  box-shadow: 0 14px 32px -28px rgba(86, 167, 255, 0.72);
  transform: translateY(-1px);
}

.feedback-files input::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 1px solid rgba(83, 144, 255, 0.22);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: rgba(16, 40, 78, 0.88);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.feedback-files input:hover::file-selector-button,
.feedback-files input:focus::file-selector-button {
  border-color: rgba(86, 167, 255, 0.56);
  background: rgba(21, 66, 128, 0.94);
  box-shadow: 0 10px 26px -20px rgba(86, 167, 255, 0.74);
}

.feedback-files small {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.feedback-form button {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border: 1px solid rgba(83, 144, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(180deg, #1776de 0%, #0e5dbe 100%);
  box-shadow: 0 16px 36px rgba(19, 93, 194, 0.28);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.feedback-form button::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-140%) skewX(-16deg);
  transition: transform 520ms ease;
  pointer-events: none;
}

.feedback-form button:hover {
  background: linear-gradient(180deg, #1d82ef 0%, #1168d3 100%);
  border-color: rgba(119, 185, 255, 0.44);
  box-shadow: 0 20px 46px rgba(19, 93, 194, 0.38);
  transform: translateY(-2px);
}

.feedback-form button:hover::before {
  transform: translateX(430%) skewX(-16deg);
}

.feedback-form button:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(19, 93, 194, 0.28);
}

.feedback-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.feedback-form button:disabled::before {
  display: none;
}

.payment-placeholder {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  width: min(420px, calc(100% - 48px));
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(86, 167, 255, 0.42);
  border-radius: 8px;
  padding: 18px;
  background: rgba(7, 13, 25, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.payment-placeholder[hidden] {
  display: none;
}

.payment-placeholder strong,
.payment-placeholder span {
  display: block;
}

.payment-placeholder strong {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 16px;
}

.payment-placeholder span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.payment-placeholder button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #d7e0ef;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.payment-placeholder svg {
  width: 18px;
  height: 18px;
}

/* Auth modal — shared create-style sign-in prompt (index / pricing / projects) */
.auth-overlay[hidden] {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  padding: 24px;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(8px);
}

.auth-overlay .auth-consent {
  max-width: 460px;
  margin: 0;
  color: #aebbd1;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-overlay .auth-consent a {
  color: #8bc2ff;
  text-decoration: underline;
}

.auth-panel {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, 620px);
  aspect-ratio: 1084 / 756;
  border: 0;
  border-radius: 34px;
  padding: 0;
  color: #f7fbff;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    0 0 72px rgba(25, 111, 237, 0.22);
  text-align: center;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/auth-modal-panel.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.auth-mark {
  display: none;
}

.auth-panel h2 {
  position: absolute;
  top: 164px;
  left: 50%;
  max-width: 360px;
  margin: 0;
  transform: translateX(-50%);
  color: #f8fbff;
  font-size: 28px;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(12, 64, 136, 0.32);
}

.auth-actions {
  position: absolute;
  right: 29px;
  bottom: 51px;
  left: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 84px;
}

.auth-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  border: 0;
  border-radius: 22px;
  color: #f7fbff;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease;
}

.auth-button > span {
  transform: translate(-6px, 11px);
}

.auth-button:hover {
  transform: translateY(-1px);
}

.auth-button.is-disabled {
  cursor: not-allowed;
  color: rgba(247, 251, 255, 0.68);
}

.auth-button.is-disabled:hover {
  transform: none;
}

.auth-button--soon {
  pointer-events: none;
}

.auth-button--soon > span:not(.soon-badge) {
  filter: blur(1.4px);
  opacity: 0.58;
}

.auth-provider-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
}

.auth-provider-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.google-auth-icon {
  background: #ffffff;
}

.yandex-auth-icon {
  color: #ffffff;
  background: #fc3f1d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.auth-button--soon .soon-badge {
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 9px;
  color: #f8fbff;
  background: rgba(12, 21, 39, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: none;
  backdrop-filter: blur(8px);
}

.auth-panel .auth-error {
  position: absolute;
  top: 302px;
  left: 50%;
  max-width: 390px;
  margin: 0;
  transform: translateX(-50%);
  color: #ffb3b3;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 12px;
  color: #aebbd1;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease;
}

.auth-close:hover {
  color: #f7fbff;
}

.auth-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .auth-overlay {
    padding: 16px 14px;
  }

  .auth-panel {
    width: min(calc(100vw - 28px), 390px, calc((100dvh - 32px) * 1084 / 756));
    height: auto;
    border-radius: clamp(18px, 7vw, 28px);
  }

  .auth-panel h2 {
    top: 34%;
    max-width: 80%;
    font-size: clamp(17px, 4.9vw, 20px);
  }

  .auth-actions {
    right: 4.9%;
    bottom: 9%;
    left: 4.9%;
    gap: 2.8%;
    height: 19.6%;
  }

  .auth-button {
    gap: 7px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: clamp(13px, 3.8vw, 14px);
    line-height: 1;
  }

  .auth-button > span {
    transform: translateY(1px);
  }

  .auth-button--soon {
    justify-content: flex-start;
    padding-right: 42px;
    padding-left: 13%;
  }

  .auth-button--soon .soon-badge {
    top: 50%;
    right: 9px;
    padding: 3px 6px;
    font-size: 8px;
    transform: translateY(-50%);
  }

  .auth-provider-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .auth-provider-icon img {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 1060px) {
  .site-header {
    width: min(100% - 32px, 920px);
    gap: 18px;
  }

  .nav-links {
    gap: 22px;
  }

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

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    transform: translateY(66px);
  }

  .showcase {
    min-height: 620px;
  }

  .comic-sheet[data-slot="main"] {
    width: min(420px, 50vw);
  }

  .comic-sheet[data-slot="left"],
  .comic-sheet[data-slot="right"] {
    width: min(250px, 27vw);
  }

  .comic-sheet[data-slot="left"] {
    transform: translate(calc(-50% + clamp(-280px, -26vw, -220px)), calc(-50% + 18px)) rotate(-2deg) scale(0.97);
  }

  .comic-sheet[data-slot="right"] {
    transform: translate(calc(-50% + clamp(220px, 26vw, 280px)), calc(-50% + 18px)) rotate(2deg) scale(0.97);
  }

  .workflow-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompt-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-lines {
    display: none;
  }

  .prompt-column:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-card {
    min-height: 345px;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: relative;
    left: auto;
    width: min(100% - 28px, 640px);
    min-height: auto;
    margin: 18px auto 0;
    grid-template-columns: 1fr auto;
    transform: none;
  }

  .nav-links {
    display: none;
  }

  .header-actions .ghost {
    display: none;
  }

  .header-actions [data-header-cta] {
    display: none;
  }

  .brand-logo {
    height: 59px;
  }

  .hero {
    min-height: 760px;
    padding: 80px 18px 56px;
  }

  .hero-art {
    width: 100%;
    opacity: 0.72;
    background-position: center top;
    background-size: 1160px auto;
  }

  .hero-art-left {
    width: 100%;
  }

  .hero-art-right {
    display: none;
  }

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

  .hero-copy {
    font-size: 18px;
  }

  .primary-cta {
    width: auto;
    min-width: 0;
    padding-inline: 24px;
    font-size: 18px;
  }

  .cta-note {
    font-size: 14px;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 640px;
    margin-inline: auto;
    text-align: left;
    transform: translateY(10px);
  }

  .preview-section,
  .feature-grid,
  .prompt-section,
  .landing-pricing-section,
  .feedback-section,
  .site-footer {
    width: min(100% - 28px, 640px);
  }

  .preview-section {
    margin-top: 0;
    padding: 20px 14px 18px;
  }

  .showcase {
    min-height: 520px;
    overflow: hidden;
  }

  .comic-sheet[data-slot="main"] {
    width: min(100%, 360px);
  }

  .comic-sheet[data-slot="left"],
  .comic-sheet[data-slot="right"] {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.82);
  }

  .prev {
    left: 4px;
  }

  .next {
    right: 4px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .workflow-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .feature-card-image {
    height: 190px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .prompt-heading {
    margin-bottom: 24px;
    text-align: left;
  }

  .prompt-heading .eyebrow {
    margin-inline: 0;
  }

  .prompt-wall {
    grid-template-columns: 1fr;
  }

  .prompt-wall::before,
  .prompt-wall::after {
    display: none;
  }

  .prompt-column,
  .prompt-column:last-child {
    display: flex;
    grid-column: auto;
    grid-template-columns: none;
  }

  .prompt-card {
    padding: 22px;
  }

  .prompt-card-fill {
    flex: initial;
  }

  .prompt-card p {
    font-size: 15px;
  }

  .pricing-page {
    width: min(calc(100% - 28px), 640px);
    margin-top: 54px;
  }

  .pricing-hero h1 {
    font-size: 40px;
  }

  .pricing-hero p:last-child {
    font-size: 16px;
  }

  .pricing-plans {
    grid-template-columns: 1fr;
    margin: 36px 0 54px;
  }

  .landing-pricing-section .pricing-plans {
    margin-bottom: 0;
  }

  .feedback-section {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 28px 20px;
    background:
      linear-gradient(180deg, rgba(1, 8, 20, 0.1) 0%, rgba(1, 8, 20, 0.64) 46%, rgba(1, 8, 20, 0.9) 100%),
      url("assets/feedback-bg.webp");
    background-position: 28% center;
    background-size: cover;
  }

  .feedback-copy h2 {
    font-size: 31px;
  }

  .pricing-card {
    min-height: 0;
  }

  .pricing-card h2 {
    font-size: 38px;
  }

  .pricing-table-section {
    margin-top: 44px;
  }

  .payment-placeholder {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 52px;
  }

  .hero {
    padding-top: 64px;
  }

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

  .legal-shell {
    width: min(100% - 24px, 640px);
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .eyebrow,
  .section-label {
    padding: 0 14px;
    font-size: 11px;
  }

  .showcase {
    min-height: 460px;
  }

  .comic-sheet[data-slot="main"] {
    width: min(100%, 300px);
  }

  .section-heading h2 {
    font-size: 28px;
  }
}

@media (max-width: 780px) {
  body {
    background:
      linear-gradient(180deg, #020711 0%, #031127 42%, #020813 100%);
  }

  .page-shell {
    overflow-x: hidden;
  }

  .site-header {
    position: relative;
    top: 0;
    z-index: 40;
    width: min(100% - 20px, 640px);
    margin-top: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    border: 0;
    border-radius: 0;
    padding: 6px 4px;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .projects-page {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .project-confirm-overlay {
    align-items: end;
    padding: 12px;
  }

  .project-confirm-panel {
    width: 100%;
    max-width: 430px;
    border-radius: 20px 20px 12px 12px;
    padding: 22px;
  }

  .project-confirm-close {
    top: 12px;
    right: 12px;
  }

  .project-confirm-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .project-confirm-copy {
    padding-right: 20px;
  }

  .project-confirm-panel h2 {
    font-size: 23px;
  }

  .project-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-confirm-actions button {
    min-height: 48px;
    padding: 0 12px;
  }

  .brand-logo {
    height: 46px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .button.compact {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  .header-account {
    gap: 6px;
  }

  .header-account .credit-pill {
    max-width: 144px;
    min-height: 40px;
    padding: 0 10px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-account .create-comic-icon,
  .header-account .avatar-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .header-account .create-comic-icon img {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 0;
    scrollbar-width: none;
  }

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

  .nav-links a {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid rgba(83, 144, 255, 0.16);
    border-radius: 999px;
    padding: 0 12px;
    color: #dbe7f7;
    background: rgba(13, 25, 46, 0.68);
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 42px 16px 34px;
    place-items: stretch;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(2, 7, 17, 0.02) 0%, rgba(2, 7, 17, 0.64) 50%, #020813 94%),
      linear-gradient(90deg, rgba(2, 7, 17, 0.22), rgba(2, 7, 17, 0.42) 42%, rgba(2, 7, 17, 0.62));
  }

  .hero-art {
    height: 520px;
    bottom: auto;
    opacity: 0.95;
    background-position: 71% -18px;
    background-size: 1080px auto;
    filter: saturate(1.14) contrast(1.08);
  }

  .hero-content {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    transform: none;
  }

  .hero-kicker {
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    margin: 0 0 18px;
    border: 1px solid rgba(95, 167, 255, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    color: #d6e4f7;
    background: rgba(5, 13, 27, 0.62);
    font-size: 13px;
    line-height: 1.25;
  }

  .hero h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.02;
  }

  .primary-cta {
    width: 100%;
    max-width: 360px;
    min-height: 54px;
    margin-top: 24px;
    border-radius: 14px;
    font-size: 16px;
    box-shadow: 0 20px 46px rgba(17, 94, 190, 0.36);
  }

  .hero-points {
    display: flex;
    gap: 12px;
    width: calc(100vw - 16px);
    max-width: none;
    margin: 34px -8px 0;
    overflow-x: auto;
    padding: 0 8px 4px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x mandatory;
    transform: none;
    scrollbar-width: none;
  }

  .hero-points::-webkit-scrollbar {
    display: none;
  }

  .hero-points li {
    min-width: min(272px, 78vw);
    min-height: 124px;
    scroll-snap-align: start;
    border: 1px solid rgba(83, 144, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    background: rgba(6, 14, 29, 0.74);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
  }

  .hero-points svg {
    width: 24px;
    height: 24px;
  }

  .hero-points strong {
    font-size: 15px;
  }

  .hero-points span {
    font-size: 13px;
  }

  .preview-section,
  .feature-grid,
  .prompt-section,
  .landing-pricing-section,
  .feedback-section,
  .site-footer {
    width: 100%;
    max-width: none;
  }

  .preview-section {
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 28px 16px 30px;
    background:
      linear-gradient(180deg, rgba(8, 15, 28, 0.95), rgba(5, 12, 24, 0.9));
    box-shadow: none;
  }

  .section-label {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .showcase {
    min-height: 468px;
    margin-inline: auto;
  }

  .comic-sheet {
    border-radius: 16px;
  }

  .comic-sheet[data-slot="main"] {
    width: min(78vw, 330px);
  }

  .icon-button {
    top: auto;
    bottom: 10px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(9, 19, 37, 0.95);
    transform: none;
  }

  .icon-button:hover {
    transform: translateY(-1px);
  }

  .prev {
    left: calc(50% - 58px);
  }

  .next {
    right: calc(50% - 58px);
  }

  .workflow-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(236px, 78vw);
    grid-template-columns: none;
    gap: 12px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .workflow-strip::-webkit-scrollbar {
    display: none;
  }

  .workflow-strip article {
    min-height: 176px;
    border-radius: 16px;
    padding: 20px;
    scroll-snap-align: start;
  }

  .feature-grid,
  .landing-pricing-section,
  .feedback-section,
  .site-footer {
    margin-top: 54px;
    padding-inline: 16px;
  }

  .feature-grid {
    gap: 14px;
  }

  .section-heading,
  .pricing-section-heading {
    max-width: 100%;
  }

  .section-heading h2,
  .feedback-copy h2 {
    margin-top: 14px;
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.08;
  }

  .section-lead {
    font-size: 15px;
  }

  .feature-grid article {
    border-radius: 16px;
    padding: 0 16px 18px;
  }

  .feature-card-image {
    width: calc(100% + 32px);
    height: 176px;
    margin: 0 -16px 18px;
  }

  .feature-grid h3 {
    font-size: 20px;
  }

  .feature-grid p {
    font-size: 15px;
  }

  .feature-grid {
    width: calc(100% - 28px);
    margin-inline: auto;
    overflow: hidden;
    gap: 0;
    border: 1px solid rgba(47, 93, 161, 0.52);
    border-radius: 18px;
    padding-inline: 0;
    background:
      linear-gradient(180deg, rgba(8, 18, 34, 0.96), rgba(6, 15, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .desktop-feature-heading,
  .feature-grid .desktop-feature-card {
    display: none;
  }

  .mobile-feature-heading {
    display: block;
    padding: 18px 14px 14px;
  }

  .mobile-feature-heading .eyebrow {
    min-height: 0;
    justify-content: flex-start;
    border: 0;
    padding: 0;
    background: none;
    color: #2683f5;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
  }

  .mobile-feature-heading .eyebrow::before {
    color: #2683f5;
    content: "✧";
    font-size: 18px;
    line-height: 1;
  }

  .mobile-feature-heading h2 {
    margin: 8px 0 0;
    color: #f6f9ff;
    font-size: 24px;
    line-height: 1.1;
  }

  .feature-grid article.mobile-feature-card {
    position: relative;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 86px;
    align-items: center;
    gap: 12px;
    border: 0;
    border-top: 1px solid rgba(70, 95, 137, 0.34);
    border-radius: 0;
    padding: 0 14px 0 0;
    background: transparent;
    box-shadow: none;
  }

  .feature-grid article.mobile-feature-card::after {
    display: none;
  }

  .feature-grid .mobile-feature-card .feature-card-image {
    width: 104px;
    height: 86px;
    margin: 0;
    border: 0;
    border-right: 1px solid rgba(70, 95, 137, 0.34);
    object-fit: cover;
  }

  .mobile-feature-copy {
    min-width: 0;
    padding-block: 12px;
  }

  .mobile-feature-copy h3 {
    margin: 0 0 4px;
    color: #f5f8ff;
    font-size: 15px;
    line-height: 1.2;
  }

  .mobile-feature-copy p {
    margin: 0;
    color: #9aa8be;
    font-size: 13px;
    line-height: 1.35;
  }

  .landing-pricing-section .pricing-plans,
  .pricing-plans {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 82vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    margin: 24px -16px 0;
    padding: 0 16px 6px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pricing-plans::-webkit-scrollbar {
    display: none;
  }

  .pricing-card,
  .featured-plan {
    min-height: 328px;
    border-radius: 16px;
    scroll-snap-align: start;
    transform: none;
  }

  .plan-main {
    padding: 18px;
  }

  .plan-head {
    min-height: 76px;
    padding-right: 92px;
  }

  .plan-icon {
    width: 50px;
    height: 50px;
  }

  .plan-badge {
    top: 18px;
    right: 18px;
  }

  .pricing-card h2 {
    margin-top: 18px;
    font-size: 40px;
  }

  .plan-description {
    min-height: 66px;
    font-size: 14px;
  }

  .plan-button {
    margin-top: auto;
    border-radius: 12px;
  }

  .landing-pricing-section .pricing-plans {
    display: none;
  }

  .landing-pricing-heading {
    margin-bottom: 18px;
  }

  .landing-pricing-heading .section-lead {
    display: none;
  }

  .landing-pricing-section {
    padding-inline: 14px;
  }

  .mobile-topup-panel {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(47, 93, 161, 0.52);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(8, 18, 34, 0.98), rgba(6, 15, 29, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .mobile-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(70, 95, 137, 0.34);
    padding: 14px;
  }

  .mobile-balance-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
  }

  .mobile-balance-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px dashed rgba(37, 132, 255, 0.9);
    border-radius: 50%;
    color: #2d8aff;
    font-size: 18px;
  }

  .mobile-balance-copy h2 {
    margin: 0 0 3px;
    color: #f6f9ff;
    font-size: 18px;
    line-height: 1.1;
  }

  .mobile-balance-copy p {
    margin: 0;
    color: #aebad0;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-balance-copy strong,
  .mobile-balance-copy span:last-child {
    color: #2683f5;
  }

  .mobile-topup-button {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(58, 98, 157, 0.42);
    border-radius: 12px;
    padding: 0 16px;
    color: #6daeff;
    background: rgba(12, 24, 44, 0.78);
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-package-list {
    padding: 16px 14px 14px;
  }

  .mobile-package-card {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    border: 1px solid rgba(70, 95, 137, 0.38);
    border-radius: 16px;
    padding: 10px 12px 10px 8px;
    background: rgba(7, 15, 29, 0.76);
  }

  .mobile-package-card + .mobile-package-card {
    margin-top: 10px;
  }

  .mobile-package-card.is-popular::before {
    position: absolute;
    top: -1px;
    left: -1px;
    border-radius: 16px 0 12px 0;
    padding: 6px 10px;
    color: #dcecff;
    background: linear-gradient(180deg, #0f65ce, #0b4d9f);
    content: "Выгодный";
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-package-art {
    display: block;
    width: 78px;
    height: 72px;
    border-right: 1px solid rgba(70, 95, 137, 0.32);
    object-fit: contain;
    object-position: left center;
    padding-right: 8px;
  }

  .mobile-package-copy {
    min-width: 0;
  }

  .mobile-package-copy h4 {
    margin: 0 0 4px;
    color: #f6f9ff;
    font-size: 17px;
    line-height: 1.15;
  }

  .mobile-package-copy p {
    margin: 0 0 2px;
    color: #9aa8be;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-package-copy span {
    color: #2683f5;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-package-buy {
    display: grid;
    justify-items: end;
    gap: 10px;
  }

  .mobile-package-buy strong {
    color: #f6f9ff;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-package-buy button {
    display: inline-flex;
    min-width: 84px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #f6f9ff;
    background: linear-gradient(180deg, #1776de 0%, #0f5fbe 100%);
    box-shadow: 0 12px 24px rgba(17, 94, 190, 0.24);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .feedback-section {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(47, 93, 161, 0.52);
    border-radius: 18px;
    padding: 18px 14px 16px;
    background:
      linear-gradient(180deg, rgba(8, 18, 34, 0.98), rgba(6, 15, 29, 0.99));
  }

  .feedback-section::before,
  .feedback-section::after {
    display: none;
  }

  .desktop-feedback-copy {
    display: none;
  }

  .mobile-feedback-copy {
    display: block;
  }

  .mobile-feedback-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #f6f9ff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
  }

  .mobile-feedback-title svg {
    width: 24px;
    height: 24px;
    color: #2683f5;
  }

  .mobile-feedback-title path,
  .mobile-feedback-title circle,
  .mobile-feedback-note path,
  .mobile-feedback-note circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-feedback-copy > p:last-child {
    margin: 8px 0 16px;
    color: #9aa8be;
    font-size: 14px;
    line-height: 1.35;
  }

  .feedback-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feedback-form label {
    gap: 0;
    border: 1px solid rgba(70, 95, 137, 0.38);
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(7, 15, 29, 0.76);
  }

  .feedback-form label span {
    display: none;
  }

  .feedback-form input,
  .feedback-form textarea {
    min-height: 48px;
    border: 0;
    padding: 0;
    color: #f6f9ff;
    font-size: 15px;
  }

  .feedback-form textarea {
    height: 68px;
    min-height: 64px;
    padding-top: 14px;
    resize: none;
  }

  .feedback-form input::placeholder,
  .feedback-form textarea::placeholder {
    color: #93a1b8;
  }

  .feedback-message,
  .feedback-form button,
  .feedback-status {
    grid-column: 1 / -1;
  }

  .feedback-message {
    min-height: 68px;
  }

  .feedback-form .feedback-files {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
    padding: 12px;
  }

  .feedback-form .feedback-files span {
    display: block;
    color: #d9e6f8;
    font-size: 13px;
    font-weight: 800;
  }

  .feedback-form .feedback-files input {
    min-height: auto;
    border: 1px dashed rgba(93, 135, 210, 0.42);
    border-radius: 10px;
    padding: 10px;
    background: rgba(3, 10, 22, 0.62);
    color: #cbd8ea;
    font-size: 13px;
  }

  .feedback-form .feedback-files input::file-selector-button {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
  }

  .feedback-form .feedback-files small {
    color: #93a1b8;
    font-size: 12px;
    line-height: 1.35;
  }

  .feedback-form .feedback-consent {
    grid-column: 1 / -1;
    border: 0;
    padding: 2px 0;
    background: transparent;
    font-size: 12px;
  }

  .feedback-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 4px;
    border-radius: 12px;
    font-size: 15px;
  }

  .feedback-form button::before {
    display: none;
  }

  .mobile-submit-icon {
    display: block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }

  .mobile-submit-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-feedback-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    color: #9aa8be;
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-feedback-note svg {
    width: 18px;
    height: 18px;
    color: #2683f5;
  }

  .mobile-feedback-note strong {
    color: #2683f5;
  }

  .feedback-form input,
  .feedback-form textarea {
    font-size: 16px;
  }

  .site-footer {
    justify-items: stretch;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 24px 16px 18px;
    background:
      radial-gradient(circle at 14% 0%, rgba(38, 131, 245, 0.08), transparent 34%),
      #020a17;
    box-shadow: inset 0 1px rgba(96, 153, 229, 0.16);
    text-align: left;
  }

  .desktop-footer-content {
    display: none;
  }

  .mobile-footer-content {
    display: grid;
    width: min(100%, 420px);
    margin-inline: auto;
    justify-items: stretch;
    gap: 0;
  }

  .mobile-footer-brand {
    display: grid;
    justify-items: start;
    gap: 10px;
  }

  .mobile-footer-logo {
    width: 118px;
    height: auto;
  }

  .mobile-footer-brand p {
    max-width: 330px;
    margin: 0;
    color: #aebad0;
    font-size: 13px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  .mobile-footer-socials {
    display: grid;
    margin-top: 14px;
  }

  .mobile-footer-socials .footer-social-link {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    margin: 0;
    padding: 0 16px;
    border-radius: 14px;
    background:
      linear-gradient(90deg, rgba(27, 82, 151, 0.24), rgba(7, 15, 29, 0.76)),
      rgba(7, 15, 29, 0.76);
    font-size: 15px;
  }

  .mobile-footer-socials .footer-social-link::after {
    margin-left: auto;
    color: #67adff;
    content: "↗";
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
  }

  .mobile-footer-socials .footer-social-link:active {
    transform: scale(0.96);
  }

  .mobile-footer-socials .footer-social-link svg {
    width: 19px;
    height: 19px;
  }

  .mobile-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    box-shadow: 0 -1px rgba(96, 153, 229, 0.14);
  }

  .mobile-footer-nav-group {
    min-width: 0;
  }

  .mobile-footer-nav-group + .mobile-footer-nav-group {
    padding-left: 18px;
    box-shadow: -1px 0 rgba(96, 153, 229, 0.12);
  }

  .site-footer .mobile-footer-nav-title {
    margin: 0 0 7px;
    color: #5ea8ff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-footer-nav-links {
    display: grid;
  }

  .mobile-footer-nav-links a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 0;
    color: #c3cee0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    text-wrap: pretty;
    transition: color 160ms ease;
  }

  .mobile-footer-nav-links a:hover {
    color: #ffffff;
  }

  .mobile-footer-meta {
    margin-top: 14px;
    padding-top: 12px;
    box-shadow: 0 -1px rgba(96, 153, 229, 0.14);
  }

  .mobile-footer-meta .footer-consent {
    max-width: 350px;
    margin: 0;
    color: #77869e;
    font-size: 11px;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .mobile-footer-copy {
    margin: 8px 0 0;
    color: #66758d;
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: calc(100% - 16px);
    border-radius: 16px;
    padding: 7px;
  }

  .brand-logo {
    height: 40px;
  }

  .button.compact {
    max-width: 154px;
    padding: 0 12px;
    font-size: 12px;
  }

  .header-account .credit-pill {
    max-width: 112px;
  }

  .nav-links a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero {
    padding: 34px 14px 30px;
  }

  .hero-art {
    height: 430px;
    background-position: 70% -8px;
    background-size: 940px auto;
  }

  .hero h1 {
    font-size: clamp(34px, 10.8vw, 42px);
  }

  .hero-points {
    width: calc(100vw - 14px);
    margin-inline: -7px;
    padding-inline: 7px;
  }

  .preview-section,
  .feature-grid,
  .landing-pricing-section,
  .site-footer {
    padding-inline: 14px;
  }

  .feedback-section {
    width: calc(100% - 28px);
    margin-inline: auto;
    padding-inline: 14px;
  }

  .showcase {
    min-height: 414px;
  }

  .comic-sheet[data-slot="main"] {
    width: min(78vw, 292px);
  }

  .workflow-strip {
    grid-auto-columns: minmax(226px, 82vw);
  }

  .landing-pricing-section .pricing-plans,
  .pricing-plans {
    grid-auto-columns: minmax(258px, 84vw);
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .feedback-form {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .mobile-footer-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mobile-footer-nav-group + .mobile-footer-nav-group {
    padding-top: 12px;
    padding-left: 0;
    box-shadow: 0 -1px rgba(96, 153, 229, 0.12);
  }
}

@media (max-width: 780px) {
  .page-home .site-header {
    position: absolute;
    top: 8px;
    left: 50%;
    width: calc(100% - 18px);
    min-height: 50px;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    padding: 6px 4px;
    background: transparent;
    box-shadow: none;
    transform: translateX(-50%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .brand-logo {
    height: 48px;
  }

  .page-home .nav-burger {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-links {
    display: none;
  }

  .button.compact {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 16px 10px 16px;
  }

  .page-home .hero {
    padding-top: 76px;
  }

  .hero::before {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(2, 7, 17, 0.01) 0%, rgba(2, 7, 17, 0.05) 22%, rgba(2, 7, 17, 0.18) 58%, rgba(2, 8, 19, 0.74) 88%, #020813 100%),
      linear-gradient(90deg, rgba(2, 7, 17, 0.06), rgba(2, 7, 17, 0.18));
  }

  .hero::after {
    display: none;
  }

  .hero-art {
    height: 540px;
    opacity: 1;
    background-image: url("assets/mobile-hero-orb-bg.webp");
    background-image: image-set(
      url("assets/mobile-hero-orb-bg.webp") type("image/webp"),
      url("assets/mobile-hero-orb-bg.png") type("image/png")
    );
    background-position: center clamp(-250px, -36vw, -110px);
    background-size: 100% auto;
    filter: saturate(1.02) contrast(1.04);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.18) 94%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.18) 94%, transparent 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .hero-kicker,
  .hero-points {
    display: none;
  }

  .hero h1 {
    display: block;
    max-width: 390px;
    margin: 36px 0 0;
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.08;
    white-space: normal;
  }

  .hero-title-line {
    display: block;
  }

  .hero-title-line--animated {
    white-space: nowrap;
  }

  .hero h1.mobile-hero-title {
    max-width: 370px;
    font-size: 31px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero-typeword {
    min-width: 6.2ch;
  }

  .mobile-hero-copy {
    display: block;
    max-width: 320px;
    margin: 12px 0 0;
    color: #b8c3d4;
    font-size: 14px;
    line-height: 1.32;
  }

  .primary-cta {
    width: fit-content;
    min-width: 0;
    min-height: 44px;
    margin-top: 18px;
    border-radius: 12px;
    padding: 0 18px;
    gap: 10px;
    font-size: 14px;
  }

  .page-home .hero .primary-cta {
    border-color: rgba(132, 194, 255, 0.58);
    color: #ffffff;
    background: linear-gradient(180deg, #328fff 0%, #1874eb 100%);
    box-shadow: none;
    filter: none;
    opacity: 1;
  }

  .page-home .signup-bonus--hero {
    filter: none;
  }

  .primary-cta svg {
    width: 18px;
    height: 18px;
  }

  .mobile-hero-preview {
    display: block;
    aspect-ratio: 2.05 / 1;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(79, 143, 250, 0.36);
    border-radius: 14px;
    background: rgba(8, 15, 28, 0.7);
  }

  .mobile-hero-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .preview-section {
    position: relative;
    z-index: 1;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    padding: 18px 0 24px;
    background: #020813;
    box-shadow: none;
  }

  .preview-section + .feature-grid {
    margin-top: 28px;
  }

  .preview-section::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    z-index: -1;
    height: 92px;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, rgba(2, 8, 19, 0) 0%, rgba(2, 8, 19, 0.42) 48%, #020813 100%);
  }

  .preview-section::after {
    position: absolute;
    right: 0;
    bottom: -52px;
    left: 0;
    z-index: 2;
    height: 96px;
    pointer-events: none;
    content: "";
    background:
      linear-gradient(180deg, rgba(2, 8, 19, 0) 0%, rgba(2, 8, 19, 0.64) 38%, rgba(3, 14, 29, 0.82) 72%, rgba(3, 18, 36, 0) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  }

  .section-label {
    position: relative;
    z-index: 3;
    width: calc(100% - 20px);
    justify-content: flex-start;
    min-height: 0;
    margin: 0 auto 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d8e2f0;
    font-size: 13px;
    line-height: 1.4;
  }

  .mobile-comic-rail {
    display: none;
  }

  .showcase {
    position: relative;
    z-index: 3;
    display: grid;
    min-height: 540px;
    margin: 0 auto;
    overflow: hidden;
    touch-action: pan-y;
  }

  .comic-sheet {
    border-radius: 14px;
    transition-duration: 520ms;
  }

  .comic-sheet[data-slot="main"] {
    width: min(84vw, 366px);
    filter: saturate(1) brightness(1);
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  .comic-sheet[data-slot="left"],
  .comic-sheet[data-slot="right"] {
    width: min(57vw, 240px);
    opacity: 0.72;
    filter: saturate(0.82) brightness(0.72);
  }

  .comic-sheet[data-slot="left"] {
    transform: translate(calc(-50% - 189px), calc(-50% + 27px)) rotate(-2deg) scale(0.92);
  }

  .comic-sheet[data-slot="right"] {
    transform: translate(calc(-50% + 189px), calc(-50% + 27px)) rotate(2deg) scale(0.92);
  }

  .icon-button {
    display: none;
  }

  .prev {
    left: calc(50% - 52px);
  }

  .next {
    right: calc(50% - 52px);
  }

  .workflow-strip {
    display: none;
  }

}

@media (max-width: 780px) {
  .preview-section .showcase .icon-button {
    display: none;
  }

  .pricing-page {
    width: min(calc(100% - 28px), 520px);
    margin-top: 24px;
    padding-bottom: 18px;
  }

  .pricing-page .pricing-hero h1 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.05;
    text-wrap: balance;
  }

  .page-pricing .pricing-kicker-row {
    position: relative;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
  }

  .pricing-page .pricing-hero > p:last-child {
    display: none;
  }

  .pricing-page .pricing-plans {
    display: none;
  }

  .page-pricing .mobile-pricing-picker {
    display: block;
    margin-top: 10px;
  }

  .page-pricing .mobile-pricing-info {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: #b8c8de;
  }

  .page-pricing .mobile-pricing-info summary {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    padding: 0;
    list-style: none;
    cursor: pointer;
  }

  .page-pricing .mobile-pricing-info summary::-webkit-details-marker {
    display: none;
  }

  .page-pricing .mobile-pricing-info summary:focus-visible {
    border-radius: 50%;
    outline: 2px solid #8bc9ff;
    outline-offset: -2px;
  }

  .page-pricing .mobile-pricing-info-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: #92bce9;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    box-shadow: inset 0 0 0 2px rgba(120, 164, 215, 0.62);
    transform: scale(1);
    transition-property: background-color, box-shadow, color, transform;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
  }

  .page-pricing .mobile-pricing-info[open] .mobile-pricing-info-icon {
    color: #ffffff;
    background: #147ee8;
    box-shadow: 0 0 14px rgba(61, 168, 255, 0.46);
    transform: scale(1);
  }

  .page-pricing .mobile-pricing-info p {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: min(320px, calc(100vw - 28px));
    margin: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #afbed2;
    font-size: 12px;
    line-height: 1.5;
    text-wrap: pretty;
    background: rgba(5, 18, 36, 0.98);
    box-shadow:
      inset 0 0 0 1px rgba(88, 146, 219, 0.44),
      0 16px 38px rgba(0, 0, 0, 0.42);
  }

  .page-pricing .mobile-package-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .page-pricing .mobile-package-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    padding: 0;
    background:
      linear-gradient(180deg, rgba(5, 24, 47, 0.98) 0%, rgba(4, 19, 38, 0.98) 100%);
    box-shadow:
      inset 0 0 0 1px rgba(67, 112, 177, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 14px 34px rgba(0, 0, 0, 0.22);
    transition-property: box-shadow;
    transition-duration: 180ms;
    transition-timing-function: ease-out;
  }

  .page-pricing .mobile-package-card + .mobile-package-card {
    margin-top: 0;
  }

  .page-pricing .mobile-package-card.is-selected {
    background:
      radial-gradient(circle at 24% 0%, rgba(65, 151, 243, 0.26), transparent 44%),
      linear-gradient(180deg, rgba(7, 31, 61, 0.99) 0%, rgba(4, 21, 42, 0.98) 100%);
    box-shadow:
      inset 0 0 0 1.5px rgba(57, 157, 255, 0.98),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 24px rgba(27, 126, 231, 0.16),
      0 18px 42px rgba(0, 0, 0, 0.3);
  }

  .page-pricing .mobile-package-select {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 96px;
    grid-template-columns: 24px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 18px;
    padding: 12px 16px 12px 14px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    cursor: pointer;
  }

  .page-pricing .mobile-package-card.has-badge .mobile-package-select {
    padding-top: 24px;
  }

  .page-pricing .mobile-package-select:focus-visible {
    outline: 2px solid #8bc9ff;
    outline-offset: -4px;
  }

  .page-pricing .mobile-package-radio {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    box-shadow:
      inset 0 0 0 2px rgba(144, 174, 213, 0.78),
      0 0 0 5px rgba(38, 112, 193, 0.08);
  }

  .page-pricing .mobile-package-radio span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0;
    filter: blur(4px);
    background: #ffffff;
    box-shadow:
      0 0 0 5px #147ee8,
      0 0 16px rgba(61, 168, 255, 0.72);
    transform: scale(0.25);
    transition-property: opacity, filter, transform;
    transition-duration: 220ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  }

  .page-pricing .mobile-package-card.is-selected .mobile-package-radio span {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }

  .page-pricing .mobile-package-art {
    display: block;
    width: 58px;
    height: 58px;
    border-right: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    padding-right: 0;
  }

  .page-pricing .mobile-package-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
  }

  .page-pricing .mobile-package-copy strong {
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
  }

  .page-pricing .mobile-package-copy span {
    color: #86bdff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .page-pricing .mobile-package-price {
    justify-self: end;
    color: #ffffff;
    font-size: clamp(26px, 7.2vw, 31px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .page-pricing .mobile-package-badge {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 1;
    min-height: 28px;
    border-radius: 0 0 10px 10px;
    padding: 6px 11px 0;
    color: #c5e1ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    background: rgba(4, 18, 37, 0.92);
    box-shadow:
      inset 0 0 0 1px rgba(74, 157, 247, 0.36),
      0 8px 18px rgba(0, 0, 0, 0.24);
  }

  .page-pricing .mobile-package-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition-property: grid-template-rows, opacity, transform;
    transition-duration: 220ms, 150ms, 150ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1), ease-in, ease-in;
  }

  .page-pricing .mobile-package-card.is-selected .mobile-package-details {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-duration: 240ms, 180ms, 180ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1), ease-out, ease-out;
  }

  .page-pricing .mobile-package-details-clip {
    min-height: 0;
    overflow: hidden;
  }

  .page-pricing .mobile-package-yields {
    margin: 0 14px 8px;
    border-radius: 10px;
    padding: 6px 6px 7px;
    background: rgba(10, 29, 54, 0.78);
    box-shadow:
      inset 0 0 0 1px rgba(108, 151, 207, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }

  .page-pricing .mobile-package-yields > p {
    margin: 0 0 4px;
    color: #c6d4e8;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
  }

  .page-pricing .mobile-package-yield-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-pricing .mobile-package-yield-grid > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0 4px;
    color: #e4edfa;
    text-align: center;
  }

  .page-pricing .mobile-package-yield-grid > div + div {
    border-left: 1px solid rgba(110, 139, 177, 0.38);
  }

  .page-pricing .mobile-package-yield-grid img {
    width: 17px;
    height: 17px;
    object-fit: contain;
  }

  .page-pricing .mobile-package-yield-grid span {
    min-width: 0;
    color: #e4edfa;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.1;
    text-wrap: balance;
  }

  .page-pricing .mobile-package-yield-grid strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .pricing-page .mobile-card-checkout {
    width: calc(100% - 28px);
    min-height: 44px;
    margin: 0 14px 14px;
    border-radius: 10px;
    font-size: 15px;
    transition-property: box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
  }

  .pricing-page .mobile-card-checkout:active {
    transform: scale(0.96);
  }

  .pricing-page .checkout-consent-note {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
  }

}

@media (max-width: 380px) {
  .page-pricing .mobile-package-select {
    grid-template-columns: 22px 52px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 11px 13px;
  }

  .page-pricing .mobile-package-art {
    width: 52px;
    height: 52px;
  }

  .page-pricing .mobile-package-copy strong {
    font-size: 17px;
  }

  .page-pricing .mobile-package-copy span {
    font-size: 14px;
  }

  .page-pricing .mobile-package-price {
    font-size: 25px;
  }

  .page-pricing .mobile-package-yield-grid span {
    font-size: 9px;
  }
}

@media (max-width: 780px) and (prefers-reduced-motion: reduce) {
  .page-pricing .mobile-package-card,
  .page-pricing .mobile-package-radio span,
  .page-pricing .mobile-package-details,
  .page-pricing .mobile-pricing-info-icon,
  .pricing-page .mobile-card-checkout {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 780px) {
  .hero-cta-row {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    margin-top: 28px;
  }

  .signup-bonus--hero {
    width: 112px;
  }
}

@media (max-width: 420px) {
  .signup-bonus--hero {
    width: 101px;
    transform: translate(38%, -55%) rotate(14deg);
  }
}

/* Community gallery CTA on the landing examples block */
.community-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(640px, 92%);
  margin: 32px auto 0;
  padding: 18px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(24, 116, 217, 0.16), rgba(86, 167, 255, 0.08));
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-cta:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 18px 44px var(--shadow);
}

.community-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.community-cta-text strong {
  font-size: 17px;
}

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

.community-cta-arrow {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.community-cta-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 560px) {
  .community-cta {
    padding: 16px 18px;
  }

  .community-cta-text strong {
    font-size: 15px;
  }

  .community-cta-text span {
    font-size: 13px;
  }
}

/* Publish-to-gallery controls on project cards */
.project-card-cover {
  position: relative;
}

.project-public-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  box-shadow: 0 6px 16px var(--shadow);
}

.project-card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-publish-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(120, 153, 213, 0.24);
  border-radius: 8px;
  color: #9fb8de;
  background: rgba(10, 20, 36, 0.76);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-publish-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.project-publish-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.project-publish-button.is-public {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.project-publish-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* FAQ section */
.faq-heading {
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 160ms ease;
}

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

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-item > summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.faq-item[open] > summary::after {
  transform: rotate(-135deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  transition: height 280ms ease;
}

.faq-item[open] .faq-answer {
  height: auto;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
}

/* Disable the height transition while JS measures the reserved height. */
.faq-list.faq-measuring .faq-answer {
  transition: none;
}

@media (max-width: 640px) {
  .faq-item > summary {
    padding: 15px 16px;
    font-size: 15px;
  }

  .faq-answer {
    font-size: 14px;
  }

  .faq-answer p {
    padding: 0 16px 16px;
  }
}

/* SEO landing pages (/ai-comics, /manga) */
.landing-section {
  width: min(100% - 48px, 900px);
  margin: 72px auto 0;
}

.landing-section .section-heading {
  max-width: none;
  margin-bottom: 24px;
}

.landing-prose p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.landing-prose p:last-child {
  margin-bottom: 0;
}

.landing-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 14px;
}

.landing-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 60px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
}

.landing-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.landing-steps li strong {
  display: block;
  margin-bottom: 4px;
}

.landing-steps li span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.landing-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 20px;
}

.landing-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.landing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-cta-block {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

@media (max-width: 640px) {
  .landing-section {
    margin-top: 48px;
  }
}

/* Узкие телефоны: ужимаем кнопки и лого, чтобы они не наезжали друг на друга */
@media (max-width: 400px) {
  .brand-logo {
    height: 36px;
  }

  .header-account {
    gap: 5px;
  }

  .header-account .credit-pill {
    max-width: 104px;
    padding: 0 8px;
    font-size: 11px;
  }

  .header-account .create-comic-icon,
  .header-account .avatar-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .header-account .create-comic-icon img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    height: 30px;
  }

  .header-account {
    gap: 4px;
  }

  .header-account .credit-pill {
    max-width: 96px;
    padding: 0 7px;
  }

  .header-account .create-comic-icon,
  .header-account .avatar-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .header-account .create-comic-icon img {
    width: 26px;
    height: 26px;
  }
}

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

@media (max-width: 780px) {
  .story-ideas-section {
    width: min(100% - 28px, 640px);
    margin-top: 54px;
  }

  .story-ideas-heading {
    margin-bottom: 24px;
  }

  .story-ideas-heading h2 {
    margin-top: 14px;
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: 1.08;
  }

  .story-ideas-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-idea-card {
    display: grid;
    min-height: 124px;
    grid-template-columns: 124px minmax(0, 1fr);
    border-radius: 14px;
  }

  .story-idea-visual {
    min-height: 124px;
    aspect-ratio: auto;
  }

  .story-idea-copy {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
  }

  .story-idea-copy h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.22;
  }

  .story-idea-copy p {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 620px) {
  .story-ideas-section {
    width: calc(100% - 24px);
  }

  .story-ideas-grid {
    gap: 8px;
  }

  .story-idea-card {
    min-height: 118px;
    grid-template-columns: 118px minmax(0, 1fr);
    border-radius: 12px;
  }

  .story-idea-visual {
    min-height: 118px;
  }

  .story-idea-copy {
    padding: 12px 13px;
  }

  .story-idea-copy h3 {
    font-size: 14px;
  }
}

/* «Мои проекты» на мобильных — раскладка как в галерее: две карточки в ряд,
   компактная карточка (обложка 3/4, статус, название, действия) + пагинация. */
@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .project-card {
    gap: 10px;
    min-height: 0;
    border-radius: 12px;
    padding: 10px;
  }

  .project-card--new {
    grid-column: 1 / -1;
  }

  .project-card-cover {
    aspect-ratio: 3 / 4;
  }

  .project-card p,
  .project-card-meta {
    display: none;
  }

  .project-card-main {
    gap: 8px;
  }

  .project-status {
    padding: 4px 8px;
    font-size: 11px;
  }

  .project-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .project-card-actions {
    gap: 8px;
  }

  .project-card-actions .button.compact {
    min-height: 36px;
    border: 0;
    padding: 0 2px;
    color: var(--cyan);
    background: none;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
  }

  .project-card-tools {
    gap: 6px;
  }

  .project-publish-button,
  .project-archive-button {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .project-public-badge {
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .projects-pagination {
    gap: 10px;
  }

  .projects-page-info {
    min-width: 0;
  }
}
