:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --surface: #fffefa;
  --surface-muted: #eeede5;
  --ink: #172b29;
  --ink-soft: #405450;
  --muted: #64736d;
  --line: #d9ddd2;
  --line-strong: #bfc9bd;
  --coral: #c95536;
  --coral-dark: #a83e27;
  --lime: #d6ef72;
  --sage: #d8e7dc;
  --night: #182b2a;
  --shadow: 0 24px 64px rgba(27, 49, 43, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  transition: background .2s ease, color .2s ease;
}
body.theme-dark {
  color-scheme: dark;
  --paper: #172321;
  --surface: #202e2b;
  --surface-muted: #263632;
  --ink: #f1f0e8;
  --ink-soft: #d5e0d8;
  --muted: #adbbb1;
  --line: #40534b;
  --line-strong: #64766a;
  --coral: #f18461;
  --coral-dark: #ff9b79;
  --lime: #d6ef72;
  --sage: #344a42;
  --night: #0e1816;
  --shadow: 0 24px 64px rgba(0, 0, 0, .22);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }
.loading-shell { padding: 40px; color: var(--muted); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.content-width { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.site-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}
.preview-banner { display: flex; min-height: 31px; align-items: center; justify-content: center; gap: 10px; padding: 5px 14px; border-bottom: 1px solid var(--line); background: var(--surface-muted); color: var(--muted); text-align: center; }
.preview-banner span { color: var(--coral-dark); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.preview-banner p { margin: 0; font-size: 9px; }
.header-inner {
  min-height: 78px;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand .logo-mark { width: 42px; height: 42px; color: var(--night); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 12px; letter-spacing: .17em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a, .text-button {
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.main-nav a { position: relative; padding: 28px 0 25px; }
.main-nav a:hover, .main-nav a.active { color: var(--coral); }
.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}
.login-link { padding: 8px 0; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: #fffdf5; }
.button-primary:hover { background: var(--coral-dark); }
.button-dark { background: var(--night); color: #f5f3ec; }
.button-dark:hover { background: var(--ink-soft); }
.button-outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--coral); color: var(--coral); }
.button-small { min-height: 42px; padding-inline: 15px; font-size: 13px; }
.mobile-menu-toggle { display: none; }
.preview-user { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.preview-user button { padding: 6px 0; border: 0; background: none; color: var(--ink); font-size: 12px; cursor: pointer; }

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  padding-block: 58px 72px;
}
.hero-copy { max-width: 540px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 15%, transparent); }
.hero h1, .page-hero h1 {
  margin: 23px 0 19px;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .99;
}
.hero h1 em { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-copy > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.hero-cta { margin-top: 29px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 35px; color: var(--muted); font-size: 11px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); content: ""; }

.creator-section { padding-block: 74px 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.section-heading h2, .pricing-section h2, .closing-cta h2 {
  margin: 9px 0 0;
  font-size: clamp(31px, 3.5vw, 45px);
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1.08;
}
.section-heading > p { max-width: 350px; margin: 0 0 2px; color: var(--muted); font-size: 14px; }
.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr);
  align-items: start;
  gap: 18px;
}
.creator-form, .storyboard-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.creator-form { padding: clamp(19px, 3vw, 34px); }
.form-block { margin-bottom: 28px; }
.block-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.block-title h3, .field-heading h3 { margin: 0; font-size: 15px; font-weight: 700; }
.step-tag, .field-number { display: inline-grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 8px; background: var(--surface-muted); color: var(--coral); font-size: 10px; font-weight: 800; }
.scene-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scene-option {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.scene-option:hover { border-color: var(--line-strong); }
.scene-option.is-selected { border-color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--ink-soft); }
.scene-option-copy strong, .scene-option-copy small { display: block; }
.scene-option-copy strong { font-size: 11px; line-height: 1.35; }
.scene-option-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.radio-mark { width: 13px; height: 13px; border: 1px solid var(--line-strong); border-radius: 50%; }
.is-selected .radio-mark { border: 4px solid var(--coral); }
.field-heading { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.field-heading h3 { font-size: 13px; }
.field-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.optional-subject { margin-top: 23px; }
.optional-tag { margin-left: 5px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 9px; font-weight: 600; }
.upload-row { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 10px; }
.upload-row-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upload-tile { position: relative; min-height: 117px; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 9px; background: color-mix(in srgb, var(--surface-muted) 42%, var(--surface)); }
.upload-trigger { display: flex; width: 100%; min-height: 117px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; border: 0; background: transparent; text-align: center; cursor: pointer; }
.upload-trigger:hover .upload-symbol { transform: translateY(-2px); background: var(--lime); }
.upload-trigger strong { font-size: 11px; }
.upload-trigger > span:last-child { max-width: 150px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.upload-symbol { display: grid; width: 29px; height: 29px; margin-bottom: 3px; place-items: center; border-radius: 8px; background: var(--sage); color: var(--ink-soft); font-size: 18px; transition: transform .18s, background .18s; }
.has-file { display: flex; flex-direction: column; border-style: solid; }
.has-file img { display: block; width: 100%; height: 85px; object-fit: cover; background: var(--surface-muted); }
.uploaded-meta { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; }
.uploaded-meta strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.uploaded-meta span { color: var(--muted); font-size: 8px; }
.remove-photo { position: absolute; top: 6px; right: 6px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: rgba(23,43,41,.86); color: white; font-size: 18px; cursor: pointer; }
.add-angle { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--coral); font-size: 11px; font-weight: 700; cursor: pointer; }
.add-angle span { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.upload-rules { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.form-alert { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--coral); border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--coral) 9%, var(--surface)); color: var(--coral-dark); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.settings-grid .form-block { min-width: 0; margin-bottom: 17px; }
.choice-row { display: flex; gap: 7px; }
.choice-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 63px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 8px 8px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.choice-card:hover { border-color: var(--line-strong); }
.choice-card.is-selected { border-color: var(--ink-soft); background: color-mix(in srgb, var(--sage) 35%, var(--surface)); box-shadow: inset 0 0 0 1px var(--ink-soft); }
.choice-card strong { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 9px; }
.choice-check { position: absolute; top: 7px; right: 7px; color: var(--coral); font-size: 10px; font-weight: 900; }
.ratio-options .choice-card { min-height: 63px; }
.locked-note { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 5px 0 16px; color: var(--muted); font-size: 11px; cursor: pointer; }
.consent-row input { position: absolute; width: 1px; height: 1px; opacity: .01; }
.custom-check { display: grid; width: 17px; height: 17px; flex: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 4px; color: #fff; font-size: 11px; }
.consent-row input:checked + .custom-check { border-color: var(--coral); background: var(--coral); }
.consent-row input:focus-visible + .custom-check { outline: 3px solid var(--coral); outline-offset: 3px; }
.consent-row a, .dialog-legal a { color: var(--coral-dark); text-underline-offset: 3px; }
.create-button { width: 100%; min-height: 57px; justify-content: space-between; padding-inline: 18px; }
.create-button > span:first-child { margin-right: auto; }
.button-price { font-size: 12px; white-space: nowrap; }
.button-price small { color: rgba(255,255,255,.78); font-size: 10px; font-weight: 500; }
.minimum-note { margin: 9px 0 14px; color: var(--muted); font-size: 10px; text-align: center; }
.trust-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; color: var(--muted); font-size: 9px; }
.prompt-review { margin-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.prompt-review summary { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; }
.prompt-review summary::-webkit-details-marker { display: none; }
.prompt-review summary::after { color: var(--coral); content: "＋"; font-size: 16px; }
.prompt-review[open] summary::after { content: "−"; }
.prompt-label { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 500; }
.prompt-intro { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.prompt-review pre, .prompt-dialog pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.storyboard-card { position: sticky; top: 101px; padding: 22px; }
.storyboard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.storyboard-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.storyboard-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.storyboard-card h3 { margin: 13px 0 4px; font-size: 22px; font-weight: 620; letter-spacing: -.035em; }
.storyboard-summary { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.storyboard-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 17px 0; }
.storyboard-meta small, .storyboard-meta strong { display: block; }
.storyboard-meta small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.storyboard-meta strong { margin-top: 3px; font-size: 10px; }
.storyboard-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border-radius: 7px; background: var(--surface-muted); }
.storyboard-note > span { color: var(--coral); font-size: 15px; }
.storyboard-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.pricing-section { padding-block: 75px 80px; }
.pricing-section.pricing-page { padding-top: 24px; }
.model-line { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 12px 15px; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.model-icon { color: var(--coral); font-size: 15px; }
.model-line strong { color: var(--ink); font-size: 11px; }
.model-line a { margin-left: auto; color: var(--coral-dark); font-size: 10px; text-decoration: none; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price-card { position: relative; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.price-card.featured { border-color: var(--ink-soft); box-shadow: 0 8px 32px rgba(27,49,43,.08); }
.price-badge { position: absolute; top: -10px; right: 18px; padding: 4px 8px; border-radius: 4px; background: var(--lime); color: #26352b; font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.price-name { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.price-name span { color: var(--line-strong); font-size: 10px; }
.credit-amount { display: flex; align-items: baseline; gap: 7px; margin-top: 19px; font-size: 40px; font-weight: 650; letter-spacing: -.07em; line-height: 1; }
.credit-amount small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.pack-note { min-height: 31px; margin: 8px 0 18px; color: var(--muted); font-size: 11px; }
.price-value { display: flex; align-items: baseline; gap: 8px; padding-block: 13px; border-top: 1px solid var(--line); }
.price-value strong { font-size: 24px; font-weight: 650; letter-spacing: -.04em; }
.price-value span { color: var(--muted); font-size: 10px; }
.price-detail { min-height: 40px; margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.price-button { width: 100%; min-height: 43px; justify-content: space-between; padding-inline: 13px; font-size: 11px; }
.price-card ul { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; color: var(--ink-soft); font-size: 10px; list-style: none; }
.price-card li { position: relative; padding-left: 17px; }
.price-card li::before { position: absolute; left: 0; color: var(--coral); content: "✓"; font-weight: 800; }
.saving-note { margin-top: 15px; color: var(--coral-dark); font-size: 9px; font-weight: 700; }
.tax-note, .checkout-boundary { margin: 18px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.checkout-boundary { margin-top: 4px; font-size: 9px; }
.how-section { padding-block: 76px 88px; border-top: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { position: relative; min-height: 220px; padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.step-index { position: absolute; top: 18px; right: 20px; color: var(--line-strong); font-size: 11px; font-weight: 800; }
.step-icon { display: grid; width: 45px; height: 45px; margin-bottom: 24px; place-items: center; border-radius: 12px; background: var(--sage); color: var(--ink-soft); font-size: 22px; }
.step-card:nth-child(2) .step-icon { background: #f2d6c8; color: var(--coral-dark); }
.step-card h3 { margin: 0 0 7px; font-size: 15px; }
.step-card p { max-width: 270px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.faq-section { padding-block: 20px 88px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--coral); font-size: 20px; font-weight: 400; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { max-width: 760px; margin: -2px 0 20px; color: var(--muted); font-size: 13px; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 86px; padding: 35px 39px; border-radius: 13px; background: var(--sage); }
.closing-cta h2 { font-size: clamp(28px, 3vw, 39px); }
.closing-cta p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.closing-cta .button { flex-shrink: 0; }

.site-footer { padding: 42px max(32px, calc((100% - 1160px) / 2)) 20px; border-top: 1px solid var(--line); background: var(--surface-muted); }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 40px; padding-bottom: 32px; }
.footer-brand p { max-width: 300px; margin: 14px 0 6px; color: var(--muted); font-size: 12px; }
.fan-note { color: var(--muted); font-size: 9px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-column h2 { margin: 4px 0 5px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.footer-column a, .footer-bottom a { color: var(--ink-soft); font-size: 11px; text-decoration: none; }
.footer-column a:hover, .footer-bottom a:hover { color: var(--coral); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.footer-bottom a { margin-left: auto; font-size: 10px; }
.footer-preferences { border: 0; padding: 0; background: none; color: var(--ink-soft); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-preferences:hover { color: var(--coral); }
.privacy-choice { position: fixed; z-index: 1200; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 55px rgba(0, 0, 0, .28); }
.privacy-choice h2 { margin: 8px 32px 8px 0; font-size: 21px; }
.privacy-choice p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy-choice p a { color: var(--ink); text-underline-offset: 3px; }
.privacy-choice-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.privacy-choice-actions .button { min-height: 39px; padding-inline: 12px; font-size: 10px; }
.privacy-choice-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 21px; }

.page-main { min-height: 56vh; }
.page-hero { padding-block: 88px 42px; }
.page-hero h1 { max-width: 800px; font-size: clamp(42px, 5vw, 64px); }
.page-hero > p { max-width: 630px; margin: 0; color: var(--muted); font-size: 16px; }
.compact-hero { padding-bottom: 22px; }
.compact-hero h1 { margin-top: 14px; }
.updated-line { margin-top: 17px; color: var(--muted); font-size: 10px; }
.pricing-faq { max-width: 820px; padding: 8px 0 76px; }
.pricing-faq h2 { margin: 0 0 8px; font-size: 18px; }
.pricing-faq p { color: var(--muted); font-size: 12px; }
.pricing-faq a { color: var(--coral-dark); font-size: 11px; text-decoration: none; }
.history-page { padding-bottom: 88px; }
.library-hero { padding-bottom: 28px; }
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: center;
}
.orbit-two { inset: 5px 73px; transform: rotate(28deg); }
.legal-page { padding-bottom: 90px; }
.legal-page .page-hero { padding-bottom: 35px; }
.legal-card { max-width: 870px; margin-bottom: 25px; padding: 6px 30px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-section { display: grid; grid-template-columns: 55px 1fr; gap: 16px; padding: 27px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-index { padding-top: 6px; color: var(--coral); font-size: 11px; font-weight: 800; }
.legal-section h2 { margin: 0 0 8px; font-size: 17px; }
.legal-section p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.legal-contact { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--muted); font-size: 11px; }
.legal-contact a { color: var(--coral-dark); text-decoration: none; }
.contact-page { padding-bottom: 90px; }
.contact-card { display: grid; grid-template-columns: 60px 1fr; gap: 22px; max-width: 800px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--sage); color: var(--coral); font-size: 24px; }
.contact-card h2 { margin: 0 0 5px; font-size: 18px; }
.contact-card p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.contact-card .button { min-height: 44px; font-size: 11px; }
.report-card { max-width: 800px; margin-top: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; }
.report-card p { margin: 8px 0; color: var(--muted); font-size: 11px; }
.report-card a { color: var(--coral-dark); font-size: 11px; text-decoration: none; }

.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 25px; background: rgba(11, 24, 21, .58); backdrop-filter: blur(6px); }
.dialog-card { position: relative; width: min(480px, 100%); max-height: min(92vh, 850px); overflow-y: auto; padding: 33px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.dialog-logo { margin-bottom: 18px; }
.dialog-logo .logo-mark { width: 43px; height: 43px; color: var(--night); }
.dialog-card h2 { margin: 8px 0 5px; font-size: 27px; letter-spacing: -.045em; }
.dialog-intro, .checkout-dialog > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.google-button { width: 100%; justify-content: space-between; border-color: var(--line-strong); background: transparent; color: var(--ink); }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.or-divider::before, .or-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.auth-form { display: grid; gap: 13px; }
.auth-form > label:not(.legal-check) { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; }
.password-label-actions { display: flex; justify-content: space-between; }
.password-label-actions button { border: 0; background: none; color: var(--coral-dark); font-size: 10px; cursor: pointer; }
.legal-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; }
.legal-check input { margin: 3px 0 0; accent-color: var(--coral); }
.auth-submit { width: 100%; margin-top: 2px; }
.auth-notice { margin: 12px 0 0; padding: 10px; border-radius: 7px; background: var(--surface-muted); color: var(--ink-soft); font-size: 11px; }
.auth-switch { display: block; margin: 14px auto 0; color: var(--coral-dark); font-size: 11px; }
.local-preview { display: grid; grid-template-columns: 8px 1fr; gap: 0 9px; margin-top: 20px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.local-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--coral); }
.local-preview p { grid-column: 2; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.local-preview p strong { color: var(--ink-soft); }
.local-preview button { grid-column: 2; justify-self: start; margin-top: 8px; padding: 4px 0; border: 0; background: none; color: var(--coral-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
.dialog-legal { margin: 18px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; text-align: center; }
.checkout-dialog { width: min(430px, 100%); }
.checkout-total { display: flex; align-items: baseline; gap: 9px; padding-block: 16px; border-block: 1px solid var(--line); }
.checkout-total strong { font-size: 30px; letter-spacing: -.05em; }
.checkout-total span { color: var(--muted); font-size: 11px; }
.config-boundary { display: grid; gap: 5px; margin: 14px 0 20px; padding: 13px; border-left: 3px solid var(--coral); border-radius: 0 7px 7px 0; background: var(--surface-muted); }
.config-boundary strong { color: var(--ink); font-size: 11px; }
.config-boundary span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.prompt-dialog { width: min(760px, 100%); }
.prompt-dialog pre { max-height: 45vh; margin-top: 14px; }
.credit-sheet { width: min(470px, 100%); }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.balance-grid > div { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.balance-grid small { color: var(--muted); font-size: 10px; }
.balance-grid strong { font-size: 17px; }
.credit-sheet > p { color: var(--muted); font-size: 12px; }
.sheet-close { display: block; margin: 12px auto 0; color: var(--muted); }
.toast { position: fixed; z-index: 70; right: 22px; bottom: 22px; max-width: min(400px, calc(100% - 44px)); padding: 13px 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--night); color: #fffdf5; box-shadow: var(--shadow); font-size: 11px; }

@media (max-width: 980px) {
  .hero { min-height: 500px; gap: 36px; }
  .hero h1 { font-size: clamp(44px, 6vw, 62px); }
  .creator-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .8fr); }
  .scene-option { grid-template-columns: 68px minmax(0,1fr) 13px; gap: 8px; }
  .storyboard-card { padding: 16px; }
  .price-card { padding: 19px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 75px; }
  .content-width { width: min(100% - 36px, 570px); }
  .header-inner { width: calc(100% - 28px); min-height: 67px; gap: 11px; }
  .preview-banner { min-height: 30px; gap: 7px; }
  .preview-banner p { font-size: 8px; }
  .brand { gap: 8px; }
  .brand .logo-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 10px; }
  .brand small { font-size: 7px; }
  .mobile-menu-toggle { display: flex; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
  .mobile-menu-toggle span { width: 15px; height: 1.5px; background: var(--ink); }
  .main-nav { position: absolute; top: 66px; right: 14px; left: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 44px; padding: 11px 13px; border-radius: 6px; font-size: 13px; }
  .main-nav a.active { background: var(--surface-muted); }
  .main-nav a.active::after { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .theme-button { width: 34px; height: 34px; font-size: 17px; }
  .header-actions .login-link { display: none; }
  .header-actions .button-small { min-height: 36px; gap: 5px; padding-inline: 9px; font-size: 10px; }
  .preview-user { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-block: 51px 45px; }
  .hero h1 { max-width: 560px; margin-top: 17px; font-size: clamp(43px, 12vw, 61px); line-height: 1.01; }
  .hero-copy > p { max-width: 540px; font-size: 15px; }
  .hero-cta { min-height: 48px; margin-top: 22px; }
  .hero-proof { gap: 9px 14px; margin-top: 22px; font-size: 9px; }
  .creator-section { padding-block: 48px 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 21px; }
  .section-heading h2, .pricing-section h2 { font-size: 32px; }
  .section-heading > p { max-width: 500px; font-size: 12px; }
  .creator-grid { grid-template-columns: 1fr; gap: 13px; }
  .creator-form { order: 1; padding: 17px 14px; }
  .storyboard-card { position: static; order: 2; padding: 15px; }
  .storyboard-card h3 { font-size: 19px; }
  .storyboard-summary { font-size: 11px; }
  .scene-options { grid-template-columns: 1fr; gap: 8px; }
  .scene-option { grid-template-columns: 76px minmax(0,1fr) 15px; gap: 10px; }
  .scene-option-copy strong { font-size: 11px; }
  .scene-option-copy small { font-size: 9px; }
  .form-block { margin-bottom: 23px; }
  .settings-grid { grid-template-columns: 1fr; gap: 0; }
  .settings-grid .form-block { margin-bottom: 17px; }
  .choice-card { min-height: 58px; }
  .upload-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-row-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-tile, .upload-trigger { min-height: 110px; }
  .has-file img { height: 78px; }
  .create-button { min-height: 54px; gap: 8px; padding-inline: 12px; font-size: 12px; }
  .create-button > span:first-child { max-width: 45%; line-height: 1.3; text-align: left; }
  .button-price { font-size: 10px; }
  .button-price small { font-size: 9px; }
  .trust-points { justify-content: flex-start; font-size: 9px; }
  .storyboard-meta { padding: 13px 0; }
  .pricing-section { padding-block: 51px 57px; }
  .pricing-section.pricing-page { padding-top: 14px; }
  .model-line { flex-wrap: wrap; gap: 7px; padding-block: 11px; font-size: 10px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 12px; }
  .price-card { padding: 19px; }
  .price-card.featured { margin-top: 4px; }
  .credit-amount { margin-top: 12px; font-size: 36px; }
  .pack-note, .price-detail { min-height: 0; }
  .price-value { padding-block: 10px; }
  .price-value strong { font-size: 22px; }
  .price-card ul { grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 9px; }
  .price-card li:first-child { grid-column: 1 / -1; }
  .how-section { padding-block: 54px 61px; }
  .steps-grid { grid-template-columns: 1fr; gap: 9px; }
  .step-card { display: grid; min-height: 0; grid-template-columns: 45px 1fr; column-gap: 13px; padding: 15px; }
  .step-index { top: 14px; right: 15px; }
  .step-icon { width: 41px; height: 41px; grid-row: 1 / span 2; margin: 0; }
  .step-card h3 { align-self: end; padding-right: 33px; font-size: 13px; }
  .step-card p { font-size: 10px; }
  .faq-section { padding-block: 13px 62px; }
  .faq-item summary { min-height: 58px; font-size: 12px; }
  .faq-item p { font-size: 11px; }
  .closing-cta { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 55px; padding: 24px 20px; }
  .closing-cta h2 { font-size: 29px; }
  .closing-cta p { font-size: 11px; }
  .site-footer { padding: 31px 18px 17px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 27px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 340px; }
  .footer-bottom { gap: 9px 16px; font-size: 8px; }
  .footer-bottom a { margin-left: 0; }
  .privacy-choice { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); padding: 18px; }
  .privacy-choice-actions { flex-direction: column; }
  .privacy-choice-actions .button { width: 100%; }
  .page-hero { padding-block: 54px 29px; }
  .page-hero h1 { margin-block: 12px; font-size: 43px; }
  .page-hero > p { font-size: 13px; }
  .compact-hero { padding-bottom: 19px; }
  .history-page { padding-bottom: 59px; }
  .legal-page { padding-bottom: 60px; }
  .legal-card { padding-inline: 16px; }
  .legal-section { grid-template-columns: 30px 1fr; gap: 8px; padding-block: 21px; }
  .legal-section h2 { font-size: 15px; }
  .legal-section p { font-size: 11px; }
  .legal-contact { flex-direction: column; gap: 6px; }
  .contact-page { padding-bottom: 59px; }
  .contact-card { grid-template-columns: 42px 1fr; gap: 13px; padding: 18px 14px; }
  .contact-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
  .contact-card h2 { font-size: 15px; }
  .contact-card p { font-size: 10px; }
  .contact-card .button { max-width: 100%; padding-inline: 11px; font-size: 9px; }
  .report-card { padding: 16px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .dialog-card { width: 100%; max-height: min(92dvh, 850px); padding: 27px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .auth-dialog { margin-top: 24px; }
  .dialog-card h2 { font-size: 25px; }
  .dialog-legal { margin-top: 15px; }
  .toast { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 370px) {
  .content-width { width: calc(100% - 28px); }
  .header-inner { width: calc(100% - 20px); }
  .brand .logo-mark { width: 32px; height: 32px; }
  .brand strong { font-size: 9px; }
  .brand small { font-size: 6px; }
  .header-actions { gap: 5px; }
  .header-actions .button-small { padding-inline: 7px; font-size: 9px; }
  .hero h1 { font-size: 42px; }
  .creator-form { padding-inline: 11px; }
  .upload-row-multi { grid-template-columns: 1fr 1fr; }
  .create-button { font-size: 11px; }
  .button-price small { display: block; }
  .footer-main { gap: 22px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.video-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.video-card video, .video-card-poster { display: grid; width: 100%; aspect-ratio: 16 / 9; background: var(--night); color: #fffdf5; object-fit: contain; }
.video-card-poster { place-content: center; justify-items: center; gap: 8px; background: linear-gradient(140deg, #172c29, #42534b); }
.video-card-poster span { color: var(--lime); font-size: 25px; }
.video-card-poster strong { font-size: 12px; }
.video-card-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; }
.video-card-copy > div { display: grid; gap: 4px; }
.video-card-copy strong { font-size: 11px; }
.video-card-copy small { color: var(--muted); font-size: 9px; }
.generation-dialog { width: min(590px, 100%); }
.generation-dialog > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.generation-video { display: block; width: 100%; max-height: 56vh; margin-top: 14px; border-radius: 9px; background: var(--night); }

@media (max-width: 760px) {
  .video-library-grid { grid-template-columns: 1fr; gap: 12px; }
  .video-card-copy { padding: 12px; }
}


/* Reference-matched site surface */
body.theme-dark {
  --paper: #10161d;
  --surface: #19232e;
  --surface-muted: #202c38;
  --ink: #edf3f6;
  --ink-soft: #cbd6df;
  --muted: #a3afba;
  --line: #344350;
  --line-strong: #566878;
  --coral: #79d7c3;
  --coral-dark: #99e6d6;
  --lime: #80dcca;
  --sage: #20393c;
  --night: #090e13;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}
.site-header { border-color: #26333e; background: rgba(15, 21, 28, .97); }
.header-inner { width: min(1200px, calc(100% - 48px)); min-height: 64px; gap: 25px; }
.brand { gap: 10px; color: #f2f6f8; }
.brand .logo-mark { display: block; width: 30px; height: 30px; object-fit: contain; }
.brand strong { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.brand small { display: none; }
.main-nav { gap: 27px; }
.main-nav a, .text-button { color: var(--ink-soft); }
.main-nav a { padding-block: 21px; }
.main-nav a.active::after { bottom: 12px; }
.header-actions { gap: 19px; }
.button { border-radius: 7px; }
.button-primary { background: #81d9c5; color: #0c171b; }
.button-primary:hover { background: #a0ead8; }
.button-dark { background: #253442; color: #edf5f7; }
.button-dark:hover { background: #314657; }

.home-section { padding-block: 30px 52px; }
.home-intro { padding-bottom: 22px; }
.home-intro .eyebrow { padding: 5px 12px; border: 1px solid #3a6667; border-radius: 100px; background: rgba(89, 170, 159, .11); color: #9be2d4; font-size: 9px; letter-spacing: .15em; }
.home-intro h1 { margin: 12px 0 17px; max-width: 1100px; color: #99dcca; background: linear-gradient(100deg, #8be2c9 4%, #9ed9e5 80%); background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(38px, 4.8vw, 58px); font-weight: 680; letter-spacing: -.055em; line-height: 1.08; }
.home-intro > p { max-width: 1160px; margin: 0; color: #adb8c1; font-size: 15px; line-height: 1.65; }
.creator-grid { grid-template-columns: minmax(0, 1.78fr) minmax(330px, 1fr); align-items: start; gap: clamp(34px, 5vw, 64px); margin-top: 23px; }
.creator-form { padding: 0; border: 0; border-radius: 0; background: transparent; }
.creator-form .form-block { margin-bottom: 24px; }
.block-title { gap: 9px; margin-bottom: 11px; }
.block-title h3, .field-heading h3 { color: var(--ink); font-size: 14px; font-weight: 650; }
.form-icon { display: inline-grid; width: 20px; place-items: center; color: var(--ink-soft); font-size: 15px; line-height: 1; }
.scene-options { grid-template-columns: repeat(2, minmax(150px, 170px)); gap: 13px; }
.scene-option { min-height: 45px; display: flex; justify-content: center; padding: 10px 16px; border-color: #4a5b6b; border-radius: 6px; background: #1a2530; color: var(--ink); text-align: center; font-size: 13px; font-weight: 600; }
.scene-option:hover { border-color: #78c8bb; background: #202f3b; }
.scene-option.is-selected { border-color: #80cdbc; box-shadow: inset 0 0 0 1px #80cdbc; background: #233541; }
.scene-option-copy strong { font-size: 12px; }
.scene-option-copy small { display: none; }
.radio-mark { display: none; }
.photo-block { padding-top: 1px; }
.upload-row { grid-template-columns: 150px; }
.upload-row-multi { grid-template-columns: repeat(3, minmax(110px, 150px)); }
.upload-tile { min-height: 120px; border-style: solid; border-color: #4a5b6b; border-radius: 7px; background: #1a2530; }
.upload-trigger { min-height: 120px; color: var(--ink); }
.upload-symbol { width: 31px; height: 31px; border-radius: 50%; background: #263747; color: #9ed8ce; }
.upload-trigger:hover .upload-symbol { background: #31525a; }
.upload-trigger > span:last-child { font-size: 10px; }
.photo-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.upload-rules { margin-top: 7px; color: var(--muted); font-size: 10px; }
.optional-subject { margin-top: 18px; }
.settings-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-grid .form-block { margin-bottom: 22px; }
.choice-row { gap: 8px; }
.choice-card { min-height: 51px; grid-template-columns: 0 1fr; padding: 9px 10px; border-color: #435362; border-radius: 6px; background: #1a2530; }
.choice-card .choice-check { display: none; }
.choice-card > strong { font-size: 12px; }
.choice-card > small { font-size: 9px; }
.choice-card.is-selected { border-color: #82d7c4; box-shadow: inset 0 0 0 1px #82d7c4; background: #233541; }
.ratio-options .choice-card { min-height: 45px; }
.consent-row { margin-bottom: 12px; color: var(--ink-soft); font-size: 10px; }
.custom-check { border-color: #66798a; border-radius: 3px; }
.custom-check::after { color: #10161d; }
.create-button { min-height: 52px; padding-inline: 15px; }
.button-price { font-size: 11px; }
.minimum-note { margin: 9px 0 12px; font-size: 10px; }
.trust-points { display: grid; grid-template-columns: 1fr 1fr; justify-content: start; gap: 6px 12px; color: #bdc9d1; font-size: 10px; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.add-angle { color: var(--coral-dark); }
.prompt-review { border-color: var(--line); }
.storyboard-card { position: sticky; top: 82px; padding: 22px; border-color: #4b5a69; border-radius: 14px; background: #1a2530; }
.storyboard-top .eyebrow { padding: 5px 10px; border: 1px solid #436c6b; border-radius: 100px; background: rgba(89, 170, 159, .12); color: #9be2d4; font-size: 8px; letter-spacing: .12em; }
.storyboard-card h3 { margin: 14px 0 16px; font-size: 20px; letter-spacing: -.035em; }
.preview-video { position: relative; display: grid; width: min(100%, 250px); max-height: 380px; place-items: center; overflow: hidden; margin-inline: auto; border-radius: 8px; background: radial-gradient(ellipse at 50% 60%, #263645, #080d12 72%); }
.preview-video img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 15px 20px rgba(0, 0, 0, .35)); }
.preview-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #080d12; }
.preview-unavailable { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 7px 9px; border: 1px solid rgba(170, 195, 204, .22); border-radius: 5px; background: rgba(8, 13, 18, .8); color: #c7d2d9; text-align: center; font-size: 9px; }
.storyboard-summary { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.storyboard-meta { padding-block: 16px 13px; }
.storyboard-meta small { color: #a7b7c3; }
.storyboard-meta strong { font-size: 10px; }
.storyboard-note { padding: 10px 11px; border: 1px solid #344653; background: #202c38; }
.storyboard-note p { color: #b7c3cc; font-size: 10px; }
.pricing-section { padding-block: 58px 72px; }
.pricing-section .section-heading h2 { font-size: clamp(29px, 3vw, 38px); }
.model-line { border-color: var(--line); }
.price-card { border-color: #364755; border-radius: 9px; background: #18222c; }
.price-card.featured { border-color: #77c9ba; background: #1a2b31; box-shadow: 0 8px 32px rgba(48, 131, 121, .12); }
.price-badge { background: #8adbc8; color: #102023; }
.how-section { padding-top: 59px; border-color: #2e3a45; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.step-card { border-color: #354552; border-radius: 8px; background: #18222c; }
.step-icon { border-radius: 9px; background: #263943; color: #9addce; }
.step-card:nth-child(2) .step-icon { background: #233a3c; color: #9addce; }
.faq-section { padding-bottom: 70px; }
.faq-list { border-color: #3a4652; }
.faq-item { border-color: #3a4652; }
.closing-cta { margin-bottom: 68px; border: 1px solid #3a5f60; background: #192e33; }
.closing-actions { display: flex; align-items: center; gap: 18px; }
.site-footer { border-color: #293742; background: #0d1319; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand .logo-mark { width: 26px; height: 26px; }
.footer-brand .brand strong { font-size: 15px; }
.footer-bottom { border-color: #293742; }
.library-logo { position: absolute; top: 45%; right: 7%; width: min(42%, 230px); max-height: 220px; object-fit: contain; opacity: .8; transform: translateY(-50%); }
.dialog-logo .logo-mark { width: 43px; height: 43px; object-fit: contain; }
.contact-mark { background: #20393c; color: #9addce; }

@media (max-width: 980px) {
  .creator-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr); gap: 25px; }
  .storyboard-card { padding: 18px; }
}
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 28px); min-height: 62px; }
  .brand { gap: 7px; }
  .brand .logo-mark { width: 25px; height: 25px; }
  .brand strong { font-size: 14px; }
  .header-actions { gap: 8px; }
  .header-actions .button-small { min-height: 35px; padding-inline: 9px; font-size: 10px; }
  .home-section { padding-block: 24px 42px; }
  .home-intro { padding-bottom: 17px; }
  .home-intro h1 { margin-block: 11px 12px; font-size: clamp(32px, 8.7vw, 43px); line-height: 1.05; }
  .home-intro > p { font-size: 13px; }
  .creator-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
  .creator-form { order: 1; }
  .storyboard-card { position: static; order: 2; padding: 16px; }
  .scene-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .scene-option { min-width: 0; min-height: 44px; padding-inline: 9px; font-size: 11px; }
  .settings-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .upload-row { grid-template-columns: minmax(135px, 155px); }
  .upload-row-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-tile, .upload-trigger { min-height: 105px; }
  .choice-row { gap: 6px; }
  .choice-card { min-height: 48px; padding: 7px 6px; }
  .choice-card > strong { font-size: 10px; }
  .choice-card > small { font-size: 8px; }
  .consent-row { font-size: 9px; }
  .create-button { min-height: 50px; gap: 7px; padding-inline: 10px; font-size: 11px; }
  .create-button > span:first-child { max-width: 43%; }
  .button-price { font-size: 9px; }
  .button-price small { font-size: 8px; }
  .trust-points { font-size: 9px; }
  .preview-video { max-height: 340px; }
  .pricing-section { padding-block: 46px 55px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { display: grid; min-height: 0; grid-template-columns: 45px 1fr; column-gap: 13px; padding: 15px; }
  .step-index { top: 14px; right: 15px; }
  .step-icon { width: 41px; height: 41px; grid-row: 1 / span 2; margin: 0; }
  .step-card h3 { align-self: end; padding-right: 33px; font-size: 13px; }
  .step-card p { font-size: 10px; }
  .closing-cta { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 48px; padding: 22px 17px; }
  .closing-cta h2 { font-size: 27px; }
  .closing-actions { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 370px) {
  .brand .logo-mark { width: 22px; height: 22px; }
  .brand strong { font-size: 12px; }
  .header-actions { gap: 5px; }
  .header-actions .button-small { padding-inline: 7px; font-size: 9px; }
  .settings-grid { grid-template-columns: 1fr; gap: 0; }
  .creator-form { padding-inline: 0; }
}


body:not(.theme-dark) {
  --coral: #347f73;
  --coral-dark: #286b62;
  --lime: #c8ece2;
  --sage: #e2f0eb;
  --night: #17262a;
}
body:not(.theme-dark) .main-nav a.active { color: #81d9c5; }
body:not(.theme-dark) .home-intro .eyebrow { border-color: #bfded6; background: #eaf6f2; color: #286b62; }
body:not(.theme-dark) .home-intro h1 { color: #347f73; background-image: linear-gradient(100deg, #317c68 4%, #437e98 80%); }
body:not(.theme-dark) .home-intro > p { color: #53626e; }
body:not(.theme-dark) .scene-option,
body:not(.theme-dark) .upload-tile,
body:not(.theme-dark) .choice-card { border-color: #c6d0d5; background: #fffefa; color: #172b29; }
body:not(.theme-dark) .scene-option:hover { border-color: #7ebdb0; background: #f6fcf9; }
body:not(.theme-dark) .scene-option.is-selected,
body:not(.theme-dark) .choice-card.is-selected { border-color: #529f90; background: #e9f6f2; box-shadow: inset 0 0 0 1px #529f90; }
body:not(.theme-dark) .upload-trigger { color: #172b29; }
body:not(.theme-dark) .upload-symbol { background: #e0f0eb; color: #286b62; }
body:not(.theme-dark) .trust-points { color: #53626e; }
body:not(.theme-dark) .storyboard-card { border-color: #cbd5d9; background: #fffefa; }
body:not(.theme-dark) .storyboard-card h3 { color: #172b29; }
body:not(.theme-dark) .storyboard-top .eyebrow { border-color: #bfded6; background: #eaf6f2; color: #286b62; }
body:not(.theme-dark) .storyboard-meta small { color: #64736d; }
body:not(.theme-dark) .storyboard-note { border-color: #d9e1de; background: #f1f6f3; }
body:not(.theme-dark) .storyboard-note p { color: #53626e; }
body:not(.theme-dark) .price-card { border-color: #d9ddd2; background: #fffefa; }
body:not(.theme-dark) .price-card.featured { border-color: #78b9aa; background: #f3faf7; box-shadow: 0 8px 32px rgba(48, 131, 121, .09); }
body:not(.theme-dark) .price-badge { background: #c8ece2; color: #17352f; }
body:not(.theme-dark) .step-card { border-color: #d9ddd2; background: #fffefa; }
body:not(.theme-dark) .step-icon { background: #e2f0eb; color: #286b62; }
body:not(.theme-dark) .step-card:nth-child(2) .step-icon { background: #e0f0eb; color: #286b62; }
body:not(.theme-dark) .closing-cta { border-color: #bfded6; background: #eaf6f2; }
body:not(.theme-dark) .contact-mark { background: #e2f0eb; color: #286b62; }

.mobile-tab-bar { display: none; }
@media (max-width: 760px) {
  .site-shell { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-tab-bar { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(16px); }
  .mobile-tab { display: flex; min-width: 0; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 10px; text-decoration: none; cursor: pointer; }
  .mobile-tab-icon { display: grid; width: 22px; height: 22px; place-items: center; font-size: 17px; line-height: 1; }
  .mobile-tab.is-active { color: var(--coral); font-weight: 700; }
  .mobile-tab.is-active .mobile-tab-icon { transform: translateY(-1px); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
