html { scroll-behavior: smooth; }

:root {
  --ink: #17211e;
  --forest: #123f35;
  --forest-2: #1d6655;
  --cream: #f4f6f2;
  --paper: #fff;
  --gold: #d5a24a;
  --line: #dce3de;
  --muted: #68746f;
  --shadow: 0 24px 70px rgba(18,63,53,.12);
}

body {
  background: radial-gradient(circle at 12% 5%, rgba(213,162,74,.08), transparent 28rem), var(--cream);
  letter-spacing: -.01em;
}

.topbar {
  height: 86px;
  background: rgba(255,255,255,.9);
  border-bottom-color: rgba(18,63,53,.09);
  box-shadow: 0 8px 30px rgba(18,63,53,.055);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18,63,53,.2);
  font: 750 15px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.04em;
}

.brand strong { font-size: 15px; letter-spacing: -.02em; }
.header-actions .button, .header-actions button { border-radius: 999px; padding: 11px 18px; }
.header-actions .primary { box-shadow: 0 9px 22px rgba(18,63,53,.2); }

.company-hero {
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  background: radial-gradient(circle at 78% 15%, rgba(213,162,74,.22), transparent 30%), linear-gradient(135deg, #123f35, #092b25);
}

.hero-copy { max-width: 780px; }
.hero h1 { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 760; letter-spacing: -.065em; }

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--gold);
  color: #172d28;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.hero-cta:hover { background: #d3aa6a; }

.ledger-card {
  width: min(390px, 36vw);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(255,253,248,.07);
  box-shadow: 0 28px 75px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.ledger-label {
  margin: 0 0 8px;
  color: #e2bd7f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.ledger-card dl { margin: 0; }
.ledger-card dl div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.ledger-card dt { color: #d5ad6f; font: 700 13px ui-monospace, monospace; }
.ledger-card dd { margin: 0; }
.ledger-card strong, .ledger-card span { display: block; }
.ledger-card strong { font: 700 19px Georgia, serif; }
.ledger-card span { margin-top: 4px; color: #c7d4d0; font-size: 13px; line-height: 1.45; }

.institution-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 46px clamp(20px,7vw,100px);
  margin: 0 clamp(18px,4vw,64px);
  padding-left: clamp(24px,4vw,56px);
  padding-right: clamp(24px,4vw,56px);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(18,63,53,.09);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 50px rgba(18,63,53,.07);
}

.institution-entry h2, .workspace-banner h2 {
  margin: 0;
  font: 700 clamp(28px,3.2vw,42px)/1.08 Georgia, serif;
}

.institution-entry > div > p:last-child, .workspace-banner > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.institution-selector {
  width: min(430px,42vw);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.institution-selector select {
  display: block;
  width: 100%;
  margin: 8px 0 7px;
  padding: 14px 42px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.institution-selector small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.workspace-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 58px clamp(20px,7vw,100px) 20px;
}

.institution-entry h2, .workspace-banner h2, .story-hero h2,
.purpose-block h3, .capability-grid h3, .founder-card h3 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.045em;
}

.workspace-banner .eyebrow { color: var(--rust); }
.workspace-banner .stats strong { color: var(--forest); }
.workspace-banner .stats span { color: var(--muted); }
.workspace-banner .stats div { border-left-color: var(--line); }

.story-panel { padding: 18px 0 30px; }
.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 26px;
  background: var(--forest);
  color: white;
  background-image: radial-gradient(circle at 88% 10%, rgba(196,146,69,.2), transparent 34%);
}
.story-hero h2 { margin: 0; max-width: 720px; font: 750 clamp(36px,5vw,64px)/1 ui-sans-serif,system-ui,sans-serif; letter-spacing: -.055em; }
.story-hero > p { margin: 0; color: #cfdbd7; font-size: 17px; line-height: 1.75; }
.section-kicker { margin: 0 0 12px; color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.purpose-block { max-width: 850px; padding: 64px 0 46px; }
.purpose-block h3 { margin: 0 0 18px; font: 700 clamp(28px,3.5vw,43px)/1.12 Georgia,serif; }
.purpose-block > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.capability-grid article { min-height: 250px; padding: 26px; border: 1px solid rgba(18,63,53,.09); border-radius: 20px; background: var(--paper); box-shadow: 0 14px 35px rgba(18,63,53,.06); transition: transform .2s ease, box-shadow .2s ease; }
.capability-grid article:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(18,63,53,.11); }
.capability-grid article > span { color: var(--gold); font: 700 12px ui-monospace,monospace; }
.capability-grid h3, .founder-card h3 { margin: 42px 0 10px; font: 700 23px/1.08 Georgia,serif; }
.capability-grid p, .founder-card > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 52px 0 34px; }
.founder-card { padding: clamp(28px,4vw,48px); border: 1px solid rgba(18,63,53,.09); border-radius: 22px; background: var(--paper); box-shadow: 0 18px 45px rgba(18,63,53,.07); }
.founder-monogram { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 34px; border-radius: 50%; background: var(--forest); color: #f2d39e; font: 700 22px Georgia,serif; }
.founder-card h3 { margin: 8px 0 14px; font-size: 32px; }
.founders-panel blockquote { margin: 0; padding: 38px clamp(28px,6vw,72px); border-left: 5px solid var(--gold); background: #ebe5d8; color: var(--forest); font: italic 700 clamp(24px,3vw,38px)/1.25 Georgia,serif; }

.guide-panel { padding: 18px 0 40px; font-size: 17px; line-height: 1.65; }
.guide-intro { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 48px; align-items: center; padding: clamp(34px,6vw,70px); border-radius: 26px; background: linear-gradient(135deg,#123f35,#195447); color: white; }
.guide-intro h2 { max-width: 760px; margin: 0 0 22px; font: 750 clamp(36px,5vw,62px)/1 ui-sans-serif,system-ui,sans-serif; letter-spacing: -.055em; }
.guide-intro > div > p:last-child { margin: 0; color: #d8e3df; }
.guide-reassurance { padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.09); }
.guide-reassurance strong { font-size: 20px; }
.guide-reassurance ol { margin: 14px 0 0; padding-left: 24px; }
.guide-reassurance li + li { margin-top: 9px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 4px; }
.guide-jump a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--forest); font-size: 14px; font-weight: 700; text-decoration: none; }
.guide-jump a:hover { border-color: var(--forest-2); background: #edf3f0; }
.guide-section { padding: 64px 0 16px; scroll-margin-top: 100px; }
.guide-section > h3 { max-width: 850px; margin: 0 0 30px; font: 750 clamp(30px,4vw,46px)/1.1 ui-sans-serif,system-ui,sans-serif; letter-spacing: -.045em; }
.guide-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-steps article { display: flex; gap: 20px; padding: 26px; border: 1px solid rgba(18,63,53,.1); border-radius: 20px; background: white; box-shadow: 0 12px 30px rgba(18,63,53,.05); }
.guide-steps article > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.guide-steps h4, .guide-card-grid h4 { margin: 2px 0 8px; color: var(--forest); font-size: 19px; line-height: 1.25; }
.guide-steps p, .guide-card-grid p { margin: 0; color: var(--muted); }
.guide-note { margin-top: 18px; padding: 24px 28px; border-left: 5px solid var(--gold); border-radius: 0 16px 16px 0; background: #fff9ed; }
.guide-note strong { color: var(--forest); font-size: 19px; }
.guide-note p { margin: 5px 0 0; }
.guide-note.urgent { border-left-color: var(--rust); background: #fff4ef; }
.guide-card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.guide-card-grid article { padding: 26px; border: 1px solid rgba(18,63,53,.1); border-radius: 20px; background: white; }
.status-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.status-guide article { padding: 26px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.status-guide p { margin: 16px 0 0; color: var(--muted); }
.status-example { display: inline-block; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.status-example.draft { background: #eee9dc; color: #6b5635; }
.status-example.reviewed { background: #dcebe3; color: #235342; }
.guide-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.guide-glossary div { padding: 20px 0; border-top: 1px solid var(--line); }
.guide-glossary dt { color: var(--forest); font-weight: 800; }
.guide-glossary dd { margin: 5px 0 0; color: var(--muted); }
.ai-process { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 28px 0; }
.ai-process article { padding: 28px; border: 1px solid rgba(18,63,53,.1); border-radius: 20px; background: white; }
.ai-process article > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.ai-process h3, .ai-billing-grid h3, .provider-guide h3 { margin: 0 0 10px; color: var(--forest); font: 700 24px/1.15 Georgia,serif; }
.ai-process p, .ai-billing-grid p, .provider-guide p { color: var(--muted); line-height: 1.65; }
.ai-billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.ai-billing-grid article { padding: clamp(28px,4vw,46px); border-radius: 22px; background: #ebe5d8; }
.provider-guide { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 34px; align-items: center; margin-top: 18px; padding: clamp(28px,4vw,46px); border: 1px solid rgba(18,63,53,.1); border-radius: 22px; background: white; }
.provider-links { display: grid; gap: 10px; }
.provider-links .button { display: block; text-align: center; text-decoration: none; }

@media (max-width: 900px) {
  .ledger-card { width: 42vw; }
  .institution-entry { align-items: flex-start; }
  .workspace-banner { align-items: flex-start; flex-direction: column; }
  .workspace-banner .stats { margin-top: 0; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .guide-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: auto; padding: 14px 18px; align-items: center; }
  .brand { min-width: 0; }
  .brand strong { white-space: nowrap; }
  .brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
  .header-actions { width: auto; flex-wrap: nowrap; margin-left: auto; }
  .header-actions .secondary, .header-actions label.secondary { display: none; }
  .header-actions .primary { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .company-hero { padding-top: 58px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(40px,12vw,56px); }
  .ledger-card { width: 100%; margin-top: 36px; }
  .institution-entry { display: block; margin: 0 12px; padding: 32px 22px; border-radius: 0 0 20px 20px; }
  .institution-selector { display: block; width: 100%; margin-top: 28px; }
  .workspace-banner { padding: 42px 18px 12px; }
  .workspace-banner .stats { width: 100%; }
  .story-panel { padding-top: 8px; }
  .story-hero { grid-template-columns: 1fr; padding: 38px 24px; border-radius: 22px; }
  .story-hero h2 { font-size: 38px; }
  .purpose-block { padding: 48px 4px 34px; }
  .capability-grid, .founder-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; }
  .guide-panel { font-size: 16px; }
  .guide-intro { grid-template-columns: 1fr; gap: 28px; padding: 38px 24px; border-radius: 22px; }
  .guide-intro h2 { font-size: 38px; }
  .guide-jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
  .guide-jump a { white-space: nowrap; }
  .guide-section { padding-top: 50px; }
  .guide-steps, .guide-card-grid, .status-guide, .guide-glossary, .ai-process, .ai-billing-grid, .provider-guide { grid-template-columns: 1fr; }
  .guide-steps article { padding: 22px 18px; }
}
