:root {
  --bg: #ffffff;
  --bg-soft: #f9f9f9;
  --ink: #111111;
  --muted: #6b6b76;
  --pink: #ff2d78;
  --purple: #b400ff;
  --cyan: #00f0ff;
  --footer: #0a0a0f;
  --glass: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.55);
  --shadow: 0 0 30px rgba(180, 0, 255, 0.18), 0 0 60px rgba(0, 240, 255, 0.1);
  --font-display: Georgia, "Times New Roman", ui-serif, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --neon: linear-gradient(135deg, #ff2d78, #b400ff, #00f0ff);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

.below-fold {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

.neon-text {
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-neon {
  color: #fff;
  background: var(--neon);
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.45), 0 0 40px rgba(180, 0, 255, 0.25);
}

.btn-neon:hover {
  box-shadow: 0 0 28px rgba(255, 45, 120, 0.65), 0 0 50px rgba(0, 240, 255, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(180, 0, 255, 0.25);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(180, 0, 255, 0.35);
  color: var(--ink);
}

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.band {
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 38%);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.site-header .logo {
  justify-self: start;
}

.site-header .nav-links {
  justify-self: center;
}

.site-header-account {
  grid-template-columns: 1fr auto;
}

.header-auth {
  justify-self: end;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(180, 0, 255, 0.08);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 2px;
  background: var(--neon);
  border-radius: 99px;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--neon);
}

.studio {
  position: relative;
  overflow: hidden;
  padding: 4rem 6vw 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 45, 120, 0.16), transparent 52%),
    radial-gradient(ellipse at 92% 100%, rgba(0, 240, 255, 0.14), transparent 50%),
    #ffffff;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

.glow-pink {
  top: -120px;
  left: -80px;
  background: var(--pink);
}

.glow-cyan {
  right: -80px;
  bottom: -80px;
  background: var(--cyan);
}

.studio-title {
  position: relative;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin: 0 0 1.6rem;
}

.prompt-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem 1rem;
  border-radius: 28px;
  text-align: left;
}

.prompt-card textarea {
  width: 100%;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  font: 1.05rem/1.5 var(--font-body);
  color: var(--ink);
  min-height: 72px;
}

.prompt-card:focus-within {
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.45), var(--shadow);
}

.prompt-slots {
  display: flex;
  gap: 0.7rem;
  margin: 0.35rem 0 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.extra-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.prompt-slot {
  margin: 0;
  width: 96px;
  cursor: pointer;
}

.prompt-slot.active .slot-media img,
.prompt-slot.active .slot-empty-text {
  box-shadow: 0 0 0 2px var(--cyan), 0 0 16px rgba(0, 240, 255, 0.4);
}

.prompt-slot.active .slot-empty-text {
  border-color: var(--cyan);
}

.slot-media {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
}

.prompt-slot img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  display: block;
}

.prompt-slot img[hidden] {
  display: none;
}

.slot-empty-text {
  display: none;
  width: 88px;
  height: 88px;
  padding: 0.45rem;
  border: 2px dashed rgba(180, 0, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.prompt-slot.empty .slot-empty-text {
  display: flex;
}

.prompt-slot.empty img {
  display: none;
}

.slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 2;
}

.slot-remove:hover {
  background: #ff2d78;
}

.slot-remove[hidden] {
  display: none;
}

.prompt-slot figcaption {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-align: center;
}

.prompt-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.gen-error {
  margin: 0.55rem 0 0;
  color: #c0392b;
  font-size: 0.85rem;
}

.btn-neon:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.prompt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.prompt-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.prompt-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.2rem auto 0;
  max-width: 980px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(180, 0, 255, 0.2);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
}

.pill img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.pill:hover,
.pill.active {
  box-shadow: 0 0 18px rgba(255, 45, 120, 0.35);
  border-color: rgba(255, 45, 120, 0.5);
}

.studio-pickers {
  max-width: 980px;
  margin: 2.8rem auto 0;
  text-align: left;
}

.subhead {
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}

.looks-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 6vw 2.5rem;
  flex: 1 1 auto;
}

.looks-wrap h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
}

.lookbook-lead {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.6rem;
  color: var(--muted, #5c5c6b);
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.lookbook-card {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 16, 40, 0.08);
}

.lookbook-card a.lookbook-photo {
  display: block;
}

.lookbook-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.lookbook-card figcaption {
  padding: 0.7rem 0.8rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.lookbook-card .lookbook-try {
  display: inline-block;
  margin: 0 0.8rem 0.9rem;
  font-size: 0.85rem;
}

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

  .glow {
    display: none;
  }

  .glass {
    backdrop-filter: none;
    background: #fff;
  }
}

.model-grid,
.cloth-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.model-grid button,
.cloth-row button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.model-grid img,
.cloth-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.model-grid button:hover,
.cloth-row button:hover {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.model-grid button.selected,
.cloth-row button.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

.result-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.output {
  max-width: 860px;
  margin: 2rem auto 0;
  border-radius: 24px;
  padding: 1.4rem;
  min-height: 180px;
}

.output[hidden],
.loading[hidden],
.result-single[hidden],
.result-error[hidden] {
  display: none !important;
}

.result-error {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  min-height: 280px;
  padding: 2rem 1.2rem;
  text-align: center;
}

.result-error-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #c0392b;
}

.result-error-body {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.5;
}

.result-error-body[hidden] {
  display: none !important;
}

.loading {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  color: var(--muted);
}

.neon-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(180, 0, 255, 0.2);
  border-top-color: var(--pink);
  border-right-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}

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

.result-single {
  display: grid;
  justify-items: center;
  width: 100%;
}

.result-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  width: 100%;
}

.result-single figure {
  margin: 0;
  width: min(100%, 420px);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 200px;
}

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

.result-single img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: center top;
  background: #0a0a0f;
  border-radius: 16px;
  border: 2px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.22);
}

.result-single figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.preview-section {
  padding: 3.5rem 6vw 4.5rem;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(180, 0, 255, 0.14), transparent 52%),
    linear-gradient(180deg, #f4f0ff 0%, #eef8ff 100%);
}

.feature-stage {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  padding: 1.4rem;
  border-radius: 32px;
}

.preview-photo {
  position: relative;
}

.preview-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
  border-radius: 22px;
  box-shadow: 0 0 28px rgba(255, 45, 120, 0.25);
}

.reset-btn {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 600;
}

.feature-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.feature-list-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
}

.feature-list-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(180, 0, 255, 0.15);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font: 0.95rem/1.2 var(--font-body);
}

.feature-btn .check {
  margin-left: auto;
  opacity: 0;
}

.feature-btn.active {
  color: #fff;
  background: var(--neon);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(180, 0, 255, 0.4);
}

.feature-btn.active .check {
  opacity: 1;
}

.explained {
  padding: 2.4rem 6vw 2.8rem;
  background:
    radial-gradient(ellipse at 8% 90%, rgba(255, 45, 120, 0.1), transparent 48%),
    linear-gradient(180deg, #fffdfb 0%, #fff5f8 100%);
}

.explained-kicker {
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.explained-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0.2rem 0 0.5rem;
}

.explained-title em {
  font-style: italic;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.explained-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.4rem;
  color: var(--muted);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-tile {
  min-width: 0;
}

.zigzag-media {
  border-radius: 16px;
  overflow: hidden;
}

.zigzag-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.zigzag-media.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.zigzag-media.pair img {
  height: 180px;
}

.tryon-visual {
  position: relative;
}

.float-thumbs {
  position: absolute;
  right: 8px;
  top: 10px;
  display: grid;
  gap: 0.3rem;
}

.float-thumbs img {
  width: 36px;
  height: 46px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zigzag-copy {
  padding: 0.75rem 0.15rem 0;
}

.badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.zigzag-copy h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.zigzag-copy p {
  font-size: 0.85rem;
  margin: 0;
}

.zigzag-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.zigzag-actions .btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.learn {
  font-weight: 500;
}

.glow-cyan-card .zigzag-media {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.28);
}

.glow-purple-card .zigzag-media {
  box-shadow: 0 0 30px rgba(180, 0, 255, 0.3);
}

.glow-pink-card .zigzag-media {
  box-shadow: 0 0 30px rgba(255, 45, 120, 0.3);
}

.pricing {
  padding: 1.6rem 6vw 2.2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #f3fffe 0%, #f7f8ff 100%);
}

.pricing h2 {
  text-align: center;
  font-size: 2.2rem;
}

.pricing .explained-lead {
  margin-bottom: 0.7rem;
}

.monthly-pay-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 0 auto 0.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid #e2e2ea;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1f;
  cursor: pointer;
}

.monthly-pay-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #111;
  cursor: pointer;
}

.pricing-billing-hint {
  text-align: center;
  margin: 0 auto 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
}

.price-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1240px;
}

.price-card .price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.renew-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.7rem 0 0.85rem;
  text-align: left;
}

.consent-row input {
  margin-top: 0.15rem;
}

.plan-active-badge {
  margin: 0.4rem 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a7a7a;
}

.pricing-error {
  text-align: center;
  color: #b42318;
  margin: 1rem auto 0;
  max-width: 720px;
}

.header-mini {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.admin-wrap,
.account-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 6vw 4rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 2rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 16px;
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.6rem 0 2rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.login-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 120px;
  margin: 1rem 0 2rem;
}

.login-bars .bar {
  flex: 1;
  background: rgba(255, 45, 120, 0.55);
  min-height: 4px;
  border-radius: 4px 4px 0 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.price-card {
  border-radius: 22px;
  padding: 1.15rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card > p:not(.price) {
  flex: 1;
}

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

.price-card.featured {
  box-shadow: 0 0 32px rgba(255, 45, 120, 0.28);
}

.price {
  font-size: 1.8rem;
  margin: 0.3rem 0;
}

.soon {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

main,
.legal-wrap {
  flex: 1 1 auto;
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  background: var(--footer);
  color: #d8d8e4;
  padding: 1.45rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 92px;
}

.site-footer .logo {
  font-size: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem 1.35rem;
  font-size: 1rem;
  margin-left: auto;
}

.site-footer a:hover {
  text-shadow: 0 0 12px var(--cyan);
}

.footer-meta {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #9a9aaa;
  text-align: right;
  max-width: 22rem;
}

address {
  font-style: normal;
}

.legal-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 6vw 2.5rem;
}

.legal-wrap h1 {
  font-size: 2.2rem;
}

.contact-card {
  margin-top: 1.6rem;
  padding: 1.25rem 1.2rem 1.1rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(180, 0, 255, 0.18);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.contact-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e4e0ea;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(180, 0, 255, 0.35);
  border-color: transparent;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.15rem;
}

.form-msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
}

.form-msg-ok {
  color: #0a7a4a;
}

.form-msg-error {
  color: #c0392b;
}

.thanks-body {
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(180, 0, 255, 0.16), transparent 60%),
    radial-gradient(900px 380px at 10% 110%, rgba(0, 240, 255, 0.12), transparent 55%),
    var(--bg);
}

.thanks-wrap {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 2.5rem 6vw 4rem;
}

.thanks-card {
  width: min(440px, 100%);
  text-align: center;
  padding: 2.1rem 1.6rem 1.7rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(180, 0, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.thanks-mark {
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 8px 18px rgba(180, 0, 255, 0.28));
}

.thanks-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.thanks-card h1 {
  margin: 0.35rem 0 0.55rem;
  font-size: 2.35rem;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.thanks-lead,
.thanks-plan,
.thanks-meta {
  margin: 0 auto 0.45rem;
  max-width: 28rem;
  color: var(--ink);
}

.thanks-lead {
  color: var(--muted);
}

.thanks-plan {
  font-weight: 600;
}

.thanks-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.thanks-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

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

#preview,
#features,
#pricing {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.45rem;
  }

  .header-auth {
    justify-self: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.1rem;
  }

  .footer-meta {
    text-align: left;
    width: 100%;
  }

  .price-grid,
  .price-grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  /* Select a Feature: keep image + list side by side */
  .feature-stage {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 24px;
    align-items: stretch;
  }

  .preview-photo {
    min-width: 0;
  }

  .preview-photo img {
    height: min(58vw, 360px);
    min-height: 220px;
  }

  .feature-list {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .feature-list-head {
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    margin-bottom: 0.55rem;
  }

  .feature-list-head h2 {
    font-size: 1rem;
  }

  .feature-list-head span {
    font-size: 0.75rem;
  }

  .feature-btn {
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding: 0.65rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  /* Power features: one card per row so images stay full-width and clear */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    max-width: 560px;
  }

  .zigzag-media img,
  .zigzag-media.pair img {
    height: 260px;
  }

  .float-thumbs img {
    width: 42px;
    height: 54px;
  }

  .result-single img {
    max-height: 520px;
  }

  address {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .glow {
    display: none;
  }

  .price-grid,
  .price-grid-5 {
    grid-template-columns: 1fr;
  }

  .preview-section {
    padding: 2rem 4vw 2.6rem;
  }

  .explained {
    padding: 1.8rem 4vw 2.2rem;
  }

  .feature-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.65rem;
    padding: 0.65rem;
  }

  .preview-photo img {
    height: min(62vw, 300px);
    min-height: 200px;
    border-radius: 16px;
  }

  .reset-btn {
    bottom: 10px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  .feature-btn {
    padding: 0.55rem 0.55rem;
    font-size: 0.78rem;
  }

  .feature-btn .check {
    display: none;
  }

  .feature-row {
    max-width: none;
  }

  .zigzag-media img,
  .zigzag-media.pair img {
    height: min(72vw, 320px);
  }

  .studio-pickers .subhead {
    text-align: center;
  }

  .model-grid,
  .cloth-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 0.5rem;
    max-width: 268px;
    margin-inline: auto;
  }

  .model-grid button,
  .cloth-row button {
    border-radius: 12px;
  }

  .model-grid img,
  .cloth-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.7rem;
  }

  .site-footer nav {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.45rem 0.75rem;
    font-size: clamp(0.62rem, 2.7vw, 0.82rem);
  }
}

/* Auth header + modals */
.header-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.header-login {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.header-account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.header-account-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}

.header-account-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.55rem;
  max-width: 22rem;
}

.header-user-email {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-quota {
  font-size: 0.75rem;
  color: #0a7a7a;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.auth-lead,
.subscribe-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.auth-tab {
  border: 1px solid #e6e6ef;
  background: #f7f7fb;
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font: inherit;
}

.auth-tab.active {
  border-color: transparent;
  background: var(--neon);
  color: #fff;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 0.75rem;
}

.google-btn-wrap > div,
.google-btn-wrap iframe {
  margin: 0 auto !important;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid #111;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.btn-google:hover {
  background: #f7f7f7;
}

.btn-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-google svg {
  flex-shrink: 0;
}

.auth-email-toggle {
  display: block;
  width: 100%;
  margin: 0.2rem 0 0.85rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-email-panel {
  display: grid;
  gap: 0.75rem;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form[hidden],
.auth-email-panel[hidden],
.header-account[hidden],
.header-login[hidden] {
  display: none !important;
}

.auth-note {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.auth-error {
  margin: 0;
  color: #c0392b;
  font-size: 0.9rem;
}

.auth-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-form input {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

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

@media (max-width: 900px) {
  .header-auth {
    width: 100%;
    justify-content: center;
  }

  .header-account {
    align-items: center;
    justify-content: center;
  }

  .header-account-actions,
  .header-account-meta {
    justify-content: center;
  }
}
