: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;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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,
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;
}

.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;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.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 .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 .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 .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);
}

.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-art {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -2;
  width: 100%;
  background-image: url("assets/comicly-hero-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(100vw, 1900px) 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.02;
  letter-spacing: 0;
}

.hero h1 span {
  background: linear-gradient(180deg, #5fb0ff 0%, #1c74e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 0;
  color: #b8c6da;
  font-size: 19px;
  line-height: 1.45;
}

.primary-cta {
  min-width: 344px;
  min-height: 56px;
  margin-top: 32px;
  padding: 0 34px;
  background: linear-gradient(180deg, #1776de 0%, #0f5fbe 100%);
  box-shadow: 0 22px 44px rgba(17, 94, 190, 0.28);
  font-size: 17px;
}

.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-page-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(3, 5, 13, 0.95);
  background-image: url("assets/comicly-reference.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 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.workflow-strip article {
  min-height: 176px;
  padding: 26px 24px;
  border: 1px solid rgba(75, 104, 165, 0.22);
  border-radius: 18px;
  background: rgba(8, 15, 28, 0.72);
}

.step-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #67a9ff;
  background: rgba(18, 58, 118, 0.24);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.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,
.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(4, 1fr);
  gap: 18px;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 650px;
}

.feature-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 125px;
  border: 1px solid rgba(75, 104, 165, 0.22);
  border-radius: 20px;
  padding: 22px 24px;
  background: rgba(8, 15, 28, 0.7);
}

.feature-grid h3 {
  margin: 0 0 8px;
}

.feature-grid p {
  font-size: 14px;
  line-height: 1.45;
}

.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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-wall::before,
  .prompt-lines .line {
    animation: none;
  }
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(75, 104, 165, 0.18);
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  color: #c7d0df;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.footer-links a {
  color: inherit;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links span {
  color: #657189;
}

.footer-copy {
  margin: 0;
  color: #7f8a9e;
  font-size: 13px;
  line-height: 1.5;
}

.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 p {
  margin: 10px 0 0;
  color: #d7e0ef;
  font-size: 16px;
  line-height: 1.7;
}

.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(139, 151, 188, 0.28);
  border-radius: 8px;
  padding: 34px 32px;
  background:
    radial-gradient(circle at 14% 0%, rgba(124, 90, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(35, 31, 55, 0.88), rgba(21, 22, 38, 0.9));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.requisites-name {
  margin: 0 0 18px;
  color: #f6f0ff;
  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(180, 188, 216, 0.14);
}

.requisites-list dt {
  margin: 0 0 10px;
  color: #fff7f1;
  font-size: 16px;
  font-weight: 700;
}

.requisites-list dd {
  margin: 0;
  color: #dde2ff;
  font-size: 16px;
  line-height: 1.55;
}

.requisites-list a {
  color: #9f8cff;
}

.pricing-shell {
  overflow: visible;
}

.pricing-header {
  position: relative;
  left: auto;
  width: min(calc(100% - 48px), 1180px);
  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;
}

.pricing-card {
  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 {
  border-color: rgba(86, 167, 255, 0.58);
  background:
    radial-gradient(circle at 24% 0%, rgba(86, 167, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(13, 32, 62, 0.98), rgba(7, 13, 25, 0.94));
}

.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-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;
}

.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;
}

.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;
}

.pricing-footer {
  margin-top: 82px;
}

.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;
}

@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,
  .feature-grid {
    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;
  }

  .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: min(100%, 340px);
    min-width: 0;
    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,
  .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;
  }

  .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;
  }

  .site-footer {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .pricing-header {
    width: min(calc(100% - 28px), 640px);
    margin-top: 18px;
  }

  .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;
  }

  .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;
  }
}
