/* Draft A: clean studio.
   References: refs/aboard (light tool, one blue, soft panels),
   refs/upload-zone-x (dashed drop zone, mono status, tick progress),
   refs/amie (narrow FAQ, three-layer soft shadow). */

:root {
  --bg: #ffffff;
  --bg-subtle: #f5f7fa;
  --text: #15171c;
  --text-2: #5a606b;
  --text-3: #8b919b;
  --line: rgba(16, 24, 40, 0.09);
  --brand: #1663e0;
  --brand-ink: #0f4fb8;
  --brand-soft: #e8f0fd;
  --ok: #15803d;
  --tick-off: #dfe3ea;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-card: 0 0 0 1px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 20px -8px rgba(16, 24, 40, 0.12);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--text); color: #fff; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: 12px; }

.mono-label {
  margin: 0;
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.brand-ink { color: var(--brand); }
.ok { color: var(--ok); }
.muted { color: var(--text-2); margin: 0; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------- layout: main column, side rails on wide screens ---------- */
.shell { max-width: 1760px; margin: 0 auto; }
.page { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rail { display: none; }
@media (min-width: 1600px) {
  .shell { display: grid; grid-template-columns: 240px minmax(0, 1200px) 260px; gap: 56px; justify-content: center; padding: 0 32px; }
  .page { padding: 0; }
  .rail { display: block; }
  .toc, .spec { position: sticky; top: 104px; margin-top: 104px; }
}
.toc { display: grid; gap: 4px; }
.toc a { text-decoration: none; color: var(--text-2); padding: 6px 10px; margin-left: -10px; border-radius: var(--r-sm); font-size: 14px; }
.toc a:hover { background: var(--bg-subtle); color: var(--text); }
.toc .mono-label, .spec .mono-label { margin-bottom: 10px; }
.spec ul { list-style: none; margin: 0; padding: 16px; border-radius: var(--r-md); background: var(--bg-subtle); display: grid; gap: 12px; font-size: 14px; color: var(--text-2); }
.spec li { display: flex; gap: 10px; align-items: center; }
.spec i { font-size: 18px; color: var(--text); }

/* ---------- top bar ---------- */
.top { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-weight: 650; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--text-3); font-weight: 500; }
.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a { text-decoration: none; font-size: 14.5px; color: var(--text-2); padding: 8px 12px; border-radius: var(--r-sm); }
.top-links a:hover { color: var(--text); background: var(--bg-subtle); }
.top-links .signin { color: var(--text); font-weight: 600; box-shadow: var(--shadow-card); margin-left: 6px; }
@media (max-width: 520px) { .top-links a:not(.signin) { display: none; } }

/* ---------- hero: copy + tool left, video right ---------- */
.hero { display: grid; gap: 24px; padding: 32px 0 64px; }
.hero-text h1 { margin: 10px 0 12px; font-size: clamp(34px, 6.2vw, 56px); line-height: 1.04; font-weight: 650; letter-spacing: -0.028em; max-width: 18ch; text-wrap: balance; }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 46ch; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 64px; row-gap: 28px; padding: 56px 0 96px; align-items: start; }
  .hero-text, .tool { grid-column: 1; }
  .stage { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
}

.panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px; }
@media (min-width: 640px) { .panel { padding: 28px; } }
.tool { max-width: 620px; }

.field + .field, .field + .consent { margin-top: 20px; }
.field-label { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-subtle); }
.seg button {
  min-height: 48px; border: 0; background: transparent; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--text-2); padding: 6px 4px; line-height: 1.2;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.seg button i { font-size: 20px; }
.seg button:active { transform: scale(0.97); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-card); font-weight: 600; }
.seg button[aria-pressed="true"] i { color: var(--brand); }
@media (min-width: 640px) {
  .seg button { flex-direction: row; gap: 8px; font-size: 14px; min-height: 44px; }
  .seg button i { font-size: 18px; }
}

.drop {
  display: grid; justify-items: center; gap: 8px; text-align: center; cursor: pointer;
  padding: 26px 16px; border: 1px dashed #c3cad6; border-radius: 14px; background: #fff;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.drop:hover, .drop[data-over="yes"], .drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.drop-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-card); font-size: 22px; color: var(--brand); }
.drop-text { font-size: 15px; color: var(--text); }
.drop-text u { color: var(--brand); text-underline-offset: 3px; }

.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 4px;
  border: 0; border-radius: 999px; background: var(--bg-subtle); cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.chip img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.chip:hover { background: var(--brand-soft); }
.chip:active { transform: scale(0.97); }

.file-row { display: none; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; box-shadow: var(--shadow-card); }
.file-row img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.file-meta { display: grid; gap: 2px; min-width: 0; }
.file-name { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.status[data-ok="yes"] { color: var(--ok); }
.status[data-ok="yes"]::before { content: "\2713  "; }
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); font-size: 18px; }
.icon-btn:hover { background: var(--bg-subtle); color: var(--text); }

[data-photo="yes"] .drop, [data-photo="yes"] .samples { display: none; }
[data-photo="yes"] .file-row { display: grid; }
[data-style="classic"] .photo-block { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.hint { font-size: 13.5px; color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border: 0; border-radius: var(--r-md); cursor: pointer;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease), color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
@media (hover: hover) { .btn-primary:hover { background: var(--brand-ink); } }
.btn-primary:disabled { background: #c9d2e1; cursor: not-allowed; transform: none; }
.btn-quiet { background: var(--bg-subtle); color: var(--text); }
.btn-small { height: 40px; padding: 0 16px; font-size: 14px; background: #fff; color: var(--text); }
.btn-wide { width: 100%; margin-top: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link { margin-top: 14px; padding: 8px 0; border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; }

/* tool states */
.tool-generating, .tool-result, .done-copy { display: none; }
[data-state="generating"] .tool-idle, [data-state="preview"] .tool-idle, [data-state="unlocked"] .tool-idle { display: none; }
[data-state="generating"] .tool-generating { display: block; }
[data-state="preview"] .tool-result, [data-state="unlocked"] .tool-result { display: block; }
[data-state="unlocked"] .paywall-copy { display: none; }
[data-state="unlocked"] .done-copy { display: block; }

.gen-step { margin: 8px 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.ticks {
  position: relative; height: 22px; margin-bottom: 12px;
  background: repeating-linear-gradient(90deg, var(--tick-off) 0 2px, transparent 2px 7px);
}
.ticks-fill {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--brand) 0 2px, transparent 2px 7px);
  clip-path: inset(0 calc(100% - var(--progress, 0) * 100%) 0 0);
}

.h3 { margin: 6px 0 4px; font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; }
.packs { display: grid; gap: 8px; margin-top: 18px; }
.pack {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center;
  min-height: 56px; padding: 0 16px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
.pack input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.pack-name { font-weight: 500; }
.pack-name em { font-style: normal; color: var(--text-3); font-size: 13.5px; margin-left: 6px; }
.pack-price { font-weight: 650; font-variant-numeric: tabular-nums; }
.pack:has(input:checked) { box-shadow: 0 0 0 2px var(--brand); background: var(--brand-soft); }

/* ---------- the video stage ---------- */
.stage { margin: 0; justify-self: center; width: min(100%, 380px); }
.frame { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #0e1015; outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.stage figcaption { margin-top: 12px; text-align: center; }
.cap { display: none; }
[data-style="pet"] .cap-pet, [data-style="room"] .cap-room, [data-style="classic"] .cap-classic { display: inline; }

.wm {
  position: absolute; inset: 0; display: none; place-items: center; pointer-events: none;
  font-size: 46px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); transform: rotate(-24deg);
}
[data-state="preview"] .wm { display: grid; }
.gen-overlay { position: absolute; inset: 0; display: none; place-items: center; background: rgba(14, 16, 21, 0.62); }
.gen-pct { color: #fff; font: 600 44px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
[data-state="generating"] .gen-overlay { display: grid; }
.locked { position: absolute; inset: 0; display: none; align-content: center; justify-items: center; gap: 14px; background: rgba(14, 16, 21, 0.6); color: #fff; text-align: center; }
.locked p { margin: 0; font-weight: 600; font-size: 18px; }
[data-locked="yes"] .locked { display: grid; }
.sound {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer; font-size: 20px; color: #fff; background: rgba(14, 16, 21, 0.55);
  transition: transform 120ms var(--ease);
}
.sound:active { transform: scale(0.94); }
.sound .i-on, .sound[aria-pressed="true"] .i-off { display: none; }
.sound[aria-pressed="true"] .i-on { display: block; }

/* ---------- sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding: 96px 0 112px; } }
.section h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 650; letter-spacing: -0.022em; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
@media (min-width: 1024px) { .section-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.steps i { font-size: 26px; color: var(--brand); grid-row: span 2; }
.steps b { font-size: 17px; font-weight: 600; }
.steps span { color: var(--text-2); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .steps li { padding: 0 28px; border-left: 1px solid var(--line); }
  .steps li:first-child { padding-left: 0; border-left: 0; }
}

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: #0e1015; }
.gallery figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: 14.5px; }
.gallery figcaption span { color: var(--text-2); }
@media (min-width: 900px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

.price-list { display: grid; border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; max-width: 720px; }
.price-row { display: grid; grid-template-columns: 1fr auto 88px; gap: 16px; align-items: center; min-height: 64px; padding: 0 20px; font-size: 16px; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row b { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

.faq details { max-width: 720px; border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--text-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 65ch; }

.foot { display: grid; gap: 32px; padding: 48px 0 32px; border-top: 1px solid var(--line); }
.foot-brand p { margin-top: 10px; max-width: 42ch; font-size: 14px; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links div { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: none; color: var(--text-2); font-size: 14.5px; }
.foot-links a:hover { color: var(--text); }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr auto; } .foot-base { grid-column: 1 / -1; } }
