@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Sampled from cirology.com — keep these in step with the live site. */
  --ink-900: #051c22;      /* Cirology dark */
  --ink-800: #0a2a32;
  --ink-700: #123a44;
  --red: #da0200;          /* Cirology accent — CTAs and eyebrows only */
  --red-dark: #b00200;
  --red-wash: #fdeceb;
  --slate: #59686c;        /* Cirology secondary grey */
  --paper: #f4f5f5;
  --paper-2: #e8eaea;
  --card: #ffffff;
  --ink: #16232a;
  --ink-2: #3f5158;
  --muted: #6f7f84;
  --line: #dfe3e4;
  --line-2: #cbd2d3;
  --ok: #17703f;
  --ok-wash: #e2f0e8;
  --warn: #9a6a10;
  --warn-wash: #fbf0d9;
  --bad: #8a3a30;
  --bad-wash: #f4e6e3;
  --r: 3px;                /* Cirology buttons use a 3px radius */
  --r-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(5, 28, 34, .06);
  --shadow: 0 2px 4px rgba(5, 28, 34, .05), 0 12px 30px rgba(5, 28, 34, .08);
  --shadow-lg: 0 24px 60px rgba(5, 28, 34, .18);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.06;
  margin: 0;
}
h3 { font-family: var(--sans); font-weight: 700; font-size: 15px; margin: 0; letter-spacing: -.01em; }
.serif { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(30px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }


a { color: var(--red); text-decoration-color: rgba(218,2,0,.35); text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow.dim { color: var(--muted); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- app shell ---------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink-900);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--red);
  color: #fff;
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.logo img { height: 30px; width: auto; display: block; }
.logo .divider { width: 1px; height: 22px; background: rgba(255,255,255,.25); }
.logo .word {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72);
}

.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a {
  color: #b3c0c3; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 8px;
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.topnav a.active { color: #fff; background: var(--red); }

.burger {
  display: none; margin-left: auto; width: 40px; height: 36px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger i { display: block; width: 17px; height: 1.5px; background: #fff; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .topnav {
    position: absolute; top: 62px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: var(--ink-900); border-bottom: 3px solid var(--red);
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 13px; }
}

.page { max-width: 1320px; margin: 0 auto; padding: 30px 24px 80px; }
.page.narrow { max-width: 780px; }
.page.mid { max-width: 1040px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 6px; }

/* ---------- cards & layout ---------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 16px; }
.card-head .note { margin-left: auto; font-size: 12px; color: var(--muted); }

/* Self-collapsing grids: each column states the width it needs and the browser
   drops to fewer columns on its own. Breakpoint-based collapsing left gaps at
   in-between widths where a column overflowed its track. */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.g-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
          align-items: start; }
@media (min-width: 1040px) {
  .g-side { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
/* Nothing may push the page sideways. */
.page, .section-inner, .hero-inner, .card { min-width: 0; }
.card, .stat, .dec, .split-card { overflow-wrap: anywhere; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { margin-left: auto; }

/* ---------- buttons ---------- */

.btn {
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--ink-800); background: var(--ink-800); color: #fff;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: var(--ink-700); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--red); border-color: var(--red); color: #fff; }
.btn.gold:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink-800); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.light { background: #fff; color: var(--ink-800); border-color: rgba(255,255,255,.5); }
.btn.light:hover { background: var(--paper); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- form ---------- */

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 9px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(218, 2, 0, .16);
}
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.checks label {
  font-weight: 400; font-size: 14px; margin: 0; cursor: pointer;
  display: flex; gap: 9px; align-items: center; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.checks label:hover { border-color: var(--red); background: var(--red-wash); }
.checks input { width: auto; accent-color: var(--red); }
.checks label:has(input:checked) { border-color: var(--red); background: var(--red-wash); }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }

/* ---------- pills ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.pill.A { background: var(--ok-wash); color: var(--ok); }
.pill.B { background: #e4ebec; color: var(--ink-700); }
.pill.C { background: var(--warn-wash); color: var(--warn); }
.pill.D { background: var(--bad-wash); color: var(--bad); }
.pill.cirology { background: var(--red-wash); color: var(--red-dark); }
.pill.tac { background: #e2e7e8; color: var(--ink-700); }
.pill.neutral { background: var(--paper-2); color: var(--ink-2); }
.pill.won { background: var(--ok-wash); color: var(--ok); }
.pill.lost { background: var(--bad-wash); color: var(--bad); }
.pill.open { background: #e4ebec; color: var(--ink-700); }

/* ---------- stats ---------- */

.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 17px 19px; box-shadow: var(--shadow-sm);
}
.stat .n {
  font-family: var(--display); font-size: 34px; font-weight: 400;
  color: var(--ink-900); line-height: 1.02; font-variant-numeric: tabular-nums;
}
.stat .k {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px;
}
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat.accent { background: var(--ink-900); border-color: var(--ink-900); }
.stat.accent .n { color: #fff; }
.stat.accent .k, .stat.accent .sub { color: rgba(255,255,255,.65); }

/* ---------- bars ---------- */

.bar { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: 999px;
           transition: width .35s cubic-bezier(.4,0,.2,1); }
.bar.navy > i { background: var(--slate); }
.bar.ok > i { background: var(--ok); }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); padding: 10px 12px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--paper); }
.right { text-align: right; }
.lead-name { font-weight: 600; }
.lead-co { font-size: 12.5px; color: var(--muted); }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none; margin-top: 1px;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
  background: var(--paper-2); color: var(--muted);
}
.steps li.done .n { background: var(--ok); color: #fff; }
.steps li.current .n { background: var(--red); color: #fff;
                       box-shadow: 0 0 0 4px rgba(218,2,0,.16); }
.steps .t { font-weight: 600; font-size: 14px; }
.steps .p { font-size: 12.5px; color: var(--muted); }
.steps .act { margin-left: auto; padding-left: 10px; }

/* ---------- misc ---------- */

.kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
      gap: 9px 18px; font-size: 14px; margin: 0; }
/* Labels may wrap - a long label used to force the column wider than the page. */
.kv dt { color: var(--muted); overflow-wrap: anywhere; }
.kv dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }

/* Interview answers: question above, answer below. Reads better than a two-column
   row when the question is a full sentence. */
.qa { list-style: none; margin: 14px 0 0; padding: 0; }
.qa li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.qa li:last-child { border-bottom: 0; }
.qa .q { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.qa .a { font-size: 14px; font-weight: 500; margin-top: 2px; }

.quote {
  background: var(--paper); border-left: 3px solid var(--red);
  padding: 15px 17px; border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.6;
}
.flash { padding: 12px 15px; border-radius: 9px; margin-bottom: 16px; font-size: 14px; }
.flash:empty { display: none; }
.flash.err { background: var(--bad-wash); color: var(--bad); border: 1px solid #eec8c0; }
.flash.ok { background: var(--ok-wash); color: var(--ok); border: 1px solid #c3e2d1; }
.empty { color: var(--muted); font-size: 14px; padding: 14px 0; text-align: center; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; gap: 10px; align-items: center; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.checklist li:last-child { border-bottom: 0; }
.checklist input { width: auto; accent-color: var(--ok); }
.checklist li.done span { color: var(--muted); text-decoration: line-through; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--line-2); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.timeline .t { font-size: 13.5px; }
.timeline .d { font-size: 11.5px; color: var(--muted); }

/* ---------- pipeline board ---------- */

.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.col {
  flex: 0 0 250px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px; min-height: 180px;
}
.col.over { border-color: var(--red); background: var(--red-wash); }
.col h4 {
  margin: 0 0 4px; font-size: 12.5px; font-weight: 700; display: flex; gap: 8px;
}
.col h4 .c {
  margin-left: auto; background: #fff; border-radius: 999px;
  padding: 0 8px; font-size: 11px; color: var(--muted);
}
.col .purpose { font-size: 11.5px; color: var(--muted); margin-bottom: 11px; line-height: 1.4; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; margin-bottom: 9px; cursor: grab; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .08s;
}
.chip:hover { box-shadow: var(--shadow); }
.chip.dragging { opacity: .45; }
.chip .who { font-weight: 600; font-size: 13.5px; }
.chip .co { font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.chip .foot { display: flex; align-items: center; gap: 6px; }
.chip .fee { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-900); }

/* ---------- landing ---------- */

.hero {
  background:
    radial-gradient(1000px 420px at 80% -10%, rgba(218, 2, 0, .18), transparent 60%),
    linear-gradient(170deg, var(--ink-900) 0%, #06222a 55%, var(--ink-800) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 72%);
}
.hero-inner {
  max-width: 1320px; margin: 0 auto; padding: 86px 24px 78px; position: relative; z-index: 1;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); max-width: 17ch; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { color: rgba(255,255,255,.8); font-size: 18px; max-width: 60ch; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 66px 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section-head { max-width: 68ch; margin-bottom: 34px; }
.section-head h2 { margin: 10px 0 12px; }

.flow-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.flow-step {
  flex: 1 0 172px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 16px; position: relative;
}
.flow-step .i {
  font-family: var(--sans); font-weight: 800; font-size: 12px; color: #fff;
  background: var(--red); border-radius: 50%;
  width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 9px;
}
.flow-step .t { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.flow-step .d { font-size: 12px; color: var(--muted); line-height: 1.45; }

.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; border-top: 3px solid var(--red);
}
.pillar h3 { font-size: 17px; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.split-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.split-card h3 { margin-bottom: 10px; }
.split-card .tagline { font-size: 12px; color: var(--red); font-weight: 700;
                       text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.split-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.split-card li { margin-bottom: 6px; }

.band {
  background: var(--ink-900); color: #fff; border-radius: var(--r-lg);
  padding: 34px; text-align: center;
}
.band h2 { color: #fff; margin-bottom: 12px; }
.band p { color: rgba(255,255,255,.76); max-width: 58ch; margin: 0 auto 22px; }

footer.foot {
  background: var(--ink-900); color: rgba(255,255,255,.5);
  padding: 30px 24px; font-size: 12.5px;
}
.foot-inner { max-width: 1320px; margin: 0 auto; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- demo helper ---------- */

.demo-note {
  background: var(--ink-900); color: #fff; border-radius: var(--r);
  padding: 15px 18px; margin-bottom: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.demo-note .tag {
  background: var(--red); color: #fff; border-radius: 3px;
  padding: 2px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; flex: none; margin-top: 2px;
}
.demo-note p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.85); }
.demo-note b { color: #fff; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 132px; }
.filters .field.grow { flex: 1; min-width: 200px; }

.opt-btn {
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: border-color .15s, background .15s, transform .08s;
}
.opt-btn:hover { border-color: var(--red); background: var(--red-wash); }
.opt-btn:active { transform: translateY(1px); }
.opt-btn .key {
  width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid;
  place-items: center; background: var(--paper-2); color: var(--muted);
  font-size: 11px; font-weight: 700;
}
.opt-btn:hover .key { background: var(--red); color: #fff; }

.mic {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--red);
  background: var(--red-wash); cursor: pointer; display: grid; place-items: center;
  flex: none; transition: transform .12s;
}
.mic:hover { transform: scale(1.05); }
.mic.live { background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(218, 2, 0, .45); }
  50% { box-shadow: 0 0 0 12px rgba(218, 2, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Restore-demo control — present on every screen so a live walkthrough can
   always get back to a clean state without hunting for a button. */
.reset-tab {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--ink-900); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow);
  opacity: .55; transition: opacity .15s, background .15s;
}
.reset-tab:hover { opacity: 1; background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 560px) { .reset-tab { right: 10px; bottom: 10px; font-size: 11px; } }
