/* PromptMotion — landing page v2
   Tokens inlined from design-system/colors_and_type.css
   Styles from polished landing page design
   ================================================================ */


/* ============ Design tokens (light mode) ============ */
:root {
  --violet-50:  #F5F1FE;
  --violet-100: #ECE3FD;
  --violet-200: #DAC8FB;
  --violet-300: #BFA2F7;
  --violet-400: #A07AF2;
  --violet-500: #8B5BEE;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;
  --violet-800: #5B21B6;
  --violet-900: #4C1D95;
  --violet-950: #2E1065;

  --primary:           #7C3AED;
  --primary-hover:     #6D28D9;
  --primary-press:     #5B21B6;
  --primary-soft:      #ECE3FD;
  --primary-soft-fg:   #5B21B6;

  --accent-magenta:  #C026D3;
  --accent-pink:     #F472B6;
  --accent-lilac:    #F0ABFC;
  --gradient-generative: linear-gradient(135deg, #7C3AED 0%, #C026D3 50%, #F472B6 100%);

  --surface-0:  #FFFFFF;
  --surface-1:  #F7F5FB;
  --surface-2:  #EFEAF7;
  --surface-3:  #E5DDF2;
  --surface-inverse: #0B0814;

  --fg-1: #0B0814;
  --fg-2: #4A4458;
  --fg-3: #6F667D;
  --fg-4: #B5ADC6;

  --border-1: rgba(20, 10, 45, 0.08);
  --border-2: rgba(20, 10, 45, 0.14);
  --border-strong: rgba(20, 10, 45, 0.22);
  --border-input: #E5E0EE;
  --focus-ring: 0 0 0 4px rgba(124, 58, 237, 0.22);

  --success: #10B981;
  --success-bg: #ECFDF5;
  --success-fg: #047857;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(20, 10, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 10, 45, 0.08), 0 1px 3px rgba(20, 10, 45, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(20, 10, 45, 0.18), 0 8px 16px -8px rgba(20, 10, 45, 0.10);
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.15), 0 12px 32px -8px rgba(124, 58, 237, 0.35);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============ Dark mode tokens ============ */
:root[data-theme="dark"] {
  --surface-0:  #0B0814;
  --surface-1:  #15101F;
  --surface-2:  #1E1730;
  --surface-3:  #2A2042;
  --surface-inverse: #FFFFFF;

  --fg-1: #FFFFFF;
  --fg-2: #B5ADC6;
  --fg-3: #9590A8;
  --fg-4: #4A4458;

  --border-1: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-input: #2A2042;

  --primary-soft: rgba(124, 58, 237, 0.18);
  --primary-soft-fg: var(--violet-300);

  --success-bg: rgba(16, 185, 129, 0.14);
  --success-fg: #6EE7B7;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 8px 16px -8px rgba(0, 0, 0, 0.4);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface-0);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--violet-200); color: var(--fg-1); }

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 150ms;
}
.skip-link:focus { top: 0; }

/* ============ Layout helpers ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface-1); }
.section--inverse { background: var(--surface-inverse); color: #fff; }

/* ============ Typography ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
.section--inverse .eyebrow { color: var(--violet-300); }
.section--inverse .eyebrow::before { background: var(--violet-300); }

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7.2vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--fg-1);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--fg-1);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-1);
}
.section--inverse .h2, .section--inverse .h3 { color: #fff; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.small {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
}
.section--inverse .lead { color: rgba(255,255,255,.7); }
.section--inverse .small { color: rgba(255,255,255,.55); }

.italic-accent {
  font-style: italic;
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.italic-accent::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: -0.08em;
  height: 0.18em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 5 Q 10 1 20 5 T 40 5 T 60 5 T 80 5' stroke='%237C3AED' fill='none' stroke-width='2' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 80px 0.18em;
  opacity: 0.95;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-1);
  cursor: pointer;
  transition: background 150ms var(--ease-out), box-shadow 200ms var(--ease-out),
              color 150ms var(--ease-out), transform 80ms var(--ease-out),
              border-color 150ms var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20,10,45,.08), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}
.btn--ghost { color: var(--fg-1); }
.btn--ghost:hover { background: var(--surface-2); }

.btn--outline {
  border-color: var(--border-strong);
  color: var(--fg-1);
}
.btn--outline:hover {
  background: var(--surface-1);
  border-color: var(--fg-1);
}

.btn--lg { padding: 15px 22px; font-size: 15px; border-radius: 14px; }
.btn--block { width: 100%; justify-content: center; }

.btn--inverse {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.btn--inverse:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
}

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn--loading::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-tri {
  width: 9px; height: 10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: currentColor;
  flex: 0 0 auto;
}

.i {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  overflow: visible;
}
.i--sm { width: 14px; height: 14px; }
.i--lg { width: 22px; height: 22px; }

/* ============ Top nav ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,255,255,0);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav--stuck {
  background: rgba(255,255,255,0.78);
  border-bottom-color: var(--border-1);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(124,58,237,.3), 0 0 0 1px rgba(124,58,237,.15);
}
.brand em { font-style: normal; color: var(--primary); }

.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 150ms;
}
.nav__links a:hover { color: var(--fg-1); }
@media (max-width: 880px) { .nav__links { display: none; } }

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

.theme-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: 9px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fg-2);
  transition: background 150ms, border-color 150ms, color 150ms;
  flex-shrink: 0;
}
.theme-btn:hover { background: var(--surface-2); color: var(--fg-1); border-color: var(--border-2); }

.hamburger {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: 9px;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fg-2);
  transition: background 150ms;
}
.hamburger:hover { background: var(--surface-2); }
@media (max-width: 880px) { .hamburger { display: inline-flex; } }

.mobile-nav {
  display: none;
  position: fixed; top: 57px; left: 0; right: 0;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-1);
  padding: 16px 24px 24px;
  z-index: 55;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-lg);
}
.mobile-nav--open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-1);
  transition: color 150ms;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav__cta {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
}
.hero__halo {
  position: absolute; inset: -80px 0 auto 0; height: 720px;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(124,58,237,.22), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface-0);
  color: var(--fg-2);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero__pill__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
@keyframes dotBreath {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.hero__pill__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: dotBreath 2s ease-in-out infinite;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 620px;
  margin: 22px auto 0;
  text-wrap: pretty;
}

.tryit {
  position: relative;
  max-width: 760px;
  margin: 44px auto 0;
}
.tryit__card {
  background: var(--surface-0);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.10), var(--shadow-lg);
  border-radius: 22px;
  padding: 22px 22px 18px;
  text-align: left;
}
.tryit__field {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  min-height: 96px;
}
.tryit__field--placeholder { color: var(--fg-3); }
.caret {
  display: inline-block;
  width: 2px; height: 18px;
  background: var(--primary);
  vertical-align: -3px;
  margin-left: 1px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tryit__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border-2);
  flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--fg-2);
  border: 1px solid var(--border-1);
  cursor: pointer;
  transition: all 150ms;
  font-family: inherit;
}
.chip:hover { background: var(--surface-2); }
.chip--active {
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
  border-color: rgba(124,58,237,.2);
}

.tryit__note {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-3);
}

.takes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 28px auto 0;
}
.take {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
  cursor: pointer;
}
.take:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.take--active {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--shadow-glow);
}
.take__badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(11,8,20,.45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.take__shine {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 25%, rgba(255,255,255,.25), transparent 60%);
  pointer-events: none;
}
.take--gen {
  background: var(--surface-1);
  overflow: hidden;
}
.take--gen::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    var(--surface-1) 0%, var(--surface-1) 30%,
    rgba(124,58,237,.18) 50%,
    var(--surface-1) 70%, var(--surface-1) 100%);
  background-size: 220% 100%;
  animation: shimmer 1.4s var(--ease-inout) infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.take--reveal { animation: riseIn 600ms var(--ease-out) backwards; }

.hero__stats {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  margin-top: 36px;
  font-size: 13px;
  color: var(--fg-3);
}
.hero__stats b { color: var(--fg-1); font-weight: 700; }

/* ============ Logo cloud ============ */
.cloud {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  opacity: 0.68;
  flex-wrap: wrap;
}
.cloud__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-3);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.cloud__dot {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--fg-3);
  opacity: 0.5;
}

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.step__icon {
  position: absolute; top: 28px; right: 28px;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============ Concepts ============ */
.concepts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .concepts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .concepts { grid-template-columns: 1fr; } }

.concept {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.concept:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.concept__shine {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 78% 22%, rgba(255,255,255,.28), transparent 60%);
}
.concept__play {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(11,8,20,.42);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform 250ms;
}
.concept:hover .concept__play { transform: scale(1.1); }
.concept__title {
  position: absolute; left: 22px; bottom: 18px; right: 22px;
  color: #fff;
}
.concept__title h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0; color: #fff;
}
.concept__title p { margin: 4px 0 0; font-size: 13px; opacity: 0.86; }

/* ============ Feature rows ============ */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature--reverse { grid-template-columns: 1fr 1.05fr; }
.feature--reverse .feature__copy { order: 2; }
.feature--reverse .feature__visual { order: 1; }
@media (max-width: 900px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature__copy { order: 1; }
  .feature--reverse .feature__visual { order: 2; }
}
.feature__copy .h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 12px; }
.feature__copy .lead { margin-top: 16px; max-width: 460px; }
.feature__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.feature__chips .chip { cursor: default; }

.mock {
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.mock--mono { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--fg-1); }
.mock__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.mock__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  text-transform: none; letter-spacing: 0; font-size: 11px;
  color: var(--success-fg);
}
.mock__status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.mock__field { display: flex; gap: 12px; }
.mock__field b { color: var(--primary); font-weight: 600; min-width: 78px; }
.mock__field span { color: var(--fg-2); }
.mock__footer {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--border-2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body);
}

.reroll {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.reroll__tile {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.reroll__tile--hl {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--shadow-glow);
}
.reroll__tile__num {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--font-mono); font-size: 10.5px; color: #fff; opacity: .9;
}
.reroll__tile__label {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; line-height: 1.1;
}

.fb {
  background: var(--surface-0);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-1);
  padding: 18px;
  max-width: 380px;
}
.fb__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fb__avatar {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--gradient-generative);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  flex-shrink: 0;
}
.fb__name { font-weight: 700; font-size: 14px; }
.fb__meta { font-size: 11px; color: var(--fg-3); margin-top: 1px; display: flex; gap: 6px; align-items: center; }
.fb__copy { font-size: 14px; line-height: 1.55; margin: 6px 0 12px; color: var(--fg-1); }
.fb__media {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  position: relative; overflow: hidden;
  background: var(--gradient-generative);
}
.fb__actions {
  display: flex; gap: 18px; margin-top: 12px;
  font-size: 12.5px; color: var(--fg-3);
}
.fb__actions span { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gallery { grid-template-columns: 1fr; } }

.tile {
  border-radius: 16px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform 250ms var(--ease-out);
  cursor: pointer;
}
.tile:hover { transform: translateY(-2px) scale(1.005); }
.tile__shine {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 75% 22%, rgba(255,255,255,.22), transparent 60%);
  pointer-events: none;
}
.tile__badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(11,8,20,.4); color: #fff;
  backdrop-filter: blur(6px);
}

/* ============ Testimonial ============ */
.testimonial {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.testimonial__quote::before {
  content: "\201C";
  display: block;
  font-size: 80px;
  line-height: 0.5;
  color: var(--primary);
  margin-bottom: 16px;
}
.testimonial__cite {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.testimonial__name { font-size: 14px; font-weight: 700; text-align: left; }
.testimonial__role { font-size: 13px; color: var(--fg-3); text-align: left; }

/* ============ Pricing ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing { grid-template-columns: 1fr; } }

.plan__original {
  font-size: 13px;
  color: var(--fg-3);
  text-decoration: line-through;
  font-weight: 500;
}
.plan--hl .plan__original { color: rgba(255,255,255,.5); }
.plan__discount {
  font-size: 11px;
  font-weight: 700;
  background: var(--gradient-generative);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
}
.plan--hl .plan__discount {
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,.85);
  color: rgba(255,255,255,.85);
}

.plan {
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: 22px;
  padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan--hl {
  background: var(--surface-inverse);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary);
}
.plan--hl:hover { box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary); }
.plan__tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--gradient-generative);
  color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(192,38,211,.35);
}
.plan__tag--soon {
  background: #64748b;
  box-shadow: 0 2px 8px rgba(100,116,139,.3);
  left: auto; right: 28px;
}
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.plan__sub { font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.plan--hl .plan__sub { color: rgba(255,255,255,.72); }
.plan__price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-weight: 700;
}
.plan__price b { font-size: 46px; letter-spacing: -0.025em; }
.plan__price span { font-size: 13px; color: var(--fg-3); font-weight: 500; }
.plan--hl .plan__price span { color: rgba(255,255,255,.6); }
.plan__items {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.plan__items li {
  font-size: 14px; color: var(--fg-2);
  display: flex; align-items: center; gap: 10px;
}
.plan--hl .plan__items li { color: rgba(255,255,255,.86); }
.plan__items li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}
.plan--hl .plan__items li::before {
  background-color: rgba(255,255,255,.16);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ============ FAQ ============ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
}
.faq__item { border-bottom: 1px solid var(--border-1); padding: 4px 0; }
.faq__btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: inherit; color: var(--fg-1); transition: color 150ms;
}
.faq__btn:hover { color: var(--primary); }
.faq__q {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.015em; line-height: 1.3;
}
.faq__icon {
  width: 22px; height: 22px; flex: 0 0 auto;
  position: relative; color: var(--fg-3);
  transition: color 150ms, transform 250ms var(--ease-out);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.75px; border-radius: 2px; background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); transition: transform 250ms var(--ease-out); }
.faq__item--open .faq__icon { color: var(--primary); }
.faq__item--open .faq__icon::after { transform: rotate(0deg); }
.faq__a {
  overflow: hidden; max-height: 0;
  transition: max-height 280ms var(--ease-out), padding 280ms var(--ease-out);
}
.faq__item--open .faq__a { max-height: 280px; padding-bottom: 22px; }
.faq__a p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 580px; }

/* ============ CTA band ============ */
.ctaband {
  position: relative;
  padding: 96px 32px;
  background: var(--surface-inverse);
  color: #fff; overflow: hidden;
}
.ctaband__halo {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(124,58,237,.45), transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(192,38,211,.35), transparent 60%);
  pointer-events: none;
}
.ctaband__inner {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 48px; flex-wrap: wrap;
}
.ctaband .h2 { color: #fff; }

/* ============ Footer ============ */
.footer { padding: 56px 0 36px; border-top: 1px solid var(--border-1); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col h3 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); margin: 0 0 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer__col a { font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color 150ms; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid var(--border-1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-3);
}

/* ============ Post tiles & grain ============ */
.post {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.post__copy {
  font-family: var(--font-display); font-weight: 700;
  color: #fff; line-height: 1.04; letter-spacing: -0.02em; font-size: 22px;
  text-wrap: balance;
}
.post__copy--sm { font-size: 17px; }
.post__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: #fff; background: rgba(11,8,20,.42);
  padding: 4px 9px; border-radius: 6px;
  align-self: flex-start; letter-spacing: 0.02em;
}
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ Dark mode overrides ============ */
:root[data-theme="dark"] .nav--stuck {
  background: rgba(11,8,20,.78);
  border-bottom-color: var(--border-1);
}
:root[data-theme="dark"] .mobile-nav { background: var(--surface-1); }
:root[data-theme="dark"] .plan--hl {
  background: var(--violet-700);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary);
}
:root[data-theme="dark"] .testimonial__avatar {
  background: rgba(124,58,237,.25);
  color: var(--violet-300);
}
:root[data-theme="dark"] .step { background: var(--surface-1); border-color: var(--border-1); }
:root[data-theme="dark"] .mock,
:root[data-theme="dark"] .fb { background: var(--surface-1); border-color: var(--border-1); }
:root[data-theme="dark"] .hero__pill { background: var(--surface-1); border-color: var(--border-1); }
:root[data-theme="dark"] .chip { background: var(--surface-2); border-color: var(--border-1); color: var(--fg-2); }
:root[data-theme="dark"] .ctaband { background: var(--violet-950); }
:root[data-theme="dark"] .tryit__card { background: var(--surface-1); }

/* ============ Video tiles ============ */
.tile__video,
.concept__video,
.take__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tile__overlay,
.concept__overlay,
.take__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.0;
  transition: opacity 420ms ease;
}

.tile--video,
.concept--video,
.take--video,
.reroll__tile--video,
.fb__media--video { isolation: isolate; }

.tile--video:hover .tile__overlay,
.concept--video:hover .concept__overlay,
.take--video:hover .take__overlay,
.reroll__tile--video:hover .take__overlay,
.fb__media--video:hover .tile__overlay { opacity: 0; }

.tile--video .tile__shine,
.tile--video .tile__badge,
.tile--video .post,
.concept--video .concept__shine,
.concept--video .concept__play,
.concept--video .concept__title,
.take--video .take__shine,
.take--video .take__badge,
.take--video .post,
.reroll__tile--video .take__shine,
.reroll__tile--video .reroll__tile__num,
.reroll__tile--video .reroll__tile__label,
.fb__media--video .take__shine,
.fb__media--video .post { z-index: 2; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .tile__video, .concept__video, .take__video { display: none; }
}
