:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --ink: #0d0d0d;
  --muted: #8e8e93;
  --line: #e5e5ea;
  --composer-bg: #ffffff;
  --composer-shadow: 0 2px 12px rgba(15, 15, 20, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --accent: #1a73e8;
  --accent-ink: #ffffff;
  --bubble-assistant: transparent;
  --bubble-user: #f0f0f2;
  --chip-bg: #ffffff;
  --chip-hover: #f3f3f5;
  --chip-border: #dadadd;
  --radius-pill: 999px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --composer-max: 760px;
  --thread-max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -10%, #f4f6fb 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.app {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 160px;
  min-height: 0;
  overflow: auto;
  scroll-behavior: smooth;
}

.app.setup-lifted .stage {
  justify-content: flex-start;
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: 120px;
}

.app.setup-lifted .greeting {
  display: none;
}

.app.setup-lifted .hero {
  gap: 12px;
  transition: gap 0.25s ease;
}

.app.setup-lifted .setup {
  gap: 14px;
}

/* --- Hero + setup --- */
.hero {
  width: min(100%, var(--composer-max));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 8px;
}

.brand-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-bottom: 4px;
}

.brand-mark {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.greeting {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.setup {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.history-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--chip-border);
  border-radius: 50%;
  background: #fff;
  color: #5f6368;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 15, 20, 0.06);
  transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  animation: rise 0.35s ease both;
  flex-shrink: 0;
}

.history-toggle[hidden] {
  display: none !important;
}

.history-toggle:hover {
  background: #f3f8ff;
  color: #1a73e8;
  border-color: #b7d0f8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
  transform: translateY(-2px);
}

.history-toggle:active {
  transform: translateY(0) scale(0.96);
}

.history-toggle.is-open svg {
  transform: rotate(180deg);
}

.history-toggle svg {
  transition: transform 0.25s ease;
}

.setup-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 0.35s ease both;
  overflow: visible;
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.42s ease,
    opacity 0.32s ease,
    transform 0.42s ease,
    margin 0.42s ease,
    padding 0.42s ease,
    gap 0.42s ease;
}

.setup-block.is-collapsed {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-18px);
  margin: 0;
  padding: 0;
  gap: 0;
  pointer-events: none;
}

.setup-block.upload-root {
  overflow: visible;
  max-height: none;
  margin-top: 8px;
}

.upload-open-error {
  margin: 0;
  color: #b42318;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.setup-block[data-step-id="assets"],
.setup-block.upload-root {
  scroll-margin-top: 120px;
  scroll-margin-bottom: 140px;
}

.setup-question {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.setup-answer {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #174ea6;
}

.thinking-block {
  min-height: 36px;
}

.thinking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.thinking-label {
  letter-spacing: -0.01em;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 14px;
}

.thinking-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa0a6;
  display: block;
  animation: thinking-bounce 1.05s ease-in-out infinite;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinking-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* --- Upload --- */
.upload-root {
  width: 100%;
  gap: 16px;
  padding-top: 4px;
  padding-bottom: 24px;
}

.upload-workspace {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: start;
}

.upload-workspace.is-ad {
  grid-template-columns: 118px 1fr;
  width: min(100%, 720px);
}

.upload-workspace.is-ad .side-tab {
  min-height: 72px;
  padding: 10px 8px;
}

.upload-side-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  position: sticky;
  top: 8px;
}

.side-tab {
  appearance: none;
  border: 1px solid var(--chip-border);
  background: #fff;
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 88px;
  justify-content: center;
}

.side-tab-label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}

.side-tab-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f0f2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.side-tab:hover {
  background: #f7f9fc;
  border-color: #c8c8cc;
}

.side-tab.is-active {
  background: #eef4ff;
  border-color: #b7d0f8;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.1);
}

.side-tab.is-active .side-tab-label {
  color: #174ea6;
}

.side-tab.is-active .side-tab-count {
  background: #dbe8ff;
  color: #174ea6;
}

.upload-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.upload-panels {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.upload-panel {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  animation: rise 0.3s ease both;
}

.upload-panel.is-active {
  display: flex;
}

.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #174ea6;
  background: #eef4ff;
  border: 1px solid #b7d0f8;
  border-radius: 999px;
  padding: 4px 10px;
}

.upload-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.upload-drop {
  width: 100%;
  border: 1.5px dashed #c9c9ce;
  border-radius: 18px;
  background: #fafafa;
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-drop-compact {
  padding: 14px 16px;
  border-radius: 14px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-drop-compact .upload-drop-sub {
  font-size: 0.75rem;
}

.upload-drop:hover,
.upload-drop.is-drag {
  border-color: #1a73e8;
  background: #f3f8ff;
}

.upload-drop-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.upload-drop-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-rail-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.upload-rail-wrap.is-character {
  width: 100%;
  padding: 0;
}

.loc-card-caption {
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.loc-card .char-card-media {
  aspect-ratio: 1;
}

@media (max-width: 560px) {
  .upload-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .upload-side-nav {
    flex-direction: row;
    position: static;
  }

  .side-tab {
    flex: 1;
    min-height: 64px;
    flex-direction: row;
    padding: 12px;
  }

  .char-card {
    flex: 0 0 118px;
    width: 118px;
    border-radius: 14px;
  }

  .char-card-media {
    aspect-ratio: 1 / 1;
  }

  .char-card-name {
    padding: 6px 7px 7px;
    gap: 2px;
    font-size: 0.65rem;
  }

  .char-card-name .upload-name-input {
    padding: 5px 7px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .char-card-index {
    left: 6px;
    bottom: 6px;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .upload-grid-character {
    padding: 6px 36px 10px;
    gap: 8px;
  }
}

.rail-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--chip-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 15, 20, 0.12);
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.rail-nav.prev {
  left: 0;
}

.rail-nav.next {
  right: 0;
}

.rail-nav:hover:not(:disabled) {
  background: #f3f8ff;
  color: #1a73e8;
  border-color: #b7d0f8;
}

.rail-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.rail-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.rail-nav[hidden] {
  display: none !important;
}

.upload-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.upload-grid-character {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 40px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 40px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5c5ca transparent;
  cursor: grab;
}

.upload-grid-character:active {
  cursor: grabbing;
}

.upload-grid-character::-webkit-scrollbar {
  height: 6px;
}

.upload-grid-character::-webkit-scrollbar-thumb {
  background: #c5c5ca;
  border-radius: 999px;
}

.char-card {
  flex: 0 0 148px;
  width: 148px;
  height: fit-content;
  align-self: flex-start;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 15, 20, 0.06);
  display: flex;
  flex-direction: column;
  animation: rise 0.3s ease both;
  touch-action: manipulation;
}

.char-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #ececf0;
  flex: 0 0 auto;
}

.char-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-card-index {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.char-card-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 10px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  flex: 0 0 auto;
  margin: 0;
}

.char-card-name .upload-name-input {
  padding: 7px 9px;
  font-size: 0.84rem;
  border-radius: 10px;
  margin: 0;
}

.upload-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.upload-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e8ea;
  flex-shrink: 0;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-name-input {
  width: 100%;
  border: 1px solid var(--chip-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.upload-name-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.upload-name-input::placeholder {
  color: var(--muted);
  font-weight: 450;
}

.upload-tip {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.4;
}

.upload-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-card .upload-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 6px;
  font-size: 0.65rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-card .upload-remove,
.upload-card .upload-remove,
.upload-thumb .upload-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.app.phase-chat .stage {
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 36px;
  padding-bottom: 12px;
}

.app.phase-chat .hero {
  display: flex;
  width: 100%;
  max-width: none;
  gap: 0;
  padding: 0 12px 8px;
  margin-bottom: 12px;
}

.app.phase-chat .hero .greeting,
.app.phase-chat .hero .history-toggle,
.app.phase-chat .hero .setup {
  display: none !important;
}

.app.phase-chat .brand-slot {
  min-height: 40px;
  margin-bottom: 0;
}

.app.phase-chat .chat-layout {
  padding-top: 8px;
  margin-left: auto;
  margin-right: auto;
}

.app.phase-chat .thread {
  width: min(100%, var(--thread-max));
  margin: 0;
  min-height: 240px;
  padding-top: 56px;
}

.chat-layout {
  width: fit-content;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(280px, var(--thread-max));
  gap: 32px;
  align-items: start;
  padding: 0 20px 16px;
  justify-content: center;
}

.brief-panel {
  position: sticky;
  top: 12px;
  justify-self: stretch;
  width: 100%;
}

.brief-card {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 22px 22px 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.04);
  text-align: left;
  width: 100%;
  overflow: hidden;
}

.brief-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8 0%, #5b9df5 55%, transparent 100%);
  opacity: 0.9;
}

.brief-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.brief-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a73e8;
}

.brief-subtitle {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8b90a0;
}

.brief-card-body {
  display: grid;
  grid-template-columns: minmax(140px, 168px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.brief-col-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.brief-col-assets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  height: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-left: 16px;
  padding-right: 2px;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.brief-col-assets::-webkit-scrollbar {
  width: 6px;
}

.brief-col-assets::-webkit-scrollbar-thumb {
  background: #c9d0dc;
  border-radius: 999px;
}

.brief-col-assets::-webkit-scrollbar-track {
  background: transparent;
}

.brief-acc {
  width: 100%;
  border: 1px solid #e8ebf1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.brief-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: #f8fafc;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.brief-acc.is-open .brief-acc-toggle {
  background: #eef4ff;
}

.brief-acc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brief-acc-chevron {
  color: #8b90a0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brief-acc.is-open .brief-acc-chevron {
  transform: rotate(180deg);
  color: #174ea6;
}

.brief-acc-body {
  padding: 10px 12px 12px;
  border-top: 1px solid #eef1f6;
}

.brief-asset-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.brief-asset-list.is-location {
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: none;
}

.brief-asset.is-faded {
  opacity: 0.55;
}

.brief-more {
  appearance: none;
  width: 100%;
  margin-top: 8px;
  border: 1px dashed #c9d4ea;
  background: #f7f9fd;
  color: #174ea6;
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.brief-more:hover {
  background: #eef4ff;
  border-color: #b7d0f8;
}

.brief-more.is-less {
  color: #4b5563;
  border-color: #d5dae3;
  background: #f8fafc;
}

.brief-preview {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #e8eaf0;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.brief-preview.frame-portrait {
  aspect-ratio: 9 / 14;
  max-height: 210px;
  width: 100%;
  margin: 0;
}

.brief-preview.frame-landscape {
  aspect-ratio: 16 / 9;
  max-height: 110px;
}

.brief-preview img,
.brief-preview-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brief-preview.is-asset-cover {
  aspect-ratio: 9 / 16;
  max-height: 240px;
}

.brief-preview.is-asset-cover img {
  object-fit: cover;
  object-position: center 18%;
}

.brief-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brief-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brief-row.stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.brief-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.brief-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: #6b7280;
}

.brief-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 0.72rem;
  font-weight: 700;
}

.brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brief-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e6ef;
  font-size: 0.82rem;
  font-weight: 650;
  color: #1f2430;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.brief-chip.soft {
  background: #eef4ff;
  border-color: #c9dbf8;
  color: #174ea6;
}

.brief-chip.mute {
  background: transparent;
  border-style: dashed;
  color: #9aa0ae;
  font-weight: 500;
  box-shadow: none;
}

.brief-asset {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brief-asset:focus-within {
  border-color: #b7d0f8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.brief-asset-list.is-location .brief-asset {
  width: 100%;
  grid-template-columns: 56px 1fr;
  justify-items: stretch;
  padding: 10px;
  gap: 12px;
}

.brief-asset-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eaf0;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.brief-asset-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.brief-asset:hover .brief-asset-remove,
.brief-asset:focus-within .brief-asset-remove {
  opacity: 1;
}

.brief-asset-remove:hover {
  background: #c62828;
}

.brief-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 10px;
  border: 1px dashed #c9d4ea;
  border-radius: 12px;
  background: #f7f9fd;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.brief-drop:hover,
.brief-drop.is-drag {
  background: #eef4ff;
  border-color: #7eb0f0;
}

.brief-drop-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #174ea6;
}

.brief-drop-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8b90a0;
}

.brief-asset-list.is-location .brief-asset-thumb {
  width: 56px;
  height: 56px;
}

.brief-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brief-asset-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #8b90a0;
  letter-spacing: 0.01em;
}

.brief-asset-name input {
  width: 100%;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  padding: 11px 12px;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2430;
  background: #f7f8fb;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.brief-asset-name input::placeholder {
  color: #a0a6b4;
  font-weight: 500;
}

.brief-asset-name input:focus {
  border-color: #1a73e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.brief-asset-caption {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5b6475;
}

@media (max-width: 760px) {
  .chat-layout {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px 12px;
  }

  .app.phase-chat .thread {
    width: 100%;
    padding-top: 24px;
  }

  .brief-panel {
    position: static;
    max-width: 100%;
  }

  .brief-card {
    padding: 12px;
    border-radius: 18px;
  }

  .brief-card-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .brief-subtitle {
    font-size: 0.74rem;
  }

  .brief-card-body {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }

  .brief-col-assets {
    padding-left: 10px;
    gap: 8px;
  }

  .brief-preview.frame-portrait {
    max-height: 100px;
  }

  .brief-preview.frame-landscape {
    max-height: 56px;
  }

  .brief-asset-list {
    gap: 7px;
  }

  .brief-asset {
    grid-template-columns: 40px 1fr;
    gap: 8px;
    padding: 6px;
    border-radius: 12px;
  }

  .brief-asset-list.is-location .brief-asset {
    grid-template-columns: 40px 1fr;
    padding: 6px;
    gap: 8px;
  }

  .brief-asset-thumb,
  .brief-asset-list.is-location .brief-asset-thumb {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .brief-asset-name {
    gap: 2px;
    font-size: 0.64rem;
  }

  .brief-asset-name input {
    padding: 7px 8px;
    min-height: 34px;
    font-size: 0.78rem;
    border-radius: 9px;
  }

  .brief-kicker {
    font-size: 0.66rem;
  }

  .brief-rows {
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .brief-card-body {
    grid-template-columns: 1fr;
  }

  .brief-col-assets {
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-left: 0;
    padding-top: 10px;
    height: auto;
    min-height: 0;
    max-height: min(280px, 42vh);
  }

  .brief-preview.frame-portrait {
    max-width: 90px;
    margin: 0 auto;
  }
}

/* --- Thread --- */
.thread {
  width: min(100%, var(--thread-max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 12px;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.msg-bubble {
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 450;
  max-width: 100%;
  white-space: pre-wrap;
}

.msg.user {
  align-items: flex-end;
}

.msg.user .msg-bubble {
  background: var(--bubble-user);
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  max-width: min(100%, 520px);
}

.msg.assistant .msg-bubble {
  padding: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

#mode-chip[hidden], #mode-menu[hidden] { display: none !important; }

.choice-duration { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 94px; }
.choice-duration small { font-size: 0.72rem; font-weight: 700; color: #2460b4; }
.choice-duration:disabled small { color: inherit; }
.setup-duration-meta { margin: 12px auto 0; text-align: center; color: var(--muted); font-size: 0.84rem; }
.setup-duration-meta a { color: #1d5cdb; font-weight: 700; text-decoration: none; }
.setup-duration-meta a:hover { text-decoration: underline; }

.setup-duration-warning:not([hidden]) {
  width: fit-content;
  max-width: min(100%, 560px);
  margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid #f4d7b7;
  border-radius: 12px;
  background: #fff8ed;
  color: #88510b;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.delegate-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 4px;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.choice.choice-delegate {
  width: min(100%, 360px);
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border-color: #b7d0f8;
  background: #f7faff;
  color: #174ea6;
  font-weight: 650;
}

.choice.choice-delegate:hover:not(:disabled) {
  background: #eef4ff;
  border-color: #9ec2f5;
}

.choice.choice-delegate.picked {
  background: #eef4ff;
  border-color: #b7d0f8;
  color: #174ea6;
}

.choices-visual {
  align-items: stretch;
  gap: 16px;
  width: min(100%, 480px);
  justify-content: center;
}

.choice.choice-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 1 1 0;
  max-width: none;
  width: 0; /* equal flex columns */
  min-width: 0;
  padding: 14px 12px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--chip-border);
  box-sizing: border-box;
}

.choice-visual-stage {
  width: 100%;
  height: 156px;
  display: grid;
  place-items: center;
  background: #f4f4f6;
  border-radius: 14px;
  border: 1px solid #e6e6ea;
  overflow: hidden;
}

.choice-visual-frame {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 6px 16px rgba(15, 15, 20, 0.1);
}

.choice-visual.frame-portrait .choice-visual-frame {
  height: 140px;
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: 100%;
}

.choice-visual.frame-landscape .choice-visual-frame {
  width: calc(100% - 16px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 0;
}

.choice-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.choice-visual-label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.choice.choice-visual.picked {
  background: #eef4ff;
  border-color: #b7d0f8;
}

.choice.choice-visual.picked .choice-visual-label {
  color: #174ea6;
}

.choice.choice-visual:hover:not(:disabled) {
  background: #fafafa;
  border-color: #c8c8cc;
}

.choice.choice-visual.picked:hover:not(:disabled) {
  background: #eef4ff;
  border-color: #b7d0f8;
}

.choice.is-leaving {
  opacity: 0;
  transform: scale(0.92) translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.choices.is-single {
  min-height: 0;
}

.choice {
  appearance: none;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, opacity 0.2s ease;
}

.setup-block[data-step-id="type"] .choices {
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 420px);
  margin-inline: auto;
  gap: 10px;
}

.setup-block[data-step-id="type"] .choice {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.98rem;
  font-weight: 650;
  text-align: center;
  line-height: 1.3;
}

.choice:hover:not(:disabled) {
  background: var(--chip-hover);
  border-color: #c8c8cc;
}

.choice:active:not(:disabled) {
  transform: scale(0.98);
}

.choice:disabled {
  opacity: 0.45;
  cursor: default;
}

.choice.picked {
  background: #eef4ff;
  border-color: #b7d0f8;
  color: #174ea6;
  opacity: 1;
}

/* --- Composer --- */
.composer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding: 8px 16px 18px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 28%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.composer {
  position: relative;
  width: min(100%, var(--composer-max));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 10px;
  background: var(--composer-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--composer-shadow);
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.composer.is-locked {
  opacity: 0.72;
}

.composer.is-ready {
  opacity: 1;
  box-shadow: 0 4px 18px rgba(26, 115, 232, 0.12), 0 0 0 1px rgba(26, 115, 232, 0.18);
}

.composer.is-reveal,
.composer-wrap.is-reveal .composer {
  animation: composer-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.composer-wrap.is-reveal .composer-hint {
  animation: composer-hint-in 0.5s ease 0.12s both;
  color: #174ea6;
  font-weight: 650;
}

@keyframes composer-reveal {
  from {
    opacity: 0.35;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes composer-hint-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.composer-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.98rem;
  padding: 10px 6px;
}

.composer-input::placeholder {
  color: var(--muted);
}

.composer-input:disabled {
  cursor: not-allowed;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn:disabled,
.mode-chip:disabled,
.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mode-menu { position: absolute; right: 54px; bottom: calc(100% + 8px); z-index: 30; min-width: 205px; padding: 6px; background: #fff; border: 1px solid #dce3ef; border-radius: 12px; box-shadow: 0 12px 30px #15223b25; }
.mode-menu[hidden] { display: none; }
.mode-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.mode-menu button:hover, .mode-menu button[aria-pressed="true"] { background: #edf4ff; color: #1658c5; }

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 4px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.send-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.15s ease;
}

.send-btn:not(:disabled):hover {
  background: #1558c0;
}

.send-btn:not(:disabled):active {
  transform: scale(0.96);
}

.composer-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 560px) {
  .mode-chip {
    display: inline-flex;
    font-size: .72rem;
  }

  .page-home .app,
  .page-home .stage {
    width: 100%;
    min-width: 0;
  }

  .page-home .composer-wrap {
    width: 100%;
    min-width: 0;
    padding: 8px 26px 36px;
  }

  .page-home .composer {
    width: min(100%, 420px);
    min-width: 0;
  }

  .stage {
    padding-top: 40px;
  }

  .app.setup-lifted .stage {
    padding-top: 36px;
  }

  .brand-slot {
    min-height: 32px;
    margin-bottom: 8px;
  }

  .brand-mark {
    font-size: 0.98rem;
  }

  .hero {
    gap: 18px;
    padding-top: 4px;
  }

  .greeting {
    font-size: 1.25rem;
    padding: 0 8px;
  }

  .composer {
    padding-left: 6px;
  }
}

/* --- JSON debug popup (generation brief/result) --- */
.json-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px 14px;
}

.json-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.json-popup-panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(82vh, 780px);
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #e8eef8;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.json-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
}

.json-popup-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.json-popup-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.json-popup-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.json-popup-body {
  margin: 0;
  padding: 14px 16px 18px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre;
  flex: 1;
  min-height: 0;
}

.json-popup-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
}

.json-popup-status {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.json-popup-status.is-busy {
  color: #93c5fd;
}

.json-popup-status.is-ok {
  color: #86efac;
}

.json-popup-status.is-error {
  color: #fca5a5;
}

.json-popup-story-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0f172a;
  background: #e2e8f0;
  cursor: pointer;
}

.json-popup-story-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.json-popup-story-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
body.auth-locked {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
}

.auth-modal {
  position: relative;
  width: min(100%, 420px);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 28px 26px 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 60px rgba(12, 20, 40, 0.28),
    0 8px 20px rgba(12, 20, 40, 0.12);
  animation: authRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
  z-index: 1;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-close:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.auth-modal-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(closest-side, rgba(26, 115, 232, 0.16), transparent 70%);
  pointer-events: none;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-brand {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
}

.auth-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.auth-tagline {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #eef1f6;
  border-radius: 14px;
  margin-bottom: 18px;
  position: relative;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tab.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.auth-form.is-active {
  display: flex;
  animation: authRise 0.28s ease both;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #6b7280;
}

.auth-field input {
  width: 100%;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  padding: 13px 14px;
  min-height: 48px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14);
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #2b7de9 0%, #1a73e8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(26, 115, 232, 0.32);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: #9aa0ae;
}

@media (max-width: 560px) {
  .auth-modal {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }
}

/* --- Site header (Jinja include) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-brand img { display: block; width: 175px; height: auto; }
.site-brand .brand-light-logo { display: none; }

.site-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-link {
  position: relative;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-link:hover {
  color: #111827;
  background: transparent;
}

.site-link.is-active {
  color: #111827;
}

.site-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #1a73e8;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 50%;
  background: #f6f9ff;
  color: #244e8d;
  cursor: pointer;
}
.theme-toggle:hover { background: #eaf2ff; border-color: #a9c3eb; }
.theme-toggle:focus-visible { outline: 3px solid #80adf4; outline-offset: 2px; }
.theme-toggle .theme-icon-sun { display: none; }

.site-link-quiet {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 8px 10px;
}

.site-link-quiet:hover,
.site-link-quiet.is-active {
  color: #111827;
}

.site-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.site-cta:hover {
  background: #1a73e8;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid #b9cbea;
  border-radius: 10px;
  background: #f6f9ff;
  color: #14294a;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #14294a;
  border-radius: 2px;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  min-width: 32px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.lang-btn:hover:not(.is-active) {
  color: #111827;
  background: transparent;
}

.page-main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.page-shell {
  text-align: left;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  padding: 40px 16px;
}

.auth-page-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 28px 24px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-tabs a.auth-tab {
  text-align: center;
  text-decoration: none;
  display: grid;
  place-items: center;
}

.page-home .brand-slot {
  display: none;
}

.page-home .stage {
  padding-top: 28px;
}

.page-home .app {
  margin-bottom: clamp(68px, 7vw, 112px);
}

/* First-screen film gallery: keep the choices and composer above the fold. */
.page-home .app.show-home-showcase {
  min-height: 0;
  grid-template-rows: auto auto auto;
  margin-bottom: 0;
}

.page-home .app.show-home-showcase .stage {
  justify-content: flex-start;
  padding: 30px 20px 8px;
  overflow: visible;
}

.page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choices {
  flex-direction: row;
  width: min(100%, 620px);
  gap: 12px;
}

.page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.page-home .app.show-home-showcase .composer-wrap {
  position: relative;
  padding: 0 16px 4px;
  background: transparent;
}

.home-showcase {
  display: none;
  width: min(calc(100% - 40px), 1010px);
  margin: 22px auto 36px;
}

.app.show-home-showcase .home-showcase {
  display: block;
}

.home-showcase-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.home-showcase-eyebrow {
  color: #3269c6;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .17em;
}

.home-showcase-head h2 {
  margin: 4px 0 0;
  color: #15233e;
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.home-showcase-link {
  flex: 0 0 auto;
  color: #275bc2;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.home-showcase-link:hover { text-decoration: underline; }
.home-showcase-link:focus-visible { outline: 2px solid #275bc2; outline-offset: 4px; }

.home-showcase-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-showcase-card.is-landscape { grid-column: span 2; }

.home-showcase-card {
  min-width: 0;
  padding: 7px 7px 10px;
  border: 1px solid #e5eaf3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 49, 88, .08);
}

.home-showcase-card video {
  display: block;
  width: 100%;
  height: 222px;
  border-radius: 11px;
  background: #15233e;
  object-fit: cover;
}

.home-showcase-card.is-landscape video { height: 190px; }

.home-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 5px 0;
}

.home-showcase-meta span {
  min-width: 0;
  color: #344563;
  font-size: .76rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-showcase-meta time {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: #edf3ff;
  color: #315aa3;
  font-size: .68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.character-animation-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 4px 0;
  color: #174ea6;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.character-animation-choice input { accent-color: #1a73e8; }

@media (max-width: 760px) {
  .page-home .app.show-home-showcase .stage { padding: 28px 14px 14px; }
  .home-showcase { width: calc(100% - 28px); margin-top: 20px; }
  .home-showcase-head { padding: 0 2px; }
  .home-showcase-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-showcase-card.is-landscape video { height: auto; aspect-ratio: 16 / 9; }
  .home-showcase-card video { height: 230px; }
}

@media (max-width: 560px) {
  .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choices {
    flex-direction: column;
    width: min(100%, 420px);
  }
  .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice { width: 100%; }
}

@media (max-width: 420px) {
  .home-showcase-head { align-items: flex-start; }
  .home-showcase-head h2 { font-size: 1rem; }
  .home-showcase-link { max-width: 104px; text-align: right; font-size: .7rem; }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  }

  .site-header.is-open .site-menu {
    display: flex;
  }

  .site-links,
  .site-actions {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .site-link.is-active::after {
    display: none;
  }

  .site-link.is-active {
    background: #f3f4f6;
  }

  .site-cta {
    width: 100%;
  }
}

/* legacy floating topbar removed */

.site-lead {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sample-grid {
  display: grid;
  gap: 18px;
}

.sample-card {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #e8ebf2;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fafbfd);
}

.sample-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f6;
  min-height: 160px;
}

.sample-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 280px;
}

.sample-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
}

.sample-copy h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.sample-prompt-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b90a0;
}

.sample-prompt {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #374151;
  background: #f5f7fb;
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.price-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-card,
.feature-card {
  border: 1px solid #e6e9f0;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
}

.price-card.is-featured {
  border-color: #b7d0f8;
  box-shadow: 0 12px 28px rgba(26, 115, 232, 0.12);
}

.price-tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 0.72rem;
  font-weight: 700;
}

.price-card h3,
.feature-card h3,
.how-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.price-amount {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #111827;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
}

.feature-card p,
.how-steps p,
.faq-item p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e6e9f0;
  border-radius: 16px;
  background: #fff;
}

.how-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #1a73e8;
  font-weight: 750;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: #111827;
}

.faq-item p {
  margin-top: 8px;
}

/* Public product pages */
.page-content .page-main { width: min(1220px, calc(100% - 40px)); padding-top: 28px; }
.page-content .page-title { display: none; }
.marketing-hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 36px; align-items: center; min-height: 360px; border-radius: 30px; padding: clamp(32px,5vw,70px); overflow: hidden; position: relative; background: #101c35; color: #fff; }
.marketing-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 15%, rgba(82,133,247,.32), transparent 45%); }
.marketing-hero > * { position: relative; }
.marketing-hero h2 { max-width: 760px; font-size: clamp(2.4rem,5vw,4.8rem); line-height: 1.04; letter-spacing: -.055em; margin: 15px 0 22px; }
.marketing-hero p { max-width: 610px; font-size: 1.08rem; line-height: 1.65; color: #d5def0; margin: 0; }
.marketing-eyebrow { display: inline-block; color: #3875e6; font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.marketing-hero .marketing-eyebrow, .marketing-callout .marketing-eyebrow { color: #8eb6ff; }
.marketing-link { display: inline-flex; gap: 26px; align-items: center; justify-content: space-between; background: #fff; color: #142650; border-radius: 999px; padding: 13px 18px; font-weight: 750; text-decoration: none; margin-top: 24px; }
.marketing-link:hover { background: #e7efff; }
.hero-rate { border: 1px solid rgba(255,255,255,.3); border-radius: 24px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); padding: 24px; display: grid; gap: 10px; }
.hero-rate span { font-size: .69rem; letter-spacing: .13em; font-weight: 800; color: #b9cfff; }
.hero-rate strong { font-size: clamp(2rem,3vw,3.2rem); letter-spacing: -.04em; white-space: nowrap; }
.hero-rate small { color: #dbe5f8; font-size: .95rem; }
.pricing-trial { display: flex; gap: 24px; justify-content: space-between; align-items: center; background: #eaf1ff; border: 1px solid #d7e3fb; border-radius: 26px; padding: 30px 36px; margin: 20px 0 66px; }
.pricing-trial h3 { font-size: 1.6rem; margin: 9px 0 7px; letter-spacing: -.03em; }
.pricing-trial p { max-width: 680px; line-height: 1.6; color: #465a7b; margin: 0; }
.pricing-trial .marketing-link { background: #1959c9; color: #fff; flex: 0 0 auto; margin: 0; }
.section-heading { margin: 64px 0 26px; }
.section-heading h2 { font-size: clamp(1.9rem,3vw,2.8rem); letter-spacing: -.04em; margin: 8px 0; }
.section-heading p { color: #65728a; }
.page-content .price-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.page-content .price-card, .marketing-features .feature-card { border-radius: 24px; padding: 27px; min-height: 330px; box-shadow: 0 14px 36px rgba(31,52,88,.045); }
.page-content .price-card { display: flex; flex-direction: column; min-width: 0; padding: 24px 21px; box-shadow: 0 14px 38px rgba(31,52,88,.075); transition: transform .22s ease, box-shadow .22s ease; }
.page-content .price-card:hover { transform: translateY(-3px); box-shadow: 0 23px 50px rgba(31,52,88,.13); }
.page-content .price-card.is-featured { border-color: #9ebef6; box-shadow: 0 20px 50px rgba(31,87,190,.14); }
.page-content .price-card.is-trial { border: 1px solid #bcd3fc; background: linear-gradient(160deg,#f1f6ff,#fff); }
.price-card h3 { font-size: 1.35rem; margin: 8px 0 18px; }
.price-card .price-amount { font-size: 2rem; margin-bottom: 2px; }
.price-credits { font-weight: 800; color: #1b56ba; margin: 4px 0 10px; }
.price-for { min-height: 48px; color: #627087; font-size: .9rem; }
.discount-panel { margin: 5px 0 20px; padding: 14px 12px 12px; border: 1px solid #d5e3fb; border-radius: 17px; background: linear-gradient(155deg,#f3f7ff 0%,#fff 72%); box-shadow: 0 9px 20px rgba(34,86,177,.075), inset 0 1px 0 rgba(255,255,255,.95); }
.discount-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; padding: 0 3px 10px; border-bottom: 1px solid #dfe9f9; }
.discount-panel-label { color: #436aa7; font-size: .6rem; font-weight: 850; letter-spacing: .11em; }
.discount-max { color: #164da6; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.discount-rows { display: grid; gap: 3px; padding-top: 7px; }
.discount-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 9px; color: #526581; font-size: .77rem; }
.discount-row:nth-child(even) { background: rgba(224,235,255,.48); }
.discount-row small { font-size: .68rem; }
.discount-row strong { color: #184fae; font-size: 1rem; font-weight: 850; letter-spacing: -.035em; }
.discount-row:last-child { background: linear-gradient(100deg,#dfeaff,#eff5ff); }
.discount-row:last-child strong { color: #0c3d98; }
.discount-panel-standard { display: grid; gap: 10px; min-height: 92px; align-content: center; }
.discount-panel-standard strong { color: #3b5f99; font-size: .88rem; line-height: 1.3; }
.page-content .price-card.is-featured .discount-panel { border-color: #b7ccf3; box-shadow: 0 12px 24px rgba(29,86,186,.12), inset 0 1px 0 #fff; }
.page-content .price-card:has(.discount-panel) .price-for { min-height: 0; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .page-content .price-card { transition: none; } .page-content .price-card:hover { transform: none; } }
.price-card ul { padding-left: 0; list-style: none; margin-bottom: 22px; }
.price-card li { padding: 5px 0 5px 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #1b65d2; font-weight: 800; }
.price-action { margin-top: auto; border: 0; border-radius: 12px; padding: 12px; color: #687a99; background: #edf1f8; font-weight: 700; cursor: not-allowed; }
.price-card.is-trial .price-action { display: block; color: #fff; background: #1959c9; text-align: center; text-decoration: none; cursor: pointer; }
.price-card.is-trial .price-action:hover { background: #124bac; }
.pricing-bottom { display: flex; gap: 25px; align-items: center; border-top: 1px solid #e0e7f2; margin: 48px 0; padding: 25px 0; }
.pricing-bottom strong { flex: 0 0 220px; }
.pricing-bottom p { color: #63738a; line-height: 1.6; }
/* Pricing reference-inspired layout, using Vidfy's existing palette. */
body[data-page="pricing"] .page-content .page-main { width: min(1640px, calc(100% - 48px)); padding-top: 18px; }
.pricing-showcase { position: relative; isolation: isolate; padding: 58px clamp(18px,3vw,48px) 44px; border-radius: 34px; overflow: hidden; background: radial-gradient(circle at 6% 3%, #e9f2ff 0, transparent 32%), radial-gradient(circle at 96% 86%, #fff0e5 0, transparent 32%), linear-gradient(135deg,#f9fbff,#f5f8ff 54%,#fff9f3); }
.pricing-showcase::before,.pricing-showcase::after { content: ""; position: absolute; z-index: -1; width: 310px; height: 310px; border-radius: 42%; filter: blur(45px); opacity: .38; pointer-events: none; }
.pricing-showcase::before { left: -150px; top: 80px; background: #92b8ff; }
.pricing-showcase::after { right: -120px; bottom: -110px; background: #ffd2b3; }
.pricing-intro { text-align: center; max-width: 850px; margin: 0 auto 28px; }
.pricing-intro .marketing-eyebrow { padding: 9px 18px; border: 1px solid #d3e2ff; border-radius: 999px; background: rgba(255,255,255,.76); color: #1c58be; letter-spacing: .06em; }
.pricing-intro h2 { margin: 16px 0 10px; color: #0b1738; font-size: clamp(2.35rem,4.2vw,4.3rem); line-height: 1.08; letter-spacing: -.055em; }
.pricing-intro p { margin: 0 auto; max-width: 690px; color: #60708c; font-size: 1.07rem; line-height: 1.6; }
.pricing-points { display: flex; justify-content: center; gap: clamp(20px,4vw,72px); margin: 0 auto 32px; }
.pricing-point { display: flex; align-items: center; gap: 10px; color: #172d54; }
.pricing-point-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e8f0ff; color: #2464ce; font-size: .77rem; font-weight: 850; }
.pricing-point strong,.pricing-point small { display: block; }
.pricing-point strong { font-size: .84rem; }
.pricing-point small { color: #75829a; font-size: .72rem; margin-top: 2px; }
.pricing-showcase .price-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pricing-showcase .price-card { position: relative; padding: 27px 20px 22px; min-height: 540px; border: 1px solid #e2e9f5; background: rgba(255,255,255,.95); border-radius: 24px; box-shadow: 0 16px 36px rgba(28,55,107,.075),inset 0 1px 0 #fff; }
.pricing-showcase .price-card.is-trial { background: rgba(255,255,255,.95); border-color: #c8dcff; }
.pricing-showcase .price-card.is-featured { border: 2px solid #366bea; box-shadow: 0 0 0 5px rgba(58,111,246,.1),0 24px 46px rgba(34,80,176,.16); transform: translateY(-6px); }
.pricing-showcase .price-card.is-featured:hover { transform: translateY(-9px); }
.pricing-showcase .price-card .price-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 17px; color: #1763d3; background: #e8f1ff; }
.pricing-showcase .price-icon svg { width: 29px; height: 29px; }
.pricing-showcase .price-card--starter .price-icon { color: #05996b; background: #dff9ee; }
.pricing-showcase .price-card--creator .price-icon { color: #e97816; background: #fff0de; }
.pricing-showcase .price-card--pro .price-icon { color: #4a45d8; background: #ecebff; }
.pricing-showcase .price-card--studio .price-icon { color: #d53a8b; background: #ffe7f3; }
.pricing-showcase .price-card h3 { margin: 0 0 6px; color: #102146; font-size: 1.3rem; }
.pricing-showcase .price-amount { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 5px; margin: 0; color: #0d1939; font-size: clamp(1.85rem,2.2vw,2.65rem); font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.pricing-showcase .price-card--studio .price-amount { font-size: clamp(1.75rem,2vw,2.35rem); }
.pricing-showcase .price-amount small { color: #7986a0; font-size: .82rem; font-weight: 500; letter-spacing: 0; }
.pricing-showcase .price-credits { margin: 4px 0 8px; color: #1558cb; font-size: .82rem; line-height: 1.35; min-height: 34px; }
.pricing-showcase .price-for { min-height: 48px; margin: 0 0 15px; color: #66758e; font-size: .84rem; line-height: 1.45; }
.pricing-showcase .discount-panel { margin: 0 0 14px; padding: 13px 10px 11px; border-radius: 15px; border-color: #ffdfbd; background: linear-gradient(125deg,#fff3e7,#fffaf4); box-shadow: none; }
.pricing-showcase .discount-panel-head { padding: 0 4px 9px; border-bottom: 1px solid rgba(225,134,51,.18); }
.pricing-showcase .discount-panel-label { color: #a64b10; font-size: .7rem; letter-spacing: 0; }
.pricing-showcase .discount-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 8px; }
.pricing-showcase .discount-tile { min-width: 0; text-align: center; padding: 0 3px; }
.pricing-showcase .discount-tile + .discount-tile { border-left: 1px solid rgba(191,104,36,.2); }
.pricing-showcase .discount-tile strong,.pricing-showcase .discount-tile small { display: block; }
.pricing-showcase .discount-tile strong { color: #d4630a; font-size: 1.2rem; line-height: 1.25; }
.pricing-showcase .discount-tile small { color: #705d52; font-size: .62rem; white-space: nowrap; }
.pricing-showcase .price-card--pro .discount-panel { border-color: #d8d6ff; background: linear-gradient(125deg,#f2efff,#f9f7ff); box-shadow: none; }
.pricing-showcase .price-card--pro .discount-panel-label,.pricing-showcase .price-card--pro .discount-tile strong { color: #5747c7; }
.pricing-showcase .price-card--studio .discount-panel { border-color: #ffd6ea; background: linear-gradient(125deg,#ffe9f4,#fff5fa); }
.pricing-showcase .price-card--studio .discount-panel-label,.pricing-showcase .price-card--studio .discount-tile strong { color: #c42478; }
.pricing-showcase .price-card--studio .discount-tiles { grid-template-columns: 1fr; }
.pricing-showcase .price-card--studio .discount-tile strong { font-size: 1.6rem; }
.pricing-showcase .price-card ul { border-top: 1px solid #e8edf5; padding-top: 12px; margin-top: auto; margin-bottom: 18px; font-size: .8rem; line-height: 1.45; }
.pricing-showcase .price-card li { padding: 5px 0 5px 22px; }
.pricing-showcase .price-card--creator li::before { color: #e97816; }
.pricing-showcase .price-card--pro li::before { color: #5747c7; }
.pricing-showcase .price-card--studio li::before { color: #d53a8b; }
.pricing-showcase .price-action { width: 100%; min-height: 44px; }
.pricing-showcase .price-card--pro .price-action { color: #fff; background: linear-gradient(110deg,#5e45db,#1679e8); opacity: .7; }
.pricing-showcase .price-tag { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 23px; color: #fff; background: linear-gradient(100deg,#5746d9,#1768e4); box-shadow: 0 7px 16px rgba(36,76,182,.28); white-space: nowrap; }
.pricing-footnote { text-align: center; color: #75819a; font-size: .76rem; margin: 20px 0 0; }
@media (max-width: 1250px) { .pricing-showcase .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; } .pricing-showcase .price-card { min-height: 500px; } }
@media (max-width: 900px) { .pricing-points { flex-wrap: wrap; } .pricing-showcase .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { body[data-page="pricing"] .page-content .page-main { width: calc(100% - 20px); } .pricing-showcase { padding: 38px 14px 26px; border-radius: 22px; } .pricing-showcase .price-grid { grid-template-columns: 1fr; } .pricing-showcase .price-card { min-height: auto; } .pricing-showcase .price-card.is-featured { transform: none; } .pricing-points { justify-content: flex-start; gap: 12px; } .pricing-point { width: 100%; } }
.marketing-hero-feature { min-height: 470px; grid-template-columns: minmax(0,1.18fr) minmax(350px,.82fr); }
.feature-showreel { width: 100%; min-width: 0; margin: 0; padding: 10px; border: 1px solid #dce2eb; border-radius: 23px; background: #fff; box-shadow: 0 24px 65px rgba(0,0,0,.18); }
.feature-showreel video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #0c0e11; }
.feature-showreel-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 17px 12px 12px; }
.feature-showreel-eyebrow { color: #2367bc; font-size: .67rem; font-weight: 800; letter-spacing: .16em; }
.feature-showreel-caption strong { color: #152037; font-size: 1.05rem; letter-spacing: -.02em; }
.feature-showreel-caption small { color: #5f6c7d; font-size: .83rem; }
@media (max-width: 900px) {
  .marketing-hero-feature { grid-template-columns: 1fr; }
}
.marketing-features { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.marketing-features .feature-card { min-height: 245px; background: linear-gradient(145deg,#fff,#f7f9fd); }
.feature-index { color: #3674db; font-weight: 800; font-size: .8rem; }
.marketing-features h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-top: 32px; }
.marketing-features p { font-size: .95rem; line-height: 1.65; }
.marketing-callout { margin: 66px 0 12px; padding: clamp(30px,5vw,65px); border-radius: 28px; background: #12244a; color: #fff; }
.marketing-callout h2 { font-size: clamp(1.8rem,3vw,3rem); margin: 12px 0; letter-spacing: -.04em; }
.marketing-callout p { color: #cfdaee; max-width: 720px; line-height: 1.7; }
.how-mini-timeline { padding: 24px; border: 1px solid #51678e; background: rgba(255,255,255,.07); border-radius: 22px; display: grid; gap: 13px; }
.how-mini-timeline span { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 700; }
.how-editorial { margin-top: 38px; border-top: 1px solid #dce4f1; }
.how-editorial-step { display: grid; grid-template-columns: 170px 1fr; padding: 34px 0; border-bottom: 1px solid #dce4f1; }
.how-editorial-number { font-size: 3.6rem; font-weight: 800; letter-spacing: -.07em; color: #d8e5fb; }
.how-editorial-step h3 { font-size: clamp(1.4rem,2.5vw,2.1rem); margin: 9px 0; letter-spacing: -.04em; }
.how-editorial-step p { max-width: 700px; color: #66758c; line-height: 1.7; }
.marketing-hero-faq { min-height: 320px; }
.faq-question-mark { font-size: 13rem; line-height: .8; font-weight: 800; color: rgba(255,255,255,.15); text-align: center; }
.faq-layout { display: grid; grid-template-columns: minmax(220px,.48fr) 1fr; gap: 55px; margin: 65px 0; }
.faq-layout aside h2 { font-size: 2rem; margin: 13px 0; letter-spacing: -.04em; }
.faq-layout aside p { color: #6a7891; line-height: 1.65; }
.faq-list { gap: 12px; }
.faq-item { border-radius: 17px; padding: 0; overflow: hidden; }
.faq-item summary { padding: 20px 23px; display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary b { color: #1d63c8; font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary b { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 23px 22px; line-height: 1.65; }
@media(max-width:900px) { .marketing-hero { grid-template-columns: 1fr; } .page-content .price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .marketing-features { grid-template-columns: repeat(2,minmax(0,1fr)); } .faq-layout { grid-template-columns: 1fr; gap: 20px; } }
@media(max-width:600px) { .page-content .page-main { width: min(100% - 24px,1220px); } .marketing-hero { padding: 30px 24px; border-radius: 22px; } .marketing-hero h2 { font-size: 2.5rem; } .pricing-trial { align-items: flex-start; flex-direction: column; padding: 25px; } .page-content .price-grid, .marketing-features { grid-template-columns: 1fr; } .how-editorial-step { grid-template-columns: 65px 1fr; } .how-editorial-number { font-size: 2.3rem; } .pricing-bottom { display: block; } }

/* Shared site footer */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #d1ddf1;
  background: #0b1730;
  border-top: 1px solid #20355d;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -160px;
  width: 650px;
  height: 650px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(48,104,216,.34), transparent 67%);
}
.site-footer-inner { position: relative; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: 73px 0 67px; }
.site-footer-kicker { color: #80abff; font-size: .7rem; font-weight: 800; letter-spacing: .22em; }
.site-footer-top h2 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.85rem); letter-spacing: -.06em; line-height: 1.1; margin: 15px 0 12px; }
.site-footer-top p { max-width: 600px; margin: 0; color: #afbdd5; font-size: 1rem; line-height: 1.7; }
.site-footer-cta { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border-radius: 13px; background: #e7efff; color: #133a7c; font-size: .9rem; font-weight: 800; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.15); transition: transform .18s ease, background .18s ease; }
.site-footer-cta:hover { transform: translateY(-2px); background: #fff; }
.site-footer-cta:focus-visible, .site-footer a:focus-visible { outline: 2px solid #9fc0ff; outline-offset: 4px; }
.site-footer-divider { height: 1px; background: rgba(203,220,255,.17); }
.site-footer-main { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(135px, 180px)); gap: 30px; padding: 48px 0 65px; }
.site-footer-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-footer-brand img { display: block; width: 220px; max-width: 100%; height: auto; }
.site-footer-brand-block p { margin: 14px 0 0; color: #9faec9; font-size: .9rem; }
.site-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.site-footer-column h3 { margin: 0 0 6px; color: #fff; font-size: .88rem; font-weight: 750; }
.site-footer-column a { color: #aabbd5; font-size: .86rem; line-height: 1.3; text-decoration: none; transition: color .15s ease; }
.site-footer-column a:hover { color: #fff; }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 29px; border-top: 1px solid rgba(203,220,255,.12); color: #889bb9; font-size: .78rem; }
/* Editorial CTA and footer, based on the supplied dark-wave reference. */
.site-footer { isolation:isolate; background:radial-gradient(circle at 92% 3%,#112e75 0,transparent 27%),linear-gradient(150deg,#071633,#051126 72%,#071a43); border-top:0; }
.site-footer::before { inset:0 0 auto; width:100%; height:min(33vw,460px); min-height:300px; background:url('/static/brand/footer-waves.svg?v=20261008-footer1') center top / cover no-repeat; opacity:1; pointer-events:none; }
.site-footer::after { content:""; position:absolute; inset:auto -8% -220px; height:440px; z-index:-1; background:radial-gradient(ellipse,#15398255,transparent 68%); pointer-events:none; }
.site-footer-inner { width:min(1440px,calc(100% - 72px)); }
.site-footer-top { min-height:470px; padding:100px 0 80px; flex-direction:column; justify-content:center; gap:30px; text-align:center; }
.site-footer-top > div { display:flex; flex-direction:column; align-items:center; }
.site-footer-kicker { display:inline-flex; align-items:center; padding:10px 24px; border:1px solid #5b88cd66; border-radius:999px; background:#18346177; color:#8dc3ff; font-size:.72rem; letter-spacing:.17em; box-shadow:inset 0 1px #ffffff1a; }
.site-footer-top h2 { max-width:1100px; margin:20px 0 14px; font-size:clamp(2.7rem,5.1vw,5.6rem); line-height:1.05; letter-spacing:-.065em; background:linear-gradient(100deg,#fff 14%,#fff 52%,#63a8ff 82%,#90c6ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.site-footer-top p { max-width:830px; color:#b5c5df; font-size:clamp(.96rem,1.3vw,1.15rem); line-height:1.6; }
.site-footer-cta { min-width:285px; min-height:62px; padding:0 28px; border-radius:18px; background:linear-gradient(145deg,#fff,#d9e8ff); color:#12346e; font-size:1rem; box-shadow:0 10px 30px #1b63ec55,inset 0 1px #fff; }
.site-footer-cta:hover { background:linear-gradient(145deg,#fff,#ecf4ff); box-shadow:0 14px 36px #1b63ec77; }
.site-footer-divider { background:#aec4ef33; }
.site-footer-main { grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,1fr)); gap:clamp(30px,5vw,80px); padding:54px 0 62px; }
.site-footer-brand-block { padding-right:40px; border-right:1px solid #aec4ef33; }
.site-footer-brand img { width:min(330px,100%); }
.site-footer-brand-block p { margin-top:8px; font-size:.98rem; }
.site-footer-column { gap:15px; }
.site-footer-column h3 { margin-bottom:8px; font-size:1rem; }
.site-footer-column a { font-size:.94rem; }
.site-footer-bottom { padding:25px 0 32px; font-size:.82rem; }
@media (max-width:900px) { .site-footer-main { grid-template-columns:repeat(3,minmax(0,1fr)); } .site-footer-brand-block { grid-column:1/-1; border-right:0; border-bottom:1px solid #aec4ef33; padding:0 0 26px; } }
@media (max-width:700px) { .site-footer-inner { width:calc(100% - 36px); } .site-footer-top { min-height:400px; padding:76px 0 60px; gap:25px; } .site-footer-main { grid-template-columns:repeat(2,minmax(0,1fr)); gap:34px 20px; padding:38px 0 44px; } .site-footer-brand-block { grid-column:1/-1; } .site-footer-column:last-child { grid-column:1/-1; } .site-footer-cta { min-width:min(285px,100%); } }
@media (max-width: 700px) {
  .site-footer-top { align-items: flex-start; flex-direction: column; gap: 25px; padding: 58px 0 50px; }
  .site-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; padding: 43px 0 47px; }
  .site-footer-brand-block { grid-column: 1 / -1; }
  .site-footer-bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 900px) {
  .sample-card {
    grid-template-columns: 1fr;
  }

  .price-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Samples: finished-video showcase. Keep media unloaded until playback. */
.samples-intro {
  min-height: 270px;
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  color: #fff;
  background: radial-gradient(circle at 86% 12%, rgba(67, 121, 244, .28), transparent 34%), linear-gradient(135deg, #101b31, #152849 64%, #0c1426);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
}
.samples-eyebrow { color: #89b5ff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.samples-intro h2 { max-width: 760px; margin: 15px 0 12px; font-size: clamp(2.2rem, 4.7vw, 4.5rem); letter-spacing: -.065em; line-height: 1.05; }
.samples-intro p { max-width: 630px; margin: 0; color: #b9c8e2; line-height: 1.65; font-size: .98rem; }
.samples-count { flex: 0 0 auto; display: flex; flex-direction: column; font-size: 5rem; line-height: .86; font-weight: 800; letter-spacing: -.08em; color: #e8f0ff; }
.samples-count small { padding-top: 12px; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #8fb6f5; }
.samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.samples-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e5eaf3; border-radius: 20px; box-shadow: 0 16px 38px rgba(20, 38, 68, .055); }
.samples-card.is-landscape { grid-column: span 2; }
.samples-media { position: relative; height: 330px; overflow: hidden; background: #101827; }
.samples-backdrop { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) brightness(.43); pointer-events: none; }
.samples-media video { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.samples-card-info { min-height: 88px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: start; padding: 19px 17px 18px; }
.samples-number { color: #7b9bd3; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding-top: 3px; }
.samples-card-info h3 { margin: 0 0 4px; color: #162442; font-size: .91rem; font-weight: 800; line-height: 1.32; }
.samples-card-info p { margin: 0; color: #73829a; font-size: .76rem; }
.samples-duration { color: #476593; white-space: nowrap; font-size: .73rem; font-weight: 700; padding: 5px 7px; border-radius: 7px; background: #eff4fc; }
.samples-outro { margin-top: 24px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-radius: 21px; background: #f0f5fd; }
.samples-outro .samples-eyebrow { color: #376dca; }
.samples-outro h2 { margin: 8px 0 0; font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: #142846; letter-spacing: -.04em; }
.samples-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; color: #fff; background: #2369dc; font-weight: 800; font-size: .87rem; text-decoration: none; white-space: nowrap; }
.samples-cta:hover { background: #1853b2; }
.samples-cta:focus-visible { outline: 3px solid #75a6ff; outline-offset: 3px; }
@media (max-width: 900px) {
  .samples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .samples-card.is-landscape { grid-column: auto; }
}
@media (max-width: 580px) {
  .page-content .page-main { width: min(1220px, calc(100% - 24px)); }
  .samples-intro { min-height: 0; flex-direction: column; align-items: flex-start; border-radius: 22px; }
  .samples-intro > div { min-width: 0; width: 100%; }
  .samples-intro h2, .samples-intro p { max-width: 100%; }
  .samples-count { font-size: 3.3rem; }
  .samples-grid { grid-template-columns: 1fr; gap: 14px; }
  .samples-card.is-landscape { grid-column: auto; }
  .samples-media { height: 360px; }
  .samples-card.is-landscape .samples-media { height: 240px; }
  .samples-outro { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* Public information and contact pages */
/* Shared visual language for the three product-discovery pages. */
body[data-page="features"] .page-content .page-main,
body[data-page="how"] .page-content .page-main,
body[data-page="samples"] .page-content .page-main { width: min(1390px, calc(100% - 48px)); }
body[data-page="features"] .marketing-hero,
body[data-page="how"] .marketing-hero,
body[data-page="samples"] .samples-intro { border: 1px solid #dce8fa; background: radial-gradient(circle at 94% 8%,#dfeaff,transparent 34%),radial-gradient(circle at 5% 95%,#fff0e2,transparent 34%),linear-gradient(130deg,#f9fbff,#f4f8ff 65%,#fffaf5); color:#102146; box-shadow:0 22px 48px rgba(28,55,107,.07); }
body[data-page="features"] .marketing-hero::before,
body[data-page="how"] .marketing-hero::before { background: radial-gradient(circle at 80% 20%,rgba(90,140,245,.12),transparent 48%); }
body[data-page="features"] .marketing-hero .marketing-eyebrow,
body[data-page="how"] .marketing-hero .marketing-eyebrow,
body[data-page="samples"] .samples-eyebrow { color:#2366cd; }
body[data-page="features"] .marketing-hero h2,
body[data-page="how"] .marketing-hero h2,
body[data-page="samples"] .samples-intro h2 { color:#0b1738; }
body[data-page="features"] .marketing-hero p,
body[data-page="how"] .marketing-hero p,
body[data-page="samples"] .samples-intro p { color:#62728e; }
body[data-page="features"] .marketing-hero .marketing-link { color:#fff; background:linear-gradient(110deg,#1768d9,#4692ec); box-shadow:0 10px 25px rgba(36,98,202,.22); }
body[data-page="features"] .feature-showreel { border-color:#d6e3f7; border-radius:22px; box-shadow:0 24px 44px rgba(27,60,117,.14); }
body[data-page="features"] .marketing-features .feature-card { position:relative; overflow:hidden; border-color:#e1e9f5; background:#fff; box-shadow:0 14px 34px rgba(27,55,106,.065); transition:transform .2s ease,box-shadow .2s ease; }
body[data-page="features"] .marketing-features .feature-card:hover { transform:translateY(-4px); box-shadow:0 22px 40px rgba(27,55,106,.12); }
body[data-page="features"] .marketing-features .feature-card::before { content:""; display:block; width:56px; height:5px; margin-bottom:18px; border-radius:999px; background:#4786e9; }
body[data-page="features"] .marketing-features .feature-card:nth-child(3n+2)::before { background:#ef9a4a; }
body[data-page="features"] .marketing-features .feature-card:nth-child(3n)::before { background:#d878af; }
body[data-page="features"] .marketing-features h3 { margin-top:17px; }
body[data-page="how"] .how-mini-timeline { background:rgba(255,255,255,.78); border-color:#d7e5f9; box-shadow:0 14px 34px rgba(30,63,121,.075); }
body[data-page="how"] .how-mini-timeline span { color:#223b67; background:#edf4ff; border:1px solid #e0ebfd; }
body[data-page="how"] .how-mini-timeline span:nth-child(even) { background:#fff2e7; border-color:#ffe7d2; }
body[data-page="how"] .how-editorial { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; border:0; }
body[data-page="how"] .how-editorial-step { grid-template-columns:70px 1fr; gap:14px; padding:28px; border:1px solid #e1e9f5; border-radius:22px; background:#fff; box-shadow:0 14px 34px rgba(27,55,106,.06); }
body[data-page="how"] .how-editorial-number { font-size:2.5rem; color:#3577df; }
body[data-page="how"] .how-editorial-step:nth-child(even) .how-editorial-number { color:#e88c37; }
body[data-page="samples"] .samples-intro { min-height:270px; }
body[data-page="samples"] .samples-count { color:#2b68ce; }
body[data-page="samples"] .samples-count small { color:#6b8abb; }
body[data-page="samples"] .samples-card { border-color:#dfe8f6; border-radius:22px; box-shadow:0 16px 38px rgba(27,55,106,.07); transition:transform .2s ease,box-shadow .2s ease; }
body[data-page="samples"] .samples-card:hover { transform:translateY(-3px); box-shadow:0 22px 44px rgba(27,55,106,.13); }
body[data-page="samples"] .samples-card:nth-child(3n+2) .samples-number { color:#db873c; }
body[data-page="samples"] .samples-card:nth-child(3n) .samples-number { color:#c45696; }
body[data-page="samples"] .samples-outro { border:1px solid #dce8fa; background:linear-gradient(115deg,#eaf3ff,#fff3e9); box-shadow:0 14px 34px rgba(27,55,106,.055); }
body[data-page="features"] .marketing-callout,
body[data-page="how"] .marketing-callout { background:radial-gradient(circle at 100% 0,rgba(75,140,245,.3),transparent 42%),linear-gradient(125deg,#14284c,#1b3d70); box-shadow:0 20px 40px rgba(20,50,100,.15); }
@media (max-width:900px) { body[data-page="how"] .how-editorial { grid-template-columns:1fr; } }
@media (max-width:600px) { body[data-page="features"] .page-content .page-main,body[data-page="how"] .page-content .page-main,body[data-page="samples"] .page-content .page-main { width:calc(100% - 24px); } body[data-page="how"] .how-editorial-step { grid-template-columns:48px 1fr; padding:20px; } body[data-page="how"] .how-editorial-number { font-size:2rem; } }
.public-intro { padding: clamp(30px,5vw,62px); border-radius: 28px; background: linear-gradient(125deg,#101b31,#1a3764); color: #fff; }
.public-intro .marketing-eyebrow { color: #95baff; }
.public-intro h2 { max-width: 850px; margin: 15px 0 12px; font-size: clamp(2.2rem,4.7vw,4.4rem); letter-spacing: -.06em; line-height: 1.05; }
.public-intro p { max-width: 700px; margin: 0; color: #c4d2e9; font-size: 1rem; line-height: 1.7; }
.public-intro small { display: block; margin-top: 22px; color: #9ebce8; }
.policy-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(30px,5vw,70px); align-items: start; margin: 45px 0 70px; }
.policy-index { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 7px; padding: 22px; border: 1px solid #e2e9f5; border-radius: 18px; background: #f7f9fd; }
.policy-index strong { margin-bottom: 10px; color: #243b60; font-size: .83rem; }
.policy-index a { padding: 8px 0; color: #647895; text-decoration: none; font-size: .81rem; line-height: 1.45; }
.policy-index a:hover, .policy-index a:focus-visible { color: #1e60cc; }
.policy-body section { padding: 27px 0 31px; border-bottom: 1px solid #e0e7f1; scroll-margin-top: 95px; }
.policy-body section:first-child { padding-top: 4px; }
.policy-body section > span { color: #3575dc; font-size: .75rem; font-weight: 800; }
.policy-body h3 { margin: 9px 0 12px; font-size: 1.3rem; letter-spacing: -.035em; color: #1c2e4f; }
.policy-body p { margin: 0; max-width: 780px; color: #4c5d75; line-height: 1.8; font-size: .94rem; }
.public-help { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 0 0 60px; padding: 30px; border-radius: 20px; background: #ecf3ff; }
.public-help h3 { margin: 0 0 7px; color: #1a355f; }
.public-help p { margin: 0; color: #5e7190; }
.public-help a { flex: 0 0 auto; color: #1b5ac2; font-weight: 800; text-decoration: none; }
.contact-layout { display: grid; grid-template-columns: minmax(220px,.45fr) minmax(0,1fr); gap: clamp(22px,5vw,60px); margin: 35px 0 70px; }
.contact-aside { align-self: start; padding: 30px; border-radius: 21px; background: #eef4ff; }
.contact-aside h3 { margin: 18px 0 9px; font-size: 1.35rem; color: #19345e; }
.contact-aside p { color: #627691; line-height: 1.65; }
.contact-aside a { color: #1b60ce; text-decoration: none; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 19px; padding: clamp(22px,4vw,38px); border: 1px solid #e3e9f4; border-radius: 22px; background: #fff; box-shadow: 0 18px 45px rgba(28,54,96,.045); }
.contact-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.contact-form label { display: grid; gap: 8px; color: #233758; font-size: .83rem; font-weight: 750; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #ccd7e9; border-radius: 11px; background: #fbfcff; color: #162442; font: inherit; font-size: .9rem; }
.contact-form textarea { min-height: 155px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid #add0ff; border-color: #4986df; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .contact-ack { display: flex; align-items: center; gap: 9px; font-weight: 600; line-height: 1.5; }
.contact-ack input { width: 17px; height: 17px; accent-color: #2268d7; }
.contact-ack a { color: #2469ce; }
.contact-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.contact-actions button { border: 0; border-radius: 11px; padding: 13px 21px; color: #fff; background: #1f63d5; cursor: pointer; font-weight: 800; }
.contact-actions button:hover:not(:disabled) { background: #1855bb; }
.contact-actions button:disabled { opacity: .55; cursor: progress; }
.contact-actions p { margin: 0; color: #425c80; font-size: .83rem; }
/* FAQ and contact: extend the pricing-page visual family without altering behavior. */
body[data-page="faq"] .page-content .page-main,
body[data-page="contact"] .page-content .page-main { width:min(1390px,calc(100% - 48px)); }
body[data-page="faq"] .marketing-hero,
body[data-page="contact"] .public-intro { position:relative; overflow:hidden; border:1px solid #dce8fa; background:radial-gradient(circle at 93% 8%,#deebff,transparent 36%),radial-gradient(circle at 5% 95%,#fff0e2,transparent 34%),linear-gradient(130deg,#f9fbff,#f4f8ff 65%,#fffaf5); color:#102146; box-shadow:0 22px 48px rgba(28,55,107,.07); }
body[data-page="faq"] .marketing-hero .marketing-eyebrow,
body[data-page="contact"] .public-intro .marketing-eyebrow { color:#2366cd; }
body[data-page="faq"] .marketing-hero h2,
body[data-page="contact"] .public-intro h2 { color:#0b1738; }
body[data-page="faq"] .marketing-hero p,
body[data-page="contact"] .public-intro p { color:#62728e; }
body[data-page="faq"] .faq-question-mark { color:#a9c7f6; opacity:.55; }
body[data-page="faq"] .faq-layout { gap:clamp(22px,4vw,55px); }
body[data-page="faq"] .faq-layout aside { align-self:start; padding:30px; border:1px solid #dce8fa; border-radius:22px; background:linear-gradient(145deg,#ecf4ff,#fff8f1); }
body[data-page="faq"] .faq-item { border:1px solid #e0e9f6; background:#fff; box-shadow:0 12px 30px rgba(27,55,106,.06); }
body[data-page="faq"] .faq-item[open] { border-color:#b9d2f6; box-shadow:0 16px 36px rgba(27,75,156,.11); }
body[data-page="faq"] .faq-item summary { color:#1a3056; font-weight:700; }
body[data-page="faq"] .faq-item summary b { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:9px; background:#e8f1ff; }
body[data-page="contact"] .contact-layout { gap:20px; }
body[data-page="contact"] .contact-aside { border:1px solid #dce8fa; background:linear-gradient(145deg,#eaf3ff,#fff3e9); box-shadow:0 14px 34px rgba(27,55,106,.06); }
body[data-page="contact"] .contact-form { border-color:#dfe8f6; box-shadow:0 18px 40px rgba(27,55,106,.08); }
body[data-page="contact"] .contact-form input:not([type="checkbox"]),
body[data-page="contact"] .contact-form textarea { border-radius:12px; background:#fcfdff; }
body[data-page="contact"] .contact-actions button { background:linear-gradient(110deg,#1768d9,#4692ec); box-shadow:0 10px 22px rgba(36,98,202,.18); }
@media (max-width:600px) { body[data-page="faq"] .page-content .page-main,body[data-page="contact"] .page-content .page-main { width:calc(100% - 24px); } body[data-page="faq"] .faq-layout aside { padding:22px; } }
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-index { position: static; }
}
@media (max-width: 700px) {
  .contact-layout, .contact-pair { grid-template-columns: 1fr; }
  .public-help { flex-direction: column; align-items: flex-start; }
  .feature-showreel { width: min(100%, 560px); }
}

/* --- Account area --- */
.account-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 80px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
}

.account-nav-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b90a0;
}

.account-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav-link {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 10px;
}

.account-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.account-nav-link.is-active {
  background: #eef4ff;
  color: #174ea6;
}

.account-main-head {
  margin-bottom: 16px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.account-card {
  border: 1px solid #e6e9f0;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.account-card-wide {
  grid-column: 1 / -1;
}

.account-card-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b90a0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-card h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.account-card h3 {
  margin: 0 0 8px;
}

.account-link {
  display: inline-block;
  margin-top: 10px;
  color: #1a73e8;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.88rem;
}

.credit-bar {
  height: 8px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
  margin: 8px 0;
}

.credit-bar span {
  display: block;
  height: 100%;
  background: #1a73e8;
}

.muted {
  color: #6b7280;
  font-size: 0.88rem;
}

.account-table-wrap {
  overflow: auto;
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  background: #fff;
  margin: 10px 0 20px;
}

.usage-chart { display: flex; align-items: end; gap: 10px; min-height: 170px; max-width: 100%; overflow-x: auto; padding: 12px 4px 8px; margin-bottom: 18px; border-bottom: 1px solid #dce3ef; }
.usage-bar-wrap { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .72rem; }
.usage-bar-wrap small { white-space: nowrap; color: #64748b; }
.usage-bar { display: block; width: 36px; background: #2563eb; border-radius: 6px 6px 0 0; }
.usage-mode-chart { display: grid; gap: 10px; margin: 14px 0 28px; }
.usage-mode-row { display: grid; grid-template-columns: 80px minmax(100px,1fr) 65px; gap: 10px; align-items: center; }
.usage-mode-track { display: block; height: 10px; border-radius: 20px; background: #edf1f8; overflow: hidden; }
.usage-mode-track span { display: block; height: 100%; background: #4285f4; }

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.account-table th,
.account-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f6;
}

.account-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #6b7280;
}

.account-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-toolbar {
  margin-bottom: 12px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}

.account-menu {
  position: relative;
}

.account-mobile-heading {
  display: none;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #174ea6;
  font-weight: 750;
  font-size: 0.8rem;
}

.account-menu-name {
  font-size: 0.84rem;
  font-weight: 650;
  color: #111827;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.account-menu-panel[hidden] {
  display: none !important;
}

.account-menu-panel a,
.account-menu-panel .account-logout {
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel .account-logout:hover {
  background: #f3f4f6;
}

@media (max-width: 1080px) {
  .site-menu {
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-menu .account-menu {
    width: 100%;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(127, 169, 236, .28);
  }

  .site-menu .account-mobile-heading {
    display: block;
    margin: 0 0 8px;
    padding: 0 10px;
    color: #a7caff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .site-menu .account-menu-trigger,
  .site-menu .account-menu-trigger[hidden] {
    display: none;
  }

  .site-menu .account-menu-panel {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-menu .account-menu-panel a,
  .site-menu .account-menu-panel .account-logout {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .93rem;
  }
}

.price-card .auth-submit {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-nav {
    position: static;
  }

  .account-nav-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .account-grid,
  .account-form-row {
    grid-template-columns: 1fr;
  }

  .account-menu-name {
    display: none;
  }
}

.asset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.asset-card {
  border: 1px solid #e6e9f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.asset-thumb {
  aspect-ratio: 1;
  background: #f3f4f6;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asset-meta {
  padding: 10px 12px 12px;
}

.asset-label {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.9rem;
  word-break: break-word;
}

.projects-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.projects-lead {
  margin: 0;
  max-width: 42ch;
  line-height: 1.45;
}

.projects-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}

.projects-new:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-empty {
  border: 1px dashed #d5dae3;
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e8ebf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: #d7e3f8;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.project-card-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.project-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #eef4ff 0%, #f8fafc 55%, #e8eef8 100%);
  border: 1px solid #e2e8f4;
  display: grid;
  place-items: center;
  color: #174ea6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.project-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.project-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.25;
  word-break: break-word;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.project-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c4c9d4;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.proj-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.proj-btn-primary {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.22);
}

.proj-btn-primary:hover {
  background: #1558b8;
  border-color: #1558b8;
  transform: translateY(-1px);
}

.proj-btn-ghost {
  background: #f8fafc;
  color: #374151;
  border-color: #e5e7eb;
}

.proj-btn-ghost:hover {
  background: #eef2f7;
  color: #111827;
}

.proj-btn-danger {
  background: #fff;
  color: #b42318;
  border-color: #f3d1ce;
}

.proj-btn-danger:hover {
  background: #fef3f2;
  border-color: #f0b6b0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  background: #f3f4f6;
  color: #4b5563;
}

.status-pill.status-ready { background: #eef4ff; color: #174ea6; }
.status-pill.status-setup,
.status-pill.status-draft { background: #fff7ed; color: #9a3412; }
.status-pill.status-generating { background: #fef3c7; color: #92400e; }
.status-pill.status-done { background: #ecfdf3; color: #067647; }

@media (max-width: 720px) {
  .projects-head {
    flex-direction: column;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card-actions {
    justify-content: stretch;
  }

  .project-card-actions .proj-btn {
    flex: 1;
    justify-content: center;
  }

  .proj-btn span {
    display: inline;
  }
}

/* —— Production flow tracker —— */
.page-production {
  background:
    radial-gradient(1000px 420px at 50% -8%, #eef3fb 0%, transparent 55%),
    var(--bg-soft);
}

.prod-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.prod-header {
  margin-bottom: 28px;
}

.prod-back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.prod-back:hover {
  color: var(--accent);
}

.prod-title {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prod-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 22px;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.04);
}

.prod-milestones {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-ms {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--muted);
}

.prod-ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7c7cc;
  flex-shrink: 0;
}

.prod-ms.is-done {
  color: #1a7f4b;
  border-color: #b7e0c8;
  background: #f0faf4;
}

.prod-ms.is-done .prod-ms-dot {
  background: #1a7f4b;
}

.prod-ms.is-active {
  color: var(--accent);
  border-color: #b3d0f7;
  background: #f0f6fe;
}

.prod-ms.is-active .prod-ms-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.prod-ms.is-failed {
  color: #b42318;
  border-color: #f3c4bf;
  background: #fef3f2;
}

.prod-active {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 16px;
}

.prod-orbit {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  flex-shrink: 0;
  opacity: 0.35;
}

.prod-orbit.is-spinning {
  opacity: 1;
  animation: prodSpin 0.85s linear infinite;
}

@keyframes prodSpin {
  to {
    transform: rotate(360deg);
  }
}

.prod-message {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prod-progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: #ececef;
  overflow: hidden;
}

.prod-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b8ef0, var(--accent));
  transition: width 0.45s ease;
}

.prod-page.is-done .prod-progress-bar {
  background: #1a7f4b;
}

.prod-page.is-failed .prod-progress-bar {
  background: #d92d20;
}

.prod-meta {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2em;
}

.prod-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .prod-page {
    padding-top: 28px;
  }

  .prod-milestones {
    gap: 6px;
  }

  .prod-ms {
    font-size: 0.64rem;
    padding: 5px 10px;
  }
}

/* —— Kurgu şeridi: açık tema, siteyle uyumlu —— */
body.has-prod-nle .prod-page {
  padding-bottom: 228px;
}

/* —— Önizleme popup (şeffaf arka plan) —— */
.prod-preview-popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 220px;
  background: transparent;
  pointer-events: auto;
}

.prod-preview-popup[hidden] {
  display: none !important;
}

.prod-preview-panel {
  position: relative;
  width: min(420px, 92vw);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 15, 20, 0.14);
  color: var(--ink);
}

.prod-preview-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.prod-preview-close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.prod-preview-kicker {
  justify-self: start;
  margin-right: 36px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.prod-preview-panel video {
  width: 100%;
  max-height: min(52vh, 480px);
  border-radius: 10px;
  background: #0d0d0d;
  box-shadow: 0 8px 24px rgba(15, 15, 20, 0.12);
}

.prod-preview-copy {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.prod-preview-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.prod-preview-note {
  margin: 4px 0 0;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.prod-nle-shell {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 0;
  z-index: 1200;
  height: 188px;
  margin: 0;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 -8px 28px rgba(15, 15, 20, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.prod-nle-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink);
}

.prod-nle-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.prod-nle-toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-nle-play {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b3d0f7;
  border-radius: 50%;
  background: #eef5fd;
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.12);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.prod-nle-play:hover {
  background: #e0edfc;
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.18);
}

.prod-nle-play:active {
  transform: scale(0.98);
}

.prod-nle-play svg {
  margin-left: 2px;
}

.prod-nle-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  justify-self: end;
}

.prod-nle-watch {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid #1a73e8;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.prod-nle-watch:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.prod-nle-watch:active {
  transform: scale(0.98);
}

.prod-nle-watch[hidden] {
  display: none !important;
}

/* Final video popup */
.prod-final-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 220px;
  background: transparent;
}

.prod-final-popup[hidden] {
  display: none !important;
}

.prod-final-panel {
  position: relative;
  width: min(520px, 94vw);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 15, 20, 0.14);
  color: var(--ink);
}

.prod-final-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.prod-final-close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.prod-final-kicker {
  justify-self: start;
  margin-right: 36px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.prod-final-panel video {
  width: 100%;
  max-height: min(56vh, 520px);
  border-radius: 10px;
  background: #0d0d0d;
  box-shadow: 0 8px 24px rgba(15, 15, 20, 0.12);
}

.prod-final-copy {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.prod-final-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.prod-final-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 10px 16px;
  border: 1px solid #b3d0f7;
  border-radius: 999px;
  background: #eef5fd;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.prod-final-download:hover {
  background: #e0edfc;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.16);
}

.prod-nle-toolbar-left strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prod-nle-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.prod-nle-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 400px;
  padding: 6px 10px;
  border: 1px solid #d6e4f8;
  border-radius: 12px;
  background: #f5f9fe;
}

.prod-nle-summary.is-live {
  border-color: #b3d0f7;
  background: #eef5fd;
}

.prod-nle-summary-orbit {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  border-top-color: var(--accent);
  opacity: 0.35;
}

.prod-nle-summary-orbit.is-spinning {
  opacity: 1;
  animation: prodSpin 0.85s linear infinite;
}

.prod-nle-summary-copy {
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.prod-nle-summary-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.prod-nle-summary-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-nle-summary-progress {
  width: 72px;
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #e5e5ea;
}

.prod-nle-summary-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b8ef0, var(--accent));
  transition: width 0.45s ease;
}

.prod-nle-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  background: #fff;
  scrollbar-color: #c7c7cc #f7f7f8;
}

.prod-nle-viewport.is-panning {
  cursor: grabbing;
}

.prod-nle-canvas {
  position: relative;
  min-width: max-content;
  padding: 0 18px 14px;
}

.prod-nle-ruler {
  height: 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 51px,
      rgba(0, 0, 0, 0.08) 52px,
      transparent 53px
    ),
    #fafafa;
}

.prod-nle-ruler-label {
  position: absolute;
  top: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transform: translateX(-1px);
}

.prod-nle-track {
  position: relative;
  height: 96px;
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

.prod-nle-clip {
  width: 248px;
  height: 78px;
  flex: 0 0 248px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.prod-nle-clip:hover {
  border-color: #b3d0f7;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.1);
}

.prod-nle-clip.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.18);
  transform: translateY(-1px);
}

.prod-nle-clip.is-producing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.prod-nle-clip.is-queued {
  opacity: 0.78;
  border-style: dashed;
  background: #f7f7f8;
}

.prod-nle-clip.is-complete:not(.is-producing) {
  border-color: #b7e0c8;
}

.prod-nle-clip.is-complete.is-selected:not(.is-producing) {
  border-color: var(--accent);
}

.prod-nle-thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  gap: 1px;
  background: #e5e5ea;
}

.prod-nle-thumb {
  min-width: 0;
  overflow: hidden;
  background: #ececef;
}

.prod-nle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.prod-nle-clip-label {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.06);
}

.prod-nle-clip-version {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #e8f7ee;
  color: #1a7f4b;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid #c6ebd4;
}

.prod-nle-clip.is-queued .prod-nle-clip-version {
  background: #f3f3f5;
  color: var(--muted);
  border-color: var(--line);
}

.prod-nle-clip.is-producing .prod-nle-clip-version {
  background: #eef5fd;
  color: var(--accent);
  border-color: #b3d0f7;
}

.prod-nle-production-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
  overflow: hidden;
  pointer-events: none;
}

.prod-nle-clip.is-producing .prod-nle-production-overlay {
  display: flex;
}

.prod-nle-production-overlay::after {
  content: "";
  position: absolute;
  inset: -70% -35%;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(26, 115, 232, 0.12) 50%,
    transparent 62%
  );
  animation: prodNleShimmer 2.2s linear infinite;
}

.prod-nle-render-orbit {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  border-top-color: var(--accent);
  animation: prodSpin 0.85s linear infinite;
}

.prod-nle-render-label {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.prod-nle-playhead {
  position: absolute;
  top: 28px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  z-index: 4;
  cursor: ew-resize;
  border-radius: 2px;
}

.prod-nle-playhead::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -5px;
  width: 12px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.prod-nle-playhead-time {
  position: absolute;
  top: -26px;
  left: 6px;
  color: var(--accent);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1px solid #d6e4f8;
  border-radius: 6px;
  padding: 1px 6px;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.05);
}

@keyframes prodNleShimmer {
  to {
    transform: translateX(55%);
  }
}

@media (max-width: 720px) {
  .prod-nle-shell {
    left: 0;
    right: 0;
    border-radius: 14px 14px 0 0;
  }

  .prod-nle-summary {
    display: none;
  }

  .prod-nle-toolbar-right {
    gap: 0;
  }

  .prod-nle-watch {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .prod-nle-clip {
    width: 196px;
    flex-basis: 196px;
  }
}

.setup-block[data-step-id="content_mode"] .choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:900px;margin-inline:auto}
.setup-block[data-step-id="content_mode"] .choice-with-description{display:flex;flex-direction:column;align-items:flex-start;text-align:left;justify-content:center;gap:8px;min-height:104px;padding:16px 18px;border-radius:18px}
.choice-with-description strong{font-size:15px}.choice-with-description span{font-size:12px;line-height:1.45;color:#64758d;font-weight:400}
@media(max-width:700px){.setup-block[data-step-id="content_mode"] .choices{grid-template-columns:1fr}.setup-block[data-step-id="content_mode"] .choice-with-description{min-height:78px}}
