/* CloneCut public site in the Musely (musely.io) house style: warm black canvas, left icon rail,
   Bricolage Grotesque headlines, DM Sans body, orange accent. */
@font-face { font-family: "Bricolage Grotesque"; src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/bricolage-grotesque@5.1.0/files/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/dm-sans@5.1.1/files/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root {
  --bg: #0B0A09;
  --rail: #0C0B0A;
  --panel: #16161A;
  --panel-2: #1D1C20;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .06);
  --text: #EDEDED;
  --muted: #9C9AA0;
  --orange: #F26A3D;
  --amber: #F7A23B;
  --rose: #EF5E73;
  --teal: #1FB8A6;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); background-color: var(--bg); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(55% 45% at 8% -8%, rgba(242, 106, 61, .10), transparent 60%), radial-gradient(50% 45% at 100% 105%, rgba(31, 184, 166, .06), transparent 60%);
  background-attachment: fixed; }
a { color: #F7A07A; text-decoration: none; }
a:hover { color: #FFC3A6; }
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0 0 .45em; letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; max-width: 44rem; margin-inline: auto; }
.fine { font-size: .84rem; color: var(--muted); }
body::after { content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .04;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 28px; padding: 0 20px; background: rgba(11, 10, 9, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem var(--display); letter-spacing: -.02em; color: var(--text); }
.wordmark:hover { color: #fff; }
.mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: #1A1816; box-shadow: inset 0 0 0 1px var(--line); }
.mark::before { content: ""; position: absolute; left: 8px; top: 8px; width: 6px; height: 14px; border-radius: 2px; background: #EDEDED; }
.mark::after { content: ""; position: absolute; left: 16px; top: 8px; width: 7px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--amber), var(--orange)); }
.top-links { display: flex; gap: 22px; font-size: .92rem; }
.top-links a { color: var(--muted); }
.top-links a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ghost, .cta { padding: 6px 12px; font-size: .88rem; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.ghost:hover, .cta:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.clone-row button, .button, .tool-card button, .result-actions .primary { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px; font: 500 .9rem var(--sans); color: #fff; border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, rgba(251, 131, 80, .9), rgba(232, 96, 43, .9)); box-shadow: 0 8px 24px -6px rgba(242, 106, 61, .6), inset 0 1px 0 0 rgba(255, 255, 255, .5); backdrop-filter: blur(4px); transition: filter .15s, transform .15s; }
.clone-row button::before, .button::before, .tool-card button::before, .result-actions .primary::before { content: ""; position: absolute; inset: 0 0 auto; height: 46%; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent); }
.clone-row button:hover, .button:hover, .tool-card button:hover, .result-actions .primary:hover { color: #fff; filter: brightness(1.08); }
.clone-row button:active, .button:active, .tool-card button:active { transform: scale(.98); }

/* ---------- Frame: icon rail + workspace ---------- */
/* The rail column's background and edge run the full page height (::before fills the cell); the nav itself stays sticky.
   Before this the backdrop stopped at the first screen and left a seam on long pages. */
.frame { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.frame::before { content: ""; grid-column: 1; grid-row: 1; background: var(--rail); border-right: 1px solid var(--line-soft); }
.rail { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 56px; max-height: calc(100vh - 56px); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; }
.rail a { width: 64px; min-height: 56px; padding: 8px 2px 6px; display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; line-height: 1.15; text-align: center; color: var(--muted); border-radius: 12px; }
.rail a .nav-icon { width: 20px; height: 20px; }
.workspace { grid-column: 2; grid-row: 1; }
.rail a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.rail a.active { color: var(--orange); background: linear-gradient(180deg, rgba(242, 106, 61, .2), rgba(242, 106, 61, .05)); box-shadow: inset 0 0 0 1px rgba(242, 106, 61, .25); }
.nav-icon, .tool-card button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace { min-width: 0; }
main { max-width: 72rem; margin: 0 auto; }

/* ---------- Intro ---------- */
.intro { padding: 56px 32px 24px; }
.intro h1 { max-width: 22ch; background: linear-gradient(180deg, #FFFFFF 0%, #E4E4E7 50%, #71717A 100%); line-height: 1.05; -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-home { text-align: center; padding-top: 72px; }
.intro-home h1 { margin-inline: auto; max-width: 16ch; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.035em; }
.lead { font-size: 1.04rem; color: var(--muted); max-width: 44rem; margin: 0 0 26px; line-height: 1.7; }
.intro-home .lead { margin-inline: auto; }
.segment { display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 22px; background: rgba(22, 22, 26, .6); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; }
.segment a { padding: 8px 16px; font-size: .875rem; font-weight: 500; color: var(--muted); border-radius: 999px; }
.segment a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* ---------- Link box ---------- */
.input-card { max-width: 46rem; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.intro-home .input-card { margin: 0 auto; }
.clone-row { display: flex; gap: 8px; flex-wrap: wrap; }
.clone-row input, .tool-card input { flex: 1 1 14rem; min-width: 0; padding: 12px 14px; font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid transparent; border-radius: 12px; }
.tool-card input { flex: none; }
.clone-row input::placeholder, .tool-card input::placeholder { color: #6F6D76; }
.clone-row input:focus, .tool-card input:focus { outline: none; border-color: rgba(242, 106, 61, .55); background: rgba(255, 255, 255, .07); }
.clone-row button, .tool-card button { padding: 12px 20px; font-size: .95rem; border-radius: 12px; }
.clone-row button:disabled, .tool-card button:disabled { opacity: .6; cursor: progress; }
.button.secondary { color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; }
.button.secondary::before { display: none; }
.button.secondary:hover { background: rgba(255, 255, 255, .12); }
.form-note { font-size: .85rem; color: var(--muted); margin: 8px 6px 2px; }
.form-status { font-size: .9rem; margin: 6px 6px 0; color: #F7A07A; }
.form-status:empty { display: none; }
.form-status.error { color: #FF7A7A; }

/* ---------- Showcase ---------- */
.section { padding: 48px 32px; }
.section-head { max-width: 42rem; margin-bottom: 24px; }
.section-head p, .section-note { color: var(--muted); margin: 0; }
.showcase { text-align: center; padding-top: 40px; }
.glow { display: inline-block; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 24px;
  background: linear-gradient(to right, var(--amber), var(--orange) 50%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.edit { position: relative; margin: 0; padding: 22px 22px 18px; text-align: left; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; }
.edit-ruler { position: relative; height: 20px; margin: 0 0 10px 7.5rem; border-bottom: 1px solid var(--line); font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.edit-ruler span { position: absolute; top: 0; transform: translateX(-50%); }
.edit-ruler span:first-child { transform: none; }
.edit-ruler span:last-child { transform: translateX(-100%); }
.edit-track { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; margin-top: 8px; }
.edit-name { font-size: .85rem; color: var(--muted); }
.edit-clips { display: flex; gap: 4px; height: 44px; }
.clip-src { border-radius: 8px; background: repeating-linear-gradient(90deg, #24232A 0 22px, #2A2930 22px 24px); }
.clip-new { display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--text); background: #2B2A31; overflow: hidden; white-space: nowrap; }
.clip-new.first { color: #fff; background: linear-gradient(135deg, var(--amber), var(--orange)); }
.edit-cuts { position: absolute; left: calc(22px + 7.5rem); right: 22px; top: 22px; bottom: 50px; pointer-events: none; }
.edit-cuts i { position: absolute; top: 18px; bottom: 0; border-left: 1px dashed rgba(247, 162, 59, .7); }
.edit-cuts .playhead { position: absolute; top: 0; bottom: -4px; left: 38%; width: 2px; background: #fff; }
.edit-cuts .playhead::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid #fff; }
.edit figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.use-row { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.use-card { position: relative; display: block; min-height: 150px; padding: 46px 16px 16px; color: var(--text); background: var(--panel); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .25), inset 0 1px 0 0 rgba(255, 255, 255, .04); transition: transform .3s, border-color .3s, box-shadow .3s; }
.use-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; opacity: .5; filter: blur(30px); }
.use-card.tone-0::after { background: var(--orange); } .use-card.tone-1::after { background: var(--teal); } .use-card.tone-2::after { background: var(--rose); } .use-card.tone-3::after { background: var(--amber); }
.use-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); color: var(--text); }
.use-card p { color: var(--muted); font-size: .9rem; margin: 0; position: relative; z-index: 1; }
.use-card h3 { position: relative; z-index: 1; }
.tag { position: absolute; top: 12px; left: 12px; padding: 2px 9px; font-size: .74rem; font-weight: 600; color: #fff; border-radius: 999px; }
.tone-0 .tag { background: var(--orange); } .tone-1 .tag { background: var(--teal); } .tone-2 .tag { background: var(--rose); } .tone-3 .tag { background: var(--amber); }

/* ---------- Lists, steps, FAQ ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding: 20px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; font: 700 .9rem var(--display); color: var(--orange); background: rgba(242, 106, 61, .14); border-radius: 9px; }
.steps p { color: var(--muted); margin: 0; }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; }
.spec { margin: 0; padding: 4px 20px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; }
.spec div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--muted); }
.aside-line { margin: 0; padding: 18px 22px; background: linear-gradient(90deg, rgba(242, 106, 61, .12), rgba(242, 106, 61, .02)); border: 1px solid rgba(242, 106, 61, .22); border-radius: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split h2 { font-size: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 24px; margin: 9px 0; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px; box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .04); }
.card p { color: var(--muted); margin: 0; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
/* Closing call to action: centred like the hero, so the page starts and ends the same way. */
.closing { text-align: center; }
.closing .section-head { max-width: none; }
.closing .input-card { margin: 0 auto; }
.faq-item { padding: 16px 20px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; }
.faq-item h3 { margin-bottom: 5px; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.faq-item p { margin: 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px; }
.plan h2 { font-size: 1.15rem; }
.plan.popular { border: 1px solid rgba(242, 106, 61, .55); background: linear-gradient(180deg, rgba(242, 106, 61, .10), var(--panel) 40%); }
.plan-flag { position: absolute; top: 18px; right: 18px; padding: 2px 9px; font-size: .74rem; font-weight: 600; color: #fff; background: var(--orange); border-radius: 999px; }
.plan-price { margin: 4px 0 2px; color: var(--muted); font-size: .88rem; }
.plan-price strong { display: block; font: 700 2.4rem/1.1 var(--display); letter-spacing: -.035em; color: var(--text); }
.plan-monthly { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.plan .plan-pitch { color: var(--text); margin-bottom: 6px; }
.plan .checks { flex: 1; margin-bottom: 18px; }
.plan .button { padding: 11px 16px; }
.plan-body { display: flex; flex: 1; flex-direction: column; }
.plan-body[hidden] { display: none; }
.interval-toggle button { padding: 8px 16px; font: 500 .875rem var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.interval-toggle button.active { color: var(--text); background: rgba(255, 255, 255, .09); }
.interval-toggle .save { margin-left: 4px; font-weight: 600; color: #F7A07A; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pack { position: relative; }
.pack-flag { position: absolute; top: 14px; right: 14px; padding: 3px 8px; font-size: .72rem; font-weight: 600; color: var(--orange); background: rgba(242, 106, 61, .14); border-radius: 999px; }
.checkout-note { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); color: var(--text); }
.checkout-note.ok { border-color: rgba(242, 106, 61, .5); }
@media (max-width: 1000px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack { display: flex; flex-direction: column; gap: 8px; }
.pack h3 { margin: 0; font-size: 1.05rem; }
.pack-price { margin: 0; color: var(--muted); font-size: .88rem; }
.pack-price strong { margin-right: 6px; font: 700 1.8rem/1.1 var(--display); letter-spacing: -.03em; color: var(--text); }
.pack .button { margin-top: auto; padding: 10px 16px; }
.price-table { width: 100%; max-width: 50rem; margin-bottom: 14px; border-collapse: collapse; font-size: .94rem; }
.price-table th, .price-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.price-table thead th { font-size: .82rem; font-weight: 500; color: var(--muted); }
.price-table tbody th { font-weight: 500; }
.price-table td { color: #CFCDD4; }
.free-tool { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.free-tool > div { flex: 1; }
.free-tool h3 { margin-bottom: 2px; }
.prose { max-width: 50rem; padding-block: 8px; }
.prose h2 { font-size: 1.15rem; }
.prose p, .prose li { color: #CFCDD4; }
.rules li, .plain li { margin-bottom: .5em; }

/* ---------- Transcript tool ---------- */
.tool-card { max-width: 62rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; padding: 0; overflow: hidden; }
.transcript-form { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-right: 1px solid var(--line-soft); }
.field-label { font-weight: 600; font-size: .93rem; }
.field-label span { color: var(--orange); }
.transcript-form .form-note, .transcript-form .form-status { margin: 0; }
.transcript-form .fine { margin: 8px 0 0; }
.tool-output { min-height: 22rem; padding: 22px; background: rgba(255, 255, 255, .015); }
.tool-empty { min-height: 19rem; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: .92rem; max-width: 22rem; margin: 0 auto; }
.tool-empty strong { color: var(--text); font-size: 1.02rem; }
.tool-empty[hidden] { display: none; }
.empty-mark { width: 120px; height: 34px; margin-bottom: 10px; border-radius: 8px; background: repeating-linear-gradient(90deg, #2A2930 0 26px, transparent 26px 29px); }
.hook { border-left: 3px solid var(--orange); background: rgba(242, 106, 61, .1); padding: 10px 14px; margin-bottom: 14px; border-radius: 0 10px 10px 0; }
.hook strong { display: block; font-size: .8rem; font-weight: 600; color: #F7A07A; font-variant-numeric: tabular-nums; }
.hook p { font-size: 1.04rem; color: var(--text); margin: .2em 0 0; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.result-actions button, .result-actions a { font: 500 .86rem var(--sans); padding: 7px 12px; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; cursor: pointer; box-shadow: none; }

.lines { list-style: none; padding: 0; margin: 0; max-height: 22rem; overflow-y: auto; }
.lines li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.lines time { font-size: .84rem; line-height: 1.9; color: #F7A07A; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 28px 32px 40px; font-size: .88rem; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 12px; }
.footer nav a { color: #CFCDD4; }
.footer nav a:hover { color: #fff; }

@media (max-width: 1000px) {
  .plans, .packs { grid-template-columns: 1fr; max-width: 30rem; }
  .tool-card { grid-template-columns: 1fr; }
  .transcript-form { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .split-section { grid-template-columns: 1fr; gap: 12px; }
  .use-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top-links, .ghost { display: none; }
  .top-actions .credit-chip { display: inline-block; }
  .frame { grid-template-columns: 1fr; }
  .frame::before { display: none; }
  .workspace { grid-column: 1; }
  .rail { position: fixed; z-index: 20; top: auto; bottom: 0; left: 0; right: 0; max-height: none; height: 62px; flex-direction: row; justify-content: space-around; padding: 6px 8px; background: var(--rail); border-top: 1px solid var(--line-soft); }
  .rail a { width: auto; min-width: 64px; min-height: 50px; padding: 4px 6px; }
  .workspace { padding-bottom: 62px; }
  .intro, .section { padding-inline: 16px; }
  .intro-home { padding-top: 48px; }
  .steps, .split, .use-row { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .clone-row button { width: 100%; }
  .free-tool { flex-direction: column; align-items: flex-start; }
  .edit { padding: 16px 12px 14px; }
  .edit-ruler { margin-left: 0; }
  .edit-track { grid-template-columns: 1fr; gap: 4px; }
  .edit-cuts { display: none; }
  .clip-new { font-size: .68rem; padding: 0 6px; }
  .segment a, .interval-toggle button { padding: 6px 11px; font-size: .86rem; }
  .price-table th, .price-table td { padding: 9px 8px; }
  .footer-inner { padding-inline: 16px; }
}

/* ---------- /create tool page ---------- */
body.app main { max-width: 56rem; }
.tool-intro { padding-bottom: 8px; }
.tool-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section.tight { padding-top: 8px; }
.create-form { display: grid; gap: 22px; padding: 24px; }
.create-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.create-form fieldset[hidden] { display: none; }
.create-form legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-weight: 600; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; font: 700 .8rem var(--display); color: var(--orange); background: rgba(242, 106, 61, .14); border-radius: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.create-form .form-note { margin: 0; }
.file-link { color: #F7A07A; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* File pickers look like the other fields (a dashed drop area with a button inside), not the browser's bare control. */
.create-form input[type=file] { display: block; width: 100%; padding: 10px; font: .88rem var(--sans); color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .16); border-radius: 12px; cursor: pointer; }
.create-form input[type=file]:hover { border-color: rgba(255, 255, 255, .28); }
.create-form input[type=file]:focus-visible { outline: none; border-color: rgba(242, 106, 61, .55); }
.create-form input[type=file]::file-selector-button { margin-inline-end: 12px; padding: 7px 14px; font: 500 .86rem var(--sans); color: var(--text); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; cursor: pointer; }
.create-form input[type=file]::file-selector-button:hover { background: rgba(255, 255, 255, .14); }
.create-form textarea, .create-form select { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid transparent; border-radius: 12px; resize: vertical; }
.create-form textarea:focus, .create-form select:focus { outline: none; border-color: rgba(242, 106, 61, .55); }
.create-form select option { background: var(--panel); }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-option { position: relative; display: flex; gap: 10px; padding: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: 14px; cursor: pointer; }
.mode-option:hover { border-color: rgba(255, 255, 255, .14); }
.mode-option:has(input:checked) { background: linear-gradient(180deg, rgba(242, 106, 61, .2), rgba(242, 106, 61, .05)); border-color: rgba(242, 106, 61, .35); }
.mode-option input { accent-color: var(--orange); margin-top: 4px; }
.mode-option strong { display: block; font-weight: 600; }
.mode-option small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; }
/* auto-fit: a field on its own (character mode hides the language) takes the full width instead of half. */
.row-fields { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.row-fields label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.quote-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.quote { margin: 0; font: 600 1.05rem var(--sans); font-variant-numeric: tabular-nums; }
.quote small { font-weight: 400; font-size: .84rem; color: var(--muted); }
.quote.short { color: var(--rose); }
.quote-row .button { padding: 12px 26px; font-size: .95rem; }
.button:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.create-progress, .create-result { padding: 24px; }
.stages { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.stages li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.stages .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.stages li.done { color: var(--text); } .stages li.done .dot { background: var(--teal); }
.stages li.current { color: var(--text); } .stages li.current .dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 61, .2); animation: dot 1.2s infinite; }
.stages li.stopped { color: var(--rose); } .stages li.stopped .dot { background: var(--rose); }
@keyframes dot { 50% { box-shadow: 0 0 0 7px rgba(242, 106, 61, .05); } }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.compare figure { margin: 0; }
.compare figcaption { margin-bottom: 6px; font-size: .85rem; color: var(--muted); }
.compare video { width: 100%; max-height: 520px; background: #000; border-radius: 12px; border: 1px solid var(--line-soft); }
.create-result .result-actions .button { padding: 10px 16px; }
@media (max-width: 720px) {
  .mode-options, .row-fields, .compare { grid-template-columns: 1fr; }
  .quote-row { flex-direction: column; align-items: stretch; }
  .create-form, .create-progress, .create-result { padding: 18px; }
}

/* ---------- Templates and comparison (rendered only from real generated videos) ---------- */
.compare-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; max-width: 54rem; }
.original-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 260px; padding: 46px 20px 20px; color: var(--text); }
.original-card:hover { color: var(--text); border-color: rgba(255, 255, 255, .16); }
.original-card .tag { background: rgba(255, 255, 255, .12); }
.original-card span:not(.tag) { color: var(--muted); }
.ours-card { margin: 0; }
.ours-card video { width: 100%; aspect-ratio: 9 / 16; max-height: 520px; object-fit: cover; background: #000; border-radius: 16px; border: 1px solid var(--line-soft); }
.ours-card figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.template-filter button { padding: 8px 16px; font: 500 .875rem var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.template-filter button.active { color: var(--text); background: rgba(255, 255, 255, .09); }
.card-label { font-size: .8rem; color: var(--muted); }
.template-filter { margin-bottom: 14px; }
@media (max-width: 720px) { .compare-pair { grid-template-columns: 1fr; } }
.create-form[hidden], .create-progress[hidden], .create-result[hidden] { display: none; }

/* ---------- Phase B: language switch, Clone Video modes, quote card, Library ---------- */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: 6px 10px; font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: grid; min-width: 9rem; padding: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.lang-menu a { padding: 8px 10px; font-size: .9rem; color: var(--muted); border-radius: 8px; }
.lang-menu a:hover, .lang-menu a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: .9rem; color: var(--text); background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }
.lang-banner[hidden] { display: none; }
.lang-banner button { font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.mode-tab { display: grid; gap: 4px; padding: 14px 16px; text-align: left; font: inherit; color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; cursor: pointer; }
.mode-tab strong { color: var(--text); font-weight: 600; font-size: 1rem; }
.mode-tab small { font-size: .84rem; line-height: 1.4; }
.mode-tab:hover { border-color: rgba(255, 255, 255, .14); }
.mode-tab.active { background: linear-gradient(180deg, rgba(242, 106, 61, .18), rgba(242, 106, 61, .04)); border-color: rgba(242, 106, 61, .55); }
.source-tabs { margin: 0; }
.source-tabs button { padding: 7px 14px; font: 500 .875rem var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.source-tabs button.active { color: var(--text); background: rgba(255, 255, 255, .09); }
.source-tabs button:disabled { cursor: not-allowed; opacity: .55; }
.source-tabs .soon { margin-left: 4px; font-size: .75rem; }
.text-input { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; }
.text-input:focus { outline: none; border-color: rgba(242, 106, 61, .55); }
/* Rights line under the submit button: the Terms cover it, so there is no checkbox (Owner 2026-10-30). */
.rights-note { font-size: .8rem; }
.models-note { margin: 0; }
.quote-plan .plan-shots { margin: 8px 0 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--muted); }
.quote-plan .plan-shots strong { color: var(--text); font-weight: 600; }
.quote.short { color: var(--rose); }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 40px 22px; text-align: center; }
.empty-state p { max-width: 32rem; color: var(--muted); }
.library { display: grid; gap: 14px; }
.library-project header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.library-project h2 { margin: 0; font-size: 1.1rem; }
.library-project h3 { margin: 16px 0 8px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.library-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.library-videos figure { margin: 0; }
.library-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 10px; }
.library-videos figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.library-materials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.library-materials li { display: grid; gap: 4px; width: 84px; font-size: .78rem; color: var(--muted); }
.library-materials img, .library-materials video { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #000; }
.button.danger { color: #fff; background: var(--rose); box-shadow: none; }
.button.secondary.danger { color: var(--rose); background: rgba(239, 94, 115, .08); border-color: rgba(239, 94, 115, .3); }
.confirm-dialog { max-width: 26rem; padding: 22px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; }
.confirm-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.confirm-dialog h2 { margin-top: 0; font-size: 1.1rem; }
@media (max-width: 720px) {
  .mode-tabs { grid-template-columns: 1fr; }
  .mode-tab { padding: 12px 14px; }
  .source-tabs button { padding: 6px 10px; font-size: .82rem; white-space: nowrap; }
}
.create-form [hidden] { display: none !important; }

/* ---------- Clone Video two columns: form on the left, how-it-works and estimate on the right ---------- */
body.app main:has(.clone-layout), body.app main:has(.trend-grid) { max-width: 76rem; }
.clone-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 20px; align-items: start; }
.clone-main { min-width: 0; }
.clone-side { position: sticky; top: 72px; display: grid; gap: 12px; }
.side-card { padding: 18px; }
.side-card h2 { margin: 0 0 12px; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flow li { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text); }
.flow .flow-op { justify-content: center; color: var(--muted); font-size: .9rem; padding-left: 0; height: 14px; width: 40px; }
.flow-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); border-radius: 12px; color: var(--muted); }
.flow-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-out .flow-icon { color: var(--orange); background: rgba(242, 106, 61, .12); border-color: rgba(242, 106, 61, .3); }
.flow-out { font-weight: 500; }
.estimate { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.estimate.big { font: 700 1.6rem/1.1 var(--display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.side-card .form-note { margin: 0; }
.side-trust { list-style: none; margin: 0; padding: 0 6px; display: grid; gap: 8px; font-size: .85rem; color: var(--muted); }
.side-trust li { position: relative; padding-left: 20px; }
.side-trust li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.create-form legend .count { margin-left: auto; font-size: .82rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.create-form legend:has(.count) { display: flex; width: 100%; }
.create-form legend .count:empty { display: none; }
.submit-block { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.button.wide { width: 100%; padding: 13px 20px; font-size: 1rem; }
.submit-block .form-note { text-align: center; }
@media (max-width: 1000px) {
  .clone-layout { grid-template-columns: 1fr; }
  .clone-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clone-side .side-trust { grid-column: 1 / -1; }
}
@media (max-width: 720px) { .clone-side { grid-template-columns: 1fr; } }

/* ---------- Home: modes, why, specs, template wall placeholder ---------- */
.promise { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.intro-home .promise { text-align: center; }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mode-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: transform .2s, border-color .2s; }
.mode-card:hover { transform: translateY(-3px); border-color: rgba(242, 106, 61, .45); color: var(--text); }
.mode-card h3 { margin: 0; font-size: 1.15rem; }
.mode-card p { flex: 1; }
.mode-cta { margin-top: 10px; font-size: .9rem; font-weight: 500; color: #F7A07A; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.why-item { position: relative; padding: 4px 0 4px 30px; }
.why-item::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.why-item h3 { margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.spec-card { display: grid; gap: 6px; }
.spec-card strong { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.spec-card span { font-size: .9rem; color: var(--muted); }
.templates-soon .aside-line { background: var(--panel); border-color: var(--line-soft); color: var(--muted); }
@media (max-width: 1000px) { .why-grid, .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mode-cards { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .why-grid, .specs { grid-template-columns: 1fr; } }
/* CJK rail labels: a six-character katakana word has to fit the 64px rail on one line. */
:is(:lang(ja), :lang(ko), :lang(zh)) .rail a span { font-size: 10px; letter-spacing: -.02em; word-break: keep-all; }

/* ---------- Viral Trends: template grid and template pages (content + the Clone Video tool) ---------- */
/* Template cards (/trends and the home wall): 4:5 frame, video covering it, category top-left, name and hook over a gradient.
   Desktop 5 across (4 under 1100px, 3 under 820px), phones 2 across; the first row fits the first screen at 1280×800. */
.trend-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.trend-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; color: var(--text); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; transition: transform .2s, border-color .2s; }
.trend-card:hover, .trend-card:focus-visible { transform: translateY(-3px); border-color: rgba(242, 106, 61, .55); color: var(--text); outline: none; }
.trend-card[hidden] { display: none; }
.trend-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.trend-card .card-label { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 9px; font-size: .72rem; font-weight: 600; letter-spacing: .01em; color: var(--text); background: rgba(11, 10, 9, .62); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; }
.trend-copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 44px 12px 12px; background: linear-gradient(180deg, rgba(11, 10, 9, 0) 0%, rgba(11, 10, 9, .55) 35%, rgba(11, 10, 9, .9) 100%); }
.trend-copy h2, .trend-copy h3 { margin: 0; font-size: .98rem; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.trend-copy p { margin: 4px 0 0; color: #D9D7DD; font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.trends-intro-head { padding-bottom: 8px; }
.trends-intro-head .lead { margin-bottom: 12px; }
@media (max-width: 1100px) { .trend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .trend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .trend-copy { padding: 36px 10px 10px; } .trend-copy h2, .trend-copy h3 { font-size: .9rem; } .trend-copy p { font-size: .76rem; } }
.eyebrow { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.template-showcase { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 20px; align-items: start; }
.template-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.template-video { margin: 0; }
.template-video video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 16px; border: 1px solid var(--line-soft); }
.template-video figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.template-why h2 { font-size: 1.15rem; }
.steps.compact { grid-template-columns: 1fr; gap: 8px; }
.steps.compact li { padding: 12px 14px 12px 48px; position: relative; }
.steps.compact li::before { position: absolute; left: 12px; top: 12px; margin: 0; }
.template-chip { display: grid; gap: 4px; padding: 14px 16px; background: rgba(242, 106, 61, .08); border: 1px solid rgba(242, 106, 61, .3); border-radius: 14px; }
.template-chip .tag { position: static; display: inline-block; width: max-content; }
.template-chip strong { font-size: 1.05rem; }
.template-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.template-pick-item { display: grid; gap: 6px; color: var(--text); font-size: .85rem; }
.template-pick-item img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; border: 1px solid var(--line-soft); }
.template-pick-item:hover img { border-color: rgba(242, 106, 61, .45); }
@media (max-width: 720px) { .template-showcase { grid-template-columns: 1fr; } .template-pair { max-width: 480px; } }
/* On a template page the mode is fixed: the other tabs are hidden and the one left fills the row. */
.mode-tab[hidden] { display: none; }
.mode-tabs:has(.mode-tab[hidden]) { grid-template-columns: 1fr; }

/* Search copy under the tools (/clone, /agent, /trends; tool-seo.mjs): one column of short sections in the house style. */
.seo-copy { border-top: 1px solid var(--line-soft); }
.seo-section { margin-bottom: 36px; }
.seo-section h2 { font-size: 1.3rem; margin-bottom: 12px; }
.seo-section h3 { font-size: 1rem; }
.seo-section .why-grid { grid-template-columns: 1fr; gap: 14px; margin: 8px 0 16px; }
.seo-section .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 16px; }
.seo-section .checks { margin: 8px 0 16px; }
.trends-intro { margin-bottom: 24px; }
body.studio .seo-copy, body.studio .faq { max-width: 72rem; margin: 24px auto 0; padding: 40px 32px; }
body.studio .faq { padding-top: 0; }
@media (max-width: 720px) { .seo-section .steps { grid-template-columns: 1fr; } }
