/* Host Grotesk, SIL Open Font License (fonts/HostGrotesk-OFL.txt). Latin subset. */
@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/HostGrotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --stone: #f5f5f2;
  --stone-2: #ecece8;
  --surface: #ffffff;
  --line: #e6e6e1;
  --line-strong: #d6d6d0;
  --tick: #b9b9b2;
  --dot: #d9d9d3;
  --ink: #121413;
  --text: #1d201f;
  --muted: #5f6562;
  --quiet: #878d8a;
  --btn: #121413;
  --btn-ink: #ffffff;
  --accent: #127556;
  --accent-soft: #e2f3ea;
  --pro-bg: #c8f0d9;
  --pro-ink: #0b4733;
  --error: #b42318;
  --error-soft: #fdeeec;
  --warn: #935800;
  --warn-soft: #fcf2df;
  --info: #2c5aa8;
  --info-soft: #ebf1fb;
  --ok: #17733a;
  --ok-soft: #e6f4ea;
  --code-bg: #f5f5f2;
  --shadow: 0 1px 2px rgb(18 20 19 / 0.05), 0 10px 28px -14px rgb(18 20 19 / 0.18);
  --shadow-lift: 0 1px 2px rgb(18 20 19 / 0.06), 0 18px 40px -18px rgb(18 20 19 / 0.28);
  --r-card: 18px;
  --r-panel: 12px;
  --r-ctl: 10px;
  --frame: 1160px;
  --gutter: clamp(18px, 4vw, 44px);
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --stone: #1a1d1b;
    --stone-2: #222523;
    --surface: #161917;
    --line: #262a28;
    --line-strong: #333835;
    --tick: #4a504c;
    --dot: #2c312e;
    --ink: #f2f4f2;
    --text: #e3e6e4;
    --muted: #a3aaa6;
    --quiet: #7f8783;
    --btn: #f2f4f2;
    --btn-ink: #111312;
    --accent: #5fcfa3;
    --accent-soft: #173027;
    --pro-bg: #1d4a36;
    --pro-ink: #c8f0d9;
    --error: #ff8f84;
    --error-soft: #3a1c19;
    --warn: #f0b35a;
    --warn-soft: #33270f;
    --info: #92b6f5;
    --info-soft: #1a2536;
    --ok: #74d394;
    --ok-soft: #16301f;
    --code-bg: #1a1d1b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.6);
    --shadow-lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  accent-color: var(--accent);
}
::selection { background: var(--pro-bg); color: var(--pro-ink); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
code, pre, textarea.code { font-family: var(--mono); font-size: 0.85rem; }
:not(pre) > code { background: var(--stone); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: break-word; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 14px; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 12px; }
h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; margin: 26px 0 6px; }
.h-quiet { color: var(--quiet); }
p, ul, ol { margin: 0 0 14px; }
p, li, dd { text-wrap: pretty; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
* { scrollbar-color: var(--line-strong) transparent; }

/* frame: one ruled column. Rails on the sides, a rule between bands, a small cross where they meet. */
.frame {
  position: relative;
  width: min(var(--frame), 100% - 2 * clamp(12px, 3vw, 32px));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.band { position: relative; border-top: 1px solid var(--line); }
.band > .frame { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); }
.band > .frame::before, .band > .frame::after {
  content: ""; position: absolute; top: -5px; width: 9px; height: 9px; pointer-events: none;
  background:
    linear-gradient(var(--tick), var(--tick)) center / 9px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) center / 1px 9px no-repeat;
}
.band > .frame::before { left: -5px; }
.band > .frame::after { right: -5px; }
main > .band:first-child { border-top: 0; }
main > .band:first-child > .frame::before, main > .band:first-child > .frame::after { display: none; }

/* dotted work surface */
.dots { position: relative; isolation: isolate; }
.dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 16px 16px;
  background-position: center top;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px 28px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-size: 1.06rem; }
.brand svg { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 6px 12px; border-radius: 99px; }
.nav a:hover { color: var(--ink); background: var(--stone); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--stone); }

/* buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 550; font-size: 0.94rem; line-height: 1.2;
  padding: 10px 18px; border-radius: 99px; border: 1px solid transparent;
  background: var(--stone); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out;
}
.btn:hover { background: var(--stone-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn) 84%, var(--accent)); }
.btn-pro { background: var(--pro-bg); color: var(--pro-ink); }
.btn-pro:hover { background: color-mix(in srgb, var(--pro-bg) 85%, var(--pro-ink)); }
.btn-small { padding: 6px 14px; font-size: 0.875rem; }
.btn .arrow { transition: transform 0.15s ease-out; }
.btn:hover .arrow { transform: translateX(2px); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; background: none; border: 0; border-radius: 99px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--stone); color: var(--ink); }
input[type="text"], input[type="url"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 10px 12px;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
input::placeholder, textarea::placeholder { color: var(--quiet); }
input:hover, select:hover, textarea:hover { border-color: var(--tick); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; }
textarea.code { min-height: 220px; line-height: 1.5; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
label { display: block; font-weight: 550; font-size: 0.875rem; color: var(--ink); margin: 14px 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-size: 0.9rem; margin: 8px 0 0; }

/* page head */
.band-head > .frame { padding-bottom: clamp(28px, 4vw, 44px); }
.band-head h1 { max-width: 820px; }

/* tool on the dotted band */
.band-work { background: var(--stone); }
.band-work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 16px 16px;
}
.band-work > .frame { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.tool {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow-lift);
}
.tool > label:first-child, .tool form > label:first-child { margin-top: 0; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 18px; background: var(--stone); border: 1px solid var(--line); border-radius: 99px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { background: none; border: 0; font: inherit; font-weight: 550; font-size: 0.9rem; color: var(--muted); padding: 7px 14px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgb(18 20 19 / 0.08), 0 0 0 1px var(--line); }
.row { display: flex; gap: 8px; align-items: stretch; }
.row > input { flex: 1; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.status { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; min-height: 1.4em; }
.status:empty { margin: 0; min-height: 0; }
.status.err { color: var(--error); }

/* results */
.results:not(:empty) { margin-top: 28px; display: grid; gap: 14px; }
.results:not(:empty) > * { margin: 0; }

/* one report card: what was checked, then four verdicts that jump to their sections */
.report { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.report-head a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: 0 0 14px; }
.report .summary { border: 0; border-radius: 0; margin: 0; }
.stat { display: block; padding: 14px 20px 16px; background: var(--surface); color: inherit; text-decoration: none; }
a.stat { transition: background-color 0.15s ease-out; }
a.stat:hover { background: var(--stone); }
.stat .k { font-size: 0.82rem; color: var(--muted); }
.stat .v { display: flex; align-items: center; gap: 8px; font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); }
.stat.good .v::before { background: var(--ok); }
.stat.bad .v::before { background: var(--error); }
.stat.mid .v::before { background: var(--warn); }

.panel { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); margin: 0 0 12px; overflow: hidden; scroll-margin-top: 84px; }
.panel > h3, .panel-head { margin: 0; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 1.02rem; display: flex; justify-content: space-between; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
.panel-meta { font-size: 0.84rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.panel-body { padding: 16px 20px 18px; }
.panel-body > .issues:first-child { margin-top: 0; }
.panel-foot { margin: 16px 0 0; font-size: 0.86rem; color: var(--muted); max-width: 720px; }
.panel-action { margin: 14px 0 0; }
.panel-action .btn { white-space: normal; text-align: left; }

.entity { border-top: 1px solid var(--line); padding: 16px 20px 18px; }
.entity:first-of-type { border-top: 0; }
.block-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500; color: var(--quiet); margin-bottom: 10px; }
.entity-item + .entity-item { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.entity-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.entity-type { font-weight: 600; color: var(--ink); font-size: 1rem; }
.entity-name { font-weight: 400; color: var(--muted); margin-left: 6px; }
.entity-tags { display: inline-flex; gap: 6px; }
.entity-features { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }

.tag { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 550; line-height: 1.5; padding: 1px 9px; border-radius: 99px; background: var(--stone); color: var(--muted); white-space: nowrap; }
.tag.err { background: var(--error-soft); color: var(--error); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.info { background: var(--info-soft); color: var(--info); }

/* findings: quiet rows, the color sits in the dot and the label */
.issues { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.issues li { position: relative; padding: 10px 14px 10px 32px; border-top: 1px solid var(--line); font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; }
.issues li:first-child { border-top: 0; }
.issues li::before { content: ""; position: absolute; left: 14px; top: 1.05em; width: 7px; height: 7px; border-radius: 99px; background: var(--tick); }
.issues li.error { background: color-mix(in srgb, var(--error-soft) 55%, var(--surface)); }
.issues li.error::before { background: var(--error); }
.issues li.warning::before { background: var(--warn); }
.issues li.info::before { background: var(--info); }
.issues li.ok::before { background: var(--ok); }
.issues .lvl { font-weight: 600; margin-right: 2px; }
.issues .error .lvl { color: var(--error); }
.issues .warning .lvl { color: var(--warn); }
.issues .info .lvl { color: var(--info); }
details.raw { margin-top: 14px; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; font-weight: 500; width: fit-content; padding: 4px 12px; border-radius: 99px; background: var(--stone); list-style: none; }
details.raw summary::-webkit-details-marker { display: none; }
details.raw summary::before { content: "+ "; }
details.raw[open] summary::before { content: "\2212  "; }
details.raw summary:hover { color: var(--ink); background: var(--stone-2); }

/* crawlers: two lists side by side */
.bot-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bot-group { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.bot-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--stone); border-bottom: 1px solid var(--line); }
.bot-group-head h4 { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.bot-group-head span { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bots { list-style: none; margin: 0; padding: 0; }
.bots li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.bots li:first-child { border-top: 0; }
.bot { display: flex; flex-direction: column; min-width: 0; }
.bot strong { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.bot > span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.bot .bot-rule { margin-top: 3px; }
.bot .bot-rule code { font-size: 0.76rem; }
.bots .tag { margin-top: 2px; }

/* page basics */
.kv { margin: 0; }
.kv-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.kv-row:first-child { border-top: 0; padding-top: 0; }
.kv-row:last-child { padding-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 14px 16px; overflow-x: auto; margin: 10px 0 16px; line-height: 1.55; max-height: 520px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 550; color: var(--muted); font-size: 0.82rem; border-top: 0; }
thead th { border-bottom: 1px solid var(--line); }
thead + tbody tr:first-child td { border-top: 0; }
.table-scroll { overflow-x: auto; }
.cta {
  --c-bg: #dcf2e5; --c-text: #2d4a3d;
  display: flex; gap: 14px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--c-bg); border-radius: var(--r-card);
  padding: 18px 20px 18px 22px; margin: 14px 0 0;
}
.cta p { margin: 0; max-width: 560px; color: var(--c-text); }
.cta p strong { color: var(--ink); font-weight: 600; }
.cta .btn-pro { background: var(--pro-ink); color: var(--bg); }
.cta .btn-pro:hover { background: color-mix(in srgb, var(--pro-ink) 88%, var(--ink)); }
@media (prefers-color-scheme: dark) {
  .cta { --c-bg: #173327; --c-text: #c9e3d5; }
}

/* generator */
.gen-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.gen-form fieldset { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 4px 14px 14px; margin: 14px 0 0; }
.gen-form legend { font-weight: 600; font-size: 0.875rem; color: var(--ink); padding: 0 6px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.two > .span-2 { grid-column: 1 / -1; }
.hours { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 6px 8px; align-items: center; margin-top: 8px; }
.hours span { font-size: 0.875rem; font-weight: 550; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 2px 12px 12px; margin-top: 10px; position: relative; }
.faq-item .icon-btn { position: absolute; right: 4px; top: 4px; }
.gen-out { position: sticky; top: 80px; align-self: start; }
.gen-out pre { max-height: 60vh; margin-top: 0; }

/* side-headed sections */
.split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); }
.split-side h2 { position: sticky; top: 92px; margin: 0; }
.prose { max-width: 700px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--quiet); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .btn { white-space: normal; text-align: center; }
.callout { background: var(--info-soft); padding: 12px 16px; border-radius: var(--r-panel); margin: 16px 0; }
.faq { margin: 0; }
.faq dt { font-weight: 600; color: var(--ink); padding-top: 18px; border-top: 1px solid var(--line); }
.faq dt:first-child { padding-top: 0; border-top: 0; }
.faq dd { margin: 6px 0 18px; color: var(--muted); }
.faq dd:last-child { margin-bottom: 0; }

/* home */
.hero > .frame { text-align: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.042em; max-width: 900px; margin: 0 auto 18px; }
.hero h1 .h-quiet { display: block; }
.hero .lead { margin: 0 auto; }
.hero-tool { position: relative; max-width: 760px; margin: clamp(28px, 4vw, 44px) auto 0; text-align: left; }
.hero-note { margin: 14px 0 0; text-align: center; font-size: 0.86rem; color: var(--muted); }
.hero.dots::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 80%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 80%);
}
.hero .results { text-align: left; max-width: 920px; margin-left: auto; margin-right: auto; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head h2 { max-width: 620px; margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.08; letter-spacing: -0.032em; }
.section-head p { margin: 0; max-width: 400px; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bento > :nth-child(1) { grid-column: span 3; }
.bento > :nth-child(2) { grid-column: span 2; }
.bento > :nth-child(3) { grid-column: span 2; }
.bento > :nth-child(4) { grid-column: span 3; }
.card { display: flex; flex-direction: column; background: var(--stone); border-radius: var(--r-card); padding: 10px 10px 22px; }
.card-art { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 230px; padding: 26px 22px; border-radius: 12px; overflow: hidden; isolation: isolate; }
.card-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px); background-size: 14px 14px; }
.card h3 { margin: 18px 14px 4px; font-size: 1.02rem; }
.card p { margin: 0 14px; color: var(--muted); font-size: 0.93rem; max-width: 460px; }

/* example result panels drawn in the page's own UI */
.mock { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); font-size: 0.84rem; overflow: hidden; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.mock-head .ex { font-weight: 500; font-size: 0.74rem; color: var(--quiet); }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); }
.mock-head + .mock-row { border-top: 0; }
.mock-row .k { color: var(--ink); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .k span { color: var(--muted); font-weight: 400; }
.mock-note { margin: 0 10px 10px; padding: 7px 10px 7px 26px; position: relative; border-radius: 8px; background: var(--warn-soft); color: var(--text); font-size: 0.8rem; line-height: 1.45; }
.mock-note::before { content: ""; position: absolute; left: 11px; top: 0.85em; width: 6px; height: 6px; border-radius: 99px; background: var(--warn); }
.mock pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 10px 14px 12px; font-size: 0.76rem; line-height: 1.6; color: var(--muted); }
.mock pre b { color: var(--ink); font-weight: 600; }
.mock-tilt { transform: rotate(-1.2deg); }
.mock-tilt-r { transform: rotate(1deg); }

.compare { list-style: none; margin: 0; padding: 0; }
.compare li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.compare li:first-child { border-top: 0; padding-top: 0; }
.compare li:last-child { padding-bottom: 0; }
.compare .name { font-weight: 600; color: var(--ink); }
.compare .name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; }
.compare li p { margin: 0; color: var(--muted); }
.compare li.ours { background: var(--stone); border-radius: var(--r-panel); border-top-color: transparent; padding: 18px; margin: 4px -18px 0; }
.compare li.ours + li { border-top-color: transparent; }

.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: var(--r-card); background: var(--stone); text-decoration: none; color: var(--text); transition: background-color 0.15s ease-out; }
.link-card:hover { background: var(--stone-2); }
.link-card strong { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.link-card strong svg { color: var(--quiet); transition: transform 0.15s ease-out, color 0.15s ease-out; }
.link-card:hover strong svg { transform: translateX(3px); color: var(--ink); }
.link-card span { color: var(--muted); font-size: 0.92rem; }

.close-card {
  --c-bg: #dcf2e5; --c-quiet: #3f6d58; --c-text: #2d4a3d;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 32px clamp(32px, 5vw, 64px);
  background: var(--c-bg); border-radius: 24px; padding: clamp(28px, 5vw, 56px);
}
.close h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 16px; }
.close h2 .h-quiet { display: block; color: var(--c-quiet); }
.close-copy p { color: var(--c-text); max-width: 460px; margin: 0 0 26px; }
.close-copy .fine { font-size: 0.86rem; margin: 14px 0 0; color: var(--c-quiet); }
.close-art { display: flex; justify-content: center; }
.close-art .mock { max-width: 420px; box-shadow: var(--shadow-lift); }
@media (prefers-color-scheme: dark) {
  .close-card { --c-bg: #173327; --c-quiet: #8fc6ab; --c-text: #c9e3d5; }
}

/* footer */
.site-footer { font-size: 0.92rem; background: var(--stone); }
.site-footer > .frame { border-color: var(--line-strong); }
.site-footer > .frame { padding-top: clamp(40px, 5vw, 56px); padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; width: fit-content; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.footer-brand p { color: var(--muted); margin: 10px 0 0; max-width: 260px; }
.footer-title { font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.footer-note { color: var(--quiet); margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.84rem; }

/* Pro dialog */
.pro-dialog { border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 20px; max-width: 470px; width: calc(100% - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift); }
.pro-dialog::backdrop { background: rgb(18 20 19 / 0.4); }
.pro-dialog h2 { margin: 0 0 12px; font-size: 1.35rem; padding-right: 32px; }
.pro-close-form { position: absolute; right: 12px; top: 12px; margin: 0; }
.pro-list { padding-left: 20px; }
.pro-list li { margin-bottom: 6px; }
.pro-list li::marker { color: var(--accent); }
.pro-honest { background: var(--stone); border-radius: var(--r-panel); padding: 12px 14px; font-size: 0.93rem; }
.pro-form .btn { width: 100%; margin-top: 16px; padding: 12px 18px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto !important; }
  .links { grid-template-columns: 1fr; }
  .close-card { grid-template-columns: minmax(0, 1fr); }
  .mock-row .k { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .gen-grid { grid-template-columns: minmax(0, 1fr); }
  .gen-out { position: static; }
  .row { flex-direction: column; }
  .two { grid-template-columns: 1fr; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-side h2 { position: static; }
  .compare li { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .header-inner > .btn-pro { margin-left: auto; }
  .card-art { min-height: 0; padding: 22px 14px; }
  .bot-groups { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .v { font-size: 0.98rem; align-items: baseline; }
  .stat .v::before { transform: translateY(-1px); }
  .kv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .kv-row dd { grid-column: 1 / -1; grid-row: 2; }
  .panel > h3, .panel-body, .entity, .report-head, .stat { padding-left: 16px; padding-right: 16px; }
  .mock-tilt, .mock-tilt-r { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
