/* AzSDK — lightweight developer-tools site stylesheet
   System fonts only. No frameworks. */

:root {
  --ink: #0b1428;
  --ink-2: #16213a;
  --text: #1e293b;
  --muted: #5b6b82;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef3ff;
  --primary: #3b5bfd;
  --primary-dark: #2846e8;
  --primary-soft: #e7ecff;
  --teal: #0e9f8a;
  --amber: #b45309;
  --amber-soft: #fff4e5;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(11, 20, 40, .08);
  --shadow-lg: 0 24px 60px rgba(11, 20, 40, .16);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
.hero-grid > *, .page-hero-grid > *, .split > *, .grid > *, .footer-grid > *, .related > * { min-width: 0; }
img { height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

code, pre, kbd { font-family: var(--mono); }
code { font-size: .92em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: .1em .35em; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid #8ea2ff;
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.brand-az { color: #444444; }
.brand-sdk { color: #3b5bfd; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a {
  color: var(--text); font-size: .93rem; font-weight: 600;
  padding: .55em .7em; border-radius: 8px; white-space: nowrap;
}
.site-nav > a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.site-nav > a.is-active { color: var(--primary); background: var(--primary-soft); }
.site-nav .nav-cta { margin-left: 8px; }
.site-nav > a.nav-cta,
.site-nav > a.nav-cta:hover { color: #fff; }
.site-nav > a.nav-cta:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600;
  padding: .5em .75em; cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-soft); }

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .68em 1.15em;
  border: 1px solid transparent; border-radius: 9px;
  background: var(--primary); color: #fff;
  font: inherit; font-size: .95rem; font-weight: 650; line-height: 1.2;
  text-align: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 38px; padding: .5em .85em; font-size: .88rem; }
.btn-lg { min-height: 50px; padding: .8em 1.4em; font-size: 1.02rem; }
.btn-secondary { background: var(--ink); }
.btn-secondary:hover { background: #1c2a48; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d2e0; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #9aa8bf; }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #e9eeff; color: var(--ink); }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-dark:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }

.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .28em .62em; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--bg-tint); color: var(--primary-dark);
}
.badge-sale { background: var(--amber-soft); color: var(--amber); }
.badge-dark { background: rgba(255,255,255,.12); color: #dbe4ff; }
.badge-teal { background: #e3f7f3; color: #0b7a6a; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 0; padding: 0; list-style: none; }
.pill-list li {
  margin: 0; padding: .32em .7em; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .8rem; font-weight: 600; color: #41506a;
}
.hero .pill-list li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #d3dcf0; }

.eyebrow {
  margin: 0 0 .8em; font-size: .78rem; font-weight: 750;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
.hero .eyebrow { color: #9fb2ff; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  color: #d7e0f2;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(59, 91, 253, .38), transparent 65%),
    radial-gradient(700px 380px at 8% 110%, rgba(14, 159, 138, .18), transparent 60%),
    linear-gradient(180deg, #0a1226 0%, #0d1830 100%);
  padding: clamp(56px, 8vw, 96px) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: #b9c5dc; font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 38em; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { max-width: 620px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2em 0 0; padding: 0; list-style: none; }
.trust-row li { margin: 0; display: flex; align-items: center; gap: 7px; font-size: .84rem; color: #aab8d4; }
.trust-row svg { width: 15px; height: 15px; color: #6f8bff; flex: none; }

.code-window {
  background: #070d1c; border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; background: rgba(255,255,255,.045); border-bottom: 1px solid rgba(255,255,255,.09);
}
.code-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.code-bar .dot:nth-child(2) { background: #febc2e; }
.code-bar .dot:nth-child(3) { background: #28c840; }
.code-bar .file { margin-left: auto; font: .74rem var(--mono); color: #7f8ba6; }
.code-window pre { margin: 0; padding: 18px 20px; overflow-x: auto; max-width: 100%; font-size: .8rem; line-height: 1.7; color: #cdd7ea; }
.code-window pre code { color: inherit; }
.tok-key { color: #8fa8ff; }
.tok-str { color: #7fd8bf; }
.tok-num { color: #f0b46b; }
.tok-com { color: #64748b; }

/* ---------- Sections ---------- */

.section { padding: clamp(52px, 7vw, 84px) 0; }
section[id] { scroll-margin-top: 84px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #c9d4e8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.section-dark .section-head p { color: #9fb0cf; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(11,20,40,.03);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { border-color: #c3cef7; box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card h3 { font-size: 1.12rem; margin-bottom: .3em; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--primary); text-decoration: none; }
.product-card p { color: var(--muted); font-size: .92rem; }
.product-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 16px;
}
.product-icon svg { width: 22px; height: 22px; }
.card-badge { position: absolute; top: 16px; right: 16px; }
.product-card .card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { font-weight: 750; color: var(--ink); font-size: .95rem; }
.price s { color: #8a97ab; font-weight: 500; font-size: .82rem; margin-left: 4px; }
.card-link { font-size: .88rem; font-weight: 650; white-space: nowrap; }

.feature { padding: 4px 0; }
.feature .feature-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--primary-dark); margin-bottom: 13px;
}
.feature .feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }

.check-list { list-style: none; padding: 0; margin: 1.2em 0; }
.check-list li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05em; height: .55em;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stat-row li { margin: 0; text-align: center; padding: 18px 10px; border-right: 1px solid var(--line); }
.stat-row li:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat-label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }
.section-dark .stat-row li { border-color: rgba(255,255,255,.14); }
.section-dark .stat-value { color: #fff; }
.section-dark .stat-label { color: #93a4c4; }

/* ---------- Page hero ---------- */

.page-hero {
  background:
    radial-gradient(760px 320px at 92% 0%, rgba(59,91,253,.12), transparent 70%),
    linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 clamp(38px, 5vw, 58px);
}
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.page-hero .actions { margin-bottom: 0; }

.breadcrumbs { font-size: .8rem; color: var(--muted); margin: 0 0 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #a9b4c6; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.glance {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.glance h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.glance dl { margin: 0; }
.glance .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.glance .row:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.glance .btn { width: 100%; margin-top: 16px; }
.glance .note { margin: 10px 0 0; font-size: .76rem; color: var(--muted); text-align: center; }

/* ---------- Prose ---------- */

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose > p, .prose > ul, .prose > ol { color: #334155; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--primary);
  background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--muted);
}
.prose table { font-size: .9rem; }

/* ---------- Code blocks ---------- */

.code-block {
  margin: 1.4em 0; background: #0a1122; border: 1px solid #1c2740;
  border-radius: var(--radius-sm); overflow: hidden;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08);
  font: .76rem var(--mono); color: #8794b0; letter-spacing: .04em;
}
.copy-btn {
  background: rgba(255,255,255,.08); color: #c8d3e8; border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; font: inherit; font-size: .72rem; padding: .32em .7em; cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.16); }
.code-block pre { margin: 0; padding: 18px; overflow-x: auto; max-width: 100%; font-size: .82rem; line-height: 1.65; color: #d3dcef; }
.code-block code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-note { font-size: .78rem; color: var(--muted); margin-top: -4px; }

/* ---------- Pricing ---------- */

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 1.6em 0; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column;
}
.tier.featured { border-color: #aab9f8; box-shadow: var(--shadow); position: relative; }
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 22px;
  background: var(--primary); color: #fff; font-size: .66rem; font-weight: 750;
  letter-spacing: .06em; text-transform: uppercase; padding: .28em .65em; border-radius: 999px;
}
.tier h3 { font-size: .95rem; margin-bottom: .2em; }
.tier .tier-price { font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: .2em 0 .1em; }
.tier .tier-price s { font-size: .9rem; color: #8a97ab; font-weight: 500; margin-left: 6px; }
.tier .tier-note { font-size: .78rem; color: var(--muted); margin-bottom: 1em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.2em; font-size: .87rem; }
.tier li { position: relative; padding-left: 1.5em; margin-bottom: .45em; color: #3d4b63; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.tier .btn { margin-top: auto; }

.pricing-table td:first-child { min-width: 200px; }
.pricing-table .product-cell strong { display: block; color: var(--ink); }
.pricing-table .product-cell .product-cat { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.pricing-table .product-cell .badge { margin-left: 6px; vertical-align: middle; }
.pricing-table .tier-cell { white-space: nowrap; }
.pricing-table .tier-cell .amount { display: block; font-weight: 750; color: var(--ink); }
.pricing-table .tier-cell s { font-size: .76rem; color: #8a97ab; font-weight: 400; margin-left: 4px; }
.pricing-table .tier-cell a { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 650; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); margin: 1.2em 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 2.2em 16px 0; position: relative;
  font-weight: 650; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--primary); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > div { padding: 0 0 16px; margin: 0; color: #3d4b63; font-size: .94rem; }
.faq details > p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 85% 10%, rgba(59,91,253,.35), transparent 65%),
    linear-gradient(120deg, #0b1428, #12224a);
  color: #c9d4e8; border-radius: var(--radius); padding: clamp(30px, 4vw, 46px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #a9b8d6; max-width: 54ch; }
.cta-band .actions { margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #9fb0cf; padding: 54px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: #7f90b0; }
.footer-brand p { font-size: .88rem; margin: 16px 0 0; max-width: 30ch; color: #8c9cbb; }
.footer-heading { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #6f82a8; margin-bottom: .9em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-grid a { color: #c2cee4; font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 38px; padding-top: 20px;
  font-size: .78rem; color: #7f90b0;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #a9b8d6; }

/* ---------- Misc ---------- */

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-soft); border: 1px solid #fed7aa; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .88rem; color: #7c3d06; margin: 1.2em 0;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.lang-table td:first-child { font-family: var(--mono); font-size: .84rem; }

.tutorial-card-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tutorial-card-link:hover {
  border-color: #c3cef7; box-shadow: var(--shadow); transform: translateY(-2px);
  text-decoration: none; color: var(--ink);
}
.tutorial-card-link .badge { align-self: flex-start; }
.tutorial-card-link strong { font-size: 1.02rem; line-height: 1.3; }
.tutorial-card-link > span:last-child { font-size: .86rem; color: var(--muted); }

a.card { display: block; color: var(--ink); }
a.card:hover { border-color: #c3cef7; box-shadow: var(--shadow); text-decoration: none; }
a.card h3 { color: var(--primary-dark); }

blockquote.card { margin: 0; }
blockquote.card p:last-child { margin-bottom: 0; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a {
  display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); background: #fff; transition: border-color .15s ease;
}
.related a:hover { border-color: #b7c4f5; text-decoration: none; }
.related strong { display: block; font-size: .95rem; margin-bottom: .2em; }
.related span { display: block; font-size: .8rem; color: var(--muted); }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--muted); margin-bottom: 1.2em; }
.article-body { max-width: 820px; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.2em; }
.mt-3 { margin-top: 2em; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .page-hero-grid, .split { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .tier-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px; flex-direction: column; align-items: stretch; gap: 2px;
    box-shadow: 0 18px 30px rgba(11,20,40,.1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .7em .6em; font-size: .95rem; }
  .site-nav .nav-cta { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row li:nth-child(2) { border-right: 0; }
  .stat-row li { border-bottom: 1px solid var(--line); }
  .stat-row li:nth-child(3), .stat-row li:nth-child(4) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .glance { max-width: 520px; }
  .table-wrap { margin-inline: -4px; }
  body { font-size: 16px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .card, .product-card, .glance, .tier { padding: 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row li { border-right: 0; }
  .stat-row li:nth-child(3) { border-bottom: 1px solid var(--line); }
}

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

@media print {
  .site-header, .site-nav, .footer-grid, .cta-band, .actions, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .page-hero { background: none; border: 0; }
}
