/* ============================================================
   Clipping Factory - visual system "Gradient One"
   White canvas · cobalt #0044C9 · ink #14161A
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --ink: #14161A;
  --mut: #5C6270;
  --line: #E7E9EF;
  --hairline: #F0F1F5;
  --blue: #0044C9;
  --blue2: #2E6BFF;
  --navy: #0A1B45;
  --tint: #F2F6FF;
  --panel: #FFFFFF;
  --paper: #FFFFFF;
  --grad: linear-gradient(135deg, var(--blue), var(--blue2));
  --grad-dark: linear-gradient(125deg, #14161A 30%, #0A1B45 70%, #0044C9 115%);
  --shadow-card: 0 20px 50px rgba(20, 22, 26, 0.06);
  --shadow-blue: 0 8px 24px rgba(0, 68, 201, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
.hidden { display: none !important; }
.fine { color: var(--mut); font-size: 13.5px; }

/* ---------- top color line (was SMPTE bar) ---------- */
.smpte {
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue2) 45%, var(--ink) 100%);
}
.smpte span { display: none; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mut);
  text-decoration: none;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-item > a:hover { color: var(--ink); background: var(--tint); }
.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item:hover .drop, .nav-item:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(4px);
}
.drop a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
}
.drop a:hover,
.d-accent-yellow:hover, .d-accent-cyan:hover, .d-accent-magenta:hover {
  background: var(--tint);
  color: var(--blue);
}

/* burger button (injected by auth.js; visible only on mobile) */
.cf-burger { display: none; }



/* signed-in / guest header box (injected by auth.js) */
.nav-account { display: flex; align-items: center; gap: 10px; margin-left: 18px; font-size: 13.5px; font-weight: 600; }
.acct-link { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 1px; }
.acct-link:hover { border-bottom-color: var(--blue); color: var(--blue); }
.nav-account button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.nav-account button:hover { border-color: var(--ink); }
a.cf-signin, a.cf-adminlink {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s;
}
a.cf-signin:hover, a.cf-adminlink:hover { border-color: var(--ink); }
a.cf-adminlink { color: var(--blue); border-color: rgba(0, 68, 201, .35); }
a.cf-adminlink:hover { border-color: var(--blue); }
a.cf-signup {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-blue);
}
a.cf-signup:hover { filter: brightness(1.06); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 26px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fmark { font-weight: 700; font-size: 14.5px; }
.fcontact { display: flex; gap: 22px; }
.fcontact a { color: var(--mut); font-size: 13.5px; text-decoration: none; }
.fcontact a:hover { color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.fill-yellow, .btn.fill-cyan, .btn.fill-magenta {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-blue);
}
.btn.fill-yellow:hover, .btn.fill-cyan:hover, .btn.fill-magenta:hover { filter: brightness(1.06); border: none; }
.btn.ghost { background: #fff; }
.btn.filebtn {
  width: 100%;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--tint);
  font-weight: 600;
  color: var(--mut);
}
.btn.filebtn:hover { border-color: var(--blue); color: var(--blue); transform: none; }

/* ---------- machine / tool pages ---------- */
.tool-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.tool-about h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.tool-about h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: var(--grad);
  margin-bottom: 18px;
}
.tool-about > p { margin-top: 16px; color: var(--mut); line-height: 1.65; }
.inbox-note {
  margin-top: 26px;
  background: var(--tint);
  border: 1px solid rgba(0, 68, 201, .14);
  border-radius: 16px;
  padding: 20px;
}
.inbox-note p { font-size: 14px; color: var(--mut); line-height: 1.6; margin-bottom: 14px; }
.inbox-note p:last-child { margin-bottom: 0; }
.inbox-note .btn { font-size: 13.5px; padding: 11px 20px; }

/* form card */
.ticket {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ticket fieldset { border: none; padding: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--hairline); }
.ticket fieldset:last-of-type { border-bottom: none; }
.ticket legend {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 0;
  margin-bottom: 18px;
  float: left;
  width: 100%;
}
.field { margin-bottom: 18px; clear: both; }
.field:last-child { margin-bottom: 0; }
.lab { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.tin, .sel, .tarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.tin:focus, .sel:focus, .tarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 68, 201, 0.12);
}
.tarea { resize: vertical; min-height: 96px; }
.help { margin-top: 7px; font-size: 12.5px; color: var(--mut); }
.or-sep, .or { color: var(--mut); font-size: 13px; }
.actions { padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 34px); background: var(--tint); }
.actions .btn { width: 100%; font-size: 15px; padding: 14px 26px; }
.status { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 1.2em; }
.status.err { color: #C0263C; }
.status.ok { color: #128A4D; }

/* segmented control */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--tint);
  margin-bottom: 16px;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  color: var(--mut);
  transition: background .15s, color .15s;
}
.seg input:checked + label { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.bulk-count { font-size: 12.5px; color: var(--mut); margin-top: 6px; }

/* toggle switch */
.switch-row { display: flex; align-items: flex-start; gap: 14px; }
.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .18s;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 22, 26, 0.25);
  transition: transform .18s;
}
.switch:checked { background: var(--blue); }
.switch:checked::before { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.stext label { font-weight: 700; font-size: 14.5px; cursor: pointer; }
.stext .help { margin-top: 3px; }

/* ---------- machine status panel ---------- */
.runs-panel {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.runs-panel h2 { font-size: 15.5px; font-weight: 700; margin-bottom: 12px; }
.rp-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.rp-live { margin-bottom: 6px; }
.runbar {
  height: 8px;
  border-radius: 999px;
  background: var(--tint);
  overflow: hidden;
  margin: 10px 0 8px;
}
.runbar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width .6s ease;
}
.runbar-indet { width: 40%; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .runbar-indet { animation: none; width: 100%; opacity: .5; } }
.rp-meta { font-size: 12.5px; color: var(--mut); }
.rp-usage { border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: 12px; font-weight: 600; color: var(--ink); }
.rp-muted { color: var(--mut); font-size: 13.5px; }
.rp-err { color: #C0263C; font-size: 13.5px; font-weight: 600; }
.rp-list { list-style: none; margin-top: 10px; }
.rp-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
}
.rp-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.rp-list a:hover { color: var(--blue); border-color: var(--blue); }
.rp-mark { font-weight: 700; width: 16px; text-align: center; }
li.ok .rp-mark { color: #128A4D; }
li.bad .rp-mark { color: #C0263C; }
li.live .rp-mark { color: var(--blue); }
.rp-list .when { margin-left: auto; color: var(--mut); font-size: 12.5px; white-space: nowrap; }
.rp-cancel {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.rp-cancel:hover { border-color: var(--blue); color: var(--blue); }
.rp-cancel:disabled { opacity: .5; cursor: default; }

/* ---------- inbox pages ---------- */
.inbox-wrap { max-width: 1000px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 56px); }
.inbox-wrap h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.inbox-wrap h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: var(--grad);
  margin-bottom: 18px;
}
.intro { margin-top: 14px; color: var(--mut); max-width: 62ch; line-height: 1.65; }
.intro a { color: var(--blue); }
.inbox-status { margin-top: 22px; font-size: 14px; font-weight: 600; }
.inbox-status.err { color: #C0263C; }
.inbox-status a { color: var(--blue); }
.clip-group { margin-top: 38px; }
.clip-group h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.group-time { color: var(--mut); font-weight: 500; font-size: 13px; }
.newest-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
}
.clip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hairline);
}
.cname { font-weight: 600; font-size: 14px; word-break: break-all; }
.cmeta { margin-left: auto; color: var(--mut); font-size: 12.5px; white-space: nowrap; }
.clip-row .btn { font-size: 12.5px; padding: 8px 18px; flex: 0 0 auto; }
.clip-row .btn.fill-yellow, .clip-row .btn.fill-cyan, .clip-row .btn.fill-magenta { box-shadow: none; }

/* ---------- auth pages ---------- */
.auth-wrap {
  padding: clamp(56px, 10vw, 130px) clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: center;
}
.auth-ticket { width: 100%; max-width: 430px; }
.auth-note { margin-top: 14px; font-size: 13px; color: var(--mut); }
.auth-note a { color: var(--blue); font-weight: 600; }
.or-rule {
  margin: 20px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mut);
  font-size: 12.5px;
}
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-alt { display: block; width: 100%; }
.guest-note { margin-top: 14px; font-size: 13px; color: var(--mut); }
.guest-note a { color: var(--blue); font-weight: 700; }

/* ---------- account & admin ---------- */
.usage-line {
  font-weight: 700;
  font-size: 14px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(0, 68, 201, .18);
  background: var(--tint);
  border-radius: 12px;
  display: inline-block;
}
.admin-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.admin-stats .stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px 26px;
  display: flex;
  flex-direction: column;
}
.stat-num { font-weight: 700; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; color: var(--blue); }
.stat-lab { font-size: 12.5px; color: var(--mut); margin-top: 5px; font-weight: 600; }
.cost-note { font-size: 12.5px; margin-top: 12px; color: var(--mut); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.admin-table th {
  text-align: left;
  font-size: 12px;
  color: var(--mut);
  font-weight: 700;
  padding: 9px 10px 9px 4px;
  border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 10px 10px 10px 4px; border-bottom: 1px solid var(--hairline); }
.admin-table a { color: var(--blue); }
.ok-cell { color: #128A4D; font-weight: 700; }
.bad-cell { color: #C0263C; font-weight: 700; }
.limit-cell { white-space: nowrap; }
.limit-input {
  width: 66px;
  font-family: inherit;
  font-size: 13px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  margin-right: 6px;
}
.limit-input:focus { outline: none; border-color: var(--blue); }
.limit-save:hover { border-color: var(--blue); color: var(--blue); }
.keep-clips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  font-size: 12px;
  color: var(--mut);
  cursor: pointer;
  white-space: nowrap;
}
.channels { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.channel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 165px;
}
.ch-platform { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--blue); }
.ch-name { font-weight: 700; font-size: 14.5px; }
.ch-user { font-size: 12.5px; color: var(--mut); }
.channels-manage { margin-top: 16px; display: inline-block; width: auto; font-size: 13.5px; }

/* ============================================================
   Landing page (lp-*)
   ============================================================ */
.rv { opacity: 0; transform: translateY(28px) scale(.99); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { transition: none; } }

.lp-hero { text-align: center; max-width: 940px; margin: 0 auto; padding: clamp(70px, 11vw, 130px) 24px 30px; }
.lp-hero h1 {
  font-size: clamp(46px, 7.4vw, 100px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(115deg, var(--ink) 20%, var(--blue) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero p { margin: 26px auto 0; color: var(--mut); font-size: clamp(16px, 1.8vw, 22px); max-width: 40ch; line-height: 1.5; letter-spacing: -0.01em; }
.lp-cta { margin-top: 34px; display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.lp-cta .btn { padding: 14px 32px; font-size: 16px; }
.btn.blue { background: var(--grad); color: #fff; border: none; box-shadow: var(--shadow-blue); }
.btn.blue:hover { filter: brightness(1.06); }
.btn.link { border: none; background: none; color: var(--blue); box-shadow: none; }
.btn.link:hover { transform: none; text-decoration: underline; }

.lp-frame-wrap { padding: 60px clamp(16px, 4vw, 64px); max-width: 1220px; margin: 0 auto; }
.lp-frame { background: var(--grad-dark); border-radius: 30px; padding: clamp(20px, 3vw, 44px); box-shadow: 0 50px 120px rgba(0, 68, 201, .22); }
.lp-rail { display: flex; overflow: hidden; }
.lp-rail-inner { display: flex; gap: 16px; animation: lp-slide 32s linear infinite; width: max-content; }
@media (prefers-reduced-motion: reduce) { .lp-rail-inner { animation: none; } }
@keyframes lp-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lp-clip {
  flex: 0 0 180px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.lp-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-clip-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 10px 12px 22px;
  background: linear-gradient(180deg, rgba(10, 15, 30, .55), transparent);
}
.lp-lang { background: var(--blue); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 999px; letter-spacing: .04em; }
.lp-dur { opacity: .7; }
.lp-clip-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 12px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  background: linear-gradient(0deg, rgba(10, 15, 30, .78), rgba(10, 15, 30, 0));
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.lp-nums { display: flex; justify-content: center; gap: clamp(34px, 8vw, 120px); padding: 90px 24px; flex-wrap: wrap; text-align: center; }
.lp-num {
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(115deg, var(--ink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-numlab { color: var(--mut); margin-top: 4px; font-size: 15px; }

.lp-feat { max-width: 1000px; margin: 0 auto; padding: 20px 24px 60px; }
.lp-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.lp-frow:first-child { border-top: none; }
.lp-frow h3 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.lp-frow h3 span { color: var(--blue); }
.lp-frow p { color: var(--mut); margin-top: 14px; font-size: 16.5px; line-height: 1.6; }
.lp-go { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid rgba(0, 68, 201, .25); }
.lp-go:hover { border-bottom-color: var(--blue); }
.lp-mini {
  border-radius: 20px;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lp-mini .ghost {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: clamp(52px, 7vw, 84px);
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, .10);
  filter: blur(5px);
  white-space: nowrap;
  user-select: none;
}
.lp-mini .label { position: relative; font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: -0.03em; text-shadow: 0 3px 14px rgba(0, 0, 0, .4); }
.lp-frow.rev .lp-mini { order: -1; }

.lp-vs { text-align: center; padding: 90px 24px 110px; border-top: 1px solid var(--line); }
.lp-vs h2 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.045em;
  background: linear-gradient(115deg, var(--ink) 30%, var(--blue) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-vs .sub { color: var(--mut); margin: 18px auto 0; font-size: 17px; max-width: 44ch; line-height: 1.6; }
.lp-vs .sub b { color: var(--ink); }
.lp-duel { display: flex; justify-content: center; align-items: center; gap: clamp(30px, 7vw, 110px); margin-top: 70px; flex-wrap: wrap; }
.lp-side { display: flex; flex-direction: column; align-items: center; }
.lp-price { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.lp-side.blue .lp-price { color: var(--blue); }
.lp-ball { border-radius: 50%; margin: 26px 0 22px; transform: scale(.55); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.rv.in .lp-ball { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .lp-ball { transform: scale(1); transition: none; } }
.lp-side.grey .lp-ball { width: clamp(110px, 14vw, 160px); aspect-ratio: 1; background: radial-gradient(circle at 32% 28%, #D6DAE0, #8E949E 58%, #62676F); }
.lp-side.blue .lp-ball { width: clamp(180px, 23vw, 260px); aspect-ratio: 1; background: radial-gradient(circle at 32% 28%, #5B8CFF, #0044C9 62%, #0A1B45); box-shadow: 0 34px 90px rgba(0, 68, 201, .35); transition-delay: .12s; }
.lp-side .name { color: var(--mut); font-size: 14px; }
.lp-side .stat2 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }

.lp-final { text-align: center; padding: 130px 24px; background: #14161A; color: #fff; }
.lp-final h2 { font-size: clamp(38px, 6vw, 84px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; }
.lp-final h2 span { color: #5B8CFF; }
.lp-final p { color: #A9ADB6; margin: 22px 0 38px; font-size: 18px; }
.lp-final .btn { background: transparent; border: 2px solid #fff; color: #fff; padding: 16px 36px; font-size: 16px; }
.lp-final .btn:hover { background: #fff; color: var(--ink); }

.lp-book { background: linear-gradient(160deg, #2E6BFF 0%, #0044C9 45%, #0A1B45 130%); text-align: center; color: #fff; padding: 130px 24px 150px; position: relative; overflow: hidden; }
.lp-bcards { display: flex; justify-content: center; margin-bottom: 34px; }
.lp-bcard { width: 96px; height: 56px; border-radius: 10px; background: #14161A; box-shadow: 0 12px 30px rgba(10, 20, 50, .4); position: relative; padding: 9px 10px; }
.lp-bcard i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); margin-bottom: 5px; }
.lp-bcard i:nth-child(2) { width: 70%; }
.lp-bcard i:nth-child(3) { width: 45%; background: #5B8CFF; }
.lp-bcard.b1 { transform: rotate(-10deg) translateX(16px); }
.lp-bcard.b2 { transform: rotate(4deg); z-index: 2; }
.lp-bcard.b3 { transform: rotate(14deg) translateX(-16px); background: #fff; }
.lp-bcard.b3 i { background: rgba(20, 22, 26, .35); }
.lp-bcard.b3 i:nth-child(3) { background: var(--blue); }
.lp-book h3 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; }
.lp-book p { color: rgba(255, 255, 255, .75); margin: 14px 0 34px; font-size: 16.5px; }
.lp-book .btn { background: #fff; color: var(--blue); border: none; font-weight: 700; padding: 15px 36px; font-size: 16px; }

.lp-ticker { background: #14161A; color: #fff; overflow: hidden; padding: 15px 0; }
.lp-ticker-inner { display: flex; gap: 44px; white-space: nowrap; animation: lp-slide 28s linear infinite; width: max-content; font-weight: 600; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .lp-ticker-inner { animation: none; } }
.lp-ticker b { color: #5B8CFF; font-weight: 600; }
.lp-mega { background: #14161A; overflow: hidden; text-align: center; padding-top: 26px; height: clamp(90px, 13vw, 190px); }
.lp-mega div { font-weight: 700; font-size: clamp(64px, 11vw, 168px); letter-spacing: -0.05em; color: #fff; line-height: 1; white-space: nowrap; user-select: none; }

/* profile icon + dropdown (injected by auth.js, all screen sizes) */
.nav-account { position: relative; }
.cf-profile-menu { display: none; }
.nav-account .cf-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-account .cf-profile:hover { filter: brightness(1.07); }
body.cf-profile-open .cf-profile-menu {
  display: block;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 22, 26, .14);
  padding: 8px;
  z-index: 60;
}
.cf-menu-email {
  padding: 10px 12px 9px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.cf-profile-menu a, .cf-profile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 9px;
  cursor: pointer;
}
.cf-profile-menu a:active, .cf-profile-menu a:hover,
.cf-profile-menu button:active, .cf-profile-menu button:hover { background: var(--tint); color: var(--blue); }

/* support chat (injected by auth.js, signed-in users only) */
#cf-chatbtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 68, 201, .35);
  z-index: 70;
}
#cf-chatbtn:hover { filter: brightness(1.07); }
#cf-chat {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(20, 22, 26, .28);
  overflow: hidden;
  flex-direction: column;
  z-index: 71;
}
body.cf-chat-open #cf-chat { display: flex; }
.cf-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.cf-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.cf-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--tint);
}
.cf-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.cf-msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.cf-msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cf-msg.typing { color: var(--mut); }
.cf-msg.sys { align-self: center; color: var(--mut); font-size: 12.5px; background: none; padding: 2px 6px; }
.cf-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cf-chat-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
}
.cf-chat-form input:focus { outline: 2px solid var(--blue2); outline-offset: 0; border-color: var(--blue2); }
.cf-chat-form button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cf-chat-form button:disabled { opacity: .55; cursor: default; }

/* studio (directed clipping) page */
.st-head { max-width: 1100px; margin: 0 auto; padding: 44px 24px 0; }
.st-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.st-head p { color: var(--mut); margin-top: 8px; max-width: 62ch; line-height: 1.6; }
.st-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; max-width: 1100px; margin: 0 auto; padding: 26px 24px 70px; }
.st-chat { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; height: 640px; overflow: hidden; }
.st-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--tint); }
.st-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.st-inputarea { resize: none; overflow-y: auto; max-height: 120px; line-height: 1.45; font-family: inherit; }
.st-form input { flex: 1; min-width: 0; }
.st-plancard { align-self: flex-start; max-width: 94%; background: #fff; border: 1.5px solid var(--blue); border-radius: 14px; padding: 13px 15px; font-size: 14px; line-height: 1.55; }
.st-plantitle { font-weight: 700; margin-bottom: 6px; }
.st-plancard p { color: var(--ink); }
.st-planbtns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.st-planbtns .btn { font-size: 13.5px; padding: 9px 16px; }
.st-side .st-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); padding: 16px 18px; margin-bottom: 18px; }
.st-panel h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.st-panel .field { margin-bottom: 12px; }
.st-panel .field:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  header.site { gap: 12px; }
  .cf-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    order: 99;
    flex: 0 0 auto;
  }
  .cf-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  body.cf-nav-open .cf-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.cf-nav-open .cf-burger span:nth-child(2) { opacity: 0; }
  body.cf-nav-open .cf-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; }
  body.cf-nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(20, 22, 26, .14);
    padding: 8px 18px 16px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    margin-left: 0;
  }
  body.cf-nav-open .nav-item > a { display: block; padding: 13px 10px 9px; font-size: 15.5px; color: var(--ink); }
  body.cf-nav-open .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
  }
  body.cf-nav-open .drop a { padding: 9px 10px; color: var(--mut); }
  .nav-account { margin-left: auto; }
  .tool-wrap { grid-template-columns: 1fr; }
  .lp-frow { grid-template-columns: 1fr; gap: 26px; }
  .lp-frow.rev .lp-mini { order: 0; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .st-wrap { grid-template-columns: 1fr; }
  .st-chat { height: 520px; }
}

@media (max-width: 640px) {
  /* stats: keep all three counters on one line like desktop */
  .lp-nums { flex-wrap: nowrap; gap: 18px; padding: 60px 14px; }
  .lp-num { font-size: clamp(24px, 8.5vw, 44px); }
  .lp-numlab { font-size: 12px; }

  /* World Cup duel: spheres side by side and centered */
  .lp-duel { flex-wrap: nowrap; gap: 20px; margin-top: 50px; }
  .lp-price { font-size: 21px; }
  .lp-side.grey .lp-ball { width: clamp(80px, 23vw, 120px); }
  .lp-side.blue .lp-ball { width: clamp(126px, 37vw, 190px); box-shadow: 0 22px 60px rgba(0, 68, 201, .35); }
  .lp-side .name { font-size: 11.5px; }
  .lp-side .stat2 { font-size: 16.5px; }
}

/* current-page marker in the nav */
.site-nav a.active-yellow, .site-nav a.active-cyan, .site-nav a.active-magenta {
  color: var(--ink);
  background: var(--tint);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 999px 999px 0 0;
}

/* generic counter alias */
.num {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cf-msg.st-error { background: #fdecec; border: 1px solid #e5484d; color: #b01c22; }
