:root {
  color-scheme: light;
  --paper: #f7f3ed;
  --white: #fff;
  --ink: #272129;
  --muted: #635a65;
  --purple: #5937ae;
  --purple-dark: #452489;
  --lavender: #ece3fa;
  --line: #ded5df;
  --surface: #fffcf8;
  --font: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 var(--font); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--purple-dark); }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: .16rem solid #8155d4; outline-offset: .2rem; }

.shell { width: min(100%, 83rem); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 4.25rem); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--white); border: 1px solid var(--purple); }
.site-header { background: #fcf9f4; border-bottom: 1px solid #e7ddd9; }
.header-inner { min-height: 4.35rem; display: flex; justify-content: space-between; align-items: center; gap: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.12rem; font-weight: 760; letter-spacing: -.05em; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 2.11rem; height: 2.11rem; padding-bottom: .13rem; color: #fff; background: var(--purple); border-radius: .58rem; font-size: 1.14rem; line-height: 1; font-weight: 800; letter-spacing: -.08em; }
.brand-studio { color: var(--purple); }
.navigation { display: flex; gap: clamp(.9rem, 2.5vw, 2.6rem); align-items: center; color: #504851; font-size: .88rem; font-weight: 650; }
.navigation a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .24em; }
.header-order { display: inline-flex; align-items: center; gap: .48rem; border: 1px solid #ccbadb; border-radius: 999px; padding: .45rem .88rem; font-size: .85rem; font-weight: 750; white-space: nowrap; }
.header-order:hover { background: var(--lavender); }

.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(1.9rem, 5vw, 4.7rem); align-items: center; padding-block: clamp(2.7rem, 5vw, 5.15rem); }
.mode-tag { display: inline-flex; align-items: center; gap: .48rem; padding: .28rem .65rem; margin-bottom: 1.25rem; border: 1px solid #e1cfee; border-radius: 999px; color: #563584; background: #f1e7f7; font-weight: 700; font-size: .78rem; }
.mode-tag span:first-child { width: .44rem; height: .44rem; border-radius: 50%; background: #8254c6; }
h1 { font-size: clamp(3.2rem, 6.7vw, 6.35rem); font-weight: 760; line-height: 1.01; letter-spacing: -.073em; }
h1 em { color: var(--purple); font: italic normal .91em/.98 var(--serif); letter-spacing: -.066em; }
.hero h1 em { display: block; }
.hero-lead { max-width: 26rem; margin-top: 1.35rem; font-size: clamp(1rem, 1.65vw, 1.22rem); line-height: 1.52; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .53rem 1rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.85rem; padding: .67rem 1rem; border: 1px solid transparent; border-radius: .55rem; font-size: .94rem; font-weight: 720; line-height: 1.3; text-align: center; transition: color .16s, background .16s, border-color .16s, transform .16s; }
.primary { color: white; background: var(--purple); }
.primary:hover { color: white; background: var(--purple-dark); }
.primary:not(:disabled):active { transform: translateY(1px); }
.secondary { color: var(--purple-dark); background: var(--surface); border-color: #d6c8e3; }
.secondary:not(:disabled):hover { background: var(--lavender); }
.text-button { padding-inline: .3rem; color: var(--purple-dark); background: transparent; }
.text-button:not(:disabled):hover { text-decoration: underline; text-underline-offset: .23em; }
.hero-specs { display: grid; grid-template-columns: .71fr 1.25fr .98fr; gap: .75rem; max-width: 28rem; margin: 2.1rem 0 0; padding-top: .95rem; border-top: 1px solid #dfd3d4; }
.hero-specs dt { font-weight: 750; letter-spacing: -.03em; font-size: 1.08rem; }
.hero-specs dd { margin: .05rem 0 0; color: var(--muted); font-size: .78rem; }

.hero-visual { position: relative; isolation: isolate; min-width: 0; display: grid; justify-items: center; padding: .9rem; background: radial-gradient(ellipse at 50% 47%, #4d3890 0%, #2d2347 48%, #242032 91%); color: #f7eefb; border: 1px solid #4d3d5c; border-radius: 1.3rem; box-shadow: 0 1.05rem 2.2rem #30213423; }
.preview-header, .preview-controls { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .7rem; }
.preview-header { justify-content: start; gap: .42rem; padding: .1rem .25rem .8rem; font-size: .79rem; font-weight: 650; color: #e8d8ee; }
.preview-header i { width: .42rem; height: .42rem; border-radius: 50%; background: #c9a1f2; }
.sample-frame { width: clamp(12rem, 17vw, 15rem); position: relative; overflow: hidden; aspect-ratio: 9/16; border-radius: .7rem; background: #362e3d; border: 1px solid #9f849b88; box-shadow: 0 .7rem 2.25rem #17101f70; }
.sample-frame img, #hero-video { width: 100%; height: 100%; display: block; }
.sample-frame img { object-fit: cover; object-position: center; }
#hero-video { position: absolute; z-index: 2; inset: 0; background: #16121c; object-fit: contain; }
.preview-source { justify-self: start; margin: .55rem .15rem .08rem; color: #f3e7fa; font-size: .78rem; text-decoration: underline; text-underline-offset: .17em; }
.hero-play { position: absolute; z-index: 1; bottom: .62rem; left: .65rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: .02rem 0 0 .12rem; border: 1px solid #ffffff66; border-radius: 50%; background: #211726a8; color: #fff; font-size: .83rem; }
.hero-play:hover { background: #452489; }
.preview-controls { margin-top: .85rem; padding: .75rem .15rem .03rem; border-top: 1px solid #bda6d239; font-size: .76rem; color: #ebe0f1; }
.style-toggle { display: flex; flex-wrap: wrap; gap: .2rem; padding: .18rem; background: #201a2bcc; border: 1px solid #645179; border-radius: .52rem; }
.style-toggle button { min-height: 1.95rem; display: inline-flex; gap: .28rem; align-items: center; padding: .2rem .42rem; border: none; border-radius: .31rem; background: transparent; color: #f0e3fa; font-size: .72rem; }
.style-toggle button>:first-child { font-weight: 720; }
.style-toggle button:hover, .style-toggle button[aria-pressed="true"] { background: #ede0ff; color: #3c206f; }
.style-toggle em { font-family: var(--serif); }
.preview-error { margin: .5rem 0 0; color: #f7cedd; font-size: .85rem; }

.how-band { border-block: 1px solid #e6dbdf; background: #f2eaf3; scroll-margin-top: 1rem; }
.how-grid { display: grid; grid-template-columns: .82fr 1fr 1fr 1fr; align-items: center; gap: 1.2rem; min-height: 6.9rem; padding-block: 1.05rem; }
.how-grid h2 { font: italic normal 1.6rem/1.1 var(--serif); letter-spacing: -.05em; }
.how-item { display: flex; align-items: start; gap: .61rem; }
.how-item h3 { margin: .06rem 0 0; font-size: .94rem; line-height: 1.2; font-weight: 760; }
.how-item p { color: var(--muted); font-size: .77rem; margin: .22rem 0 0; line-height: 1.35; }
.step-icon { flex: none; display: grid; place-items: center; min-width: 1.95rem; height: 1.95rem; padding: .12rem; background: #fffbff; border: 1px solid #ded0e5; border-radius: .48rem; color: var(--purple); font-size: 1.02rem; font-weight: 750; line-height: 1; }
.design-icon { font: italic 1.03rem var(--serif); }

.order-section, .faq-section { padding-block: clamp(2.6rem, 4.8vw, 4.65rem); scroll-margin-top: 1rem; }
.section-intro { margin-bottom: 1.35rem; }
.section-intro h2 { margin-bottom: .48rem; font-size: clamp(2.2rem, 4.1vw, 4rem); font-weight: 760; line-height: 1.08; letter-spacing: -.073em; }
.section-intro p { max-width: 39rem; color: var(--muted); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .35fr); gap: 1.1rem; }
.panel { min-width: 0; padding: clamp(1rem, 2.5vw, 1.7rem); border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; }
.panel h3 { margin-bottom: .66rem; font-size: 1.28rem; letter-spacing: -.045em; line-height: 1.15; }
.drop-area { display: grid; justify-items: center; align-content: center; gap: .38rem; min-height: 9rem; padding: .9rem; border: 1px dashed #af9ac4; border-radius: .65rem; background: #f8f2fc; text-align: center; cursor: pointer; transition: background .16s; }
.drop-area:hover, .drop-area.dragging { border-color: var(--purple); background: #f0e6fc; }
.order-form:has(#video-input:focus-visible) .drop-area { outline: .16rem solid var(--purple); outline-offset: .2rem; }
.drop-symbol { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: var(--purple-dark); background: #e9dcf7; font-weight: 750; font-size: 1.12rem; }
.drop-title { width: 100%; overflow-wrap: anywhere; font-weight: 720; }
.drop-description, .summary-note, .summary-terms { color: var(--muted); font-size: .81rem; line-height: 1.4; }
.file-actions { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .55rem 0 1.08rem; }
.quiet { border: none; padding: .23rem 0; color: var(--purple-dark); background: transparent; font-size: .88rem; text-decoration: underline; text-underline-offset: .18em; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: .58rem; padding: 0; font-weight: 730; }
.order-look { display: grid; grid-template-columns: minmax(9.5rem, .36fr) minmax(0, 1fr); align-items: start; gap: .95rem; }
.order-look-controls { min-width: 0; }
.footage-picker { display: grid; gap: .38rem; justify-items: start; margin: .25rem 0 .8rem; }
.footage-options { display: flex; flex-wrap: wrap; gap: .3rem; }
.footage-options button { min-height: 2.25rem; padding: .3rem .62rem; border: 1px solid #d9cce2; border-radius: .45rem; background: #fff; color: var(--purple-dark); font-size: .82rem; font-weight: 680; }
.footage-options button[aria-pressed="true"] { border-color: var(--purple); background: var(--lavender); }
.footage-status { color: var(--muted); font-size: .81rem; }
.order-look-preview { position: sticky; top: .8rem; min-width: 0; }
.editor-look { padding: .2rem .72rem .8rem; }
.summary { display: flex; flex-direction: column; align-self: start; background: #f2eaf6; border-color: #e2d5e8; }
.summary-items { margin: .42rem 0 .68rem; }
.summary-items div, .summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; }
.summary-items div { padding-block: .48rem; color: var(--muted); font-size: .91rem; }
.summary-items dd { margin: 0; color: var(--ink); font-weight: 680; text-align: right; }
.summary-total { border-top: 1px solid #d9cbe0; padding-block: .78rem 1rem; font-weight: 730; }
.summary-total strong { font-size: 1.7rem; letter-spacing: -.064em; }
.checkout-button { width: 100%; }
.summary-note, .summary-terms { margin-top: .65rem; text-align: center; }
.summary-terms { color: var(--purple-dark); text-decoration: underline; text-underline-offset: .17em; }
progress { width: 100%; margin-top: .65rem; accent-color: var(--purple); }
.status-panel { margin-top: 1.05rem; }
.status-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .5rem; margin-bottom: .55rem; }
.status-head h3 { margin-bottom: .2rem; }
.status-head p, #status-description { color: var(--muted); overflow-wrap: anywhere; }
.status-label { display: inline-flex; padding: .32rem .54rem; border-radius: .4rem; color: #4d278d; background: var(--lavender); font-size: .83rem; font-weight: 700; }
.status-label.ready { background: #e1f3e4; color: #245737; }
.status-label.failed, .status-label.expired { background: #f9e5eb; color: #792747; }
.status-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .88rem; }
.error { margin-top: .63rem; color: #942d4a; font-size: .9rem; line-height: 1.4; }
.demo-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, 10rem); gap: 1rem; margin-top: 1.05rem; padding: 1rem; color: var(--ink); background: #f0e9f5; border: 1px solid #e5d9e9; border-radius: .72rem; }
.demo-result-title { margin-bottom: .55rem; font-size: .9rem; font-weight: 730; }
.demo-result video { width: 100%; aspect-ratio: 9/16; background: #21182a; border-radius: .47rem; object-fit: contain; }
.demo-style-field { display: grid; max-width: 17rem; gap: .3rem; margin-bottom: .5rem; font-size: .84rem; }
.demo-style-field select { width: 100%; padding: .5rem; border: 1px solid #cbb8d8; border-radius: .4rem; background: white; color: var(--ink); }

.faq-section { padding-top: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .95rem 0; font-weight: 720; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--purple); font: 1.35rem/1 var(--font); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 44rem; padding-bottom: 1rem; color: var(--muted); }
.faq-list a { color: var(--purple-dark); text-decoration: underline; text-underline-offset: .18em; }
.site-footer { border-top: 1px solid #e6dddf; padding-block: 1.1rem; background: #f3eee8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1rem; color: var(--muted); font-size: .84rem; flex-wrap: wrap; }
.footer-inner .brand { color: var(--ink); }
.footer-inner .brand-icon { width: 1.74rem; height: 1.74rem; font-size: .98rem; }

@media (max-width: 950px) {
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.65rem; }
  .hero-actions { margin-top: 1.15rem; }
  .hero-specs { margin-top: 1.35rem; }
  .how-grid { gap: .75rem; }
  .style-toggle button { gap: .18rem; }
  .style-toggle button>:first-child { display: none; }
}

@media (max-width: 750px) {
  .navigation { display: none; }
  .header-inner { min-height: 3.65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2.1rem 1.75rem; }
  h1 { font-size: clamp(2.95rem, 11vw, 5.2rem); }
  .mode-tag { margin-bottom: .82rem; }
  .hero-lead { margin-top: .8rem; }
  .hero-specs { padding-top: .6rem; }
  .hero-visual { width: min(100%, 34rem); margin-inline: auto; }
  .sample-frame { width: clamp(11.6rem, 49vw, 15rem); }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .how-grid h2 { margin-bottom: .2rem; }
}

@media (max-width: 600px) {
  .order-look { grid-template-columns: minmax(0, 1fr); gap: .72rem; }
  .order-look-preview { top: .3rem; z-index: 4; }
  .order-look-preview .look-monitor { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr); align-items: center; text-align: center; }
  .order-look-preview .look-stage { grid-area: 1 / 1 / span 3 / 2; width: 100%; }
  .order-look-preview .look-monitor-head { grid-column: 2; justify-self: center; align-self: end; }
  .order-look-preview .look-monitor-tools { grid-column: 2; }
  .order-look-preview .look-preview-warning { grid-column: 2; }
}

@media (max-width: 360px) {
  .header-order { padding-inline: .57rem; }
  .hero-visual { padding-inline: .6rem; }
  .hero-actions { gap: .3rem .45rem; }
  .hero-actions .button { padding-inline: .56rem; font-size: .85rem; }
  .preview-controls { justify-content: center; }
  .demo-result { grid-template-columns: minmax(0, 1fr); }
  .demo-result video { width: min(100%, 12rem); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
