/* Mobile first. Phone widths are the base; wider layouts are added at 640, 1024 and 1200 px.
   Type scale: 16 body, 14 secondary and required notes, 13 quiet metadata, 12 only on media chips.
   Panels that hold a required line use an opaque dark surface so its contrast can be measured. */
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: #f6f4f0;
  background: #07070a;
  --ink: #07070a;
  --paper: #0e0e13;
  --panel: #121218;
  --well: #0a0a0e;
  --fg: #f6f4f0;
  --muted: #b8b5ae;
  --subtle: #a19e98;
  --note: #d4d4da;
  --line: #ffffff1a;
  --line-strong: #ffffff2e;
  --accent: #ff5b2e;
  --accent-ink: #1a0700;
  --gutter: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; background: radial-gradient(ellipse 600px 480px at 50% 0, #ff5b2e1c, transparent); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
input, textarea { font-size: 16px; }
button, a, input, textarea, summary, label { touch-action: manipulation; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .45; }
[hidden] { display: none !important; }
::selection { background: #ff5b2e59; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 16px; z-index: 50; padding: 12px; min-height: 44px; background: var(--fg); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4.6vw, 5rem); line-height: 1; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 26px; line-height: 1.12; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* Page frame */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #ffffff0f; background: #07070aeF; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header-inner, main, .footer-inner { width: 100%; max-width: 1152px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
main { flex: 1 0 auto; min-width: 0; }
.header-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; min-width: 0; min-height: 44px; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.6px; text-decoration: none; }
.brand-mark { flex: none; width: 12px; height: 18px; border: 2px solid var(--accent); border-radius: 3px; }
.badge { display: inline-flex; flex: none; height: 32px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #ffffff26; border-radius: 30px; background: #ffffff0a; color: var(--muted); font-size: 14px; font-weight: 500; }
.badge::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.notice { padding: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.error { margin-top: 16px; padding: 14px 16px; background: #301716; border: 1px solid #ff9b8a66; color: #ffb7aa; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; }
.eyebrow, .step-index { color: var(--subtle); font-size: 12px; letter-spacing: 1.4px; font-weight: 600; }

/* Buttons */
.primary, .secondary, .light, .text-button { text-wrap: balance; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-size: 16px; line-height: 1.3; font-weight: 600; text-align: center; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .1s; }
.primary { color: var(--accent-ink); background: var(--accent); font-weight: 700; box-shadow: 0 0 0 1px #ff5b2e59, 0 12px 40px -12px #ff5b2e99; }
.primary:hover { background: #ff7449; }
.primary:active, .secondary:active, .light:active { transform: translateY(1px); }
.primary:disabled { box-shadow: none; }
.secondary { color: var(--fg); background: #ffffff0f; border-color: var(--line-strong); }
.secondary:hover { background: #ffffff1a; }
.light { background: var(--fg); color: var(--ink); min-height: 48px; }
.light:hover { background: white; }
.text-button { background: transparent; color: var(--muted); padding: 10px 12px; min-height: 44px; }
.text-button:hover { background: #ffffff0d; color: var(--fg); }
.wide { width: 100%; min-height: 60px; font-size: 17px; }
.pill-divider { color: #1a070066; font-weight: 400; margin: 0 2px; }

/* Fields */
textarea, input[type=password], input[type=email], input[inputmode=numeric], #report-form input, select { display: block; width: 100%; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--ink); padding: 14px 16px; color: var(--fg); font-size: 16px; transition: border-color .15s; }
textarea { resize: vertical; line-height: 1.5; }
textarea::placeholder, input::placeholder { color: var(--subtle); opacity: 1; }
textarea:focus-visible, input:focus-visible, select:focus-visible { outline-width: 2px; outline-offset: 1px; border-color: var(--accent); }
input[type=checkbox]:focus-visible, input[type=range]:focus-visible { outline-width: 3px; outline-offset: 3px; }
input[type=checkbox] { accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend, .field-label { padding: 0; font-size: 16px; font-weight: 600; margin-bottom: 10px; }

/* Landing: hero */
.hero { display: block; padding: 28px 0 0; }
.hero-copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 18px; }
.intro { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 448px; margin-top: 16px; }
.hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 22px; }
.hero-cta .primary { min-height: 56px; font-size: 17px; }
.hero-cta>span { color: var(--muted); font-size: 16px; line-height: 1.4; }

/* Landing: samples. Phones and tablets get one snap row of compact cards (picture left, words right)
   with the next card's picture peeking in; desktop gets three aligned portrait cards. */
.sample-strip { margin-top: 30px; min-width: 0; }
.sample-strip>h2 { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 12px; }
.samples { list-style: none; display: flex; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.samples::-webkit-scrollbar { display: none; }
/* A trailing spacer lets the last card snap to the same left edge as the others. */
.samples::after { content: ""; flex: 0 0 calc(14% - 12px); }
.samples li { display: flex; flex: 0 0 min(86%, 340px); min-width: 0; scroll-snap-align: start; }
.samples figure { flex: 1; min-width: 0; display: grid; grid-template-columns: clamp(104px, 39%, 132px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.sample-media { position: relative; grid-column: 1; grid-row: 1 / -1; align-self: stretch; width: 100%; overflow: hidden; background: var(--panel); aspect-ratio: 9/16; }
.sample-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.samples figcaption { grid-column: 2; display: block; padding: 14px 14px 0 0; color: var(--fg); font-size: 15px; line-height: 1.4; overflow: visible; overflow-wrap: normal; word-break: normal; }
.caption-word { display: inline-block; white-space: nowrap; }
.sample-specs { grid-column: 2; padding-right: 14px; margin-top: 8px; color: var(--subtle); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.custom-player { position: relative; isolation: isolate; }
.player-viewport { position: relative; }
.player-controls { position: relative; padding: 8px 12px; background: #07070a; }
.captions-toggle { display: block; min-width: 44px; min-height: 44px; padding: 8px 12px; color: var(--fg); background: #16161d; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.custom-player video { display: block; width: 100%; }
.play-toggle { position: absolute; inset: 0; border: 0; background: transparent; color: white; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; }
.play-toggle:focus-visible { outline-offset: -5px; border-radius: inherit; }
.play-glyph { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid #ffffff40; background: #07070a73; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 22px; padding-left: 3px; transition: opacity .15s; }
.sample-media .play-glyph { width: 44px; height: 44px; font-size: 15px; }
.playing .play-glyph { opacity: 0; }
.playing:hover .play-glyph, .playing:focus-within .play-glyph { opacity: 1; }
.player-progress { position: absolute; pointer-events: none; top: 12px; left: 12px; right: 12px; height: 2px; background: #ffffff40; border-radius: 2px; overflow: hidden; }
.sample-media .player-progress { top: 8px; left: 8px; right: 8px; }
.player-progress-fill { display: block; height: 100%; width: 0; background: var(--fg); }
.duration-pill { position: absolute; pointer-events: none; bottom: 10px; left: 8px; background: #07070ad9; border-radius: 20px; padding: 4px 8px; font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.media-label { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 9px; border-radius: 20px; background: #07070ad9; color: var(--fg); font-size: 12px; line-height: 1.4; pointer-events: none; }
.sample-media .media-label { top: 18px; left: 8px; font-size: 12px; padding: 3px 7px; white-space: nowrap; }
.sound-toggle { position: absolute; top: 12px; right: 12px; z-index: 2; min-height: 44px; padding: 4px 12px; border: 0; border-radius: 24px; background: #07070ad9; color: var(--fg); font-size: 13px; }
.player-bar { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; border-radius: 32px; padding: 0 12px; background: #07070ae6; }
.player-seek { min-width: 44px; width: 100%; min-height: 44px; accent-color: var(--accent); }
.player-clock { flex-shrink: 0; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Landing: steps and the order card */
.order-grid { display: flex; flex-direction: column; gap: 32px; padding: 32px 0 28px; }
.process { min-width: 0; }
.process>.eyebrow { margin-bottom: 18px; }
.process-intro { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 8px 0 20px; max-width: 448px; }
.process-list { list-style: none; padding: 0; margin: 0; }
.process-list li { position: relative; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 14px; padding-bottom: 16px; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li:not(:last-child)::before { content: ""; position: absolute; top: 36px; bottom: 4px; left: 15.5px; width: 1px; background: var(--line-strong); }
.process-list li>span { position: relative; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid #ffffff33; border-radius: 50%; font-size: 14px; font-weight: 700; background: var(--ink); }
.process-list h3 { margin: 4px 0 2px; }
.process-list h3 small { color: var(--subtle); font-weight: 400; font-size: 16px; display: inline-block; margin-left: 8px; }
.process-list p, .quiet-box p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.card { padding: 20px 18px; background: #0e0e13d9; border: 1px solid var(--line); border-radius: 24px; box-shadow: inset 0 1px 0 #ffffff0d, 0 40px 80px -40px #000e; }
.order-card { width: 100%; scroll-margin-top: 68px; padding-bottom: 0; overflow: hidden; }
.order-card h2 { margin: 0 0 20px; font-size: 28px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--subtle); }
.price-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; min-height: 96px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: #ffffff05; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice input, .ratio-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice::after { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border: 2px solid #ffffff40; border-radius: 50%; transition: border-color .15s, background .15s; }
.choice:has(input:checked), .ratio-choice:has(input:checked)>span { border-color: var(--accent); background: #ff5b2e1f; box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:checked)::after { border-color: var(--accent); background: radial-gradient(circle, var(--accent-ink) 0 3.5px, var(--accent) 4.5px); }
.choice:has(input:focus-visible), .ratio-choice:has(input:focus-visible)>span { outline: 3px solid var(--accent); outline-offset: 4px; }
.choice strong { font-size: 16px; font-weight: 500; color: var(--muted); padding-right: 30px; }
.choice:has(input:checked) strong { color: var(--fg); }
.choice small { display: block; font-size: 13px; margin-top: 4px; color: var(--subtle); }
.choice b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ratio-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.ratio-choice { position: relative; cursor: pointer; }
.ratio-choice>span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 10px 4px; border: 1px solid var(--line-strong); border-radius: 16px; background: #ffffff05; font-size: 16px; color: var(--muted); transition: border-color .15s, background .15s, box-shadow .15s; }
.ratio-choice:has(input:checked)>span { color: var(--fg); }
.ratio-choice small { font-size: 14px; color: var(--subtle); }
.frame-icon { display: block; border: 1.5px solid var(--muted); border-radius: 3px; margin-bottom: 5px; }
.frame-icon.vertical { width: 12px; height: 20px; }
.frame-icon.landscape { width: 22px; height: 13px; margin-top: 3px; margin-bottom: 9px; }
.frame-icon.square { width: 17px; height: 17px; margin-top: 1px; margin-bottom: 7px; }
.ratio-choice:has(input:checked) .frame-icon { border-color: var(--accent); background: #ff5b2e40; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#prompt-count { color: var(--subtle); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#prompt { min-height: 136px; }
.field-hint { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 10px 0 0; }
#prompt-help { color: var(--subtle); }
.rules-disclosure { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rules-disclosure>.text-button { justify-content: flex-start; text-align: left; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff05; color: var(--fg); font-weight: 500; }
.rules-disclosure>.text-button:hover { background: #ffffff0d; }
.rules-panel { margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff05; }
.rules-panel ul { padding-left: 20px; margin: 10px 0; }
.rules-panel li+li { margin-top: 8px; }
.rules-panel a, .prompt-feedback a, .payment-policies a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
.prompt-feedback { overflow-wrap: anywhere; }
.payment-policies { display: flex; gap: 12px; flex-wrap: wrap; }
/* The agree-and-pay part of the card sits in its own darker well, flush with the card edges. */
.form-checkout { margin: 22px -18px 0; padding: 18px 18px 22px; border-top: 1px solid var(--line); background: var(--well); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); transition: border-color .15s; }
.consent-row:has(input:checked) { border-color: #ff5b2eb3; }
/* The box draws 24px square; its tap area stays 44px tall as before. */
.consent-row input { flex: 0 0 24px; width: 24px; height: 44px; margin: -10px 0; cursor: pointer; }
.consent-row label { font-size: 15px; line-height: 1.5; cursor: pointer; }
.consent-policy-links { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; margin: 2px 0 -8px; }
.checkout-summary { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
#checkout-refund { margin: 16px -20px 0; font-size: 13px; line-height: 20px; }
#checkout-price { margin-top: 16px; color: var(--fg); font-size: 16px; font-weight: 500; line-height: 1.45; }
.fine-print { color: var(--subtle); font-size: 14px; line-height: 1.5; margin-top: 12px; }
#form-allowance-note { margin-top: 4px; }
#create-button { margin-top: 14px; }
.reassurance { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.refusal-note { color: var(--subtle); font-size: 14px; line-height: 1.5; text-align: center; margin: 0 0 8px; }
#paused-banner { padding: 16px; border: 1px solid var(--accent); border-radius: 16px; font-size: 16px; margin-top: 20px; text-align: left; }

/* Shared quiet panels */
.quiet-box { padding: 18px; background: #ffffff08; border: 1px solid var(--line); border-radius: 20px; margin-top: 24px; }
.quiet-box h3 { margin-bottom: 6px; font-size: 16px; }

/* Order page */
#order-page { padding: 18px 0 32px; }
.progress-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 6px; max-width: 560px; margin: 0 auto 22px; }
.progress-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--subtle); font-size: 15px; line-height: 1.3; min-width: 0; }
.progress-step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 22px); width: calc(100% - 38px); height: 2px; border-radius: 2px; background: var(--line); }
.progress-step.done::after { background: #f6f4f066; }
.progress-number { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid #ffffff33; border-radius: 50%; font-size: 14px; font-weight: 600; }
.progress-step.done, .progress-step.active { color: var(--fg); }
.progress-step.active { font-weight: 600; }
.progress-step.active .progress-number { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 4px #ff5b2e2e; }
.progress-step.done .progress-number { background: var(--fg); color: var(--ink); border-color: transparent; }
#order-main { display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; }
#order-main>* { min-width: 0; }
#order-main>*+* { margin-top: 16px; }
#order-main .screen-title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -.03em; }
.status-kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status-kicker.status-visible { position: static; display: block; width: auto; height: auto; clip-path: none; color: var(--subtle); font-size: 14px; text-transform: capitalize; }
.saved-prompt { border-left: 2px solid #ffffff33; padding-left: 14px; margin: 12px 0 0; color: var(--muted); line-height: 1.5; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
#order-main>p:not(.saved-prompt) { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 0; }
.helper-line { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 12px 0 0; }
.format-line { color: var(--subtle); font-size: 14px; margin-top: 12px; }
.media-frame { position: relative; width: min(70vw, 300px); margin: 0 auto; border-radius: 24px; overflow: hidden; background: #16161d; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px #000; }
#order-main>.media-frame { margin-top: 20px; }
.media-frame.ratio-wide { width: 100%; }
.media-frame.ratio-square { width: min(100%, 400px); }
.media-view { display: block; width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; background: #16161d; }
.ratio-wide .media-view { aspect-ratio: 16/9; }
.ratio-square .media-view { aspect-ratio: 1; }
.demo-media { position: absolute; top: 46px; left: 12px; pointer-events: none; color: var(--muted); background: #07070ac9; border-radius: 12px; padding: 3px 7px; font-size: 12px; }
.approval-heading .saved-prompt { margin-bottom: 0; }
.approval-actions { width: 100%; }
.approval-actions>.primary { margin-top: 14px; }
.approval-actions>.primary:first-child { margin-top: 0; }
#order-main .approval-actions>.primary+.disclosure-lines { margin-top: 16px; }
.approval-actions>.secondary { margin-top: 12px; }
.approval-actions>.payment-policies~.primary { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0; }
.actions>.primary { width: 100%; min-height: 60px; }
#order-main .primary, #order-main .secondary { width: 100%; }
.reroll-wrap { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line); }
.reroll-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.reroll-row>.helper-line { flex: 1 0 100%; }
#order-main .reroll-row>.secondary { flex: 1 1 0; width: auto; }
.allowance-pill { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid var(--line); border-radius: 24px; padding: 4px 12px; font-size: 14px; color: var(--muted); background: #ffffff0a; }
.approval-actions>.allowance-pill { margin-top: 20px; }
.edit-panel { margin: 16px 0 0; }
.edit-label { display: block; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.edit-box { min-height: 96px; }
.edit-hint { display: flex; gap: 16px; justify-content: space-between; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--subtle); }
.edit-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#order-main .panel-actions .light { flex: 1 1 auto; }
.loading-media { aspect-ratio: 9/16; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid #ffffff0f; isolation: isolate; }
.loading-media.ratio-wide { aspect-ratio: 16/9; }
.loading-media.ratio-square { aspect-ratio: 1; }
.loading-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg,transparent 20%,#ffffff14 50%,transparent 80%); animation: shimmer 1.8s linear infinite; z-index: -1; }
.loading-message { padding: 24px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.loading-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.loading-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: breathe 1.6s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .2s; }
.loading-dots i:nth-child(3) { animation-delay: .4s; }
.render-ring { width: 200px; height: 200px; margin: 8px auto 0; position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; background: radial-gradient(circle,#ff5b2e12,transparent 70%); }
.render-ring::after { content: ""; position: absolute; inset: 16px; border: 6px solid #ffffff1a; border-radius: 50%; }
.render-ring::before { content: ""; position: absolute; z-index: 1; inset: 16px; border: 6px solid transparent; border-top-color: var(--accent); border-radius: 50%; animation: spin 2.4s linear infinite; }
.render-ring span { font-size: 42px; color: var(--fg); font-weight: 800; letter-spacing: 8px; }
.is-rendering #order-main { max-width: 480px; }
.is-rendering .approval-heading, .is-rendering #order-main>.helper-line { text-align: center; }
.is-rendering .saved-prompt { text-align: left; }
.cleared-media>h2, .retained-final>h2, .delete-confirmation>h2 { font-size: 20px; letter-spacing: -.02em; }
.cleared-media>.media-frame, .retained-final>.media-frame { margin-top: 14px; }
.cleared-media>.primary, .retained-final>.primary { margin-top: 14px; }
.link-card { margin-top: 0; }
.link-card h3 { margin-bottom: 6px; }
.link-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
#private-link { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: 14px; background: #07070ab3; padding: 11px 12px; color: var(--muted); font-size: 15px; }
.link-row .light { flex-shrink: 0; padding: 12px 16px; font-size: 15px; }
#render-link-slot { width: 100%; }
#render-link-slot .link-card p { display: none; }
.is-problem .progress-track, .is-refunded .progress-track { display: none; }
.is-problem #order-main { max-width: 600px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 24px; background: #0e0e13d9; box-shadow: inset 0 1px 0 #ffffff0d,0 40px 80px -40px #000e; }
.problem-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: #ffffff0f; color: var(--muted); font-size: 24px; }
.is-problem .saved-prompt { padding: 14px 16px; background: #07070a99; border: 1px solid #ffffff14; border-radius: 14px; }
.is-problem #order-main>.primary, .is-problem #order-main>.secondary { width: 100%; }
.is-refunded #order-main { padding: 16px 0 0; max-width: 480px; }
.is-refunded .problem-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; background: var(--fg); color: var(--ink); }
.is-refunded .approval-heading, .is-refunded #order-main>.helper-line { text-align: center; }
.is-refunded .saved-prompt { text-align: left; margin-top: 24px; }
/* Housekeeping rows under the action: email choices, deletion, order details. */
details { color: var(--muted); }
summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.deletion-details,.offers-panel { grid-column:1/-1; font-size:14px; line-height:1.6; text-align:left; border-top: 1px solid var(--line); }
#order-main>.offers-panel, #order-main>.deletion-details { margin-top: 24px; padding-top: 4px; }
#order-main>.offers-panel+.deletion-details, #order-main>.deletion-details+.delete-panel, #order-main>.delete-panel+.delete-panel { margin-top: 4px; }
.deletion-details summary,.offers-panel>summary { min-height:44px; cursor:pointer; color: var(--fg); }
.delete-panel { border-top: 1px solid var(--line); padding-top: 16px; }
.delete-panel>.helper-line { margin-top: 0; }
#order-main .delete-panel .text-button { margin: 10px 0 0; padding: 10px 18px; border-color: var(--line-strong); color: var(--fg); font-size: 15px; }
.delete-confirmation { grid-column:1/-1; text-align:left; padding:18px; border:1px solid #777780; border-radius:16px; background: var(--panel); }
.delete-confirmation>h2 { margin-bottom: 10px; }
.delete-confirmation>.secondary { margin-top: 12px; }
.order-details { max-width: 600px; margin: 20px auto 0; border-top: 1px solid var(--line); padding-top: 4px; }
.details-heading { font-size: 15px; }
.brief-details { padding: 12px 0 20px; }
.brief-details .secondary { width: 100%; }
#order-spec { color: var(--muted); font-size: 15px; line-height: 1.5; }
#timeline { padding-left: 20px; font-size: 13px; line-height: 1.8; }
.object-hash, #admin-held .quiet-box p { overflow-wrap: anywhere; }
#admin-held .quiet-box + .quiet-box { margin-top: 16px; }
.history-section { max-width: 600px; margin: 24px auto 0; border-top: 1px solid #ffffff14; padding-top: 16px; }
.history-section>h2 { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.history-grid { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding: 12px 4px 8px; scrollbar-width: thin; }
.history-item { width: 76px; flex: 0 0 76px; min-width: 0; padding: 0; text-align: left; background: transparent; color: var(--muted); border: 0; border-radius: 14px; }
.history-label { display: block; font-size: 14px; margin-top: 8px; }
.history-thumb { display: block; position: relative; width: 76px; border-radius: 14px; overflow: hidden; background: #16161d; aspect-ratio: 9/16; }
.history-thumb.ratio-wide { aspect-ratio: 16/9; }
.history-thumb.ratio-square { aspect-ratio: 1; }
.history-item[aria-pressed=true] .history-thumb { outline: 2px solid var(--fg); outline-offset: 2px; }
.history-item[aria-pressed=true] { color: var(--fg); }
.history-item .media-label { position: absolute; inset: auto 0 0; background: #07070ad9; display: block; padding: 4px; font-size: 12px; border-radius: 0; text-align: center; }
.history-item .media-view { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }

/* Admin */
.page-heading { padding: 40px 0 28px; }
.page-heading h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 3.5rem); margin: 16px 0; }
.page-heading>p { color: var(--muted); line-height: 1.6; }
.admin-login { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.admin-login label { white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 13px; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.6; }
th { background: #ffffff08; }
#admin-guardrails { margin: 24px 0; }
.panel-actions>* { min-width: 0; max-width: 100%; }
.operator-status { overflow-x: auto; font-size: 13px; }
#admin-guardrails h2 { margin: 20px 0; }
#admin-reports { display: grid; gap: 16px; overflow-wrap: anywhere; }
#admin-reports p { margin: 12px 0; }

/* Footer: a clean stack on phones, columns from 640 px. */
footer { border-top: 1px solid #ffffff0f; margin-top: 8px; }
.footer-inner { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px 32px; padding-top: 20px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--subtle); font-size: 14px; line-height: 1.5; }
.footer-brand { color: var(--muted); font-weight: 600; }
.footer-inner nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; padding: 4px 0 8px; border-bottom: 1px solid #ffffff0f; }
.footer-inner nav a:nth-child(n+5) { grid-column: 1 / -1; }
footer a { text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 4px; }
.footer-inner nav a:hover, .footer-brand:hover { color: var(--fg); }

/* Policy, sign-in, report and similar single-column pages */
.policy-page { overflow-wrap:anywhere; max-width: 720px; padding-top: 36px; padding-bottom: 48px; }
.policy-page h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.5rem); line-height: 1.05; }
.policy-page p { color: var(--muted); line-height: 1.6; margin: 20px 0; }
.policy-page h2 { margin-top: 32px; font-size: 22px; }
.policy-page .draft { color: var(--accent); }
.policy-page .secondary { text-decoration: none; }
.policy-page a:not(.brand):not(.secondary), .consent-row a { color: #a7c8ff; text-decoration: underline; display: inline-block; min-height: 44px; min-width: 44px; line-height: 44px; }
/* Same 44px target, but the rows of policy names sit closer together. */
.consent-row a { line-height: 1.5; padding: 11px 0; margin: -3px 0; }
#report-form { display: grid; gap: 12px; }
#report-form input, select { font: inherit; font-size: 16px; width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; background: var(--ink); color: var(--fg); }
#report-form label { font-weight: 600; margin-top: 6px; }
#report-form .primary { margin-top: 8px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes breathe { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* Round 10: required copy remains readable and in normal layout at touch widths. */
.disclosure-lines { width:100%; clear:both; text-align:left; margin:14px 0; }
.disclosure-lines p,.disclosure-lines>div,.footer-disclosures p,.sample-ai-notice { font-size:14px; line-height:1.5; color:#d4d4da; white-space:normal; overflow:visible; height:auto; max-height:none; margin:8px 0; overflow-wrap:anywhere; }
.disclosure-lines>:first-child { margin-top:0; }
.disclosure-lines>:last-child { margin-bottom:0; }
.disclosure-lines a,.footer-disclosures a { color:#ffab90; text-decoration:underline; display:inline-flex; align-items:center; min-width:44px; min-height:44px; max-width:100%; }
.footer-disclosures { width:100%; padding-top: 12px; }
.footer-disclosures p { margin: 4px 0; }
.sample-ai-notice { grid-column: 2; align-self: end; margin: 8px 0 0; padding: 0 14px 12px 0; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: normal; }
#signin-page input[type=email],#signin-page input[inputmode=numeric] { width:100%; font-size:16px; padding:14px 16px; margin:0 0 6px; }
#signin-page .card { display:flex; flex-direction:column; gap:10px; }
#order-main .disclosure-lines { grid-column:1/-1; margin: 0; }
#order-main>.disclosure-lines { margin-top: 16px; }
#order-main .approval-actions>.disclosure-lines+.disclosure-lines { margin-top: 8px; }
#order-main .payment-policies { display:flex; flex-wrap:wrap; gap:12px; }
/* The four lines under the hero: one calm panel, grouped with space. */
#landing-disclosures .disclosure-lines { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--well); display: grid; gap: 10px; }
#landing-disclosures .disclosure-lines p { margin: 0; max-width: 68ch; }
#form-disclosures .disclosure-lines { margin: 14px 0 0; }

/* Round 11: one compact payment block; links keep a readable text baseline. */
.pay-block { grid-column:1/-1; width:100%; text-align:left; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--well); }
/* Inside the problem card the pay block is not boxed a second time, so its lines keep the full width. */
.is-problem .pay-block { padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.pay-block .disclosure-lines { margin:8px 0; }
.pay-block>.disclosure-lines:first-child { margin-top: 0; }
.pay-block .disclosure-lines p { margin:6px 0; line-height:1.5; }
.pay-price { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-price .disclosure-lines { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 8px; margin: 0; }
.pay-price .disclosure-lines p { margin: 0 0 2px; }
.pay-price [data-disclosure=price-total] { font-size:22px; font-weight:800; letter-spacing: -.02em; color: var(--fg); flex-basis: 100%; }
.pay-block [data-disclosure=agree-pay] { margin:4px 0 0; }
.pay-block .primary { margin-top:4px; }
.renew-consent { display:flex; align-items: flex-start; gap:12px; margin-top: 12px; padding: 14px; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); font-size:15px; line-height:1.5; color: var(--fg); cursor: pointer; }
.renew-consent:has(input:checked) { border-color: #ff5b2eb3; }
.renew-consent input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; }
/* DB-8: the policy names in the binding consent sentence are links. */
.renew-consent a { color:#a7c8ff; text-decoration:underline; }
.renew-consent a { display: inline-block; min-width: 44px; padding: 11px 0; margin: -11px 0; text-align: center; }
.renew-consent+.primary { margin-top: 14px; }
/* The pull-up never exceeds the smallest paragraph gap, so neighbouring lines cannot overlap. */
.disclosure-policy-links { display:flex; flex-wrap:wrap; gap:0 16px; align-items:center; margin: -4px 0 -4px; }
.email-notice .disclosure-policy-links, .pay-price .disclosure-policy-links, #landing-disclosures .disclosure-policy-links { margin-bottom: 0; }
.disclosure-lines a.policy-link { line-height:1.4; white-space:normal; }
.email-notice { border:1px solid var(--line-strong); border-radius:16px; padding:16px; background:#17171d; }
.email-notice .disclosure-lines { margin:0; }
.email-notice p { margin:0; line-height:1.6; }
/* Paragraph breaks inside the notice; the rule above is unchanged. */
.email-notice p { font-size: 15px; }
.email-notice p+p { padding-top: 8px; }
.consent-policy-links { display:flex; flex-wrap:wrap; gap:0 16px; align-items:center; }

#signin-page>h1 { margin-bottom:24px; }
#signin-page>.card { margin-top: 16px; }
#signin-page .card label { font-weight: 600; }
#signin-page .card .primary, #signin-page .card .secondary, #signin-page>.secondary, #google-slot>.primary, #unsubscribe-page>.primary, #unsubscribe-page>.secondary { width: 100%; }
#signin-page #marketing-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; }
#signin-page #marketing-choice input, .email-choice-block input { flex: none; width: 24px; height: 24px; margin: 0; }
#signin-page>.helper-line { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
#signin-page>.secondary { margin-top: 14px; }
#signin-page>a, #unsubscribe-page>a { display: block; width: fit-content; margin-top: 12px; }
section.policy-page { margin-inline: auto; }
#signin-page, #unsubscribe-page { max-width: 640px; }
#google-slot>.primary { margin-top: 8px; }
#unsubscribe-page>.secondary { margin-top: 12px; }
.email-details { margin-top:8px; font-size:14px; line-height:1.6; color:#d4d4da; }
.email-details summary { cursor:pointer; min-height:44px; padding:10px 0; }
.email-details summary:focus-visible { outline:2px solid #ffab90; outline-offset:4px; }

.email-choice-label { display:block; margin-bottom:8px; }
#missing-page { padding: 36px 0 48px; }
#missing-page h1 { margin-bottom:24px; }
#missing-page a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: #a7c8ff; }

.email-choice-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-block: 20px; }
.email-choice-block label { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--fg); font-size: 16px; cursor: pointer; }
.pay-block .email-choice-label { display: block; margin-bottom: 8px; }
.offers-panel .secondary { margin-top: 12px; }

/* Keep the full rule open: lead <=4, total <=14 lines at 390px, type >=12px.
   Continuous prose avoids extra line breaks between the longer final clauses. */
[data-disclosure="refund-short"] { font-family:Arial,sans-serif; font-size:12px !important; line-height:20px !important; margin:0 !important; }
.refund-rule-line { display:inline; font-size:inherit; line-height:inherit; }
[data-refund-part="closing"] { display:inline; }
[data-refund-lead] { color: var(--fg); }
[data-disclosure="refund-short"] .disclosure-policy-links { display:inline-flex; margin: -6px 0 0; }
#checkout-refund .disclosure-lines { margin:0; }
#checkout-refund .disclosure-policy-links { display:inline-flex; }
/* Decorative state marker: the empty alternative text keeps it out of the button's accessible name. */
.rules-disclosure>button::before { content:'▸ '; content:'▸ ' / ''; }
.rules-disclosure>button[aria-expanded="true"]::before { content:'▾ '; content:'▾ ' / ''; }
.pay-block .helper-line { margin-block:12px; }
#report-page>h2 { margin-top:28px; }
.offers-panel .email-choice-label { margin-top:12px; }

#order-main>#render-link-slot { grid-column:1/-1; width:100%; margin-top: 20px; }
#render-link-slot .link-card p { display:block; }
/* DB-10: one text-input style for the payment email and the email-choices fields. */
#payer-email, #offers-email, #offers-code { display:block; font:inherit; font-size:16px; width:100%; min-height:48px; border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--ink); color:var(--fg); }
#payer-email::placeholder, #offers-email::placeholder, #offers-code::placeholder { color:var(--subtle); opacity:1; }
#report-no-reply { margin-top:12px; }
/* Bot check: rendered only when BOT_CHECK=turnstile. */
.bot-check { margin:16px 0; }
.bot-check-label { font-weight:600; margin:0 0 8px; }
.bot-check-widget { min-height:65px; }
.bot-check-error { color:#ffb7aa; margin:8px 0 0; }

/* Narrow phones: the two lengths become full-width rows so label and price each stay on one line. */
@media(max-width:359px) {
  .price-options { grid-template-columns: minmax(0,1fr); }
  .choice { flex-direction: row; align-items: center; min-height: 60px; padding-right: 48px; }
  .choice::after { top: 50%; margin-top: -11px; }
  .choice strong { padding-right: 0; }
  .choice b { font-size: 24px; }
  .ratio-options { gap: 6px; }
  .ratio-choice>span { font-size: 15px; padding-inline: 2px; }
  .wide { font-size: 16px; padding-inline: 14px; }
}

/* Phones only */
@media(max-width:639px) {
  /* Give the complete refund rule room to stay within its 14-line bound. */
  .pay-block, .is-problem #order-main:has(.pay-block) { padding-inline: 8px; }
  .is-problem .pay-block { padding-inline: 0; }
  .split-pill { gap: 8px; padding-inline: 14px; font-size: 16px; }
  .status-kicker { font-size: 13px; }
  .section-heading { font-size: 12px; }
}

/* Tablets and up */
@media(min-width:640px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 48px; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .intro { font-size: 18px; line-height: 1.6; }
  .samples li { flex-basis: 340px; }
  .samples::after { flex-basis: 1px; }
  #landing-disclosures .disclosure-lines { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 32px; padding: 20px 24px; }
  .order-grid { padding: 48px 0 32px; gap: 40px; }
  .order-card, .process { width: 100%; max-width: 560px; margin: 0 auto; }
  .card { padding: 28px; }
  .order-card { padding-bottom: 0; }
  .form-checkout { margin: 24px -28px 0; padding: 24px 28px 28px; }
  h2 { font-size: 30px; }
  .process-list li { grid-template-columns: 40px minmax(0,1fr); gap: 16px; padding-bottom: 24px; }
  .process-list li:not(:last-child)::before { top: 44px; left: 19.5px; }
  .process-list li>span { width: 40px; height: 40px; font-size: 16px; }
  .process-list h3 { margin-top: 8px; }
  #order-page { padding-top: 28px; }
  .progress-track { display: flex; align-items: center; gap: 12px; max-width: 600px; margin-bottom: 28px; }
  .progress-step { flex-direction: row; gap: 10px; font-size: 16px; }
  .progress-step:not(:last-child) { flex: 1; }
  .progress-step:not(:last-child)::after { position: static; width: auto; flex: 1; min-width: 12px; height: 1px; margin-left: 2px; }
  .media-frame { width: min(100%, 320px); }
  #order-main .primary, #order-main .secondary { width: auto; }
  #order-main .wide, #order-main .approval-actions>.primary, #order-main .pay-block .primary, .is-problem #order-main>.primary, .is-problem #order-main>.secondary, .is-refunded #order-main>.secondary { width: 100%; }
  #order-main .reroll-row>.secondary { flex: 0 0 auto; }
  .is-problem #order-main { padding: 28px; }
  .pay-block { padding: 24px; }
  .admin-login { flex-direction: row; align-items: center; }
  .policy-page { padding-top: 56px; padding-bottom: 64px; }
  #signin-page .card .primary, #signin-page .card .secondary, #signin-page>.secondary, #google-slot>.primary, #unsubscribe-page>.primary, #unsubscribe-page>.secondary { width: auto; align-self: flex-start; }
  .footer-inner { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); grid-template-areas: "brand links" "notes links"; grid-template-rows: auto 1fr; align-items: start; padding-top: 28px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
  .footer-brand { grid-area: brand; justify-self: start; }
  .footer-disclosures { grid-area: notes; padding-top: 0; }
  .footer-inner nav { grid-area: links; grid-template-columns: minmax(0,1fr); border-bottom: 0; padding: 0; }
  .footer-inner nav a { justify-self: start; }
}

/* Desktop */
@media(min-width:1024px) {
  :root { --gutter: 32px; }
  .hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); align-items: center; gap: 56px; padding: 72px 0 24px; }
  .hero h1 { max-width: 470px; }
  .intro { margin-top: 24px; }
  .hero-cta { margin-top: 32px; }
  .sample-strip { margin-top: 0; }
  .sample-strip>h2 { margin-bottom: 16px; }
  .samples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto auto auto auto; gap: 0 16px; margin: 0; padding: 0; overflow: visible; }
  .samples::after { display: none; }
  .samples li { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .samples figure { grid-row: span 4; grid-template-columns: minmax(0,1fr); grid-template-rows: subgrid; column-gap: 0; overflow: visible; background: none; border: 0; border-radius: 0; }
  .sample-media { grid-row: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px #000; }
  .sample-media .media-label { top: 22px; left: 10px; }
  .sample-media .player-progress { top: 12px; left: 12px; right: 12px; }
  .duration-pill { left: 10px; }
  .samples figcaption { grid-column: 1; padding: 14px 2px 0; }
  .sample-specs { grid-column: 1; padding: 0 2px; }
  .sample-ai-notice { grid-column: 1; align-self: start; padding: 0 2px; }
  #landing-disclosures .disclosure-lines { grid-template-columns: minmax(0,1fr) minmax(0,1.7fr) minmax(0,.8fr) minmax(0,1fr); gap: 12px 32px; margin-top: 56px; }
  .order-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,520px); gap: 72px; padding: 72px 0 48px; align-items: start; }
  .order-card, .process { max-width: none; margin: 0; }
  .card { padding: 32px; border-radius: 28px; }
  .order-card { padding-bottom: 0; }
  .form-checkout { margin: 28px -32px 0; padding: 28px 32px 32px; }
  .process h2 { font-size: 40px; }
  .process-intro { font-size: 18px; line-height: 1.6; margin: 12px 0 32px; }
  .process-list li { padding-bottom: 32px; }
  #order-page { padding-top: 40px; }
  /* Media on the left stays in view; everything the customer reads and taps is one column on the right. */
  #order-main.approval:has(>.media-frame) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,440px); column-gap: 64px; align-items: start; max-width: none; }
  #order-main.approval:has(>.media-frame)>* { grid-column: 2; }
  #order-main.approval:has(>.media-frame)>#render-link-slot { grid-column: 2; }
  /* Sized from the viewport height so the whole player, controls included, fits while it is pinned. */
  #order-main.approval:has(>.media-frame)>.media-frame { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 88px; margin: 0 auto; width: min(100%, 360px, calc((100vh - 190px) * .5625)); min-width: 220px; }
  #order-main.approval:has(>.media-frame)>.media-frame.ratio-wide { width: 100%; }
  #order-main.approval:has(>.media-frame)>.media-frame.ratio-square { width: min(100%, 480px, calc(100vh - 190px)); }
  #order-main.approval:has(>.media-frame)>.approval-heading { margin-top: 0; }
  #order-page:has(.approval>.media-frame)>.order-details { max-width: 440px; margin-left: auto; margin-right: 0; }
  #order-page:has(.approval>.media-frame)>.progress-track { max-width: 560px; margin-left: 0; }
  #order-main.approval .screen-title { font-size: 44px; }
  .policy-page h1 { font-size: 40px; }
}

/* Wide desktop: the order card splits into "describe it" and "agree and pay". */
@media(min-width:1200px) {
  .order-grid { grid-template-columns: minmax(0,264px) minmax(0,1fr); gap: 48px; }
  .process h2 { font-size: 34px; }
  .process-intro { font-size: 17px; margin-bottom: 28px; }
  .order-card { padding: 28px; overflow: visible; }
  #order-form { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1fr); gap: 0 28px; align-items: start; }
  .form-checkout { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; }
}

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