

:root {
  --bg: #f4f1e9;
  --bg-elevated: #fbfaf6;
  --surface: #ffffff;
  --surface-muted: #f7f6f1;
  --card: var(--surface);
  --ink: #121313;
  --text: #20221f;
  --muted: #65685d;
  --line: rgba(18, 19, 19, 0.10);
  --line-strong: rgba(18, 19, 19, 0.16);
  --accent: #121313;
  --accent-soft: #f4ff71;
  --soft: var(--accent-soft);
  --accent-2: #7c3aed;
  --info: #2563eb;
  --cyan: #0891b2;
  --blue: var(--info);
  --orange: #ea580c;
  --success: #166534;
  --success-bg: #dcfce7;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --focus-ring: #121313;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-sans);
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-base: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 33px;
  --fs-hero: clamp(40px, 6.2vw, 80px);
  --lh-tight: 1.05;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;
  --tracking-tight: -0.04em;
  --tracking-label: 0.08em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --page-pad: clamp(16px, 3vw, 28px);
  --content-max: 1240px;
  --studio-max: 1020px;
  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(18, 19, 19, 0.04);
  --shadow-sm: 0 8px 20px rgba(18, 19, 19, 0.06);
  --shadow-md: 0 16px 40px rgba(18, 19, 19, 0.08);
  --shadow-lg: 0 28px 70px rgba(18, 19, 19, 0.10);
  --shadow-xl: 0 32px 90px rgba(18, 19, 19, 0.16);
  --shadow-button: 0 14px 28px rgba(18, 19, 19, 0.16);
  --shadow: var(--shadow-md);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 280ms;
  --z-base: 1;
  --z-sticky: 40;
  --z-dropdown: 50;
  --z-overlay: 60;
  --z-modal: 70;
  --z-toast: 80;
  --z-skip: 100;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { max-width: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { width: 100%; max-width: 100vw; margin: 0; min-height: 100vh; font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-normal); background: var(--bg); color: var(--text); overflow-x: clip; overflow-y: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 19, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 19, 19, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 72%);
}
section[id] { scroll-margin-top: 96px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seo-cta :focus-visible,
.dashboard-welcome :focus-visible { outline-color: var(--accent-soft); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: 14px;
  left: 14px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(18, 19, 19, .12);
}
.skip-link:focus-visible { transform: translateY(0); }
.page-glow { position: fixed; width: 900px; height: 900px; top: -360px; right: -180px; background: radial-gradient(closest-side, rgba(244,255,113,.4), transparent), radial-gradient(closest-side at 30% 70%, rgba(255,214,199,.24), transparent); filter: blur(36px); pointer-events: none; }
.dashboard-glow { top: -440px; right: -140px; }
main { position: relative; width: min(100%, var(--content-max)); max-width: var(--content-max); margin: 0 auto; padding: var(--page-pad) var(--page-pad) var(--space-9); }
.topbar {
  position: sticky;
  top: 12px;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: min(calc(100% - var(--page-pad) * 2), var(--content-max));
  max-width: var(--content-max);
  min-height: 68px;
  margin: var(--space-5) auto 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--surface) 68%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  box-shadow: var(--shadow-md);
}
body > * { max-width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #f4ff71; font-size: 11px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: var(--radius-pill); font-size: var(--fs-md); font-weight: 600; }
.nav-links a:hover { color: var(--ink); background: var(--surface-muted); }
.auth-area { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.button.primary { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-button); }
.hero .button.primary { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-button); }
.button.soft { background: var(--accent-soft); color: var(--ink); }
.button.quiet { background: var(--surface); border-color: var(--line); }
.button.large { padding: 14px 24px; font-size: var(--fs-base); }
.button:disabled { opacity: .45; transform: none; cursor: not-allowed; box-shadow: none; }
.button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.button.primary.is-loading::after { border-color: var(--surface); border-right-color: transparent; }
.button.soft.is-loading::after,
.button.quiet.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .button:not(:disabled):active { transform: scale(0.98); }
}
@media (hover: hover) {
  .button:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .button.is-loading::after { animation: none; border-right-color: currentColor; opacity: 0.5; }
  .button, .gallery-card { transition: none !important; }
  .button:not(:disabled):hover, .gallery-card:hover { transform: none !important; }
}
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 34px auto 0;
  padding: 28px 0 0;
  text-align: center;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 8px 13px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow.small { font-size: 11px; padding: 6px 10px; letter-spacing: 0.12em; }
.section-heading .eyebrow.small { margin-bottom: var(--space-3); }
.hero-trust { font-size: var(--fs-sm); color: var(--muted); margin: var(--space-4) auto 0; max-width: 640px; }
.hero .eyebrow {
  color: #65685d;
  border-color: var(--line);
  background: rgba(251,250,246,.82);
  backdrop-filter: blur(14px);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(244,255,113,.5); }
h1, .hero h1, .pricing h2, .section-heading h2 {
  font-family: var(--font-display);
}
h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--ink); margin: var(--space-5) auto var(--space-4); }
.hero h1 { overflow-wrap: break-word; }
.hero h1 { max-width: 900px; margin-inline: auto; }
h1 span { background: linear-gradient(100deg, var(--ink), #4c5045); -webkit-background-clip: text; color: transparent; }
.hero h1 span {
  display: inline-block;
  padding: 2px 16px 6px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--ink);
  transform: rotate(-1deg);
  box-shadow: 0 14px 32px rgba(18, 19, 19, .10);
}
h2 { color: var(--ink); letter-spacing: -.8px; margin: 0; }
h3 { color: var(--ink); margin: 0; }
.subtitle { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 480px; margin: 0 0 30px; }
.hero .subtitle { color: var(--muted); max-width: 620px; margin-inline: auto; font-size: clamp(17px, 2vw, 21px); }
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.hero .button.quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.hero-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #65685d;
  font-size: 13px;
  font-weight: 700;
}
.hero-tags span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: middle;
}
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1060px;
  margin: 44px auto 0;
}
.gallery-card {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 20px;
  border: 1px solid rgba(18,19,19,.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18,19,19,.06);
  transition: transform .2s cubic-bezier(.2,0,0,1), box-shadow .2s cubic-bezier(.2,0,0,1);
}
.gallery-card::before,
.gallery-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}
.gallery-card::before {
  left: 20px;
  right: 58px;
  bottom: 44px;
  height: 8px;
}
.gallery-card::after {
  left: 20px;
  right: 92px;
  bottom: 24px;
  height: 8px;
}
.gallery-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  backdrop-filter: blur(12px);
}
.gallery-card.course { background: linear-gradient(145deg, #d6e4ff, #f4f6ff 64%, #fff); }
.gallery-card.pitch { background: linear-gradient(145deg, #f4ff71, #fffce0 62%, #fff); }
.gallery-card.report { background: linear-gradient(145deg, #d6f2e6, #f5fbf8 62%, #fff); }
.gallery-card.update { background: linear-gradient(145deg, #ffd7cc, #fff5ef 62%, #fff); }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(18,19,19,.09); }
.studio-panel {
  position: relative;
  z-index: 2;
  max-width: var(--studio-max);
  margin: var(--space-7) auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-xl);
}
.panel-top { display: grid; justify-items: center; gap: 8px; margin-bottom: 20px; min-width: 0; text-align: center; }
.panel-top h2 { font-size: 22px; }
.panel-chip { padding: 7px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.panel-meta { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.studio-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1fr); gap: 18px; align-items: stretch; }
.studio-actions { display: flex; flex-direction: column; gap: 14px; }
.workflow-list { display: grid; gap: 10px; }
.workflow-list article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.workflow-list article.is-current { border-color: var(--ink); box-shadow: var(--shadow-xs); }
.workflow-list article.is-done { border-left: 3px solid var(--success); }
.workflow-list span { color: var(--muted); font-size: 14px; font-weight: 900; }
.workflow-list strong { display: block; font-size: 14px; color: var(--ink); }
.workflow-list article > div { min-width: 0; }
.workflow-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: break-word; }
.utility-actions { display: flex; justify-content: flex-end; gap: 10px; }
.drop-zone {
  display: grid;
  place-items: center;
  min-height: 280px;
  height: 100%;
  padding: var(--space-6);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.drop-zone:hover,
.drop-zone.active,
.drop-zone:focus-within,
.drop-zone[data-state="dragging"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.drop-zone.has-file { border-style: solid; border-color: var(--line-strong); }
.drop-zone.is-error { border-color: var(--danger); background: linear-gradient(180deg, var(--danger-bg), var(--surface)); }
.upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.upload-icon svg { display: block; }
.drop-zone__title,
.drop-zone strong { display: block; font-size: var(--fs-xl); color: var(--ink); margin-bottom: 5px; }
.drop-zone .upload-hint { color: var(--muted); font-size: var(--fs-sm); }
.progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
  margin-top: var(--space-3);
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: inherit;
  transition: width var(--dur-slow) var(--ease-out);
}
.status { min-height: 22px; margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--fs-md); }
.section-block { margin-top: clamp(76px, 8vw, 104px); }
.section-heading { display: grid; max-width: 780px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(30px, 3vw, 40px); margin: 16px 0 12px; letter-spacing: -0.035em; }
.section-heading p:last-child { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.feature-grid article { background: var(--card); border: 1px solid rgba(18,19,19,.08); border-radius: 24px; padding: 18px; box-shadow: 0 14px 34px rgba(18, 19, 19, .05); }
.feature-grid h3 { margin-top: 18px; font-size: 18px; }
.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(18,19,19,.06);
}
.feature-media::before,
.feature-media::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}
.feature-media::before { left: 18px; right: 52px; bottom: 36px; height: 7px; }
.feature-media::after { left: 18px; right: 84px; bottom: 20px; height: 7px; }
.feature-media span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.feature-media.blue { background: linear-gradient(145deg, #d6e4ff, #f4f6ff 62%, #fff); }
.feature-media.lime { background: linear-gradient(145deg, #f4ff71, #fffce0 62%, #fff); }
.feature-media.green { background: linear-gradient(145deg, #d6f2e6, #f5fbf8 62%, #fff); }
.feature-media.coral { background: linear-gradient(145deg, #ffd7cc, #fff5ef 62%, #fff); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 13px; background: var(--soft); color: var(--accent); font-size: 18px; }
.feature-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.result, .history { margin-top: 56px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 16px 40px rgba(18, 19, 19, .05); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.render-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.render-result video { width: 100%; border-radius: 16px; background: #111827; }
.download { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 800; text-decoration: none; }
.slides { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.slide {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.slide-number {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}
.slide-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-s);
  background: var(--surface-muted);
  border: 1px solid var(--line);
}
.slide-image--empty {
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}
.slide h3 {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}
.slide-text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.narration-label {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}
.slide-narration { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-1); }
.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.slide .play-slide,
.slide .regenerate-slide { min-height: 44px; }
.history-list { display: grid; gap: 12px; }
.history-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.history-item strong { color: var(--ink); }
.history-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.history-item a { color: var(--accent); font-weight: 700; text-decoration: none; }
.history-status { font-size: 13px; font-weight: 800; text-transform: capitalize; }
.history-status.completed { color: #166534; }
.history-status.failed { color: #b91c1c; }
.history-empty { margin: 0; color: var(--muted); }
.empty-state { text-align: center; padding: var(--space-6) var(--space-4); }
.empty-state__title { margin: 0 0 var(--space-2); font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }
.empty-state__body { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--fs-md); }
.history-delete {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--danger-bg);
  color: var(--danger);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.narration-input { width: 100%; min-height: 108px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); resize: vertical; font: inherit; font-size: 14px; line-height: 1.6; color: var(--text); background: var(--surface-muted); }
.pricing {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  display: grid;
  gap: 28px;
  padding: 40px;
  border: 1px solid rgba(18,19,19,.08);
  border-radius: 36px;
  color: var(--ink);
  background: var(--soft);
  box-shadow: 0 28px 70px rgba(18,19,19,.1);
}
.pricing h2 { font-size: 30px; margin: 14px 0 10px; }
.pricing p { margin: 0; color: var(--muted); }
.pricing .eyebrow { color: var(--ink); border-color: rgba(18,19,19,.12); background: rgba(255,255,255,.46); }
.pricing h2 { color: var(--ink); }
.pricing p { color: rgba(18,19,19,.7); }
.pricing-head { max-width: 680px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.plan-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid rgba(18,19,19,.08); border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); }
.plan-card.featured { border: 2px solid var(--ink); background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-tier { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(18,19,19,.6); }
.plan-price { margin: 0; font-size: 38px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.plan-price span { font-size: 14px; font-weight: 700; color: rgba(18,19,19,.55); }
.plan-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: rgba(18,19,19,.75); font-size: 15px; line-height: 1.55; }
.plan-features li::before { content: "✓"; margin-right: 8px; font-weight: 900; color: #16a34a; }
.plan-card .button { margin-top: auto; text-align: center; min-height: 46px; }
.account-main { width: min(100%, 1180px); max-width: 1180px; }
.dashboard-shell { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 22px; margin-top: 28px; align-items: start; }
.dashboard-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 16px 40px rgba(18, 19, 19, .05); }
.center-card { text-align: center; padding: 46px 30px; margin-top: 28px; }
.center-card h1 { font-size: 33px; }
.center-card p { color: var(--muted); margin: 14px auto 24px; max-width: 430px; }
.profile-card { padding: 28px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-avatar img, .profile-avatar .avatar-fallback { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; font-size: 22px; }
.profile-head h1 { font-size: 25px; margin: 0; }
.muted { margin: 4px 0; color: var(--muted); }
.provider-pill { display: inline-block; margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; }
.profile-meta { margin-top: 24px; padding: 16px; border-radius: 16px; background: var(--surface-muted); border: 1px solid var(--line); }
.profile-meta span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.profile-meta strong { overflow-wrap: anywhere; font-size: 14px; }
.account-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dashboard-content { display: grid; gap: 22px; }
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-l);
  color: #fff;
  background:
    radial-gradient(560px 240px at 88% 0%, rgba(244,255,113,.20), transparent),
    radial-gradient(420px 260px at 0% 100%, rgba(255,214,199,.12), transparent),
    linear-gradient(135deg, var(--ink), #282a24);
  box-shadow: var(--shadow-lg);
}
.dashboard-welcome h2 { font-size: 26px; }
.dashboard-welcome p { margin: 8px 0 0; color: rgba(255,255,255,.72); }
.plan-badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #e5e7eb;
  font-weight: 900;
  backdrop-filter: blur(14px);
}
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.metric-card {
  position: relative;
  padding: 22px;
  padding-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 34px;
  height: 4px;
  border-radius: 999px;
}
.metric-card:nth-child(1)::before { background: var(--accent); }
.metric-card:nth-child(2)::before { background: var(--cyan); }
.metric-card:nth-child(3)::before { background: var(--orange); }
.metric-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-card strong { display: block; margin: 12px 0 10px; font-size: 23px; color: var(--ink); }
.metric-card strong, .history-item span, .status { font-variant-numeric: tabular-nums; }
.metric-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.history-panel { padding: 24px; }
.dashboard-history { gap: 14px; }
.auth-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-md);
}
.auth-user { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.auth-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--accent-soft); font-size: 12px; font-weight: 900; }
.profile-avatar .avatar-fallback { width: 68px; height: 68px; font-size: 22px; }
.paid-badge, .quota-badge { padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.paid-badge { background: #dcfce7; color: #166534; }
.quota-badge { background: var(--soft); color: var(--muted); }
.hidden { display: none !important; }

.not-found-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--space-9));
  padding-top: var(--space-8);
}
.not-found-card { max-width: 480px; width: 100%; }

.site-footer {
  margin-top: var(--space-9);
  padding: var(--space-6) var(--page-pad) var(--space-7);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  width: min(100%, var(--content-max));
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-footer nav a:hover { color: var(--ink); }
.site-footer__copy { margin: 0; }

.toast-region {
  position: fixed;
  z-index: var(--z-toast);
  right: var(--page-pad);
  bottom: var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: min(360px, calc(100vw - var(--page-pad) * 2));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--dur-slow) var(--ease-spring);
}
.toast__title { grid-column: 1; margin: 0; font-size: var(--fs-sm); font-weight: 800; color: var(--ink); }
.toast__body { grid-column: 1; margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-snug); }
.toast__close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.toast--error { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: var(--danger-bg); }
.toast--success { border-color: color-mix(in srgb, var(--success) 35%, var(--line)); background: var(--success-bg); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .progress__bar { transition: none; }
  .skeleton__media, .skeleton__line { animation: none !important; }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}
.modal[hidden] { display: none !important; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 19, 19, 0.45);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}
.modal__panel h2 { margin: 0 0 var(--space-2); font-size: var(--fs-xl); }
.modal__panel p { margin: 0 0 var(--space-5); color: var(--muted); font-size: var(--fs-md); line-height: var(--lh-normal); }
.modal__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-2); }

.skeleton.slide-skeleton {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  background: var(--surface-muted);
}
.skeleton__line {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--line);
  margin-bottom: var(--space-3);
}
.skeleton__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  background: var(--line);
  margin-bottom: var(--space-3);
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton__line, .skeleton__media {
    animation: skeleton-pulse 1.4s ease-in-out infinite;
  }
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 960px) {
  main { padding: var(--page-pad) var(--page-pad) var(--space-8); }
  .topbar { flex-wrap: wrap; justify-content: space-between; gap: 14px; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; overflow: auto; }
  .studio-grid, .dashboard-shell { grid-template-columns: 1fr; }
  .feature-grid, .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workflow-list article {
    grid-template-columns: 30px minmax(0,1fr);
    align-items: start;
  }
  .workflow-list article .button {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .panel-meta { white-space: normal; }
  .hero { padding-inline: 0; }
  .studio-panel { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-l); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .feature-grid, .metric-grid, .actions { grid-template-columns: 1fr; }
  .hero-cta, .account-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .button, .account-actions .button { width: 100%; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .history-item { grid-template-columns: 1fr; }
  .narration-input { font-size: 16px; }
  .hero-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
  .gallery-card { padding: 14px; border-radius: 20px; }
  .gallery-card span { padding: 5px 8px; font-size: 10px; }
  .gallery-card::before { right: 46px; bottom: 38px; height: 6px; }
  .gallery-card::after { right: 74px; bottom: 22px; height: 6px; }
}

/* Timeline editor */
.timeline-section { margin-top: 2rem; }
.timeline-status { font-size: .8rem; color: var(--muted); margin-left: .5rem; }
.timeline-tracks { display: flex; flex-direction: column; gap: .35rem; margin-top: .75rem; }
.timeline-track-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.timeline-clips { display: flex; gap: .5rem; overflow-x: auto; padding: .35rem 0; min-height: 72px; align-items: center; }
.timeline-clip {
  position: relative; flex: 0 0 auto; width: 128px; height: 72px;
  border-radius: 8px; overflow: hidden; cursor: grab;
  border: 2px solid transparent; background: var(--card);
  display: flex; align-items: flex-end;
}
.timeline-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.timeline-clip .clip-label {
  position: relative; z-index: 1; font-size: .65rem; font-weight: 600;
  padding: .15rem .4rem; background: rgba(0,0,0,.55); color: #fff;
  width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timeline-clip.selected { border-color: var(--accent); }
.timeline-clip.sortable-ghost { opacity: .4; }
.timeline-audio-row .timeline-clip { background: var(--accent-soft); }
.timeline-audio-row .clip-label { background: rgba(0,0,0,.4); }
.timeline-editor { margin-top: .75rem; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.timeline-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.timeline-editor-head span { font-weight: 600; font-size: .85rem; }
.timeline-editor-actions { display: flex; gap: .4rem; }
.timeline-narration-input { width: 100%; resize: vertical; font: inherit; }

/* SEO content blocks */
.content-grid,
.usecase-grid { display: grid; gap: 22px; margin-top: 30px; }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-heading.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-heading.center p:last-child { margin-inline: auto; max-width: 700px; }
.content-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(18, 19, 19, .08);
  border-radius: 30px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(18, 19, 19, .05);
}
.content-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.content-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 2px solid var(--ink);
}
.content-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.bp-card {
  border: 0;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
}
.bp-card.course { background: linear-gradient(160deg, #d8e7ff, #e6f1ff 62%, #f7fbff); }
.bp-card.pitch { background: linear-gradient(160deg, #d9f3e4, #e9fbf1 62%, #f7fffb); }
.bp-card.report { background: linear-gradient(160deg, #ffeeac, #fff8d2 62%, #fffdf2); }
.bp-card.update { background: linear-gradient(160deg, #ded6ff, #ece6ff 62%, #f8f6ff); }
.bp-card h3 { display: block; margin-top: 0; font-size: 21px; }
.bp-card h3::before { display: none; }
.bp-card p { color: rgba(18, 19, 19, .72); }
.bp-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 18px rgba(18, 19, 19, .06);
}
.bp-icon svg { width: 22px; height: 22px; }
.bp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 19, 19, .10);
}
.bp-meta span { display: block; font-size: 12px; font-weight: 700; color: rgba(18, 19, 19, .58); }
.bp-meta strong { font-size: 16px; }
.faq-list { display: grid; gap: 14px; max-width: 900px; }
.faq-list details {
  border: 1px solid rgba(18, 19, 19, .07);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.faq-list details:hover { border-color: rgba(18, 19, 19, .14); box-shadow: var(--shadow-sm); }
.faq-list summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+ "; color: var(--accent); }
.faq-list details[open] summary::before { content: "− "; }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* SEO landing pages */
.seo-hero {
  position: relative;
  margin-top: clamp(32px, 5vw, 58px);
  padding: clamp(38px, 5vw, 76px) clamp(24px, 4vw, 58px);
  border: 1px solid rgba(18, 19, 19, .08);
  border-radius: 38px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 255, 113, .48), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(247, 246, 241, .9));
  box-shadow: var(--shadow-lg);
}
.seo-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(214, 228, 255, .42);
  filter: blur(12px);
}
.seo-hero > * { position: relative; z-index: 1; }
.seo-hero .eyebrow { margin-bottom: var(--space-4); }
.seo-hero h1 {
  max-width: 860px;
  margin: 0 auto var(--space-4);
  font-size: clamp(38px, 5.5vw, 68px);
}
.seo-hero .subtitle { max-width: 760px; margin: 0 auto; font-size: var(--fs-lg); line-height: 1.7; color: var(--muted); }
.seo-hero-cta { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: var(--space-5); }
.seo-facts {
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.seo-facts span { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .82); }
.seo-lead {
  max-width: 830px;
  margin: var(--space-5) auto 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.seo-section { margin-top: clamp(64px, 7vw, 96px); }
.seo-panel {
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(18, 19, 19, .08);
  border-radius: 32px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}
.seo-panel h2 { margin: 0; font-family: var(--font-display); font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.seo-panel > p { max-width: 780px; margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.seo-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.seo-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(18, 19, 19, .07);
  border-radius: 20px;
  background: var(--surface-muted);
}
.seo-list span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 900; }
.seo-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }
.seo-list p { margin: 0; color: var(--muted); line-height: 1.65; }
.seo-answer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.seo-answer article { padding: 24px; border-radius: 24px; border: 1px solid rgba(18, 19, 19, .08); background: #fff; }
.seo-answer h3 { margin: 0 0 10px; font-size: 19px; }
.seo-answer p { margin: 0; color: var(--muted); line-height: 1.68; }
.seo-cta {
  margin-top: clamp(64px, 7vw, 92px);
  padding: clamp(30px, 4vw, 52px);
  border-radius: 36px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, var(--ink), #282a24);
  box-shadow: var(--shadow-lg);
}
.seo-cta h2 { max-width: 760px; margin: 0 auto; font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
.seo-cta p { max-width: 650px; margin: 16px auto 28px; color: rgba(255, 255, 255, .74); font-size: 17px; }
.seo-cta .button.primary { background: var(--accent-soft); color: var(--ink); box-shadow: none; }
.seo-cta .button.quiet { background: transparent; border-color: rgba(255, 255, 255, .24); color: #fff; }
@media (max-width: 860px) {
  .seo-answer { grid-template-columns: 1fr; }
  .seo-hero { border-radius: 28px; }
  .seo-cta { border-radius: 28px; }
}

@media (max-width: 1080px) {
  .content-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
}

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

@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
}
