:root {
  --ink: #30353a;
  --muted: #6c747b;
  --line: #e5e8ea;
  --soft: #f5f6f7;
  --blue: #0797e6;
  --orange: #f06422;
  --yellow: #fff7c7;
  --green: #4c8b2d;
  --red: #a43d31;
  --max: 920px;
  color-scheme: light;
  font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #666; font-size: 14px; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: #3d5262; text-decoration: none; border-bottom: 1px solid #e5e8ea; }
a:hover { color: var(--orange); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code { color: #8f5730; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: -60px; left: 14px; z-index: 100; padding: 9px 13px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 12px; }
#site-shell { min-height: 100vh; background: #fff linear-gradient(#f3f5f6, #fff 150px) no-repeat; }
.site-header { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding-top: 48px; border-bottom: 2px solid #edf0f1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; }
.brand { border: 0; color: #676d72; font-size: 34px; font-weight: 400; letter-spacing: -2px; line-height: 1; }
.brand:hover { color: #676d72; }
.brand-accent { color: var(--blue); font-weight: 800; }
.public-nav { grid-column: 1 / -1; display: flex; justify-content: center; gap: 24px; padding: 10px 0 11px; font-size: 14px; font-weight: 700; }
.public-nav a { border: 0; }
.nav-actions { position: absolute; top: 48px; right: max(16px, calc((100% - var(--max)) / 2)); display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }

.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border: 1px solid #ca4f17; border-radius: 4px; background: var(--orange); color: #fff; font-weight: 700; cursor: pointer; box-shadow: inset 0 1px rgb(255 255 255 / 20%); }
.button:hover { color: #fff; background: #d9551c; }
.button:disabled { cursor: wait; opacity: .55; }
.button-small { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.button-quiet, .button-outline { color: #52616b; background: #fff; border-color: #d8dde0; box-shadow: none; }
.button-quiet:hover, .button-outline:hover { color: var(--orange); background: #fff; border-color: #cbd1d4; }
.button-danger { background: var(--red); border-color: #853027; }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgb(7 151 230 / 25%); outline-offset: 2px; }

.classic-page { width: min(calc(100% - 32px), 820px); margin: 0 auto; padding: 56px 0 90px; }
.classic-intro { margin: 0 auto 42px; max-width: 760px; padding: 0 28px; color: #111; font-size: clamp(22px, 4vw, 30px); line-height: 1.25; }
.classic-intro p { margin: 0; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.directory-grid h2, .explain-block h2, .feature-columns h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--yellow); font-size: 17px; }
.directory-list { margin: 0; padding: 0; list-style: none; }
.directory-list li { position: relative; margin: 12px 0; padding-left: 22px; font-size: 14px; line-height: 1.25; }
.directory-list li::before { content: "↔"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.explain-block { margin: 58px auto 32px; max-width: 730px; }
.explain-block h2 { margin-top: 32px; }
.explain-block p, .prose-page > p, .docs-body p, .docs-body li { color: #4e565c; }
.protocol-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 38px 0; padding: 18px; border-block: 1px solid var(--line); background: var(--soft); font: 12px ui-monospace, monospace; }
.protocol-strip b { color: var(--orange); }
.beta-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-left: 4px solid var(--orange); background: #fff9ed; }
.beta-callout p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.page-kicker, .eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prose-page h1, .page-hero h1, .docs-body h1 { margin: 10px 0 16px; color: #1f2428; font-size: clamp(36px, 7vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 720px; font-size: 19px; line-height: 1.5; }
.feature-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin: 46px 0; }
.prose-page > h2 { margin-top: 52px; padding-bottom: 8px; border-bottom: 2px solid var(--yellow); font-size: 23px; }
.onboarding-steps { margin: 22px 0 38px; padding: 0; list-style: none; }
.onboarding-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.onboarding-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.onboarding-steps p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.risk-note { margin: 36px 0; padding: 18px 20px; border-left: 4px solid var(--orange); background: #fff7e8; }
.risk-note p { margin: 4px 0 0; }
.next-links { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.package-pending { color: var(--muted); font-size: 11px; font-style: italic; }

.page-hero { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 64px 0 22px; }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 17px; }
.section { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 54px 0 88px; }
.section-tight-top { padding-top: 18px; }
.pricing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.price-card { padding: 25px; border: 1px solid var(--line); background: #fff; }
.price-card.primary { border-top: 4px solid var(--blue); }
.price-card h2 { margin: 8px 0; font-size: 27px; }
.price-card > p, .pricing-note { color: var(--muted); }
.price-list { margin-top: 24px; border-top: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.price-row strong { text-align: right; }
.pricing-note { margin: 22px 0; font-size: 11px; }

.docs-layout { width: min(calc(100% - 32px), 960px); margin: 0 auto; padding: 54px 0 100px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; }
.docs-nav { position: sticky; top: 20px; align-self: start; display: grid; }
.docs-nav a { padding: 9px 0; font-size: 12px; }
.docs-body { min-width: 0; }
.docs-body h2 { margin: 44px 0 10px; padding-bottom: 7px; border-bottom: 2px solid var(--yellow); font-size: 21px; }
.docs-body h3 { margin-top: 28px; }
.docs-body table { margin-top: 18px; }
.docs-index { display: grid; gap: 10px; margin: 32px 0; }
.docs-index a { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); }
.docs-index strong { color: var(--blue); font-size: 16px; }
.docs-index span { color: var(--muted); font-size: 12px; }
.code-block { position: relative; margin: 18px 0; padding: 18px; overflow: auto; border-left: 4px solid var(--blue); background: #f4f5f6; color: #34434e; font-size: 12px; line-height: 1.65; white-space: pre; }
.code-label { display: block; margin-bottom: 8px; color: var(--orange); font-family: "Trebuchet MS", sans-serif; font-weight: 800; }

.join-choice { max-width: 780px; }
.join-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.join-cards > a { display: block; min-height: 210px; padding: 25px; border: 1px solid var(--line); }
.join-cards > a:hover { border-color: var(--orange); }
.join-cards span { color: var(--orange); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.join-cards strong { display: block; margin: 28px 0 8px; color: var(--blue); font-size: 24px; }
.join-cards p { color: var(--muted); }
.join-help { margin-top: 24px; text-align: center; color: var(--muted); }

.auth-layout { width: min(calc(100% - 32px), 900px); margin: 0 auto; padding: 62px 0 95px; display: grid; grid-template-columns: 1fr 390px; gap: 58px; align-items: start; }
.auth-copy h1 { margin: 10px 0 18px; font-size: clamp(36px, 6vw, 54px); line-height: 1.03; letter-spacing: -.045em; }
.auth-copy > p { color: var(--muted); font-size: 16px; }
.auth-copy .onboarding-steps { margin-top: 32px; }
.auth-proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-block: 1px solid var(--line); }
.auth-proof div { padding: 16px 8px; text-align: center; }
.auth-proof strong { display: block; color: var(--blue); font-size: 22px; }
.auth-proof span { color: var(--muted); font-size: 10px; }
.auth-card { padding: 26px; border: 1px solid #dfe3e5; background: #fff; box-shadow: 0 10px 35px rgb(26 38 46 / 8%); }
.auth-card h2 { margin: 0; font-size: 25px; }
.auth-card > p { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd5d8; border-radius: 3px; background: #fff; color: var(--ink); }
.field small { color: var(--muted); font-size: 10px; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; color: var(--muted); font-size: 11px; }
.check-row input { margin-top: 3px; accent-color: var(--blue); }
.form-error { display: none; padding: 11px; color: var(--red); background: #fff1ee; font-size: 11px; }
.form-error.visible { display: block; }
.private-beta { padding: 16px; border-left: 4px solid var(--orange); background: #fff8ea; color: var(--muted); font-size: 12px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

.dashboard-shell { width: min(calc(100% - 32px), 1120px); margin: 0 auto; padding: 42px 0 88px; }
.dashboard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.dashboard-top h1 { margin: 6px 0 0; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.045em; line-height: 1; }
.dashboard-tabs { display: flex; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--soft); }
.dashboard-tabs button { min-height: 36px; padding: 0 13px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.dashboard-tabs button.active { color: #fff; background: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.metric-card, .panel { border: 1px solid var(--line); background: #fff; }
.metric-card { grid-column: span 3; min-height: 150px; padding: 20px; display: flex; flex-direction: column; }
.metric-card.acid { border-top: 4px solid var(--blue); }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.metric-value { margin-top: auto; font-size: 31px; font-weight: 800; letter-spacing: -.04em; }
.metric-status { font-size: 23px; }
.metric-foot { color: var(--muted); font-size: 10px; }
.panel { grid-column: span 12; padding: 22px; }
.panel.half { grid-column: span 6; }
.panel.third { grid-column: span 4; }
.panel.two-thirds { grid-column: span 8; }
.panel-key-reveal { margin-bottom: 12px; border-left: 4px solid var(--orange); background: #fffaf0; }
.panel-loading { height: 250px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 18px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 9px 7px; border-bottom: 2px solid var(--line); color: var(--muted); text-align: left; white-space: nowrap; }
td { padding: 12px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; color: #8b650d; background: #fff8df; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.good { color: var(--green); background: #eef7e9; }
.status.bad { color: var(--red); background: #fff0ed; }
.empty-state { min-height: 150px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--ink); }
.empty-state p { margin: 4px 0 0; font-size: 11px; }
.key-secret { padding: 15px; overflow-wrap: anywhere; background: #333; color: #fff; font: 11px/1.6 ui-monospace, monospace; }
.key-warning { margin-bottom: 0; padding: 10px; color: #75551b; background: var(--yellow); font-size: 10px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.inline-form-spaced { margin-top: 12px; }
.setup-card { padding: 18px; background: #343a3e; color: #fff; }
.setup-card p { color: #c9ced1; font-size: 11px; }
.setup-card code { color: #ffbf8d; }
.seller-checks { display: grid; }
.seller-check { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.seller-check span:first-child { color: var(--muted); }
.skeleton { color: transparent; background: var(--soft); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgb(25 31 34 / 55%); }
.modal { width: min(100%, 500px); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; background: #fff; }
.modal h2 { margin: 0; font-size: 25px; }
.modal > p { color: var(--muted); font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 7px; }
.toast { max-width: 360px; padding: 12px 14px; color: #fff; background: #333; font-size: 11px; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); }
.toast.error { background: var(--red); }

.legal { width: min(calc(100% - 32px), 740px); margin: 0 auto; padding: 70px 0 100px; }
.legal h1 { font-size: 50px; letter-spacing: -.05em; }
.legal h2 { margin-top: 42px; padding-bottom: 8px; border-bottom: 2px solid var(--yellow); }
.legal p, .legal li { color: var(--muted); }
.legal-notice { padding: 18px; border-left: 4px solid var(--orange); background: #fff8ea; }

.site-footer { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 35px 0 50px; border-top: 2px solid #edf0f1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 28px; }
.footer-brand { font-size: 20px; letter-spacing: -1px; }
.site-footer p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; }
.footer-note { text-align: right; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 14px; }
  .brand { font-size: 29px; }
  .public-nav, .nav-actions { display: none; }
  .menu-button { display: block; }
  .site-header.open .public-nav, .site-header.open .nav-actions { position: static; display: flex; grid-column: 1 / -1; align-items: flex-start; }
  .site-header.open .public-nav { flex-direction: column; gap: 9px; }
  .site-header.open .nav-actions { flex-wrap: wrap; }
  .directory-grid, .pricing-grid, .feature-columns, .join-cards { grid-template-columns: 1fr; }
  .directory-grid { gap: 34px; }
  .auth-layout { grid-template-columns: 1fr; gap: 35px; }
  .auth-card { width: min(100%, 500px); }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 16px; }
  .docs-nav a { white-space: nowrap; }
  .metric-card { grid-column: span 6; }
  .panel.half, .panel.third, .panel.two-thirds { grid-column: span 12; }
  .dashboard-top { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-note { text-align: left; }
}

@media (max-width: 540px) {
  .site-header { padding-top: 30px; }
  .classic-page, .page-hero, .section, .auth-layout, .docs-layout, .dashboard-shell, .legal, .site-footer { width: min(calc(100% - 24px), var(--max)); }
  .classic-page { padding-top: 42px; }
  .classic-intro { padding: 0; font-size: 22px; }
  .beta-callout, .next-links { align-items: flex-start; flex-direction: column; }
  .protocol-strip { justify-content: flex-start; }
  .auth-copy { display: none; }
  .auth-card { padding: 21px 17px; }
  .metric-card { grid-column: span 12; min-height: 125px; }
  .panel { padding: 17px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .dashboard-tabs { width: 100%; }
  .inline-form { display: grid; width: 100%; }
  .inline-form .button { width: 100%; }
  .site-footer { padding-bottom: 35px; }
}

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