:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #16312d;
  background: #f8faf7;
  --accent: #09634b;
  --border: #d6e1d9;
  --muted: #52665c;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #073c2f; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 3px solid #c07b00;
  outline-offset: 4px;
}

.site-header, main, footer { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 6rem;
  border-bottom: 1px solid var(--border);
}
.brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.brand span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { font-size: 0.9rem; }
[hidden] { display: none; }

.skip-link { position: absolute; top: -8rem; left: 1rem; padding: 0.7rem; background: white; }
.skip-link:focus { top: 1rem; z-index: 1; }
section { margin-block: 3rem; }
.hero { padding-block: 2rem; max-width: 820px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.eyebrow span { margin-left: 0.5rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.25rem); margin-block: 1rem 1.5rem; overflow-wrap: anywhere; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 750px; }
p { overflow-wrap: anywhere; }
.button, button {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 0.4rem;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 650;
  color: white;
  background: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { color: white; background: #073c2f; }
.button.secondary { color: var(--accent); background: white; }
.button.secondary:hover { background: #edf4eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.4rem 1rem; }
.reassurance { font-weight: 600; }
.catalog-link { display: inline-block; margin-top: 1rem; }
.hero-preview { margin-top: 1.75rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 0.7rem; background: white; }
.hero-preview .metric-grid { margin-block: 0.75rem; }
.hero-preview .metric-card { padding: 0.75rem; }
.hero-preview .metric-card dd { font-size: 1.3rem; }
.hero-preview > p { margin-block: 0.5rem; }
.capture-notice { max-width: 44rem; }
.capture-details { margin-top: 3rem; font-size: 0.9rem; }
.next-steps { margin-block: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.next-steps .hero-actions { align-items: center; }
.workflow-note { padding: 1rem; background: #edf4eb; border-radius: 0.5rem; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.notice, .trial-panel { padding: 1.6rem 2rem; border: 1px solid var(--border); border-radius: 0.7rem; background: #edf4eb; }
.notice h2 { margin-top: 0.4rem; }
.notice p:last-child { margin-bottom: 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 2rem; justify-content: space-between; }
.section-heading p { color: var(--muted); }
.api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 1rem; }
.api-card { display: flex; flex-direction: column; background: white; padding: 1.5rem; border: 1px solid var(--border); border-radius: 0.65rem; }
.api-card h3 { margin-top: 0.5rem; }
.api-card h3 a { text-decoration: none; }
.api-card .eyebrow { margin: 0; }
.api-card > p { margin-block: 0.5rem; }
.api-card .text-link { margin-top: auto; padding-top: 1.25rem; font-size: 0.9rem; }
.price { font-size: 1.55rem; font-weight: 750; }
.price span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.coverage { font-size: 0.9rem; }
.covered { color: #09634b; }
.not-covered, .availability { color: #785115; }
.api-hero { max-width: 900px; }
.api-hero h1 { font-size: clamp(2rem, 4.7vw, 3.4rem); }
.example-panel { padding: 1.8rem 2rem; border: 1px solid var(--border); border-radius: 0.7rem; background: white; }
.observation-date { padding: 0.75rem 1rem; border-left: 3px solid #a97319; color: #654509; background: #fff7e8; font-weight: 650; }
.observation-date time { overflow-wrap: anywhere; }
.token-name { margin-bottom: 0.2rem; font-weight: 750; font-size: 1.2rem; }
.token-address { margin-top: 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.85rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-block: 1.5rem; }
.metric-card { padding: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; background: #f8faf7; }
.metric-card dt { color: var(--muted); font-size: 0.85rem; }
.metric-card dd { margin: 0.4rem 0 0; font-size: clamp(1.1rem, 2.3vw, 1.7rem); line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
.token-summary { font-size: 1.05rem; }
.result-metadata dt { margin-top: 0.75rem; font-weight: 650; }
.result-metadata dd { margin-left: 0; overflow-wrap: anywhere; }
.result-disclaimer { color: var(--muted); font-size: 0.85rem; }
.token-signals li, .token-limitations li { overflow-wrap: anywhere; }
#try, #example, #quickstart, #wallet-help, #paid-guide, #data-use { scroll-margin-top: 1.5rem; }
#trial-summary:empty { display: none; }
.breadcrumb { font-size: 0.9rem; }
.endpoint { padding: 1rem; border-left: 3px solid var(--accent); background: #edf4eb; }
.endpoint strong { margin-right: 0.7rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
pre { overflow: auto; max-height: 36rem; padding: 1.4rem; border: 1px solid #294139; border-radius: 0.5rem; background: #102a24; color: #e5f2e8; font-size: 0.85rem; line-height: 1.65; tab-size: 2; }
pre code { color: inherit; }
details { margin-block: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 0.5rem; background: white; }
summary { cursor: pointer; font-weight: 650; }
label { display: block; font-weight: 650; margin-bottom: 0.5rem; }
input { width: 100%; max-width: 40rem; padding: 0.85rem; font: inherit; border: 1px solid #718779; border-radius: 0.4rem; background: white; }
.muted, #trial-balance { color: var(--muted); font-size: 0.9rem; }
#trial-status { font-weight: 650; }
footer { margin-top: 5rem; padding-block: 2rem 3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

@media (max-width: 600px) {
  .site-header, main, footer { width: calc(100% - 2rem); }
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 1rem; gap: 0.75rem; }
  nav { gap: 0.75rem; }
  .hero { padding-block: 0.5rem; margin-top: 1.5rem; }
  .notice, .trial-panel, .example-panel { padding: 1.25rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-preview .metric-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .hero-preview { padding: 0.75rem; }
  .hero-preview .metric-card { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.45rem; }
  .hero-preview .metric-card dt { font-size: 0.75rem; }
  .hero-preview .metric-card dd { margin: 0; font-size: 0.9rem; white-space: nowrap; }
  .hero-actions .button { width: 100%; text-align: center; }
  .trial-panel button { width: 100%; }
  pre { padding: 1rem; }
}
