/* TwinMyOrg — landing + auth. Two-tone system: human = brass, twin = cyan. */
:root {
  --bg: #0e1414;
  --bg-2: #121a1a;
  --panel: #16201f;
  --line: #24312f;
  --line-soft: #1c2827;
  --text: #eaf0ee;
  --muted: #91a4a0;
  --human: #e8b15c;
  --human-deep: #c4913f;
  --twin: #6fd5cf;
  --twin-deep: #3ba39d;
  --danger: #e07a6a;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.wordmark { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark .twin-half { color: var(--twin); }
.wordmark .my { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding: 0 3px; position: relative; top: -1px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-human { background: var(--human); color: #201503; }
.btn-human:hover { background: #f0bd6f; box-shadow: 0 6px 24px rgba(232, 177, 92, .25); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-twin { background: var(--twin); color: #04211f; }
.btn-twin:hover { background: #85e2dc; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--twin); outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 92px 0 40px; position: relative; overflow: hidden; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--twin-deep);
}
.hero .eyebrow { color: var(--muted); }
.hero h1 {
  font-family: var(--font-display); font-weight: 550; font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 22px; max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--human); }
.hero h1 .twinned { color: var(--twin); }
.hero-sub { max-width: 56ch; color: var(--muted); font-size: 19px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* mirrored org chart */
.mirror-stage { margin: 64px auto 0; max-width: 860px; position: relative; }
.mirror-stage svg { display: block; width: 100%; height: auto; }
.mirror-caption {
  display: flex; justify-content: space-between; max-width: 860px; margin: 10px auto 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.mirror-caption .cap-human { color: var(--human); }
.mirror-caption .cap-twin { color: var(--twin); }
@keyframes pulse-down {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(58px); opacity: 0; }
}
.approval-pulse { animation: pulse-down 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .approval-pulse { animation: none; opacity: .8; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 550; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.015em; margin: 14px 0 14px; }
.sec-head p { color: var(--muted); }

/* thesis */
.leak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.leak-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.leak-card h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.leak-card.today h3 { color: var(--danger); }
.leak-card.captured h3 { color: var(--twin); }
.leak-card ul { list-style: none; display: grid; gap: 12px; color: var(--muted); font-size: 16px; }
.leak-card li { padding-left: 22px; position: relative; }
.leak-card.today li::before { content: "×"; position: absolute; left: 0; color: var(--danger); }
.leak-card.captured li::before { content: "→"; position: absolute; left: 0; color: var(--twin); }
.leak-card.captured { border-color: color-mix(in srgb, var(--twin) 30%, var(--line)); }

/* stages — ascending steps, brass → cyan */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.stage-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.stage-card .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.stage-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 550; }
.stage-card .price { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.stage-card p { color: var(--muted); font-size: 15px; }
.stage-card ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.stage-card li { padding-left: 18px; position: relative; }
.stage-card li::before { content: "·"; position: absolute; left: 4px; }
.stage-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 3px 0 0 3px;
  background: var(--stage-c, var(--human));
}
.s1 { --stage-c: #e8b15c; margin-top: 72px; }
.s2 { --stage-c: #d9bd72; margin-top: 48px; }
.s3 { --stage-c: #a3cba3; margin-top: 24px; }
.s4 { --stage-c: #6fd5cf; margin-top: 0; }
.s1 h3 { color: #e8b15c; } .s2 h3 { color: #d9bd72; } .s3 h3 { color: #a3cba3; } .s4 h3 { color: #6fd5cf; }
.stage-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--bg); background: var(--stage-c); border-radius: 4px; padding: 2px 8px; width: fit-content; }

/* accountability */
.halt-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.halt-copy h2 { font-family: var(--font-display); font-weight: 550; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 14px 0; }
.halt-copy h2 .h { color: var(--human); }
.halt-copy p { color: var(--muted); margin-bottom: 14px; }
.halt-copy .law { border-left: 3px solid var(--human); padding: 10px 18px; background: var(--panel); border-radius: 0 10px 10px 0; color: var(--text); font-size: 16px; }
.task-mock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.task-mock .demo-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.task-mock .t-title { font-weight: 600; font-size: 17px; }
.task-mock .t-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.task-mock .t-out { background: var(--bg-2); border: 1px solid var(--line-soft); border-left: 3px solid var(--twin); border-radius: 8px; padding: 14px 16px; font-size: 14.5px; color: var(--muted); }
.task-mock .t-halt { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--human); text-transform: uppercase; }
.task-mock .t-halt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--human); box-shadow: 0 0 12px var(--human); }
.task-mock .t-actions { display: flex; gap: 10px; }
.task-mock .t-actions .btn { padding: 9px 18px; font-size: 14px; }

/* pricing */
.pricing-note { margin-top: 26px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.pricing-note b { color: var(--human); }

/* CTA band */
.cta-band { text-align: center; padding: 100px 0; }
.cta-band h2 { font-family: var(--font-display); font-weight: 550; font-size: clamp(32px, 5vw, 54px); letter-spacing: -0.015em; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* footer */
footer { border-top: 1px solid var(--line-soft); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .fm { font-family: var(--font-mono); font-size: 12px; }

/* ---------- auth pages ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: var(--bg-2); border-right: 1px solid var(--line-soft); padding: 48px; display: flex; flex-direction: column; }
.auth-left .fill { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 440px; }
.auth-left h2 { font-family: var(--font-display); font-weight: 550; font-size: 34px; line-height: 1.15; margin: 16px 0; }
.auth-left p { color: var(--muted); }
.auth-facts { margin-top: 28px; display: grid; gap: 14px; }
.auth-fact { border-left: 3px solid var(--line); padding: 6px 16px; color: var(--muted); font-size: 15px; }
.auth-fact b { color: var(--text); font-weight: 600; }
.auth-fact.f1 { border-color: var(--human); }
.auth-fact.f4 { border-color: var(--twin); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 10px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; background: transparent; color: var(--muted); border: 0; border-radius: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 9px 0; cursor: pointer;
}
.auth-tabs button.active { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
}
.field input::placeholder { color: #5a6d6a; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-err { color: var(--danger); font-size: 14.5px; min-height: 22px; margin: 10px 2px 0; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-alt a { color: var(--twin); }
.demo-box { margin-top: 26px; border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); }
.demo-box code { font-family: var(--font-mono); color: var(--human); font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .s1, .s2, .s3, .s4 { margin-top: 0; }
  .halt-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}
@media (max-width: 640px) {
  .stages, .leak-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 56px; }
  section { padding: 60px 0; }
}
