:root {
  color-scheme: light;
  --blue: #172dff;
  --ink: #151515;
  --muted: #51515a;
  --paper: #f7f7f2;
  --yellow: #f5e63a;
  --white: #fff;
  --gutter: clamp(1.2rem, 5vw, 5rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.15rem var(--gutter); }
.masthead { background: var(--blue); color: var(--white); }
.brand { display: inline-block; color: inherit; font-size: 1.1rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--yellow); }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-cta { padding: .45rem .8rem; color: var(--ink); background: var(--yellow); }
.hero { position: relative; min-height: 38rem; padding: 5rem var(--gutter) 4rem; color: var(--white); background: var(--blue); display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 2rem 4vw; overflow: hidden; }
.hero-note { align-self: start; max-width: 14rem; margin: .5rem 0; color: #e3e5ff; font-size: .95rem; }
.hero-copy { max-width: 48rem; }
.hero > * { min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 13ch; margin-bottom: 1.3rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 7.3vw, 6rem); line-height: .98; letter-spacing: -.025em; }
.hero-lede { max-width: 36rem; color: #e3e5ff; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.button { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: .85rem 1.1rem; color: var(--ink); background: var(--yellow); font-size: .95rem; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--white); }
.hero-art { grid-column: 2; min-width: 0; max-width: 36rem; width: 100%; margin-top: 1.5rem; padding: 1.2rem 1.35rem 1rem; color: var(--ink); background: var(--yellow); transform: rotate(-1.5deg); }
.art-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.hero-art pre, .code-sample { max-width: 100%; overflow-x: auto; white-space: pre; font-size: .92rem; line-height: 1.55; }

.hero-art pre { margin: 1.3rem 0 .65rem; }
.hero-art p { margin: 0; font-size: .83rem; }
.hero-index { position: absolute; bottom: 2rem; left: var(--gutter); color: #c7cbff; font-size: .75rem; line-height: 1.25; letter-spacing: .06em; }
.section { padding: clamp(4rem, 8vw, 8rem) var(--gutter); }
.section-kicker { margin-bottom: 1.1rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.intro, .api-example, .pricing { display: grid; grid-template-columns: 42% 1fr; gap: 2rem 4vw; }
.intro h2, .api-example h2, .pricing h2, .band-heading h2, .contact h2 { max-width: 16ch; margin-bottom: 1.3rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.08; letter-spacing: -.02em; }
.intro div, .api-example div { max-width: 47rem; }
.intro p:not(.section-kicker), .api-example p:not(.section-kicker) { max-width: 46rem; color: var(--muted); }
.feature-band { display: grid; grid-template-columns: 42% 1fr; gap: 2rem 4vw; padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem); color: var(--white); background: var(--ink); }
.feature-band .section-kicker { color: var(--yellow); }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 0 0 1.5rem; margin: 0 0 1.4rem; }
.steps li:last-child { margin-bottom: 0; }
.steps li > span { color: var(--yellow); font-size: .85rem; font-weight: 700; }
.steps h3 { margin: -.35rem 0 .25rem; font-size: 1.25rem; }
.steps p { max-width: 38rem; margin: 0; color: #c8c8ce; }
.api-example { align-items: center; }
.text-link { display: inline-block; margin-top: .5rem; color: var(--blue); font-weight: 700; text-decoration: none; }
.code-sample { margin: 0; padding: 1.5rem; color: var(--white); background: var(--ink); }
.pricing { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem); color: var(--ink); background: var(--yellow); }
.pricing .section-kicker { color: var(--ink); }
.pricing-content { max-width: 56rem; }
.price-list { margin: 2rem 0 1.2rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem; margin-bottom: .45rem; background: #fff6a7; }
.price-row strong { flex: 0 0 auto; font-size: 1.3rem; }
.price-row small { font-size: .82rem; font-weight: 400; }
.price-row code { font-size: .9em; }
.price-example { max-width: 46rem; font-weight: 700; }
.fine-print { max-width: 46rem; margin-bottom: 0; font-size: .9rem; }
.faq { display: grid; grid-template-columns: 42% 1fr; gap: 2rem 4vw; }
.faq-list { max-width: 55rem; }
details { padding: 1.1rem 0; }
summary { cursor: pointer; font-size: 1.08rem; font-weight: 700; }
details p { margin: .75rem 0 0; color: var(--muted); }
.contact { display: grid; grid-template-columns: 42% 1fr; gap: 2rem 4vw; padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 5rem); color: var(--white); background: var(--blue); }
.contact .section-kicker { color: var(--yellow); }
.contact p:not(.section-kicker) { max-width: 40rem; color: #e3e5ff; }
.button-light { background: var(--white); }
.footer { min-height: 6rem; color: var(--white); background: var(--ink); }
.footer p { margin: 0; color: #c8c8ce; font-size: .85rem; }
.footer nav { gap: 1.3rem; }
.legal-page { max-width: 54rem; min-height: 72vh; padding: 5rem var(--gutter) 7rem; margin: 0 auto; }
.legal-page h1, .not-found h1 { margin-bottom: .6rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.025em; }
.legal-date { margin-bottom: 3rem; color: var(--muted); font-size: .9rem; }
.legal-page h2 { margin: 2.5rem 0 .6rem; font-size: 1.35rem; letter-spacing: -.035em; }
.legal-page p, .legal-page li { color: #333; }
.legal-page li { margin: .4rem 0; }
.legal-page a { color: var(--blue); }
.legal-owner { padding: 1rem; margin-top: 3rem; background: #e9e9e2; }
.not-found { min-height: 75vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 3rem var(--gutter); }
.not-found h1 { max-width: 12ch; }
@media (max-width: 760px) {
  .masthead, .footer { align-items: flex-start; flex-wrap: wrap; }
  .masthead nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1rem; }
  .hero { min-height: 0; padding-top: 3.5rem; grid-template-columns: 1fr; gap: 1.3rem; }
  .hero-note { margin-bottom: .3rem; }
  .hero-copy, .hero-art { grid-column: 1; }
  .hero-art { margin-top: .4rem; transform: none; }
  .hero-index { display: none; }
  .intro, .feature-band, .api-example, .pricing, .faq, .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-band, .pricing, .contact { padding: 4rem 1.2rem; }
  .price-row { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .footer nav { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
