@font-face {
  font-family: "Istok Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/istok-web-400.woff2") format("woff2");
}

@font-face {
  font-family: "Istok Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/istok-web-700.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080a;
  --band-low: #0f1012;
  --surface: #141518;
  --surface-high: #1d1e22;
  --surface-highest: #27282d;
  --footer-bg: #0d0e11;
  --text: #f5f5f7;
  --muted: #a6a6aa;
  --weak: #71717a;
  --border: rgb(255 255 255 / 12%);
  --border-hover: rgb(255 255 255 / 28%);
  --pill-soft: rgb(255 255 255 / 7%);
  --pill-selected: rgb(255 255 255 / 15%);
  /* Exact YooReel APP / Higgsfield acid-lime palette (app_colors.dart) */
  --brand: #d1fe17;
  --brand-soft: #daf954;
  --brand-ink: #111111;
  --brand-glow: rgb(209 254 23 / 30%);
  --brand-glow-soft: rgb(209 254 23 / 15%);
  --brand-border: rgb(209 254 23 / 52%);
  /* Apple-grade Liquid Glass tokens (directional hairline rim + clean frosted charcoal) */
  --glass-fill: rgb(36 37 42 / 64%);
  --glass-fill-hover: rgb(48 49 56 / 74%);
  --glass-rim: linear-gradient(150deg, rgb(255 255 255 / 32%) 0%, rgb(255 255 255 / 10%) 36%, rgb(255 255 255 / 6%) 66%, rgb(255 255 255 / 20%) 100%);
  --glass-rim-hover: linear-gradient(150deg, rgb(255 255 255 / 44%) 0%, rgb(255 255 255 / 16%) 38%, rgb(255 255 255 / 10%) 66%, rgb(255 255 255 / 28%) 100%);
  --glass-shadow:
    inset 0 0.75px 0 rgb(255 255 255 / 20%),
    inset 0 -0.75px 0 rgb(255 255 255 / 7%),
    0 6px 18px rgb(0 0 0 / 32%);
  --glass-shadow-hover:
    inset 0 0.75px 0 rgb(255 255 255 / 30%),
    inset 0 -0.75px 0 rgb(255 255 255 / 11%),
    0 10px 24px rgb(0 0 0 / 42%);
  --radius-btn: 999px;
  --radius-prompt: 999px;
  --radius-panel: 26px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f9fa;
  --band-low: #f0f2f4;
  --surface: #ffffff;
  --surface-high: #eef0f3;
  --surface-highest: #e2e5ea;
  --footer-bg: #eef0f3;
  --text: #111317;
  --muted: #525660;
  --weak: #717682;
  --border: rgb(15 17 22 / 11%);
  --border-hover: rgb(15 17 22 / 26%);
  --pill-soft: rgb(15 17 22 / 5%);
  --pill-selected: rgb(15 17 22 / 10%);
  --brand: #d1fe17;
  --brand-soft: #daf954;
  --brand-ink: #111111;
  --brand-glow: rgb(163 210 0 / 28%);
  --brand-glow-soft: rgb(163 210 0 / 16%);
  --brand-border: rgb(120 165 0 / 52%);
  --glass-fill: rgb(255 255 255 / 68%);
  --glass-fill-hover: rgb(255 255 255 / 84%);
  --glass-rim: linear-gradient(150deg, rgb(255 255 255 / 95%) 0%, rgb(15 17 22 / 12%) 42%, rgb(15 17 22 / 8%) 68%, rgb(255 255 255 / 72%) 100%);
  --glass-rim-hover: linear-gradient(150deg, rgb(255 255 255 / 100%) 0%, rgb(15 17 22 / 22%) 42%, rgb(15 17 22 / 14%) 68%, rgb(255 255 255 / 86%) 100%);
  --glass-shadow:
    inset 0 0.75px 0 rgb(255 255 255 / 92%),
    inset 0 -0.75px 0 rgb(15 17 22 / 7%),
    0 4px 14px rgb(15 17 22 / 7%);
  --glass-shadow-hover:
    inset 0 0.75px 0 rgb(255 255 255 / 100%),
    inset 0 -0.75px 0 rgb(15 17 22 / 10%),
    0 8px 20px rgb(15 17 22 / 11%);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5.25rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Istok Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
  transition: background-color 220ms ease, color 220ms ease;
}

[hidden],
body:not(.js) [data-js-only] { display: none !important; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 5.25rem; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap-marketing { width: min(calc(100% - 2 * clamp(1.25rem, 3.8vw, 3.75rem)), 100rem); margin-inline: auto; }
.wrap-narrow { width: min(calc(100% - 2 * clamp(1.25rem, 4vw, 3.5rem)), 81rem); margin-inline: auto; }

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes progress-fill {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress {
      animation: progress-fill linear both;
      animation-timeline: scroll(block root);
      animation-range: 0% 100%;
    }
  }
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 70;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 650;
  transform: translateY(calc(-100% - 2rem));
}
.skip-link:focus { transform: none; }

/* ================================================================
   LIQUID GLASS BUTTON & PILL SYSTEM (Apple directional hairline rim)
   ================================================================ */
.glass-btn,
.btn--glass {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box,
    var(--glass-rim) border-box;
  box-shadow: var(--glass-shadow);
  color: var(--text);
  transition:
    transform 200ms var(--ease-expo),
    box-shadow 200ms ease,
    background 200ms ease,
    color 180ms ease;
}

@supports (backdrop-filter: blur(1px)) {
  .glass-btn,
  .btn--glass {
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
  }
}

.glass-btn:hover,
.btn--glass:hover {
  background:
    linear-gradient(var(--glass-fill-hover), var(--glass-fill-hover)) padding-box,
    var(--glass-rim-hover) border-box;
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-1px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 200ms var(--ease-expo),
    box-shadow 200ms ease,
    filter 200ms ease;
}

.btn--xs { min-height: 32px; padding: 0.34rem 0.9rem; font-size: 0.8rem; }
.btn--sm { min-height: 36px; padding: 0.46rem 1.08rem; font-size: 0.875rem; }
.btn--lg { min-height: 50px; padding: 0.8rem 1.75rem; font-size: 0.975rem; }

/* Primary Acid-Lime Liquid Glass CTA (clean directional rim, restrained glow) */
.btn--primary {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #daf945 0%, #d1fe17 100%) padding-box,
    linear-gradient(150deg, rgb(252 255 212 / 86%) 0%, rgb(209 254 23 / 35%) 44%, rgb(164 205 10 / 45%) 100%) border-box;
  color: var(--brand-ink);
  box-shadow:
    inset 0 0.75px 0 rgb(255 255 255 / 56%),
    inset 0 -0.75px 0 rgb(84 110 0 / 26%),
    0 6px 20px rgb(209 254 23 / 18%);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    inset 0 0.75px 0 rgb(255 255 255 / 68%),
    inset 0 -0.75px 0 rgb(84 110 0 / 24%),
    0 8px 26px rgb(209 254 23 / 28%);
}

.btn--primary:active { transform: translateY(0) scale(0.985); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
}
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun { display: none; }

.play-tri {
  display: inline-block;
  width: 0;
  height: 0;
  border-block: 0.31rem solid transparent;
  border-left: 0.5rem solid currentColor;
}

/* FIXED HEADER */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.site-header[data-scrolled="true"],
.site-header[data-menu-open="true"] {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--border);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header[data-scrolled="true"],
  .site-header[data-menu-open="true"] {
    backdrop-filter: blur(22px) saturate(160%);
  }
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
}

.brand-mark {
  display: block;
  border-radius: 8px;
  transition: transform 900ms var(--ease-spring);
}
.brand-lockup:hover .brand-mark { transform: rotate(-360deg); }

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.main-nav a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease;
}

.main-nav a:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--text); }

.nav-caret {
  display: inline-block;
  width: 0.36rem;
  height: 0.36rem;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 180ms ease;
}
.nav-trigger[aria-expanded="true"] .nav-caret,
.template-catalog[open] .nav-caret { transform: translateY(0.1rem) rotate(225deg); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  inset: 100% 0 auto;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 24px 60px rgb(0 0 0 / 48%);
}

@supports (backdrop-filter: blur(1px)) {
  .mega-menu { backdrop-filter: blur(26px) saturate(160%); }
}

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 20rem);
  gap: 2rem;
  padding-block: 1.5rem 1.75rem;
}

.mega-heading {
  margin-bottom: 0.65rem;
  color: var(--weak);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mega-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-list a {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  transition: background-color 160ms ease;
}
.mega-list a:hover { background: var(--pill-soft); }
.mega-list strong { color: var(--text); font-size: 0.9rem; font-weight: 600; }
.mega-list span { color: var(--muted); font-size: 0.8rem; }
.mega-list a[aria-current="true"] strong { color: var(--brand); }
[data-theme="light"] .mega-list a[aria-current="true"] strong { color: #547400; }

.main-nav .mega-preview {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  align-self: center;
}
.main-nav .mega-preview img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 19px; transition: transform 320ms var(--ease-expo); }
.main-nav .mega-preview:hover img { transform: scale(1.04); }
.mega-preview-pill {
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  background: rgb(10 11 14 / 76%);
  color: #f5f5f7;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ================================================================
   SECTION 1: HERO + INTERACTIVE MIXED-ASPECT RECIPE MARQUEE
   ================================================================ */
.hero-section {
  position: relative;
  isolation: isolate;
  padding-top: clamp(6.6rem, 11vh, 8.5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hero-ambient {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 54rem;
  background:
    radial-gradient(46% 36% at 50% 10%, rgb(209 254 23 / 10%), transparent 72%),
    radial-gradient(38% 34% at 18% 42%, rgb(209 254 23 / 6%), transparent 70%),
    radial-gradient(40% 34% at 82% 42%, rgb(175 215 40 / 6%), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .hero-ambient { opacity: 0.55; }

.hero-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.9vw, 4.1rem);
  font-weight: 680;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-cycle {
  position: relative;
  display: inline-grid;
  justify-items: start;
  text-align: left;
  vertical-align: bottom;
  overflow: hidden;
  padding-inline: 0.08em;
}

.hero-phrase {
  grid-area: 1 / 1;
  color: var(--brand);
  opacity: 0;
  transform: translateY(105%);
  filter: blur(4px);
  transition: transform 520ms var(--ease-expo), opacity 420ms ease, filter 420ms ease;
}

[data-theme="light"] .hero-phrase { color: #4c6900; }

.hero-phrase.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-phrase.is-leaving {
  opacity: 0;
  transform: translateY(-105%);
  filter: blur(4px);
}

.hero-sub {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

/* Liquid Glass Category Pills */
.pill-chip {
  min-height: 38px;
  padding: 0.42rem 1.15rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 560;
  cursor: pointer;
}

.pill-chip:hover { color: var(--text); }
.pill-chip[aria-pressed="true"] {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #daf945 0%, #d1fe17 100%) padding-box,
    linear-gradient(150deg, rgb(252 255 212 / 84%) 0%, rgb(209 254 23 / 36%) 50%, rgb(164 205 10 / 42%) 100%) border-box;
  color: var(--brand-ink);
  font-weight: 660;
  box-shadow:
    inset 0 0.75px 0 rgb(255 255 255 / 54%),
    0 4px 16px rgb(209 254 23 / 18%);
}

/* CLEAN HERO MARQUEE (JS-driven seamless drag/wheel scroll + subtle in-place hover zoom) */
.recipe-marquee-shell {
  margin-top: clamp(2rem, 3.8vw, 3rem);
}

.recipe-marquee {
  overflow: clip;
  padding-block: 1.85rem;
  margin-block: -1.85rem;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(90deg, transparent, #000 5.5%, #000 94.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5.5%, #000 94.5%, transparent);
}

.recipe-marquee.is-dragging {
  cursor: grabbing;
}

.recipe-track {
  display: flex;
  width: max-content;
  gap: 1.45rem;
  padding-block: 0.4rem;
  will-change: transform;
}

.recipe-group {
  display: flex;
  align-items: stretch;
  gap: 1.45rem;
}

.recipe-card {
  position: relative;
  flex: none;
  height: clamp(20.5rem, 31vw, 25.5rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-panel);
  background: var(--surface);
  opacity: 0.84;
  transform-origin: center center;
  transition:
    border-color 280ms ease,
    box-shadow 320ms var(--ease-expo),
    transform 340ms var(--ease-expo),
    opacity 280ms ease;
}

.recipe-card--wide { width: clamp(26rem, 43vw, 38rem); }
.recipe-card--tall { width: clamp(13.5rem, 18vw, 16.5rem); }

/* Center-zone subtle ambient glow when not hovering another card */
.recipe-marquee:not(.has-hover) .recipe-card.is-centered {
  opacity: 1;
  border-color: rgb(209 254 23 / 44%);
  box-shadow:
    0 0 0 1px rgb(209 254 23 / 22%),
    0 0 34px rgb(209 254 23 / 20%),
    0 18px 40px rgb(0 0 0 / 52%);
  transform: scale(1.015);
  z-index: 2;
}

/* When hovering a card: hovered card subtly zooms in-place; others gently recede */
.recipe-marquee.has-hover .recipe-card:not(:hover) {
  opacity: 0.72;
  transform: scale(0.985);
}

.recipe-marquee:not(.is-dragging) .recipe-card:hover {
  opacity: 1;
  border-color: rgb(209 254 23 / 72%);
  box-shadow:
    0 0 0 1px rgb(209 254 23 / 40%),
    0 0 42px rgb(209 254 23 / 28%),
    0 22px 48px rgb(0 0 0 / 60%);
  transform: scale(1.045);
  z-index: 6;
}

.recipe-card.is-dimmed { opacity: 0.25 !important; }

.recipe-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
}

.recipe-media img,
.recipe-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.recipe-media video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.recipe-media video.is-playing { opacity: 1; }

/* Sleek single-line frosted prompt bar with glowing tinted white variable chip (Images 3 & 4) */
.recipe-prompt {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.36rem 0.65rem 0.36rem 0.72rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-prompt);
  background: rgb(10 11 14 / 72%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 8px 24px rgb(0 0 0 / 45%);
  color: #f5f5f7;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

@supports (backdrop-filter: blur(1px)) {
  .recipe-prompt {
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
  }
}

.recipe-card.is-centered .recipe-prompt,
.recipe-card:hover .recipe-prompt {
  border-color: rgb(209 254 23 / 36%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 28%),
    0 8px 28px rgb(0 0 0 / 52%);
}

.recipe-spark { color: var(--brand); font-size: 0.82rem; flex: none; }
.recipe-prefix,
.recipe-suffix {
  color: rgb(244 244 247 / 86%);
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipe-suffix:empty { display: none; }
.recipe-card--tall .recipe-suffix { display: none; }

.recipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.2rem 0.52rem 0.2rem 0.22rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fad9 100%);
  color: #0b0c0e;
  font-size: 0.75rem;
  font-weight: 660;
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 26%);
  transition: transform 180ms var(--ease-expo), background 200ms ease, box-shadow 200ms ease;
}

.recipe-card.is-centered .recipe-chip,
.recipe-card:hover .recipe-chip {
  background: linear-gradient(135deg, #ffffff 0%, #ebff9a 100%);
  box-shadow: 0 0 16px rgb(209 254 23 / 38%);
}

.recipe-chip:hover {
  background: var(--brand);
  transform: scale(1.04);
}

.recipe-chip img { width: 19px; height: 19px; border-radius: 50%; object-fit: cover; flex: none; }
.recipe-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11rem; }
.recipe-card--tall .recipe-chip-label { max-width: 7.5rem; }
.recipe-swap-icon { font-size: 0.75rem; opacity: 0.72; }

.hero-foot {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: clamp(2.25rem, 3.8vw, 3rem);
}

.text-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  transition: color 160ms ease;
}
.text-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 0.25em; }
[data-theme="light"] .text-link:hover { color: #4c6900; }

/* SHARED SECTION HEADINGS */
.section-heading {
  font-size: clamp(2rem, 3.25vw, 3rem);
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-sub {
  max-width: 38rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.section-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.centered-head {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* SECTION 2: SCROLL-LINKED STICKY 4-STEP WORKFLOW */
.workflow-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.workflow-split {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.workflow-rail {
  position: sticky;
  top: 22vh;
  display: grid;
}

.workflow-step {
  display: grid;
  gap: 0.65rem;
  padding-block: 1.35rem;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: 0.42;
  transition: opacity 240ms ease, border-color 240ms ease;
}

.workflow-step:last-child { border-bottom: 1px solid var(--border); }
.workflow-step:hover { opacity: 0.78; }
.workflow-step[aria-current="step"] { opacity: 1; border-top-color: var(--brand); }

.workflow-step-title {
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
}

.workflow-step-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  display: none;
}
.workflow-step[aria-current="step"] .workflow-step-desc { display: block; }

.workflow-cards {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.wf-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  min-height: clamp(26rem, 44vw, 34rem);
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.wf-aura {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(45% 45% at 72% 40%, rgb(209 254 23 / 14%), transparent 70%),
    radial-gradient(45% 45% at 32% 65%, rgb(218 249 84 / 10%), transparent 70%);
  pointer-events: none;
}

.wf-panel-inner { position: relative; z-index: 1; width: 100%; }

.wf-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[data-theme="light"] .wf-kicker { color: #4c6900; }

.wf-recast-player img,
.wf-recast-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-panel video { opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.wf-panel video.is-playing { opacity: 1; }

.wf-play-pill {
  position: absolute;
  z-index: 2;
  inset: auto 0.85rem 0.85rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.95rem;
  border-radius: 999px;
  color: #f5f5f7;
  font-size: 0.8rem;
  font-weight: 600;
}

/* WF Step 1: Medeo-style glowing stacked preview + YooReel AI Agent Composer */
.wf-panel--spark {
  place-items: center;
  min-height: clamp(27rem, 42vw, 33rem);
  background: radial-gradient(75% 75% at 50% 50%, #151714 0%, var(--surface) 74%);
}

.wf-spark-stage {
  position: relative;
  width: min(100%, 35rem);
  padding-top: 2.8rem;
}

.wf-spark-glow {
  position: absolute;
  z-index: 0;
  inset: -18% -10% -12%;
  background:
    radial-gradient(46% 42% at 32% 46%, rgb(209 254 23 / 26%), transparent 70%),
    radial-gradient(44% 42% at 70% 52%, rgb(96 225 255 / 22%), transparent 70%),
    radial-gradient(42% 38% at 52% 28%, rgb(255 154 214 / 18%), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.wf-spark-stack {
  position: absolute;
  z-index: 1;
  inset: 0.4rem 1.4rem auto;
  height: 4.5rem;
  pointer-events: none;
}

.wf-stack-back,
.wf-stack-mid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 4.2rem;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 18%);
}

.wf-stack-back {
  top: 0;
  width: 82%;
  opacity: 0.65;
  filter: saturate(1.1);
}

.wf-stack-mid {
  top: 0.9rem;
  width: 92%;
  box-shadow: 0 -8px 24px rgb(0 0 0 / 40%);
}

.agent-composer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.05rem;
  padding: 1.15rem 1.35rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 22px;
  background: rgb(14 15 18 / 92%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    0 24px 56px rgb(0 0 0 / 62%);
}

.agent-attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.agent-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.68rem 0.22rem 0.24rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: #e4e4e7;
  font-size: 0.76rem;
  font-weight: 560;
}

.agent-attach-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

@supports (backdrop-filter: blur(1px)) {
  .agent-composer { backdrop-filter: blur(22px); }
}

.agent-composer-text {
  color: #f5f5f7;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.agent-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--brand);
  animation: agent-blink 1.05s steps(2, start) infinite;
}

@keyframes agent-blink {
  to { opacity: 0; }
}

.agent-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.agent-composer-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.agent-icon-circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  background: rgb(255 255 255 / 7%);
  color: #f5f5f7;
  font-size: 1.1rem;
  line-height: 1;
}

.agent-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  font-size: 0.76rem;
  color: #a6a6aa;
}

.agent-mode-pill span {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  white-space: nowrap;
}

.agent-mode-pill span.is-active {
  background: rgb(255 255 255 / 15%);
  color: #ffffff;
  font-weight: 620;
}

.agent-send-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #e1ff57 0%, #d1fe17 55%, #c0ee0d 100%);
  color: #111111;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    0 6px 20px rgb(209 254 23 / 36%);
  transition: transform 200ms var(--ease-expo), box-shadow 200ms ease;
}

.agent-send-circle:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgb(209 254 23 / 52%);
}

/* WF Step 2 & 3: YooReel AI Agent Chat Thread UI */
.agent-thread {
  display: grid;
  gap: 0.95rem;
}

.agent-user-turn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.agent-user-photo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 22%);
  box-shadow: 0 8px 20px rgb(0 0 0 / 35%);
}

.agent-user-bubble {
  max-width: 30rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  background: var(--surface-high);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.agent-reply-text {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

/* WF Step 2: Character Role Mapping Chat UI */
.agent-user-thumbs {
  display: flex;
  gap: 0.55rem;
}

.agent-thumb-card {
  position: relative;
  margin: 0;
  width: 68px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  background: #08080a;
}

.agent-thumb-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.agent-thumb-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.16rem 0.25rem;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 82%));
  color: #f5f5f7;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
}

.agent-map-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}

.agent-map-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.agent-map-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}

.agent-map-pair img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--border-hover);
}

.agent-map-pair img.is-target {
  border-color: var(--brand-border);
  box-shadow: 0 0 14px rgb(209 254 23 / 24%);
}

.agent-map-arrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}
[data-theme="light"] .agent-map-arrow { color: #4c6900; }

.agent-map-info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.agent-map-info strong { font-size: 0.92rem; font-weight: 650; }
.agent-map-info span { color: var(--muted); font-size: 0.8rem; }

.agent-map-badge {
  margin-left: auto;
  flex: none;
  padding: 0.24rem 0.65rem;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-glow-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 650;
}
[data-theme="light"] .agent-map-badge { color: #4c6900; }

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

.agent-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--pill-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 550;
}

.agent-status-row span.is-done {
  border-color: var(--brand-border);
  color: var(--text);
  font-weight: 620;
}

.agent-status-row em { font-style: normal; }
.wf-check { color: var(--brand); font-weight: 700; }
[data-theme="light"] .wf-check { color: #4c6900; }
.wf-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.wf-ratio-switch {
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
}

.wf-ratio-switch button {
  min-height: 30px;
  padding: 0.22rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 640;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.wf-ratio-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.agent-duration {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgb(10 11 14 / 68%);
  color: #f5f5f7;
  font-size: 0.74rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(12px);
}

/* WF Step 3: Same-Frame Before/After Comparison */
.agent-compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.agent-compare-head code {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--pill-soft);
  color: var(--brand);
  font-size: 0.84rem;
}
[data-theme="light"] .agent-compare-head code { color: #4c6900; }

.agent-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.agent-compare-grid[data-view="before"] { grid-template-columns: minmax(0, 18rem); justify-content: center; }
.agent-compare-grid[data-view="before"] .agent-compare-card--after { display: none; }
.agent-compare-grid[data-view="after"] { grid-template-columns: minmax(0, 18rem); justify-content: center; }
.agent-compare-grid[data-view="after"] .agent-compare-card--before { display: none; }

.agent-compare-card {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #08080a;
}

.agent-compare-card--after {
  border-color: var(--brand-border);
  box-shadow: 0 0 28px rgb(209 254 23 / 16%);
}

.agent-compare-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.agent-compare-card figcaption {
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(10 11 14 / 74%);
  color: #f5f5f7;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
}

.agent-compare-card--after figcaption {
  border-color: rgb(209 254 23 / 44%);
  color: var(--brand);
}

/* WF Step 4: Finished Native 9:16 720p Recast Showcase */
.wf-final-recast {
  display: grid;
  grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 2.75rem);
}

.wf-recast-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: #08080a;
  box-shadow:
    0 0 36px rgb(209 254 23 / 18%),
    0 22px 48px rgb(0 0 0 / 55%);
}

.wf-recast-meta {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.wf-recast-title {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wf-recast-sub {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 34ch;
}

.wf-recast-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf-recast-specs li {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--pill-soft);
}

.wf-recast-specs strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
[data-theme="light"] .wf-recast-specs strong { color: #4c6900; }
.wf-recast-specs span { color: var(--muted); font-size: 0.74rem; }

.wf-recast-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wf-destinations--left { justify-content: flex-start; }

.wf-destinations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.wf-destinations span {
  padding: 0.35rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--pill-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 550;
}

/* SECTION 3: 3-COLUMN 3D PERSPECTIVE BENTO GRID */
.bento-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  perspective: 1800px;
}

.bento-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  transition: transform 360ms var(--ease-expo), border-color 220ms ease;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .bento-card { transform: rotateY(2deg); }
  .bento-card:hover { transform: rotateY(0deg) translateY(-4px); border-color: var(--brand-border); }
}

.bento-ui-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.85rem 1.25rem 0;
  height: clamp(23.5rem, 30vw, 29rem);
  overflow: hidden;
  background:
    radial-gradient(75% 55% at 50% 8%, var(--brand-glow-soft), transparent 72%),
    linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 55%);
}

.bento-ui-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 7rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--surface) 62%, transparent) 52%,
    var(--surface) 100%
  );
  pointer-events: none;
}

.bento-ui-stage img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  filter: drop-shadow(0 18px 38px rgb(0 0 0 / 55%));
  transition: transform 420ms var(--ease-expo);
}

.bento-card:hover .bento-ui-stage img {
  transform: translateY(-6px) scale(1.018);
}

.bento-copy {
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem 1.75rem 1.85rem;
}

.bento-copy h3 {
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.bento-copy p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* SECTION 4: TOP 12 MOST-CREATED TEMPLATES CATALOG */
.catalog-section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--border);
}

.catalog-head {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 2.25rem;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-card a {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 240ms var(--ease-expo), border-color 180ms ease, box-shadow 220ms ease;
}
.tpl-card a:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
  box-shadow: 0 12px 30px rgb(0 0 0 / 32%);
}

.tpl-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-high);
}

.tpl-art img,
.tpl-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.tpl-art video { opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.tpl-art video.is-playing { opacity: 1; }

.tpl-play {
  position: absolute;
  z-index: 2;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #f5f5f7;
}
.tpl-card a:hover .tpl-play {
  background: var(--brand);
  border-color: rgb(242 255 168 / 80%);
  color: var(--brand-ink);
  box-shadow: 0 4px 16px rgb(209 254 23 / 40%);
}

.tpl-meta { display: grid; gap: 0.12rem; padding: 0 0.35rem 0.35rem; }
.tpl-meta strong { font-size: 0.975rem; font-weight: 650; letter-spacing: -0.015em; }
.tpl-meta span { color: var(--muted); font-size: 0.8rem; }

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.template-catalog[open] { flex-basis: 100%; }
.template-catalog summary { list-style: none; }
.template-catalog summary::-webkit-details-marker { display: none; }
.template-catalog .tpl-grid { margin-top: 1.5rem; }
.collapse-label,
.template-catalog[open] .expand-label { display: none; }
.template-catalog[open] .collapse-label { display: inline; }

/* SECTION 5: PRICING */
.pricing-section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--border);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.plan-card {
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  min-height: 16.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  transition: transform 240ms var(--ease-expo), border-color 180ms ease;
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }

.plan-card--featured {
  border-color: var(--brand-border);
  background:
    radial-gradient(80% 60% at 50% 0%, var(--brand-glow-soft), transparent 72%),
    var(--surface);
}

.plan-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.24rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.plan-tag--accent {
  background: var(--brand);
  border-color: transparent;
  color: var(--brand-ink);
}

.plan-card h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.025em; }

.plan-price { display: grid; gap: 0.1rem; }
.plan-price em { font-style: normal; color: var(--muted); font-size: 0.82rem; }
.plan-price strong { font-size: clamp(2.35rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-price span,
.plan-note,
.credits-hint { color: var(--muted); font-size: 0.875rem; }
.credits-hint { margin-top: 1rem; text-align: center; }

body:not(.js) #pricing-credits { margin-top: 1.25rem; }

.pricing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* SECTION 6: SINGLE-CARD 3D PERSPECTIVE FAQ */
.faq-section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--border);
}

.faq-perspective {
  max-width: 880px;
  margin-inline: auto;
  perspective: 1600px;
}

.faq-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
  transition: transform 360ms var(--ease-expo), border-color 200ms ease;
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .faq-card { transform: rotateX(1.2deg); }
  .faq-card:hover,
  .faq-card:focus-within { transform: rotateX(0deg); border-color: var(--border-hover); }
}

.faq-row { border-top: 1px solid var(--border); }
.faq-row:first-child { border-top: 0; }

.faq-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.75rem;
  list-style: none;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: color 160ms ease;
}

.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary:hover { color: var(--brand); }
[data-theme="light"] .faq-row summary:hover { color: #4c6900; }

.faq-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease-expo);
  content: "";
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-row[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.faq-row[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

.faq-row p {
  padding: 0 1.75rem 1.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 68ch;
}
.faq-row p a { color: var(--brand); text-decoration: underline; text-underline-offset: 0.2em; }
[data-theme="light"] .faq-row p a { color: #4c6900; }

/* ================================================================
   SECTION 7: BOTTOM CTA + 3D CONCAVE CYLINDRICAL ROTATING BANNER
   (Medeo Image 6 faithful curved cinema-drum carousel)
   ================================================================ */
.bottom-cta {
  padding-block: clamp(4.75rem, 8.5vw, 7.25rem);
  background: var(--band-low);
  border-top: 1px solid var(--border);
  overflow: clip;
}

.bottom-cta-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.6rem;
  width: 100%;
}

.cta-mark-link { display: inline-block; }
.cta-mark {
  display: block;
  border-radius: 18px;
  transition: transform 900ms var(--ease-spring);
}
.cta-mark-link:hover .cta-mark { transform: rotate(-360deg); }

.concave-stage {
  position: relative;
  width: 100%;
  height: clamp(14.5rem, 23vw, 21rem);
  perspective: 760px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.concave-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.concave-tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(15rem, 21vw, 23.5rem);
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 44px rgb(0 0 0 / 50%);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: border-color 200ms ease, box-shadow 220ms ease;
}

.concave-tile:hover {
  border-color: var(--brand-border);
  box-shadow: 0 0 32px rgb(209 254 23 / 24%), 0 22px 48px rgb(0 0 0 / 60%);
}

.concave-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No-JS graceful horizontal strip fallback */
body:not(.js) .concave-stage { height: auto; perspective: none; }
body:not(.js) .concave-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 2rem;
}
body:not(.js) .concave-tile {
  position: static;
  flex: none;
  transform: none;
}

.cta-download-row {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}

/* SECTION 8: LIFTED CHARCOAL MULTI-COLUMN FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand { display: grid; align-content: start; gap: 0.85rem; }
.footer-brand p { max-width: 22rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.footer-col h3 {
  margin-bottom: 0.85rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a { color: var(--muted); font-size: 0.875rem; transition: color 160ms ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.25rem;
  border-top: 1px solid var(--border);
  color: var(--weak);
  font-size: 0.8125rem;
}

.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom nav a:hover { color: var(--text); }

/* ================================================================
   DEDICATED PRICING PAGE (Higgsfield.ai dark acid-lime architecture)
   ================================================================ */
.main-nav a[aria-current="page"] { color: var(--brand); font-weight: 650; }
[data-theme="light"] .main-nav a[aria-current="page"] { color: #4c6900; }

.hf-pricing-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(7rem, 11vh, 9rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.hf-grid-ambient {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 36rem;
  background:
    radial-gradient(55% 48% at 50% 6%, rgb(209 254 23 / 14%), transparent 72%),
    linear-gradient(90deg, rgb(209 254 23 / 4%) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgb(209 254 23 / 4%) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
  pointer-events: none;
}

.hf-pricing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.hf-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[data-theme="light"] .hf-eyebrow { color: #4c6900; }

.hf-pricing-title {
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hf-pricing-sub {
  max-width: 38rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hf-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hf-jump-pills .pill-chip {
  display: inline-flex;
  align-items: center;
}

.hf-jump-pills .pill-chip[aria-current="true"] {
  background: linear-gradient(180deg, #daf945 0%, #d1fe17 100%);
  color: var(--brand-ink);
  font-weight: 700;
}

/* 3-Column Higgsfield Plan Cards */
.hf-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.35rem;
  padding-top: 2rem;
}

.hf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  overflow: visible;
  transition: transform 260ms var(--ease-expo), border-color 200ms ease;
}

.hf-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }

.hf-card--featured {
  border-color: rgb(209 254 23 / 54%);
  box-shadow:
    0 -14px 48px rgb(209 254 23 / 24%),
    0 0 44px rgb(209 254 23 / 12%),
    0 24px 52px rgb(0 0 0 / 48%);
}

/* Higgsfield signature diffused backlight halo above featured card top edge */
.hf-top-glow-label {
  position: absolute;
  inset: -2.25rem 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  pointer-events: none;
}

.hf-top-glow-aura {
  position: absolute;
  inset: -0.6rem 8% -1.2rem;
  background: radial-gradient(62% 85% at 50% 92%, rgb(209 254 23 / 54%) 0%, rgb(209 254 23 / 18%) 48%, transparent 78%);
  filter: blur(18px);
  z-index: 0;
}

.hf-top-glow-text {
  position: relative;
  z-index: 1;
  color: #f5f5f7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgb(0 0 0 / 80%);
  white-space: nowrap;
}

.hf-top-glow-text strong {
  color: var(--brand);
  font-weight: 700;
  margin-left: 0.2rem;
}
[data-theme="light"] .hf-top-glow-text { color: var(--text); text-shadow: none; }
[data-theme="light"] .hf-top-glow-text strong { color: #4c6900; }

.hf-card-head {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: 25px 25px 20px 20px;
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  border-bottom: 1px solid var(--border);
}

.hf-card-head--slate {
  background: linear-gradient(160deg, rgb(255 255 255 / 9%), rgb(209 254 23 / 5%) 100%);
}

/* Signature Higgsfield Acid-Lime Featured Header Box */
.hf-card-head--lime {
  background: linear-gradient(155deg, #d7ff36 0%, #c8f511 52%, #7ba308 100%);
  color: #111111;
  border-bottom-color: rgb(17 17 17 / 12%);
}

.hf-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hf-card-title-row h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hf-badge {
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.hf-badge--muted { background: var(--pill-soft); color: var(--muted); border: 1px solid var(--border); }
.hf-badge--dark { background: rgb(17 17 17 / 16%); color: #111111; }
.hf-badge--lime { background: var(--brand-glow-soft); color: var(--brand); border: 1px solid var(--brand-border); }
[data-theme="light"] .hf-badge--lime { color: #4c6900; }

.hf-card-tagline {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.hf-card-head--lime .hf-card-tagline { color: rgb(17 17 17 / 78%); }

.hf-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin-top: 0.25rem;
}

.hf-price-line del {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.52;
  font-variant-numeric: tabular-nums;
}

.hf-price-line strong {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.hf-price-line span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hf-price-line--dark span { color: rgb(17 17 17 / 78%); font-weight: 600; }

.hf-card-cta {
  width: 100%;
  margin-top: 0.35rem;
}

.hf-card-cta--white {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgb(255 255 255 / 90%);
  box-shadow: 0 8px 22px rgb(0 0 0 / 22%);
}
.hf-card-cta--white:hover { transform: translateY(-1px); background: #f8f9fa; }

.hf-save-pill {
  font-style: normal;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: #ff005b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.hf-promo-note {
  font-size: 0.74rem;
  color: rgb(17 17 17 / 74%);
  text-align: center;
  font-weight: 600;
}

.hf-card-body {
  display: grid;
  align-content: start;
  gap: 1.35rem;
  padding: 1.35rem 1.4rem 1.6rem;
  flex: 1;
}

/* Higgsfield Credits Tree Readout */
.hf-credits-tree {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.hf-credits-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
}

.hf-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.hf-dot--lime { background: var(--brand); box-shadow: 0 0 10px rgb(209 254 23 / 55%); }
.hf-dot--muted { background: var(--weak); }

.hf-credits-tree ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0 0 0 0.25rem;
  list-style: none;
}

.hf-credits-tree li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hf-credits-tree li::before {
  content: "└";
  position: absolute;
  left: 0.1rem;
  color: var(--weak);
}

.hf-feature-group h3 {
  margin-bottom: 0.7rem;
  color: var(--weak);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hf-check-list {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-check-list li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.hf-check-list li.is-yes::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

.hf-check-list li.is-lime::before { color: var(--brand); }
[data-theme="light"] .hf-check-list li.is-lime::before { color: #4c6900; }

.hf-check-list li.is-no { color: var(--weak); }
.hf-check-list li.is-no::before {
  content: "×";
  position: absolute;
  left: 0.05rem;
  color: var(--weak);
  font-weight: 700;
}

.hf-disclaimer {
  margin-top: 1.65rem;
  color: var(--weak);
  font-size: 0.8rem;
  text-align: center;
}

/* One-Time Credit Packs Grid */
.hf-packs-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--border);
}

.hf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hf-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-pack-card {
  display: grid;
  align-content: space-between;
  gap: 1.1rem;
  padding: 1.45rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 240ms var(--ease-expo), border-color 180ms ease;
}

.hf-pack-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }

.hf-pack-card--featured {
  border-color: var(--brand-border);
  background:
    radial-gradient(85% 65% at 50% 0%, var(--brand-glow-soft), transparent 72%),
    var(--surface);
}

.hf-pack-tier {
  display: inline-flex;
  width: fit-content;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.hf-pack-tier--lime { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.hf-pack-tier--outline { border-color: var(--brand-border); color: var(--brand); }
[data-theme="light"] .hf-pack-tier--outline { color: #4c6900; }

.hf-pack-credits {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.hf-pack-credits strong { font-size: 2.05rem; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hf-pack-credits span { color: var(--brand); font-size: 0.88rem; font-weight: 700; }
[data-theme="light"] .hf-pack-credits span { color: #4c6900; }

.hf-pack-price { display: grid; gap: 0.15rem; }
.hf-pack-price strong { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-pack-price span { color: var(--muted); font-size: 0.78rem; }
.hf-pack-perk { color: var(--weak); font-size: 0.78rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

.hf-credits-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.hf-rule-item {
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--pill-soft);
}
.hf-rule-item strong { font-size: 0.92rem; font-weight: 700; }
.hf-rule-item p { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

/* Compare Table */
.hf-compare-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--border);
}

.hf-table-wrap {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.hf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 40rem;
}

.hf-table th,
.hf-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hf-table thead th {
  font-size: 0.96rem;
  font-weight: 700;
  vertical-align: top;
}

.hf-table thead th span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.hf-table tbody th { font-weight: 600; color: var(--text); }
.hf-table tbody td { color: var(--muted); }
.hf-table tbody tr:last-child th,
.hf-table tbody tr:last-child td { border-bottom: 0; }

.hf-table .is-featured {
  background: rgb(209 254 23 / 5%);
  color: var(--text);
}
.hf-table thead .is-featured { color: var(--brand); }
[data-theme="light"] .hf-table thead .is-featured { color: #4c6900; }

@media (max-width: 1024px) {
  .hf-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hf-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-credits-rules { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .hf-pack-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 404 PAGE */
.landing-not-found {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  text-align: center;
  padding-block: 4rem;
}
.landing-not-found .landing-logo { margin-inline: auto; }
.landing-not-found h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.landing-not-found p { max-width: 34rem; margin-inline: auto; color: var(--muted); }
.landing-not-found .landing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.landing-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.65rem 1.35rem; border-radius: var(--radius-btn); font-weight: 650; }
.landing-pill--primary { background: var(--brand); color: var(--brand-ink); }
.landing-pill--subtle { background: var(--pill-soft); border: 1px solid var(--border); }

/* NATIVE DIALOGS (closedby="any" + CSS scroll containment + top-layer animation) */
.sample-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--text);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 210ms;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .sample-dialog { transform: scale(0.96); }
}

.sample-dialog[open] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sample-dialog[open] { transform: scale(1); }
}
@starting-style { .sample-dialog[open] { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @starting-style { .sample-dialog[open] { transform: scale(0.96); } }
}

.sample-dialog:modal { overscroll-behavior: contain; }
.sample-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(0 0 0 / 0%);
  transition-property: background-color, display, overlay;
  transition-duration: 210ms;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
.sample-dialog[open]::backdrop { background: rgb(0 0 0 / 82%); }
@starting-style { .sample-dialog[open]::backdrop { background: rgb(0 0 0 / 0%); } }

.sample-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.sample-dialog > header form { margin: 0; }
.sample-dialog > header h2 { font-size: 1.2rem; letter-spacing: -0.02em; }
.sample-dialog > header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
}
.sample-dialog video { display: block; width: 100%; height: auto; max-height: min(68dvh, 36rem); border-radius: 18px; object-fit: contain; background: #000; }
.sample-dialog video[data-ratio="landscape"] { aspect-ratio: 16 / 9; }
.sample-dialog video[data-ratio="portrait"] { aspect-ratio: 9 / 16; width: auto; max-width: 100%; margin-inline: auto; }
.sample-dialog > footer { margin-top: 0.9rem; text-align: right; }

.download-dialog { width: min(25rem, calc(100% - 2rem)); padding: 1.25rem 1.35rem 1.5rem; text-align: center; }
.download-dialog > header { text-align: left; }
.download-dialog > p { color: var(--muted); font-size: 0.92rem; }
.download-qr { width: 13.5rem; max-width: 100%; margin: 1.35rem auto; }
.download-qr img { display: block; width: 100%; height: auto; border-radius: 12px; image-rendering: pixelated; }
.download-qr figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.78rem; }
.download-note { margin-top: 0.85rem; color: var(--weak); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .workflow-split { grid-template-columns: minmax(0, 1fr); }
  .workflow-rail { position: static; }
  .bento-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid,
  .plan-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-final-recast { grid-template-columns: minmax(0, 1fr); }
  .wf-recast-player { max-width: 16rem; margin-inline: auto; }
}

@media (max-width: 680px) {
  .header-inner { grid-template-columns: auto 1fr; padding-block: 0.5rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 0.72rem; font-size: 0.82rem; overflow-x: auto; scrollbar-width: none; }
  .mega-inner { grid-template-columns: minmax(0, 1fr); }
  .mega-preview { display: none; }
  .hero-section { padding-top: 7.5rem; }
  .recipe-card--wide { width: 20rem; }
  .recipe-card--tall { width: 12.5rem; }
  .recipe-card { height: 17.5rem; }
  .recipe-suffix,
  .recipe-card--tall .recipe-prefix { display: none; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-row summary { padding: 1.15rem 1.25rem; }
  .faq-row p { padding: 0 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .recipe-track { animation: none !important; }
  .hero-phrase,
  .brand-mark,
  .cta-mark,
  .bento-card,
  .faq-card,
  .faq-icon::before,
  .faq-icon::after,
  .sample-dialog,
  .sample-dialog::backdrop { transition: none !important; transform: none !important; filter: none !important; }
}
