@font-face { font-family: Inter; src: url('/marketing/fonts/Inter-latin-f928be5f48129be6.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #040a13;
  --bg-elevated: #081322;
  --surface: #0a1728;
  --surface-strong: #0d1e34;
  --ink: #f4f8fe;
  --muted: #acc0d6;
  --muted-soft: #7f97b0;
  --rule: #1e344d;
  --rule-bright: #33577d;
  --accent: #7ec0ff;
  --accent-ink: #04111f;
  --soft: #0e223b;
  --warm: #0c1b30;
  --header-bg: rgba(4, 10, 19, 0.84);
  --header-border: rgba(45, 76, 109, 0.6);
  --nav-link: #c2d3e5;
  --nav-hover: #ffffff;
  --btn-bg: linear-gradient(180deg, #8ec7ff 0%, #6db4ff 100%);
  --btn-fg: #04111f;
  --btn-border: rgba(198, 229, 255, 0.45);
  --btn-shadow: 0 10px 30px -8px rgba(110, 180, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --ghost-bg: rgba(13, 30, 52, 0.78);
  --ghost-hover: rgba(22, 48, 80, 0.94);
  --cta-bg: linear-gradient(145deg, #091729 0%, #0f2747 100%);
  --cta-border: #2a4d74;
  --cta-sub: #b7cbe0;
  --card-shadow: inset 0 1px 0 rgba(196, 226, 255, 0.08), 0 18px 46px -20px rgba(0, 0, 0, 0.72);
  --hero-glow: radial-gradient(ellipse 80% 420px at 50% -80px, rgba(56, 139, 255, 0.16), transparent 72%);
  --heading-grad: linear-gradient(135deg, #9dd1ff 0%, #6cb4ff 55%, #c7e4ff 100%);
  --checker-a: #0a1626;
  --checker-b: #0f2036;
}

html[data-theme="light"] {
  color-scheme: light;
  --paper: #f8fafc;
  --bg-elevated: #f1f5f9;
  --surface: #ffffff;
  --surface-strong: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --rule: #dbe3ee;
  --rule-bright: #b8c7dc;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --soft: #eff6ff;
  --warm: #eef2f7;
  --header-bg: rgba(248, 250, 252, 0.88);
  --header-border: #dbe3ee;
  --nav-link: #334155;
  --nav-hover: #0f172a;
  --btn-bg: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  --btn-fg: #ffffff;
  --btn-border: #1e40af;
  --btn-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.42);
  --ghost-bg: #ffffff;
  --ghost-hover: #f1f5f9;
  --cta-bg: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  --cta-border: #334155;
  --cta-sub: #cbd5e1;
  --card-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.12);
  --hero-glow: radial-gradient(ellipse 80% 380px at 50% -90px, rgba(37, 99, 235, 0.08), transparent 70%);
  --heading-grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0284c7 100%);
  --checker-a: #e2e8f0;
  --checker-b: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: var(--hero-glow);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; font-weight: 680; }
h1 { font-size: clamp(38px, 4.8vw, 66px); max-width: 19ch; }
h2 { font-size: clamp(28px, 3vw, 44px); }
h1 em, h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--heading-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   STICKY FROSTED HEADER & THEME TOGGLE (MATCHING LANDING PAGE)
   ========================================================================== */
.seo-header-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid var(--header-border);
}
.seo-header {
  width: min(1312px, calc(100% - 88px));
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--ink);
}
.seo-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8.5px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(27, 87, 214, 0.34));
}
.seo-brand-mark svg { display: block; width: 34px; height: 34px; }

.seo-header > nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-link);
}
.seo-header > nav a:not(.seo-button) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.seo-header > nav a:not(.seo-button):hover { color: var(--nav-hover); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--rule-bright);
  background: var(--ghost-bg);
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--ghost-hover); }
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

.seo-mobile-controls { display: none; align-items: center; gap: 8px; }

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.seo-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.seo-button-small { min-height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 8px; white-space: nowrap; }
.seo-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--rule-bright);
  border-radius: 10px;
  background: var(--ghost-bg);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.seo-button-outline:hover { border-color: var(--accent); background: var(--ghost-hover); }
.seo-button svg, .seo-button-outline svg, .text-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ==========================================================================
   MAIN SHELL, HERO & SECTIONS
   ========================================================================== */
main { width: min(1312px, calc(100% - 88px)); margin: auto; }
.seo-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 26px 0 16px;
  color: var(--muted-soft);
  font-size: 13px;
}
.seo-breadcrumb a { color: var(--muted); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
  padding: 38px 0 92px;
}
.seo-eyebrow {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.seo-lead { max-width: 58ch; margin-top: 22px; color: var(--muted); font-size: 18.5px; line-height: 1.6; }
.seo-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.seo-secondary-link { color: var(--accent); font-weight: 600; text-decoration: underline; }
.seo-access-note { margin-top: 16px; color: var(--muted-soft); font-size: 12.5px; }

.seo-hero-art {
  background: var(--warm);
  border: 1px solid var(--rule);
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.seo-hero-art img { width: 100%; border-radius: 12px; }
.seo-hero-art:not(.wide-art) img { max-height: 600px; width: auto; margin: auto; }
.seo-hero-art figcaption { margin-top: 11px; color: var(--muted-soft); font-size: 12px; text-align: center; }

.seo-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 105px; }
.seo-card {
  min-height: 220px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}
.seo-card-index { color: var(--accent); font-size: 12px; font-weight: 700; }
.seo-card h2 { margin-top: 32px; font-size: 23px; letter-spacing: -0.03em; }
.seo-card p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.seo-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(50px, 8vw, 130px);
  padding: 95px 0;
  border-top: 1px solid var(--rule);
}
.seo-copy-block { max-width: 65ch; margin-bottom: 56px; overflow-wrap: anywhere; }
.seo-copy-block h2 { font-size: clamp(27px, 2.8vw, 40px); }
.seo-copy-block p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }
.seo-copy-block ol { padding-left: 22px; color: var(--muted); }
.seo-copy-block li { padding: 8px 0; }

.seo-aside { border-left: 1px solid var(--rule); padding-left: 28px; }
.seo-aside ul { padding: 0; margin: 18px 0 38px; list-style: none; }
.seo-aside li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.seo-aside-note { padding: 20px; background: var(--soft); border: 1px solid var(--rule); border-radius: 12px; }
.seo-aside-note p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.seo-faq { max-width: 900px; padding: 90px 0; border-top: 1px solid var(--rule); }
.seo-faq h2 { margin-top: 6px; }
.seo-faq > div { margin-top: 32px; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-size: 22px; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: '–'; }
.seo-faq details p { max-width: 70ch; padding: 0 35px 22px 0; color: var(--muted); overflow-wrap: anywhere; }

.seo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 56px 64px;
  margin-bottom: 95px;
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 18px;
  color: #f4f8fe;
  box-shadow: var(--card-shadow);
}
.seo-cta h2 { max-width: 13ch; color: #f4f8fe; }
.seo-cta h2 em {
  background: linear-gradient(135deg, #9dd1ff 0%, #6cb4ff 55%, #c7e4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seo-cta p { max-width: 36ch; margin-top: 10px; color: var(--cta-sub); }

/* ==========================================================================
   RECIPES, TABLES, HUBS & PUBLIC LIBRARY
   ========================================================================== */
.recipe-facts { padding: 28px 0 76px; border-top: 1px solid var(--rule); }
.recipe-facts dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.recipe-facts dl div {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}
.recipe-facts dt { color: var(--muted-soft); font-size: 12px; }
.recipe-facts dd { margin: 8px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.recipe-facts > p, .source-note { margin-top: 18px; color: var(--muted-soft); font-size: 13px; }
.source-note a { color: var(--accent); }

.public-data-section { padding: 90px 0; border-top: 1px solid var(--rule); }
.public-data-section > h2 { max-width: 16ch; }
.public-data-section .section-lead { max-width: 62ch; margin-top: 16px; color: var(--muted); font-size: 18px; }
.public-data-section .seo-button { margin-top: 28px; }

.public-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.public-template-card {
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.public-template-card:hover { border-color: var(--rule-bright); transform: translateY(-2px); }
.public-template-card > a { display: block; text-decoration: none; }
.public-template-image { overflow: hidden; padding: 22px; background: var(--warm); border: 1px solid var(--rule); border-radius: 12px; }
.public-template-image img {
  width: auto;
  max-height: 540px;
  max-width: 100%;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease;
}
.public-template-card a:hover .public-template-image img { transform: scale(1.02); }
.public-template-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 16px; }
.public-template-meta h3 { margin: 0; font-size: 18px; }
.public-template-meta span { color: var(--muted-soft); font-size: 11.5px; white-space: nowrap; }
.public-template-card p { max-width: 62ch; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.public-template-card .text-link { margin-top: 14px; font-size: 13.5px; }

.seo-table-wrap {
  overflow: auto;
  margin-top: 30px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.seo-table-wrap caption { padding: 16px 18px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule); }
table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: top; }
thead th { color: var(--muted-soft); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-elevated); }
tbody th { font-weight: 600; color: var(--ink); }
tbody td { color: var(--muted); }
tbody td strong { color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.locale-catalog { max-width: 850px; margin-top: 30px; border-top: 1px solid var(--rule); }
.locale-catalog summary { padding: 18px 0; }
.locale-catalog > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 0 24px; }
.locale-catalog span { padding: 8px 10px; color: var(--muted); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; font-size: 13px; }
.locale-catalog code { color: var(--accent); font-size: 11px; }

.public-mcp { max-width: 680px; margin-top: 30px; padding: 24px; background: var(--soft); border: 1px solid var(--rule-bright); border-radius: 14px; }
.public-mcp label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.endpoint-row { display: flex; gap: 8px; margin-top: 10px; }
.endpoint-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 1px solid var(--rule-bright);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--ink);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.endpoint-row button {
  padding: 0 16px;
  border: 1px solid var(--btn-border);
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
}
.public-mcp [role=status] { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.public-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 38px 0 0; list-style: none; counter-reset: step; }
.public-steps li { counter-increment: step; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14.5px; }
.public-steps li::before { content: '0' counter(step); display: block; margin-bottom: 14px; color: var(--accent); font-weight: 700; }
.public-steps strong { display: block; margin-bottom: 8px; color: var(--ink); }
.public-steps a { color: var(--accent); }

.public-demo { width: 100%; max-width: 1000px; margin-top: 32px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-elevated); }

.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 48px 0 95px; }
.resource-grid > a {
  display: block;
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.resource-grid > a:hover { transform: translateY(-2px); border-color: var(--rule-bright); }
.resource-grid h2, .resource-grid h3 { margin-top: 12px; font-size: 25px; }
.resource-grid p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.resource-grid .text-link { margin-top: 20px; font-size: 13.5px; }

.public-hub-intro { max-width: 900px; padding: 68px 0 54px; }
.public-hub-intro .seo-lead { max-width: 62ch; }
.public-library { padding-bottom: 95px; }
.library-filters { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 24px 0; border-block: 1px solid var(--rule); }
.library-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; }
.library-filters input { width: min(400px, 58vw); padding: 12px 14px; border: 1px solid var(--rule-bright); border-radius: 8px; background: var(--surface); color: var(--ink); }
.library-filters fieldset { padding: 0; border: 0; }
.library-filters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.library-filters fieldset div { display: flex; gap: 6px; flex-wrap: wrap; }
.library-filters button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.library-filters button:hover { border-color: var(--rule-bright); color: var(--ink); }
.library-filters button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-border); color: var(--btn-fg); font-weight: 650; }
[data-template-count] { min-height: 22px; margin-top: 22px; color: var(--muted-soft); font-size: 12.5px; }
.library-empty { padding: 50px 0; color: var(--muted); }

/* ==========================================================================
   LOCAL BROWSER TOOLS (/tools/*)
   ========================================================================== */
.size-checker { padding: 0 0 95px; }
.checker-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 35px;
  border: 1.5px dashed var(--rule-bright);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.checker-drop.dragging { border-color: var(--accent); background: var(--soft); }
.checker-drop h2 { margin-top: 12px; font-size: 30px; }
.checker-drop p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.checker-drop .seo-button { margin-top: 20px; }
.checker-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note { font-size: 12px !important; color: var(--muted-soft) !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[data-checker-status] { min-height: 25px; margin-top: 18px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.checker-results { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.checker-result {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}
.checker-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checker-result span { font-variant-numeric: tabular-nums; }
.checker-result em { color: var(--muted); font-style: normal; }
.checker-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.checker-clear { margin-top: 16px; padding: 9px 14px; border: 1px solid var(--rule-bright); border-radius: 8px; background: var(--surface); color: var(--ink); }

.workflow-guide { padding: 75px 0; border-top: 1px solid var(--rule); }
.workflow-guide h2 { margin-top: 10px; max-width: 23ch; }
.workflow-guide > p.section-lead { max-width: 76ch; margin-top: 18px; color: var(--muted); font-size: 17px; }
.workflow-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 38px 0 0; counter-reset: walkthrough; }
.workflow-guide li { counter-increment: walkthrough; border-top: 1px solid var(--rule); padding-top: 20px; min-width: 0; overflow-wrap: anywhere; }
.workflow-guide li::before { content: '0' counter(walkthrough); display: block; color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.workflow-guide h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.35; }
.workflow-guide li p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.recipe-extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; margin-top: 24px; }
.palette-box, .agent-prompt-box { padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--card-shadow); min-width: 0; }
.palette-box h3, .agent-prompt-box h3 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.swatch-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.swatch-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-elevated); font: 12px ui-monospace, monospace; }
.swatch-dot { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(148, 163, 184, 0.35); flex: none; }
.agent-prompt-box textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid var(--rule-bright); border-radius: 8px; background: var(--bg-elevated); color: var(--ink); font: 12px/1.5 ui-monospace, monospace; resize: vertical; }
.agent-prompt-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.agent-prompt-actions button { padding: 8px 14px; border: 1px solid var(--btn-border); border-radius: 8px; background: var(--btn-bg); color: var(--btn-fg); font-size: 12.5px; font-weight: 650; }
.agent-prompt-actions [role=status] { font-size: 12px; color: var(--muted); }

.tool-workbench { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 26px; align-items: start; padding: 0 0 90px; }
.tool-controls, .tool-stage { padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--card-shadow); min-width: 0; }
.tool-controls h2, .tool-stage h2 { font-size: 22px; margin-bottom: 16px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.tool-field-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tool-field-head span:last-child { font-weight: 400; font-size: 12px; color: var(--muted-soft); font-variant-numeric: tabular-nums; }
.tool-field input[type="text"], .tool-field select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--rule-bright); border-radius: 8px; background: var(--bg-elevated); color: var(--ink); font: 400 14px Inter, system-ui, sans-serif; }
.tool-color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tool-color-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; min-width: 0; }
.tool-color-row input[type="color"] { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--rule-bright); border-radius: 6px; background: var(--bg-elevated); cursor: pointer; }
.tool-presets, .mockup-finishes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tool-presets button, .mockup-finish-chip { padding: 7px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-elevated); color: var(--muted); font-size: 12px; font-weight: 500; }
.mockup-finish-chip[aria-pressed="true"], .tool-presets button:hover, .mockup-finish-chip:hover { background: var(--soft); border-color: var(--accent); color: var(--ink); }
.tool-check { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--muted); font-weight: 400; cursor: pointer; }
.tool-check input { margin-top: 3px; }
.tool-button-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-status { min-height: 20px; margin-top: 12px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tool-canvas-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: repeating-conic-gradient(var(--checker-a) 0% 25%, var(--checker-b) 0% 50%) 50% / 20px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.tool-canvas-frame canvas { display: block; max-width: 100%; height: auto; max-height: 580px; border-radius: 8px; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34); }

/* App Store Preview Simulator */
.sim-stage { border-radius: 18px; padding: 22px; background: #0b0c0f; color: #f5f5f7; border: 1px solid var(--rule); min-width: 0; }
[data-store-simulator][data-theme="light"] .sim-stage { background: #ffffff; color: #111215; border-color: #dbe3ee; }
.sim-theme-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sim-theme-btns { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg-elevated); }
.sim-theme-btns button { padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.sim-theme-btns button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.sim-block + .sim-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(128, 128, 128, 0.22); }
.sim-block-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-bottom: 12px; }
.sim-app-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.sim-app-icon { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(145deg, #1b57d6, #5bb0ff); display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: 18px; }
.sim-app-meta { flex: 1; min-width: 0; }
.sim-app-meta strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-app-meta span { display: block; font-size: 13px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-get-pill { padding: 6px 16px; border-radius: 999px; background: #0a84ff; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.sim-rail-search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sim-rail-product { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 195px); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.sim-shot { border-radius: 12px; overflow: hidden; aspect-ratio: 1320 / 2868; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px 0; color: #fff; border: 1px solid rgba(128, 128, 128, 0.2); min-width: 0; }
.sim-shot img { width: 100%; height: auto; display: block; border-radius: 8px; }
.sim-shot:has(img) { padding: 0; aspect-ratio: auto; background: transparent; }
.sim-shot-copy strong { display: block; font-size: 11px; line-height: 1.25; }
.sim-shot-copy span { display: block; margin-top: 3px; font-size: 9px; opacity: 0.8; }
.sim-shot-phone { height: 62%; margin: 8px 8% 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.22); }

/* Panoramic Screenshot Splitter */
.split-spec-banner { padding: 10px 14px; border-radius: 8px; background: var(--soft); border: 1px solid var(--rule); color: var(--ink); font-size: 13px; font-weight: 500; margin-bottom: 16px; overflow-wrap: anywhere; }
.split-preview-rail { display: flex; gap: 14px; overflow-x: auto; padding: 18px; background: var(--warm); border-radius: 12px; border: 1px solid var(--rule); }
.split-preview-rail.seamless { gap: 0; }
.split-slice-card { flex: 0 0 auto; width: 165px; display: flex; flex-direction: column; gap: 8px; }
.split-preview-rail.seamless .split-slice-card canvas { border-radius: 0; }
.split-slice-card canvas { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); }
.split-slice-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); padding: 0 2px; }
.split-slice-meta button { padding: 4px 8px; border: 1px solid var(--rule-bright); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; }

/* Legal & Provenance Documents (/privacy/, /terms/ and /about/) */
.legal-prose { max-width: 780px; padding: 0 0 90px; overflow-wrap: anywhere; }
.legal-prose h2 { font-size: 24px; margin: 38px 0 12px; }
.legal-prose h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-prose p, .legal-prose li { color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.legal-prose strong { color: var(--ink); }
.legal-prose code { color: var(--accent); background: var(--bg-elevated); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--rule); font-size: 13.5px; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul { margin: 0 0 18px; padding-left: 20px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose a { color: var(--accent); text-underline-offset: 3px; }
.legal-meta { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted-soft); }

/* Above-the-fold Instant Answer Box (NavBoost mobile first-screen satisfaction) */
.seo-instant-answer {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  max-width: 58ch;
  min-width: 0;
}
.seo-instant-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.seo-instant-head strong { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.seo-instant-head span { color: var(--muted-soft); font-size: 11px; }
.seo-instant-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seo-instant-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; line-height: 1.45; min-width: 0; }
.seo-instant-list li > span { color: var(--muted); }
.seo-instant-list li > code {
  color: var(--ink);
  font: 600 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--rule);
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Standalone /features/, /pricing/ and citable benchmark pages */
.feature-bento-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 10px 0 95px; }
.feature-bento-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--card-shadow); overflow: hidden; min-width: 0; }
.feature-bento-media { background: var(--warm); padding: 18px; border-bottom: 1px solid var(--rule); }
.feature-bento-media img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34); }
.feature-bento-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.feature-bento-body h2 { margin-top: 6px; font-size: clamp(22px, 2.2vw, 29px); letter-spacing: -0.035em; }
.feature-bento-body p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature-bento-body .text-link { margin-top: auto; padding-top: 20px; font-size: 14px; }

.pricing-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 10px 0 90px; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; padding: 30px 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--card-shadow); min-width: 0; }
.pricing-card.is-featured { border: 2px solid var(--accent); background: var(--surface-strong); }
.pricing-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.pricing-card-head h2 { margin-top: 4px; font-size: 30px; letter-spacing: -0.04em; }
.pricing-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--rule-bright); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pricing-card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.pricing-card-price strong { font-size: 48px; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.pricing-card-price span { color: var(--muted); font-size: 15px; }
.pricing-card-rate { margin-top: 12px; padding: 10px 12px; background: var(--bg-elevated); border: 1px solid var(--rule); border-radius: 8px; font-size: 13px; color: var(--muted); }
.pricing-card-rate strong { color: var(--ink); }
.pricing-card ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; flex: 1; }
.pricing-card li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.pricing-card li strong { color: var(--ink); }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.pricing-card li code { font-size: 12px; color: var(--accent); background: var(--bg-elevated); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--rule); }
.pricing-card .seo-button, .pricing-card .seo-button-outline { width: 100%; }

.citable-findings { list-style: none; padding: 0; margin: 34px 0 48px; display: grid; gap: 14px; counter-reset: finding; }
.citable-findings li {
  counter-increment: finding;
  position: relative;
  padding: 18px 20px 18px 56px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}
.citable-findings li strong { color: var(--ink); }
.citable-findings li::before { content: counter(finding, decimal-leading-zero); position: absolute; left: 18px; top: 18px; color: var(--accent); font: 700 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.subsection-heading { margin: 28px 0 0; font-size: 22px; letter-spacing: -0.03em; }

/* ==========================================================================
   FOOTER (MATCHING LANDING PAGE FOOTER)
   ========================================================================== */
.seo-footer-bar { border-top: 1px solid var(--rule); background: var(--bg-elevated); }
.seo-footer {
  width: min(1312px, calc(100% - 88px));
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  padding: 58px 0 36px;
  margin: auto;
  color: var(--muted);
  font-size: 13px;
}
.seo-footer p { margin-top: 12px; }
.seo-footer nav { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.seo-footer nav strong { margin-bottom: 4px; color: var(--ink); font-size: 13.5px; }
.seo-footer nav a { text-decoration: none; color: var(--muted); overflow-wrap: anywhere; transition: color 0.16s ease; }
.seo-footer nav a:hover { color: var(--accent); }
.footer-disclosure { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted-soft); font-size: 11.5px; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .seo-header, main, .seo-footer { width: min(100% - 40px, 640px); }
  .seo-header { min-height: 68px; }
  .seo-header > nav { display: none; }
  .seo-mobile-controls { display: inline-flex; }
  .mobile-navigation { display: block; position: relative; border: 0; }
  .mobile-navigation summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--rule-bright);
    background: var(--ghost-bg);
    color: var(--ink);
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary::after { content: none; }
  .mobile-navigation summary svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .mobile-navigation nav {
    position: absolute;
    z-index: 50;
    top: 46px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--rule-bright);
    border-radius: 12px;
    background: var(--surface-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
  .mobile-navigation nav a { display: flex; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
  .mobile-navigation nav a:hover { background: var(--soft); color: var(--accent); }

  .seo-hero { display: flex; flex-direction: column; align-items: stretch; gap: 44px; padding: 28px 0 68px; }
  .seo-hero-art { width: min(100%, 400px); margin: auto; }
  .seo-card-grid, .feature-bento-grid, .pricing-page-grid { grid-template-columns: 1fr; padding-bottom: 68px; }
  .seo-card { min-height: 0; }
  .seo-content-grid { grid-template-columns: 1fr; padding: 68px 0; gap: 30px; }
  .seo-aside { border-left: 0; border-top: 1px solid var(--rule); padding: 28px 0 0; }
  .seo-faq { padding: 68px 0; }
  .seo-cta { align-items: flex-start; flex-direction: column; padding: 38px 28px; margin-bottom: 68px; }
  .recipe-facts dl { grid-template-columns: repeat(2, 1fr); }
  .public-template-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .public-template-meta { display: block; }
  .public-template-meta span { display: block; margin-top: 3px; }
  .locale-catalog > div { grid-template-columns: repeat(2, 1fr); }
  .public-steps, .resource-grid { grid-template-columns: 1fr; }
  .resource-grid { padding-bottom: 68px; }
  .library-filters { display: block; }
  .library-filters input { width: 100%; }
  .library-filters fieldset { margin-top: 16px; }
  .checker-result { grid-template-columns: 1fr; gap: 4px; }
  .seo-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .seo-footer > div { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .tool-workbench { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .recipe-extras { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .workflow-guide { padding: 50px 0; }
  .workflow-guide ol { grid-template-columns: 1fr; gap: 24px; }
  .workflow-guide li::before { margin-bottom: 14px; }
}
@media (max-width: 600px) {
  .seo-header, main, .seo-footer { width: calc(100% - 32px); }
  .seo-brand { font-size: 16.5px; gap: 9px; }
  .seo-brand-mark, .seo-brand-mark svg { width: 30px; height: 30px; }
  .seo-breadcrumb { flex-wrap: wrap; padding: 16px 0 10px; }
  .seo-hero { padding: 14px 0 54px; gap: 34px; }
  .seo-hero h1, .public-hub-intro h1 { font-size: clamp(30px, 8.1vw, 40px); }
  .seo-hero .seo-lead { margin-top: 14px; font-size: 16.5px; }
  .public-hub-intro { padding: 38px 0 36px; }
  .seo-instant-answer { padding: 13px 14px; margin-top: 16px; }
  .seo-instant-list li { flex-direction: column; gap: 4px; }
  .seo-actions { margin-top: 22px; }
  .public-template-grid { grid-template-columns: 1fr; gap: 22px; }
  .public-template-image { padding: 18px; }
  .public-template-image img { max-height: 560px; }
  .recipe-facts dd { font-size: 18px; }
  .recipe-facts dl div { padding: 15px; }
  .endpoint-row input { font-size: 12px; }
  .checker-drop { padding: 26px 18px; }
  .checker-drop h2 { font-size: 26px; }
  .feature-bento-body, .pricing-card { padding: 22px 18px; }
  .citable-findings li { padding: 42px 16px 16px; }
  .citable-findings li::before { left: 16px; top: 14px; }
}
@media (max-width: 480px) {
  .seo-footer { grid-template-columns: 1fr; }
  .tool-controls, .tool-stage, .sim-stage { padding: 16px; }
  .tool-color-row { grid-template-columns: 1fr; }
  .sim-rail-search { gap: 6px; }
  .sim-shot { padding: 8px 6px 0; border-radius: 8px; }
  .sim-shot-copy strong { font-size: 9px; }
  .sim-shot-copy span { display: none; }
}
@media (max-width: 370px) {
  .mobile-menu-label { display: none; }
  .mobile-navigation summary { width: 38px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
