/* Fratz Contact Center Tools hub (www) — loaded after /shared/css/base.css. No inline styles (CSP). */

:root {
  --site-accent: var(--brand);
  --site-on-accent: var(--brand-ink);
  --wfm-hue: #15575e;
  --qa-hue: #4b3a8c;
  --qa-soft: #eeeaf8;
  --wfm-soft: #e3f1ef;
  --more-soft: #fbeedd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wfm-hue: #76c7bd;
    --qa-hue: #b7a8f2;
    --qa-soft: #221d3a;
    --wfm-soft: #133236;
    --more-soft: #33261a;
  }
}

/* ---------- Hero ---------- */
.hub-top { position: relative; overflow: hidden; padding: 48px 0 40px; }
.hub-top::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 92% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(560px 300px at 60% 100%, color-mix(in srgb, var(--qa-hue) 12%, transparent), transparent 70%),
    radial-gradient(700px 360px at 4% 0%, color-mix(in srgb, var(--mark-a) 18%, transparent), transparent 70%);
}
.hub-top .wrap { position: relative; }
.hub-top-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hub-top-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } .hub-top { padding: 72px 0 64px; } }
.hub-top h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); max-width: 13ch; }
.hub-top .lede { margin-top: 18px; font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--ink-2); max-width: 58ch; }
.hub-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hub-top .cred { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .92rem; color: var(--muted); max-width: 58ch; }
.hub-top .cred svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--good); }

/* stacked tool cards (decorative) */
.stack-art { position: relative; min-height: 300px; max-width: 460px; width: 100%; justify-self: center; }
.stack-card { position: absolute; width: 72%; border-radius: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgb(16 39 43 / .35); }
.sc-wfm { top: 0; left: 0; border-top: 4px solid var(--wfm-hue); }
.sc-qa { top: 92px; right: 0; border-top: 4px solid var(--qa-hue); }
.sc-more { top: 206px; left: 8%; width: 64%; background: var(--more-soft); border-top: 4px solid var(--accent); border-style: solid dashed dashed; }
.sc-label { font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-big { font: 600 2.6rem/1 var(--font-display); margin-top: 8px; color: var(--ink); }
.sc-big span { font: 500 .9rem var(--font-body); color: var(--muted); }
.sc-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 10px; }
.sc-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--wfm-hue); opacity: .7; }
.sc-bars i:nth-child(1) { height: 25%; } .sc-bars i:nth-child(2) { height: 42%; } .sc-bars i:nth-child(3) { height: 66%; }
.sc-bars i:nth-child(4) { height: 88%; } .sc-bars i:nth-child(5) { height: 100%; background: var(--accent); opacity: 1; }
.sc-bars i:nth-child(6) { height: 82%; } .sc-bars i:nth-child(7) { height: 70%; } .sc-bars i:nth-child(8) { height: 52%; } .sc-bars i:nth-child(9) { height: 34%; }
.sc-checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; color: var(--ink-2); }
.sc-checks li { display: flex; align-items: center; gap: 8px; }
.sc-checks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.sc-checks li.is-miss::before { content: "–"; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.sc-score { position: absolute; top: 14px; right: 16px; font: 600 1.5rem/1 var(--font-num); color: var(--qa-hue); }
.sc-soon { margin-top: 8px; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 480px) {
  .stack-art { min-height: 272px; }
  .stack-card { width: 80%; padding: 14px 15px; }
  .sc-qa { top: 84px; }
  .sc-more { top: 190px; width: 74%; left: 4%; }
}

/* ---------- Tool cards ---------- */
.eyebrow + h2 { margin-top: -4px; }
.tool-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 5px solid var(--wfm-hue); min-width: 0; }
.tool-qa { border-top-color: var(--qa-hue); }
.tool-more { border-top-color: var(--accent); background: color-mix(in srgb, var(--more-soft) 45%, var(--surface)); }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-head h3 { font-size: 1.45rem; }
.tool-head h3 a { color: var(--ink); text-decoration: none; }
.tool-head h3 a:hover { text-decoration: underline; }
.tool-lede { color: var(--ink-2); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.tool-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .95rem; }
.tool-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--wfm-hue); }
.tool-qa .tool-list li::before { background: var(--qa-hue); }
.soon-list li::before { background: transparent; border: 2px dashed var(--accent); }
.tool-list strong { color: var(--ink); font-weight: 600; }
.mini-tag { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.tag-live { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.tag-soon { background: var(--more-soft); color: var(--accent-ink); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.tool-cta { align-self: flex-start; }

/* ---------- Who / why ---------- */
.hub-band { background: var(--bg-2); }
.who-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.h2-alt { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 8px; }
.point-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.point-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 18px; color: var(--ink-2); border-left: 4px solid var(--wfm-hue); }
.point-list-icons li { border-left-color: var(--accent); }
.point-list strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 3px; }

/* ---------- Pricing ---------- */
@media (min-width: 760px) { .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tier-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tier-grid .plan-card[data-plan="free"] { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.free-links { display: grid; gap: 8px; margin-top: 6px; }
.free-links .btn { margin-top: 0; }
.team-note { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); max-width: 860px; }
.team-note h3 { font-size: 1.2rem; margin-bottom: 6px; }
.team-note p { color: var(--ink-2); }
.team-note strong { color: var(--ink); font-family: var(--font-num); }
.team-note .fineprint { margin-top: 8px; font-size: .84rem; color: var(--muted); }
.matrix-wrap { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tier-matrix { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
.tier-matrix caption { text-align: left; font: 600 1.15rem var(--font-display); padding: 16px 16px 6px; color: var(--ink); }
.tier-matrix th, .tier-matrix td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.tier-matrix thead th { font-weight: 700; font-size: .82rem; color: var(--ink); }
.tier-matrix tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.tier-matrix tr:last-child th, .tier-matrix tr:last-child td { border-bottom: 0; }
.th-price { display: block; font: 500 .74rem var(--font-num); color: var(--muted); margin-top: 3px; }
.tier-matrix .is-feat { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.tier-matrix td.yes, .tier-matrix td.no { font-size: 0; }
.tier-matrix td.yes::before { content: "✓"; font-size: 1rem; font-weight: 700; color: var(--good); }
.tier-matrix td.no::before { content: "–"; font-size: 1rem; color: var(--muted); }

/* ---------- Membership ---------- */
#membership .notice { margin: 0 0 16px; }
#st-open:empty { display: none; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; max-width: 900px; }
@media (min-width: 720px) { .about-grid { grid-template-columns: auto 1fr; gap: 32px; } }
.about-mark { width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; font: 700 2.8rem/1 var(--font-display); color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); }
.about-grid p { color: var(--ink-2); max-width: 64ch; }
.about-grid p + p { margin-top: 12px; }
.about-grid h2 { margin-bottom: 12px; }

/* ---------- Phone header: keep brand + switcher + chip on one line ---------- */
@media (max-width: 760px) { .site-nav .nav-about { display: none; } }
@media (max-width: 560px) { .site-nav .nav-tools { display: none; } }
@media (max-width: 420px) { .site-nav .nav-pricing { display: none; } }

/* ---------- 404 ---------- */
.nf-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nf-portfolio { margin-top: 28px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); max-width: 560px; }
.nf-portfolio p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.nf-portfolio a { font-weight: 600; }

/* tier card prices (the big-number style lives in wfm.css on the WFM site) */
.plan-card .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan-card .price .amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--ink); }
.plan-card .price .per { color: var(--muted); font-weight: 500; }

/* hero stack: less overlap on desktop, a tidy column on phones */
@media (min-width: 481px) {
  .stack-art { min-height: 330px; }
  .sc-qa { top: 118px; }
  .sc-more { top: 238px; }
}
@media (max-width: 640px) {
  .stack-art { min-height: 0; display: grid; gap: 10px; max-width: 420px; justify-self: stretch; }
  .stack-card, .sc-qa, .sc-more { position: relative; top: auto; left: auto; right: auto; width: auto; }
  .sc-wfm { margin-right: 18%; }
  .sc-qa { margin-left: 12%; }
  .sc-more { margin-right: 10%; }
}
.tier-grid .plan-unlocks { align-content: start; }
@media (min-width: 641px) {
  .stack-art { min-height: 380px; }
  .sc-qa { top: 150px; }
  .sc-more { top: 274px; }
}

/* All Access card (live tools) */
.tag-all { background: var(--accent); color: var(--on-accent); }
.all-list li::before { background: var(--accent); }
.tool-list a { color: var(--ink); font-weight: 600; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.tool-list a:hover { text-decoration-color: currentColor; }
.mini-site { display: inline-block; font: 700 .62rem/1 var(--font-body); letter-spacing: .08em; padding: 3px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tool-list { align-content: start; }
