/* Chosen direction (gate 3, 2026-11-16): direction A first screen and use-case cards,
   direction B sections from the three-step selection demo down, all in A's visual system.
   Theme: single cinematic dark theme. One accent (orange). Logo option 1 (slider frame).
   Shape rule: interactive controls are full pills, the command bar is 22px, cards and media are 16px. */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f1ee;
  --muted: #a8a49f;
  --faint: #8a8681;
  --accent: #f0703f;
  --accent-ink: #1a0d06;
  --accent-soft: rgba(240, 112, 63, 0.14);
  --radius-card: 16px;
  --radius-bar: 22px;
  --max: 1240px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --mark-accent: var(--accent);
  --mark-bg: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand .wm { font: 800 16px/1 var(--display); font-stretch: 112%; letter-spacing: -0.035em; white-space: nowrap; }
.brand .wm b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.btn-ghost { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; color: var(--text) !important; }

/* hero: intro mode (marketing) and work mode (editor) */
.hero { position: relative; min-height: min(78dvh, 720px); display: flex; align-items: flex-start; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: opacity .6s ease; }
.hero-media .ambient { opacity: 0; filter: blur(48px) brightness(0.32) saturate(1.25); transform: scale(1.15); }
.hero.work .hero-media .main { opacity: 0; }
.hero.work .hero-media .ambient { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 50% 36%, rgba(11,11,12,0.42), rgba(11,11,12,0) 72%),
    linear-gradient(to bottom, rgba(11,11,12,0.5), rgba(11,11,12,0) 22%, rgba(11,11,12,0) 70%, var(--bg));
}
.proof { position: absolute; right: 24px; bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--radius-card); background: rgba(11,11,12,0.62); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 340px; }
.proof img { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; }
.proof b { display: block; font: 600 11px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proof span { display: block; font-size: 14px; line-height: 1.35; }
.hero.work .proof, .hero.work .sub { display: none; }

.hero-inner { width: 100%; text-align: center; padding: clamp(104px, 17vh, 168px) 24px 56px; }
.hero h1 { margin: 0 auto; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; }
.hero .sub { margin: 18px auto 0; max-width: 46ch; color: #d6d2cd; font-size: 18px; }
.hero.work { min-height: 0; }
/* work mode: keep the cost line and the base choice right under the bar, quick edits last */
.hero.work .hero-inner { padding: 76px 24px 40px; display: flex; flex-direction: column; }
.hero.work .stage { order: 1; height: clamp(250px, calc(100dvh - 360px), 640px); }
/* auto side margins stop flex items from stretching, so give these an explicit width */
.hero.work .stage, .hero.work .bar, .hero.work .notice { width: 100%; }
.hero.work .versions { order: 2; }
.hero.work .bar { order: 3; }
.hero.work .meter { order: 4; margin-top: 12px; }
.hero.work .base { order: 5; margin-top: 8px; }
.hero.work .notice { order: 6; }
.hero.work .status { order: 7; }
.hero.work .chips { order: 8; }
.hero.work h1 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; }

/* command bar */
.bar { margin: 30px auto 0; max-width: 820px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-bar); background: rgba(20,20,22,0.78); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 60px rgba(0,0,0,0.45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); text-align: left; }
.hero.work .bar { margin-top: 14px; }
.upload-btn { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px dashed rgba(255,255,255,0.32); background: transparent; color: var(--text); font: 500 15px var(--body); cursor: pointer; white-space: nowrap; }
.upload-btn:hover { border-color: var(--accent); }
.upload-btn i { font-size: 20px; }
.upload-btn .thumb { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: none; }
.upload-btn.has-file { border-style: solid; padding-left: 8px; }
.upload-btn.has-file .thumb { display: block; }
.upload-btn.has-file i { display: none; }
.prompt { height: 48px; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 16px var(--body); padding: 0 10px; }
.prompt::placeholder { color: var(--faint); }
.edit-btn { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--body); cursor: pointer; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, filter .15s ease; }
.edit-btn:hover { filter: brightness(1.06); }
.edit-btn:active { transform: translateY(1px) scale(0.99); }
.edit-btn[disabled] { opacity: 0.55; cursor: progress; }
.bar:focus-within { border-color: rgba(240,112,63,0.6); }

.chips { margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 820px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(20,20,22,0.55); color: #e4e0db; font: 500 13.5px var(--body); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip i { font-size: 16px; color: var(--accent); }
.meter { margin: 14px auto 0; font-size: 13.5px; color: var(--muted); }
.meter strong { color: var(--text); font-weight: 600; }
.status { margin: 8px auto 0; min-height: 20px; font-size: 13px; color: var(--accent); }
.drop-hint { position: absolute; inset: 16px; z-index: 20; border: 2px dashed var(--accent); border-radius: 24px; display: none; align-items: center; justify-content: center; background: rgba(11,11,12,0.7); font: 800 28px var(--display); font-stretch: 112%; text-transform: uppercase; }
.hero.dragging .drop-hint { display: flex; }

/* result stage (work mode only) */
.stage { --pos: 50%; display: none; position: relative; margin: 16px auto 0; max-width: 1040px; height: clamp(300px, calc(100dvh - 330px), 640px); border-radius: var(--radius-card); overflow: hidden; background-color: #0f0f10; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.2px); background-size: 20px 20px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,0.5); text-align: left; }
.hero.work .stage { display: block; }
.stage .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage .backdrop { object-fit: cover; filter: blur(28px) brightness(0.38) saturate(1.2); transform: scale(1.12); }
.stage .after-pic { display: none; }
.stage[data-s="result"] .after-pic { display: block; }
.stage[data-s="result"] .before-pic { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.stage .pic.mock { filter: saturate(1.5) hue-rotate(-18deg) contrast(1.08); }
/* brush selection (loaded state) */
.stage .brush { display: none; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.stage[data-s="loaded"] .brush, .stage[data-s="busy"] .brush { display: block; }
.stage.brushing .brush { pointer-events: auto; cursor: crosshair; }
.stage .hint { display: none; position: absolute; left: 50%; bottom: 14px; z-index: 4; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(11,11,12,0.78); font-size: 13px; white-space: nowrap; pointer-events: none; }
.stage.brushing .hint { display: block; }
.stage .brush-btn { display: none; }
.stage[data-s="loaded"] .brush-btn { display: inline-flex; }
.stage.brushing .brush-btn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.st-btn[hidden] { display: none !important; }
.stage input[type="range"] { display: none; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.stage[data-s="result"] input[type="range"] { display: block; }
.stage .handle { display: none; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: rgba(255,255,255,0.9); pointer-events: none; }
.stage[data-s="result"] .handle { display: block; }
.stage .knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.stage input[type="range"]:focus-visible ~ .handle .knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.stage .tag { display: none; position: absolute; bottom: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(11,11,12,0.72); font: 600 11px var(--body); letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.stage[data-s="result"] .tag { display: block; }
.stage .tag.l { left: 14px; }
.stage .tag.r { right: 14px; }
.stage-bar { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; gap: 8px; }
.st-btn { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(11,11,12,0.72); color: var(--text); font: 600 14px var(--body); text-decoration: none; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.st-btn i { font-size: 17px; }
.st-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stage .dl { display: none; }
.stage[data-s="result"] .dl { display: inline-flex; }
.stage .spec { display: none; position: absolute; top: 12px; left: 12px; z-index: 4; padding: 6px 12px; border-radius: 999px; background: rgba(11,11,12,0.72); font-size: 12.5px; color: #d6d2cd; }
.stage[data-s="result"] .spec { display: block; }

/* progress and failure overlays */
.overlay { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; padding: 16px; text-align: center; }
.stage[data-s="busy"] .overlay.busy, .stage[data-s="fail"] .overlay.fail { display: grid; }
.overlay.busy { background: linear-gradient(100deg, rgba(11,11,12,0.35) 30%, rgba(240,112,63,0.18) 50%, rgba(11,11,12,0.35) 70%); background-size: 220% 100%; animation: sweep 1.3s linear infinite; }
.overlay .box { display: grid; justify-items: center; gap: 10px; max-width: 380px; padding: 20px 24px; border-radius: var(--radius-card); background: rgba(11,11,12,0.78); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.overlay .box b { font-size: 16px; }
.overlay .box p { margin: 0; color: var(--muted); font-size: 13.5px; }
.overlay .box i.big { font-size: 28px; color: var(--accent); }
.progress { width: 220px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,0.15); }
.progress span { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--accent); animation: slide 1.2s ease-in-out infinite; }
.overlay.fail { background: rgba(11,11,12,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* versions and the base choice for the next edit */
.versions { display: none; justify-content: center; align-items: center; gap: 8px; margin: 12px auto 0; flex-wrap: wrap; }
.hero.has-result .versions { display: flex; }
.versions > span { font-size: 12.5px; color: var(--faint); margin-right: 4px; }
.ver { position: relative; width: 66px; height: 46px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #111; cursor: pointer; }
.ver img { width: 100%; height: 100%; object-fit: cover; }
.ver.mock img { filter: saturate(1.5) hue-rotate(-18deg) contrast(1.08); }
.ver span { position: absolute; left: 4px; bottom: 2px; font: 600 10px var(--body); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.9); }
.ver.on { border-color: var(--accent); }
.base { display: none; justify-content: center; align-items: center; gap: 8px; margin: 12px auto 0; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.hero.has-result .base { display: flex; }
.base label { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; color: #e4e0db; }
.base input { position: absolute; opacity: 0; }
.base label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.base label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* quota notices: inline under the bar, never a modal */
.notice { display: none; max-width: 640px; margin: 14px auto 0; padding: 18px 20px; border-radius: var(--radius-card); background: rgba(20,20,22,0.9); border: 1px solid var(--line-strong); text-align: left; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.notice.show { display: block; }
.notice h3 { margin: 0 0 4px; font-size: 16px; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; }
.notice .acts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 14px var(--body); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn i { font-size: 18px; }

/* sections */
section.block { padding: 96px 0; }
section.block.featured { padding-top: 8px; }
h2 { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 60ch; margin: 0; }

/* A: tall full-bleed use-case cards, hover shows the original */
.rail { margin-top: 32px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.edit-card { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; padding: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--text); font: inherit; cursor: pointer; isolation: isolate; }
.edit-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.edit-card .orig { opacity: 0; }
.edit-card:hover .orig, .edit-card:focus-visible .orig { opacity: 1; }
.edit-card:hover img { transform: scale(1.04); }
.edit-card .flag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(11,11,12,0.7); font: 600 11px var(--body); letter-spacing: 0.06em; text-transform: uppercase; }
.edit-card .flag::after { content: "After"; }
.edit-card:hover .flag::after, .edit-card:focus-visible .flag::after { content: "Before"; }
.edit-card .meta { position: absolute; inset: auto 0 0; z-index: 2; padding: 48px 16px 16px; background: linear-gradient(to top, rgba(11,11,12,0.9), transparent); }
.edit-card .meta > span { display: block; }
.edit-card .t { font-size: 16px; font-weight: 600; }
.edit-card .d { margin-top: 2px; font-size: 14px; color: #d6d2cd; }
.edit-card .meta > .try { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font: 600 12.5px var(--body); color: var(--accent); }

/* B: three-step selection demo */
.strip { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip figure { margin: 0; }
.shot { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .mask { position: absolute; left: 23%; top: 37%; width: 54%; height: 66%; border-radius: 42% 42% 10% 10% / 30% 30% 6% 6%; background: rgba(240, 112, 63, 0.36); outline: 2px dashed var(--accent); outline-offset: -2px; }
.strip figcaption { margin-top: 12px; display: flex; align-items: baseline; gap: 12px; }
.strip figcaption b { font: 800 26px/1 var(--display); font-stretch: 112%; color: var(--accent); }
.strip figcaption span { color: var(--muted); font-size: 15px; }

/* B: psd teaser */
.psd { position: relative; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); background: #0d0d0e; }
.psd > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.psd .panel { position: absolute; left: 24px; bottom: 24px; max-width: 440px; padding: 26px; border-radius: var(--radius-card); background: rgba(11,11,12,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.psd .panel p { margin: 0; color: var(--muted); font-size: 15px; }
.text-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }

/* B: plans table */
.table-wrap { margin-top: 32px; overflow-x: auto; border-radius: var(--radius-card); border: 1px solid var(--line); }
.plans { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.plans th, .plans td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font: 800 18px var(--display); font-stretch: 112%; letter-spacing: -0.02em; background: var(--surface); }
.plans thead th small { display: block; margin-top: 2px; font: 500 13px var(--body); color: var(--muted); letter-spacing: 0; }
.plans tbody th { font-weight: 500; color: var(--muted); width: 26%; }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 0; }
.plans td i { color: var(--accent); }
.plans .no { color: var(--faint); }
.plans .col-hi { background: rgba(240, 112, 63, 0.06); }
.packs { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.pack { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; color: var(--text); white-space: nowrap; }
.note { margin-top: 12px; color: var(--faint); font-size: 13.5px; }

/* B: faq with sticky heading */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-grid .side { position: sticky; top: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--faint); transition: transform .2s ease; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 40px; font-size: 13px; color: var(--faint); }

/* mobile sticky action */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; display: none; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(20,20,22,0.92); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); }
.sticky-cta.show { display: flex; }
.sticky-cta .edit-btn { flex: 1; }
.sticky-cta .upload-btn { height: 48px; }

/* mockup-only state switcher for reviewers */
.demo { position: fixed; left: 12px; bottom: 12px; z-index: 60; max-width: 260px; border-radius: 14px; background: #f3f1ee; color: #161616; font: 13px/1.4 var(--body); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.demo summary { cursor: pointer; padding: 9px 14px; font-weight: 600; list-style: none; }
.demo summary::-webkit-details-marker { display: none; }
.demo .list { display: grid; gap: 4px; padding: 0 10px 12px; }
.demo button { text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid #d6d2cd; background: #fff; color: #161616; font: 500 12.5px var(--body); cursor: pointer; }
.demo button:hover { border-color: var(--accent); }
.demo small { color: #6b6762; padding: 2px 4px 0; }

/* mobile */
@media (max-width: 767px) {
  .nav-links a:not(.btn-ghost) { display: none; }
  .hero-inner { padding: 84px 16px 40px; }
  .hero.work .hero-inner { padding: 66px 12px 28px; }
  .hero .sub { font-size: 16px; margin-top: 12px; }
  .bar { grid-template-columns: 1fr; padding: 10px; gap: 8px; margin-top: 22px; }
  .upload-btn { justify-content: center; }
  .prompt { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.03); }
  .chips { margin-top: 12px; }
  .chip { height: 32px; font-size: 13px; }
  .hero.work .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .hero.work .chip { flex: none; }
  .hero.work .stage { height: auto; aspect-ratio: 4 / 3; margin-top: 12px; }
  .hero.work .bar .upload-btn { display: none; } /* the stage's image button replaces it on phones */
  .st-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .st-btn .lbl { display: none; }
  .stage-bar { top: 8px; right: 8px; gap: 6px; }
  .overlay .box { padding: 14px 16px; gap: 8px; }
  .overlay .box p { font-size: 12.5px; }
  .stage .spec { display: none !important; }
  .proof { left: 16px; right: 16px; bottom: 16px; max-width: none; padding: 6px 12px 6px 6px; }
  .proof img { width: 64px; height: 44px; }
  section.block { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .strip { grid-template-columns: 1fr; }
  .psd .panel { position: static; max-width: none; border-radius: 0; border: 0; border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid .side { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .demo { left: auto; right: 8px; bottom: 76px; max-width: 220px; opacity: 0.88; }
  .demo summary { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero-inner { padding-top: 72px; }
  .hero h1 { font-size: 38px; }
  .hero .sub { font-size: 15px; }
  .chips .chip:nth-child(n+4) { display: none; }
  .hero.work .chips { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .06s; }
  .hero-inner > *:nth-child(3) { animation-delay: .12s; }
  .hero-inner > *:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .overlay.busy, .progress span { animation: none; }
}
