/* ============================================================
   JalenBuilds Tools — design system
   Aesthetic: precision instruments. Graphite, machined brass,
   editorial serif display, mono data labels, hairline rules.
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-deep: #08080a;
  --panel: #131317;
  --panel-2: #18181e;
  --line: rgba(235, 232, 224, 0.09);
  --line-strong: rgba(235, 232, 224, 0.18);
  --ink: #ebe8e0;
  --ink-dim: #a8a49b;
  --ink-faint: #86827a; /* 5.1:1 on --bg — keep ≥4.5 for WCAG AA */
  --brass: #e0a458;
  --brass-bright: #f2bd6f;
  --brass-dim: rgba(224, 164, 88, 0.14);
  --copper: #c97f3d;
  --ok: #8fbf6f;
  --warn: #e0a458;
  --bad: #d96a5a;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --maxw: 1120px;
  --r: 10px;
  --r-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* film grain + vignette atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(224, 164, 88, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(224, 164, 88, 0.04), transparent 55%);
}

main, header.site, footer.site { position: relative; z-index: 5; }

::selection { background: var(--brass); color: #14100a; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: var(--brass-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

/* mono kicker label — the instrument-panel voice */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--brass); display: inline-block; }

.lede { font-size: 1.18rem; color: var(--ink-dim); max-width: 40em; }

/* ---------------- header ---------------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--brass); font-size: 1.05rem; }
.brand .sub { color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
nav.primary { display: flex; gap: 26px; align-items: center; }
nav.primary a { color: var(--ink-dim); font-size: 0.86rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
nav.primary a:hover { color: var(--ink); text-decoration: none; }
nav.primary a.active { color: var(--brass-bright); }

/* ---------------- footer ---------------- */
footer.site { border-top: 1px solid var(--line); margin-top: 6rem; padding: 3rem 0 4rem; color: var(--ink-faint); font-size: 0.88rem; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer.site h4, footer.site .fh { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.45rem; }
footer.site a { color: var(--ink-dim); }
footer.site a:hover { color: var(--brass-bright); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.05em;
  padding: 12px 22px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.12s;
  text-decoration: none;
}
.btn:hover { border-color: var(--brass); color: var(--brass-bright); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #17110a; font-weight: 600; }
.btn-primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); color: #17110a; }
.btn-ghost { border-color: transparent; color: var(--ink-dim); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { border-color: transparent; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; }

/* ---------------- tags / badges ---------------- */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px;
  border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink-dim);
}
.tag.brass { border-color: var(--brass); color: var(--brass-bright); background: var(--brass-dim); }
.tag.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok); }

/* ---------------- storefront index rows ---------------- */
.product-index { border-top: 1px solid var(--line-strong); }
.product-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 2rem; align-items: baseline;
  padding: 2.4rem 0; border-bottom: 1px solid var(--line);
  transition: background 0.2s; position: relative;
}
.product-row:hover { background: linear-gradient(90deg, transparent, rgba(224, 164, 88, 0.04), transparent); }
.product-row .num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.product-row:hover .num { color: var(--brass); }
.product-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.35rem; }
.product-row h3 a { color: var(--ink); }
.product-row h3 a::after { content: ""; position: absolute; inset: 0; }
.product-row:hover h3 a { color: var(--brass-bright); }
.product-row .desc { color: var(--ink-dim); max-width: 34em; margin: 0; font-size: 0.98rem; }
.product-row .meta { text-align: right; font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap; }
.product-row .meta .price { color: var(--ink); display: block; font-size: 0.92rem; }
.product-row .meta .free { color: var(--ok); display: block; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.08em; }

/* ---------------- cards & panels ---------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; }
.panel-2 { background: var(--panel-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ---------------- tool workbench layout ---------------- */
.workbench { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(340px, 6fr); gap: 1.6rem; align-items: start; margin: 2.2rem 0; }
.workbench .controls, .workbench .output { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.workbench .controls { padding: 1.6rem; }
.workbench .output { position: sticky; top: 86px; overflow: hidden; }
.bench-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.3rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint); background: var(--bg-deep);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.bench-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); display: inline-block; margin-right: 8px; box-shadow: 0 0 8px var(--brass); }

/* ---------------- forms ---------------- */
label.field { display: block; margin-bottom: 1.05rem; }
label.field span.lab, .lab {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 7px;
}
input[type="text"], input[type="url"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; background: var(--bg-deep); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 11px 13px; font-family: var(--font-mono); font-size: 0.88rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.12); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a8a49b' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.check-row:hover { border-color: var(--line-strong); background: rgba(235, 232, 224, 0.02); }
.check-row input { accent-color: var(--brass); margin-top: 4px; flex-shrink: 0; }
.help { font-size: 0.8rem; color: var(--ink-faint); margin-top: 5px; }

/* ---------------- code output ---------------- */
.codebox { position: relative; background: var(--bg-deep); }
.codebox pre {
  margin: 0; padding: 1.3rem; overflow: auto; max-height: 560px;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: #cfcbc1;
  white-space: pre-wrap; word-break: break-word;
}
.copybtn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  background: var(--panel-2); color: var(--ink-dim); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 6px 12px; cursor: pointer; text-transform: uppercase;
}
.copybtn:hover { color: var(--brass-bright); border-color: var(--brass); }

/* ---------------- pricing ---------------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 2.4rem 0; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; position: relative; }
.price-card.featured { border-color: var(--brass); background: linear-gradient(180deg, rgba(224, 164, 88, 0.06), var(--panel) 45%); }
.price-card .tier { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.price-card.featured .tier { color: var(--brass-bright); }
.price-card .amount { font-family: var(--font-display); font-size: 2.9rem; margin: 0.5rem 0 0.2rem; }
.price-card .amount small { font-size: 1rem; color: var(--ink-faint); font-family: var(--font-mono); }
.price-card ul { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-dim); font-size: 0.94rem; border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "→"; position: absolute; left: 0; color: var(--brass); font-family: var(--font-mono); font-size: 0.8rem; top: 9px; }

/* ---------------- FAQ ---------------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--brass); font-size: 1.1rem; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { color: var(--ink-dim); padding: 0 0 1.4rem; max-width: 46em; }

/* ---------------- score / meter primitives ---------------- */
.meter { height: 8px; background: var(--bg-deep); border-radius: 100px; overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--brass-bright)); border-radius: 100px; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stat { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.stat .lab { margin-bottom: 4px; }
.stat .val { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.stat .val small { font-size: 0.85rem; color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------------- tables ---------------- */
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.82rem; }
table.data td:first-child { color: var(--ink); }
table.data tr:hover td { background: rgba(235, 232, 224, 0.02); }

/* ---------------- modal (checkout stub) ---------------- */
.jb-modal-backdrop { position: fixed; inset: 0; background: rgba(8, 8, 10, 0.78); backdrop-filter: blur(6px); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.jb-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.jb-modal { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); max-width: 480px; width: 100%; padding: 2.2rem; transform: translateY(10px); transition: transform 0.25s; }
.jb-modal-backdrop.open .jb-modal { transform: none; }
.jb-modal h3 { margin-bottom: 0.6rem; }
.jb-modal p { color: var(--ink-dim); font-size: 0.95rem; }
.jb-modal .actions { display: flex; gap: 12px; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------------- toast ---------------- */
.jb-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-2); border: 1px solid var(--brass); color: var(--ink); font-family: var(--font-mono); font-size: 0.8rem; padding: 11px 20px; border-radius: 8px; z-index: 4000; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.jb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- reveal animation ---------------- */
@media (prefers-reduced-motion: no-preference) {
  /* hidden state only when JS has armed the observer — no-JS users see everything */
  html.reveal-armed .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html.reveal-armed .reveal.in { opacity: 1; transform: none; }
  .reveal-1 { transition-delay: 0.08s; } .reveal-2 { transition-delay: 0.16s; } .reveal-3 { transition-delay: 0.24s; } .reveal-4 { transition-delay: 0.32s; } .reveal-5 { transition-delay: 0.4s; }
}

/* ---------------- hero ---------------- */
.hero { padding: 6.5rem 0 4.5rem; }
.hero .rule { display: flex; align-items: center; gap: 16px; margin-top: 2.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.hero .rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

.section { padding: 3.5rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }

/* ---------------- breadcrumb ---------------- */
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; padding: 1.6rem 0 0; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--brass-bright); }
.crumbs .sep { margin: 0 8px; color: var(--line-strong); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .workbench { grid-template-columns: 1fr; }
  .workbench .output { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .pricing { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 48px 1fr; }
  .product-row .meta { grid-column: 2; text-align: left; margin-top: 0.6rem; }
  .product-row .meta .price, .product-row .meta .free { display: inline-block; margin-right: 14px; }
  footer.site .cols { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  .hero { padding: 4rem 0 3rem; }
}

/* ---------------- print (report exports) ---------------- */
@media print {
  body { background: #fff; color: #16150f; font-size: 12px; }
  body::before, body::after, header.site, footer.site, .no-print, .jb-toast, .jb-modal-backdrop { display: none !important; }
  .panel, .stat, .price-card { border-color: #ddd; background: #fff; }
  a { color: #16150f; }
}

/* ============================================================
   Elevation layer — per-tool identity, input UX, states, mobile
   ============================================================ */

/* per-tool accent (subtle: glyphs, dots, focus tint — never body text) */
:root { --accent: var(--brass); --accent-dim: var(--brass-dim); }
body[data-tool="scorecard"] { --accent: #e0a458; --accent-dim: rgba(224,164,88,.14); }
body[data-tool="llms"]      { --accent: #a3b86c; --accent-dim: rgba(163,184,108,.13); }
body[data-tool="jsonld"]    { --accent: #7fa3c4; --accent-dim: rgba(127,163,196,.13); }
body[data-tool="qr"]        { --accent: #b48ecb; --accent-dim: rgba(180,142,203,.13); }
body[data-tool="tokens"]    { --accent: #6cb8a8; --accent-dim: rgba(108,184,168,.13); }
.kicker { color: var(--accent); }
.kicker::before { background: var(--accent); }
.bench-head .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* tool glyphs — inline SVG, stroke inherits accent */
.tool-glyph { width: 46px; height: 46px; color: var(--accent); flex-shrink: 0; }
.tool-glyph svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.hero-glyph { display: flex; align-items: center; gap: 18px; margin-bottom: 1.2rem; }

/* humanized labels: friendly text + mono code chip side by side */
.code-chip { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ink-faint); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; vertical-align: middle; }
label.field .lab { display: flex; align-items: center; gap: 8px; justify-content: space-between; }

/* inline validation */
input.ok, textarea.ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
input.err, textarea.err { border-color: color-mix(in srgb, var(--bad) 65%, transparent); }
.field-msg { font-size: 0.78rem; margin-top: 6px; display: flex; gap: 7px; align-items: baseline; }
.field-msg.err { color: #e08a7d; }
.field-msg.ok { color: var(--ok); }

/* try an example */
.try-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-dim); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 7px; padding: 9px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.try-btn:hover { border-style: solid; }

/* empty state with personality */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 3rem 1.5rem; color: var(--ink-faint); }
.empty-state .tool-glyph { opacity: 0.5; }
.empty-state .es-line { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-dim); }
.empty-state .es-hint { font-size: 0.85rem; max-width: 26em; }

/* first-run hint strip (dismissible, localStorage) */
.hint-once { display: flex; align-items: flex-start; gap: 12px; background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 10px; padding: 12px 14px; font-size: 0.86rem; color: var(--ink-dim); margin-bottom: 1.2rem; }
.hint-once .hx { margin-left: auto; background: none; border: 0; color: var(--ink-faint); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; }
.hint-once .hx:hover { color: var(--ink); }
.hint-once b { color: var(--ink); font-weight: 600; }

/* mobile sticky action bar — one-hand reach for the primary action */
.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-deep) 88%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); }
  .action-bar .btn { flex: 1; justify-content: center; padding: 13px 10px; }
  body.has-action-bar { padding-bottom: 76px; }
}

/* skeleton shimmer for computed states */
.skeleton { position: relative; overflow: hidden; background: var(--panel-2); border-radius: 7px; min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(235,232,224,.05), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* light preview card (e.g., "how a search result might look") */
.preview-card { background: #f2efe7; color: #1d1c18; border-radius: 10px; padding: 16px 18px; font-family: arial, sans-serif; }
.preview-card .pc-url { color: #1a5b38; font-size: 0.78rem; margin-bottom: 3px; overflow-wrap: anywhere; }
.preview-card .pc-title { color: #1a0dab; font-size: 1.05rem; margin-bottom: 4px; }
.preview-card .pc-desc { color: #3d3a33; font-size: 0.85rem; line-height: 1.45; }
.preview-card .pc-extra { color: #5f5b52; font-size: 0.8rem; margin-top: 6px; }

/* product rows: glyph + reveal arrow */
.product-row { grid-template-columns: 90px 56px 1fr auto; }
.product-row .tool-glyph { width: 40px; height: 40px; margin-top: 4px; opacity: .8; }
.product-row .go { font-family: var(--font-mono); color: var(--ink-faint); font-size: 1rem; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; margin-left: 12px; }
.product-row:hover .go { opacity: 1; transform: none; color: var(--brass-bright); }
@media (max-width: 900px) {
  .product-row { grid-template-columns: 44px 1fr; }
  .product-row .num { display: none; }
  .product-row .go { display: none; }
}

/* icon buttons */
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }

/* hero ornament — decorative instrument dial, desktop only */
.hero { position: relative; }
.hero-ornament { position: absolute; right: 24px; top: 50%; transform: translateY(-52%); width: 300px; height: 300px; color: var(--brass); opacity: 0.35; pointer-events: none; }
.hero-ornament svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1; }
.hero-ornament .needle { transform-origin: 150px 150px; animation: sweep 9s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(24deg); } }
@media (prefers-reduced-motion: reduce) { .hero-ornament .needle { animation: none; } }
@media (max-width: 1080px) { .hero-ornament { display: none; } }

/* [hidden] must always win — component display rules otherwise override it */
[hidden] { display: none !important; }

/* mobile: content column must be shrinkable; meta wraps */
@media (max-width: 900px) {
  .product-row { grid-template-columns: 44px minmax(0, 1fr); }
  .product-row .meta { white-space: normal; }
}

body[data-tool="recommends"] { --accent: #c98ba6; --accent-dim: rgba(201,139,166,.13); }
