/* NextRole public site — same tokens as the dashboard (dashboard/style.css). */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --sunken: #eef2f0;
  --hover: #f0f4f2;
  --ink: #13201c;
  --ink-2: #33433e;
  --muted: #5a6b65;
  --line: #dfe6e3;
  --line-strong: #c9d3cf;
  --accent: #0f7a64;
  --accent-hover: #0b6653;
  --accent-soft: #dff1eb;
  --accent-ink: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --crit: #b91c1c;
  --crit-soft: #fee2e2;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --ai: #6d28d9;
  --ai-soft: #ede9fe;
  --li: #0a66c2;
  --js: #d6006e;
  --scrim: rgba(19, 32, 28, .45);
  --shadow-sm: 0 1px 2px rgba(19, 32, 28, .06);
  --shadow: 0 1px 2px rgba(19, 32, 28, .05), 0 10px 30px rgba(19, 32, 28, .08);
  --font-ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%230f7a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1311; --surface: #131c19; --sunken: #18231f; --hover: #1b2723; --ink: #e6eeeb; --ink-2: #c3d0cb; --muted: #94a59f;
    --line: #25322d; --line-strong: #33433d; --accent: #3cc9a5; --accent-hover: #5bd6b6; --accent-soft: #143a31; --accent-ink: #06231c;
    --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2c0c; --crit: #f87171; --crit-soft: #3d1717;
    --info: #93c5fd; --info-soft: #172a45; --ai: #c4b5fd; --ai-soft: #2a2145; --li: #4ea1f3; --js: #ff5aa8;
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%233cc9a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --scrim: rgba(0, 0, 0, .6); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1311; --surface: #131c19; --sunken: #18231f; --hover: #1b2723; --ink: #e6eeeb; --ink-2: #c3d0cb; --muted: #94a59f;
  --line: #25322d; --line-strong: #33433d; --accent: #3cc9a5; --accent-hover: #5bd6b6; --accent-soft: #143a31; --accent-ink: #06231c;
  --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2c0c; --crit: #f87171; --crit-soft: #3d1717;
  --info: #93c5fd; --info-soft: #172a45; --ai: #c4b5fd; --ai-soft: #2a2145; --li: #4ea1f3; --js: #ff5aa8;
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%233cc9a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --scrim: rgba(0, 0, 0, .6); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { text-wrap: balance; color: var(--ink); }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.mono, .num, .price-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--sunken); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 13.5px; color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-align: center; padding: 10px 16px; border-radius: var(--r-md); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.big { padding: 13px 20px; font-size: 16px; }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn .price-num { font-weight: 600; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; line-height: 1; }

/* ---------- Board chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid currentColor; background: transparent; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.li { color: var(--li); }
.chip.js { color: var(--js); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.nav nav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.lang-switch button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--accent); color: var(--accent-ink); cursor: default; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
h1 { font-size: 48px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -.025em; font-weight: 800; }
.lead { font-size: 18.5px; color: var(--ink-2); margin: 0 0 18px; max-width: 34em; }
.points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) var(--check) center/12px no-repeat; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* Mock "today" card */
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; overflow: hidden; }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hc-title { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hc-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hc-count b { color: var(--ink); font-weight: 600; }
.hc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.hc-job { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-job strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; min-width: 0; }
.hc-meta .co { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-status { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hc-status time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.ai { background: var(--ai-soft); color: var(--ai); }
.hc-row.ai .hc-job strong { font-weight: 500; color: var(--ink-2); }
.hc-row.ai .ans { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.hc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--sunken); color: var(--muted); font-size: 13px; }
.hc-foot .mono { font-size: 12.5px; }
.hc-sites { display: flex; gap: 12px; flex-wrap: wrap; }
.hc-sites span { display: inline-flex; align-items: center; gap: 6px; }
.hc-sites .mono { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.kicker { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
h2 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .num { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.step h3, .feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 15px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 20px; height: 20px; }
.feature .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.pricing .section-head { margin-bottom: 0; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pay span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.pc-name { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.pc-price { font-family: var(--font-mono); font-size: 48px; font-weight: 600; letter-spacing: -.03em; margin: 6px 0 18px; line-height: 1.1; }
.pc-price small { font-family: var(--font-ui); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.price-card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) var(--check) center/12px no-repeat; }
.price-card li b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* ---------- Sign-up ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.signup > div > p { color: var(--muted); }
.steps, .install { padding-left: 0; list-style: none; counter-reset: li; margin: 20px 0 0; display: grid; gap: 12px; }
.steps li, .install li { counter-increment: li; position: relative; padding: 1px 0 0 40px; min-height: 26px; color: var(--ink-2); }
.steps li::before, .install li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); }
.install li .btn { margin: 0 4px 4px 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input:not([type=checkbox]) { width: 100%; padding: 11px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; }
.form input:not([type=checkbox]):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.form .check input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.err { color: var(--crit); font-size: 14px; min-height: 18px; }
.err:empty { min-height: 0; }

/* ---------- FAQ ---------- */
.faq details { max-width: 780px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); background: var(--surface); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin: 4px 0; }
.doc .note { background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 16px; color: var(--ink); font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .signup, .pricing { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps3, .grid3 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 38px; }
  .nav nav a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 48px; }
  h1 { font-size: 32px; }
  h2 { font-size: 27px; }
  .lead { font-size: 17px; }
  .nav nav { gap: 8px; }
  .nav .btn { padding: 7px 12px; font-size: 13.5px; }
  .nav nav a.btn.ghost:not(:last-child) { display: none; }
  .brand { font-size: 16px; }
  .lang-switch button { padding: 5px 8px; font-size: 11px; }
  .cta .btn { flex: 1 1 100%; }
  .hc-row { padding: 10px 12px; }
  .hc-head, .hc-foot { padding-left: 12px; padding-right: 12px; }
  .hc-foot { flex-direction: column; align-items: flex-start; }
  .pc-price { font-size: 40px; }
  .price-card, .form { padding: 20px; }
  .section { padding: 52px 0; }
  .doc h1 { font-size: 28px; }
  .install li .btn { white-space: normal; }
}

/* NextRole logo artwork (black; the white file is swapped in by <picture> for dark mode) */
.brand-lockup { display: block; width: 132px; height: auto; }
