/* ============================================================
   Anchor — Financial Workforce Intelligence
   Shared design system
   ============================================================ */

:root {
  /* Color */
  --ink: #0F1B2D;          /* primary navy/slate */
  --ink-2: #1B2C44;        /* raised navy */
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-tint: #F2F6F4;      /* faint teal-tinted block */
  --line: #E4E8EE;
  --line-strong: #D3DAE3;
  --muted: #5B6675;
  --muted-2: #7A8595;
  --accent: #0FA47A;       /* teal-green */
  --accent-dk: #0B8765;
  --accent-soft: #E5F4EE;
  --amber: #E8A13A;
  --danger: #D8573B;       /* used sparingly for "bleeding" emphasis */

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius / shadow */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 28px rgba(15,27,45,.06);
  --shadow-lg: 0 2px 6px rgba(15,27,45,.05), 0 20px 50px rgba(15,27,45,.10);

  /* Layout */
  --maxw: 1140px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--accent); }
strong { font-weight: 700; }

.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); line-height: 1.55; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 1rem;
}
.eyebrow.on-dark { color: #6FE3C0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #EAF0F7; }
.section--tint { background: var(--bg-tint); }
.center { text-align: center; }
.measure { max-width: 720px; }
.measure.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  padding: .82rem 1.4rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; box-shadow: 0 8px 20px rgba(15,164,122,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost.on-dark { color: #EAF0F7; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-dark:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-arrow svg { transition: transform .15s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--accent-dk); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { display: block; }
.logo .mark-dot { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 132px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-top: 1.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { margin-top: 1.6rem; font-size: .92rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hl-danger { color: var(--danger); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dk);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.section--ink .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.section--ink .card p { color: #AEBCCE; }
.section--ink .card h3 { color: #fff; }
.section--ink .card .ico { background: rgba(111,227,192,.14); color: #6FE3C0; }

/* ---------- Steps ---------- */
.step { position: relative; padding-left: 0; }
.step .num {
  font-size: .82rem; font-weight: 700; color: var(--accent-dk);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head p { color: var(--muted); font-size: 1.12rem; margin-top: .6rem; }

/* ---------- Comparison ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: .96rem; background:#fff; border:1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .feat { font-weight: 500; }
.compare .yes { color: var(--accent-dk); font-weight: 700; }
.compare .no { color: var(--muted-2); }
.compare .col-anchor { background: var(--accent-soft); }
.compare thead .col-anchor { background: var(--accent); color: #fff; }
.star { color: var(--amber); }

/* ---------- Trust list ---------- */
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: rgba(111,227,192,.14); color: #6FE3C0; display: grid; place-items: center; margin-top: 2px; }
.trust-item h3 { font-size: 1.08rem; color: #fff; margin-bottom: .2rem; }
.trust-item p { color: #AEBCCE; font-size: .96rem; margin: 0; }

/* ---------- Stats ---------- */
.stat { }
.stat .big { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat .big .unit { color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: .96rem; }
.stat .note { font-size: .78rem; color: var(--muted-2); margin-top: .3rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 1.1rem; font-weight: 600; color: var(--ink); padding: 22px 40px 22px 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto .6rem; }
.cta-band p { color: #AEBCCE; max-width: 52ch; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 520px; }
.form.in-band { background: var(--ink-2); padding: 28px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.08); }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.section--ink .field label, .form.in-band .field label { color: #C8D4E2; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .72rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hint { font-size: .82rem; color: var(--muted-2); margin: 0; }
.section--ink .form .hint { color: #8E9CB0; }
.form-success { display:none; background: var(--accent-soft); border:1px solid #BFE6D6; color: var(--accent-dk); padding: 14px 16px; border-radius: var(--r-sm); font-weight: 500; }

/* ============================================================
   PRODUCT UI MOCKUPS (fake data)
   ============================================================ */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-bar .title { font-weight: 600; font-size: .85rem; color: var(--muted); margin-left: 6px; }
.mock-bar .tag { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--accent-dk); background: var(--accent-soft); padding: 3px 9px; border-radius: 20px; }
.mock-body { padding: 18px; }

.mock h4 { font-size: 1rem; margin: 0 0 14px; letter-spacing: -.01em; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 600; padding: 0 10px 8px; }
.mock-table td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.mock-table tr:hover td { background: var(--bg-soft); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color:#fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: 0 0 auto; }
.who .role { font-size: .72rem; color: var(--muted-2); }
.who strong { font-size: .9rem; }
.fit { display:flex; align-items:center; gap:8px; }
.fit .bar { width: 54px; height: 6px; border-radius: 4px; background: var(--line); overflow:hidden; }
.fit .bar i { display:block; height:100%; background: var(--accent); border-radius:4px; }
.pill { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; display:inline-block; }
.pill.up { color: var(--accent-dk); background: var(--accent-soft); }
.pill.down { color: var(--danger); background: #FBEAE5; }
.pill.flat { color: var(--muted); background: var(--bg-soft); }
.mock-foot { border-top:1px solid var(--line); padding: 12px 18px; font-size: .8rem; color: var(--muted-2); display:flex; align-items:center; gap:8px; background: var(--bg-soft); }

/* explainability mock */
.xp { display:grid; gap: 12px; }
.xp-row { display:flex; align-items:flex-start; gap:12px; padding: 12px; border:1px solid var(--line); border-radius: 10px; }
.xp-row .k { width: 26px;height:26px;border-radius:7px;background:var(--accent-soft);color:var(--accent-dk);display:grid;place-items:center;flex:0 0 auto;font-weight:700;font-size:.8rem; }
.xp-row .lbl { font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-2);font-weight:600; }
.xp-row p { margin:.15rem 0 0; font-size:.88rem; color: var(--ink); }
.xp-score { display:flex; gap: 18px; flex-wrap:wrap; }
.xp-score .s b { display:block; font-size:1.3rem; font-weight:800; letter-spacing:-.02em; }
.xp-score .s span { font-size:.72rem; color:var(--muted-2); }

/* ---------- Founding team prose ---------- */
.team-prose { font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.team-prose p { margin: 0 0 1.1rem; }
.team-prose p strong { color: var(--ink); font-weight: 700; }
.team-prose p:nth-of-type(n+2):nth-of-type(-n+4) {
  position: relative; padding-left: 18px;
}
.team-prose p:nth-of-type(n+2):nth-of-type(-n+4)::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; background: var(--accent); border-radius: 2px;
}
.team-note { font-size: .92rem !important; color: var(--muted-2) !important; margin-top: 1.8rem !important; padding-left: 0 !important; border-left: 0 !important; }
.team-note::before { display: none !important; }

/* ---------- Founders ---------- */
.founder { text-align: center; }
.founder .photo { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color:#fff; display:grid; place-items:center; font-size:1.7rem; font-weight:800; letter-spacing:-.02em; overflow:hidden; }
.founder .photo img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.founder h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.founder .role { color: var(--accent-dk); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.founder p { color: var(--muted); font-size: .95rem; margin: 0 0 .8rem; }
.founder .ln { font-size: .85rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #AEBCCE; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo { color:#fff; }
.site-footer h4 { color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 1rem; }
.site-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.site-footer a { color:#AEBCCE; font-size:.95rem; }
.site-footer a:hover { color:#fff; }
.footer-tagline { max-width: 32ch; font-size: .95rem; margin-top: 1rem; }
.footer-bottom { display:flex; justify-content: space-between; flex-wrap:wrap; gap: 12px; padding-top: 24px; font-size: .85rem; color:#7A8595; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-sm > * + *{margin-top:.5rem}
.tag-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{font-size:.8rem;font-weight:600;color:var(--ink);background:#fff;border:1px solid var(--line-strong);padding:6px 12px;border-radius:20px}
.chip .star{margin-right:2px}

/* ---------- Hero punch line ---------- */
.hero-triad {
  margin-top: 1.4rem; font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -.01em; color: var(--ink);
}
.hero-triad .sep { color: var(--accent); padding: 0 .35em; font-weight: 700; }

/* ---------- Supply <-> Demand match board ---------- */
.match-board {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.mb-side .mb-label {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.mb-side.demand .mb-label { color: var(--amber); }
.mb-side.supply .mb-label { color: var(--accent-dk); }
.mb-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mb-side li {
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  font-weight: 500; font-size: .96rem; display: flex; align-items: center; gap: 10px;
}
.mb-side li .mb-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.mb-side.demand li .mb-dot { background: var(--amber); }
.mb-side.supply li .mb-dot { background: var(--accent); }
.mb-core { display: grid; justify-items: center; gap: 10px; text-align: center; }
.mb-node {
  width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(15,27,45,.18);
}
.mb-core .mb-cap { font-size: .82rem; color: var(--muted-2); max-width: 14ch; }
.mb-arrows { display: flex; gap: 6px; color: var(--line-strong); }
.match-note { max-width: 64ch; margin: 28px auto 0; color: var(--muted); font-size: 1.05rem; }
.match-note strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .match-board { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .mb-core { order: 2; }
  .mb-core .mb-arrows { transform: rotate(90deg); }
  .mb-side.supply { order: 3; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-demo { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px var(--gutter); gap: 1.1rem; align-items: flex-start;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .mock-table .hide-sm { display:none; }
}
