:root {
  --ink: #10212f;
  --muted: #647482;
  --bg: #f6f8f7;
  --card: #fff;
  --brand: #087f68;
  --brand2: #05a985;
  --line: #dce5e2;
  --chart-purple: #6f5bd8;
  --chart-green: #08aa87;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.link-button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.primary,
.secondary {
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}
.primary {
  color: #fff;
  background: var(--brand);
}
.primary:hover {
  background: var(--brand2);
}
.secondary {
  background: #e5eeeb;
}
.small {
  padding: 10px 16px;
}
.hero {
  max-width: 900px;
  margin: 95px auto 65px;
  text-align: center;
  padding: 0 24px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand);
}
h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
h2 {
  font-size: 38px;
  letter-spacing: -0.04em;
}
.hero > p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px;
}
.status {
  font-size: 14px;
  color: var(--muted);
}
.status span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20bd7a;
  margin-right: 7px;
}
.claude-recovery-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  max-width: 1080px;
  margin-top: 0;
  margin-bottom: 36px;
  padding: 28px 30px;
  border: 1px solid #9ddfc9;
  border-left: 5px solid #20a875;
  border-radius: 18px;
  background: linear-gradient(135deg, #eaf9f3, #f7fcfa);
}
.claude-recovery-notice h2 { margin: 5px 0 10px; font-size: 28px; }
.claude-recovery-notice p { margin: 0; color: var(--muted); line-height: 1.7; }
.claude-recovery-notice ol { margin: 14px 0 0; padding-left: 22px; color: #34524c; line-height: 1.75; }
.claude-recovery-notice > a { flex: none; text-align: center; }
.features,
.cards,
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: auto;
  padding: 0 24px;
}
.features article,
.cards article,
.panel,
.metrics article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.features b {
  font-size: 18px;
}
.features p,
.muted,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}
.section {
  max-width: 1080px;
  margin: 120px auto;
  padding: 0 24px;
  text-align: center;
}
.cards strong {
  font-size: 38px;
}
.cards article {
  position: relative;
}
.cards .featured {
  border: 2px solid var(--brand);
}
.cards em {
  position: absolute;
  right: 14px;
  top: 14px;
  background: #d9f6ed;
  color: var(--brand);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
}
.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  gap: 50px;
  align-items: center;
}
.docs pre {
  background: #11222d;
  color: #d7f8ee;
  padding: 28px;
  border-radius: 16px;
  overflow: auto;
}
.endpoint {
  display: block;
  background: #e8efed;
  padding: 14px;
  border-radius: 8px;
  overflow: auto;
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 50px;
}
.site-legal-footer {
  margin-top: 64px;
  padding: 38px 24px 42px;
  border-top: 1px solid var(--line);
  background: #eef3f1;
}
.footer-owner {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.footer-legal-copy {
  max-width: 920px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.75;
}
.footer-status {
  margin: 14px 0 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.footer-status a:hover {
  text-decoration: underline;
}
.price-adjustment-notice {
  margin: 20px 0 24px;
  padding: 17px 19px;
  border: 1px solid #c9ddd7;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: #f0f7f5;
  text-align: left;
}
.price-adjustment-public {
  max-width: 1032px;
  margin-right: auto;
  margin-left: auto;
}
.price-adjustment-notice b {
  color: var(--ink);
  font-size: 15px;
}
.price-adjustment-notice p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.quick-kyc {
  margin: 6px 0 16px;
  padding: 14px;
  border: 1px solid #c9ddd7;
  border-radius: 10px;
  background: #f0f7f5;
}
.quick-kyc > b {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
}
.quick-kyc-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: #33434d;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.quick-kyc-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--brand);
}
.quick-kyc small {
  display: block;
  margin: 8px 0 0 29px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 32px;
  width: min(430px, 90vw);
  box-shadow: 0 24px 80px #10212f33;
}
dialog::backdrop {
  background: #10212f80;
}
.close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}
#auth-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
#auth-tabs button {
  border: 0;
  background: none;
  padding: 12px 0;
  font-weight: 700;
  cursor: pointer;
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}
input {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
}
.error {
  color: #b42318;
}
.dashboard-main {
  max-width: 1360px;
  margin: 60px auto;
  padding: 0 24px;
}
.dashboard-main h1 {
  font-size: 44px;
}
.dashboard-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1080px);
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}
.dashboard-content {
  min-width: 0;
}
.dashboard-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #10212f0a;
}
.dashboard-sidebar-title {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.dashboard-toc {
  display: grid;
  gap: 3px;
}
.dashboard-toc a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #52616b;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}
.dashboard-toc a:hover {
  color: var(--ink);
  background: #f2f6f4;
}
.dashboard-toc a.active {
  color: var(--brand);
  background: #e7f4ef;
}
.dashboard-toc a.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
}
.dashboard-content > [id] {
  scroll-margin-top: 24px;
}
.dashboard-content > .usage-overview:first-child {
  margin-top: 0;
}
.metrics {
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 30px 0;
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.metrics strong {
  display: block;
  font-size: 25px;
  margin-top: 10px;
}
.usage-overview {
  margin: 30px 0;
}
.usage-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.usage-overview-heading h2 {
  font-size: 24px;
  margin: 0 0 4px;
}
.usage-overview-heading p {
  margin: 0;
  font-size: 14px;
}
.usage-period-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #e9edec;
}
.usage-period-tabs button {
  min-width: 58px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4e5a62;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.usage-period-tabs button:hover {
  color: var(--ink);
}
.usage-period-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px #10212f14;
}
.usage-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.usage-insight-card {
  min-width: 0;
  min-height: 220px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
}
.usage-insight-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.usage-insight-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.usage-card-title {
  display: block;
  color: #3f4b53;
  font-size: 17px;
  font-weight: 650;
}
.usage-insight-card > strong {
  display: block;
  margin-top: 9px;
  color: #1f282e;
  font-size: 34px;
  letter-spacing: -0.035em;
}
.usage-insight-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}
.usage-insight-card small b {
  color: var(--ink);
}
.usage-chart {
  display: block;
  width: 100%;
  height: 78px;
  margin-top: 18px;
}
.balance-card .secondary {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #cfd8d5;
}
.balance-card small {
  margin-top: 20px;
}
.usage-overview-status {
  min-height: 18px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.panel {
  margin: 20px 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.panel-heading h2 {
  margin-bottom: 4px;
}
.cards.compact {
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
}
.cards.compact button {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.cards.compact b,
.cards.compact span {
  display: block;
}
.cards.compact small {
  color: var(--muted);
  display: block;
  margin: 5px 0 10px;
}
.section .cards {
  grid-template-columns: repeat(4, 1fr);
}
.model-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.model-card {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.model-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.model-card h3 { margin: 5px 0 12px; }
.model-provider { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.model-online { background: #e3f7ef; border-radius: 18px; color: var(--brand); font-size: 12px; padding: 5px 9px; white-space: nowrap; }
.model-id { display: block; overflow-wrap: anywhere; margin-bottom: 10px; }
.model-card dl { margin: 18px 0; }
.model-card dl div { border-bottom: 1px dashed var(--line); display: flex; gap: 14px; justify-content: space-between; padding: 9px 0; }
.model-card dt { color: var(--muted); }
.model-card dd { margin: 0; text-align: right; }
.model-prices { background: #f4f1e8; border-radius: 10px; display: grid; gap: 9px; padding: 14px; }
.model-prices span { display: flex; justify-content: space-between; }
.payment-instruction {
  color: var(--ink) !important;
  font-weight: 700;
}
.cards.compact button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
.cards.compact button.payment-ready {
  border-color: #8fcfc0;
  box-shadow: 0 2px 0 #087f6814;
}
.cards.compact button.payment-ready:hover,
.cards.compact button.payment-ready:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 8px 22px #087f6822;
  transform: translateY(-2px);
}
.cards.compact .pay-action {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  display: block;
  font-size: 14px;
  margin-top: 14px;
  padding: 9px 8px;
}
.cards.compact button:disabled .pay-action {
  background: #aebbb7;
}
.notice {
  background: #e3f7ef;
  border: 1px solid #9ddfc9;
  border-radius: 14px;
  padding: 22px;
}
.notice code {
  display: block;
  margin: 14px 0;
  word-break: break-all;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 650;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.settings-grid h2 {
  font-size: 26px;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  margin: 18px 0 24px;
}
.new-key-notice { margin: 8px 0 24px; scroll-margin-top: 110px; }
.new-key-notice:focus { outline: 3px solid #087f6840; outline-offset: 4px; }
.fresh-key-highlight { animation: key-pulse 0.8s ease-in-out 2; }
.copy-status { color: var(--brand); display: inline-block; font-weight: 700; margin-left: 12px; }
.key-guide { background: #f7faf9; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0 24px; padding: 18px 20px; }
.key-guide summary { cursor: pointer; font-size: 18px; font-weight: 750; }
.key-guide-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.key-guide-grid article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.key-guide-grid h3 { font-size: 18px; margin: 0 0 10px; }
.key-guide-grid p, .key-guide-grid li { color: var(--muted); line-height: 1.7; }
.key-guide-grid ol { margin: 0; padding-left: 22px; }
.key-warning { color: #8a4b17; font-weight: 700; margin-bottom: 0; }
@keyframes key-pulse { 50% { box-shadow: 0 0 0 7px #0aa77d25; transform: translateY(-2px); } }
@media (max-width: 760px) {
  .nav nav > a {
    display: none;
  }
  .hero {
    margin-top: 55px;
  }
  .claude-recovery-notice { align-items: stretch; flex-direction: column; margin: 0 16px 34px; padding: 22px 20px; }
  .claude-recovery-notice h2 { font-size: 24px; }
  h1 {
    font-size: 44px;
  }
  .features,
  .cards,
  .metrics,
  .docs,
  .settings-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }
  .section .cards,
  .model-cards {
    grid-template-columns: 1fr;
  }
  .section {
    margin: 80px auto;
  }
  .metrics {
    padding: 0;
  }
  .nav nav {
    gap: 10px;
  }
  .cards.compact {
    grid-template-columns: 1fr;
  }
  .cards.compact button {
    min-height: 150px;
  }
  .cards.compact .pay-action {
    font-size: 16px;
  }
  .key-guide-grid { grid-template-columns: 1fr; }
  .copy-status { display: block; margin: 10px 0 0; }
  .usage-overview-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .usage-period-tabs {
    align-self: flex-start;
  }
  .usage-period-tabs button {
    min-width: 50px;
    padding: 9px 12px;
  }
  .usage-overview-grid {
    grid-template-columns: 1fr;
  }
  .usage-insight-card,
  .usage-insight-card:nth-child(odd),
  .usage-insight-card:nth-last-child(-n + 2) {
    min-height: 205px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .usage-insight-card:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 1080px) {
  .dashboard-main {
    max-width: 1080px;
  }
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    max-height: none;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 18px #10212f14;
  }
  .dashboard-sidebar-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .dashboard-toc {
    display: flex;
    width: max-content;
  }
  .dashboard-toc a {
    white-space: nowrap;
  }
  .dashboard-toc a.active::before {
    top: auto;
    right: 12px;
    bottom: 3px;
    left: 12px;
    width: auto;
    height: 3px;
  }
  .dashboard-content > [id] {
    scroll-margin-top: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-toc a {
    transition: none;
  }
}

.founder-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: center;
  padding: 46px 54px;
  border: 1px solid #bfd8d0;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbfa 0%, #e5f3ee 100%);
  text-align: left;
  box-shadow: 0 24px 60px #10212f0d;
}
.founder-promo h2 { margin: 12px 0; }
.founder-promo p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.founder-promo .actions { justify-content: flex-start; margin: 24px 0 14px; }
.founder-promo > div > small { color: #6e5a2f; line-height: 1.55; }
.founder-promo-number { color: var(--brand); font-size: 72px; letter-spacing: -.07em; line-height: .85; text-align: center; }
.founder-promo-number > span { display: block; margin-top: 20px; color: var(--ink); font-size: 14px; letter-spacing: .02em; line-height: 1.3; }
.referral-reward-pilot { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); gap: 42px; align-items: center; border: 1px solid #b8ddcf; background: linear-gradient(135deg,#f2faf7,#fff9e9); }
.referral-reward-pilot h2 { margin: 10px 0 14px; }
.referral-reward-pilot p { color: var(--muted); line-height: 1.7; }
.referral-reward-pilot .actions { justify-content: flex-start; margin: 22px 0 0; }
.referral-reward-terms { padding: 13px 15px; border-left: 4px solid #c69438; border-radius: 0 10px 10px 0; background: #fff9e8; font-size: 13px; }
.referral-live-card { display: grid; gap: 10px; padding: 26px; border-radius: 18px; background: #103b35; color: #fff; box-shadow: 0 16px 35px #102f2925; }
.referral-live-card > span,.referral-live-card small { color: #c9e2da; }
.referral-live-card > strong { font-size: 58px; line-height: 1; }
.referral-live-card small { display: block; }
.referral-live-card small b { color: #fff; }
.referral-live-card em { width: max-content; margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: #75d7b7; color: #103b35; font-size: 12px; font-style: normal; font-weight: 850; }
.founder-sidebar-link { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; margin: 0 0 10px; padding: 10px; border: 1px solid #bedbd2; border-radius: 11px; background: #edf8f4; color: var(--brand); font-size: 13px; }
.founder-sidebar-link > span { display: grid; place-items: center; width: 38px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 850; }
.founder-sidebar-link b { line-height: 1.25; }
.doctor-sidebar-link { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; margin: 0 0 10px; padding: 10px; border: 1px solid #b9d8cf; border-radius: 11px; background: #133e33; color: #fff; font-size: 13px; }
.doctor-sidebar-link > span { display: grid; place-items: center; width: 38px; height: 32px; border-radius: 8px; background: #e1f3ed; color: var(--brand); font-size: 12px; font-weight: 900; }
.doctor-sidebar-link b { line-height: 1.25; }

.founder-page { background: #f3f6f5; }
.founder-main { max-width: 1180px; margin: 48px auto 90px; padding: 0 24px; }
.founder-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); gap: 58px; align-items: center; min-height: 430px; padding: 54px; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 90% 5%, #5bc9aa45 0, transparent 33%), linear-gradient(135deg, #102b2a 0%, #174a41 100%); color: #fff; box-shadow: 0 24px 80px #10212f22; }
.founder-hero .eyebrow { color: #79e0c1; }
.founder-hero h1 { max-width: 700px; margin: 14px 0 18px; font-size: clamp(42px, 5vw, 68px); }
.founder-hero-copy > p { max-width: 700px; margin: 0; color: #cee1dc; font-size: 17px; line-height: 1.8; }
.founder-status-line { min-height: 28px; margin: 18px 0 4px; }
.founder-actions { justify-content: flex-start; margin: 28px 0 0; }
.founder-actions .primary { background: #70d9bb; color: #102b2a; }
.founder-actions .secondary { background: #ffffff18; color: #fff; border: 1px solid #ffffff38; }
.founder-seat-card { padding: 28px; border: 1px solid #ffffff30; border-radius: 20px; background: #ffffff10; backdrop-filter: blur(12px); }
.founder-seat-label { display: block; color: #c8ddd7; font-size: 13px; font-weight: 700; }
.founder-seat-card > strong { display: block; margin: 12px 0 18px; font-size: 50px; letter-spacing: -.05em; }
.founder-seat-card > strong small { color: #aac7bf; font-size: 20px; }
.founder-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #ffffff20; }
.founder-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #70d9bb, #f4d28a); transition: width .5s ease; }
.founder-seat-meta, .referral-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.founder-seat-meta > span, .referral-metrics > span { display: grid; gap: 4px; }
.founder-seat-meta b { font-size: 22px; }
.founder-seat-meta small { color: #b9d0ca; }
.founder-seat-card p { margin: 22px 0 0; color: #b9d0ca; font-size: 12px; }
.founder-badge { display: inline-flex; align-items: center; width: max-content; padding: 7px 11px; border-radius: 999px; background: #f3d58a; color: #4e3a0e; font-size: 12px; font-weight: 850; }
.founder-badge-confirmed { background: #6fddbd; color: #0d3c34; }
.founder-badge-paused, .founder-badge-revoked { background: #ffd4cf; color: #7a271a; }
.founder-badge-outline { border: 1px solid #a9d6ca; background: #edf8f4; color: var(--brand); }
.founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 28px 0; }
.founder-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 34px #10212f09; }
.founder-card h2 { margin: 8px 0 12px; font-size: 28px; }
.founder-card h3 { font-size: 20px; }
.founder-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.founder-number, .founder-year { color: var(--brand); font-size: 25px; font-weight: 850; }
.founder-checklist { margin: 24px 0; }
.founder-checklist > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf1ef; }
.founder-checklist dt { color: #3e4d55; }
.founder-checklist dd { margin: 0; font-size: 13px; font-weight: 800; }
.check-yes { color: var(--brand); }
.check-yes::before { content: "✓ "; }
.check-wait { color: #97733c; }
.check-wait::before { content: "○ "; }
.founder-date { margin: 0; color: var(--muted); font-size: 13px; }
.founder-date + .founder-date { margin-top: 7px; }
.founder-date code { font-size: 11px; }
.referral-code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 18px; padding: 16px 18px; border: 1px dashed #91bfb3; border-radius: 13px; background: #f3f9f7; }
.referral-code-box code { color: var(--brand); font-size: 25px; font-weight: 850; letter-spacing: .08em; }
.share-link-label { font-size: 13px; }
.share-link-row { display: flex; gap: 9px; }
.share-link-row input { min-width: 0; flex: 1; background: #f8faf9; font-size: 13px; }
.copy-feedback { min-height: 20px; margin: 8px 0; color: var(--brand); font-size: 13px; }
.referral-metrics > span { padding: 15px; border-radius: 12px; background: #f6f8f7; }
.referral-metrics b { font-size: 24px; }
.referral-metrics small { color: var(--muted); }
.founder-contribution { margin: 0 0 28px; scroll-margin-top: 22px; }
.membership-journey { margin: 0 0 28px; scroll-margin-top: 22px; }
.journey-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.journey-steps article { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf9; }
.journey-steps article > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dfe8e5; color: #52616b; font-weight: 850; }
.journey-steps article b, .journey-steps article small { display: block; }
.journey-steps article small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.journey-steps article.done { border-color: #9ddfc9; background: #f0faf6; }
.journey-steps article.done > span { background: #8dd9c1; color: #0c4a3d; }
.journey-steps article.done > span::after { content: "✓"; }
.journey-steps article.done > span { font-size: 0; }
.journey-steps article.done > span::after { font-size: 16px; }
.journey-steps article.current { border: 2px solid var(--brand); background: #edf8f4; box-shadow: 0 8px 20px #087f6812; }
.journey-steps article.current > span { background: var(--brand); color: #fff; }
.journey-steps article.inactive { opacity: .65; }
.next-milestone { padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: #f0f7f5; }
.next-milestone p { margin: 6px 0 0; color: #3f514f; line-height: 1.65; }
.audit-heading { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.audit-heading h3, .audit-heading p { margin: 0; }
.membership-journey table { min-width: 760px; }
.membership-journey td code { font-size: 11px; overflow-wrap: anywhere; }
.contribution-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 34px; }
.contribution-metrics article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; }
.contribution-metrics article > span, .contribution-metrics small { display: block; color: var(--muted); font-size: 12px; }
.contribution-metrics strong { display: block; margin: 8px 0 6px; font-size: 25px; }
.weight-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.weight-layout h3 { margin: 0 0 10px; }
.weight-list { display: grid; gap: 14px; }
.weight-list > div > span { display: flex; justify-content: space-between; margin-bottom: 7px; color: #415059; font-size: 13px; }
.weight-list i { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #e9efed; }
.weight-list i::after { display: block; width: var(--weight); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #59c6a7); content: ""; }
.contribution-history { margin-bottom: 28px; }
.contribution-history table { min-width: 720px; }
.contribution-history td { vertical-align: middle; }
.empty-ledger { padding: 34px !important; text-align: center; color: var(--muted); }
.ledger-recorded { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e8f6f1; color: var(--brand); font-size: 12px; font-weight: 750; }
.program-rules { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: center; scroll-margin-top: 22px; }
.program-rules > div:first-child p { color: var(--muted); line-height: 1.7; }
.pool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pool-grid article { display: grid; gap: 5px; padding: 20px; border-radius: 14px; background: #f2f8f6; }
.pool-grid strong { color: var(--brand); font-size: 34px; }
.pool-grid small { color: var(--muted); line-height: 1.5; }
.founder-legal { margin-top: 28px; padding: 22px 25px; border: 1px solid #e4c98c; border-left: 5px solid #c69438; border-radius: 14px; background: #fff8e8; }
.founder-legal p { margin: 8px 0 0; color: #65522d; font-size: 13px; line-height: 1.7; }
.program-implementation { margin-bottom: 28px; background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%); scroll-margin-top: 22px; }
.implementation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.implementation-grid > article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.implementation-grid ul { margin: 14px 0 0; padding-left: 20px; }
.implementation-grid li { margin: 8px 0; color: var(--muted); }
.implementation-live { border-color: #b9decf !important; box-shadow: inset 0 3px 0 #2f9d74; }
.implementation-building { border-color: #ead7aa !important; box-shadow: inset 0 3px 0 #d6a53c; }
.implementation-status-label { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.implementation-status-label > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e7f5ef; color: #18714f; font-weight: 900; }
.implementation-building .implementation-status-label > span { background: #fff4d9; color: #815d11; }
.implementation-boundary { margin: 18px 0 0; padding: 14px 16px; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; background: #edf7f9; color: #173b4a; font-weight: 650; }
.operations-patch { margin-bottom: 28px; scroll-margin-top: 22px; }
.operations-patch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.operations-patch-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.operations-patch-grid h3 { margin: 12px 0 8px; }
.operations-patch-grid p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.operations-patch-grid a { color: var(--brand); font-size: 13px; font-weight: 800; }
.operations-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.operations-status.status-live { background: #dff5eb; color: #176347; }
.operations-status.status-building { background: #fff0c7; color: #765512; }
.founder-account-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 22px; padding: 20px 22px; border: 1px solid #c8dde8; border-left: 5px solid var(--brand); border-radius: 14px; background: linear-gradient(135deg, #f5fafc, #eef7f8); }
.founder-account-notice h2 { margin: 4px 0 6px; color: var(--navy); font-size: 20px; }
.founder-account-notice p { margin: 0; color: var(--muted); }
.founder-account-notice > a { flex: none; }
.connection-doctor-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 22px; padding: 22px 24px; border: 1px solid #acd6c8; border-radius: 15px; background: linear-gradient(135deg, #eff9f5, #f9fcfb); box-shadow: 0 10px 28px #087f680d; }
.connection-doctor-card h2 { margin: 5px 0 7px; font-size: 21px; }
.connection-doctor-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.connection-doctor-card > a { flex:none; }
.founder-load-error { margin: 24px 0; }
.identity-card { margin: 0 0 28px; scroll-margin-top: 22px; }
.identity-badge-pending_review { background: #fff0c8; color: #765514; }
.identity-badge-review_required, .identity-badge-rejected { background: #ffd9d3; color: #7a271a; }
.identity-badge-verified { background: #d6f5e9; color: #0b654b; }
.identity-badge-not_submitted, .identity-badge-withdrawn { border: 1px solid #cbd8d4; background: #f3f6f5; color: #53645f; }
.identity-summary { margin: 22px 0; padding: 20px; border: 1px solid #c9ded7; border-radius: 14px; background: #f4faf8; }
.identity-summary > strong { display: block; color: #284842; line-height: 1.65; }
.identity-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 18px 0 0; }
.identity-summary dl > div { min-width: 0; }
.identity-summary dt { color: var(--muted); font-size: 12px; }
.identity-summary dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.identity-summary code { font-size: 10px; }
.identity-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.identity-form > label { display: grid; align-content: start; gap: 7px; color: #33484a; font-size: 13px; font-weight: 750; }
.identity-form > label small { color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.5; }
.identity-form input, .identity-form select { width: 100%; background: #fbfcfc; }
.identity-consent { display: flex !important; grid-column: 1 / -1; align-items: flex-start; gap: 12px !important; padding: 17px; border: 1px solid #e3d5b1; border-radius: 12px; background: #fffbf0; font-weight: 500 !important; line-height: 1.65; }
.identity-consent input { width: 18px; margin-top: 4px; flex: none; }
.identity-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 18px; }
.identity-actions p { margin: 0; color: var(--brand); font-size: 13px; }
.identity-privacy { margin-top: 24px; padding: 17px 20px; border-left: 4px solid #688b99; border-radius: 0 12px 12px 0; background: #f2f7f9; }
.identity-privacy p { margin: 6px 0 0; color: #52656d; font-size: 13px; line-height: 1.7; }
.identity-history-table { min-width: 700px; }
.identity-history-table td small { display: block; margin-top: 4px; }

@media (max-width: 900px) {
  .founder-promo, .referral-reward-pilot, .founder-hero, .founder-grid, .program-rules, .weight-layout, .implementation-grid, .operations-patch-grid { grid-template-columns: 1fr; }
.founder-promo-number { font-size: 58px; }
  .founder-hero { gap: 34px; padding: 38px; }
  .contribution-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .founder-promo { margin-right: 16px; margin-left: 16px; padding: 30px 24px; }
  .referral-reward-pilot { margin-right: 16px; margin-left: 16px; padding: 30px 24px; }
  .founder-promo .actions { align-items: stretch; flex-direction: column; margin-right: 0; margin-left: 0; }
  .referral-reward-pilot .actions { align-items: stretch; flex-direction: column; }
  .founder-main { margin-top: 20px; padding: 0 14px; }
  .founder-hero { min-height: 0; padding: 28px 22px; border-radius: 20px; }
  .founder-hero h1 { font-size: 38px; }
  .founder-hero-copy > p { font-size: 15px; }
  .founder-actions { align-items: stretch; flex-direction: column; margin-right: 0; margin-left: 0; }
  .founder-card { padding: 24px 20px; }
  .founder-card-heading { flex-direction: column; gap: 10px; }
  .contribution-metrics, .pool-grid, .journey-steps { grid-template-columns: 1fr; }
  .identity-form, .identity-summary dl { grid-template-columns: 1fr; }
  .identity-actions { align-items: stretch; flex-direction: column; }
  .share-link-row { align-items: stretch; flex-direction: column; }
  .referral-code-box code { font-size: 20px; }
  .founder-account-notice { align-items: flex-start; flex-direction: column; }
  .founder-account-notice > a { width: 100%; text-align: center; }
  .connection-doctor-card { align-items: flex-start; flex-direction: column; }
  .connection-doctor-card > a { width: 100%; text-align: center; }
}
@media (max-width: 1080px) {
  .dashboard-sidebar { display: flex; align-items: center; gap: 8px; }
  .founder-sidebar-link { flex: 0 0 auto; margin: 0; }
}

/* First-party web support */
.support-unread-badge,.support-unread{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:999px;background:#d63b37;color:#fff;font-size:11px;font-style:normal;font-weight:850;line-height:1}.support-unread-badge[hidden]{display:none}
.notification-center{position:relative;z-index:50}.notification-toggle{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:#29433e;cursor:pointer;transition:border-color 160ms ease,background 160ms ease,transform 160ms ease}.notification-toggle:hover,.notification-toggle[aria-expanded="true"]{border-color:#77ad9e;background:#edf7f3}.notification-toggle:active{transform:translateY(1px)}.notification-toggle:focus-visible{outline:3px solid #087f6840;outline-offset:2px}.notification-toggle img{width:22px;height:22px;opacity:.82}.notification-count{position:absolute;top:-6px;right:-7px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid var(--bg);border-radius:999px;background:#d63b37;color:#fff;font-size:10px;font-weight:850;line-height:1}.notification-count[hidden]{display:none}.notification-panel{position:absolute;top:50px;right:0;width:min(410px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 96px));overflow:hidden;border:1px solid #cbdad5;border-radius:18px;background:#fff;box-shadow:0 22px 60px #10212f2b;color:var(--ink)}.notification-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 20px 16px;border-bottom:1px solid var(--line)}.notification-panel>header>div{display:grid;gap:4px}.notification-panel>header b{font-size:17px}.notification-panel>header small{color:var(--muted);font-size:11px}.notification-read-all{flex:none;padding:5px 0;border:0;background:none;color:var(--brand);font-size:12px;font-weight:800;cursor:pointer}.notification-read-all:disabled{color:#9aaba6;cursor:default}.notification-list{max-height:500px;overflow:auto}.notification-item{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px 18px;border:0;border-bottom:1px solid #edf1ef;background:#fff;color:inherit;text-align:left;cursor:pointer}.notification-item:hover,.notification-item:focus-visible{background:#f4faf7;outline:0}.notification-item.unread{background:#f7fcfa}.notification-item.unread:before{position:absolute;top:22px;left:8px;width:6px;height:6px;border-radius:50%;background:var(--brand);content:""}.notification-kind{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:24px;padding:0 8px;border-radius:999px;background:#e8f0ed;color:#49635c;font-size:10px;font-weight:850}.notification-item[data-kind="support"] .notification-kind{background:#e3edff;color:#315f9c}.notification-item[data-kind="promotion"] .notification-kind{background:#def6ea;color:#176347}.notification-item[data-kind="pricing"] .notification-kind,.notification-item[data-kind="budget"] .notification-kind,.notification-item[data-kind="balance"] .notification-kind{background:#fff0c7;color:#765512}.notification-item[data-severity="critical"] .notification-kind{background:#ffe1de;color:#9b2c24}.notification-copy{display:grid;gap:5px;min-width:0}.notification-copy b{font-size:13px;line-height:1.4}.notification-copy p{display:-webkit-box;margin:0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.notification-copy time{color:#8b9995;font-size:10px}.notification-empty{margin:0;padding:34px 22px;color:var(--muted);text-align:center}.notification-panel>footer{padding:13px 18px;background:#f7faf9;text-align:center}.notification-panel>footer a{color:var(--brand);font-size:12px;font-weight:800}
.support-main{display:grid;gap:24px}.support-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:38px 42px;border-radius:24px;background:linear-gradient(135deg,#102b2a,#176054);color:#fff}.support-hero h1{margin:8px 0 10px}.support-hero p{max-width:720px;margin:0;color:#d2e8e1;font-size:17px}.support-summary{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:12px}.support-summary article{min-width:120px;padding:18px;border:1px solid #ffffff2b;border-radius:14px;background:#ffffff12}.support-summary strong{display:block;font-size:32px}.support-summary span{color:#cce1dc;font-size:13px}
.support-ticket-form{display:grid;grid-template-columns:180px 180px minmax(0,1fr);gap:16px}.support-ticket-form label,.ticket-thread-panel form label{display:grid;gap:7px;color:#34494b;font-size:13px;font-weight:750}.support-ticket-form select,.support-ticket-form input,.support-ticket-form textarea,.ticket-thread-panel textarea{width:100%;background:#fbfcfc}.support-subject{grid-column:auto}.support-message{grid-column:1/-1}.support-submit-row{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:22px}.support-submit-row .key-warning{margin:0}.support-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(420px,1.15fr);gap:24px;align-items:start}.ticket-list{display:grid;gap:10px;margin-top:18px}.ticket-list-item{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:15px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.ticket-list-item:hover,.ticket-list-item.active{border-color:#72ae9b;background:#f2faf7}.ticket-list-item>span{display:grid;gap:5px}.ticket-list-item>span:last-child{justify-items:end}.ticket-list-item small{color:var(--muted);font-size:11px}.support-status{display:inline-flex;width:max-content;padding:5px 9px;border-radius:999px;background:#e7eef1;color:#39515c;font-size:12px;font-style:normal;font-weight:750}.status-open{background:#fff0c7;color:#765512}.status-in_progress{background:#dcecff;color:#245a8b}.status-pending_customer{background:#efe4ff;color:#673c91}.status-resolved{background:#d9f3e8;color:#176347}.status-closed{background:#e8eceb;color:#56625f}.ticket-thread-panel{position:sticky;top:20px}.ticket-messages{display:grid;gap:13px;max-height:540px;margin:20px 0;overflow:auto}.ticket-message{max-width:86%;padding:14px 16px;border-radius:14px;background:#f1f4f4}.ticket-message.from-customer{justify-self:end;background:#e7f4ef}.ticket-message>div{display:flex;align-items:center;justify-content:space-between;gap:18px}.ticket-message time{color:var(--muted);font-size:11px}.ticket-message p{margin:8px 0 0;line-height:1.65;overflow-wrap:anywhere}.ticket-thread-panel form{display:grid;gap:12px}.support-backup{border-left:5px solid #7a959e}.support-backup p{margin-bottom:0;color:var(--muted)}
@media(max-width:900px){.support-hero{align-items:flex-start;flex-direction:column}.support-ticket-form{grid-template-columns:1fr 1fr}.support-subject{grid-column:1/-1}.support-layout{grid-template-columns:1fr}.ticket-thread-panel{position:static}}
@media(max-width:620px){.support-hero{padding:28px 22px}.support-summary,.support-ticket-form{grid-template-columns:1fr}.support-subject,.support-message,.support-submit-row{grid-column:1}.support-submit-row{align-items:stretch;flex-direction:column}.ticket-list-item{align-items:flex-start;flex-direction:column}.ticket-list-item>span:last-child{justify-items:start}.ticket-message{max-width:95%}}
@media(max-width:760px){.notification-panel{position:fixed;top:66px;right:12px;left:12px;width:auto;max-height:calc(100vh - 84px)}.notification-list{max-height:calc(100vh - 205px)}}

@media (max-width: 760px) {
  body.home-page .nav {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  body.home-page .brand {
    width: 100%;
    text-align: center;
  }
  body.home-page .nav nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  body.home-page .nav nav > a[href="/services.html"],
  body.home-page .nav nav > a[href="/radar.html"] {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #b7d8cc;
    border-radius: 9px;
    background: #eaf7f2;
    color: var(--brand);
    font-weight: 750;
  }
  body.home-page .nav nav > button {
    min-height: 44px;
    padding-right: 8px;
    padding-left: 8px;
  }
  body.home-page .language-switch {
    grid-column: 1 / -1;
    justify-self: center;
  }
  body.home-page .hero {
    margin-top: 32px;
  }
  body.home-page .studio-site-promo {
    margin-top: 36px;
    margin-bottom: 52px;
  }
}
