/* Clipscribe
   Pine and playhead pink. Archivo, wide for headings, normal for reading. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F3F6F2;
  --surface: #FFFFFF;
  --surface-2: #EAF0EC;
  --ink: #10302A;
  --muted: #536B65;
  --line: #D6E1DB;
  --line-strong: #B9CBC2;
  --pine: #0F4A40;
  --pine-hover: #0A3830;
  --on-pine: #FFFFFF;
  --pink: #FF4F8B;
  --pink-hover: #F2397A;
  --pink-text: #B8135A;
  --pink-soft: #FFE4EE;
  --mint: #DCF0E6;
  --mint-text: #145C4C;
  --danger: #B42318;
  --danger-soft: #FCEBE8;
  --ok: #1B6B4A;
  --mark: #FFD3E3;
  --focus: #FF4F8B;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* names older pages still use */
  --text: var(--ink);
  --accent: var(--pine);
  --accent-soft: var(--mint);
  --ok-soft: var(--mint);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0C2421;
  --surface: #11302B;
  --surface-2: #163A34;
  --ink: #E8F2EE;
  --muted: #9CB9B0;
  --line: #234740;
  --line-strong: #2F5A51;
  --pine: #8FE3C8;
  --pine-hover: #B0EDD8;
  --on-pine: #0C2421;
  --pink: #FF6B9D;
  --pink-hover: #FF85AE;
  --pink-text: #FF8DB3;
  --pink-soft: rgba(255, 107, 157, .16);
  --mint: #18423A;
  --mint-text: #9FE6CE;
  --danger: #FF8A80;
  --danger-soft: #3A1F1D;
  --ok: #8FE3C8;
  --mark: rgba(255, 107, 157, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C2421;
    --surface: #11302B;
    --surface-2: #163A34;
    --ink: #E8F2EE;
    --muted: #9CB9B0;
    --line: #234740;
    --line-strong: #2F5A51;
    --pine: #8FE3C8;
    --pine-hover: #B0EDD8;
    --on-pine: #0C2421;
    --pink: #FF6B9D;
    --pink-hover: #FF85AE;
    --pink-text: #FF8DB3;
    --pink-soft: rgba(255, 107, 157, .16);
    --mint: #18423A;
    --mint-text: #9FE6CE;
    --danger: #FF8A80;
    --danger-soft: #3A1F1D;
    --ok: #8FE3C8;
    --mark: rgba(255, 107, 157, .35);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-text); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -.012em; }
h1, h2 { font-stretch: 115%; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; font-stretch: 106%; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: -60px; z-index: 50; background: var(--pine); color: var(--on-pine); padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-pine); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- buttons ---------- */

.btn {
  --spin: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 16px; font-stretch: 104%;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn-primary, .btn-dark { background: var(--pine); color: var(--on-pine); }
.btn-primary:hover:not(:disabled), .btn-dark:hover:not(:disabled) { background: var(--pine-hover); color: var(--on-pine); }
.btn-pink { background: var(--pink); color: #2A0614; }
.btn-pink:hover:not(:disabled) { background: var(--pink-hover); color: #2A0614; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"]::before {
  content: ""; width: 15px; height: 15px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-sso { width: 100%; background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-sso:hover { border-color: var(--ink); color: var(--ink); }
.btn-sso.disabled { opacity: .55; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.text-link, .link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--pink-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.danger-text { color: var(--danger) !important; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.logo img { height: 25px; width: auto; }
.logo-light { display: none; }
:root[data-theme="dark"] .logo-ink { display: none; }
:root[data-theme="dark"] .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-ink { display: none; }
  :root:not([data-theme="light"]) .logo-light { display: block; }
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-text { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-text:hover { background: var(--surface-2); color: var(--ink); }

.plan-pill {
  min-width: 64px; min-height: 36px; padding: 0 14px; margin-left: 4px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.plan-pill:hover { border-color: var(--ink); }
.plan-pill.is-pro { background: var(--pink-soft); border-color: transparent; color: var(--pink-text); }
.plan-pill.is-loading { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pill-short { display: none; }

.user-menu-wrap { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 10px 3px 3px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer;
}
.user-btn:hover { border-color: var(--ink); }
.user-initial, .avatar {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pine); color: var(--on-pine); font-family: var(--display); font-weight: 800; text-transform: uppercase;
}
.user-btn-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(8, 40, 34, .16);
}
.um-head { display: grid; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow-wrap: anywhere; }
.um-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: var(--radius-sm);
  background: none; text-align: left; cursor: pointer; font-size: 15px;
}
.um-item:hover { background: var(--surface-2); }
.um-danger { color: var(--danger); }

/* ---------- hero + link box ---------- */

.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.028em; max-width: 15ch; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 54ch; }

.link-form {
  display: flex; align-items: center; gap: 8px; margin-top: 30px; padding: 7px 7px 7px 20px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0 var(--pine);
}
:root[data-theme="dark"] .link-form { box-shadow: 5px 5px 0 #05140F; }
.link-form:focus-within { box-shadow: 5px 5px 0 var(--pink); }
.link-form input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0; background: none; font-size: 17px; outline: none; }
.link-form input::placeholder { color: var(--muted); }
.link-actions { display: flex; gap: 8px; flex: none; }
.link-actions .btn { border-radius: 12px; }

.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.platforms { display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent;
}
.chip.active { color: var(--ink); border-color: var(--ink); background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.yt { background: #E5322D; }
.dot.tt { background: #25F4EE; box-shadow: 2px 0 0 #FE2C55; }
.hint { font-size: 14px; color: var(--muted); }
.lang-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.lang-pick select {
  max-width: 220px; min-height: 34px; padding: 0 30px 0 12px; font-size: 14px; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23536B65' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--line); border-radius: 999px; appearance: none; cursor: pointer;
}
.lang-pick select:hover { border-color: var(--ink); }

.error {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); max-width: 640px;
  background: var(--danger-soft); color: var(--danger); font-size: 15px; border-left: 4px solid var(--danger);
}

/* the clip card in the hero */
.clip-demo { margin: 0; justify-self: end; width: 100%; max-width: 340px; }
.cd-screen {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  aspect-ratio: 9 / 13; padding: 22px 20px 20px; border-radius: 26px;
  background:
    radial-gradient(120% 70% at 20% 10%, rgba(143, 227, 200, .22), transparent 60%),
    linear-gradient(170deg, #145247 0%, #0A2C27 70%);
  color: #F2F7F4; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(8, 40, 34, .55);
}
.cd-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: rgba(242, 247, 244, .75); }
.cd-score { color: #FF8DB3; }
.cd-caption {
  font-family: var(--display); font-stretch: 118%; font-weight: 850; font-size: 31px; line-height: 1.12; letter-spacing: -.01em;
  text-wrap: balance;
}
.cd-caption span { padding: 0 .08em; border-radius: 6px; transition: background-color .12s, color .12s; }
.cd-caption span.on { background: #FF4F8B; color: #2A0614; }
.cd-track { position: relative; height: 34px; border-radius: 8px; background: rgba(242, 247, 244, .1); }
.cd-track::before { /* waveform-ish ticks */
  content: ""; position: absolute; inset: 9px 6px;
  background: repeating-linear-gradient(90deg, rgba(242, 247, 244, .28) 0 2px, transparent 2px 6px);
  border-radius: 4px;
}
.cd-range {
  position: absolute; top: 0; bottom: 0; left: 34%; width: 30%;
  border: 2.5px solid #FF4F8B; border-left-width: 6px; border-right-width: 6px; border-radius: 6px;
  background: rgba(255, 79, 139, .18);
}
.cd-head { position: absolute; top: -8px; bottom: -4px; left: 34%; width: 3px; background: #FFFFFF; border-radius: 2px; }
.cd-head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6.5px solid transparent; border-top: 8px solid #FFFFFF; border-bottom: 0; }
.cd-times { display: flex; justify-content: space-between; margin: 8px 34% 0 34%; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(242, 247, 244, .75); }
.clip-demo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.clip-demo.play .cd-head { animation: playhead 6.2s linear forwards; }
@keyframes playhead { from { left: 34%; } to { left: 63.5%; } }

/* ---------- progress ---------- */

.work { margin-top: 8px; margin-bottom: 40px; }
.progress-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted); counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 700;
}
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { border-color: var(--pink); background: var(--pink); color: #2A0614; }
.steps li.done::before { content: "✓"; border-color: var(--pine); background: var(--pine); color: var(--on-pine); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--pine); transition: width .5s ease; }
.bar-fill.indeterminate { width: 35%; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.progress-text { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- result ---------- */

.result-head { display: flex; gap: 20px; align-items: center; padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.thumb { width: 168px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--radius); flex: none; background: var(--surface-2); }
.vid-title { font-size: clamp(22px, 2.6vw, 30px); font-stretch: 108%; overflow-wrap: anywhere; }
.vid-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mint); color: var(--mint-text); }
.badge.instant { background: var(--pink-soft); color: var(--pink-text); }
.badge-plain { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }

/* best clips */
.clips-panel { margin-top: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h3 { font-size: 24px; font-stretch: 112%; font-weight: 800; }
.clip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.clip-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.clip-card.is-first { border: 2px solid var(--pine); }
.clip-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clip-rank { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 14px; }
.clip-score { font-size: 13px; font-weight: 700; color: var(--pink-text); background: var(--pink-soft); padding: 2px 9px; border-radius: 999px; }
.clip-title { font-size: 19px; font-stretch: 108%; line-height: 1.2; overflow-wrap: anywhere; }
.clip-time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clip-time b { color: var(--ink); font-weight: 600; }
.clip-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); }
.clip-range { position: absolute; top: -3px; bottom: -3px; min-width: 6px; border-radius: 4px; background: var(--pink); }
.clip-hook { font-size: 15px; line-height: 1.5; padding-left: 12px; border-left: 3px solid var(--pink); overflow-wrap: anywhere; }
.clip-why { font-size: 14px; color: var(--muted); }
.clip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.clip-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.clip-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-card.is-locked { position: relative; justify-content: flex-end; align-items: flex-start; min-height: 260px; background: var(--surface-2); border-style: dashed; border-color: var(--line-strong); }
.clip-card.is-locked .lock-lines { position: absolute; inset: 22px 18px auto; display: grid; align-content: start; gap: 10px; opacity: .55; filter: blur(3px); pointer-events: none; }
.clip-card.is-locked .lock-lines i { display: block; height: 12px; border-radius: 6px; background: var(--line-strong); }
.clip-card.is-locked .lock-lines i:nth-child(2) { width: 70%; height: 18px; }
.clip-card.is-locked .lock-lines i:nth-child(3) { width: 50%; }
.clip-card.is-locked .lock-body { position: relative; display: grid; gap: 10px; margin-top: 64px; }
.clip-card.is-locked .lock-body p { font-size: 15px; }
.clips-note { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.clip-skeleton { min-height: 220px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

/* Pro insights */
.insights { margin-top: 28px; display: grid; gap: 16px; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ins-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ins-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ins-head h3 { font-size: 18px; }
.ins-head b { font-size: 22px; font-family: var(--display); }
.gauge { position: relative; max-width: 260px; margin: 0 auto; }
.gauge-bg { stroke: var(--surface-2); }
.needle { transform-origin: 100px 100px; transform: rotate(-90deg); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.needle line { stroke: var(--ink); }
.needle circle { fill: var(--ink); }
#gaugeArc { transition: stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1); }
.gauge-read { display: grid; justify-items: center; margin-top: -8px; }
.gauge-num { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.parts { display: grid; gap: 8px; margin-top: 16px; }
.part { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 10px; font-size: 14px; }
.part b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hbar > div { height: 100%; width: 0; border-radius: inherit; background: var(--pine); transition: width .9s ease; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.stat b { display: block; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.hook { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hook .hbar { margin: 4px 0 8px; }
.hit-quote { margin: 0; font-family: var(--display); font-stretch: 108%; font-size: clamp(19px, 2.2vw, 24px); font-weight: 650; line-height: 1.3; }
.hit-quote::before { content: "“"; color: var(--pink); }
.hit-quote::after { content: "”"; color: var(--pink); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reason { padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-text); font-size: 13px; font-weight: 600; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.ts-pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-text); font-weight: 700; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums;
}
.locked {
  position: relative; margin-top: 28px; min-height: 220px; display: grid; place-items: center; overflow: hidden;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.locked-blur { position: absolute; inset: 0; display: flex; gap: 24px; padding: 28px; filter: blur(6px); opacity: .45; }
.fake-gauge { width: 180px; height: 100px; border-radius: 180px 180px 0 0; border: 16px solid var(--pink); border-bottom: 0; }
.fake-lines { flex: 1; display: grid; gap: 12px; align-content: center; }
.fake-lines i { height: 12px; border-radius: 6px; background: var(--line-strong); }
.locked-over { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 440px; padding: 28px 20px; text-align: center; }
.locked-over p { color: var(--muted); }

/* transcript */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0 12px; }
.toolbar input[type="search"] {
  flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.toolbar input[type="search"]:focus { outline: none; border-color: var(--pink); }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--pine); }
.transcript {
  max-height: 70vh; overflow-y: auto; padding: 8px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.para { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.para:last-child { border-bottom: 0; }
.para p { max-width: 72ch; overflow-wrap: anywhere; }
.ts { font-size: 14px; font-weight: 600; color: var(--pink-text); text-decoration: none; font-variant-numeric: tabular-nums; padding-top: 2px; }
a.ts:hover { text-decoration: underline; }
.transcript.no-ts .para { grid-template-columns: minmax(0, 1fr); }
.transcript.no-ts .ts { display: none; }
.para.is-hit { background: linear-gradient(90deg, var(--pink-soft), transparent 70%); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.para.in-clip { box-shadow: inset 4px 0 0 var(--pink); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.para.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: var(--mark); } 100% { background: transparent; } }
.hit-tag { display: inline-block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--pink-text); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.empty-note { padding: 18px 0; }

/* recent */
.recent-wrap { margin-bottom: 56px; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.recent-head h2 { font-size: 22px; font-stretch: 110%; }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.recent button {
  display: grid; gap: 2px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.recent button:hover { border-color: var(--ink); }
.r-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-plat { font-size: 13px; color: var(--muted); }

/* ---------- marketing sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.022em; }
.section-sub { margin-top: 10px; color: var(--muted); font-size: 18px; }

.how { border-top: 1px solid var(--line); }
.how-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 44px 0 0; padding: 34px 0 0; list-style: none; counter-reset: how; }
.how-track::before { /* the timeline */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 8px);
}
.how-track li { position: relative; counter-increment: how; }
.how-track li::before {
  content: counter(how); position: absolute; top: -48px; left: 0;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 15px;
}
.how-track li:last-child::before { background: var(--pink); border-color: var(--pink); color: #2A0614; }
.how-track h3 { font-size: 22px; font-stretch: 112%; margin-bottom: 8px; }
.how-track p { color: var(--muted); max-width: 34ch; }

.pricing { background: var(--surface-2); }
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan-pro { background: var(--pine); color: var(--on-pine); border: 0; }
.plan-name { font-size: 22px; font-stretch: 112%; font-weight: 800; }
.plan-flag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--pink); color: #2A0614; font-size: 13px; font-weight: 700; }
.price { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.price span { font-size: 17px; font-weight: 500; letter-spacing: 0; font-stretch: 100%; opacity: .8; }
.perks { display: grid; gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none; flex: 1; }
.perks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.perks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--pine); }
.plan-pro .perks svg { color: var(--pink); }
:root[data-theme="dark"] .plan-pro .perks svg { color: #B8135A; }
.perks.compact { margin: 16px 0 20px; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.plan-pro .fine { color: inherit; opacity: .8; }
.demo-note { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  cursor: pointer; list-style: none; font-family: var(--display); font-size: 19px; font-weight: 700; font-stretch: 106%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 500; line-height: 1; color: var(--pink-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* ---------- footer ---------- */

.footer { background: #0B2622; color: #CFE3DB; padding: 44px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 15px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #F2F7F4; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #FF8DB3; }
.footer-small { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(207, 227, 219, .16); font-size: 13px; color: #9CB9B0; }

/* ---------- dialogs ---------- */

.dlg {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 28px; overflow-y: auto;
  border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(5, 25, 21, .35);
}
.dlg::backdrop { background: rgba(6, 26, 22, .55); backdrop-filter: blur(2px); }
.dlg[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dlg-close { position: absolute; right: 12px; top: 12px; }
.dlg-title { font-size: 24px; font-stretch: 110%; line-height: 1.15; padding-right: 28px; }
.dlg .price { margin-top: 10px; font-size: 44px; }
.up-reason { margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--pink-soft); color: var(--pink-text); font-size: 14px; font-weight: 600; }
.pane { display: grid; gap: 14px; }
.pane-sub { margin-top: -6px; }
.step-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 28px 22px 0; padding: 0; list-style: none; counter-reset: fs; }
.flow-steps li { counter-increment: fs; padding-top: 8px; border-top: 4px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.flow-steps li::before { content: counter(fs) ". "; }
.flow-steps li.done { border-color: var(--pine); color: var(--ink); }
.flow-steps li.active { border-color: var(--pink); color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .cx-comment { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-form input, .cx-comment textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font-size: 16px; font-weight: 400;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg);
}
.auth-form input:focus, .cx-comment textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pink-soft); }
.auth-form input[aria-invalid="true"] { border-color: var(--danger); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row .text-link { font-size: 13px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.pw-eye.on { color: var(--pink-text); }
.pw-meter { height: 5px; margin-top: -6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background-color .2s; }
.switch-line { font-size: 14px; text-align: center; color: var(--muted); }
.form-error { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.hint-box { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.sent-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: var(--mint); color: var(--mint-text); font-size: 14px; }
.code-box { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.code-box code { font-size: clamp(18px, 5vw, 23px); font-weight: 700; letter-spacing: .06em; word-break: break-all; }
.code-actions { display: flex; gap: 8px; justify-content: center; }
.code-input { font-family: ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .06em; text-transform: uppercase; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--pine); }
.bill-box { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--line); }
.bill-row { display: flex; justify-content: space-between; gap: 10px; }
#billToday { color: var(--ok); font-size: 18px; }
.trust { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.trust svg { color: var(--pine); margin-top: 2px; }

.acc-user { display: flex; gap: 14px; align-items: center; padding-right: 28px; }
.avatar-lg { width: 52px; height: 52px; font-size: 22px; flex: none; }
.acc-user p { overflow-wrap: anywhere; }
.acc-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.acc-label { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); font-stretch: 100%; }
.acc-plan { font-family: var(--display); font-size: 26px; font-weight: 800; font-stretch: 112%; }
.usage { display: grid; gap: 6px; margin-top: 4px; }
.acc-actions { display: grid; gap: 8px; margin-top: 8px; }
.link-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; }
.link-row b { color: var(--ok); }
.acc-foot { margin-top: 20px; display: grid; gap: 8px; }
.lose-list { margin: -4px 0 4px; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.cx-actions { display: grid; gap: 8px; margin-top: 4px; }
.reason-list { display: grid; gap: 6px; }
.reason-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; }
.reason-list label:has(input:checked) { border-color: var(--pine); background: var(--mint); }
.reason-list input { accent-color: var(--pine); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-size: 15px; box-shadow: 0 14px 36px rgba(5, 25, 21, .3);
}

/* ---------- other pages ---------- */

.page-main { padding: clamp(40px, 6vw, 72px) 0 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal .updated { margin: 10px 0 30px; color: var(--muted); }
.legal h2 { font-size: 22px; font-stretch: 108%; margin: 34px 0 10px; }
.legal p, .legal li { max-width: 70ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }

.err-page { min-height: calc(100dvh - 66px - 180px); display: grid; align-content: center; padding: 64px 0; }
.err-code { display: flex; align-items: center; gap: 12px; color: var(--pink-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.err-code svg { color: var(--pink); }
.err-page h1 { margin-top: 12px; font-size: clamp(36px, 6vw, 64px); max-width: 16ch; }
.err-page p { margin-top: 16px; color: var(--muted); max-width: 52ch; font-size: 18px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- tablets ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
  .cd-caption { font-size: 26px; }
  .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .clip-demo { justify-self: start; max-width: 100%; }
  .cd-screen { aspect-ratio: auto; min-height: 0; flex-direction: column; }
  .clip-demo figcaption { text-align: left; }
  .nav-text { display: none; }
  .ins-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .how-track { grid-template-columns: 1fr; gap: 28px; padding: 0 0 0 52px; margin-top: 32px; }
  .how-track::before { left: 16px; right: auto; top: 6px; bottom: 6px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 2px, transparent 2px 8px); }
  .how-track li::before { top: -2px; left: -52px; }
}

/* ---------- phones ---------- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide { padding: 0 16px; }
  .nav-inner { min-height: 58px; gap: 8px; }
  .logo img { height: 21px; }
  .pill-long { display: none; }
  .pill-short { display: inline; }
  .user-btn-name { display: none; }
  .user-btn { padding-right: 8px; }
  .plan-pill { padding: 0 10px; min-width: 0; }
  .link-form { flex-direction: column; align-items: stretch; padding: 8px; box-shadow: 4px 4px 0 var(--pine); }
  .link-form input { padding: 0 10px; }
  .link-actions .btn { flex: 1; }
  .link-actions #goBtn { flex: 2; }
  .tool-meta { gap: 10px 12px; }
  .lang-pick select { max-width: 190px; }
  .clip-demo { display: none; }
  .result-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .thumb { width: 100%; max-width: 360px; }
  .clip-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .part { grid-template-columns: 82px 1fr 30px; }
  .transcript { padding: 4px 14px; max-height: none; }
  .para { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .para.is-hit, .para.in-clip { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1; padding: 0 8px; }
  .plan { padding: 22px; }
  .price { font-size: 44px; }
  .footer-inner { grid-template-columns: 1fr; }
  .dlg { padding: 22px 18px; }
  .flow-steps { margin-right: 32px; }
}

@media (max-width: 370px) {
  .plan-pill { display: none; }
  #pasteBtn { display: none; }
}

/* tables on legal pages */
.table-scroll { overflow-x: auto; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--surface-2); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: 0; }
