:root {
  color-scheme: light;
  --yellow: #FFD93D;
  --pink: #FF85B3;
  --ink: #1F1F3D;
  --violet: #5B5AF7;
  --violet-deep: #4943DD;
  --lilac: #8C7BFF;
  --lavender: #F3F0FF;
  --paper: #FAF8FF;
  --line: #DDD5EF;
  --soft-line: #EBE5F5;
  --white: #FFFFFF;
  --muted: #5D5874;
  --error: #A52958;
  --radius: 24px;
  --shadow: 0 10px 28px #37236C0E, 0 2px 6px #37236C0B;
  --display: ui-rounded, "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--body); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
::selection { background: var(--violet); color: var(--white); }
.layout { width: min(1256px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 10; padding: 12px; border-radius: 12px; background: var(--yellow); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--soft-line); background: var(--white); }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-identity { display: grid; gap: 5px; justify-items: start; }
.brand-description { font-size: 11px; line-height: 1.2; color: var(--muted); font-weight: 680; }
.brand { display: inline-flex; align-items: center; gap: 0; letter-spacing: -.06em; text-decoration: none; font: 850 27px/1 var(--display); white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; margin-right: 8px; background: var(--violet); border-radius: 9px; rotate: -8deg; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 8px 7px 8px 10px; background: var(--yellow); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.brand-period { color: var(--violet); margin-left: 1px; }
.masthead nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); }
.masthead nav a { padding: 7px 11px; border-radius: 999px; font-size: 14px; font-weight: 680; text-decoration: none; }
.masthead nav a:hover { background: var(--lavender); color: var(--violet-deep); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.language-select { min-height: 38px; padding: 4px 8px 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--violet-deep); font: 720 13px/1.2 var(--body); cursor: pointer; }
.language-select:hover { background: var(--lavender); }
.credit-badge { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 4px 12px; background: var(--yellow); border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.history-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-weight: 750; font-size: 13px; text-decoration: none; white-space: nowrap; background: var(--white); }
.history-link:hover { background: var(--lavender); color: var(--violet-deep); }
.history-link span { font-size: 16px; }

.hero { display: grid; grid-template-columns: 47% 53%; min-height: 520px; margin-top: 28px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--lavender); box-shadow: var(--shadow); }
.hero-copy { z-index: 2; position: relative; align-self: stretch; display: flex; align-items: start; flex-direction: column; justify-content: center; padding: 38px 28px 34px clamp(29px, 4vw, 60px); }
.template-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 999px; background: var(--white); font: 750 11px/1.3 var(--display); letter-spacing: .03em; }
.template-name > span:first-child { display: inline-block; width: 9px; height: 9px; background: var(--pink); border-radius: 50%; }
.hero h1 { margin-block: 20px 15px; font: 880 clamp(44px, 5vw, 73px)/1.09 var(--display); letter-spacing: -.075em; }
html[lang="en"] .hero h1 { font-size: clamp(37px, 4.2vw, 62px); letter-spacing: -.058em; }
.hero-accent { color: var(--violet-deep); white-space: nowrap; }
.hero-accent > [aria-hidden="true"] { color: #C6437C; padding-left: .04em; }
.hero-description { font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; font-weight: 560; max-width: 360px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 10px 19px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 760; line-height: 1.3; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
.button span { font-size: 19px; line-height: 1; }
.button.primary { background: var(--violet); color: var(--white); box-shadow: 0 4px 10px #4B44D932; }
.button.primary:not(:disabled):hover { background: var(--violet-deep); }
.hero-copy > .button { min-width: 150px; margin-top: 24px; }
.button.secondary { background: var(--white); color: var(--violet-deep); border-color: var(--line); }
.button.secondary:not(:disabled):hover { background: var(--lavender); border-color: var(--lilac); }
.full-width { width: 100%; }
.specs { padding: 14px 0 0; margin: 27px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; width: min(100%, 353px); line-height: 1.15; }
.specs li { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.specs li:first-child { border-left: 0; padding-left: 0; }
.specs strong { font: 850 25px/1 var(--display); letter-spacing: -.05em; }
.specs span { color: var(--muted); font-size: 11px; font-weight: 700; }
.hero-reel { isolation: isolate; position: relative; display: grid; place-items: center; padding: 36px 40px 42px; min-width: 0; background: radial-gradient(ellipse at 50% 49%, #CBBDFF, #E8DEFF 66%, var(--lavender) 100%); }
.hero-reel::before { content: ""; position: absolute; width: min(85%, 475px); aspect-ratio: 1; border: 1px solid #FFFFFFA0; border-radius: 50%; z-index: -2; }
.reel-side { position: absolute; width: 25%; height: 56%; z-index: -1; top: 23%; border: 4px solid var(--white); border-radius: 18px; background: #D9CBF1; overflow: hidden; box-shadow: 0 12px 25px #32225C27; }
.reel-side img { width: 100%; height: 100%; object-fit: cover; }
.reel-close { left: 13%; transform: rotate(-12deg) translateY(3%); }
.reel-top { right: 7%; transform: rotate(12deg) translateY(-5%); }
.reel-play { margin: 0; position: relative; overflow: hidden; width: min(47%, 240px); aspect-ratio: 9 / 16; min-width: 203px; border: 5px solid var(--white); border-radius: 24px; box-shadow: 0 13px 30px #35236942; background: var(--ink); padding: 0; }
.reel-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-play:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }
.play-icon { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 5px 14px #1F1F3D45; background: var(--yellow); transition: transform .16s ease, background-color .16s ease; }
.play-icon::after { content: ""; width: 15px; height: 18px; background: var(--ink); clip-path: polygon(0 0,100% 50%,0 100%); margin-left: 3px; }
.reel-label { position: absolute; top: 18px; right: 19px; padding: 4px 10px; color: var(--ink); border-radius: 999px; background: #FFE4EE; font-size: 11px; font-weight: 750; }
.reel-caption { position: absolute; bottom: 13px; right: 19px; color: var(--muted); font: 11px/1.2 var(--mono); letter-spacing: .03em; }
.reel-caption span { color: var(--violet-deep); }

.section { margin-top: 58px; scroll-margin-top: 20px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 18px; margin-bottom: 19px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; font: 850 clamp(25px, 3vw, 32px)/1.23 var(--display); letter-spacing: -.048em; }
.section-heading p { color: var(--muted); font-size: 14px; }
.section-tick { display: inline-block; width: 9px; height: 22px; background: var(--violet); border-radius: 999px; flex: 0 0 auto; }
.studio-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.studio-inputs { display: grid; min-width: 0; gap: 12px; }
.studio-step { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.step-head { display: flex; align-items: flex-start; gap: 11px; padding: 15px 16px; }
.step-head h3, .step-text > strong { font: 820 18px/1.24 var(--body); }
.step-head p, .step-text > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.step-text { display: grid; }
.step-index { display: inline-grid; flex: 0 0 32px; min-height: 31px; padding-inline: 5px; place-items: center; background: #FFF0AB; border-radius: 11px; font: 850 13px/1 var(--display); }
.friends-step .step-index, .guide-card:nth-child(2) .step-index { background: #FFE3EE; }
.studio-review .step-index, .guide-card:nth-child(3) .step-index { background: var(--lavender); color: var(--violet-deep); }
.friends-step > summary { align-items: center; cursor: pointer; list-style: none; }
.friends-step > summary::-webkit-details-marker { display: none; }
.friends-step > summary::after { content: "+"; flex: 0 0 22px; text-align: center; font: 24px/1 var(--mono); color: var(--ink); }
.friends-step[open] > summary::after { content: "−"; }
.friends-step > summary:hover { background: var(--paper); }
.friends-count { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--lavender); color: var(--violet-deep); font-size: 11px; font-weight: 740; white-space: nowrap; }
.friend-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.friend-slots .slot-body { padding-inline: 8px; }
.friend-slots .slot-target { min-height: 116px; gap: 7px; }
.friend-slots .cast-portrait { width: clamp(34px, 5vw, 62px); height: auto; aspect-ratio: 3 / 4; }
#lead-slot { padding: 0 16px 16px; }
#lead-slot .slot { box-shadow: none; }
.studio-review { position: sticky; top: 18px; min-width: 0; }
.stage-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 13px; margin-inline: 16px; border-radius: 18px; background: #33265C; color: var(--white); }
.stage-position { display: grid; align-content: start; min-width: 0; margin: 0; text-align: center; font-size: 12px; }
.stage-position img, .stage-empty { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center 24%; border: 1px solid #FFFFFF60; border-radius: 11px; background: #493877; }
.stage-position[data-position="center"] img, .stage-position[data-position="center"] .stage-empty { border-color: var(--yellow); }
.stage-empty { display: grid; place-items: center; padding: 7px; color: var(--yellow); font-weight: 800; min-height: 48px; }
.stage-position strong { display: block; margin-top: 6px; font-size: 12px; }
.stage-position figcaption { padding-top: 5px; }
.stage-position[data-position="center"] strong { color: var(--yellow); }
.stage-source { display: block; min-width: 0; color: #E6E4E8; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.stage-hint { margin: 8px 16px 0; color: var(--muted); font-size: 12px; }
.studio-review .studio-submit { display: grid; gap: 13px; margin: 13px 16px 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.studio-review #form-error { order: initial; }
.studio-status { padding: 8px 10px; background: var(--lavender); border-radius: 11px; color: var(--muted); font-size: 12px; }
.studio-status:empty { display: none; }
.studio-status ul, ul.studio-status { margin: 0; padding-left: 17px; }
ul.studio-status { padding: 8px 10px 8px 25px; }
.studio-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; }
.studio-actions .button { gap: 12px; }
.studio-actions > a:not(.button) { font-size: 13px; font-weight: 740; text-underline-offset: 3px; }
.studio-actions .pricing-note { flex: 1 1 120px; }
.studio-actions .button.primary { flex-shrink: 0; }
.cast-grid { display: grid; grid-template-columns: 1fr 1.23fr 1fr; gap: 12px; }
.slot { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.slot-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.slot.is-lead .slot-header { background: #FFF0AB; }
.slot-title { font: 820 16px/1.25 var(--body); }
.slot-tag { font-size: 11px; font-weight: 700; line-height: 1.3; text-align: right; }
.slot-body { display: flex; flex-direction: column; align-items: stretch; padding: 13px 14px 10px; gap: 8px; }
.slot-target { display: flex; align-items: center; justify-content: center; min-height: 142px; width: 100%; border: 1px dashed var(--lilac); border-radius: 13px; background: #F8F5FF; color: var(--ink); padding: 11px 8px; position: relative; text-align: left; gap: 15px; }
.slot-target:hover, .slot.is-dragged .slot-target { background: #EAE4FF; border-color: var(--violet); }
.cast-portrait { flex: 0 0 auto; width: 72px; height: 97px; object-fit: cover; object-position: 50% 34%; display: block; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.slot-symbol { display: grid; place-items: center; flex: 0 0 auto; color: var(--violet-deep); background: #E9DFFF; height: 42px; width: 42px; border-radius: 14px; font-weight: 680; font-size: 25px; }
.upload-label { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; min-width: 0; }
.upload-label strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.upload-label small { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.45; }
.slot-feedback { min-height: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.slot-status { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.slot-error { color: var(--error); font-size: 12px; line-height: 1.4; }
.remove-photo { border: 0; padding: 0; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; flex-shrink: 0; }
.studio-submit { margin-top: 21px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 13px 22px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; max-width: 100%; cursor: pointer; }
.consent input { accent-color: var(--violet); width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; }
.generate-area { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.pricing-note { font-size: 12px; color: var(--muted); font-weight: 650; }
.error { color: var(--error); font-size: 13px; }
#form-error { order: 3; width: 100%; }

.result-library { display: grid; gap: 12px; margin-bottom: 24px; padding: clamp(14px, 3vw, 22px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--lavender); }
.result-library h2 { font-size: clamp(18px, 2.2vw, 22px); }
.result-video-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); max-height: 17rem; overflow-y: auto; padding: 2px; }
.result-video-list .history-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.result-video-list .history-row span:last-child { text-align: left; }
.history-row[aria-current="true"] { border-color: var(--lilac); background: var(--lavender); }
.result-video-list .history-row:focus-visible { outline-offset: -3px; }
.result-body { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(17px, 4vw, 35px); display: grid; gap: 14px; }
.result-body h3 { font-size: 21px; line-height: 1.3; }
.result-body p { color: var(--muted); }
.result-body.ready { grid-template-columns: minmax(120px, 237px) 1fr; align-items: center; gap: 22px; }
.result-body video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--ink); display: block; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
.status-marker { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); margin-right: 8px; }
.job-status-progress .status-marker { animation: pulse 1.1s infinite alternate ease-in-out; }
.render-progress { display: block; margin: 8px 0; width: min(100%, 360px); accent-color: var(--violet); }
@keyframes pulse { to { opacity: .4; } }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.sample-card { display: grid; grid-template-columns: minmax(125px, 42%) minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.sample-art { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 205px; padding: 12px; border: 0; background: #E7DDFF; }
.sample-card:nth-child(2) .sample-art { background: #FFE5EF; }
.sample-art img { display: block; width: min(100%, 135px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; border: 3px solid var(--white); border-radius: 14px; box-shadow: 0 5px 14px #37236C2A; }
.sample-art .play-icon { width: 44px; height: 44px; }
.sample-art .play-icon::after { width: 11px; height: 14px; }
.sample-art:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }
.sample-info { align-self: center; padding: 17px; }
.sample-info h3 { font-size: clamp(16px, 1.6vw, 22px); font-weight: 820; line-height: 1.25; }
.sample-info p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.sample-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; }
.sample-actions a { font-size: 12px; font-weight: 760; text-underline-offset: 3px; }
.sample-actions .button { min-height: 38px; padding: 6px 10px; gap: 8px; }
.guide-grid, .pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid { margin: 0; padding: 0; list-style: none; }
.guide-card { min-width: 0; padding: clamp(15px, 2vw, 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card h3, .pack-card h3 { font-size: 18px; font-weight: 820; line-height: 1.25; }
.guide-card h3, .guide-card p { margin-top: 8px; }
.guide-card p { color: var(--muted); font-size: 14px; }

.pricing-section {
  --pricing-surface: #EAE4FF;
  padding: clamp(20px, 3.5vw, 45px);
  border: 1px solid #DBD0FC;
  border-radius: 34px;
  background: var(--pricing-surface);
}
.pricing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 102px; margin-bottom: 21px; }
.pricing-heading h2 { font: 880 clamp(27px, 3vw, 32px)/1.23 var(--display); letter-spacing: -.047em; }
.pricing-heading p { max-width: 32rem; margin-top: 8px; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.pricing-art { position: relative; width: 160px; height: 93px; flex: 0 0 auto; margin-right: 12px; }
.ticket-mascot { position: absolute; inset: 12px 25px 13px 14px; display: grid; place-items: center; rotate: -12deg; border: 2px solid var(--ink); border-radius: 16px; background: var(--yellow); box-shadow: 4px 5px 0 var(--lilac); transition: rotate .2s ease, translate .2s ease; }
.ticket-mascot::before { content: ""; position: absolute; right: 23%; top: 8px; bottom: 8px; border-right: 2px dashed #826521; }
.ticket-mascot::after { content: ""; position: absolute; top: calc(50% - 10px); right: 7px; width: 14px; height: 20px; border-radius: 999px; background: var(--pink); }
.pricing-art:hover .ticket-mascot { rotate: -5deg; translate: 0 -4px; }
.mascot-face { position: relative; width: 46px; height: 31px; margin-right: 22px; }
.mascot-face::before { content: ""; position: absolute; top: 5px; left: 8px; width: 8px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 22px 0 var(--ink), -5px 11px 0 -2px #E66D67, 27px 11px 0 -2px #E66D67; }
.mascot-face::after { content: ""; position: absolute; left: 17px; top: 12px; width: 13px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px; border-radius: 0 0 12px 12px; }
.pricing-spark { position: absolute; line-height: 1; }
.pricing-spark-gold { color: #A86A06; font-size: 20px; right: 4px; top: 8px; }
.pricing-spark-pink { color: #C34078; font-size: 22px; right: 11px; bottom: 0; }
.pack-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(16px, 2.2vw, 25px) 0 19px; border: 1px solid #D7CBF6; border-radius: 25px; background: var(--white); box-shadow: var(--shadow); }
.pack-card[data-pack="trio"] { border-color: var(--lilac); background: #F9F6FF; }
.pack-head, .pack-detail, .pack-price-row { margin-inline: clamp(16px, 2.2vw, 25px); }
.pack-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.pack-credit { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #FFF0AB; font-size: 12px; font-weight: 760; white-space: nowrap; }
[data-pack="trio"] .pack-credit { background: #DDD5FF; color: #4031B3; }
[data-pack="crew"] .pack-credit { background: #FFE2ED; color: #8C295B; }
.pack-detail { margin-top: 9px; color: var(--muted); font-size: 14px; }
.pack-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 11px; margin-top: auto; padding-block: 17px 16px; }
.pack-price { font: 860 clamp(24px, 2.55vw, 37px)/1.08 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.047em; overflow-wrap: anywhere; }
.pack-unit { color: var(--muted); font-size: 12px; }
.pack-actions { position: relative; padding: 15px clamp(16px, 2.2vw, 25px) 0; border-top: 1px dashed #D7CBF6; }
.pack-actions::before, .pack-actions::after { content: ""; position: absolute; top: -8px; width: 14px; height: 15px; border: 1px solid #D7CBF6; background: var(--pricing-surface); }
.pack-actions::before { left: -1px; border-left: 0; border-radius: 0 99px 99px 0; }
.pack-actions::after { right: -1px; border-right: 0; border-radius: 99px 0 0 99px; }
.pack-actions .button { width: 100%; min-height: 44px; gap: 8px; font-size: 14px; }
.pack-actions .button.secondary { background: #FAF8FF; }
.pack-actions .button.secondary:not(:disabled):hover { background: #EAE3FF; }
.pack-actions .button:disabled { cursor: not-allowed; }
.pricing-feedback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; margin-top: 14px; padding: 10px 14px; border-radius: 16px; background: var(--lavender); color: var(--ink); font-size: 14px; }
.pricing-feedback.is-paid { background: #FFF4BE; font-weight: 750; }
.pricing-feedback.is-paid p::before { content: "✦"; display: inline-block; margin-right: 8px; color: var(--violet-deep); }
.pricing-feedback .button { min-height: 38px; padding: 5px 13px; font-size: 13px; }
.preview-notice { padding: 8px 12px; margin: 10px auto; border-radius: 12px; background: var(--lavender); color: var(--muted); font-size: 13px; }
.faq { margin-bottom: 54px; }
.faq details { margin-top: 8px; padding: 13px 15px; border: 1px solid var(--soft-line); border-radius: 15px; background: var(--white); }
.faq details[open] { background: var(--lavender); border-color: var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 760; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 23px/1 var(--mono); color: var(--violet); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding-block: 19px 23px; font-size: 12px; }
.footer .brand { font-size: 23px; }
.footer .brand-mark { scale: .85; margin-right: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 13px; }
.footer-nav a, .footer-nav button { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-nav button { border: 0; padding: 0; background: transparent; }

dialog { border: 1px solid var(--line); border-radius: 26px; background: var(--white); color: var(--ink); width: min(100% - 30px, 470px); max-height: 94dvh; padding: 0; box-shadow: 0 20px 65px #19103D4D; }
dialog::backdrop { background: #25184899; }
.dialog-head { padding: 14px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.dialog-head h2 { font: 840 21px/1.2 var(--display); letter-spacing: -.035em; }
.icon-button { display: grid; place-items: center; min-width: 36px; min-height: 36px; background: var(--lavender); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; padding: 0; font: 22px/1 var(--mono); flex-shrink: 0; }
.icon-button:hover { background: #E5DBFF; }
.sample-dialog { width: min(100% - 30px, 372px, calc(46dvh + 10px)); min-width: min(275px, 100% - 30px); background: var(--ink); color: var(--white); }
.sample-dialog .dialog-head { align-items: center; border-color: #FFFFFF28; }
.sample-dialog video { display: block; width: 100%; max-height: calc(94dvh - 67px); object-fit: contain; }
.auth-body { display: grid; gap: 11px; padding: 17px; }
.auth-body p { color: var(--muted); font-size: 13px; }
.auth-body p.error { color: var(--error); }
.google-auth { display: grid; gap: 7px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.form-field { display: grid; gap: 4px; color: var(--ink); font-weight: 720; }
.form-field input { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: #FAF8FF; color: var(--ink); font-size: 16px; font-weight: 500; }
.auth-switch { justify-self: start; border: 0; padding: 3px 0; background: transparent; font-size: 13px; font-weight: 740; text-decoration: underline; text-underline-offset: 3px; }
.account-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 12px 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-line .button { min-height: 35px; padding: 4px 9px; font-size: 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#google-link-status { color: var(--muted); font-size: 12px; }
.google-result-page { display: grid; align-items: center; min-height: 100dvh; background: var(--lavender); }
.google-result { width: min(470px, calc(100% - 36px)); margin: 18px auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.google-result h1 { font-size: 28px; line-height: 1.2; }
.google-result .language-select { margin-bottom: 14px; }
.google-result p { margin: 10px 0 18px; color: var(--muted); }
.google-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#history-list { padding: 13px; display: grid; gap: 9px; }
.history-list { display: grid; gap: 9px; }
.history-orders { border-top: 1px solid var(--line); padding: 10px 13px 13px; }
.history-orders summary { cursor: pointer; font-weight: 740; }
.history-orders[open] summary { margin-bottom: 8px; }
.history-row { display: flex; width: 100%; align-items: center; gap: 8px 15px; justify-content: space-between; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; font-weight: 700; }
.history-row:hover { background: var(--lavender); border-color: var(--lilac); }
.history-row span:last-child { color: var(--muted); font-size: 12px; text-align: right; }
.history-empty { padding: 7px 5px; color: var(--muted); }
.payment-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; background: var(--lavender); padding: 14px; margin: 17px; border: 1px solid var(--line); border-radius: 17px; }
.ticket-icon { display: grid; place-items: center; width: 47px; height: 35px; border-radius: 10px; rotate: -9deg; background: var(--yellow); box-shadow: 2px 3px 0 var(--lilac); }
.ticket-icon::before { content: ""; width: 11px; height: 13px; margin-left: 2px; background: var(--ink); clip-path: polygon(0 0,100% 50%,0 100%); }
.payment-summary h3, .payment-summary h2 { font-size: 19px; line-height: 1.25; }
.payment-summary p { color: var(--muted); font-size: 13px; }
.payment-summary strong { font: 850 clamp(18px, 4vw, 26px)/1.1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkout-order-copy { min-width: 0; overflow-wrap: anywhere; }
.checkout-note { margin: 17px; color: var(--muted); min-height: 22px; overflow-wrap: anywhere; }
#payment-confirm { width: calc(100% - 34px); margin: 1px 17px 17px; }
.standalone-checkout { max-width: 470px; width: calc(100% - 26px); margin: 50px auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.standalone-checkout > h1 { font: 850 27px/1.2 var(--display); padding: 17px; background: var(--lavender); border-bottom: 1px solid var(--line); }

@media (max-width: 1000px) {
  .layout { width: calc(100% - 56px); }
  .masthead { gap: 16px; }
  .masthead nav { gap: 16px; }
  .hero { min-height: 452px; }
  .hero-copy { padding-left: 30px; }
  .hero-reel { padding-left: 42px; padding-right: 24px; }
  .reel-play { width: min(49%, 216px); min-width: 175px; }
  .reel-close { left: 16%; }
  .friend-slots { padding-inline: 12px; }
  .sample-info { padding: 12px; }
}

@media (max-width: 940px) {
  .masthead nav { display: none; }
}

@media (max-width: 700px) {
  .layout { width: calc(100% - 32px); }
  .masthead { min-height: 66px; gap: 8px; padding-block: 8px; }
  .brand-identity { flex: 0 0 auto; max-width: 160px; }
  .brand-description { font-size: 10px; }
  .masthead .brand { font-size: 23px; }
  .masthead nav { display: none; }
  .header-actions { flex-wrap: wrap; }
  .header-actions .history-link, .header-actions .credit-badge { min-height: 33px; padding-inline: 7px; gap: 5px; font-size: 11px; }
  .language-select { min-height: 33px; padding-inline: 7px 5px; font-size: 12px; }
  .hero { display: block; margin-top: 15px; border-radius: 26px; }
  .hero-copy { padding: 26px 21px 31px; }
  .hero h1 { font-size: clamp(39px, 10.3vw, 65px); margin-block: 16px 12px; }
  html[lang="en"] .hero h1 { font-size: clamp(31px, 8.7vw, 49px); }
  .hero-copy > .button { margin-top: 18px; min-height: 43px; }
  .hero-description { font-size: 14px; max-width: 320px; }
  .wide-only { display: none; }
  .specs { margin-top: 20px; padding-top: 12px; max-width: 300px; }
  .specs strong { font-size: 21px; }
  .hero-reel { min-height: 305px; padding: 28px 34px 34px; }
  .reel-play { margin-left: 0; width: min(43%, 175px); min-width: 133px; }
  .reel-close { left: 19%; }
  .reel-top { right: 18%; }
  .reel-label { right: 9px; top: 19px; }
  .reel-caption { bottom: 9px; right: 10px; }
  .play-icon { width: 48px; height: 48px; }
  .section { margin-top: 39px; }
  .section-heading { margin-bottom: 13px; }
  .section-heading p { font-size: 13px; }
  .section-tick { width: 8px; height: 19px; }
  .studio-grid { grid-template-columns: 1fr; gap: 12px; }
  .studio-review { position: static; }
  .step-head { padding: 12px 10px; }
  .step-head h3, .step-text > strong { font-size: 16px; }
  .friend-slots, #lead-slot { padding: 0 10px 10px; }
  .stage-preview { margin-inline: 10px; gap: 6px; padding: 9px; }
  .stage-hint { margin-inline: 10px; }
  .studio-review .studio-submit { margin: 10px; }
  .studio-actions .button { flex-grow: 1; }
  .cast-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .slot.is-lead { grid-row: 1; grid-column: 1 / -1; }
  .slot-header { padding: 9px 8px; gap: 3px; }
  .slot-title { font-size: 14px; }
  .slot-tag { font-size: 10px; }
  .slot-body { padding: 8px 7px 5px; gap: 5px; }
  .slot-target { min-height: 113px; padding: 7px 3px; gap: 6px; }
  .cast-portrait { width: 39px; height: 58px; }
  .is-lead .cast-portrait { height: 77px; width: 53px; }
  .upload-label strong { font-size: 12px; }
  .upload-label small { font-size: 10px; }
  .studio-submit { margin-top: 16px; gap: 14px; }
  .generate-area { width: 100%; justify-content: space-between; }
  .generate-area .button { gap: 10px; }
  .result-body.ready { grid-template-columns: 1fr; }
  .result-body video { width: min(100%, 206px); margin-inline: auto; }
  .sample-grid, .guide-grid, .pack-grid { grid-template-columns: 1fr; gap: 10px; }
  .sample-art { min-height: 163px; }
  .sample-art img { width: min(100%, 97px); }
  .guide-card { padding: 15px; }
  .pricing-section { border-radius: 24px; padding: 16px; }
  .pricing-head { position: relative; align-items: flex-start; gap: 6px; margin-bottom: 15px; min-height: auto; }
  .pricing-heading h2 { font-size: 25px; }
  .pricing-heading p { font-size: 13px; }
  .pricing-art { width: 91px; height: 59px; margin-right: 1px; margin-top: -1px; }
  .ticket-mascot { inset: 8px 11px 10px 1px; border-radius: 12px; box-shadow: 3px 3px 0 var(--lilac); }
  .ticket-mascot::before { top: 5px; bottom: 5px; border-right-width: 1px; }
  .ticket-mascot::after { top: calc(50% - 6px); right: 4px; width: 8px; height: 12px; }
  .mascot-face { scale: .65; margin-right: 14px; }
  .pricing-spark-gold { right: 1px; top: 0; font-size: 15px; }
  .pricing-spark-pink { right: 0; bottom: 0; font-size: 15px; }
  .pack-card { border-radius: 20px; padding-bottom: 14px; }
  .pack-price { font-size: 27px; }
  .pack-price-row { padding-block: 12px; }
  .pack-actions { padding-top: 12px; }
  .faq { margin-bottom: 35px; }
}

@media (max-width: 359px) {
  .layout { width: calc(100% - 22px); }
  .masthead .brand { font-size: 22px; }
  .masthead .brand-mark { width: 24px; height: 21px; margin-right: 6px; }
  .hero-copy { padding-inline: 13px; }
  .slot-title { font-size: 12px; }
  .slot-target { flex-direction: column; text-align: center; }
  .upload-label { align-items: center; }
  .payment-summary { grid-template-columns: auto minmax(0, 1fr); }
  .payment-summary strong { grid-column: 2; }
}

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