/* sqlquerymasker.com - shared styles (home + legal). Self-hosted IBM Plex via /fonts.css. */
:root{
  --paper:#f6f8fb;
  --surface:#ffffff;
  --ink:#0b2a52;          /* logo navy: text, panels, buttons, rules */
  --muted:#52607a;
  --line:#d3dbe6;
  --accent:#d4a03f;       /* logo gold: tokens and marks (fills) */
  --accent-ink:#8a5a12;   /* gold as text */
  --reveal:#f7e9c8;
  --good:#1e5aa0;         /* blue for "yes" and the Free tag */
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:24px; }
::selection{ background:var(--accent); color:var(--ink); }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font:400 1.0625rem/1.6 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif;
  border-top:6px solid var(--ink);
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--ink); text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:3px; }
a:hover{ color:var(--accent-ink); }
code, pre, .mono{ font-family:'IBM Plex Mono', ui-monospace, Consolas, 'Courier New', monospace; }
.wrap{ max-width:1080px; margin:0 auto; padding-inline:24px; }

/* header */
.site-head{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:22px; }
.wordmark{ font-weight:600; font-size:1.15rem; letter-spacing:-.01em; text-decoration:none; color:var(--ink); display:inline-flex; align-items:center; }
.wordmark{ white-space:nowrap; }
.wordmark::before{ flex:none;
  content:""; width:2.1em; height:2.1em; margin-right:.5em;
  background:url(/apple-touch-icon.png) center/contain no-repeat;
}
.site-head nav{ display:flex; gap:24px; flex-wrap:wrap; }
.site-head nav a{ font-size:.95rem; text-decoration:none; color:var(--muted); }
.site-head nav a:hover{ color:var(--ink); text-decoration:underline; text-decoration-color:var(--accent); }
@media (max-width:640px){ .site-head nav a:not(.keep){ display:none; } }
@media (max-width:420px){ .site-head nav{ display:none; } }

/* buttons */
.btn{
  display:inline-block; padding:13px 22px; border:2px solid var(--ink); border-radius:3px;
  background:var(--ink); color:#fff; font-weight:600; font-size:1rem; text-decoration:none;
}
.btn:hover{ background:var(--accent); border-color:var(--accent); color:var(--ink); }
.btn.secondary{ background:transparent; color:var(--ink); }
.btn.secondary:hover{ background:var(--ink); border-color:var(--ink); color:#fff; }
.actions{ display:flex; flex-wrap:wrap; gap:12px; margin:30px 0 14px; }
.fine{ font-size:.86rem; color:var(--muted); line-height:1.6; margin:10px 0 0; max-width:70ch; }
.fine code{ font-size:.8rem; word-break:break-all; }

/* hero */
.hero{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:56px; align-items:start; padding:56px 0 64px; }
@media (max-width:900px){ .hero{ grid-template-columns:minmax(0,1fr); gap:36px; padding-top:32px; } }
.hero h1{ font-size:clamp(2.3rem,4.8vw,3.5rem); line-height:1.04; font-weight:600; letter-spacing:-.028em; margin:0 0 22px; }
.hero .lede{ font-size:1.15rem; color:var(--muted); margin:0; max-width:34em; }

.query{ border:1px solid var(--ink); background:var(--surface); box-shadow:7px 7px 0 var(--line); }
.query + .query{ margin-top:22px; }
.query .cap{
  display:flex; justify-content:space-between; gap:12px; background:var(--ink); color:#fff;
  font:500 .78rem/1 'IBM Plex Mono', monospace; padding:10px 14px;
}
.query .cap span:last-child{ color:#9fb2cf; }
.query pre{ margin:0; padding:16px 16px 18px; font-size:.92rem; line-height:1.75; overflow-x:auto; }
.id{
  position:relative; background:var(--reveal); box-shadow:inset 0 -2px 0 var(--accent);
  border-radius:2px; padding:0 1px; cursor:default; transition:background .12s;
}
.id:hover, .id:focus{ background:var(--accent); outline:none; }
.id::after{
  content:"\2192  " attr(data-t); position:absolute; left:50%; bottom:calc(100% + 3px); transform:translateX(-50%);
  background:var(--ink); color:var(--accent); font:500 .75rem/1 'IBM Plex Mono', monospace;
  padding:5px 8px; border-radius:2px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .12s; z-index:2;
}
.id:hover::after, .id:focus::after{ opacity:1; }
.query.src pre{ padding-top:32px; }
.tk{ background:var(--accent); color:var(--ink); border-radius:2px; padding:0 3px; font-weight:500; }
.hint{ font-size:.86rem; color:var(--muted); margin:14px 2px 0; }

/* sections */
.sec{ padding-block:56px 8px; }
.sec h2{
  border-top:3px solid var(--ink); padding-top:14px; margin:0 0 10px;
  font-size:1.75rem; line-height:1.2; font-weight:600; letter-spacing:-.018em;
}
.sec .sub{ color:var(--muted); margin:0 0 28px; max-width:62ch; }

/* figures */
figure{ margin:0; }
.shot img, .demo video{ display:block; width:100%; height:auto; border:1px solid var(--ink); background:#16171d; }
.shot img{ box-shadow:7px 7px 0 var(--line); }
figcaption.fig{ font-size:.92rem; color:var(--muted); margin:14px 0 0; }
figcaption.fig strong{ color:var(--ink); font-weight:600; }
.tier{
  display:inline-block; margin-left:10px; padding:1px 7px; border:1px solid currentColor;
  font:500 .72rem/1.5 'IBM Plex Mono', monospace; text-transform:uppercase; letter-spacing:.04em; vertical-align:1px;
}
.tier.free{ color:var(--good); }
.tier.pro{ color:var(--accent-ink); }
.demo-list{ display:grid; gap:44px; margin-top:8px; }

/* how it works */
.split{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:44px; align-items:start; }
@media (max-width:900px){ .split{ grid-template-columns:minmax(0,1fr); } }
ol.steps{ list-style:none; counter-reset:s; margin:0; padding:0; }
ol.steps li{ counter-increment:s; position:relative; padding:0 0 22px 46px; max-width:44ch; }
ol.steps li::before{
  content:counter(s, decimal-leading-zero); position:absolute; left:0; top:2px;
  font:500 .9rem/1.6 'IBM Plex Mono', monospace; color:var(--accent-ink);
}
.block{ border:1px solid var(--ink); background:var(--surface); }
.block pre{ margin:0; padding:16px; font-size:.78rem; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.block .c{ color:var(--muted); }

/* masks / leaves / limits */
.cols{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:36px; }
@media (max-width:900px){ .cols{ grid-template-columns:minmax(0,1fr); gap:26px; } }
.cols h3{ font-size:1rem; font-weight:600; margin:0 0 10px; padding-bottom:8px; border-bottom:1px solid var(--ink); }
.cols ul{ margin:0; padding-left:1.1em; }
.cols li{ margin:0 0 8px; color:var(--ink); }

/* table */
.table-wrap{ overflow-x:auto; border:1px solid var(--ink); background:var(--surface); }
table{ width:100%; border-collapse:collapse; min-width:560px; }
th, td{ padding:13px 16px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
tbody tr:last-child td{ border-bottom:none; }
thead th{ background:var(--ink); color:#fff; font:500 .8rem/1.3 'IBM Plex Mono', monospace; border-bottom:none; }
td.yes{ color:var(--good); font-weight:500; }
td.no{ color:var(--muted); }
td.price{ font-weight:600; font-size:1.15rem; white-space:nowrap; }

/* footer */
.site-foot{ margin-top:72px; border-top:3px solid var(--ink); padding-block:26px 40px; display:flex; flex-wrap:wrap; gap:18px 40px; justify-content:space-between; font-size:.9rem; color:var(--muted); }
.site-foot a{ color:var(--muted); }
.site-foot a:hover{ color:var(--ink); }
.site-foot .about{ max-width:48ch; }

/* legal page */
.title-block{ padding-block:40px 6px; max-width:720px; }
.title-block h1{ font-size:clamp(2rem,4.5vw,2.8rem); line-height:1.1; font-weight:600; letter-spacing:-.022em; margin:0 0 14px; }
.title-block p{ color:var(--muted); max-width:62ch; margin:0 0 10px; }
.title-block .eyebrow, .doc-section .eyebrow{ font-size:.86rem; color:var(--muted); margin:0 0 8px; }
.updated{ font:400 .85rem 'IBM Plex Mono', monospace; color:var(--muted); }
.toc{ display:flex; flex-wrap:wrap; gap:10px 22px; margin:26px 0 0; padding:0; list-style:none; }
.toc a{ font-weight:500; }
hr.div{ border:none; border-top:3px solid var(--ink); margin:44px 0 30px; }
.doc{ max-width:720px; }
.doc-section{ padding-block:14px 8px; scroll-margin-top:24px; }
.doc-section h2{ font-size:1.8rem; line-height:1.2; font-weight:600; letter-spacing:-.018em; margin:0 0 6px; }
.doc-section .sub{ color:var(--muted); margin:0 0 28px; max-width:62ch; }
.clause{ margin-bottom:28px; }
.clause h3{ display:flex; gap:12px; align-items:baseline; font-size:1.05rem; font-weight:600; margin:0 0 8px; }
.clause h3 .no{ font:500 .88rem 'IBM Plex Mono', monospace; color:var(--accent-ink); }
.clause p, .clause li{ margin:0 0 10px; max-width:66ch; }
.clause ul, .clause ol{ margin:0 0 10px; padding-left:1.3em; }
.clause .muted{ color:var(--muted); }
.allcaps{ text-transform:uppercase; font-size:.9rem; line-height:1.7; color:var(--muted); border:1px solid var(--line); background:var(--surface); padding:14px 16px; }

@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } .id, .id::after{ transition:none; } }
