@import url("clipmode-tokens.css");

/* ClipMode /ai-character — homepage color system */

:root {
  --r: 14px;
  --r-lg: 22px;
  --container: min(var(--maxw), 92vw);
  --radius: var(--r);
  --radius-lg: var(--r-lg);
  --font: var(--sans);

  /* Component aliases */
  --bg-deep: var(--bg);
  --bg-section: var(--bg-2);
  --bg-card: var(--panel);
  --bg-card-hover: var(--panel-2);
  --border: var(--line-soft);
  --text: var(--fg);
  --text-muted: var(--muted);
  --primary: var(--accent);
  --primary-hover: var(--accent-bri);
  --primary-dim: var(--accent-dim);
  --accent-blue: var(--accent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, var(--accent-dim), transparent 60%),
    linear-gradient(to bottom, var(--bg-2), var(--bg) 40%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1100px 700px at 70% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(1100px 700px at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-gradient {
  color: var(--accent-bri);
}

/* Buttons — match homepage */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 26px -10px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-bri);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 14px 34px -12px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--panel);
  border-color: oklch(0.4 0.016 256);
  color: var(--fg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--panel);
  border-color: oklch(0.4 0.016 256);
  color: var(--fg);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Nav — matches homepage (styles.css) */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.17 0.012 256 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

.nav .brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--accent-bri), var(--accent));
  position: relative;
  flex: none;
  box-shadow: 0 0 18px -4px var(--accent-glow);
}

.nav .brand .mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

.nav .brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
}

.nav .brand .dot {
  color: var(--accent-bri);
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  color: var(--fg-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav .btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 9px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.25s;
  white-space: nowrap;
}

.nav .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 26px -10px var(--accent-glow);
}

.nav .btn-primary:hover {
  background: var(--accent-bri);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 14px 34px -12px var(--accent-glow);
}

.nav .btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.nav .btn-ghost:hover {
  background: var(--panel);
  border-color: oklch(0.4 0.016 256);
  color: var(--fg);
  transform: translateY(-1px);
}

.nav .btn .arrow {
  transition: transform 0.2s var(--ease);
}

.nav .btn:hover .arrow {
  transform: translate(3px, 0);
}

/* Brand mark — shared by nav + footer */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: inherit;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--accent-bri), var(--accent));
  position: relative;
  flex: none;
  box-shadow: 0 0 18px -4px var(--accent-glow);
}

.brand .mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
}

.brand .dot {
  color: var(--accent-bri);
  margin: 0;
  padding: 0;
}

/* Hero */
.hero {
  padding: 4rem 0 0;
  text-align: center;
  background: transparent;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Full-bleed hero gallery (DeepMode-style) */
.hero-gallery-wrap {
  width: 100%;
  margin-top: 0.5rem;
}

.hero-gallery {
  --gallery-height: clamp(300px, 42vh, 440px);
  display: flex;
  width: 100%;
  gap: 0;
  min-height: var(--gallery-height);
  overflow: hidden;
}

.gallery-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--gallery-height);
  background: var(--panel);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem 0.35rem;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.17 0.012 256 / 0.75), transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.gallery-label {
  position: relative;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  text-align: center;
}

.gallery-item:nth-child(odd) {
  background: var(--panel-2);
}

.gallery-item:has(img)::before {
  background: linear-gradient(to top, oklch(0.17 0.012 256 / 0.45), transparent 35%);
}

.gallery-item:has(img) .gallery-label {
  display: none;
}

.gallery-caption {
  margin: 0;
  padding: 1.25rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.section-title-center {
  text-align: center;
}

.section-subtitle-center {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* Feature split */
.feature-split {
  background: var(--bg-section);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.feature-split:nth-of-type(even) {
  background: var(--bg-deep);
}

.feature-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-split .feature-visual {
  min-width: 0;
}

.feature-split-reverse .feature-split-inner {
  direction: rtl;
}

.feature-split-reverse .feature-split-inner > * {
  direction: ltr;
}

.feature-copy p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.feature-copy .btn {
  margin-top: 0.5rem;
}

.feature-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-note {
  font-size: 0.9rem;
  font-style: italic;
}

.callout-box {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--primary-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.callout-box p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.callout-icon {
  color: var(--accent-bri);
  font-weight: 700;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.link-row a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-bri);
}

.link-row a:hover {
  color: var(--fg);
}

/* Feature visuals — stacked cards */
.feature-visual-stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  /* Room for both cards + slight rotation without clipping */
  min-height: clamp(380px, 52vw, 520px);
  padding: 1rem 0.5rem 2rem;
  overflow: visible;
  position: relative;
}

.production-stack {
  cursor: pointer;
  outline: none;
}

.production-stack:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-dim);
  border-radius: var(--radius-lg);
}

.stack-hint {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: oklch(0.17 0.012 256 / 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.production-stack:hover .stack-hint,
.production-stack:focus-visible .stack-hint {
  opacity: 1;
}

.visual-card {
  grid-area: 1 / 1;
  width: 80%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    opacity 0.35s ease;
  will-change: transform;
}

.visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.visual-card-back {
  justify-self: start;
  align-self: end;
  margin-bottom: 0.5rem;
  background: var(--panel);
  transform: rotate(-5deg);
  transform-origin: center center;
  z-index: 0;
}

.visual-card-front {
  justify-self: end;
  align-self: start;
  margin-top: 0.5rem;
  background: var(--panel-2);
  z-index: 1;
}

.production-stack:hover .visual-card-front {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 22px 48px -12px var(--accent-glow);
}

.production-stack:hover .visual-card-back {
  transform: rotate(-8deg) translateX(-6px) scale(0.98);
}

.production-stack.is-swapping .visual-card-front {
  transform: translate(-8%, 4%) rotate(4deg) scale(0.94);
  opacity: 0.7;
  z-index: 0;
}

.production-stack.is-swapping .visual-card-back {
  transform: rotate(2deg) translate(6%, -4%) scale(1.06);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 24px 52px -12px var(--accent-glow);
}

.visual-card:has(img) {
  background: var(--bg-card);
}

/* First feature block: extra vertical space so copy + cards breathe */
#how-it-works {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

#how-it-works .feature-split-inner {
  align-items: start;
  gap: 3.5rem;
}

.visual-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-visual-pipeline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Homepage character stage — virtual character section */
.feature-visual.char-stage {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.char-stage {
  position: relative;
}

.char-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 40px 90px -50px #000;
}

.char-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 14px;
}

.char-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.char-head .id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.char-head .live {
  flex: none;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--good);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.char-head .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 var(--good);
  animation: char-pulse 2s infinite;
}

@keyframes char-pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.78 0.15 165 / 0.5); }
  70% { box-shadow: 0 0 0 8px oklch(0.78 0.15 165 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.78 0.15 165 / 0); }
}

.char-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.var-card {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.char-frame.in .var-card {
  opacity: 1;
  transform: none;
}

.char-frame.in .var-card:nth-child(1) { transition-delay: 0.05s; }
.char-frame.in .var-card:nth-child(2) { transition-delay: 0.18s; }
.char-frame.in .var-card:nth-child(3) { transition-delay: 0.31s; }
.char-frame.in .var-card:nth-child(4) { transition-delay: 0.44s; }

.var-card image-slot {
  width: 100%;
  height: 168px;
  display: block;
}

.var-card .tag {
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: oklch(0.17 0.012 256 / 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  padding: 4px 9px;
  border-radius: 7px;
}

.var-card .match {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: oklch(0.17 0.012 256 / 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent-line);
  color: var(--accent-bri);
  padding: 4px 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.var-card .match::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.var-card.active {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 34px -8px var(--accent-glow);
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bri), transparent);
  opacity: 0;
  pointer-events: none;
  filter: blur(0.3px);
}

.var-card.active .scan {
  animation: char-scan 1.6s var(--ease);
}

@keyframes char-scan {
  0% { top: 0; opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

.char-foot {
  margin-top: 14px;
  padding: 12px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
}

.char-foot .label {
  font-size: 13px;
  color: var(--muted);
}

.char-foot .val {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  flex: none;
}

.char-source {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 6px;
  border-radius: 9px;
  border: 1px solid var(--accent-line);
  background: var(--panel-2);
  box-shadow: 0 10px 28px -18px #000;
}

.char-source .sq {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
}

.char-source .sq image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

.char-source .t {
  line-height: 1.2;
}

.char-source .t b {
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.char-source .t span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .var-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .var-card image-slot {
    height: 140px;
  }
}

.pipeline-source {
  width: 80px;
  height: 100px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 2px dashed var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pipeline-arrow {
  color: var(--accent-bri);
  font-size: 1.5rem;
  font-weight: 700;
}

.pipeline-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.pipeline-out {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 0.35rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.feature-visual-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.duo-card {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.duo-card img,
.duo-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.duo-card--video video {
  background: var(--bg);
}

.match-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 14px -4px var(--accent-glow);
}

.feature-visual-private {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--media-gap, 1rem);
  width: 100%;
}

.private-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.85);
}

.private-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
}

.feature-split-reverse .feature-copy .section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.feature-band.feature-split-reverse .feature-copy .section-title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.feature-visual-expressions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--media-gap, 0.85rem);
  width: 100%;
}

.expression-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 40px -32px rgba(0, 0, 0, 0.85);
}

.expression-card img {
  display: block;
  width: 100%;
  height: clamp(128px, 14vw, 172px);
  object-fit: cover;
  object-position: center 22%;
}

/* Unified rhythm — Private / Expressions / Video trio */
.feature-band {
  --media-gap: clamp(0.7rem, 1.1vw, 0.95rem);
  --split-gap: clamp(2rem, 4.5vw, 3.75rem);
  padding: clamp(3rem, 4.5vw, 4rem) 0;
}

.feature-band + .feature-band {
  padding-top: clamp(2rem, 3vw, 2.75rem);
}

.feature-band .feature-split-inner {
  gap: var(--split-gap);
  align-items: start;
}

.feature-band .feature-copy {
  max-width: 28rem;
  padding-top: 0.2rem;
}

.feature-band .feature-copy p {
  margin-bottom: 0;
  line-height: 1.65;
}

.feature-band .section-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.feature-band .tag-row {
  margin-top: 1.15rem;
}

.section-compact {
  padding: 2.75rem 0;
}

.section-compact .feature-split-inner {
  gap: 1.75rem;
  align-items: center;
}

.section-compact .feature-copy p {
  margin-bottom: 0;
}

.section-compact .section-title {
  margin-bottom: 0.65rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.feature-visual-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.trio-item {
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

#video-ugc .feature-split-inner {
  align-items: start;
}

#video-ugc .feature-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.feature-visual-filmstrip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--media-gap, 0.85rem);
  width: 100%;
  height: clamp(224px, 27.2vw, 288px);
}

.ugc-video-card {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-2);
  box-shadow: 0 20px 48px -28px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#video-ugc .ugc-video-card:nth-child(2) {
  height: calc(100% + 18px);
  transform: translateY(-10px);
  z-index: 2;
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.92);
}

#video-ugc .ugc-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.92);
}

#video-ugc .ugc-video-card:nth-child(2):hover {
  transform: translateY(-14px);
}

/* Nudge copy down to optically align with video faces, not card tops */
#video-ugc .feature-copy {
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
}

.ugc-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.ugc-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* CTA strip */
.cta-strip {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
  text-align: center;
  background: var(--bg-2);
  background-image: radial-gradient(720px 480px at 50% 50%, var(--accent-dim), transparent 65%);
  isolation: isolate;
  clear: both;
}

.cta-strip-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.cta-strip-title-plain {
  color: var(--text);
}

.cta-strip-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Demo */
.demo-section {
  background: var(--bg-section);
}

.demo-models-label {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-dim);
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .model-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.model-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}

.model-card:hover,
.model-card.is-active {
  border-color: var(--accent-line);
  color: var(--fg);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 32px -12px var(--accent-glow);
}

.model-card span:last-child {
  padding-bottom: 0.15rem;
}

.model-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 856 / 1024;
  border-radius: calc(var(--radius-lg) - 4px);
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--border);
  background: var(--panel);
}

.model-thumb-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 856 / 1024;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 2px dashed var(--border);
  background: var(--panel);
  font-size: 2rem;
  color: var(--text-muted);
}

.demo-workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.demo-controls {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.control-group {
  margin-bottom: 1.25rem;
}

.control-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.toggle-btn {
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.toggle-btn:hover {
  color: var(--text);
}

.toggle-btn.is-active {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  color: var(--accent-bri);
}

.toggle-btn.is-locked {
  opacity: 0.72;
  cursor: pointer;
}

.toggle-btn.is-locked:hover {
  border-color: var(--line);
  color: var(--fg-dim);
}

.demo-output {
  min-height: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.demo-preview-image {
  max-width: 100%;
  max-height: min(640px, 70vh);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.demo-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.demo-placeholder p {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.demo-placeholder span {
  font-size: 0.9rem;
}

.demo-placeholder a {
  color: var(--accent-bri);
}

.demo-placeholder a:hover {
  color: var(--fg);
}

.demo-result {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.demo-result .match-badge {
  position: static;
}

.demo-result p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-section {
  background: var(--bg-deep);
}

.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer — matches homepage (styles.css) */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  margin-top: 90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer .brand {
  margin-bottom: 16px;
}

.footer .blurb {
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
  line-height: 1.55;
  margin: 0;
}

.footer h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer ul a {
  color: var(--fg-dim);
  font-size: 14px;
  transition: color 0.15s;
}

.footer ul a:hover {
  color: var(--fg);
}

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bot .mono {
  font-family: var(--mono);
}

/* Mobile */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .feature-split-inner,
  .feature-split-reverse .feature-split-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-visual-stack {
    max-width: 320px;
    min-height: 360px;
    padding-bottom: 2.5rem;
    order: -1;
    margin-bottom: 1.5rem;
  }

  #how-it-works {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .feature-split-reverse .feature-copy {
    order: 0;
  }

  .feature-band .feature-split-inner {
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .feature-band + .feature-band {
    padding-top: clamp(1.5rem, 3vw, 2rem);
  }

  .feature-band .feature-copy {
    max-width: none;
    padding-top: 0;
  }

  #video-ugc .feature-copy {
    padding-top: 0;
  }

  #video-ugc .feature-visual-filmstrip {
    justify-content: flex-start;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 0.35rem;
  }

  #video-ugc .ugc-video-card {
    flex: 0 0 clamp(118px, 33.6vw, 150px);
    height: auto;
    width: clamp(118px, 33.6vw, 150px);
    scroll-snap-align: start;
  }

  #video-ugc .ugc-video-card:nth-child(2) {
    height: auto;
    transform: none;
  }

  #video-ugc .ugc-video-card:hover,
  #video-ugc .ugc-video-card:nth-child(2):hover {
    transform: none;
  }

  .feature-visual-expressions {
    order: -1;
  }

  #video-ugc .feature-visual {
    order: -1;
  }

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

  .demo-workspace {
    grid-template-columns: 1fr;
  }

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

  .hero-gallery {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hero-gallery::-webkit-scrollbar {
    height: 0;
  }

  .gallery-item {
    flex: 0 0 38vw;
    min-width: 38vw;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .nav .btn-primary {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

  .gallery-item {
    flex: 0 0 52vw;
    min-width: 52vw;
  }

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

/* ---------- Homepage-shared: photo packs, pricing, FAQ ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bri);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lede { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 56ch; line-height: 1.55; }

.pack-gallery-outer {
  width: 100%;
  padding: 8px clamp(10px, 2vw, 28px) clamp(32px, 5vh, 56px);
}
.pack-gallery-footer {
  text-align: center;
  margin: 28px auto 0;
  max-width: 1680px;
}
.pack-gallery-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bri);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pack-gallery-footer a:hover {
  color: var(--fg);
  border-color: var(--accent-line);
  background: var(--panel-2);
}
.pack-gallery {
  column-count: 6;
  column-gap: 10px;
  max-width: 1680px;
  margin: 0 auto;
}
.pack-gallery__item { break-inside: avoid; margin-bottom: 10px; }
.pack-gallery__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pack-gallery__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
}
.pack-gallery__item img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }
.pack-gallery__item--video .pack-gallery__link video,
.pack-gallery__item--video .pack-gallery__link img {
  width: 100%;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.pack-gallery__item--video[data-aspect="16:9"] .pack-gallery__link video,
.pack-gallery__item--video[data-aspect="16:9"] .pack-gallery__link img {
  aspect-ratio: 16/9;
}

.price-wrap { display: grid; grid-template-columns: 0.95fr 1.55fr; gap: 22px; align-items: stretch; }
.membership {
  background: linear-gradient(165deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -50px var(--accent-glow);
}
.membership::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.membership .tier { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bri); }
.membership h3 { font-size: 26px; margin: 12px 0 18px; letter-spacing: -0.03em; }
.membership .price { display: flex; align-items: baseline; gap: 6px; }
.membership .price .amt { font-family: var(--mono); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; }
.membership .price .per { color: var(--muted); font-size: 15px; }
.membership .billed { color: var(--muted); font-size: 14px; margin-top: 8px; }
.membership ul { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.membership li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--fg-dim); }
.membership li .ck { color: var(--accent-bri); flex: none; margin-top: 1px; }
.membership .btn { width: 100%; justify-content: center; margin-top: auto; }

.packs { display: flex; flex-direction: column; gap: 14px; }
.packs-head { display: flex; align-items: center; justify-content: space-between; }
.packs-head .h { font-size: 19px; font-weight: 600; }
.packs-head .note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pack {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.pack:hover { border-color: var(--accent-line); transform: translateX(3px); background: var(--panel-2); }
.pack.feat-pack { border-color: var(--accent-line); }
.pack .credits { display: flex; flex-direction: column; }
.pack .credits .c { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.pack .credits .cl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono); }
.pack .perks { display: flex; flex-direction: column; gap: 5px; }
.pack .perks span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pack .perks span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.pack .disc { text-align: right; }
.pack .disc .badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--good);
  background: oklch(0.78 0.15 165 / 0.12);
  border: 1px solid oklch(0.78 0.15 165 / 0.3);
  padding: 4px 9px;
  border-radius: 7px;
  display: inline-block;
}
.pack .disc .each { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.pack .buy { text-align: right; min-width: 130px; }
.pack .buy .was { font-family: var(--mono); font-size: 13px; color: var(--faint); text-decoration: line-through; }
.pack .buy .now { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pack .buy .now.solo { color: var(--fg); }
.pack .buy button { margin-top: 8px; font-size: 13px; padding: 8px 16px; }

.faq {
  background: linear-gradient(165deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 50% -20%, var(--accent-dim), transparent 70%);
  pointer-events: none;
}
.faq-head {
  position: relative;
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 40px;
}
.faq-head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.04em; margin: 0; }
.faq-head p { margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.faq .faq-list {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: oklch(0.14 0.012 256 / 0.45);
  overflow: hidden;
}
.faq .faq-item { border-bottom: 1px solid var(--line-soft); }
.faq .faq-item:last-child { border-bottom: 0; }
.faq .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.faq .faq-item summary::-webkit-details-marker { display: none; }
.faq .faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--accent-bri);
  border-bottom: 1.5px solid var(--accent-bri);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
  opacity: 0.8;
}
.faq .faq-item[open] summary::after { transform: rotate(-135deg) translateY(2px); }
.faq .faq-item summary:hover { color: var(--accent-bri); background: oklch(0.62 0.20 264 / 0.04); }
.faq-answer { padding: 0 22px 18px; color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--accent-bri); text-decoration: underline; text-underline-offset: 2px; }
.faq-answer a:hover { color: var(--fg); }
.faq-foot { position: relative; text-align: center; margin-top: 32px; color: var(--muted); font-size: 15px; }
.faq-foot a { color: var(--accent-bri); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-foot a:hover { color: var(--fg); }

.btn .arrow { display: inline-block; transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

@media (max-width: 1000px) {
  .price-wrap { grid-template-columns: 1fr; }
  .pack-gallery { column-count: 4; }
}
@media (max-width: 640px) {
  .pack-gallery { column-count: 3; }
}
@media (max-width: 600px) {
  .pack-gallery { column-count: 2; column-gap: 8px; }
  .pack-gallery__item { margin-bottom: 8px; }
  .pack { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pack .disc, .pack .buy { text-align: left; }
}

