/* Same look as Subtylo (one umbrella brand), with its own accent so the two apps are told apart. */
:root {
  --bg: #0f0f12;
  --panel: #18181d;
  --ink: #f5f5f4;
  --muted: #a8a29e;
  --line: #2a2a31;
  --accent: #7dd3fc;
  --accent-ink: #0b1220;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top .wrap { display: flex; align-items: baseline; gap: 10px; height: 64px; padding-top: 18px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.by { color: var(--muted); font-size: 14px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 12px 22px; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { padding: 16px 30px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.linkish { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 15px; margin-top: 16px; }
.linkish:hover { color: var(--ink); }
.small { font-size: 14px; color: var(--muted); }
.note { background: #1e293b; border-bottom: 1px solid var(--line); }
.note p { margin: 0; padding: 12px 0; font-size: 15px; }

.hero { padding: 40px 0 48px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 16px; max-width: 820px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 640px; }
.drop { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; max-width: 640px; transition: border-color .15s, background .15s; }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(125, 211, 252, .05); }
.hint, .trust { color: var(--muted); font-size: 14px; }
.trust { margin-top: 14px; }

.work { padding: 8px 20px 48px; }
.progress { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 640px; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.steps li::before { content: "○ "; }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { content: "● "; color: var(--accent); }
.steps li.done::before { content: "✓ "; color: var(--accent); }
.bar { position: relative; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.bar.busy::after { content: ""; position: absolute; inset: 0; width: 30%; border-radius: 99px; background: var(--accent); opacity: .45; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar.busy::after { animation: none; width: 100%; opacity: .2; } }
/* 19 px and full ink: at 17 px muted the clip shopper's phone read "Recognizing speech…" as too
   small to tell what was happening (small_message, 3.11.2026; Subtylo and Textylo use ink too). */
.status { min-height: 1.5em; color: var(--ink); font-size: 19px; line-height: 1.35; font-weight: 600; margin: 10px 0 0; }
.actions .status:empty { display: none; }
.dl-work { margin-top: 12px; }
/* The drop zone steps aside while a video is read, so the progress card appears where it was and
   the page does not jump (far_jump of about 560 px on the clip shopper, 3.11.2026; Textylo does the same). */
.hero.working .drop, .hero.working .trust { display: none; }
.hero.working { padding-bottom: 8px; }

.result { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.stage { position: sticky; top: 12px; }
.frame { margin: 0 auto; width: min(100%, calc(72vh * 9 / 16)); aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); overflow: hidden; }
.frame canvas { display: block; width: 100%; height: 100%; }
.controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.time { color: var(--muted); font-variant-numeric: tabular-nums; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.panel h2:first-child { margin-top: 0; }
.moments { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.moment { width: 100%; text-align: left; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.moment.on { border-color: var(--accent); background: rgba(125, 211, 252, .08); }
.hook { font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.when { color: var(--muted); font-size: 13px; }
.edges { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 8px; font-size: 15px; justify-items: start; }
.edge-l { min-width: 92px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.actions { margin-top: 20px; }
.actions .btn { width: 100%; }

.offer { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.offer .plan { width: 100%; font-weight: 500; font-size: 15px; padding: 11px 16px; }
.offer .linkish { margin-top: 4px; justify-self: start; }

dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; max-width: 440px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.modal-inner { padding: 26px; position: relative; display: grid; gap: 12px; }
.modal-inner h3 { margin: 0; font-size: 22px; padding-right: 24px; }
.modal-inner p { margin: 0; }
.x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.code { font: 700 17px/1.3 ui-monospace, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; user-select: all; overflow-wrap: anywhere; }
.code-in { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 16px ui-monospace, monospace; }

.how { padding: 24px 20px 64px; }
.how h2 { font-size: 26px; letter-spacing: -0.02em; }
.how-steps { padding-left: 20px; color: var(--muted); max-width: 720px; }
.how-steps strong { color: var(--ink); }

/* Plays media for the preview and the export without being seen; display:none would stop
   Chrome from decoding frames. */
.offscreen { position: fixed; left: -10000px; top: 0; width: 320px; height: 180px; }

header.top nav { margin-left: auto; display: flex; align-items: baseline; gap: 18px; }
header.top nav a, header.top nav .linkish { color: var(--muted); text-decoration: none; font-size: 15px; margin: 0; }
header.top nav a:hover { color: var(--ink); }
.center { text-align: center; }
.pricing, .faq { padding: 0 20px 56px; }
.pricing h2, .faq h2 { font-size: 26px; letter-spacing: -0.02em; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 14px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); }
.tier h3 { margin: 0; font-size: 18px; }
.price { font-size: 38px; font-weight: 900; margin: 6px 0 10px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier ul { padding-left: 18px; color: var(--muted); margin: 0 0 20px; flex: 1; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 28px 0 40px; }
footer .links a { color: var(--muted); margin-right: 16px; }
footer p { margin: 8px 0; }

a.btn { text-decoration: none; }
@media (max-width: 520px) {
  header.top .by { display: none; }
  header.top nav { gap: 14px; }
  header.top nav a, header.top nav .linkish { white-space: nowrap; }
}

/* With the moments shown the headline steps aside, and on a phone the preview is shorter and the
   Download button comes first in the panel: at 72vh under the headline the preview filled the
   phone's screen with no button in view (clip shopper, no_next_step, 4.11.2026). */
.hero.done h1, .hero.done .lead { display: none; }
.hero.done { padding: 12px 0 0; }

@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; gap: 16px; }
  .stage { position: static; }
  .frame { width: min(100%, calc(52vh * 9 / 16)); }
  .panel { display: flex; flex-direction: column; }
  .panel > * { order: 1; }
  .panel > .actions { order: 0; margin: 0 0 4px; }
  .panel > .linkish { align-self: flex-start; }
  .panel > h2:first-of-type { margin-top: 18px; }
}
