:root {
  --ink: #17151b;
  --paper: #f7f4ed;
  --white: #fffefa;
  --purple: #7719aa;
  --purple-dark: #4f126f;
  --coral: #f16c52;
  --green: #16735a;
  --yellow: #f2c94c;
  --muted: #6d6872;
  --line: #cec8bb;
  --max: 1180px;
  --shadow: 8px 8px 0 #17151b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", "Avenir Next", sans-serif; line-height: 1.6; }
a { color: inherit; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 76px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--purple); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: Georgia, serif; }
.site-header nav, .site-footer nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a, .site-footer nav a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.hero { min-height: min(760px, calc(100vh - 76px)); padding: 70px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 96px); align-items: center; border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 210px; height: 90px; left: -38px; bottom: 30px; background: var(--yellow); border: 2px solid var(--ink); transform: rotate(-8deg); z-index: -1; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 .8rem; color: var(--purple-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; letter-spacing: 0; }
.hero h1 { font-size: clamp(4.5rem, 10vw, 8.5rem); color: var(--purple); }
.hero-lead { max-width: 570px; margin: 1.4rem 0 2rem; font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.1rem; border: 2px solid var(--ink); font-weight: 900; text-decoration: none; }
.button-primary { color: white; background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.button-secondary { background: var(--white); }
.button:hover, .button:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--purple); }
.service-state { margin-top: 1.5rem; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; }
.status-dot { width: 10px; height: 10px; background: var(--yellow); border: 1px solid var(--ink); border-radius: 50%; }
.status-dot.online { background: #32a878; }
.status-dot.offline { background: var(--coral); }

.product-view { min-width: 0; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow); transform: rotate(1deg); }
.product-bar { min-height: 55px; display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; color: white; background: var(--purple); border-bottom: 2px solid var(--ink); }
.product-title { font-weight: 900; }
.read-only-badge, .match-label { padding: .2rem .55rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; border: 1px solid currentColor; }
.query-row { margin: 1rem; min-height: 58px; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border: 2px solid var(--ink); background: var(--paper); font-weight: 700; }
.query-symbol { flex: 0 0 29px; height: 29px; display: grid; place-items: center; color: white; background: var(--green); border: 1px solid var(--ink); font-weight: 900; }
.result-list { padding: 0 1rem 1rem; display: grid; gap: .75rem; }
.result-item { min-width: 0; padding: 1rem; border: 2px solid var(--line); background: white; overflow-wrap: anywhere; }
.result-featured { border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.result-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.result-item h2 { margin-top: .5rem; font-family: "Trebuchet MS", sans-serif; font-size: 1.1rem; }
.result-item p { margin: .45rem 0 .8rem; color: #49454d; font-size: .86rem; }
.match-label { display: inline-block; color: var(--green); }

.trust-strip { padding: 24px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; color: white; background: var(--ink); }
.trust-strip p { margin: 0; display: flex; flex-direction: column; text-align: center; }
.trust-strip strong { color: var(--yellow); font-family: Georgia, serif; font-size: 1.1rem; }
.trust-strip span { font-size: .86rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 100px 24px; }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading h2, .security-intro h2, .owner-band h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.steps li { min-height: 280px; padding: 1.5rem; border-right: 2px solid var(--ink); }
.steps li:last-child { border-right: 0; }
.step-number { color: var(--purple); font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }
.steps h3, .security-grid h3 { margin: 2.5rem 0 .6rem; font-family: Georgia, serif; font-size: 1.45rem; }
.steps p, .security-grid p { color: var(--muted); }

.question-section { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); color: white; background: var(--ink); border-top: 2px solid var(--ink); }
.question-heading { max-width: 720px; margin-bottom: 42px; }
.question-heading .eyebrow { color: var(--yellow); }
.question-heading h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.question-heading .question-lead { max-width: 600px; color: #cfc9d2; font-family: Georgia, serif; font-size: 1.2rem; }
.question-heading .search-note { max-width: 600px; margin-top: .8rem; color: #a89fb0; font-size: .9rem; }
.question-heading .search-note a { color: var(--yellow); }
.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #57515b; border: 2px solid #57515b; }
.question-grid article { min-width: 0; min-height: 250px; padding: 1.4rem; background: #242128; overflow-wrap: anywhere; }
.question-grid span { color: var(--coral); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.question-grid h3 { margin: 2rem 0 .7rem; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.question-grid p { margin: 0; color: #cfc9d2; }

.connect-section { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); border-top: 2px solid var(--ink); background: var(--white); }
.connect-heading { max-width: 850px; margin-bottom: 42px; }
.connect-heading h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.connect-heading > p:last-of-type { max-width: 680px; font-family: Georgia, serif; font-size: 1.2rem; }
.endpoint { margin-top: 1rem; display: block; padding: 1rem; color: white; background: var(--purple-dark); border: 2px solid var(--ink); overflow-wrap: anywhere; }
.connect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.connect-grid > .connect-card-wide { grid-column: 1 / -1; }
.connect-card { min-width: 0; padding: 1.4rem; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--line); }
.connect-card-columns { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.4rem; }
.connect-card-advanced h4 { margin: 0 0 .8rem; font-family: Georgia, serif; font-size: 1.1rem; color: var(--purple-dark); }
.connect-card-advanced { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.connect-card-advanced p { color: var(--muted); font-size: .88rem; }
.connect-card-advanced > p:first-of-type { color: #474249; }
@media (min-width: 900px) {
  .connect-card-wide .connect-card-columns { grid-template-columns: .85fr 1.15fr; }
  .connect-card-advanced { padding-top: 0; padding-left: 1.6rem; border-top: 0; border-left: 1px solid var(--line); }
}
.platform-label { display: inline-block; padding: .2rem .55rem; color: white; background: var(--green); border: 1px solid var(--ink); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.maturity-badge { display: inline-block; margin-left: .5rem; padding: .2rem .5rem; font-size: .68rem; font-weight: 900; text-transform: uppercase; border: 1px solid var(--ink); }
.maturity-stable { color: var(--ink); background: #cdeee0; }
.maturity-experimental { color: var(--ink); background: var(--yellow); }
summary .maturity-badge { margin-left: .6rem; vertical-align: middle; }
.connect-card h3 { margin: 1.4rem 0 1rem; font-family: Georgia, serif; font-size: 1.55rem; }
.connect-card ol { margin: 0; padding-left: 1.25rem; }
.connect-card li + li { margin-top: .65rem; }
.connect-note, .connect-card details p { color: var(--muted); font-size: .88rem; }
.connect-card details { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.connect-card summary { cursor: pointer; color: var(--purple-dark); font-weight: 900; }
.connect-card pre { max-height: 320px; margin: 1rem 0 0; padding: 1rem; color: white; background: var(--ink); overflow: auto; font-size: .72rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-security { margin: 32px 0 0; padding: 1rem 1.2rem; border-left: 6px solid var(--coral); background: #f9ddd7; }

.field-list { margin: .8rem 0; display: grid; gap: 8px; }
.field-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .55rem .75rem; border: 1px solid var(--line); background: var(--white); }
.field-label { flex: 0 0 auto; min-width: 150px; color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.field-value { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; font-size: .85rem; }
.field-value-text { font-family: "Trebuchet MS", sans-serif; }
.endpoint-row { margin-top: 1rem; padding: 1rem; background: var(--purple-dark); border: 2px solid var(--ink); }
.endpoint-row .field-value { color: white; font-size: .95rem; }

.copy-btn { flex: 0 0 auto; padding: .32rem .7rem; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); font-size: .74rem; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover, .copy-btn:focus-visible { background: var(--ink); color: white; }
.copy-btn.copied { background: var(--green); color: white; }
.endpoint-row .copy-btn { background: var(--yellow); }

.code-copy { position: relative; margin-top: 1rem; }
.code-copy pre { margin: 0; }
.code-copy .copy-btn-pre { position: absolute; top: .6rem; right: .6rem; }

.admin-consent { margin: 32px 0 0; padding: 1.6rem; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--purple); }
.admin-consent h3 { margin: 0 0 .6rem; font-family: Georgia, serif; font-size: 1.4rem; color: var(--purple-dark); }
.admin-consent > p:first-of-type { max-width: 640px; }
.admin-consent .button { margin-top: 1rem; }
.admin-consent .connect-note { margin-top: .9rem; max-width: 640px; }

.consent-result { max-width: 620px; margin: 0 auto; padding: 90px 24px 120px; text-align: center; }
.consent-icon { width: 64px; height: 64px; margin: 0 auto 1.4rem; display: grid; place-items: center; color: white; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 900; border: 2px solid var(--ink); border-radius: 50%; }
.consent-icon-pending { background: var(--muted); }
.consent-icon-success { background: var(--green); }
.consent-icon-error { background: var(--coral); }
.consent-result h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--purple); }
.consent-result > p { margin: 1rem auto 0; max-width: 480px; color: var(--muted); font-size: 1.05rem; }
.consent-details { margin: 1.6rem auto; max-width: 420px; padding: 1rem 1.2rem; display: grid; gap: .6rem; text-align: left; border: 2px solid var(--ink); background: var(--white); }
.consent-details div { display: flex; justify-content: space-between; gap: 1rem; }
.consent-details dt { color: var(--muted); font-weight: 700; }
.consent-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.consent-result .button { margin-top: 1.6rem; }

.security-section { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; background: #dfeee8; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.security-intro p:last-child { max-width: 430px; font-family: Georgia, serif; font-size: 1.2rem; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); background: var(--ink); gap: 2px; }
.security-grid article { min-height: 245px; padding: 1.3rem; background: var(--white); }
.security-grid h3 { margin-top: 1.8rem; }
.security-index { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--coral); border: 1px solid var(--ink); font-weight: 900; }

.owner-band { max-width: var(--max); margin: 0 auto; padding: 75px 24px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; }
.owner-band p { margin: 0; max-width: 440px; }
.text-link { color: var(--purple-dark); font-weight: 900; text-underline-offset: 5px; }
.site-footer { padding: 48px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 24px; color: white; background: var(--ink); }
.footer-brand { color: white; }
.site-footer p { margin: .7rem 0 0; color: #cfc9d2; }
.site-footer .copyright { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #57515b; font-size: .8rem; }

.legal-layout { max-width: 980px; margin: 0 auto; padding: 80px 24px 110px; }
.legal-hero { padding-bottom: 45px; border-bottom: 2px solid var(--ink); }
.legal-hero h1 { max-width: 800px; font-size: clamp(3.2rem, 8vw, 6.5rem); color: var(--purple); overflow-wrap: anywhere; }
.legal-hero > p:last-child { color: var(--muted); }
.legal-summary { margin: 35px 0 55px; padding: 1.4rem; display: grid; grid-template-columns: 160px 1fr; gap: 24px; background: #dfeee8; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--green); }
.legal-summary strong { font-family: Georgia, serif; font-size: 1.25rem; }
.legal-summary p { margin: 0; }
.coral-summary { background: #f9ddd7; box-shadow: 5px 5px 0 var(--coral); }
.legal-content { max-width: 760px; margin-left: auto; }
.legal-content section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.legal-content h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.legal-content p, .legal-content li { color: #474249; }

.tools-section { max-width: 900px; margin: 0 auto; padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.tools-section:first-of-type { padding-top: 0; }
.tools-section h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); color: var(--purple); }
.section-intro { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.tool-grid { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { min-width: 0; padding: 1.2rem; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--line); }
.tool-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.2rem; color: var(--purple-dark); }
.tool-card > p { margin: .6rem 0; color: #474249; }
.tool-card dl { margin: .8rem 0 0; display: grid; gap: .4rem; }
.tool-card dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.tool-card dt { color: var(--muted); font-weight: 700; }
.tool-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.tool-card .connect-note { margin: .8rem 0 0; }

.explain-list, .limit-list { margin: 1.4rem 0 0; padding-left: 1.4rem; display: grid; gap: .8rem; color: #474249; }
.explain-list li, .limit-list li { line-height: 1.55; }
.limit-list { list-style: "✕  "; }

.scope-table { margin-top: 1.4rem; display: grid; border: 2px solid var(--ink); background: var(--ink); gap: 2px; }
.scope-row { display: grid; grid-template-columns: 1.1fr 1.6fr .6fr; gap: 16px; padding: .9rem 1rem; background: var(--white); align-items: center; }
.scope-head { background: var(--ink); color: white; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.scope-row code { overflow-wrap: anywhere; }
.scope-row > span:nth-child(2) { color: #474249; font-size: .92rem; }
.scope-badge { display: inline-block; padding: .2rem .55rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; border: 1px solid var(--ink); }
.scope-required { color: white; background: var(--coral); }
.scope-optional { color: var(--ink); background: var(--yellow); }

.faq-list { margin-top: 1.4rem; display: grid; gap: 12px; }
.faq-list details { padding: 1rem 1.2rem; border: 2px solid var(--ink); background: var(--white); }
.faq-list summary { cursor: pointer; font-weight: 900; color: var(--purple-dark); }
.faq-list summary code { color: var(--coral); }
.faq-list p { margin: .8rem 0 0; color: #474249; }

@media (max-width: 640px) {
  .tool-grid { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 1fr; gap: 6px; }
  .scope-head { display: none; }
}
.legal-content a { color: var(--purple-dark); font-weight: 700; }
.legal-content li + li { margin-top: .5rem; }
.compact-footer { grid-template-columns: 1fr auto; align-items: center; }
.compact-footer p { margin: 0; }

@media (max-width: 850px) {
  .site-header { padding-inline: 18px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; padding: 60px 24px 80px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.5rem); }
  .product-view { transform: none; }
  .trust-strip { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; border-right: 0; border-bottom: 2px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
  .steps h3 { margin-top: 1rem; }
  .security-section { grid-template-columns: 1fr; gap: 40px; }
  .question-grid { grid-template-columns: 1fr 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .owner-band { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .site-header { min-height: 66px; }
  .site-header nav { gap: .8rem; }
  .hero { padding-inline: 18px; }
  .hero-actions, .button { width: 100%; }
  .product-bar, .result-meta { align-items: flex-start; }
  .product-bar { gap: .6rem; }
  .query-row { font-size: .9rem; }
  .section, .legal-layout { padding-inline: 18px; }
  .security-section { padding: 75px 18px; }
  .security-grid { grid-template-columns: 1fr; }
  .question-section { padding: 75px 18px; }
  .connect-section { padding: 75px 18px; }
  .question-grid { grid-template-columns: 1fr; }
  .question-grid article { min-height: auto; }
  .security-grid article { min-height: auto; }
  .owner-band { padding-inline: 18px; }
  .legal-summary { grid-template-columns: 1fr; }
  .site-footer, .compact-footer { grid-template-columns: 1fr; }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}