/* VidSkill — design system. Single accent color, generous whitespace, sharp type. */

:root {
  --ember: #ff4d00;
  --ember-soft: #ffe3d4;
  --ink: #0b0b0f;
  --ink-2: #1b1b22;
  --ink-3: #3a3a44;
  --paper: #fcfcfd;
  --paper-2: #f4f4f6;
  --border: #e5e5ec;
  --muted: #6b6b75;
  --green: #0aa860;
  --yellow: #d98900;
  --orange: #e05a00;
  --red: #c0392b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(11, 11, 15, 0.05);
  --shadow-hover: 0 8px 28px rgba(11, 11, 15, 0.09);
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------- header --------------------------------- */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 252, 253, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .dot { color: var(--ember); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-3); }
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--ember); text-decoration: none; }
/* Higher-specificity selector so .nav-links a { color: inherit } doesn't win. */
.nav-links a.nav-cta {
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background 120ms ease;
}
.nav-links a.nav-cta:hover {
  background: var(--ember);
  color: var(--paper);
  text-decoration: none;
}

/* --------------------------------- hero --------------------------------- */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 10%, rgba(255, 77, 0, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ember); background: var(--ember-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--ember); }
.hero-sub {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 600px;
  margin: 0 0 40px;
}
.hero-sub ul { padding: 0 0 0 22px; margin: 8px 0 0; }
.hero-sub li { margin: 4px 0; }

/* url input */
.url-form {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  max-width: 640px;
}
.url-form:focus-within {
  border-color: var(--ember);
  box-shadow: var(--shadow-hover);
}
.url-form input[type="url"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px 14px;
  background: transparent;
  font-family: var(--font-ui);
  color: var(--ink);
  min-width: 0;
}
.url-form button {
  border: none;
  background: var(--ember);
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: calc(var(--radius) - 6px);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: transform 0.08s ease, background 0.15s ease;
  white-space: nowrap;
}
.url-form button:hover { background: #e64400; }
.url-form button:active { transform: scale(0.98); }
.url-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.url-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* --------------------------------- sections --------------------------------- */
section.block { padding: 72px 0; border-top: 1px solid var(--border); }
section.block h2 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  font-weight: 700;
}
section.block .lede {
  color: var(--ink-3);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 40px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.12s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--ink-3); margin: 0; font-size: 15px; }

/* target logos row */
.target-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.target-pill {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 500;
}

/* --------------------------------- compile page --------------------------------- */
.progress-page {
  min-height: 60vh;
  padding: 72px 0;
}
.progress-bar {
  height: 10px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 24px 0;
}
.progress-bar .fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ember) 0%, #ff7a3d 100%);
  transition: width 0.4s ease;
}
.stage-list { list-style: none; padding: 0; margin: 32px 0; }
.stage-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
}
.stage-list li:last-child { border-bottom: none; }
.stage-list li .bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
}
.stage-list li.active { color: var(--ink); font-weight: 500; }
.stage-list li.active .bullet { background: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.stage-list li.done { color: var(--ink); }
.stage-list li.done .bullet { background: var(--green); }

.counters { display: flex; gap: 32px; margin: 24px 0; flex-wrap: wrap; }
.counter { display: flex; flex-direction: column; }
.counter .num { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.counter .lbl { color: var(--muted); font-size: 13px; }

/* --------------------------------- result page --------------------------------- */
.result-hero { padding: 48px 0 16px; }
.result-hero h1 { margin: 0 0 8px; font-size: 36px; letter-spacing: -0.015em; }
.result-hero .meta { color: var(--muted); font-size: 14px; }

.brief-md {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.brief-md h1 { font-size: 24px; margin-top: 0; }
.brief-md h2 { font-size: 20px; margin-top: 28px; letter-spacing: -0.01em; }
.brief-md h3 { font-size: 17px; margin-top: 24px; }
.brief-md blockquote {
  border-left: 3px solid var(--ember);
  margin: 16px 0;
  padding: 4px 0 4px 16px;
  color: var(--ink-2);
  font-style: italic;
}
.brief-md code, .brief-md pre { font-family: var(--font-mono); font-size: 14px; }

/* platform picker */
.picker {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 32px 0 16px;
}
.picker label { font-weight: 500; color: var(--ink-2); }
.picker select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.btn {
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.15s ease, transform 0.08s ease;
}
.btn:hover { background: var(--ember); }
.btn:active { transform: scale(0.97); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--paper-2); color: var(--ink); }

/* skill card */
.skill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.skill-card.dep-green  { border-left-color: var(--green); }
.skill-card.dep-yellow { border-left-color: var(--yellow); }
.skill-card.dep-orange { border-left-color: var(--orange); }
.skill-card.dep-red    { border-left-color: var(--red); }

.skill-card header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 12px;
}
.skill-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.skill-card .desc { color: var(--ink-3); margin: 0 0 12px; }
.skill-card .dep-badge {
  white-space: nowrap;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.skill-card pre {
  background: var(--ink);
  color: #f4f4f6;
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
  max-height: 320px;
  overflow-y: auto;
}
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.copy-row .copied { color: var(--green); font-size: 13px; opacity: 0; transition: opacity 0.2s; }
.copy-row .copied.show { opacity: 1; }

/* --------------------------------- footer --------------------------------- */
footer.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin-top: 72px;
}
.site-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.popular {
  border-color: var(--ember);
  box-shadow: 0 0 0 1px var(--ember), var(--shadow);
}
.price-card .tag {
  position: absolute; top: -12px; right: 16px;
  background: var(--ember); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  font-weight: 500; letter-spacing: 0.02em;
}
.price-card .name { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.price-card .price { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.price-card .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--ink-2); }
.price-card ul li { padding: 6px 0; display: flex; align-items: start; gap: 8px; }
.price-card ul li::before { content: "✓"; color: var(--green); font-weight: 700; }
.price-card .btn { margin-top: auto; text-align: center; }

/* --------------------------------- auth modal --------------------------------- */
dialog.modal {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(11, 11, 15, 0.28);
  max-width: 420px;
  width: calc(100% - 40px);
  background: var(--paper);
  color: var(--ink);
}
dialog.modal::backdrop {
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(4px);
}
.modal-body {
  padding: 36px 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-body h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.modal-body .muted { color: var(--muted); margin: 0; }
.modal-body .tiny  { font-size: 12.5px; }
.modal-close-form {
  position: absolute; top: 8px; right: 8px; margin: 0;
}
.modal-close {
  background: transparent; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 22px; line-height: 1; color: var(--muted);
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack input[type="email"] {
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
  outline: none;
}
.stack input[type="email"]:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--ember-soft);
}
.btn {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  transition: background 120ms ease;
}
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #e04400; }
.btn-primary:disabled { background: var(--ink-3); cursor: wait; }
.btn-secondary {
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--ember); text-decoration: none; }

.sent-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #eefbf3;
  color: var(--green);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  width: fit-content;
}
.auth-error {
  background: #fdecea;
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.linklike {
  background: none; border: none; cursor: pointer;
  color: var(--ember);
  padding: 0;
  font: inherit;
  text-align: left;
}
.linklike:hover { text-decoration: underline; }

.dev-shortcut {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--paper-2);
  display: flex; flex-direction: column; gap: 8px;
}
.dev-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.logout-form { margin: 0; display: inline; }
[hidden] { display: none !important; }
