/* Sudobid — black + signal-green + greys. Nick's palette.
   Dark only. Outfit display / Inter body. Green is a rare signal (terminal-green
   meets market-green), never decoration. Composed layout: 2-col hero + ops console,
   credibility band, card grid, fee module. Restraint carries the professionalism. */
:root {
  --bg: #0a0a0a;
  --surface: #0d0d0d;
  --panel: #0d0d0d;
  --card: #121212;
  --card-hover: #161616;
  --border: #242424;
  --line: #1a1a1a;
  --hairline: #151515;
  --text: #f4f4f4;
  --body: #cfcfcf;
  --dim: #8f8f8f;
  --muted: #6a6a6a;
  --green: #00ff64;
  --green-dim: #00d152;
  --green-ink: #05130a;
  --green-soft: rgba(0, 255, 100, 0.1);
  --radius: 6px;
  --wrap: 72rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .mark, .price { font-family: 'Outfit', 'Inter', sans-serif; color: var(--text); letter-spacing: -0.02em; }

::selection { background: rgba(0, 255, 100, 0.22); color: #fff; }

a { color: var(--green); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px;
}

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

.eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--green);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 1.4rem; height: 1px;
  background: var(--green); vertical-align: middle; margin-right: 0.7rem; opacity: 0.9;
}

.btn {
  display: inline-block; background: var(--green); color: var(--green-ink);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em;
  padding: 0.85rem 1.7rem; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background 140ms ease;
}
.btn:hover { background: #fff; color: #000; }

/* ---------- nav ---------- */
nav { border-bottom: 1px solid var(--line); background: rgba(10,10,10,0.86); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
nav .bar { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; gap: 1rem; flex-wrap: wrap; }
nav .mark { font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
nav .mark::after { content: "."; color: var(--green); }
nav .mark span { color: var(--green); }
nav .links { display: flex; align-items: center; gap: 1.9rem; font-size: 0.92rem; }
nav .links a.plain { color: var(--dim); font-weight: 500; }
nav .links a.plain:hover, nav .links a.plain[aria-current] { color: var(--text); }
nav .links .btn { padding: 0.55rem 1.15rem; font-size: 0.88rem; }
@media (max-width: 640px) { nav .links { gap: 1.1rem; } nav .links a.plain { display: none; } }

/* ---------- hero (base, interior pages) ---------- */
.hero { padding: 6rem 0 4.5rem; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; line-height: 1.05; max-width: 18ch; margin: 1.3rem 0 1.5rem; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .sub { font-size: 1.14rem; color: var(--dim); max-width: 42rem; margin-bottom: 2.2rem; line-height: 1.6; }
.hero .cta-note { display: block; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- hero-lead (home, 2-col with console) ---------- */
.hero-lead { position: relative; overflow: hidden; padding: 5.5rem 0 5rem; }
.hero-lead::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 55%; height: 90%;
  background: radial-gradient(closest-side, rgba(0,255,100,0.07), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; align-items: center; position: relative; }
.hero-copy h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.04; margin: 1.25rem 0 1.4rem; max-width: 14ch; }
.hero-copy h1 em { font-style: normal; color: var(--green); }
.hero-copy .sub { font-size: 1.1rem; color: var(--dim); margin-bottom: 2rem; line-height: 1.6; max-width: 34rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.hero-actions .cta-note { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy h1 { max-width: 18ch; }
}

/* ---------- ops console (hero signature) ---------- */
.console {
  background: var(--panel); border: 1px solid #222; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,255,100,0.04);
  font-size: 0.9rem;
}
.console-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: #0b0b0b; }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: #2b2b2b; }
.console-title { margin-left: 0.5rem; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.04em; font-family: 'Outfit', sans-serif; }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--green); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; font-family: 'Outfit', sans-serif; }
.console-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2.2s ease-in-out infinite; }
.console-body { padding: 0.35rem 0; }
.cline { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 0.9rem; align-items: center; padding: 0.55rem 1.1rem; border-bottom: 1px solid #121212; }
.cline:last-of-type { border-bottom: none; }
.ct { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; font-family: 'Outfit', sans-serif; font-size: 0.82rem; }
.cd { color: var(--dim); font-size: 0.9rem; }
.pill { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-family: 'Outfit', sans-serif; padding: 0.22rem 0.5rem; border-radius: 4px; white-space: nowrap; }
.pill.done { color: var(--green); background: var(--green-soft); }
.pill.hold { color: #c2c2c2; background: #1d1d1d; }
.cfoot { display: flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.1rem 0.7rem; color: var(--muted); font-size: 0.78rem; border-top: 1px solid var(--line); margin-top: 0.2rem; }
.cursor { width: 8px; height: 14px; background: var(--green); display: inline-block; animation: blink 1.1s step-end infinite; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 520ms cubic-bezier(0.16,0.84,0.44,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 60ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 120ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 180ms; }
  .console { animation: rise 640ms cubic-bezier(0.16,0.84,0.44,1) 140ms both; }
  .hero:not(.hero-lead) > .wrap > * { animation: rise 480ms ease both; }
}
@media (prefers-reduced-motion: reduce) { .cursor, .console-live::before { animation: none; } }

/* ---------- credibility band ---------- */
.credstrip { border-bottom: 1px solid var(--line); background: var(--surface); }
.credstrip-inner { display: flex; align-items: center; gap: 1.75rem; padding: 1.5rem 1.75rem; flex-wrap: wrap; }
.cred-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-family: 'Outfit', sans-serif; }
.cred-names { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.cred-names span { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.02rem; color: #d6d6d6; letter-spacing: 0.01em; }
.cred-note { margin-left: auto; color: var(--dim); font-size: 0.9rem; }
@media (max-width: 720px) { .cred-note { margin-left: 0; width: 100%; } }

/* ---------- sections ---------- */
section { padding: 5rem 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--surface); }
.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: 1rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.12; margin-bottom: 1rem; }
h2 em { font-style: normal; color: var(--green); }
.section-lead { color: var(--dim); font-size: 1.08rem; max-width: 46rem; margin-top: 0.75rem; }
.prose { max-width: 46rem; color: var(--dim); font-size: 1.06rem; }
.prose p + p { margin-top: 1.05rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose h3 { font-size: 1.18rem; margin: 2.1rem 0 0.5rem; color: var(--text); }

/* ---------- shift log (used on interior/proof context) ---------- */
.shiftlog { margin-top: 2.25rem; border-left: 1px solid var(--border); max-width: 46rem; }
.shiftlog .row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.4rem; padding: 0.6rem 0 0.6rem 1.4rem; }
.shiftlog .t { color: var(--green); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.shiftlog .d { color: var(--dim); }
.shiftlog .d strong { color: var(--text); font-weight: 600; }
.shiftlog-kicker { margin-top: 1.7rem; color: var(--text); font-weight: 500; max-width: 46rem; }

/* ---------- levers (card grid) ---------- */
.levers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lever { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.9rem 1.7rem; transition: border-color 160ms ease, background 160ms ease; }
.lever:hover { border-color: #333; background: var(--card-hover); }
.lever-tag { display: inline-block; font-family: 'Outfit', sans-serif; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--green); background: var(--green-soft); padding: 0.25rem 0.55rem; border-radius: 4px; margin-bottom: 1.1rem; }
.lever h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.lever p { color: var(--dim); font-size: 0.96rem; }
@media (max-width: 760px) { .levers { grid-template-columns: 1fr; } }

/* ---------- fee module (signature) ---------- */
.fee, .rail { margin-top: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--card); }
.rail { margin-top: 2.5rem; }
.fee .rung { display: grid; grid-template-columns: 13rem 1fr auto; gap: 1.75rem; align-items: center; padding: 1.7rem 1.9rem; border-bottom: 1px solid var(--line); transition: background 140ms ease; }
.fee .rung:hover { background: var(--card-hover); }
.rail .rung { display: grid; grid-template-columns: 13rem 1fr; gap: 1.75rem; padding: 1.9rem; border-bottom: 1px solid var(--line); }
.fee .rung:last-child, .rail .rung:last-child { border-bottom: none; }
.rung .price { font-size: 1.4rem; font-weight: 700; color: var(--green); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rung .price small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Inter', sans-serif; margin-top: 0.4rem; }
.rung h3 { font-size: 1.14rem; margin-bottom: 0.4rem; }
.rung p { color: var(--dim); font-size: 0.98rem; }
.rung p + p { margin-top: 0.5rem; }
.rung .fine { font-size: 0.9rem; color: var(--muted); }
.rung a.more { font-size: 0.95rem; font-weight: 500; }
.rung-cta { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.rung-tag { font-family: 'Outfit', sans-serif; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); border: 1px solid rgba(0,255,100,0.3); padding: 0.28rem 0.55rem; border-radius: 4px; white-space: nowrap; }
@media (max-width: 720px) {
  .fee .rung, .rail .rung { grid-template-columns: 1fr; gap: 0.55rem; padding: 1.5rem; }
  .rung-cta, .rung-tag { justify-self: start; }
}

/* ---------- cta band ---------- */
.cta-band { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 8px; padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 1.5rem; }
.cta-band p { color: var(--dim); margin-top: 0.4rem; }

/* ---------- form ---------- */
.mini-form { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 2.1rem; margin-top: 2.25rem; max-width: 46rem; }
.mini-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .mini-form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--dim); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: inherit; font-size: 0.95rem; padding: 0.7rem 0.85rem; transition: border-color 120ms ease; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-error { color: #ff5a4d; font-size: 0.9rem; margin-top: 0.75rem; display: none; }
.form-done { display: none; padding: 1rem 0; }
.form-done h3 { color: var(--green); font-size: 1.25rem; margin-bottom: 0.4rem; }
.form-done p { color: var(--dim); }
.demo-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- steps ---------- */
.steps { margin-top: 2.25rem; max-width: 46rem; display: grid; gap: 1.1rem; }
.step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.1rem; }
.step .n { width: 2rem; height: 2rem; border-radius: var(--radius); border: 1px solid var(--border); color: var(--green); font-family: 'Outfit', sans-serif; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.step p { color: var(--dim); }
.step strong { color: var(--text); }

/* ---------- footer ---------- */
footer { padding: 3.5rem 0 4.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
footer .mark { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text); font-size: 1.1rem; }
footer .mark::after { content: "."; color: var(--green); }
footer p { margin-top: 0.5rem; max-width: 30rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--dim); font-weight: 500; }
.footer-links a:hover { color: var(--text); }
