/* ============================================================
   NocTel Desk — Setups stylesheet
   Shared by the Setups gallery + every setup page.
   Third page family (after product pages and Notes).
   A setup page is a task page: someone searched a problem and
   landed here. Calm, legible, fast to the answer. Warm ground,
   zero terrain accents — these pages stay quiet.
   ============================================================ */

:root {
  --bg-primary:#F0EFE9; --bg-section:#F9F9F7; --bg-dark:#091524; --bg-card:#ECEAE4;
  --bg-muted:rgba(9,21,36,0.06);
  --text-primary:#1A1B17; --text-read:rgba(9,21,36,0.82); --text-body:rgba(9,21,36,0.64);
  --text-muted:rgba(9,21,36,0.60); --text-light:#F9F9F7;
  --accent-lime:#38B6FF; --accent-teal:#2A528E;
  --border:rgba(9,21,36,0.10); --border-med:rgba(9,21,36,0.20);
  --serif:"Geist",system-ui,-apple-system,sans-serif;
  --sans:"Geist",system-ui,-apple-system,sans-serif;
  --mono:"Sometype Mono",ui-monospace,Menlo,monospace;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { font-family:var(--sans); background:var(--bg-primary); color:var(--text-primary); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
h1,h2,h3 { font-family:var(--serif); font-weight:700; }
a { color:inherit; text-decoration:none; }

.container { max-width:1200px; margin:0 auto; padding:0 20px; }
.eyebrow { font-family:var(--sans); font-size:12px; font-weight:500; letter-spacing:0.16em; text-transform:uppercase; color:var(--accent-teal); }

/* =========== GALLERY (setups.html) =========== */
.setups-hero { max-width:1200px; margin:0 auto; padding:96px 24px 48px; }
.setups-hero .eyebrow { margin-bottom:22px; }
.setups-hero h1 { font-size:clamp(48px,8vw,96px); line-height:0.98; letter-spacing:-0.03em; }
.setups-hero p.dek { font-size:19px; color:var(--text-body); margin-top:24px; max-width:560px; line-height:1.5; }

/* Filter row — browse by product */
.filter-row { max-width:1200px; margin:0 auto; padding:8px 24px 12px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.filter-label { font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-right:8px; }
.filter-pill { font-family:var(--sans); font-size:14px; font-weight:500; color:var(--text-body); background:transparent; border:1px solid var(--border-med); border-radius:999px; padding:8px 18px; cursor:pointer; transition:all .2s ease; }
.filter-pill:hover { border-color:var(--accent-teal); color:var(--text-primary); }
.filter-pill.on { background:var(--accent-teal); border-color:var(--accent-teal); color:#fff; }

/* Card grid */
.setup-grid { max-width:1200px; margin:0 auto; padding:20px 24px 48px; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.setup-card { display:flex; flex-direction:column; background:var(--bg-section); border:1px solid var(--border); border-radius:16px; padding:26px 26px 22px; transition:border-color .2s ease, transform .2s ease; }
/* .setup-card is display:flex, and any author display rule beats the UA's
   [hidden]{display:none} — the same collision that made the mobile menu an
   invisible tap-eating layer on every page. Filtering needs this guard. */
.setup-card[hidden] { display:none; }
.filter-vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.setup-card:hover { border-color:var(--border-med); transform:translateY(-2px); }
.setup-card .sc-group { font-family:var(--mono); font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-bottom:12px; }
.setup-card h3 { font-size:20.5px; line-height:1.22; letter-spacing:-0.012em; font-weight:600; }
.setup-card:hover h3 { color:var(--accent-teal); }
.setup-card p { font-size:14.5px; color:var(--text-body); line-height:1.5; margin-top:10px; flex-grow:1; }
.setup-card .sc-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:18px; padding-top:16px; border-top:1px solid var(--border); }
.sc-tag { font-size:12.5px; color:var(--text-body); background:var(--bg-muted); border-radius:999px; padding:4px 12px; }
.setup-card.hidden { display:none; }

.gallery-note { max-width:1200px; margin:0 auto; padding:40px 24px 110px; }
.gallery-note p { font-size:16.5px; color:var(--text-read); line-height:1.65; max-width:62ch; }
.gallery-note p + p { margin-top:14px; }
.gallery-note a.inline { color:var(--accent-teal); border-bottom:1px solid var(--accent-teal); }

/* =========== SETUP PAGE =========== */
.crumb-strip { max-width:760px; margin:0 auto; padding:36px 24px 0; }
.crumb { font-family:var(--mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-muted); }
.crumb a { color:var(--accent-teal); }
.crumb .dot { margin:0 8px; opacity:.5; }

.setup-hero { max-width:760px; margin:0 auto; padding:44px 24px 8px; }
.setup-hero h1 { font-size:clamp(34px,5.4vw,56px); line-height:1.06; letter-spacing:-0.024em; }
.setup-hero .orient { font-size:16px; color:var(--text-body); line-height:1.55; margin-top:22px; max-width:60ch; }
.setup-hero .orient a { color:var(--accent-teal); border-bottom:1px solid rgba(42,82,142,0.4); }

.setup-body { max-width:760px; margin:0 auto; padding:34px 24px 8px; font-size:18.5px; line-height:1.7; color:var(--text-read); }
.setup-body p { margin-bottom:22px; }
.setup-body strong { color:var(--text-primary); font-weight:500; }
.setup-body em { color:var(--text-primary); font-style:italic; }

/* The response, written the way Desk speaks */
.plan { max-width:760px; margin:26px auto 0; padding:0 24px; }
.plan-panel { background:var(--bg-section); border:1px solid var(--border); border-radius:16px; padding:10px 28px; }
.plan-panel .plan-label { font-weight:500; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--accent-teal); padding:18px 0 4px; }
.plan-row { display:grid; grid-template-columns:130px 1fr; gap:24px; padding:15px 0; border-top:1px solid var(--border); align-items:baseline; }
.plan-row:first-of-type { border-top:none; }
.plan-key { font-family:var(--mono); font-size:12.5px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--accent-teal); }
.plan-val { font-size:16px; line-height:1.5; color:var(--text-read); }
.plan-note { font-size:14px; color:var(--text-muted); line-height:1.55; margin:14px auto 0; max-width:760px; padding:0 4px; }
.plan .plan-note { padding:0 4px; }

/* How it gets built — numbered steps */
.steps { max-width:760px; margin:44px auto 0; padding:0 24px; }
.steps .label { font-weight:500; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--accent-teal); margin-bottom:6px; }
.steps .steps-sub { font-size:14.5px; color:var(--text-muted); margin-bottom:18px; }
.step { display:grid; grid-template-columns:44px 1fr; gap:18px; padding:16px 0; border-top:1px solid var(--border); }
.step:last-of-type { border-bottom:1px solid var(--border); }
.step-num { font-family:var(--mono); font-size:14px; font-weight:600; color:var(--accent-teal); padding-top:2px; }
.step-body { font-size:15.5px; line-height:1.55; color:var(--text-body); }
.step-body strong { display:block; font-size:16.5px; color:var(--text-primary); font-weight:600; margin-bottom:2px; }
.steps .docs-link { display:inline-block; margin-top:16px; font-size:14px; color:var(--accent-teal); border-bottom:1px solid rgba(42,82,142,0.4); }

/* Pieces this setup uses */
.pieces { max-width:760px; margin:44px auto 0; padding:0 24px; }
.pieces .label { font-weight:500; font-family:var(--mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); margin-bottom:14px; }
.piece-row { display:flex; flex-wrap:wrap; gap:10px; }
.piece { display:inline-flex; align-items:baseline; gap:8px; border:1px solid var(--border-med); border-radius:999px; padding:9px 18px; font-size:14.5px; color:var(--text-primary); transition:border-color .2s ease, background .2s ease; }
.piece:hover { border-color:var(--accent-teal); background:rgba(42,82,142,0.05); }
.piece small { font-size:12.5px; color:var(--text-body); }

/* Closing CTA */
.setup-close { max-width:760px; margin:0 auto; padding:72px 24px 96px; }
.setup-close .line { font-family:var(--serif); font-size:clamp(23px,3vw,30px); line-height:1.3; color:var(--text-primary); max-width:24ch; }
.setup-close p { font-size:16.5px; color:var(--text-body); line-height:1.6; margin-top:16px; max-width:56ch; }
.setup-close .cta-row { display:flex; align-items:center; gap:22px; margin-top:28px; flex-wrap:wrap; }
.setup-close .cta-btn { display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:999px; background:var(--bg-dark); color:var(--text-light); font-size:15px; font-weight:500; transition:background .2s; }
.setup-close .cta-btn:hover { background:var(--accent-teal); }
.setup-close .cta-btn svg { width:16px; height:16px; }
.setup-close .phone { font-family:var(--mono); font-size:14px; letter-spacing:0.03em; color:var(--text-body); }
.setup-close .phone b { color:var(--text-primary); font-weight:600; }

/* Related setups */
.related { background:var(--bg-section); border-top:1px solid var(--border); padding:72px 24px; }
.related-inner { max-width:1100px; margin:0 auto; }
.related-head { font-weight:500; font-family:var(--mono); font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent-teal); margin-bottom:28px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.related-card { border:1px solid var(--border); border-radius:14px; padding:26px; background:var(--bg-primary); transition:border-color .2s; }
.related-card:hover { border-color:var(--border-med); }
.related-card .label { font-family:var(--mono); font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); }
.related-card h3 { font-size:20px; line-height:1.22; letter-spacing:-0.01em; margin:10px 0 8px; font-weight:600; }
.related-card:hover h3 { color:var(--accent-teal); }
.related-card p { font-size:14.5px; color:var(--text-body); line-height:1.5; }

@media (max-width:1060px){
  .setup-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .step { grid-template-columns:34px 1fr; gap:12px; }
  .setup-grid { grid-template-columns:1fr; }
  .plan-row { grid-template-columns:96px 1fr; gap:16px; }
  .related-grid { grid-template-columns:1fr; }
  .setup-body { font-size:17px; }
}
