/* ═══════════════════════════════════════════════════════════════════
   Presency — product UI
   Satoshi carries the UI; Clash Display appears only in the wordmark
   and auth headline. Near-black canvas, one purple accent, restrained.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0910;
  --surface: #131118;
  --surface-2: #1a1721;
  --surface-3: #211d2b;
  --border: #26222f;
  --border-strong: #332e3f;
  --text: #f2f0f7;
  --body: #c9c4d4;
  --dim: #948da6;
  --faint: #6e6880;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-soft: rgba(139, 92, 246, .13);
  --accent-line: rgba(139, 92, 246, .38);
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 16px;
  --font-ui: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Clash Display", var(--font-ui);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* z-scale: dropdown < sticky < backdrop < modal < toast */
  --z-sticky: 10; --z-backdrop: 40; --z-modal: 50; --z-toast: 60;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 28px -8px rgba(0,0,0,.55);
  --shadow-pop: 0 24px 80px -16px rgba(0,0,0,.7), 0 0 0 1px var(--border);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Ambient glow — one fixed wash, quiet enough to ignore */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 420px at 12% -8%, rgba(139,92,246,.13), transparent 62%),
    radial-gradient(640px 360px at 94% -4%, rgba(167,139,250,.07), transparent 58%);
}

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 28px 28px 72px; }

::selection { background: rgba(139,92,246,.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Brand ─────────────────────────────────────────────── */
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 19px; letter-spacing: .01em; color: var(--text);
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, #7c4ef0, #a78bfa);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 2px 10px rgba(139,92,246,.35), inset 0 1px 0 rgba(255,255,255,.22);
}

/* ── Auth ──────────────────────────────────────────────── */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 1; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px 32px;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-pop);
}
.card h1 {
  margin: 26px 0 8px;
  font-family: var(--font-display);
  font-size: 27px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text);
  text-wrap: balance;
}
.card .sub { color: var(--dim); font-size: 14px; margin: 0 0 26px; line-height: 1.55; }

label { display: block; font-size: 12.5px; font-weight: 500; color: var(--dim); margin: 0 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 11px 13px; margin-bottom: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
input::placeholder { color: #837c96; }
input:hover { border-color: var(--border-strong); }
input:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #9163f8, #7c4ef0);
  color: #fff; width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #9c73f9, #8659f2); box-shadow: 0 4px 16px -4px rgba(139,92,246,.5), inset 0 1px 0 rgba(255,255,255,.18); }

.btn-ghost { background: transparent; color: var(--dim); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }

.switch { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--dim); }
.switch a { color: var(--accent-light); font-weight: 500; text-decoration: none; cursor: pointer; }
.switch a:hover { text-decoration: underline; }

.msg { padding: 11px 13px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 16px; line-height: 1.45; }
.msg-error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.28); color: #fca5a5; }
.msg-ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.26); color: #86efac; }

/* ── App shell ─────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  gap: 16px; flex-wrap: wrap;
}
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); }

.quota-pill {
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-light);
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.quota-pill:hover { background: rgba(139,92,246,.2); }
.quota-pill.full { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: #fca5a5; }

/* ── Mode tabs — segmented control ─────────────────────── */
.tabs {
  display: inline-flex; gap: 3px; margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 3px;
}
.tab {
  padding: 8px 18px; border-radius: 8px; border: 0;
  background: transparent; color: var(--dim);
  font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }

/* ── Live ──────────────────────────────────────────────── */
.live-start { display: flex; gap: 10px; flex-wrap: wrap; }
.live-start input { margin: 0; flex: 1; min-width: 260px; }
.hint { color: var(--faint); font-size: 12.5px; line-height: 1.6; margin: 12px 0 0; max-width: 68ch; }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: 8px; vertical-align: middle;
  animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Watch: player + chat ──────────────────────────────── */
.watch {
  display: grid; grid-template-columns: 1fr 300px; gap: 12px;
  margin: 16px 0 6px;
  align-items: start;   /* chat must not stretch the row */
}
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.chatbox {
  display: flex; flex-direction: column;
  height: clamp(260px, 38vw, 420px);   /* hard bound; feed scrolls inside */
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.chatbox-head {
  padding: 10px 13px; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--border); flex: none;
}
.chatfeed {
  flex: 1; min-height: 0;              /* the line that makes a flex child scroll */
  overflow-y: auto; padding: 9px 12px;
  font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere;
  overscroll-behavior: contain;
}
.chatfeed::-webkit-scrollbar { width: 8px; }
.chatfeed::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.chatfeed::-webkit-scrollbar-track { background: transparent; }
.cmsg { padding: 2px 0; color: var(--body); }
.cmsg b { color: var(--accent-light); font-weight: 600; margin-right: 5px; }
.chatempty { color: var(--faint); font-size: 12px; padding: 10px 2px; }

.chatstate { font-size: 12px; color: var(--dim); margin-top: 12px; display: flex; align-items: center; gap: 7px; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.chatchip {
  font-size: 11px; color: var(--accent-light);
  background: var(--accent-soft); padding: 2px 7px; border-radius: 999px;
  margin-left: 6px; white-space: nowrap;
}

/* ── Dropzone ──────────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.012);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(139,92,246,.05); }
.dropzone.disabled { opacity: .45; cursor: not-allowed; border-style: solid; }
.dropzone h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--text); }
.dropzone p { margin: 0; color: var(--dim); font-size: 13px; }
.dz-icon { font-size: 28px; margin-bottom: 12px; }

.opts { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.opts input[type=text] { margin: 0; flex: 1; min-width: 220px; }

.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.bar > i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s var(--ease);   /* compositor-only progress */
}

/* ── Sections / cards ──────────────────────────────────── */
h2.section {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--faint); margin: 36px 0 14px;
}
.empty {
  color: var(--dim); font-size: 13.5px; padding: 26px 20px; text-align: center;
  border: 1.5px dashed var(--border); border-radius: var(--r-md);
  background: rgba(255,255,255,.008);
}

.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 14px;
  box-shadow: var(--shadow-1);
  transition: border-color .18s var(--ease);
}
.job:has(.player) { border-color: var(--border-strong); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.job-name { font-weight: 650; font-size: 15px; color: var(--text); word-break: break-word; }
.job-meta { color: var(--dim); font-size: 12.5px; margin-top: 3px; }

.tag {
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.tag-queued  { background: rgba(251,191,36,.12); color: #fcd34d; }
.tag-running { background: var(--accent-soft); color: var(--accent-light); }
.tag-done    { background: rgba(52,211,153,.12); color: #6ee7b7; }
.tag-error, .tag-cancelled, .tag-stopped { background: rgba(255,255,255,.06); color: var(--dim); }

/* ── Clip table ────────────────────────────────────────── */
.hl-bar { display: flex; align-items: center; gap: 8px; padding: 14px 2px 10px; }
.hl-selcount { font-size: 12.5px; color: var(--dim); margin-left: auto; font-variant-numeric: tabular-nums; }

.hl-list {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}
/* keep spacing sane when the list renders with no select-bar above it */
.dyn > .hl-list:first-child, .detail > .hl-list:first-child { margin-top: 14px; }

.hl-head {
  display: flex; align-items: center;
  background: var(--surface-3);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--faint);
}
.hh-check { width: 36px; flex: none; }
.hh-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: var(--faint);
  text-align: center; flex: none;
  transition: color .14s var(--ease);
}
.hh-btn:hover { color: var(--text); }
.hh-btn.on { color: var(--accent-light); }
.hh-time { width: 64px; }
.hh-score { width: 80px; }
.hh-src { width: 100px; flex: none; text-align: center; }
.hh-reason { flex: 1; padding-left: 10px; }

.hl {
  display: flex; align-items: center; padding: 9px 12px;
  cursor: pointer; font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background .12s var(--ease);
}
.hl-list .hl:last-child { border-bottom: 0; }
.hl:hover { background: var(--surface-3); }
.hl input {
  accent-color: var(--accent); width: 15px; height: 15px;
  cursor: pointer; flex: none; margin: 0 16px 0 5px;   /* 36px column total */
}
.hl-time {
  font-variant-numeric: tabular-nums; font-weight: 500;
  color: var(--text); width: 64px; flex: none; text-align: center; font-size: 12.5px;
}
.hl-score { width: 80px; flex: none; text-align: center; font-size: 11px; font-weight: 700; color: var(--accent-light); }
.hl-score > i {
  font-style: normal; display: inline-block;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.hl-score.mid > i { color: var(--text); background: rgba(255,255,255,.09); }
.hl-score.low > i { color: var(--dim); background: rgba(255,255,255,.05); }
.hl-src { width: 100px; flex: none; text-align: center; font-size: 10px; font-weight: 500; color: var(--dim); }
.hl-src > i { font-style: normal; display: inline-block; padding: 2.5px 7px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--border); }
.hl-reason {
  flex: 1; min-width: 0; padding-left: 10px; font-size: 11.5px;
  color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Export bar + clips ────────────────────────────────── */
.export-bar { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
select {
  padding: 8px 30px 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-size: 13px; font-family: inherit; font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23948da6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  cursor: pointer;
  transition: border-color .16s var(--ease);
}
select:hover { border-color: var(--border-strong); }
select:focus { outline: none; border-color: var(--accent); }

.clip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 8px; font-size: 13px;
}
.clip a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.clip a:hover { text-decoration: underline; }

.spin {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--accent-light); border-radius: 50%;
  display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Plans dialog ──────────────────────────────────────── */
dialog.plans {
  border: 0; padding: 0; background: transparent;
  max-width: min(920px, calc(100vw - 32px)); width: 100%;
  z-index: var(--z-modal);
}
dialog.plans::backdrop { background: rgba(6,5,10,.72); backdrop-filter: blur(3px); }
.plans-inner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-pop);
  color: var(--body);
  font-family: var(--font-ui);
}
.plans-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.plans-head h2 { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--text); }
.plans-head p { margin: 6px 0 0; color: var(--dim); font-size: 13.5px; }
.plans-close {
  background: none; border: 0; color: var(--faint); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 4px 8px; border-radius: 7px;
  transition: color .14s var(--ease), background .14s var(--ease);
}
.plans-close:hover { color: var(--text); background: var(--surface-2); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 22px; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 0;
}
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(139,92,246,.09), var(--surface-2) 55%); }
.plan-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.plan-current {
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green); background: rgba(52,211,153,.12);
  padding: 2.5px 8px; border-radius: 999px;
}
.plan-price { margin: 12px 0 2px; color: var(--text); }
.plan-price b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; color: var(--dim); }
.plan ul { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--body); }
.plan ul li::before { content: "✓"; color: var(--accent-light); font-weight: 700; margin-right: 9px; }
.plan .btn { margin-top: auto; width: 100%; }

.plans-foot { margin-top: 18px; font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plans-foot a { color: var(--accent-light); cursor: pointer; font-weight: 500; text-decoration: none; }
.plans-foot a:hover { text-decoration: underline; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  z-index: var(--z-toast);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 18px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52,211,153,.4); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .wrap { padding: 18px 16px 56px; }
  .watch { grid-template-columns: 1fr; }
  .chatbox { height: 280px; }
  .hl-reason { display: none; }
  .hh-reason { display: none; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .spin { animation-duration: 1.6s; }
  .btn, .tab, .toast, .bar > i { transition: none; }
}

/* Trial line inside a plan card (shown while the user has no plan) */
.plan-trial {
  font-size: 12px; font-weight: 600; color: var(--green);
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.22);
  padding: 4px 9px; border-radius: 999px; display: inline-block; margin-top: 8px;
}

/* Trial vs pay-now switch (segmented, same vocabulary as the mode tabs) */
.billing-switch {
  display: inline-flex; gap: 3px; margin-top: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 3px;
}
.bsw {
  padding: 8px 16px; border: 0; border-radius: 8px;
  background: transparent; color: var(--dim);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.bsw:hover { color: var(--text); }
.bsw.active { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-1); }
.plan-now {
  font-size: 12px; font-weight: 600; color: var(--accent-light);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 4px 9px; border-radius: 999px; display: inline-block; margin-top: 8px;
}

/* Email-confirmation banner */
.verify-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  background: rgba(251,191,36,.09);
  border: 1px solid rgba(251,191,36,.28);
  color: #fcd34d;
  padding: 11px 15px; border-radius: var(--r-md);
  font-size: 13.5px; margin-bottom: 20px;
}

/* ═══ Onboarding (/start) — Netflix-style stepped plan chooser ═══ */
.start-shell { position: relative; z-index: 1; min-height: 100vh; }
.start-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  max-width: 1120px; margin: 0 auto;
}
.start-main { max-width: 940px; margin: 0 auto; padding: 46px 24px 80px; }

.start-head { text-align: center; margin-bottom: 30px; }
.step-mark {
  width: 46px; height: 46px; margin: 0 auto 18px;
  border: 2px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-light);
}
.step-mark svg { width: 22px; height: 22px; }
.step-count { font-size: 13px; color: var(--dim); margin: 0 0 6px; font-weight: 500; }
.start-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 4vw, 36px); letter-spacing: -.015em;
  color: var(--text); margin: 0 0 18px; text-wrap: balance;
}
.start-points {
  list-style: none; padding: 0; margin: 0 auto; max-width: 44ch;
  display: grid; gap: 8px; text-align: left;
}
.start-points li { font-size: 14px; color: var(--body); display: flex; gap: 10px; }
.start-points li::before { content: "✓"; color: var(--accent-light); font-weight: 700; flex: none; }

.start-main .billing-switch { display: inline-flex; margin: 0 auto 22px; }
.start-main > .billing-switch { display: flex; width: fit-content; }

/* Plan comparison cards */
.plan-compare {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; align-items: start;
}
.pcard {
  display: flex; flex-direction: column; gap: 0;
  text-align: left; font-family: inherit; cursor: pointer;
  background: var(--surface); color: var(--body);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 0 0 16px; overflow: hidden;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}
.pcard:hover { border-color: var(--border-strong); }
.pcard.on { border-color: var(--accent); background: var(--surface-2); }
.pcard-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #6d3fe0, #a78bfa);
  color: #fff;
}
.pcard-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pcard-tick {
  width: 21px; height: 21px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.24); display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.pcard-rows { display: block; padding: 4px 18px 0; }
.prow {
  display: block; padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.pcard-rows .prow:last-child { border-bottom: 0; }
.prow-k { display: block; font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.prow-v { display: block; font-size: 13.5px; color: var(--text); font-weight: 500; }
.prow-price { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pcard-trial {
  margin: 12px 18px 0; padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; text-align: center;
  color: var(--green); background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.22);
}

.start-actions { margin-top: 30px; text-align: center; }
.start-actions .btn { min-width: 260px; width: auto; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.start-fine { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }

@media (max-width: 700px) {
  .start-main { padding: 30px 16px 60px; }
  .start-actions .btn { width: 100%; min-width: 0; }
}

/* "Billed today" marker on plans with no trial */
.pcard-now {
  margin: 12px 18px 0; padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; text-align: center;
  color: var(--accent-light); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.pcard-trial { line-height: 1.35; }
