/* Shortlisted — one stylesheet, no framework, no build step.
   Dark by default because the app is used at night, before interviews. */

:root {
  --bg: #0d1117;
  --panel: #151b23;
  --line: #232c38;
  --text: #e6edf3;
  --muted: #9198a1;
  --accent: #4c9aff;
  --accent-soft: rgba(76, 154, 255, 0.12);
  --good: #3fb950;
  --radius: 12px;
  --max: 1040px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: #f6f8fa;
    --line: #d8dee4;
    --text: #1f2328;
    --muted: #59636e;
    --accent-soft: rgba(76, 154, 255, 0.1);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { font-weight: 650; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.brand span { color: var(--muted); font-weight: 400; }
header.site nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 550; font-size: 15px; border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ---- hero ---- */
.hero { padding: 88px 0 64px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.1;
  letter-spacing: -0.03em; margin: 0 0 20px; max-width: 16ch;
}
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---- sections ---- */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; }
section p.sub { color: var(--muted); margin: 0 0 36px; max-width: 62ch; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- pricing ---- */
.prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
}
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price .tag {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 10px; min-height: 16px;
}
.price .amount { font-size: 34px; font-weight: 650; letter-spacing: -0.02em; }
.price .per { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.price li { padding: 5px 0 5px 22px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--good); }
.price .btn { margin-top: auto; text-align: center; }

/* ---- privacy call-out ---- */
.callout {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.callout h3 { margin: 0 0 10px; }
.callout p { margin: 0; color: var(--muted); }

/* ---- docs ---- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0; }
.doc aside { position: sticky; top: 86px; align-self: start; }
.doc aside h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 22px 0 8px;
}
.doc aside a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.doc aside a:hover, .doc aside a.active { color: var(--accent); }
.doc article h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc article h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc article h3 { font-size: 17px; margin: 28px 0 8px; }
.doc article p, .doc article li { color: var(--text); }
.doc article code {
  background: var(--panel); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px; font-size: 14px;
}
.doc article pre {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; overflow-x: auto; font-size: 14px;
}
.doc article pre code { border: 0; padding: 0; background: none; }
.doc article table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.doc article th, .doc article td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc article th { background: var(--panel); }
.tip {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0;
}
.warn { border-left-color: #d29922; background: rgba(210, 153, 34, 0.1); }

/* ---- faq ---- */
details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
details summary { cursor: pointer; font-weight: 550; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "＋ "; color: var(--accent); }
details[open] summary::before { content: "－ "; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 28px; }
footer.site h5 { color: var(--text); font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; }
footer.site a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
footer.site a:hover { color: var(--text); }

@media (max-width: 760px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .doc aside { position: static; }
  header.site nav { gap: 14px; }
  header.site nav a.hide-sm { display: none; }
}
