:root {
  color-scheme: dark;
  --canvas: #10120f;
  --panel: #191c17;
  --panel-soft: #20241d;
  --line: #30352d;
  --text: #f3f2ec;
  --muted: #a5aa9d;
  --quiet: #7d8377;
  --lime: #d4ff63;
  --lime-soft: #29351b;
  --red: #ff9b87;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 360px; min-height: 100vh; margin: 0; overflow-x: clip; background: var(--canvas); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, select, input[type="file"] { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; height: 72px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(30px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid #292d26; background: #10120fee; backdrop-filter: blur(14px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--lime); color: #1c2510; font-size: 22px; font-weight: 850; letter-spacing: -2px; box-shadow: 0 5px 20px #d4ff6322; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.2px; }
.brand small { margin-top: 4px; color: #8f9685; font-size: 8px; font-weight: 750; letter-spacing: 1.5px; }
.site-nav, .header-actions { display: flex; align-items: center; gap: 27px; }
.site-nav a { color: #a8ada1; font-size: 12px; transition: color .16s ease; }
.site-nav a:hover, .hero-secondary-link:hover { color: var(--lime); }
.header-actions { gap: 10px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-small { min-height: 36px; padding: 0 13px; font-size: 11px; }
.button-primary { background: var(--lime); color: #1c2311; box-shadow: 0 8px 24px #d4ff6318; }
.button-primary:hover:not(:disabled) { background: #e0ff8a; box-shadow: 0 9px 25px #d4ff6330; }
.button-quiet { border-color: #3a4035; background: #1b1e19; color: #e4e5dd; }
.button-quiet:hover:not(:disabled), .button-secondary:hover:not(:disabled) { background: #272d21; }
.button-secondary { border-color: #454e38; background: #20261a; color: var(--lime); }
.button-arrow { margin-left: auto; font-size: 18px; font-weight: 500; }
.text-button { padding: 5px 0 5px 8px; border: 0; background: none; color: var(--lime); font-size: 11px; }

.site-main { width: min(100% - 60px, 1240px); margin: 0 auto; }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 -2px; padding: 14px 17px; border: 1px solid #39452c; border-radius: 13px; background: linear-gradient(110deg, #202819, #171a16); animation: rise-in .45s ease both; }
.preview-notice { margin: 20px 0 -2px; padding: 14px 17px; border: 1px solid #7c6730; border-radius: 13px; background: linear-gradient(110deg, #302918, #211d15); color: #f2d993; font-size: 13px; line-height: 1.6; }
.account-summary { display: flex; min-width: 0; align-items: center; gap: 12px; }
.account-summary strong { display: block; color: #e9f0d9; font-size: 13px; }
.account-summary small { display: block; margin-top: 4px; color: #a4aa99; font-size: 10px; }
.account-summary > small { align-self: center; }
.account-copy { padding: 2px 0; }
.account-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #596c39; border-radius: 50%; background: #354326; color: var(--lime); }
.account-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-actions .button { min-height: 34px; font-size: 10px; }
.account-disclaimer { flex-basis: 100%; margin: 0; color: var(--quiet); font-size: 9px; line-height: 1.5; }

.landing-hero { position: relative; display: grid; min-height: 450px; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; padding: 46px 14px 42px; }
.landing-hero::before { position: absolute; z-index: -1; top: 30px; right: -15vw; width: 62vw; height: 390px; border-radius: 50%; background: radial-gradient(ellipse, #2b361d 0, #1b2117 32%, transparent 71%); content: ""; filter: blur(3px); }
.hero-copy { position: relative; z-index: 1; max-width: 555px; animation: rise-in .55s ease both; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #c5df8a; font-size: 10px; font-weight: 800; letter-spacing: 2.1px; }
.eyebrow-line { width: 23px; height: 1px; background: var(--lime); }
.hero-copy h1 { margin: 19px 0 14px; font-size: clamp(44px, 6.5vw, 76px); font-weight: 720; letter-spacing: -4px; line-height: .98; }
.hero-copy h1 span { color: var(--lime); }
.hero-copy > p { max-width: 465px; margin: 0; color: #b6bbaf; font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 27px; }
.hero-cta { min-width: 160px; min-height: 49px; }
.hero-cta span { margin-left: 9px; font-size: 18px; }
.hero-secondary-link { color: #c3c8bb; font-size: 12px; transition: color .15s ease; }
.hero-secondary-link span { padding-left: 4px; color: var(--lime); }
.hero-points { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 24px; color: #919889; font-size: 10px; }
.hero-points span:first-child::first-letter, .hero-points span:last-child::first-letter { color: var(--lime); }
.hero-gallery { position: relative; min-height: 337px; animation: gallery-in .75s .1s ease both; }
.hero-image { position: absolute; overflow: hidden; margin: 0; border: 1px solid #ffffff36; border-radius: 17px; background: #242920; box-shadow: 0 22px 60px #0008; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-image-main { inset: 38px 48px 27px 53px; transform: rotate(-3deg); }
.hero-image-main img { filter: saturate(.92); }
.hero-image-main figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px; padding: 15px 17px; background: linear-gradient(transparent, #10120fd9); color: white; font-size: 9px; font-weight: 750; letter-spacing: 1.5px; }
.hero-image-main figcaption span { color: var(--lime); }
.hero-image-top { top: 0; right: 0; width: 39%; height: 37%; transform: rotate(5deg); }
.hero-image-bottom { right: 0; bottom: 0; width: 36%; height: 38%; transform: rotate(4deg); }
.gallery-spark { position: absolute; z-index: 2; color: var(--lime); filter: drop-shadow(0 3px 12px #d4ff6366); animation: spark 3s ease-in-out infinite; }
.gallery-spark-one { top: 17px; left: 12px; font-size: 27px; }
.gallery-spark-two { right: 7px; bottom: 41%; font-size: 19px; animation-delay: .7s; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 3px 0 72px; }
.feature-card { display: flex; min-height: 103px; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid #2e342a; border-radius: 13px; background: linear-gradient(145deg, #1b1f18, #151713); transition: transform .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #596b3d; }
.feature-number { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #d4ff6315; color: var(--lime); font-size: 10px; font-weight: 800; }
.feature-card strong { font-size: 12px; }
.feature-card p { margin: 7px 0 0; color: #989e91; font-size: 10px; line-height: 1.55; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 4px 18px; scroll-margin-top: 95px; }
.section-kicker { color: #a3b77a; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.section-intro h2, .pricing-intro h2, .faq-section h2 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 34px); font-weight: 680; letter-spacing: -1.1px; }
.section-intro > p { max-width: 390px; margin: 0 0 2px; color: #9da295; font-size: 11px; line-height: 1.6; }
.studio-section { padding: 0 0 72px; scroll-margin-top: 90px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: start; gap: 16px; }
.right-column { display: grid; gap: 16px; }
.panel { border: 1px solid #30352d; border-radius: 14px; background: linear-gradient(145deg, #1b1e19, #171915); box-shadow: 0 10px 35px #0002; }
.create-panel { padding: 25px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.panel-heading-compact { margin-bottom: 19px; }
.panel-heading h2 { margin: 6px 0 0; font-size: 18px; font-weight: 680; letter-spacing: -.55px; }
.step-pill { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #3c4630; border-radius: 7px; background: #22291b; color: #cfe79a; font-size: 9px; font-weight: 700; white-space: nowrap; }
.step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px #d4ff6366; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; color: #e5e7df; font-size: 11px; font-weight: 700; }
.topic-label { margin-top: 20px; }
select, textarea, .settings-field-grid input, .api-key-row input { width: 100%; border: 1px solid #373d34; border-radius: 8px; outline: none; background: #131511; color: var(--text); transition: border-color .16s ease, box-shadow .16s ease; }
select:focus, textarea:focus, .settings-field-grid input:focus, .api-key-row input:focus { border-color: #99b84f; box-shadow: 0 0 0 3px #d4ff6314; }
select { height: 43px; padding: 0 11px; font-size: 11px; }
textarea { min-height: 128px; resize: vertical; padding: 13px; font-size: 12px; line-height: 1.65; }
textarea::placeholder { color: #757b6f; }
.field-hint { min-height: 17px; margin: 7px 1px 0; color: #909789; font-size: 10px; line-height: 1.5; }
.field-footer { display: flex; justify-content: space-between; gap: 9px; margin-top: 7px; color: #858b7f; font-size: 9px; }
.field-footer span:last-child { flex: 0 0 auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.field-control { display: flex; flex-direction: column; gap: 8px; color: #e2e4dc; font-size: 10px; font-weight: 700; }
.field-control select { margin: 0; }

.style-picker { position: relative; }
.style-picker-toggle { display: flex; width: 100%; min-height: 80px; align-items: center; gap: 14px; padding: 9px; border: 1px solid #444c39; border-radius: 11px; background: #151813; text-align: left; transition: border-color .16s ease, background .16s ease; }
.style-picker-toggle:hover, .style-picker-toggle[aria-expanded="true"] { border-color: #9dbb56; background: #1b2017; }
.style-picker-toggle > img { width: 104px; height: 59px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; }
.selected-style-copy { display: grid; min-width: 0; gap: 5px; }
.selected-style-copy strong { color: #f0f0e8; font-size: 12px; }
.selected-style-copy small { color: #9ca294; font-size: 10px; line-height: 1.45; }
.style-picker-chevron { margin-left: auto; padding: 0 9px; color: var(--lime); font-size: 21px; transition: transform .18s ease; }
.style-picker-toggle[aria-expanded="true"] .style-picker-chevron { transform: rotate(180deg); }
.style-menu { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; left: 0; max-height: min(420px, 65vh); overflow-y: auto; padding: 7px; border: 1px solid #41493a; border-radius: 12px; background: #171a15; box-shadow: 0 20px 55px #000b; animation: menu-in .16s ease both; }
.style-options { display: grid; gap: 5px; }
.style-choice { display: flex; width: 100%; min-height: 75px; align-items: center; gap: 12px; padding: 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; transition: background .14s ease, border-color .14s ease; }
.style-choice:hover, .style-choice.selected { border-color: #465438; background: #242a1f; }
.style-choice[aria-selected="true"] .style-choice-copy strong::after { padding-left: 8px; color: var(--lime); content: "✓"; }
.style-choice-image { width: 104px; height: 59px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.style-choice-copy { display: grid; gap: 4px; }
.style-choice-copy strong { font-size: 11px; }
.style-choice-copy small { color: #999f92; font-size: 9px; line-height: 1.45; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }

.reference-label { margin-top: 18px; }
.optional-label { color: #98a08e; font-size: 9px; font-weight: 450; }
.upload-grid { display: grid; grid-template-columns: 1fr; }
.upload-card { display: flex; min-height: 80px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 11px; padding: 13px 14px; border: 1px dashed #505945; border-radius: 9px; background: #171a15; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.upload-card:hover, .upload-card.has-file { transform: translateY(-1px); border-color: #a4c75a; background: #1e2419; }
.upload-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.upload-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #d4ff6318; color: var(--lime); font-size: 16px; }
.upload-card strong { max-width: 100%; overflow: hidden; color: #e0e2d9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-card small { margin-left: auto; color: #81887a; font-size: 9px; white-space: nowrap; }
.advanced-options { margin-top: 15px; border-top: 1px solid #30352d; }
.advanced-options summary { width: fit-content; padding: 12px 0 4px; color: #a9b399; cursor: pointer; font-size: 10px; }
.color-grid { margin-top: 9px; }
.color-control { flex-direction: row; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid #373d34; border-radius: 8px; background: #131511; }
.color-control input { width: 34px; height: 25px; padding: 2px; border: 1px solid #484e42; border-radius: 5px; background: transparent; cursor: pointer; }
.generation-summary { display: flex; align-items: center; gap: 11px; margin-top: 19px; padding: 12px; border: 1px solid #39432e; border-radius: 9px; background: #20261b; }
.summary-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #d4ff6318; color: var(--lime); font-size: 16px; }
.generation-summary strong, .generation-summary small { display: block; }
.generation-summary strong { font-size: 11px; font-weight: 700; }
.generation-summary small { margin-top: 4px; color: #9ba291; font-size: 9px; }
.summary-tag { margin-left: auto; padding: 5px 7px; border-radius: 5px; background: #343e28; color: #e1f2bd; font-size: 8px; font-weight: 800; letter-spacing: .6px; }
.target-note { display: flex; gap: 9px; margin: 13px 1px 0; color: #c6d8a4; }
.target-note > span { color: var(--lime); font-size: 15px; }
.target-note strong, .target-note small { display: block; }
.target-note strong { font-size: 9px; }
.target-note small { margin-top: 4px; color: #959d8a; font-size: 9px; line-height: 1.5; }
.generate-button { display: flex; width: 100%; margin-top: 17px; padding: 0 15px; }
.form-error { margin: 12px 0 0; padding: 10px 11px; border: 1px solid #633b33; border-radius: 8px; background: #2a1d1a; color: var(--red); font-size: 10px; line-height: 1.5; }
.generation-footnote { margin: 10px 0 0; color: #82897b; font-size: 9px; line-height: 1.5; text-align: center; }

.progress-panel, .output-panel { padding: 19px; }
.job-status { padding: 6px 8px; border: 1px solid #394036; border-radius: 6px; background: #22261f; color: #a8ae9e; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.job-status.status-running { border-color: #718538; background: #2b331f; color: var(--lime); }
.job-status.status-completed { border-color: #547344; background: #21301e; color: #a9e88f; }
.job-status.status-failed { border-color: #6f3c35; background: #33221f; color: var(--red); }
.progress-overview { display: flex; align-items: center; gap: 13px; }
.progress-ring { display: grid; width: 60px; height: 60px; flex: 0 0 auto; place-items: center; border: 1px solid #718343; border-radius: 50%; background: radial-gradient(circle, #262d1d 55%, #1e2419 56%); box-shadow: inset 0 0 13px #d4ff6312; color: var(--lime); }
.progress-ring span { font-size: 16px; font-weight: 800; letter-spacing: -.6px; }
.progress-ring small { margin-left: 1px; font-size: 9px; }
.progress-copy strong, .progress-copy small { display: block; }
.progress-copy strong { font-size: 11px; font-weight: 700; }
.progress-copy small { max-width: 255px; margin-top: 5px; color: #969d8f; font-size: 9px; line-height: 1.5; }
.progress-track { height: 4px; margin: 16px 0 13px; overflow: hidden; border-radius: 5px; background: #30352d; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); box-shadow: 0 0 9px #d4ff6370; transition: width .45s ease; }
.clip-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.clip-row { display: flex; min-width: 0; align-items: center; gap: 7px; padding: 7px; border: 1px solid #32372e; border-radius: 7px; background: #191c18; }
.clip-index { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #292e27; color: #a8ad9f; font-size: 8px; font-weight: 750; }
.clip-row.done .clip-index { background: #2b3720; color: var(--lime); }
.clip-row.current .clip-index { animation: pulse 1.1s ease-in-out infinite alternate; background: #344124; color: var(--lime); }
.clip-name { min-width: 0; overflow: hidden; color: #c3c7bc; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.clip-mark { margin-left: auto; color: var(--lime); font-size: 10px; }
.empty-render { grid-column: 1 / -1; display: grid; min-height: 94px; place-items: center; align-content: center; color: #8e9587; text-align: center; }
.empty-render span { color: #b9d77b; font-size: 20px; }
.empty-render p { margin: 6px 0 0; font-size: 9px; line-height: 1.55; }
.log-panel { margin-top: 13px; padding-top: 11px; border-top: 1px solid #32372e; }
.log-header { display: flex; justify-content: space-between; color: #97a088; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.log-lines { display: grid; max-height: 150px; gap: 6px; margin-top: 9px; overflow: auto; color: #b5baad; font-size: 9px; line-height: 1.4; }
.log-line { display: flex; gap: 8px; }
.log-line.error { color: var(--red); }
.log-time { flex: 0 0 auto; color: #747d6b; font-variant-numeric: tabular-nums; }
.video-preview { display: grid; min-height: 190px; place-items: center; overflow: hidden; border: 1px solid #353a31; border-radius: 10px; background: radial-gradient(ellipse, #272d20, #141612 75%); }
.video-preview video { display: block; width: 100%; max-height: 500px; background: #080908; }
.video-placeholder { display: grid; place-items: center; align-content: center; padding: 23px; color: #a3aa99; text-align: center; }
.video-placeholder > span { display: grid; width: 44px; height: 44px; place-items: center; padding-left: 3px; border: 1px solid #839d4b; border-radius: 50%; background: #d4ff6312; color: var(--lime); font-size: 13px; }
.video-placeholder strong { margin-top: 11px; color: #d9ddd0; font-size: 11px; }
.video-placeholder small { margin-top: 5px; color: #899080; font-size: 9px; line-height: 1.5; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.video-title { overflow: hidden; color: #d3d8ca; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.video-meta .button { min-height: 33px; font-size: 9px; }
.library-list { display: grid; gap: 6px; margin-top: 11px; }
.library-item { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 9px; border: 1px solid #32372e; border-radius: 7px; background: #171a15; }
.library-item button { min-width: 0; overflow: hidden; padding: 0; border: 0; background: none; color: #d0d5c7; font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.library-item button:hover { color: var(--lime); }
.library-item small { flex: 0 0 auto; color: #899080; font-size: 8px; }
.library-empty { padding: 10px 0; color: #858d7c; font-size: 9px; line-height: 1.5; }

.pricing-section { padding: 2px 0 77px; scroll-margin-top: 94px; }
.pricing-intro { max-width: 640px; margin: 0 auto 27px; text-align: center; }
.pricing-intro h2 { font-size: clamp(28px, 3.3vw, 39px); }
.pricing-intro > p { margin: 12px auto 0; color: #a3aa9a; font-size: 12px; line-height: 1.7; }
.billing-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.billing-plan { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 19px 17px 17px; border: 1px solid #353a30; border-radius: 13px; background: linear-gradient(150deg, #1d201a, #171915); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.billing-plan:hover { transform: translateY(-4px); border-color: #586b3b; box-shadow: 0 16px 36px #0003; }
.billing-plan.plan-featured { border-color: #94b84b; background: radial-gradient(ellipse at top right, #343f24, #1c2119 65%); box-shadow: 0 8px 35px #d4ff630b; }
.billing-plan.free-plan { background: linear-gradient(145deg, #191c18, #151713); }
.plan-popular { position: absolute; top: -10px; right: 14px; padding: 5px 8px; border-radius: 5px; background: var(--lime); color: #202513; font-size: 7px; font-weight: 900; letter-spacing: .8px; }
.plan-eyebrow { color: #b5c98b; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.billing-plan h3 { margin: 8px 0 0; font-size: 17px; font-weight: 700; }
.plan-price { margin-top: 15px; font-size: 30px; font-weight: 780; letter-spacing: -1.2px; }
.plan-price small { color: #9aa191; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.plan-description { min-height: 33px; margin: 7px 0 0; color: #9da395; font-size: 9px; line-height: 1.5; }
.plan-savings { margin: 7px 0 0; color: #d0eb92; font-size: 8px; font-weight: 700; }
.plan-features { display: grid; flex: 1 0 auto; gap: 10px; margin: 17px 0 18px; padding: 14px 0 0; border-top: 1px solid #353a30; list-style: none; }
.plan-features li { position: relative; padding-left: 16px; color: #c1c6b9; font-size: 9px; line-height: 1.4; }
.plan-features li::before { position: absolute; left: 0; color: var(--lime); content: "✓"; }
.plan-button { width: 100%; min-height: 38px; margin-top: auto; font-size: 10px; }
.pricing-loading { grid-column: 1 / -1; padding: 30px; border: 1px solid #30352d; border-radius: 12px; color: #9ba292; text-align: center; }
.pricing-note { max-width: 850px; margin: 17px auto 0; color: #7e8578; font-size: 9px; line-height: 1.6; text-align: center; }

.faq-section { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 22px 50px; padding: 32px 0 65px; border-top: 1px solid #2c312a; scroll-margin-top: 94px; }
.faq-section > .section-kicker { grid-column: 1; align-self: end; }
.faq-section h2 { grid-column: 1; grid-row: 2; margin: -12px 0 0; }
.faq-list { grid-column: 2; grid-row: 1 / span 2; }
.faq-list details { padding: 15px 0; border-bottom: 1px solid #2e332c; }
.faq-list summary { color: #e2e5dc; cursor: pointer; font-size: 11px; font-weight: 650; }
.faq-list details p { margin: 10px 0 0; color: #9ca294; font-size: 10px; line-height: 1.65; }
.site-footer { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #2c312a; }
.brand-footer .brand-mark { width: 33px; height: 33px; border-radius: 10px; font-size: 19px; }
.brand-footer strong { font-size: 12px; }
.brand-footer small { font-size: 7px; }
.site-footer > span { color: #858c7f; font-size: 9px; }
.site-footer > a:last-child { color: var(--lime); font-size: 10px; font-weight: 650; }

.settings-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 22px; border: 1px solid #41483a; border-radius: 14px; background: #191c17; color: var(--text); box-shadow: 0 24px 90px #000b; }
.settings-dialog::backdrop { background: #070806bb; backdrop-filter: blur(5px); }
.auth-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 1px solid #41483a; border-radius: 17px; background: #191c17; color: var(--text); box-shadow: 0 24px 90px #000b; }
.auth-dialog::backdrop { background: #070806bb; backdrop-filter: blur(5px); }
.auth-dialog-content { position: relative; display: grid; justify-items: center; padding: 31px 29px 25px; text-align: center; }
.auth-dialog-close { position: absolute; top: 13px; right: 13px; }
.auth-mark { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--lime); color: #1c2510; font-size: 27px; font-weight: 850; letter-spacing: -2px; }
.auth-dialog-content h2 { margin: 8px 0 0; font-size: 23px; letter-spacing: -.6px; }
.auth-dialog-content > p { max-width: 335px; margin: 10px 0 17px; color: #a4aa9a; font-size: 11px; line-height: 1.65; }
.auth-google-button { width: 100%; min-height: 46px; }
.google-mark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #fff; color: #4285f4; font-size: 14px; font-weight: 850; }
.auth-dialog-content > .auth-signup-note { margin: 14px 0 0; color: #c2c9b7; font-size: 10px; }
.auth-dialog-content > .auth-privacy { margin: 12px 0 0; color: #777f70; font-size: 9px; }
.auth-dialog-content > .auth-error { width: 100%; margin: 12px 0 0; padding: 10px; border: 1px solid #633b33; border-radius: 8px; background: #2a1d1a; color: var(--red); text-align: left; }
.auth-dialog-content > .auth-error.success { border-color: #506637; background: #202719; color: #c8ee84; }
.auth-divider { display: flex; width: 100%; align-items: center; gap: 12px; margin: 15px 0 11px; color: #858c7f; font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #373d34; content: ""; }
.email-auth-form { display: grid; width: 100%; gap: 7px; text-align: left; }
.email-auth-form label { margin-top: 2px; color: #d0d4c8; font-size: 10px; }
.email-auth-form input { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #373d34; border-radius: 8px; background: #131511; color: var(--text); }
.email-auth-form input:focus { border-color: #99b84f; box-shadow: 0 0 0 3px #d4ff6314; outline: none; }
.email-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 5px; }
.email-auth-actions .button { min-height: 39px; padding: 0 8px; font-size: 10px; }
.auth-reset-button { justify-self: center; padding: 5px; border: 0; background: transparent; color: #c8ee84; font-size: 10px; }
.auth-reset-button:hover { text-decoration: underline; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { margin: 7px 0 0; font-size: 19px; }
.dialog-close { width: 31px; height: 31px; border: 1px solid #3b4136; border-radius: 7px; background: #23271f; color: #d9ddd1; font-size: 20px; }
.dialog-description { color: #9ca294; font-size: 10px; line-height: 1.6; }
.settings-key-list, .settings-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.api-key-row label, .settings-field-grid label, .settings-secret-field { display: grid; gap: 6px; color: #d0d4c8; font-size: 9px; }
.api-key-row input, .settings-field-grid input { height: 36px; padding: 0 9px; font-size: 10px; }
.api-key-row input { margin-top: 6px; }
.settings-secret-field { margin-top: 11px; }
.settings-secret-field input { height: 36px; padding: 0 9px; border: 1px solid #373d34; border-radius: 8px; background: #131511; color: var(--text); }
.settings-secret-field input:focus { border-color: #99b84f; box-shadow: 0 0 0 3px #d4ff6314; outline: none; }
.settings-field-grid select { height: 36px; padding: 0 9px; font-size: 10px; }
.settings-feedback { min-height: 15px; margin: 11px 0 0; color: #bbd784; font-size: 9px; }
.settings-feedback.error { color: var(--red); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

@keyframes pulse { from { box-shadow: 0 0 0 0 #d4ff6300; } to { box-shadow: 0 0 0 4px #d4ff6320; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gallery-in { from { opacity: 0; transform: translateX(12px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spark { 50% { transform: translateY(-7px) rotate(12deg) scale(1.08); } }

@media (min-width: 1450px) {
  .landing-hero { min-height: 495px; }
  .hero-gallery { min-height: 370px; }
  .create-panel { padding: 29px; }
}
@media (max-width: 1050px) {
  .site-header { padding-right: 24px; padding-left: 24px; }
  .site-main { width: min(100% - 48px, 1240px); }
  .landing-hero { min-height: 390px; gap: 18px; }
  .hero-gallery { min-height: 290px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .9fr); gap: 12px; }
  .create-panel { padding: 19px; }
  .billing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .billing-plan { min-height: 270px; }
}
@media (max-width: 760px) {
  .site-header { height: 62px; gap: 12px; padding: 0 16px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; font-size: 20px; }
  .brand strong { font-size: 12px; }
  .brand small { margin-top: 3px; font-size: 7px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 32px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
  .site-main { width: min(100% - 32px, 600px); }
  .account-bar { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 12px; padding: 12px; }
  .account-summary { align-items: flex-start; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; gap: 2px; padding: 45px 2px 24px; }
  .landing-hero::before { top: 50px; right: -34vw; width: 115vw; height: 270px; }
  .hero-copy h1 { font-size: clamp(48px, 11vw, 67px); letter-spacing: -2.9px; }
  .hero-copy > p { max-width: 510px; font-size: 13px; }
  .hero-gallery { width: min(100%, 490px); min-height: min(73vw, 300px); margin: 17px auto 0; }
  .hero-image-main { inset: 26px 45px 19px 39px; }
  .hero-image-top { width: 39%; height: 36%; }
  .hero-image-bottom { width: 35%; height: 38%; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 55px; }
  .feature-card { min-height: 78px; padding: 14px; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-intro > p { max-width: 520px; }
  .content-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr; }
  .studio-section, .pricing-section { padding-bottom: 58px; }
  .create-panel, .progress-panel, .output-panel { padding: 17px; }
  .style-picker-toggle > img, .style-choice-image { width: 91px; height: 55px; }
  .upload-card { flex-wrap: wrap; }
  .upload-card small { width: 100%; margin-left: 43px; }
  .faq-section { grid-template-columns: 1fr; gap: 10px; padding: 27px 0 45px; }
  .faq-section > .section-kicker, .faq-section h2, .faq-list { grid-column: 1; grid-row: auto; }
  .faq-section h2 { margin: 0 0 7px; }
  .site-footer { min-height: 120px; flex-wrap: wrap; justify-content: space-between; padding: 18px 0; }
  .site-footer > span { order: 3; width: 100%; }
}
@media (max-width: 480px) {
  body { min-width: 320px; }
  .site-header { padding: 0 11px; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 9px; }
  .site-nav a:first-child { display: none; }
  .header-actions .button { padding: 0 8px; font-size: 8px; }
  #google-login-button { display: none !important; }
  .site-main { width: calc(100% - 24px); }
  .hero-actions { gap: 14px; }
  .hero-cta { min-width: 145px; }
  .hero-points { gap: 8px 13px; font-size: 9px; }
  .field-grid { gap: 8px; }
  .create-panel, .progress-panel, .output-panel { padding: 14px; }
  .panel-heading h2 { font-size: 16px; }
  .step-pill { padding: 6px 7px; font-size: 8px; }
  .style-picker-toggle { gap: 9px; padding: 7px; }
  .style-picker-toggle > img, .style-choice-image { width: 76px; height: 49px; }
  .selected-style-copy strong { font-size: 10px; }
  .selected-style-copy small, .style-choice-copy small { font-size: 8px; }
  .style-choice-copy strong { font-size: 9px; }
  .field-footer { font-size: 8px; }
  .field-footer span:first-child { max-width: 73%; }
  .billing-plans { grid-template-columns: 1fr; gap: 14px; }
  .billing-plan { min-height: 0; padding: 18px; }
  .plan-features { gap: 8px; }
  .settings-key-list, .settings-field-grid { grid-template-columns: 1fr; }
  .dialog-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
