:root {
  --ink: #17251f;
  --muted: #607169;
  --line: #dbe5df;
  --paper: #fff;
  --soft: #f3f7f4;
  --green: #1d6253;
  --green-dark: #123f36;
  --sand: #e9deca;
  --sand-soft: #f8f3e9;
  --shadow: 0 18px 50px rgba(21, 55, 45, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
button, input { font: inherit; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: .75rem 1rem; color: #fff; background: #000; }
.skip-link:focus { left: .75rem; top: .75rem; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(219, 229, 223, .9); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { min-width: 315px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); font-weight: 850; letter-spacing: .05em; }
.brand-title, .brand-subtitle { display: block; }
.brand-title { font-size: .98rem; font-weight: 780; }
.brand-subtitle { color: var(--muted); font-size: .78rem; }
.main-nav { margin-left: auto; display: flex; gap: 21px; }
.main-nav a { font-size: .91rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); }
.menu-button { display: none; }
.mobile-auth-button { display: none; }
.sign-in-button { white-space: nowrap; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-dark); background: var(--soft); font-size: .81rem; font-weight: 800; cursor: pointer; }
.sign-in-button:hover { background: #e9f1ec; }

.hero { padding: 92px 0 76px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 87% 14%, rgba(233, 222, 202, .82), transparent 25rem), linear-gradient(180deg, #fbfdfc 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(330px, .72fr); gap: 66px; align-items: center; }
.eyebrow, .card-kicker { margin-bottom: 10px; color: var(--green); font-size: .74rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.14; }
h1 { max-width: 850px; margin-bottom: 22px; font-size: clamp(2.8rem, 5.2vw, 5.15rem); letter-spacing: -.052em; }
h2 { margin-bottom: 13px; font-size: clamp(2rem, 3.2vw, 3.1rem); letter-spacing: -.038em; }
h3 { margin-bottom: 9px; font-size: 1.17rem; }
.hero-copy { max-width: 730px; margin-bottom: 29px; color: var(--muted); font-size: 1.17rem; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.button { display: inline-block; padding: 12px 18px; border: 0; border-radius: 10px; font-weight: 780; text-decoration: none; cursor: pointer; }
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green-dark); background: #fff; border: 1px solid var(--line); }
.pilot-note { margin: 19px 0 0; color: var(--muted); font-size: .91rem; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--green); }
.trust-card { padding: 29px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.trust-card h2 { font-size: 1.55rem; }
.trust-card ul { padding: 0; margin: 21px 0 0; list-style: none; }
.trust-card li { display: grid; grid-template-columns: 132px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.trust-card li span { color: var(--muted); font-size: .9rem; }

.section { padding: 78px 0; }
.soft-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.section-heading { max-width: 790px; margin-bottom: 31px; }
.section-heading p { margin: 0; color: var(--muted); }
.split-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.phase-tag { white-space: nowrap; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.ask-panel { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.ask-panel label { display: block; margin-bottom: 9px; font-weight: 780; }
.ask-row { display: flex; gap: 10px; }
.ask-row input { min-width: 0; flex: 1; padding: 13px 14px; border: 1px solid #c9d6ce; border-radius: 10px; font-size: 1rem; }
.ask-row input:focus { border-color: var(--green); outline: 3px solid rgba(29, 98, 83, .12); }
.sample-questions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-dark); background: #fff; cursor: pointer; }
.chip:hover { background: var(--soft); }
.answer-panel { margin-top: 22px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); outline: none; }
.answer-topline { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.answer-status { color: var(--green); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.confidence { color: var(--muted); font-size: .78rem; font-weight: 700; }
.answer-panel p { color: var(--muted); }
.citation-preview { display: flex; flex-wrap: wrap; gap: 8px 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.citation-preview strong { color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.browse-card { min-height: 235px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.browse-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-number { margin-bottom: 29px; color: var(--green); font-size: .76rem; font-weight: 850; letter-spacing: .1em; }
.browse-card p { color: var(--muted); }
.card-link { margin-top: auto; color: var(--green); font-size: .82rem; font-weight: 780; }

.pilot-section { background: var(--sand-soft); }
.pilot-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 65px; align-items: start; }
.pilot-grid > div:first-child p { color: var(--muted); font-size: 1.03rem; }
.readiness-list { border-top: 1px solid #d9ccb5; }
.readiness-list > div { display: grid; grid-template-columns: 45px 1fr auto; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid #d9ccb5; }
.readiness-list span { color: var(--green); font-size: .75rem; font-weight: 850; }
.readiness-list em { color: var(--muted); font-size: .82rem; font-style: normal; }

.connection-section { padding: 26px 0; }
.connection-card { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 16px; }
.connection-card h2 { margin-bottom: 5px; font-size: 1.45rem; }
.connection-card p { margin: 0; color: var(--muted); }
.system-status { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 820; }
.system-status.checking { color: var(--muted); background: var(--soft); }
.system-status.connected { color: #18543e; border-color: #cfe5d8; background: #eef8f2; }
.system-status.error { color: #8a2f25; border-color: #efd1cc; background: #fff4f2; }

.site-footer { padding: 26px 0; color: #eef3f0; background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; }
.footer-inner span { display: block; color: #aebbb5; }
.sign-in-dialog { width: min(500px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 24px 90px rgba(0, 0, 0, .28); }
.sign-in-dialog::backdrop { background: rgba(16, 32, 26, .58); backdrop-filter: blur(3px); }
.sign-in-dialog form { position: relative; padding: 31px; }
.sign-in-dialog h2 { font-size: 2rem; }
.sign-in-dialog p { color: var(--muted); }
.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; color: var(--muted); background: transparent; font-size: 1.7rem; cursor: pointer; }
.role-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 21px 0; }
.role-list span { padding: 6px 10px; border-radius: 999px; color: var(--green-dark); background: var(--soft); font-size: .78rem; font-weight: 750; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .brand { min-width: 0; flex: 1; }
  .menu-button { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-dark); background: #fff; font-weight: 750; }
  .main-nav { display: none; order: 4; width: 100%; margin: 0; padding: 5px 0; border-top: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .hero-grid, .pilot-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand-subtitle, .sign-in-button { display: none; }
  .main-nav.open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mobile-auth-button { grid-column: 1 / -1; width: 100%; padding: 10px 12px; display: block; border: 1px solid var(--line); border-radius: 9px; color: var(--green-dark); background: var(--soft); font-weight: 780; text-align: left; }
  .hero { padding: 58px 0 55px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .section { padding: 60px 0; }
  .ask-row, .split-heading, .answer-topline, .connection-card, .footer-inner { align-items: flex-start; flex-direction: column; }
  .ask-row { display: flex; }
  .ask-row input, .ask-row .button { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .readiness-list > div { grid-template-columns: 38px 1fr; }
  .readiness-list em { grid-column: 2; }
  .trust-card li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


.sign-in-dialog label { display: block; margin: 14px 0 6px; font-size: .86rem; font-weight: 780; }
.sign-in-dialog input { width: 100%; padding: 11px 12px; border: 1px solid #c9d6ce; border-radius: 9px; }
.sign-in-dialog input:focus { border-color: var(--green); outline: 3px solid rgba(29, 98, 83, .12); }
.dialog-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.text-button { padding: 8px 0; border: 0; color: var(--green); background: transparent; font-weight: 760; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-status { min-height: 1.5em; margin: 12px 0 0 !important; color: var(--green) !important; font-size: .86rem; }
.auth-status.error { color: #8a2f25 !important; }
.button:disabled { cursor: wait; opacity: .65; }

.auth-step { margin-top: 18px; }
.auth-step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.mfa-qr { width: min(230px, 100%); margin: 12px auto; display: block; border: 10px solid #fff; border-radius: 10px; }
.mfa-secret { overflow-wrap: anywhere; font-size: .82rem; }
.mfa-secret code { color: var(--ink); font-weight: 760; }
