/* A quiet, centered reading column shared by every page. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #fafaf8;
  color: #50504b;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.0625rem;
}

h1, .brand-heading {
  margin: 0 0 1.25rem;
  color: #1b1b18;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.brand-heading { line-height: 1.1; }
.page-title { font-size: 1.375rem; letter-spacing: -0.025em; }
.tool-list a { color: inherit; text-underline-offset: 0.2em; }
.tool-page { box-sizing: border-box; width: 100%; max-width: 58rem; padding: 3rem 2rem; }
.tool-page main { max-width: none; padding: 0; }
.tool-page article > p, .tool-page .benefit-list, .tool-page .parameter-list, .tool-page .tool-note { max-width: 44rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: fixed; inset: 1rem auto auto 1rem; z-index: 10; background: #fafaf8; color: #1b1b18; padding: 0.75rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tool-page [id] { scroll-margin-top: 1.5rem; }
.tool-page nav a, .tool-page .tool-next a, .tool-page footer a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.tool-page footer .x-link { min-width: 2.5rem; justify-content: center; }
.tool-page h1 { margin-bottom: 0.5rem; font-size: 2rem; text-wrap: balance; }
.tool-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.tool-page article a { color: inherit; text-underline-offset: 0.2em; }
.tool-intro { color: #6c6c64; font-size: 1.25rem; margin-bottom: 1.25rem; }
.benefit-list { padding-left: 1.125rem; line-height: 1.5; }
.benefit-list li { padding-left: 0.25rem; margin-bottom: 0.75rem; }
.tool-page strong { color: #34342f; font-weight: 600; }
.tool-note { border-left: 2px solid #d7ddd3; padding-left: 1rem; font-size: 0.9375rem; line-height: 1.5; }
.parameter-list { margin: 0; line-height: 1.5; }
.parameter-list dt { color: #34342f; margin-top: 1rem; font-weight: 600; }
.parameter-list dd { margin: 0.25rem 0 0; }
.parameter-list code { font-size: 0.8125rem; overflow-wrap: anywhere; }
.tool-next { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font-weight: 500; }
.query-examples { display: grid; gap: 2rem; margin: 1.5rem 0; min-width: 0; }
.query-example { border: 1px solid #e4e4de; border-radius: 0.375rem; padding: 1.5rem; min-width: 0; }
.query-example h3 { margin: 0.375rem 0 0.75rem; color: #1b1b18; font-size: 1.125rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.query-example p { margin-bottom: 0.75rem; }
.query-example p:last-child { margin-bottom: 0; }
.query-example .example-label { margin: 0; font-size: 1rem; color: #6c6c64; }
.example-query { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; font-size: 0.9375rem; }
.example-query code { padding: 0.2rem 0.4rem; background: #eeeee8; border-radius: 0.2rem; color: #34342f; font-size: 0.9375rem; overflow-wrap: anywhere; }
.tool-page .example-note { font-size: 1rem; color: #6c6c64; line-height: 1.5; }
.code-example { margin: 1rem 0 1.5rem; border-block: 1px solid #e4e4de; padding: 0.875rem 0; }
.code-example summary { width: fit-content; min-height: 2.5rem; align-content: center; color: #34342f; font-size: 1rem; font-weight: 500; cursor: pointer; }
.code-example[open] summary { margin-bottom: 1rem; }
.code-example p { font-size: 0.9375rem; }
.code-example pre { overflow-x: auto; margin: 0; padding: 1rem; background: #f0f0eb; border-radius: 0.25rem; color: #34342f; font-size: 0.8125rem; line-height: 1.5; tab-size: 2; }
.results-preview { margin: 1.25rem 0 0.75rem; overflow-x: auto; border: 1px solid #e4e4de; border-radius: 0.375rem; }
.results-table { width: 100%; min-width: 40rem; border-collapse: collapse; text-align: left; font-size: 1.0625rem; line-height: 1.5; }
.results-table caption { padding: 1rem; background: #f0f0eb; text-align: left; color: #34342f; font-size: 1.0625rem; font-weight: 600; }
.results-table th, .results-table td { padding: 1rem; border-top: 1px solid #e4e4de; vertical-align: top; }
.results-table th { color: #34342f; font-weight: 500; }
.results-table thead th { color: #50504b; font-size: 1rem; }
.results-table tbody th { width: 40%; min-width: 12rem; }
.results-table .phone-cell, .results-table .review-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-detail { display: block; margin-top: 0.375rem; color: #50504b; font-size: 1rem; overflow-wrap: anywhere; }
.results-table a { width: fit-content; padding-block: 0.25rem; }
.results-preview:focus-visible, .code-example summary:focus-visible, pre:focus-visible { outline: 2px solid #1b1b18; outline-offset: 4px; }
@media (forced-colors: active) {
  a:focus-visible, .results-preview:focus-visible, summary:focus-visible, pre:focus-visible { outline-color: Highlight; }
}
@media (max-width: 36rem) {
  .tool-page { padding: 2rem 1rem; }
  .query-example { padding: 1rem; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.launch-badge { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.launch-badge img { display: block; }

.home-intro {
  margin-bottom: 2rem;
  padding: 1.125rem 1.25rem;
  border-inline-start: 2px solid #d8ddcf;
  border-radius: 0.25rem;
  background: #f4f4ef;
}

.home-intro p { margin-bottom: 1rem; line-height: 1.6; }
.home-intro p:last-child { margin-bottom: 0; }
.home-intro strong { color: #34342f; font-weight: 600; }

h2 {
  margin: 0 0 1rem;
  color: #1b1b18;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

main {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  padding: 3rem 2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid #e4e4de;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

nav a {
  padding-block: 0.25rem;
  color: #6c6c64;
  text-decoration: none;
  text-underline-offset: 0.375rem;
  white-space: nowrap;
}

nav a[aria-current="page"] {
  font-weight: 600;
}

nav a[aria-current="page"],
nav a:hover {
  color: #1b1b18;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid #1b1b18;
  outline-offset: 4px;
}

p {
  margin: 0 0 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.tool-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.tool-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.375rem;
  border-bottom: 1px solid #e9e9e3;
  font-size: 1rem;
  line-height: 1.4;
}

.tool-list li:last-child {
  border-bottom: 0;
}

.tool-list li > span:first-child {
  color: #34342f;
  font-weight: 500;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  background: #f0f0eb;
  color: #6c6c64;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.tool-status::before {
  content: "";
  width: 0.3125rem;
  height: 0.3125rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.tool-status.is-available {
  background: #eaf2ec;
  color: #27613e;
}

footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e4de;
  color: #6c6c64;
  font-size: 0.8125rem;
  line-height: 1.5;
}

footer a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1875rem;
}

.terms h2 {
  margin: 1.75rem 0 0.5rem;
  color: #34342f;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.terms-date {
  color: #6c6c64;
  font-size: 0.875rem;
}

.terms ul {
  margin: 0 0 1.125rem;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.terms li + li {
  margin-top: 0.5rem;
}

.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  opacity: 0.65;
}

.x-link:hover,
.x-link:focus-visible {
  opacity: 1;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.account-button {
  display: inline-block;
  border: 1px solid #1b1b18;
  border-radius: 0.25rem;
  padding: 0.625rem 1rem;
  background: #1b1b18;
  color: #fafaf8;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.account-button:hover {
  background: #34342f;
}

.account-secondary-link,
.account-text-button,
.account-note a {
  color: inherit;
  text-underline-offset: 0.2rem;
}

.account-text-button {
  border: 0;
  padding: 0.375rem 0;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #1b1b18;
  outline-offset: 4px;
}

.account-note {
  margin-bottom: 0.875rem;
  color: #6c6c64;
  font-size: 0.875rem;
  line-height: 1.5;
}

.account-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  overflow-wrap: anywhere;
}

.key-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.api-key {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #cfcfc7;
  border-radius: 0.25rem;
  background: #fff;
  color: #1b1b18;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

.key-preview {
  font-family: ui-monospace, monospace;
  font-size: 0.9375rem;
}

.account-notice {
  padding-left: 0.875rem;
  border-left: 2px solid #6c6c64;
}

.account-signout {
  margin-top: 1.5rem;
}

.development-note {
  margin-top: 1.5rem;
}
