/* RepairCV shared styles: tokens, nav, buttons, cards, footer. */
:root {
  color-scheme: dark;
  --bg: #0B0B0C;
  --bg-2: #111113;
  --bg-3: #17171A;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --ink: #F2F2EE;
  --muted: #9C9C95;
  --accent: #C8F135;
  --accent-hover: #D6F85A;
  --accent-ink: #0B0B0C;
  --accent-glow: rgba(200,241,53,0.16);
  --danger: #FF6B6B;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding-inline: 20px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11,11,12,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: inline-grid; place-items: center; flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user { font-family: var(--font-mono); font-size: 12px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding-inline: 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* Type helpers */
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 10px 0 0; text-wrap: balance; }
.sub { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 60ch; margin: 14px 0 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Cards */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-glass { background: rgba(17,17,19,0.58); border: 1px solid var(--line-strong); border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 80px rgba(0,0,0,0.55); }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 10px; color: var(--muted); white-space: nowrap; }
.chip-accent { border-color: var(--accent); color: var(--accent); }

/* Score rows (shared by hero card and result page) */
.rows { display: grid; gap: 14px; }
.row { display: grid; gap: 7px; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-name { font-weight: 600; font-size: 15px; }
.score { font-family: var(--font-mono); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.score small { font-size: 12px; color: var(--muted); font-weight: 400; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: #6B6B66; }
.bar i.a { background: var(--accent); }
.bar i.b { background: #E8E8E2; }
.row-note { font-size: 13px; color: var(--muted); }
.locked { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: rgba(255,255,255,0.03); }
.locked-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.locked-head svg { flex: none; }
.locked-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forms */
.field { display: grid; gap: 6px; }
.label { font-size: 14px; font-weight: 600; }
.help { font-size: 13px; color: var(--muted); }
.input, .select { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-3); color: var(--ink); font-family: var(--font-body); font-size: 15px; }
.input::placeholder { color: #6B6B66; }
.input:focus, .select:focus { border-color: var(--accent); outline: none; }
.notice { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-3); font-size: 14px; }
.notice-danger { border-color: rgba(255,107,107,0.5); color: var(--danger); }
.notice-accent { border-color: rgba(200,241,53,0.5); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 36px 44px; }
.footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-user { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
