:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --paper: #fffefa;
  --well: #f1f0eb;
  --line: #ddddd5;
  --ink: #252623;
  --muted: #686962;
  --accent: #f17d70;
  --accent-soft: #fbe6df;
  --focus: #ab4035;
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #99483e; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--accent);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}
button:hover:not(:disabled), .button:hover { background: #ed9185; color: var(--ink); }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondary { background: var(--paper); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: var(--well); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 550; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
h3 { font-size: 1.2rem; line-height: 1.28; letter-spacing: -.02em; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; z-index: 20; inset-block-start: 8px; inset-inline-start: 12px; padding: 12px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: white; }
.bar-inner, main, .footer-inner { max-width: 1400px; margin-inline: auto; padding-inline: 64px; }
.bar { border-block-end: 1px solid var(--line); }
.bar-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand b { font-size: 1.37rem; letter-spacing: -.045em; font-weight: 750; }
.brand span { font-weight: 450; color: var(--muted); }
.bar nav { display: flex; align-items: center; justify-content: center; gap: 30px; font-size: .84rem; color: #55564f; }
.bar nav a { padding-block: 12px; }
.actions { display: flex; align-items: center; }
.actions select { max-width: 132px; background: transparent; border-color: var(--line); font-size: .8rem; min-height: 38px; }
select, input:not([type="file"], [type="checkbox"]), textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
.eyebrow, .micro {
  font-size: .66rem;
  font-weight: 550;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin-block-end: 24px; }
.micro { color: var(--muted); }
.coral-dot { width: 7px; height: 7px; display: inline-block; background: var(--accent); border-radius: 50%; margin-inline-end: 10px; vertical-align: 1px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 36px; padding-block: 90px 108px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.2rem, 6.15vw, 6rem); line-height: .99; letter-spacing: -.065em; max-width: 11ch; }
.hero-description { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 45ch; margin-block: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.hero-actions .button { padding: 15px 22px; min-height: 52px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: .86rem; font-weight: 550; padding-block: 10px; }
.hero-note { font-size: .75rem; color: #55564f; line-height: 1.65; max-width: 58ch; margin-block-start: 19px; }
.section { padding-block: 80px; border-block-start: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-block-end: 36px; }
.section-heading h2 { max-width: 18ch; }
.section-heading .eyebrow { margin-block-end: 16px; }
.section-heading > p { max-width: 43ch; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.section-heading > .wide-description { max-width: 57ch; font-size: .85rem; }
.payment-info { background: #efeee7; border: 1px solid #e4e3da; border-radius: 6px; padding: 17px 22px; margin-block-end: 20px; }
.payment-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-block-end: 8px; }
.badge { display: inline-flex; padding: 4px 7px; background: #fffefa; border: 1px solid #d7d7cc; border-radius: 3px; font-size: .6rem; font-weight: 650; letter-spacing: .08em; }
#balance { font-size: .79rem; font-weight: 600; }
.payment-info > p { font-size: .79rem; color: #5c5d56; line-height: 1.6; }
.payment-info > .detail { font-size: .73rem; margin-block-start: 4px; }
.config-error { border: 1px solid #d69082; background: #fff0e9; color: #713b31; padding: 20px; border-radius: 5px; margin-block-end: 18px; font-size: .9rem; line-height: 1.6; }
.config-error button { margin-block-start: 12px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); min-width: 0; }
.controls, .output { padding: 26px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--well); }
.tabs button { background: transparent; color: var(--muted); border-radius: 3px; font-size: .84rem; min-height: 40px; padding: 9px 10px; }
.tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: #e3e2d9; box-shadow: 0 1px 3px #24242108; }
.tabs button:hover:not(:disabled) { background: var(--accent-soft); }
.muted { color: var(--muted); line-height: 1.6; }
.controls > p { min-height: 3.2em; margin-block: 16px 23px; font-size: .85rem; }
.input-title { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; font-weight: 600; margin-block-end: 10px; }
.source-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-block-end: 1px solid var(--line); margin-block-end: 16px; padding-block-end: 8px; }
.source-tabs button { background: transparent; color: var(--muted); border-color: transparent; min-height: 40px; padding: 9px 12px; font-size: .78rem; gap: 8px; }
.source-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); border-color: #e6c5ba; }
.source-tabs button:hover:not(:disabled) { background: var(--well); }
.source-url-panel { padding-block: 2px 8px; }
.source-url-panel > label { display: block; font-size: .79rem; font-weight: 600; margin-block-end: 8px; }
#source-url { min-height: 46px; font-size: .85rem; text-align: start; }
.source-url-panel > p { margin-block-start: 10px; overflow-wrap: anywhere; }
.source-url-panel > .source-privacy { padding-inline-start: 12px; border-inline-start: 2px solid #dbac9e; }
#source-retry-note { font-size: .69rem; }
#drop { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 157px; padding: 20px; border: 1px dashed #c8c8be; background: #f6f5f0; border-radius: 5px; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
#drop:hover, #drop.drag { background: var(--accent-soft); border-color: #cf867a; }
#drop:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
#drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
#drop strong { font-size: .85rem; font-weight: 600; }
#file-label { font-size: .73rem; }
.upload-icon { width: 35px; height: 35px; border: 1px solid #dbdcd2; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; margin-block-end: 4px; }
.detail { font-size: .75rem; }
#file-limit { margin-block: 8px 12px; }
.permission { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .76rem; line-height: 1.6; margin-block: 21px; }
.permission input { width: 16px; height: 16px; flex-shrink: 0; margin: 2px 0 0; accent-color: #b94f43; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; font-size: .86rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#generation-options label { display: grid; gap: 8px; margin-block: 15px; font-size: .79rem; font-weight: 550; }
.run { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
#cost { max-width: 28ch; }
.notice { color: #813c32; background: #fbede7; border-inline-start: 2px solid #ce8a7d; padding: 10px 12px; margin-block-start: 14px; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.output { display: flex; flex-direction: column; }
.output-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-block-end: 23px; }
.output-heading h3 { font-size: .95rem; }
.output-heading .micro { font-size: .58rem; }
#result { flex: 1; display: flex; flex-direction: column; min-height: 358px; }
.screen { background: #252823; color: #e2e4da; border: 1px solid #3d4038; border-radius: 5px; min-height: 290px; flex: 1; display: grid; place-items: center; padding: 25px; text-align: center; font-size: .88rem; }
.empty { color: #b8bdb1; }
.empty p { max-width: 29ch; margin: 22px auto 0; font-size: .85rem; line-height: 1.7; }
.frame { display: grid; place-items: center; width: 66px; height: 47px; border: 1px solid #737a69; border-radius: 4px; margin-inline: auto; position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--accent); border: 2px solid #252823; }
.frame::before { inset-block-start: -3px; inset-inline-start: -3px; }
.frame::after { inset-block-end: -3px; inset-inline-end: -3px; }
.frame i { width: 0; height: 0; border: 7px solid transparent; border-inline-start: 11px solid #e5978b; margin-inline-start: 7px; }
.empty-rule { display: block; height: 1px; width: 45px; background: #656d5d; margin: 25px auto 0; }
.timeline { display: flex; align-items: center; gap: 5px; height: 38px; border: 1px solid var(--line); border-radius: 4px; margin-block-start: 9px; padding-inline: 8px; direction: ltr; }
.timeline span { font-size: .55rem; font-family: ui-monospace, monospace; color: var(--muted); }
.timeline i { height: 11px; flex: 1; background: #dcded3; border-radius: 1px; }
.timeline i:nth-child(3n) { background: #c4c9bc; }
.timeline i:nth-child(2) { background: var(--accent); }
video { display: block; width: 100%; max-height: 440px; background: #252823; border-radius: 4px; }
#reference-preview { max-height: 205px; margin-block: 13px; }
.screen video { max-height: 420px; }
.report { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 455px; overflow: auto; line-height: 1.65; margin: 0; max-width: 100%; text-align: start; width: 100%; font-size: .75rem; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.download { display: inline-flex; align-self: flex-start; font-size: .85rem; font-weight: 600; margin-block-start: 13px; border-block-end: 1px solid #a6594d; padding-block-end: 4px; color: #a24b3f; }
.output-note { margin-block: 19px 14px; font-size: .73rem; color: var(--muted); line-height: 1.6; }
.model-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-block-start: 1px solid var(--line); padding-block-start: 12px; color: var(--muted); font-size: .65rem; }
.history { margin-block-start: 25px; }
.history-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 35px; margin-block-end: 15px; }
.history-heading h3 { font-size: .85rem; padding-block-start: 2px; flex-shrink: 0; }
.history-heading > span { max-width: 82ch; text-align: end; font-size: .69rem; }
.jobs { font-size: .8rem; border-block: 1px solid var(--line); padding-block: 11px; }
.job-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px; background: transparent; border-radius: 3px; text-align: start; font-size: .82rem; padding: 12px; }
.job-row + .job-row { border-block-start-color: var(--line); }
.job-row:hover:not(:disabled) { background: var(--well); }
.job-row small { color: var(--muted); font-size: .7rem; font-weight: 450; text-align: end; }
.job-row[aria-pressed="true"] { background: var(--accent-soft); }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 32px 27px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { background: transparent; color: var(--muted); border-radius: 30px; min-height: 38px; padding: 8px 17px; font-size: .78rem; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button:hover:not(:disabled) { background: #e8e8df; color: var(--ink); }
.filters button[aria-pressed="true"]:hover { background: #464940; color: white; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 20px; }
.example-card { min-width: 0; }
.example-media { overflow: hidden; border-radius: 6px; border: 1px solid #d6d7cc; background: var(--well); }
.example-media video { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 0; }
.example-media video:focus-visible { outline-offset: -3px; }
.example-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: .56rem; line-height: 1.5; margin-block: 16px 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.example-meta span:last-child { background: #eeede6; padding: 3px 5px; border-radius: 2px; text-transform: none; letter-spacing: 0; font-size: .61rem; }
.example-card h3 { font-size: 1rem; line-height: 1.35; min-height: 2.7em; }
.example-card > p { color: var(--muted); font-size: .76rem; line-height: 1.7; margin-block: 9px 17px; min-height: 6.8em; }
.example-actions { display: flex; flex-direction: column; gap: 3px; border-block-start: 1px solid var(--line); padding-block-start: 7px; }
.text-button { justify-content: space-between; width: 100%; background: transparent; padding: 9px 0; border-radius: 0; min-height: 35px; font-size: .72rem; text-align: start; gap: 7px; }
.text-button span { font-size: .96rem; }
.text-button.quiet { color: var(--muted); font-weight: 450; }
.text-button:hover:not(:disabled) { background: transparent; color: #99483e; }
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px; }
.capability { position: relative; border-block-start: 1px solid var(--line); padding-block-start: 24px; }
.capability-mark { display: block; color: #b85d50; font-size: 2.3rem; line-height: 1; margin-block-end: 34px; }
.capability > .micro { position: absolute; inset-block-start: 26px; inset-inline-end: 0; }
.capability h3 { font-size: 1.35rem; margin-block-end: 13px; }
.capability p { font-size: .87rem; color: var(--muted); line-height: 1.8; }
.process-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; }
.process-section h2 { max-width: 15ch; }
.process-motif { display: flex; align-items: center; gap: 15px; margin-block-start: 50px; max-width: 300px; }
.process-motif span { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #cecdc3; border-radius: 50%; font-family: ui-monospace, monospace; font-size: .72rem; }
.process-motif span:last-child { background: var(--accent-soft); border-color: #ddab9f; }
.process-motif i { height: 1px; flex: 1; background: #cecdc3; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 28px; border-block-start: 1px solid var(--line); padding-block: 24px; }
.steps li:first-child { padding-block-start: 5px; border: 0; }
.step-number { padding-block-start: 3px; font-size: .7rem; color: #a64d41; font-family: ui-monospace, monospace; }
.steps h3 { font-size: 1.15rem; margin-block-end: 9px; }
.steps p { font-size: .85rem; line-height: 1.7; color: var(--muted); }
.report-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 90px; }
.report-copy h2 { max-width: 16ch; }
.report-copy > p:not(.eyebrow) { font-size: .91rem; line-height: 1.8; color: var(--muted); margin-block: 25px 17px; max-width: 45ch; }
.report-document { background: var(--paper); border: 1px solid #d7d7cd; border-radius: 5px; box-shadow: 6px 8px 0 #eeeee6; min-width: 0; }
.document-bar { display: flex; align-items: center; gap: 9px; padding: 16px 21px; border-block-end: 1px solid var(--line); font-family: ui-monospace, monospace; font-size: .78rem; }
.document-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.document-bar .micro { margin-inline-start: auto; font-size: .57rem; text-align: end; }
.report-document pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .77rem; line-height: 1.5; padding: 26px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-document figcaption { font-size: .7rem; line-height: 1.7; color: var(--muted); padding: 17px 24px; border-block-start: 1px solid var(--line); }
.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 80px; }
.faq-section h2 { max-width: 12ch; }
.faq-list details { border-block-start: 1px solid var(--line); }
.faq-list details:last-child { border-block-end: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: flex-start; gap: 18px; cursor: pointer; list-style: none; padding-block: 21px; font-size: .9rem; line-height: 1.55; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-number { color: var(--muted); font-family: ui-monospace, monospace; font-size: .62rem; padding-block-start: 3px; flex-shrink: 0; }
.faq-toggle { margin-inline-start: auto; font-size: 1.1rem; color: #a3574b; flex-shrink: 0; line-height: 1.2; }
.faq-list details[open] .faq-toggle { transform: rotate(45deg); }
.faq-list details > p { margin: 0 0 24px; padding-inline: 33px 25px; font-size: .84rem; color: var(--muted); line-height: 1.8; }
.closing { background: #f1b3a5; position: relative; padding: 68px; margin-block: 10px 80px; border-radius: 7px; overflow: hidden; }
.closing .eyebrow { color: #65463e; margin-block-end: 18px; }
.closing h2 { max-width: 16ch; font-size: clamp(2.5rem, 4.8vw, 4.4rem); line-height: 1.02; position: relative; }
.closing > p:not(.eyebrow) { font-size: .93rem; max-width: 48ch; line-height: 1.7; margin-block: 23px; position: relative; }
.closing-mark { position: absolute; inset-inline-end: 65px; inset-block-start: 32px; font-size: 185px; font-weight: 300; line-height: 1; color: #b872615e; }
.dark-button { background: var(--ink); color: var(--paper); position: relative; }
.dark-button:hover { background: #45463c; color: white; }
.closing-note { display: block; font-size: .73rem; line-height: 1.65; max-width: 70ch; margin-block-start: 15px; color: #60423a; position: relative; }
footer { border-block-start: 1px solid var(--line); padding-block: 40px 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-top > p { font-size: .79rem; color: var(--muted); }
.footer-top .text-link { font-size: .75rem; }
.attribution { max-width: 86ch; margin-block: 25px; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-block-start: 1px solid var(--line); padding-block-start: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .71rem; }
.footer-bottom > .micro { font-size: .57rem; }
:lang(ar), :lang(he) { font-family: Arial, system-ui, sans-serif; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3,
:lang(he) h1, :lang(he) h2, :lang(he) h3,
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { letter-spacing: normal; }
:lang(ar) .eyebrow, :lang(ar) .micro, :lang(he) .eyebrow, :lang(he) .micro { letter-spacing: normal; }
:lang(ar) .hero h1, :lang(he) .hero h1 { line-height: 1.15; max-width: 12ch; }
:lang(zh-Hant) .hero h1 { line-height: 1.15; max-width: 8.5em; font-size: clamp(3rem, 5.1vw, 5rem); }

@media (min-width: 1500px) {
  .hero { padding-block: 104px 124px; }
}
@media (max-width: 1200px) {
  .bar-inner, main, .footer-inner { padding-inline: 40px; }
  .hero { gap: 28px; padding-block: 70px 80px; }
  .hero h1 { font-size: clamp(3.4rem, 6.3vw, 5rem); }
  .hero-description { font-size: .97rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; }
  .example-media video { aspect-ratio: 16 / 9; }
  .example-card h3 { min-height: 0; font-size: 1.15rem; }
  .example-card > p { min-height: 3.4em; font-size: .83rem; }
  .example-meta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .example-actions { flex-direction: row; gap: 20px; }
  .text-button { width: auto; flex: 1; }
  .process-section, .report-section, .faq-section { gap: 48px; }
  .controls, .output { padding: 22px; }
}
@media (max-width: 900px) {
  .bar-inner, main, .footer-inner { padding-inline: 27px; }
  .bar nav { gap: 17px; font-size: .76rem; }
  .bar-inner { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 57px 65px; }
  .hero h1 { font-size: clamp(3.8rem, 10vw, 6rem); max-width: 13ch; }
  .hero-description { max-width: 52ch; font-size: 1rem; }
  .section { padding-block: 60px; }
  .section-heading { align-items: flex-start; gap: 30px; }
  .section-heading > p { max-width: 36ch; }
  .workspace { grid-template-columns: 1fr; }
  #result { min-height: 340px; }
  .screen { min-height: 290px; }
  .capabilities { gap: 25px; }
  .capability h3 { font-size: 1.1rem; }
  .capability p { font-size: .8rem; }
  .process-section, .report-section { gap: 35px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; }
  .faq-section h2 { max-width: 20ch; }
  .closing { padding: 45px; margin-block-end: 60px; }
  .closing-mark { inset-inline-end: 35px; font-size: 150px; }
}
@media (max-width: 640px) {
  .bar-inner, main, .footer-inner { padding-inline: 20px; }
  .bar-inner { min-height: 74px; flex-wrap: wrap; gap: 5px 15px; padding-block: 15px 8px; }
  .brand b { font-size: 1.23rem; }
  .brand img { width: 29px; height: 29px; }
  .bar nav { order: 3; justify-content: flex-start; width: 100%; gap: 25px; font-size: .75rem; }
  .bar nav a { padding-block: 10px; }
  .actions select { max-width: 105px; min-height: 36px; font-size: .75rem; }
  .hero { padding-block: 48px 52px; gap: 42px; }
  .hero h1 { font-size: clamp(3.15rem, 11.2vw, 4.5rem); }
  .hero-description { margin-block: 23px; font-size: .93rem; line-height: 1.75; }
  .eyebrow { font-size: .61rem; margin-block-end: 20px; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { font-size: .82rem; padding-inline: 17px; }
  .hero-actions .text-link { font-size: .77rem; gap: 8px; }
  h2 { font-size: 2.35rem; }
  .section { padding-block: 48px; }
  .section-heading { flex-direction: column; gap: 20px; margin-block-end: 25px; }
  .section-heading > p, .section-heading > .wide-description { max-width: none; font-size: .85rem; }
  .payment-info { padding: 16px; }
  .payment-info > p { font-size: .75rem; }
  .payment-heading { gap: 9px; }
  #balance { font-size: .74rem; }
  .controls, .output { padding: 18px; }
  .tabs button { font-size: .78rem; }
  .history-heading { flex-direction: column; gap: 8px; }
  .history-heading > span { text-align: start; }
  .job-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .job-row small { text-align: start; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; margin-block: 24px; }
  .filters { gap: 4px; }
  .filters button { padding-inline: 15px; }
  .gallery { grid-template-columns: 1fr; gap: 35px; }
  .example-media video { aspect-ratio: 16 / 9; }
  .example-meta { font-size: .59rem; }
  .example-card h3 { font-size: 1.18rem; }
  .example-card > p { min-height: 0; font-size: .83rem; }
  .text-button { font-size: .74rem; }
  .capabilities { grid-template-columns: 1fr; gap: 30px; }
  .capability { padding-block-start: 20px; }
  .capability-mark { margin-block-end: 20px; font-size: 2rem; }
  .capability h3 { font-size: 1.23rem; }
  .capability p { font-size: .86rem; }
  .process-section, .report-section { grid-template-columns: 1fr; gap: 30px; }
  .process-motif { margin-block-start: 28px; max-width: 235px; }
  .steps li:first-child { border-block-start: 1px solid var(--line); padding-block-start: 22px; }
  .steps li { gap: 22px; }
  .report-document pre { padding: 24px 20px; font-size: .73rem; }
  .document-bar { padding-inline: 16px; }
  .faq-list summary { font-size: .85rem; gap: 13px; padding-block: 19px; }
  .faq-list details > p { padding-inline: 27px 10px; font-size: .81rem; }
  .closing { padding: 35px 25px; margin-block-end: 48px; }
  .closing h2 { font-size: 2.6rem; max-width: 13ch; }
  .closing > p:not(.eyebrow) { font-size: .86rem; max-width: 36ch; }
  .closing-mark { font-size: 130px; inset-inline-end: 12px; inset-block-start: 24px; opacity: .6; }
  .footer-top { gap: 17px; }
  .footer-top > p { flex-basis: 100%; order: 3; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  :lang(zh-Hant) .hero h1 { font-size: clamp(2.7rem, 9.4vw, 3.7rem); }
  :lang(ar) .hero h1, :lang(he) .hero h1 { font-size: clamp(3rem, 10vw, 4.2rem); }
}
@media (max-width: 380px) {
  .bar-inner, main, .footer-inner { padding-inline: 16px; }
  .bar nav { gap: 18px; font-size: .72rem; }
  .hero-actions { gap: 10px 16px; }
  .hero h1 { font-size: 3.1rem; }
  .controls, .output { padding: 15px; }
  .fields { gap: 10px; }
  .filters button { padding-inline: 12px; }
  .example-actions { gap: 10px; }
  .text-button { font-size: .7rem; }
  .closing h2 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Account controls and native modal: no injected styles or external provider assets. */
.actions { gap: 12px; flex-shrink: 0; }
.account-controls, .account-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-button { min-height: 38px; padding: 8px 12px; font-size: .75rem; gap: 6px; }
.account-email, #account-email { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.account-status { max-width: 1272px; margin: 0 auto; padding: 0 24px 14px; color: #4a6651; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.account-status[data-error="true"] { color: #813c32; }
.login-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #d7d7cd; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px #25262330; overflow: auto; }
.login-dialog::backdrop { background: #25262364; backdrop-filter: blur(3px); }
.login-shell { padding: 28px 32px 30px; }
.login-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 24px; }
.login-heading .eyebrow { margin: 0; font-size: .62rem; }
.dialog-close { min-height: 36px; width: 36px; padding: 0; border-color: var(--line); background: transparent; font-size: 1.5rem; font-weight: 400; }
.dialog-close:hover:not(:disabled) { background: var(--well); }
.login-dialog h2 { font-size: 2.15rem; line-height: 1.15; }
.login-description { margin-block: 16px 22px; color: var(--muted); font-size: .83rem; line-height: 1.75; }
.google-button { display: flex; width: 100%; background: white; border-color: var(--line); gap: 12px; }
.google-button:hover { background: var(--well); }
.google-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.google-mark { font-family: Arial, sans-serif; font-size: 1.2rem; font-weight: 750; }
.login-provider-note { color: var(--muted); font-size: .76rem; line-height: 1.65; margin-block: 10px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin-block: 20px; color: var(--muted); font-size: .71rem; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-dialog form label { display: block; margin-block-end: 8px; font-size: .79rem; font-weight: 600; }
.login-dialog form input { min-height: 46px; font-size: .95rem; }
.login-dialog form > button[type="submit"] { width: 100%; margin-block-start: 16px; }
#login-code { font-family: ui-monospace, monospace; font-size: 1.3rem; letter-spacing: .28em; }
.login-destination { margin-block-end: 19px; padding-block-end: 12px; border-block-end: 1px solid var(--line); overflow-wrap: anywhere; font-size: .82rem; }
.login-destination .text-button { width: auto; font-size: .72rem; color: var(--muted); }
.login-resend-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.login-resend-row .text-button { width: auto; font-size: .75rem; }
#login-message[data-error="false"] { background: #eef2e9; border-color: #829573; color: #465841; }
.back-button { width: 100%; margin-block-start: 22px; font-size: .78rem; }
body:has(.login-dialog[open]) { overflow: hidden; }
@media (max-width: 1100px) {
  .bar-inner { flex-wrap: wrap; gap: 8px 20px; padding-block: 18px 10px; }
  .bar nav { order: 3; width: 100%; justify-content: flex-start; }
  .bar nav a { padding-block: 9px; }
}
@media (max-width: 640px) {
  .actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
  .account-button { min-height: 36px; padding: 8px 10px; font-size: .72rem; }
  #account-email { max-width: 116px; font-size: .66rem; }
  .account-user { gap: 6px; }
  .account-status { padding-inline: 20px; }
  .login-shell { padding: 22px 23px 25px; }
  .login-heading { margin-block-end: 20px; }
  .login-dialog h2 { font-size: 1.95rem; }
}
@media (max-width: 440px) {
  .bar-inner > .brand { margin-block-end: 4px; }
  .bar-inner > .actions { width: 100%; justify-content: space-between; margin: 0; }
  #account-email { max-width: 150px; }
}

/* Original, moving references: all frames remain uncropped, no autoplay. */
.hero { padding-block: 64px 72px; }
.hero-proof { min-width: 0; padding: 20px; background: #eeede6; border: 1px solid var(--line); border-radius: 10px; }
.hero-proof-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 14px; }
.hero-proof-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-proof-players figure { min-width: 0; }
.hero-proof-players figcaption { font-size: .72rem; font-weight: 600; line-height: 1.4; margin-block-end: 8px; }
.hero-proof-players video { aspect-ratio: 9 / 16; max-height: 370px; width: 100%; object-fit: contain; }
.hero-proof-note { font-size: .78rem; line-height: 1.65; margin-block-start: 15px; }
.hero-proof-provenance { font-size: .68rem; line-height: 1.65; color: var(--muted); margin-block-start: 7px; }
.hero-proof .text-link { font-size: .75rem; margin-block-start: 7px; }
.processing-paused-note { margin-block: 0 20px; padding: 12px 16px; background: #fbede7; border-inline-start: 2px solid #ce8a7d; color: #813c32; font-size: .8rem; line-height: 1.6; }
.gallery-note-block { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; background: #efeee7; padding: 20px 22px; border: 1px solid #e4e3da; border-radius: 6px; }
.gallery-note-block p { font-size: .75rem; line-height: 1.7; color: var(--muted); }
.gallery-provenance { color: var(--ink) !important; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.example-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; padding: 16px; background: var(--paper); }
.example-media { display: flex; align-items: center; justify-content: center; height: 350px; background: #242620; }
.example-media video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; max-height: none; }
.example-meta { flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: .59rem; }
.example-card h3 { min-height: 0; font-size: 1.16rem; }
.example-card > p { min-height: 0; font-size: .82rem; line-height: 1.7; margin-block: 12px; }
.example-card .example-type { padding-block: 9px; border-block: 1px solid var(--line); font-size: .72rem; }
.example-type span { color: var(--ink); font-weight: 600; }
.example-source a { display: inline-flex; align-items: center; gap: 8px; padding-block: 9px; min-height: 44px; font-size: .75rem; color: #984f42; text-decoration: underline; text-underline-offset: 3px; }
.example-source p { color: var(--muted); font-size: .68rem; line-height: 1.65; }
.example-outline { margin-block: 16px; border-block: 1px solid var(--line); }
.example-outline summary { min-height: 44px; padding-block: 13px; cursor: pointer; font-size: .77rem; font-weight: 600; }
.example-outline-note { font-size: .7rem; line-height: 1.65; color: var(--muted); padding-block-end: 13px; }
.example-shots { list-style: none; padding: 0; margin: 0 0 15px; }
.example-shot + .example-shot { margin-block-start: 13px; }
.example-shot-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: .68rem; color: #8b4c3f; }
.shot-time { font-size: .61rem; color: var(--muted); font-family: ui-monospace, monospace; }
.example-shot p { font-size: .72rem; line-height: 1.65; color: var(--muted); margin-block-start: 5px; }
.example-actions { margin-block-start: auto; flex-direction: column; gap: 0; }
.example-actions .text-button { width: 100%; min-height: 44px; font-size: .76rem; }
.filters button, .source-tabs button { min-height: 44px; }
.example-card, .comparison-card, .hero-proof { overflow-wrap: anywhere; }
.comparison-note { margin-block: -12px 24px; font-size: .76rem; color: var(--muted); line-height: 1.65; max-width: 105ch; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.comparison-card { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; }
.comparison-card h3 { font-size: 1.13rem; }
.comparison-description { font-size: .77rem; color: var(--muted); line-height: 1.65; margin-block: 12px 18px; min-height: 5em; }
.comparison-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.comparison-player { min-width: 0; }
.comparison-label { font-size: .66rem; line-height: 1.5; margin-block-end: 9px; min-height: 3em; font-weight: 600; }
.comparison-player .example-media { height: auto; aspect-ratio: 9 / 16; }
.comparison-player video { aspect-ratio: 9 / 16; }
@media (max-width: 1200px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 14px 30px; }
  .comparison-description { grid-column: 1; min-height: 0; align-self: start; }
  .comparison-players { grid-column: 2; grid-row: 1 / span 2; }
  .comparison-player .example-media { max-height: 340px; }
  .example-actions { gap: 0; }
}
@media (max-width: 900px) {
  .hero-proof { width: 100%; max-width: 600px; justify-self: center; }
  .hero-proof-players video { max-height: 420px; }
  .gallery-note-block { grid-template-columns: 1fr; gap: 10px; }
  .example-media { height: 330px; }
}
@media (max-width: 640px) {
  .hero { padding-block: 44px 48px; gap: 28px; }
  .hero-proof { padding: 14px; }
  .hero-proof-players { gap: 9px; }
  .hero-proof-players video { max-height: 340px; }
  .hero-proof-provenance { font-size: .7rem; }
  .gallery { grid-template-columns: 1fr; gap: 22px; }
  .example-card { padding: 14px; }
  .example-media { height: 410px; }
  .gallery-note-block { padding: 16px; }
  .comparison-card { display: block; padding: 16px; }
  .comparison-description { min-height: 0; }
  .comparison-label { min-height: 0; font-size: .72rem; }
  .comparison-player .example-media { max-height: 420px; }
}
@media (max-width: 480px) {
  .comparison-players { grid-template-columns: 1fr; gap: 18px; }
  .comparison-player .example-media { aspect-ratio: auto; height: 410px; }
}

/* The existing production catalog is retained; checkout remains gated. */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pricing-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; min-width: 0; }
.pricing-card h3 { font-size: 30px; letter-spacing: -.03em; overflow-wrap: anywhere; margin: 0; }
.pricing-card p { margin: 0; line-height: 1.6; }
.pricing-card button { margin-top: auto; min-height: 44px; }
.pricing-section .section-heading p { max-width: 65ch; margin-block-start: 18px; line-height: 1.6; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } .pricing-card { padding: 20px; } }

.pricing-grid[data-cycle="annual"],.pricing-grid[data-cycle="monthly"] { grid-template-columns: minmax(0,620px); }
.pricing-grid[data-cycle="pack"] { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media(max-width:1000px){.pricing-grid[data-cycle="pack"]{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.pricing-grid[data-cycle="pack"]{grid-template-columns:minmax(0,1fr);}}
