/* cillr — shared design system
   Pure black · off-white text · thin borders · mono labels · single amber accent */

:root {
  --bg: #000000;
  --bg-soft: #060606;
  --card: rgba(255, 255, 255, 0.014);
  --card-hover: rgba(255, 255, 255, 0.03);
  --fg: #ededed;
  --fg-dim: #b8b8b8;
  --muted: #7c7c7c;
  --muted-2: #565656;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #c9f24e;
  --accent-dim: rgba(201, 242, 78, 0.16);
  --accent-line: rgba(201, 242, 78, 0.42);
  --green: #00c805;
  --red: #f0857a;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.label--accent { color: var(--accent); }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(40px, 7vw, 78px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 21px; letter-spacing: -0.02em; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.dim { color: var(--muted); }
.lead { font-size: 18px; color: var(--fg-dim); line-height: 1.6; max-width: 62ch; }
.mono { font-family: var(--mono); }
.section-head { margin-bottom: 44px; }
.section-head .label { display: block; margin-bottom: 16px; }
.section-head h2 { max-width: 18ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.03em; font-size: 18px; }
.brand:hover .mark { box-shadow: inset 0 0 0 1px var(--accent-line); }
.mark {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  background: #000 url("mark.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow .2s;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14px; color: var(--fg-dim); padding: 7px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--card-hover); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-x { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--fg-dim); transition: .15s; }
.icon-x:hover { border-color: var(--line-strong); color: var(--fg); }
.icon-x svg { width: 15px; height: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 14px; font-weight: 550; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  transition: .16s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); background: var(--card-hover); }
.btn--primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn--primary:hover { background: #fff; color: #000; }
.btn--accent { background: var(--accent); color: #10180a; border-color: var(--accent); }
.btn--accent:hover { background: #d9ff6b; }
.btn--ghost { border-color: transparent; }
.btn--sm { padding: 7px 15px; font-size: 13px; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 26px;
  transition: border-color .2s, background .2s;
}
.card--hover:hover { border-color: var(--line-strong); background: var(--card-hover); }
.card .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  display: inline-block;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--fg-dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; text-transform: lowercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,200,5,.55); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125,212,143,.5);} 70%{ box-shadow: 0 0 0 6px rgba(125,212,143,0);} 100%{ box-shadow:0 0 0 0 rgba(125,212,143,0);} }

/* ---------- CA pill ---------- */
.ca-pill {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 16px;
  font-family: var(--mono); font-size: 13px; color: var(--fg-dim);
  background: var(--card); max-width: 100%;
}
.ca-pill .ca-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-pill .ca-label { color: var(--muted); }
.copy-btn {
  border: 1px solid var(--line); background: transparent; color: var(--fg-dim);
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  flex: 0 0 auto; transition: .15s;
}
.copy-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table td.k { color: var(--muted); width: 34%; }
.table td.v { color: var(--fg); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.table a.ext { color: var(--fg-dim); border-bottom: 1px solid var(--line); }
.table a.ext:hover { color: var(--accent); border-color: var(--accent-line); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-wrap .table tr:last-child td { border-bottom: none; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; background: none; border: none; color: var(--fg); text-align: left; padding: 22px 4px; font-size: 17px; font-weight: 500; }
.faq-q:hover { color: var(--accent); }
.faq-q .pm { flex: 0 0 auto; color: var(--muted); font-family: var(--mono); transition: transform .2s; }
.faq-item.open .pm { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 22px; color: var(--fg-dim); max-width: 70ch; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--fg); font-family: var(--sans); font-size: 15px; padding: 11px 13px; transition: border-color .15s;
}
.input.mono { font-family: var(--mono); font-size: 13px; }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237c7c7c' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--accent); }

/* ---------- Code ---------- */
pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; margin: 18px 0; }
code { font-family: var(--mono); font-size: 13px; }
:not(pre) > code { background: var(--card-hover); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; font-size: 0.88em; color: var(--fg-dim); }
pre code { color: var(--fg-dim); line-height: 1.6; }
.tok-c { color: var(--muted-2); }
.tok-k { color: var(--accent); }
.tok-s { color: var(--green); }
.tok-f { color: #9fc7ff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--fg-dim); font-size: 14px; }
.footer li a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 14px 0 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.footer-bottom .foot-links { display: flex; gap: 18px; }
.footer-bottom .foot-links a:hover { color: var(--fg); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg); padding: 30px; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--fg-dim); font-size: 15px; }

/* ---------- Utility ---------- */
.tcenter { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pill-stat { font-family: var(--mono); }
.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }
.hide-sm { }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: #000; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 550;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .steps, .field-row, .footer-top { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .footer-top { gap: 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav-right .btn:not(.btn--primary):not(.btn--accent) { display: none; }
}

/* ================= HoodSim — Robinhood green theme (green everywhere, incl. background) ================= */
:root{
  --bg:#dcefb3; --bg-soft:#d1e6a2;
  --card:rgba(255,255,255,.62); --card-hover:rgba(255,255,255,.86);
  --fg:#0c1a00; --fg-dim:#2b4210; --muted:#4f671f; --muted-2:#6f8c34;
  --line:rgba(12,26,0,.20); --line-soft:rgba(12,26,0,.10); --line-strong:rgba(12,26,0,.34);
  --accent:#bcdc11; --accent-dim:rgba(0,200,5,.15); --accent-line:rgba(0,120,3,.5);
  --green:#00a804;
}
body{ background:var(--bg); color:var(--fg); }
::selection{ background:#bcdc11; color:#16220a; }
.nav{ background:rgba(220,239,179,.85) !important; border-bottom:1px solid var(--line) !important; }
.mark{ background:#0c1a00 url("mark.png") center/cover no-repeat !important; }
.btn--primary{ background:#0c1a00 !important; color:#f2ffe9 !important; border-color:#0c1a00 !important; }
.btn--primary:hover{ background:#173100 !important; color:#fff !important; }
.btn--accent{ color:#16220a !important; border-color:rgba(16,34,10,.3) !important; }
.btn--accent:hover{ background:#cbef1f !important; }
.step{ background:var(--card) !important; border:1px solid var(--line); border-radius:var(--radius-sm); }
.tag{ background:#0c1a00 !important; color:#c9f24e !important; }
.badge{ background:var(--card) !important; color:var(--fg-dim) !important; border:1px solid var(--line) !important; }
.footer{ background:var(--bg-soft); }
.ca-pill{ background:var(--card) !important; border:1px solid var(--line) !important; }
