/* ==========================================================================
   Little Legends — design system
   Warm paper, ink outlines, comic energy, storybook typography.
   ========================================================================== */

:root {
  --paper: #fbf4e7;
  --paper-deep: #f2e5cf;
  --cream: #fff9ed;
  --ink: #16121b;
  --ink-2: #2c2531;
  --muted: #6b5f6c;
  --coral: #ff4d2e;
  --coral-deep: #e23a1d;
  --sun: #ffc53d;
  --sun-soft: #ffe9a8;
  --teal: #0fa98f;
  --violet: #8b5cf6;
  --sky: #76c7f2;
  --lilac: #ece2fb;
  --line: 2.5px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);
  --radius: 20px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-comic: "Bangers", "Impact", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(22, 18, 27, 0.055) 0.9px, transparent 0.9px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] {
  --font-display: "Cairo", "Fraunces", Georgia, serif;
  --font-body: "Cairo", "DM Sans", sans-serif;
}

[dir="rtl"] .cover-title,
[dir="rtl"] .end-title,
[dir="rtl"] .caption,
[dir="rtl"] .bubble,
[dir="rtl"] .cover-sub {
  letter-spacing: 0;
}

[dir="rtl"] .cover-title {
  line-height: 1.12;
  font-size: 7.6cqw;
}

.cover-title.long {
  font-size: 7cqw;
}

.cover-title.xlong {
  font-size: 6.1cqw;
}

[dir="rtl"] .cover-title.long {
  font-size: 6.7cqw;
}

[dir="rtl"] .cover-title.xlong {
  font-size: 5.9cqw;
}

[dir="rtl"] .end-title {
  line-height: 1.15;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.view[hidden] {
  display: none !important;
}

/* ── typography helpers ─────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px var(--ink);
  transform: rotate(12deg);
}

.eyebrow-light {
  color: rgba(251, 244, 231, 0.86);
}

.eyebrow-light .eyebrow-dot {
  background: var(--sun);
  box-shadow: 0 0 0 2px rgba(251, 244, 231, 0.3);
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-tight {
  padding: 66px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.65rem);
  margin-bottom: 16px;
}

.section-head > p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head-center > p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.soon-note {
  font-size: 13px !important;
  color: var(--muted);
  font-style: italic;
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.btn-primary {
  background: var(--coral);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--cream);
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
}

.btn-paper {
  background: var(--paper);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: 2px 2px 0 var(--ink);
  transform: none;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  margin-left: -6px;
}

.play-dot .icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
  margin-left: 1px;
}

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 244, 231, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 6px 0 rgba(22, 18, 27, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--coral);
  color: var(--cream);
  transform: rotate(-7deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-mark .icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-word span {
  color: var(--coral);
  font-style: italic;
}

.desk-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav-link {
  border: 0;
  background: transparent;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s;
}

.nav-link:hover {
  background: var(--paper-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 9px 7px 11px;
  background: var(--cream);
}

.lang-picker .icon {
  width: 15px;
  height: 15px;
}

.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  max-width: 104px;
  padding-right: 2px;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 20px;
  border-top: 1.5px dashed rgba(22, 18, 27, 0.25);
  background: var(--paper);
}

.mobile-menu .nav-link {
  text-align: left;
  padding: 12px 8px;
  font-size: 16px;
}

.mobile-menu .btn {
  margin-top: 8px;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding: 66px 0 58px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -160px;
  top: 110px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--sun-soft), transparent 68%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3.35rem, 6.35vw, 6.4rem);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.055em;
  margin: 0 0 26px;
}

.hero-title em {
  font-style: italic;
  font-weight: 800;
  color: var(--coral);
  text-decoration: underline wavy var(--sun) 5px;
  text-underline-offset: 9px;
}

.hero-sub {
  max-width: 510px;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list .icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
  stroke-width: 2.3;
}

/* hero artwork */

.hero-art {
  position: relative;
  height: 660px;
  min-width: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  top: 110px;
  inset-inline-start: 50%;
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 10px 10px 0 rgba(22, 18, 27, 0.12);
}

.hero-art::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px dashed rgba(22, 18, 27, 0.35);
  bottom: 36px;
  inset-inline-end: 20px;
}

.hero-card {
  position: absolute;
  width: var(--w, 270px);
  top: var(--y, 0);
  inset-inline-start: var(--x, 0);
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow: 11px 11px 0 var(--ink);
  transform: rotate(var(--rot, 0deg));
  overflow: hidden;
  z-index: 2;
  animation: float-card 7s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-card .scene {
  position: absolute;
  inset: 0;
}

.hero-card .scene svg {
  width: 100%;
  height: 100%;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(22, 18, 27, 0.72) 100%);
}

.hero-card-portrait {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 56%;
  aspect-ratio: 3 / 4;
  border: 4px solid var(--cream);
  outline: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(22, 18, 27, 0.45);
  z-index: 2;
}

.hero-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-meta {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  z-index: 3;
  color: var(--cream);
}

.hero-card-meta .mini-kicker {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 4px;
}

.hero-card-meta h3 {
  font-size: 20px;
  line-height: 1.02;
  color: var(--cream);
  text-shadow: 1px 1px 0 rgba(22, 18, 27, 0.5);
}

.hero-card:nth-of-type(2) {
  z-index: 3;
}

.hero-sticker {
  position: absolute;
  z-index: 5;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}

.sticker-1 {
  top: 46px;
  inset-inline-start: 8%;
  transform: rotate(-6deg);
  background: var(--teal);
  color: var(--cream);
}

.sticker-2 {
  top: 220px;
  inset-inline-end: -2%;
  transform: rotate(5deg);
  background: var(--sun);
}

.sticker-3 {
  bottom: 8px;
  inset-inline-start: 3%;
  transform: rotate(-4deg);
  background: var(--lilac);
}

@keyframes float-card {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

/* ── marquee ───────────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-block: 2.5px solid var(--ink);
  background: var(--sun);
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item .icon {
  width: 17px;
  height: 17px;
  fill: var(--ink);
  stroke: var(--ink);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── how ───────────────────────────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.how-card {
  position: relative;
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 10px 0 var(--ink);
}

.how-num {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  font-family: var(--font-comic);
  font-size: 30px;
  color: var(--paper-deep);
  letter-spacing: 0.04em;
}

.how-icon,
.trust-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2.5px solid var(--ink);
  border-radius: 15px;
  margin-bottom: 22px;
  box-shadow: 3px 3px 0 var(--ink);
}

.how-icon .icon,
.trust-icon .icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.1;
}

.tone-coral {
  background: var(--coral);
  color: var(--cream);
}

.tone-teal {
  background: var(--teal);
  color: var(--cream);
}

.tone-violet {
  background: var(--violet);
  color: var(--cream);
}

.tone-sun {
  background: var(--sun);
  color: var(--ink);
}

.how-card h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── categories ────────────────────────────────────────────────────────── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  grid-column: span 2;
  height: 292px;
  border: 2.5px solid var(--ink);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--ink);
  text-align: start;
  padding: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.category-card:nth-child(4),
.category-card:nth-child(5) {
  grid-column: span 3;
  height: 276px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 10px 0 var(--ink);
}

.category-card .scene {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease);
}

.category-card .scene svg {
  width: 100%;
  height: 100%;
}

.category-card:hover .scene {
  transform: scale(1.045);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 27, 0.04) 25%, rgba(22, 18, 27, 0.9) 100%);
}

.category-card-content {
  position: absolute;
  inset-inline: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--cream);
}

.category-card-content h3 {
  font-size: 27px;
  margin-bottom: 6px;
  text-shadow: 1px 1px 0 rgba(22, 18, 27, 0.4);
}

.category-card-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 249, 237, 0.82);
  max-width: 90%;
}

.category-emoji {
  position: absolute;
  top: 16px;
  inset-inline-start: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream);
  border: 2px solid var(--ink);
  font-size: 20px;
  box-shadow: 3px 3px 0 var(--ink);
}

.category-arrow {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  color: var(--ink);
  transform: rotate(-35deg);
  transition: transform 0.2s var(--ease);
}

.category-card:hover .category-arrow {
  transform: rotate(0deg);
}

.category-arrow .icon {
  width: 16px;
  height: 16px;
}

/* ── trends ────────────────────────────────────────────────────────────── */

.trends-section {
  background: var(--ink);
  color: var(--paper);
  border-block: 2.5px solid var(--ink);
  overflow: hidden;
}

.trends-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(251, 244, 231, 0.08) 0.9px, transparent 0.9px);
  background-size: 18px 18px;
  pointer-events: none;
}

.trends-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.trends-copy h2 {
  color: var(--paper);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  margin-bottom: 18px;
}

.trends-copy > p:not(.eyebrow) {
  color: rgba(251, 244, 231, 0.7);
  font-size: 16px;
  line-height: 1.65;
  max-width: 470px;
}

.research-stats {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 22px 0;
  border-block: 1.5px solid rgba(251, 244, 231, 0.18);
}

.research-stats > div {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.research-stats strong {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.9;
  color: var(--sun);
  flex: none;
}

#research-headline {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.45;
  color: var(--paper);
  max-width: 380px;
  padding-top: 2px;
}

.research-stats span {
  font-size: 11.5px;
  color: rgba(251, 244, 231, 0.55);
  line-height: 1.4;
  max-width: 230px;
}

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

.trend-card {
  background: #211b28;
  border: 1.5px solid rgba(251, 244, 231, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}

.trend-card:hover {
  border-color: var(--sun);
  transform: translateX(4px);
  background: #271f30;
}

.trend-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.trend-rank {
  font-family: var(--font-comic);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--sun);
}

.trend-heat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(251, 244, 231, 0.55);
}

.heat-bar {
  width: 64px;
  height: 5px;
  border-radius: 99px;
  background: rgba(251, 244, 231, 0.15);
  overflow: hidden;
}

.heat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  border-radius: inherit;
}

.trend-card h3 {
  font-size: 18px;
  line-height: 1.18;
  margin-bottom: 7px;
  color: var(--paper);
}

.trend-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(251, 244, 231, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 10.5px;
  color: rgba(251, 244, 231, 0.45);
}

.trend-card-meta a {
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trend-select {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid rgba(251, 244, 231, 0.28);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  transition: 0.16s;
}

.trend-select:hover {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

/* ── languages ─────────────────────────────────────────────────────────── */

.languages-section {
  background: var(--lilac);
  border-block: 2.5px solid var(--ink);
}

.lang-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.language-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lang-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 15px;
  padding: 13px 15px;
  box-shadow: 3px 3px 0 var(--ink);
  text-align: start;
  transition: transform 0.16s, box-shadow 0.16s;
}

.lang-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.lang-flag {
  font-size: 24px;
  line-height: 1;
}

.lang-native {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.lang-en {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── samples ───────────────────────────────────────────────────────────── */

.samples-section {
  background: var(--paper);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sample-card {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sample-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 10px 0 var(--ink);
}

.sample-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 2.5px solid var(--ink);
  background: var(--ink);
}

.sample-art .scene {
  position: absolute;
  inset: 0;
}

.sample-art .scene svg {
  width: 100%;
  height: 100%;
}

.sample-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 27, 0.12) 30%, rgba(22, 18, 27, 0.85) 100%);
}

.sample-portrait {
  position: absolute;
  width: 55%;
  aspect-ratio: 3 / 4;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  border: 4px solid var(--cream);
  outline: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 5px 5px 0 rgba(22, 18, 27, 0.4);
}

.sample-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-cover-text {
  position: absolute;
  inset-inline: 16px;
  bottom: 14px;
  z-index: 3;
  color: var(--cream);
}

.sample-cover-text .mini-kicker {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--sun);
}

.sample-cover-text h3 {
  font-size: 21px;
  line-height: 1.03;
  color: var(--cream);
  text-shadow: 1px 1px 0 rgba(22, 18, 27, 0.45);
}

.sample-meta {
  padding: 16px 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sample-meta h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.sample-meta p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.sample-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
  flex: none;
}

.sample-open:hover {
  background: var(--coral);
  color: var(--cream);
}

.scribble-arrow {
  font-family: var(--font-comic);
  font-size: 58px;
  color: var(--coral);
  transform: rotate(8deg);
  line-height: 0.6;
}

/* ── pricing ───────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-10px);
  box-shadow: 9px 11px 0 var(--coral);
}

.price-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 22px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.price-card h3 {
  font-size: 23px;
  margin-bottom: 4px;
}

.price-card .price-desc {
  font-size: 13px;
  color: var(--muted);
  min-height: 38px;
  margin-bottom: 14px;
}

.price-card.featured .price-desc {
  color: rgba(251, 244, 231, 0.65);
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 4px 0 18px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.price-unit {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 4px;
}

.price-card.featured .price-unit {
  color: rgba(251, 244, 231, 0.6);
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  flex: 1;
}

.price-features li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
}

.price-features .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--teal);
  stroke-width: 3;
}

.price-card.featured .price-features .icon {
  color: var(--sun);
}

.price-card .btn {
  width: 100%;
}

.pricing-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 26px 0 0;
}

/* ── trust + faq ───────────────────────────────────────────────────────── */

.trust-section {
  background: var(--paper-deep);
  border-block: 2.5px solid var(--ink);
}

.trust-panel {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 30px;
  padding: 46px 46px 48px;
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.trust-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--sun-soft);
  top: -120px;
  inset-inline-end: -90px;
  opacity: 0.7;
}

.trust-panel .section-head {
  margin-bottom: 30px;
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.trust-item h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.trust-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 60px;
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-list details {
  border-bottom: 2px solid rgba(22, 18, 27, 0.18);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

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

.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--coral);
}

.faq-answer {
  padding: 0 44px 22px 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

/* ── CTA band ──────────────────────────────────────────────────────────── */

.cta-band {
  background: var(--coral);
  border-block: 3px solid var(--ink);
  padding: 70px 0;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from 0deg at 82% 50%,
    rgba(255, 255, 255, 0.09) 0deg 9deg,
    transparent 9deg 18deg
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  max-width: 720px;
  color: var(--cream);
  margin-bottom: 10px;
}

.cta-inner p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 249, 237, 0.82);
  font-size: 16px;
}

.cta-band .btn-paper {
  color: var(--ink);
  flex: none;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 24px;
  border-top: 3px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  gap: 34px;
}

.brand-light .brand-word span {
  color: var(--sun);
}

.footer-brand p {
  color: rgba(251, 244, 231, 0.62);
  font-size: 13.5px;
  max-width: 320px;
  margin: 18px 0 16px;
}

.footer-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(251, 244, 231, 0.5) !important;
}

.footer-ai .dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 169, 143, 0.18);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251, 244, 231, 0.4);
  margin-bottom: 6px;
}

.footer-col a,
.footer-col button {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(251, 244, 231, 0.72);
  font-size: 13px;
  text-align: start;
  transition: color 0.15s;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--sun);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 244, 231, 0.14);
  font-size: 11.5px;
  color: rgba(251, 244, 231, 0.4);
}

/* ── studio ────────────────────────────────────────────────────────────── */

body.studio-active .site-footer {
  display: none;
}

.studio-view {
  padding: 34px 0 90px;
  min-height: calc(100vh - 76px);
}

.studio-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}

.back-link:hover {
  color: var(--ink);
}

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

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.step.active .step-dot {
  background: var(--coral);
  color: var(--cream);
}

.step.active .step-label {
  color: var(--ink);
}

.step.done .step-dot {
  background: var(--teal);
  color: var(--cream);
}

.step-line {
  width: 38px;
  height: 2px;
  background: rgba(22, 18, 27, 0.18);
  margin: 0 10px;
}

.step-line.done {
  background: var(--teal);
}

.step-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.studio-panel {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 9px 9px 0 var(--ink);
  padding: 30px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.studio-step {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.studio-step h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 8px;
}

.studio-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 24px;
}

.trend-field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trend-field-head .field-label {
  margin-bottom: 8px;
}

.trend-source-tools {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-top: 2px;
}

.trend-source-tools .badge {
  font-size: 8.5px;
  padding: 3px 7px;
}

.trend-source-tools .text-btn {
  font-size: 10.5px;
  color: var(--coral);
}

.info-modal {
  width: min(620px, 100%);
}

.info-copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.info-copy p {
  margin: 0 0 10px;
}

.info-copy strong {
  color: var(--ink);
}

.info-copy a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.studio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
}

.studio-actions .spacer {
  flex: 1;
}

/* upload */

.dropzone {
  border: 2.5px dashed var(--ink);
  border-radius: 18px;
  background: var(--paper);
  padding: 38px 26px;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone:hover,
.dropzone.dragover {
  background: #fff3df;
  border-color: var(--coral);
}

.dropzone.dragover {
  transform: scale(1.01);
}

.drop-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 16px;
}

.drop-icon .icon {
  width: 27px;
  height: 27px;
}

.dropzone h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.dropzone p {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0;
}

.photo-editor {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
}

.photo-frame {
  width: 170px;
  aspect-ratio: 3 / 4;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame .photo-ready {
  position: absolute;
  bottom: 8px;
  inset-inline: 8px;
  background: var(--teal);
  color: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 4px 6px;
}

.photo-controls h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.photo-controls p {
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.style-option {
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  padding: 5px 5px 7px;
  text-align: center;
  transition: 0.16s;
}

.style-option img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 5px;
  background: var(--paper-deep);
}

.style-option span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
}

.style-option.selected {
  border-color: var(--coral);
  background: #fff0e9;
  box-shadow: 3px 3px 0 var(--coral);
}

.change-photo {
  margin-top: 10px;
}

.sample-heroes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(22, 18, 27, 0.22);
}

.sample-heroes > p {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.sample-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 5px 12px 5px 5px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.15s;
}

.sample-hero img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

.sample-hero:hover {
  background: var(--sun);
}

/* form fields */

.field-group {
  margin-top: 22px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.field-label .optional {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.field-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 3px solid rgba(255, 77, 46, 0.22);
  border-color: var(--coral);
  background: #fffdf7;
}

.input::placeholder,
.textarea::placeholder {
  color: #9a8e99;
  font-weight: 500;
}

.textarea {
  resize: vertical;
  min-height: 70px;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 7px 0 0;
}

.segmented {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  flex-wrap: wrap;
}

.segmented button {
  border: 0;
  border-inline-end: 1.5px solid rgba(22, 18, 27, 0.18);
  background: transparent;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}

.segmented button:last-child {
  border-inline-end: 0;
}

.segmented button.selected {
  background: var(--ink);
  color: var(--paper);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  border: 1.8px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.14s;
}

.chip:hover {
  background: var(--sun-soft);
}

.chip.selected {
  background: var(--coral);
  color: var(--cream);
  border-color: var(--coral);
  box-shadow: 2px 2px 0 var(--ink);
}

.category-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.category-option {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 11px 7px 10px;
  text-align: center;
  transition: 0.15s;
}

.category-option .emoji {
  display: block;
  font-size: 21px;
  line-height: 1;
  margin-bottom: 5px;
}

.category-option .name {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
}

.category-option.selected {
  background: #fff0e9;
  border-color: var(--coral);
  box-shadow: 3px 3px 0 var(--coral);
}

.panels-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.panel-option {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  padding: 11px 13px;
  text-align: start;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  transition: 0.15s;
}

.panel-option span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.panel-option.selected {
  border-color: var(--coral);
  background: #fff0e9;
  box-shadow: 3px 3px 0 var(--coral);
}

.lang-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.8px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  padding: 8px 9px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: start;
}

.lang-option .flag {
  font-size: 17px;
}

.lang-option.selected {
  border-color: var(--coral);
  background: #fff0e9;
  box-shadow: 2px 2px 0 var(--coral);
}

/* studio trends */

.studio-trends {
  display: grid;
  gap: 7px;
}

.trend-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1.8px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  padding: 9px 11px;
  text-align: start;
  transition: 0.15s;
}

.trend-option:hover {
  background: #fff8ea;
}

.trend-option.selected {
  border-color: var(--coral);
  background: #fff0e9;
  box-shadow: 2px 2px 0 var(--coral);
}

.trend-radio {
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
}

.trend-option.selected .trend-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.trend-option-content {
  min-width: 0;
  flex: 1;
}

.trend-option-content strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 700;
}

.trend-option-content span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 1px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trend-empty {
  padding: 10px;
  border: 1.5px dashed rgba(22, 18, 27, 0.3);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

/* review */

.review-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 18px;
}

.review-photo {
  width: 130px;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--ink);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}

.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card h3 {
  font-size: 21px;
  margin-bottom: 5px;
}

.review-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.review-item {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 9px 11px;
}

.review-item span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.review-item strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 700;
}

.generate-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.generate-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.btn-generate {
  width: 100%;
  background: var(--coral);
  color: var(--cream);
  padding-block: 15px;
  font-size: 14.5px;
}

/* studio aside */

.studio-aside {
  position: relative;
}

.aside-sticky {
  position: sticky;
  top: 100px;
}

.aside-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.live-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  50% {
    box-shadow: 0 0 0 6px rgba(15, 169, 143, 0.08);
  }
}

.mini-comic {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--ink);
  container-type: inline-size;
}

.mini-comic .scene {
  position: absolute;
  inset: 0;
}

.mini-comic .scene svg {
  width: 100%;
  height: 100%;
}

.mini-comic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 27, 0.08) 35%, rgba(22, 18, 27, 0.85) 100%);
}

.mini-comic-portrait {
  position: absolute;
  width: 48%;
  aspect-ratio: 3 / 4;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  border: 4px solid var(--cream);
  outline: 2px solid var(--ink);
  border-radius: 9px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 4px 4px 0 rgba(22, 18, 27, 0.4);
}

.mini-comic-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-comic-placeholder {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 48%;
  aspect-ratio: 3 / 4;
  border: 3px dashed rgba(255, 249, 237, 0.5);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: rgba(255, 249, 237, 0.7);
  font-size: 26px;
  z-index: 2;
}

.mini-comic-meta {
  position: absolute;
  inset-inline: 16px;
  bottom: 14px;
  z-index: 3;
  color: var(--cream);
}

.mini-comic-meta .mini-kicker {
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 3px;
}

.mini-comic-meta h3 {
  font-size: 25px;
  line-height: 1;
  color: var(--cream);
  text-shadow: 1px 1px 0 rgba(22, 18, 27, 0.5);
}

.mini-comic-meta p {
  margin: 5px 0 0;
  font-size: 10.5px;
  color: rgba(255, 249, 237, 0.75);
}

.aside-privacy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.aside-privacy .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex: none;
  margin-top: 1px;
}

/* ── generating overlay ────────────────────────────────────────────────── */

.generating {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(251, 244, 231, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-image: radial-gradient(rgba(22, 18, 27, 0.06) 0.9px, transparent 0.9px);
  background-size: 16px 16px;
}

.generating[hidden] {
  display: none;
}

.generating-card {
  text-align: center;
  max-width: 460px;
  width: 100%;
}

.ink-spinner {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  display: grid;
  place-items: center;
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
}

.ink-spinner span {
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 77, 46, 0.9) 0deg 18deg,
    transparent 18deg 36deg
  );
  animation: spin 2.6s linear infinite;
}

.ink-spinner .icon {
  position: relative;
  width: 42px;
  height: 42px;
  fill: var(--cream);
  stroke: var(--ink);
  stroke-width: 1.4;
  z-index: 2;
}

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

.generating-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 4px 0 8px;
}

.generating-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.generating-track {
  width: 260px;
  max-width: 80%;
  height: 9px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--cream);
  overflow: hidden;
}

.generating-track span {
  display: block;
  height: 100%;
  width: 4%;
  background: var(--coral);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}

.generating-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.generating-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: bounce 1.2s infinite;
}

.generating-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.generating-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

/* ── reader ────────────────────────────────────────────────────────────── */

body.reader-active {
  background-color: var(--paper-deep);
}

body.reader-active .site-header,
body.reader-active .site-footer {
  display: none;
}

.reader-view {
  min-height: 100vh;
  background: var(--paper-deep);
  background-image: radial-gradient(rgba(22, 18, 27, 0.05) 0.9px, transparent 0.9px);
  background-size: 16px 16px;
}

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(251, 244, 231, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2.5px solid var(--ink);
}

.reader-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
}

.reader-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.reader-kicker {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.reader-heading h1 {
  font-size: 16px;
  line-height: 1.15;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--cream);
  white-space: nowrap;
}

.badge.demo {
  background: var(--sun);
}

.badge.ai {
  background: var(--lilac);
}

.badge.trend {
  background: #e3f7f1;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
}

.reader-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  padding: 6px 8px;
}

.reader-lang .icon {
  width: 14px;
  height: 14px;
}

.reader-lang select {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  max-width: 90px;
  cursor: pointer;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  transition: 0.15s;
  white-space: nowrap;
}

.icon-btn:hover {
  background: var(--sun);
}

.icon-btn .icon {
  width: 15px;
  height: 15px;
}

.reader-progress {
  height: 4px;
  background: rgba(22, 18, 27, 0.1);
}

.reader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 0.12s linear;
}

.reader-stage {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--sun-soft);
  border: 2px solid var(--ink);
  border-radius: 13px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--ink);
}

.preview-banner button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 10.5px;
  font-weight: 800;
}

.comic {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.comic-page {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(22, 18, 27, 0.92);
  container-type: inline-size;
  isolation: isolate;
}

.comic-page .scene {
  position: absolute;
  inset: 0;
}

.comic-page .scene svg {
  width: 100%;
  height: 100%;
}

.panel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 18, 27, 0.16) 0%,
    transparent 26%,
    transparent 62%,
    rgba(22, 18, 27, 0.08) 100%
  );
  z-index: 1;
}

.photo-cutout {
  position: absolute;
  z-index: 3;
  width: 44%;
  aspect-ratio: 3 / 4;
  bottom: 19%;
  border: 5px solid #fff;
  outline: 3px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 6px 7px 0 rgba(22, 18, 27, 0.5);
  transform: rotate(var(--tilt, -2deg));
  background: var(--paper-deep);
}

.photo-cutout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-cutout.side-right {
  inset-inline-end: 5.5%;
}

.photo-cutout.side-left {
  inset-inline-start: 5.5%;
}

.photo-cutout.side-center {
  left: 50%;
  transform: translateX(-50%) rotate(var(--tilt, 0deg));
}

.photo-cutout.size-lg {
  width: 48%;
}

.photo-cutout.size-sm {
  width: 36%;
}

.bubble {
  position: absolute;
  z-index: 4;
  max-width: 55%;
  background: #fffdf6;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 2.6cqw 3cqw;
  box-shadow: 4px 4px 0 rgba(22, 18, 27, 0.85);
  font-size: 2.75cqw;
  line-height: 1.28;
  color: var(--ink);
}

.bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 1.6cqw solid transparent;
}

.bubble-speaker {
  display: block;
  font-size: 1.75cqw;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5cqw;
  line-height: 1.1;
}

.bubble p {
  margin: 0;
  font-weight: 600;
}

.bubble-1 {
  top: 4.5%;
  inset-inline-start: 5%;
}

.bubble-1::after {
  bottom: -1.75cqw;
  inset-inline-start: 8%;
  border-top-color: var(--ink);
  border-bottom: 0;
}

.bubble-2 {
  top: 20%;
  inset-inline-end: 5%;
}

.bubble-2::after {
  bottom: -1.75cqw;
  inset-inline-end: 10%;
  border-top-color: var(--ink);
  border-bottom: 0;
}

.bubble.bubble-low {
  top: auto;
  bottom: 37%;
}

.bubble.bubble-low::after {
  top: -1.75cqw;
  bottom: auto;
  border-bottom-color: var(--ink);
  border-top: 0;
}

.caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 2.4cqw;
  align-items: flex-start;
  background: #fff6e3;
  border-top: 3px solid var(--ink);
  padding: 2.8cqw 3.2cqw 3cqw;
  font-size: 2.55cqw;
  line-height: 1.34;
  font-weight: 500;
  color: var(--ink);
}

.caption-tag {
  font-family: var(--font-comic);
  font-size: 3.4cqw;
  line-height: 0.9;
  color: var(--coral);
  letter-spacing: 0.04em;
  flex: none;
  padding-top: 0.2cqw;
}

.caption p {
  margin: 0;
}

.sfx {
  position: absolute;
  z-index: 4;
  top: 31%;
  inset-inline-end: 5%;
  font-family: var(--font-comic);
  font-size: 7.4cqw;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--sun);
  -webkit-text-stroke: 0.42cqw var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.55cqw 0.55cqw 0 var(--ink);
  transform: rotate(-7deg);
  max-width: 40%;
  text-align: center;
}

.page-num {
  position: absolute;
  top: 3%;
  inset-inline-end: 3%;
  z-index: 6;
  width: 7.4cqw;
  height: 7.4cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-comic);
  font-size: 3.1cqw;
  letter-spacing: 0.02em;
  border: 2px solid var(--cream);
}

/* cover */

.cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(22, 18, 27, 0.55) 0%,
    rgba(22, 18, 27, 0.05) 32%,
    rgba(22, 18, 27, 0.08) 55%,
    rgba(22, 18, 27, 0.82) 100%
  );
}

.cover-top {
  position: absolute;
  top: 4.5%;
  inset-inline: 5%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cover-kicker {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1.2cqw 2.4cqw;
  font-size: 1.85cqw;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0.5cqw 0.5cqw 0 var(--ink);
}

.cover-issue {
  font-family: var(--font-comic);
  font-size: 2.6cqw;
  color: var(--cream);
  letter-spacing: 0.06em;
}

.cover-title {
  position: absolute;
  top: 12%;
  inset-inline: 6%;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 8.2cqw;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--cream);
  text-shadow: 0.55cqw 0.55cqw 0 var(--ink), -0.15cqw -0.15cqw 0 var(--ink),
    0.15cqw -0.15cqw 0 var(--ink), -0.15cqw 0.15cqw 0 var(--ink);
  max-width: 88%;
}

.cover-portrait {
  position: absolute;
  top: 33.5%;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  z-index: 3;
  width: 43%;
  aspect-ratio: 3 / 4;
  border: 5px solid var(--cream);
  outline: 3px solid var(--ink);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0.9cqw 0.9cqw 0 rgba(22, 18, 27, 0.55);
  background: var(--paper-deep);
}

.cover-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-bottom {
  position: absolute;
  inset-inline: 5.5%;
  bottom: 4.5%;
  z-index: 4;
  color: var(--cream);
}

.cover-subcard {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2.4cqw;
  padding: 2.4cqw 2.8cqw;
  box-shadow: 0.6cqw 0.6cqw 0 var(--ink);
  margin-bottom: 1.6cqw;
}

.cover-sub {
  font-size: 2.55cqw;
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
}

.cover-starring {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 2.1cqw;
  font-weight: 700;
  color: rgba(255, 249, 237, 0.82);
  margin-bottom: 1.4cqw;
}

.cover-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw;
}

.cover-badges span {
  border: 0.25cqw solid rgba(255, 249, 237, 0.5);
  border-radius: 999px;
  padding: 0.6cqw 1.4cqw;
  font-size: 1.55cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 249, 237, 0.8);
}

/* end page */

.end-page {
  background: var(--cream);
}

.end-page .scene {
  opacity: 0.18;
}

.end-page .end-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 249, 237, 0.92), rgba(255, 249, 237, 0.97));
}

.end-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 7cqw 7cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.end-kicker {
  font-size: 2cqw;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 2.4cqw;
}

.end-title {
  font-family: var(--font-display);
  font-size: 9cqw;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 3cqw;
}

.end-moral {
  margin: 0 0 3.6cqw;
  padding: 2.6cqw 0;
  border-block: 0.3cqw solid var(--ink);
  font-family: var(--font-display);
  font-size: 3.6cqw;
  line-height: 1.3;
  font-style: italic;
  font-weight: 600;
  max-width: 90%;
}

.certificate {
  width: 100%;
  background: #fffdf6;
  border: 0.4cqw dashed var(--ink);
  border-radius: 2cqw;
  padding: 3cqw 3.4cqw;
  text-align: center;
}

.certificate .cert-label {
  display: block;
  font-size: 1.7cqw;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4cqw;
}

.certificate .cert-name {
  display: block;
  font-family: var(--font-display);
  font-size: 4.4cqw;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.2cqw;
}

.certificate .cert-text {
  font-size: 2.1cqw;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

.certificate .cert-date {
  display: block;
  margin-top: 1.4cqw;
  font-size: 1.7cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.end-actions {
  display: flex;
  gap: 1.6cqw;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3.4cqw;
}

.end-actions .btn {
  font-size: 2cqw;
  padding: 1.6cqw 2.6cqw;
  box-shadow: 0.5cqw 0.5cqw 0 var(--ink);
}

/* locked page */

.locked-page {
  background: #1c1721;
}

.locked-page .scene {
  opacity: 0.55;
  filter: saturate(0.6);
}

.locked-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22, 18, 27, 0.6);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8%;
  color: var(--paper);
}

.lock-badge {
  width: 13cqw;
  height: 13cqw;
  border-radius: 50%;
  background: var(--sun);
  border: 0.45cqw solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0.8cqw 0.8cqw 0 var(--ink);
  margin-bottom: 3.4cqw;
  color: var(--ink);
}

.lock-badge .icon {
  width: 5.6cqw;
  height: 5.6cqw;
  stroke-width: 2.2;
}

.lock-overlay h3 {
  font-size: 4.4cqw;
  color: var(--paper);
  max-width: 70%;
  margin-bottom: 1.6cqw;
}

.lock-overlay p {
  font-size: 2.4cqw;
  line-height: 1.4;
  color: rgba(251, 244, 231, 0.75);
  max-width: 66%;
  margin-bottom: 3cqw;
}

.lock-overlay .btn {
  font-size: 2.1cqw;
  padding: 1.7cqw 2.8cqw;
  box-shadow: 0.6cqw 0.6cqw 0 var(--ink);
}

.reader-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── modal ─────────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(22, 18, 27, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  animation: fade-in 0.18s ease;
}

.modal {
  position: relative;
  width: min(570px, 100%);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 12px 12px 0 var(--ink);
  padding: 30px;
  margin: auto;
  animation: pop-in 0.22s var(--ease);
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.modal-close:hover {
  background: var(--sun);
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal h2 {
  font-size: 30px;
  margin-bottom: 6px;
  padding-inline-end: 34px;
}

.modal-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.plan-options {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-option {
  display: flex;
  text-align: start;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 13px;
  background: var(--paper);
  cursor: pointer;
  transition: 0.15s;
}

.plan-option.selected {
  border-color: var(--coral);
  background: #fff0e9;
  box-shadow: 3px 3px 0 var(--coral);
}

.plan-radio {
  width: 17px;
  height: 17px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.plan-option.selected .plan-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.plan-option-name {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
}

.plan-option-desc {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}

.plan-option-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.modal-field {
  margin-bottom: 12px;
}

.modal-field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.demo-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--sun-soft);
  border: 2px solid var(--ink);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.demo-note strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1px;
}

.secure-note {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 0;
}

.modal-success {
  text-align: center;
}

.success-badge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--cream);
}

.success-badge .icon {
  width: 36px;
  height: 36px;
  stroke-width: 3;
}

.modal-success h2 {
  padding: 0;
}

.modal-success p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* ── toast ─────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(12px);
  z-index: 700;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 5px 5px 0 rgba(22, 18, 27, 0.28);
  max-width: min(92vw, 560px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── animation helpers ─────────────────────────────────────────────────── */

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

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .desk-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-art {
    height: 600px;
  }

  .hero-art::before {
    width: 380px;
    height: 380px;
  }

  .category-card-content h3 {
    font-size: 24px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 74px 0;
  }

  .hero {
    padding: 46px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    height: 560px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-art::before {
    width: 360px;
    height: 360px;
  }

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

  .how-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 18px;
    align-items: start;
  }

  .how-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .how-card p {
    grid-column: 2;
  }

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

  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: span 1;
    height: 280px;
  }

  .category-card:last-child {
    grid-column: span 2;
    height: 250px;
  }

  .trends-layout,
  .lang-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-layout .section-head {
    position: static;
  }

  .sample-grid,
  .pricing-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-card.featured {
    transform: none;
  }

  .trust-panel {
    padding: 30px;
  }

  .trust-grid {
    gap: 22px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

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

  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-aside {
    display: none;
  }

  .reader-badges {
    display: none;
  }

  .reader-actions .btn-label {
    display: none;
  }

  .reader-bar-inner {
    padding: 9px 14px;
  }

  .reader-heading h1 {
    max-width: 240px;
    font-size: 14px;
  }

  .reader-lang select {
    max-width: 74px;
  }
}

@media (max-width: 720px) {
  [dir="rtl"] {
  --font-display: "Cairo", "Fraunces", Georgia, serif;
  --font-body: "Cairo", "DM Sans", sans-serif;
}

[dir="rtl"] .cover-title,
[dir="rtl"] .end-title,
[dir="rtl"] .caption,
[dir="rtl"] .bubble,
[dir="rtl"] .cover-sub {
  letter-spacing: 0;
}

[dir="rtl"] .cover-title {
  line-height: 1.12;
  font-size: 7.6cqw;
}

.cover-title.long {
  font-size: 7cqw;
}

.cover-title.xlong {
  font-size: 6.1cqw;
}

[dir="rtl"] .cover-title.long {
  font-size: 6.7cqw;
}

[dir="rtl"] .cover-title.xlong {
  font-size: 5.9cqw;
}

[dir="rtl"] .end-title {
  line-height: 1.15;
}

.wrap {
    padding: 0 18px;
  }

  .header-inner {
    height: 66px;
    gap: 12px;
  }

  .brand-word {
    font-size: 19px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .header-cta {
    display: none;
  }

  .lang-picker {
    padding: 6px 8px;
  }

  .lang-picker select {
    max-width: 78px;
    font-size: 11.5px;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.9rem, 12.5vw, 4.2rem);
  }

  .hero-sub {
    font-size: 15.5px;
  }

  .hero-art {
    height: 500px;
  }

  .hero-art::before {
    width: 300px;
    height: 300px;
    top: 90px;
  }

  .hero-card {
    width: var(--w-sm, 200px);
  }

  .hero-card-meta h3 {
    font-size: 15px;
  }

  .hero-card-portrait {
    width: 60%;
  }

  .sticker-1 {
    inset-inline-start: 0;
    top: 20px;
  }

  .sticker-2 {
    top: 170px;
  }

  .sticker-3 {
    bottom: 16px;
  }

  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding: 46px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .section-head > p:not(.eyebrow) {
    font-size: 15px;
  }

  .how-card {
    padding: 22px;
  }

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

  .category-card,
  .category-card:last-child {
    grid-column: span 1;
    height: 250px;
  }

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

  .sample-grid {
    gap: 18px;
  }

  .sample-card {
    display: block;
  }

  .sample-art {
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 0;
    border-bottom: 2.5px solid var(--ink);
    border-inline-end: 0;
  }

  .sample-portrait {
    width: 55%;
    top: 18%;
  }

  .sample-cover-text {
    inset-inline: 16px;
    bottom: 14px;
  }

  .sample-cover-text h3 {
    font-size: 21px;
  }

  .sample-cover-text .mini-kicker {
    font-size: 8.5px;
  }

  .sample-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .sample-meta h4 {
    font-size: 16px;
  }

  .hero-art {
    height: 600px;
  }

  .hero-card:nth-of-type(3) {
    --y: 330px !important;
  }

  .pricing-grid {
    gap: 16px;
  }

  .trust-panel {
    padding: 24px 20px;
  }

  .trust-panel .section-head {
    margin-bottom: 22px;
  }

  .research-stats strong {
    font-size: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .studio-view {
    padding: 20px 0 60px;
  }

  .studio-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .stepper {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }

  .step-line {
    width: 20px;
    margin: 0 6px;
  }

  .step-label {
    display: none;
  }

  .step-count {
    margin-inline-start: auto;
  }

  .studio-panel {
    padding: 20px 16px;
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--ink);
    min-height: 0;
  }

  .photo-editor {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    width: 140px;
  }

  .category-picker {
    grid-template-columns: repeat(3, 1fr);
  }

  .lang-picker-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .review-card {
    grid-template-columns: 96px 1fr;
  }

  .review-photo {
    width: 96px;
  }

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

  .studio-actions {
    flex-wrap: wrap;
  }

  .studio-actions .btn {
    flex: 1;
  }

  .reader-bar-inner {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 8px 12px;
  }

  .reader-heading {
    flex: 1;
    min-width: 0;
  }

  .reader-heading h1 {
    max-width: 100%;
    font-size: 13px;
  }

  .reader-actions {
    width: 100%;
    margin-inline-start: 0;
    justify-content: space-between;
    gap: 5px;
  }

  .reader-lang {
    flex: 1;
  }

  .reader-lang select {
    max-width: none;
    width: 100%;
  }

  .icon-btn,
  .reader-actions .btn {
    padding: 7px 9px;
  }

  .reader-stage {
    padding: 14px 12px 60px;
  }

  .comic {
    gap: 18px;
  }

  .comic-page {
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 6px 6px 0 rgba(22, 18, 27, 0.9);
  }

  .photo-cutout {
    border-width: 3px;
    outline-width: 2px;
    border-radius: 8px;
    box-shadow: 3px 4px 0 rgba(22, 18, 27, 0.45);
  }

  .bubble {
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 2px 2px 0 rgba(22, 18, 27, 0.85);
  }

  .caption {
    border-top-width: 2px;
  }

  .end-actions .btn {
    box-shadow: 0.5cqw 0.5cqw 0 var(--ink);
  }

  .modal {
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .modal h2 {
    font-size: 24px;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-art {
    height: 560px;
  }

  .hero-art::before {
    width: 250px;
    height: 250px;
  }

  .hero-card:nth-of-type(3) {
    --y: 300px !important;
  }

  .hero-card {
    width: 160px;
  }

  .hero-card-meta h3 {
    font-size: 12px;
  }

  .hero-card-meta .mini-kicker {
    font-size: 7px;
  }

  .sticker-2 {
    display: none;
  }

  .trust-list {
    gap: 8px 14px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 8px 6px;
  }

  .studio-panel {
    padding: 16px 13px;
  }

  .photo-frame {
    width: 120px;
  }

  .style-grid {
    gap: 6px;
  }

  .style-option span {
    font-size: 9px;
  }

  .preview-banner {
    font-size: 11px;
  }

  .lock-overlay .btn {
    font-size: 3cqw;
  }
}

/* ── print ─────────────────────────────────────────────────────────────── */

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header,
  .site-footer,
  .reader-bar,
  .reader-progress,
  .preview-banner,
  .reader-footer,
  .no-print,
  .modal-backdrop,
  .toast,
  .generating {
    display: none !important;
  }

  .reader-view,
  .reader-stage {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .comic {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .comic-page {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
    margin: 0 !important;
  }

  .comic-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .lock-overlay {
    display: none !important;
  }

  .end-actions {
    display: none !important;
  }
}

/* ── reduced motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
