/* ============================================================
   Ribyon Studios — Free tools (brand audit + voice worksheet)
   Self-contained: tools.css + tools.js, loaded only on tool pages.
   ============================================================ */

/* ---------- Tool hero ---------- */
.th-hero { position: relative; padding: 9.5rem 0 3.5rem; background: var(--paper); overflow: hidden; }
.th-hero-inner { max-width: 900px; }
.th-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.1rem;
}
.th-kicker::before { content: ''; width: 26px; height: 1.5px; background: var(--orange); }
.th-title {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.03; letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
}
.th-title .orange { color: var(--orange); }
.th-lede { font-size: 1.05rem; line-height: 1.75; color: var(--gray-dark); max-width: 640px; margin: 0 0 1.6rem; }
.th-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; padding: 0; margin: 0 0 0.5rem; }
.th-facts li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--gray-dim); }
.th-facts svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }

/* ---------- Audit shell ---------- */
.audit-section { background: var(--paper); padding: 1.5rem 0 5rem; }
.audit-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.25rem; align-items: start; }
.audit-main { min-width: 0; }

.audit-bar {
  position: sticky; top: 72px; z-index: 20;
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: 14px; padding: 0.85rem 1.1rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 6px 24px rgba(10, 9, 8, 0.05);
}
.audit-bar-track { flex: 1; height: 6px; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.audit-bar-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--orange); transition: width 0.45s var(--ease); }
.audit-bar-meta { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gray-dim); white-space: nowrap; }
.audit-bar-score { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.audit-bar-score span { color: var(--orange); }

.audit-group {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: 18px; padding: 1.6rem 1.6rem 0.6rem; margin-bottom: 1.25rem;
}
.audit-group-head {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem;
  margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--paper-line);
}
.audit-group-head > div { max-width: 560px; }
.audit-group-num {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--orange); flex-shrink: 0; padding-top: 2px;
}
.audit-group-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.audit-group-hint { font-size: 0.82rem; color: var(--gray-dim); margin: 0.3rem 0 0; line-height: 1.6; }

.audit-q { padding-bottom: 1.5rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--paper-line); text-align: center; }
.audit-q:last-child { border-bottom: 0; }
.audit-q-text {
  font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.5; margin: 0 auto 1rem; max-width: 44ch;
}
.audit-opts { display: flex; flex-direction: column; gap: 0.45rem; max-width: 620px; margin: 0 auto; }
.audit-opt {
  display: flex; justify-content: center; align-items: baseline; gap: 0.6rem; width: 100%;
  font-family: var(--font-body); font-size: 0.87rem; font-weight: 500; line-height: 1.45; text-align: center;
  padding: 0.62rem 1.1rem; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--paper-line); background: var(--paper-card); color: var(--gray-dark);
  transition: all 0.18s var(--ease);
}
.audit-opt-mark {
  flex: none; font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gray-dim); border: 1px solid var(--paper-line); border-radius: 4px;
  padding: 1px 5px; transform: translateY(-1px);
}
.audit-opt-text { min-width: 0; }
.audit-opt:hover { border-color: var(--orange); color: var(--ink); }
.audit-opt:hover .audit-opt-mark { border-color: var(--orange); color: var(--orange); }
.audit-opt.is-on[data-v="3"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.audit-opt.is-on[data-v="2"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.audit-opt.is-on[data-v="1"] { background: var(--gray-dark); border-color: var(--gray-dark); color: var(--paper); }
.audit-opt.is-on[data-v="0"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.audit-opt.is-on .audit-opt-mark { border-color: currentColor; color: inherit; opacity: 0.75; }


.audit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.audit-note { font-size: 0.78rem; color: var(--gray-dim); }

/* ---------- Step labels and site scan ---------- */
.audit-step-label {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray-dim); margin: 0 0 0.9rem;
}
.audit-step-label span {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%; background: var(--ink);
  color: var(--orange); font-size: 0.6rem; letter-spacing: 0;
}
.scan-card {
  background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: 18px;
  padding: 1.75rem 1.7rem; margin-bottom: 2.25rem;
}
.scan-card-head { text-align: center; margin-bottom: 1.6rem; }
.scan-card-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); margin: 0 0 0.6rem;
}
.scan-card-lede { font-size: 0.88rem; line-height: 1.75; color: var(--gray-dark); margin: 0 auto; max-width: 640px; }
.scan-field { display: flex; flex-direction: column; gap: 0.4rem; }
.scan-field .tf-label span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gray-dim); }
.scan-field-wide { margin-bottom: 0.9rem; }
.scan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
.scan-skip {
  background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; color: var(--gray-dim);
  border-bottom: 1px solid var(--paper-line);
}
.scan-skip:hover { color: var(--orange); border-color: var(--orange); }
.scan-result { margin-top: 1.7rem; border-top: 1px solid var(--paper-line); padding-top: 1.6rem; }
.scan-result[hidden], .scan-found[hidden] { display: none; }

/* measured header: gauge + verdict + stat pills */
.scan-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-bottom: 1.2rem; }
.scan-gauge { position: relative; width: 112px; height: 112px; flex: none; }
.scan-gauge svg { width: 112px; height: 112px; display: block; transform: rotate(-90deg); }
.scan-gauge circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.scan-gauge .sg-t { stroke: var(--paper-line); }
.scan-gauge .sg-f { stroke: var(--orange); transition: stroke-dashoffset 1.1s var(--ease-out); }
.scan-gauge-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scan-gauge-in span { font-family: var(--font-display); font-size: 2.05rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.scan-gauge-in small { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; color: var(--gray-dim); }
.scan-head-body { min-width: 0; }
.scan-kicker {
  font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-dim); margin: 0 0 0.45rem;
}
.scan-kicker span { color: var(--orange); }
.scan-verdict { font-size: 0.92rem; font-weight: 500; line-height: 1.65; color: var(--ink); margin: 0 0 0.8rem; max-width: 58ch; }
.scan-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.scan-stat {
  display: inline-flex; align-items: center; gap: 0.42rem; font-size: 0.74rem; line-height: 1;
  padding: 0.32rem 0.65rem; border-radius: 99px;
  background: var(--paper); border: 1px solid var(--paper-line); color: var(--gray-dark);
}
.scan-stat::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gray-mid); }
.scan-stat[data-s="pass"]::before { background: #4ade80; }
.scan-stat[data-s="warn"]::before { background: var(--gold); }
.scan-stat[data-s="fail"]::before { background: #f87171; }
.scan-stat[data-s="info"] { color: var(--gray-dim); }
.scan-stat[data-s="info"]::before { display: none; }
.scan-blend {
  font-size: 0.78rem; line-height: 1.6; color: var(--gray-dim); margin: 0 0 1.6rem;
  padding-bottom: 1.4rem; border-bottom: 1px dashed var(--paper-line);
}

/* what we found: palette, type, profiles */
.scan-found { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-bottom: 1.9rem; }
.scan-found-block { min-width: 0; }
.scan-found-label {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-dim); margin: 0 0 0.75rem;
}
.scan-palette { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0; }
.scan-palette-item { display: flex; flex-direction: column; align-items: center; gap: 0.32rem; width: 56px; }
.scan-palette-item i { display: block; width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(10, 9, 8, 0.12); }
.scan-palette-item b {
  width: 100%; text-align: center;
  font-family: var(--font-display); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--gray-dim);
}
.scan-types { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.scan-type {
  font-size: 1.02rem; line-height: 1.25; padding: 0.4rem 0.85rem; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--paper-line); color: var(--ink);
}
.scan-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.scan-chip {
  font-size: 0.76rem; line-height: 1; padding: 0.34rem 0.68rem; border-radius: 99px;
  background: var(--paper); border: 1px solid var(--paper-line); color: var(--gray-dark);
}
.scan-found-note { font-size: 0.76rem; line-height: 1.6; color: var(--gray-dim); margin: 0.6rem 0 0; }

.scan-socials { list-style: none; display: grid; gap: 0.55rem; padding: 0; margin: 0; }
.scan-social {
  display: flex; gap: 0.7rem; padding: 0.62rem 0.75rem; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--paper-line);
}
.scan-social-mark {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--ink);
  background: var(--paper-line);
}
.scan-social[data-s="pass"] .scan-social-mark { background: rgba(74, 222, 128, 0.38); }
.scan-social[data-s="warn"] .scan-social-mark { background: rgba(251, 191, 36, 0.45); }
.scan-social[data-s="pass"] .scan-social-mark::after { content: '\2713'; }
.scan-social[data-s="warn"] .scan-social-mark::after { content: '!'; }
.scan-social-body { display: flex; flex-direction: column; min-width: 0; }
.scan-social-body b { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.scan-social-body em { font-style: normal; font-size: 0.78rem; line-height: 1.5; color: var(--gray-dark); overflow-wrap: anywhere; }
.scan-social-note { font-size: 0.74rem; line-height: 1.55; color: var(--gray-dim); margin-top: 0.15rem; }

/* findings, grouped by area */
.scan-report { display: grid; gap: 1.7rem; }
.scan-group-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: 0.45rem 0.9rem; margin-bottom: 0.75rem;
}
.scan-group-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.scan-group-score { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--gray-dim); }
.scan-group-track { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.scan-group-fill { display: block; height: 100%; border-radius: 99px; background: var(--orange); }
.scan-group-fill[data-band="mid"] { background: var(--gold); }
.scan-group-fill[data-band="low"] { background: var(--gray-dark); }
.scan-checks { list-style: none; display: grid; gap: 0.5rem; padding: 0; margin: 0; }
.scan-check {
  border: 1px solid var(--paper-line); border-left: 3px solid var(--gray-dark);
  border-radius: 12px; padding: 0.75rem 0.9rem; background: var(--paper);
}
.scan-check[data-s="pass"] { border-left-color: #4ade80; }
.scan-check[data-s="warn"] { border-left-color: var(--gold); }
.scan-check[data-s="fail"] { border-left-color: #f87171; }
.scan-check-top { display: flex; align-items: center; gap: 0.55rem; }
.scan-check-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-dark); }
.scan-check[data-s="pass"] .scan-check-mark { background: #4ade80; }
.scan-check[data-s="warn"] .scan-check-mark { background: var(--gold); }
.scan-check[data-s="fail"] .scan-check-mark { background: #f87171; }
.scan-check-label { font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.scan-check-score { margin-left: auto; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--gray-dim); }
.scan-check-detail { font-size: 0.82rem; line-height: 1.65; color: var(--gray-dark); margin: 0.4rem 0 0; overflow-wrap: anywhere; }
.scan-check-fix {
  font-size: 0.82rem; line-height: 1.65; color: var(--ink);
  margin: 0.35rem 0 0; padding-left: 0.7rem; border-left: 2px solid var(--orange);
}
.scan-notes { list-style: none; display: grid; gap: 0.35rem; padding: 0; margin: 1.5rem 0 0; }
.scan-notes li { position: relative; padding-left: 0.9rem; font-size: 0.78rem; line-height: 1.6; color: var(--gray-dim); }
.scan-notes li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-mid); }

/* ---------- Sticky side rail ---------- */
.audit-rail { position: sticky; top: 92px; }
.audit-rail-card {
  background: var(--ink); border-radius: 18px; padding: 1.5rem 1.4rem; color: var(--white);
}
.audit-rail-label {
  font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.55rem;
}
.audit-rail-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); margin: 0 0 0.75rem; }
.audit-rail p { font-size: 0.82rem; line-height: 1.7; color: var(--gray); margin: 0 0 1rem; }
.audit-rail-list { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.audit-rail-list li { position: relative; padding-left: 1.1rem; font-size: 0.82rem; line-height: 1.6; color: var(--gray); margin-bottom: 0.5rem; }
.audit-rail-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.audit-rail-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 2px; }
.audit-rail-link:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Result ---------- */
.audit-result[hidden] { display: none; }
.audit-score-card {
  background: var(--ink); border-radius: 20px; padding: 2.4rem 2.1rem;
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2.25rem; align-items: center;
  margin-bottom: 1.5rem;
}
.audit-ring { position: relative; width: 190px; height: 190px; }
.audit-ring svg { transform: rotate(-90deg); display: block; }
.audit-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.audit-ring .rt { stroke: rgba(255, 255, 255, 0.09); }
.audit-ring .rf { stroke: var(--orange); transition: stroke-dashoffset 1.1s var(--ease-out); }
.audit-ring-in {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.audit-ring-num { font-family: var(--font-display); font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--white); }
.audit-ring-num small { font-size: 1rem; font-weight: 600; color: var(--gray); letter-spacing: 0; }
.audit-ring-cap { font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-mid); margin-top: 0.55rem; }
.audit-verdict-label { font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.6rem; }
.audit-verdict-band { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin: 0 0 0.7rem; line-height: 1.15; }
.audit-verdict-text { font-size: 0.94rem; line-height: 1.8; color: var(--gray); margin: 0 0 1.1rem; }
.audit-verdict-line { font-size: 0.8rem; color: var(--gray-mid); margin: 0; }

.audit-panel { background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: 18px; padding: 1.75rem 1.7rem; margin-bottom: 1.25rem; }
.audit-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.4rem; }
.audit-panel-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.audit-panel-sub { font-size: 0.82rem; color: var(--gray-dim); margin: 0.3rem 0 0; }

.audit-dims { display: flex; flex-direction: column; gap: 1.05rem; }
.audit-dim { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 0.4rem 1rem; align-items: center; }
.audit-dim-name { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.audit-dim-track { grid-column: 1; height: 8px; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.audit-dim-fill { display: block; height: 100%; border-radius: 99px; background: var(--orange); width: 0; transition: width 0.9s var(--ease-out); }
.audit-dim-fill[data-band="mid"] { background: var(--gold); }
.audit-dim-fill[data-band="low"] { background: var(--gray-dark); }
.audit-dim-val { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--gray-dim); }

.audit-gaps { display: grid; gap: 0.9rem; }
.audit-gap {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1rem;
  padding: 1.05rem 1.1rem; border: 1px solid var(--paper-line); border-radius: 14px; background: var(--paper);
}
.audit-gap-num { font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; color: var(--orange); }
.audit-gap-title { font-size: 0.94rem; font-weight: 600; color: var(--ink); margin: 0 0 0.3rem; }
.audit-gap-text { font-size: 0.85rem; line-height: 1.7; color: var(--gray-dark); margin: 0; }
.audit-gap-tag { display: inline-block; margin-top: 0.55rem; font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-dim); }

/* ---------- Gate + report ---------- */
.audit-gate { border: 1.5px solid var(--ink); background: var(--paper-card); border-radius: 18px; padding: 1.9rem 1.8rem; margin-bottom: 1.25rem; }
.audit-gate[hidden], .audit-report[hidden] { display: none; }
.audit-gate-eyebrow { font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.6rem; }
.audit-gate-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 0.7rem; line-height: 1.2; }
.audit-gate-text { font-size: 0.9rem; line-height: 1.75; color: var(--gray-dark); margin: 0 0 1.3rem; max-width: 620px; }
.audit-gate-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.audit-gate-list li { position: relative; padding-left: 1.5rem; font-size: 0.88rem; color: var(--gray-dark); }
.audit-gate-list li::before {
  content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}

.audit-plan { display: grid; gap: 1rem; }
.audit-plan-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--paper-line); }
.audit-plan-row:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-plan-when { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); padding-top: 2px; }
.audit-plan-what { font-size: 0.9rem; line-height: 1.7; color: var(--gray-dark); margin: 0; }
.audit-plan-what strong { color: var(--ink); font-weight: 600; }

/* ---------- Shared tool form fields ---------- */
.tf-grid { display: grid; gap: 0.85rem; }
.tf-grid-2 { grid-template-columns: 1fr 1fr; }
.tf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.tf-label { font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-dim); }
.tf-input, .tf-textarea, .tf-select {
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--paper-line); border-radius: 10px;
  padding: 0.7rem 0.85rem; width: 100%; transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.tf-textarea { resize: vertical; min-height: 62px; line-height: 1.6; }
.tf-input:focus, .tf-textarea:focus, .tf-select:focus { outline: none; border-color: var(--orange); background: var(--paper-card); }
.tf-input::placeholder, .tf-textarea::placeholder { color: var(--gray-mid); opacity: 0.75; }
.tf-submit {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center;
  font-family: var(--font-display); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.01em;
  background: var(--orange); color: var(--ink); border: 0; border-radius: 99px;
  padding: 0.85rem 1.6rem; cursor: pointer; transition: all 0.2s var(--ease);
}
.tf-submit:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.tf-submit[disabled] { opacity: 0.6; cursor: default; transform: none; }
.tf-submit svg { width: 15px; height: 15px; }
.tf-fine { font-size: 0.74rem; color: var(--gray-dim); line-height: 1.6; }
.tf-error { font-size: 0.8rem; color: var(--orange-dark); margin: 0.6rem 0 0; }
.tf-error[hidden] { display: none; }
.tf-done {
  border: 1.5px solid var(--ink); border-radius: 18px; padding: 1.9rem 1.8rem; background: var(--paper-card);
}
.tf-done[hidden] { display: none; }
.tf-done-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 0.6rem; }
.tf-done-text { font-size: 0.9rem; line-height: 1.75; color: var(--gray-dark); margin: 0 0 1.2rem; }
.tf-done-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tf-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  background: transparent; color: var(--ink); border: 1.5px solid var(--paper-line);
  border-radius: 99px; padding: 0.7rem 1.25rem; cursor: pointer; transition: all 0.2s var(--ease);
}
.tf-ghost:hover { border-color: var(--orange); color: var(--orange); }
.tf-ghost svg { width: 14px; height: 14px; }
a.tf-ghost { text-decoration: none; }

/* ---------- Share your score ---------- */
.audit-share { margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--paper-line); }
.audit-share-label {
  display: block; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.65rem;
}
.audit-share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.audit-share-row .tf-ghost { font-size: 0.74rem; padding: 0.6rem 1.05rem; }
.audit-share-note { font-size: 0.74rem; color: var(--gray-dim); margin: 0.75rem 0 0; line-height: 1.6; }

/* ---------- Worksheet form ---------- */
.wsf-progress {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
  background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: 14px; padding: 0.85rem 1.1rem;
}
.wsf-track { flex: 1; height: 6px; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.wsf-fill { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; transition: width 0.4s var(--ease); }
.wsf-count { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--gray-dim); white-space: nowrap; }
.wsf-card { background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: 18px; padding: 1.7rem 1.6rem; margin-bottom: 1.25rem; }
.wsf-step { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 0.35rem; }
.wsf-step-num { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; color: var(--orange); flex-shrink: 0; }
.wsf-step-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.wsf-hint { font-size: 0.83rem; color: var(--gray-dim); line-height: 1.65; margin: 0 0 1.3rem; }
.wsf-rows { display: grid; gap: 0.85rem; }
.wsf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.wsf-pair { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0.7rem; align-items: center; }
.wsf-word { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--gray-dim); }
.wsf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.wsf-saved { font-size: 0.78rem; color: var(--gray-dim); }
.ws-download { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.8rem 0 2.4rem; }
.ws-download-note { font-size: 0.8rem; color: var(--gray-dim); }
.wsf-card em { font-style: normal; color: var(--orange); }

/* ---------- Shared sections ---------- */
.tool-strip { background: var(--ink); padding: 4rem 0; }
.tool-strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.tool-card { background: var(--ink-card); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.tool-card-tag { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.8rem; }
.tool-card-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); margin: 0 0 0.6rem; }
.tool-card-text { font-size: 0.86rem; line-height: 1.7; color: var(--gray); margin: 0 0 1.3rem; flex: 1; }
.tool-card-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; font-weight: 600; color: var(--white); }
.tool-card-link:hover { color: var(--orange); }
.tool-card-link svg { width: 14px; height: 14px; }

.tool-faq { background: var(--paper); padding: 4.5rem 0; }
.tool-faq-inner { max-width: 780px; }
.tool-faq h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 1.6rem; }
.tool-faq-item { border-bottom: 1px solid var(--paper-line); }
.tool-faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0; font-size: 1rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.tool-faq-item summary::-webkit-details-marker { display: none; }
.tool-faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 1.2rem; color: var(--orange); flex-shrink: 0; }
.tool-faq-item[open] summary::after { content: '\2013'; }
.tool-faq-a { padding: 0 0 1.25rem; }
.tool-faq-a p { font-size: 0.92rem; line-height: 1.8; color: var(--gray-dark); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .audit-shell { grid-template-columns: minmax(0, 1fr); }
  .audit-rail { position: static; order: 2; }
}
@media (max-width: 760px) {
  .th-hero { padding: 7.5rem 0 2.5rem; }
  .audit-score-card { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.9rem 1.5rem; text-align: center; justify-items: center; }
  .audit-ring { width: 158px; height: 158px; }
  .audit-ring svg { width: 158px; height: 158px; }
  .audit-panel, .audit-gate, .tf-done, .wsf-card, .audit-group { padding: 1.35rem 1.15rem; }
  .audit-dim { grid-template-columns: minmax(0, 1fr) 52px; }
  .tf-grid-2, .tf-grid-3, .wsf-row, .wsf-pair { grid-template-columns: 1fr; }
  .audit-plan-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .audit-bar { top: 62px; }
  .scan-card { padding: 1.35rem 1.15rem; }
  .scan-head { grid-template-columns: 92px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .scan-gauge, .scan-gauge svg { width: 92px; height: 92px; }
  .scan-gauge-in span { font-size: 1.7rem; }
  .scan-found { grid-template-columns: 1fr; gap: 1.5rem; }
  .scan-palette-item { width: 48px; }
  .scan-palette-item i { height: 38px; }
  .scan-type { font-size: 0.94rem; }
  .scan-verdict { font-size: 0.86rem; }
  .audit-q-text { font-size: 0.98rem; }
  .audit-opt { font-size: 0.84rem; text-align: left; justify-content: flex-start; padding: 0.7rem 0.85rem; }
  .audit-step-label { font-size: 0.64rem; }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .footer, .tool-strip, .tool-faq, #cookie-banner, #go-to-top, .audit-rail,
  .audit-bar, .audit-actions, .audit-gate, .wsf-actions, .tf-submit, .tf-done-actions,
  #scanForm, .audit-step-label { display: none !important; }
  body { background: #fff; }
  .th-hero { padding: 0 0 1rem; }
  .audit-group, .wsf-card, .audit-panel, .scan-card, .scan-check { border-color: #ccc; page-break-inside: avoid; }
}

/* ============================================================
   Audit page - brand system
   Mirrors the about page: an ink cover with the orange wave
   ribbon, then a cream page of white cards, Syne headings with
   orange spans, orange hairline labels and orange pill buttons.
   Scoped to .tool-audit so the worksheet page is untouched.
   ============================================================ */
.tool-audit { --lift: #f5f0e6; }

/* ---------------- Cover ---------------- */
.tool-audit .th-hero { position: relative; padding: 0; background: var(--ink); overflow: hidden; }
.tool-audit .th-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.tool-audit .th-ribbon path:nth-child(1) { opacity: 0.16; animation: waveRise 11s ease-in-out infinite alternate; }
.tool-audit .th-ribbon path:nth-child(2) { opacity: 0.09; animation: waveRise 17s ease-in-out infinite alternate; animation-delay: -5s; }
.tool-audit .th-hero .container {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(540px, 82vh, 880px); padding-top: 9rem; padding-bottom: 0;
}
.tool-audit .th-hero-inner { max-width: 880px; padding-bottom: 2.4rem; }
.tool-audit .th-title {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: clamp(2.9rem, 6.6vw, 4.9rem); line-height: 0.94; letter-spacing: -0.05em; margin: 0 0 2.2rem;
}
.tool-audit .th-title .orange { color: var(--orange); }
.tool-audit .th-hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 1.8rem 2.5rem; border-top: 1px solid var(--ink-line); padding-top: 1.8rem;
}
.tool-audit .th-lede { flex: 1 1 420px; max-width: 560px; margin: 0; font-size: 0.95rem; line-height: 1.75; color: rgba(255, 255, 255, 0.85); }
.tool-audit .th-hero-bottom .btn { flex: none; }
.tool-audit .th-facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none;
  padding: 0; margin: 0; border-top: 1px solid var(--ink-line);
}
.tool-audit .th-facts li { display: block; padding: 1.6rem 1rem 1.9rem 0; }
.tool-audit .th-facts b {
  display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--orange);
}
.tool-audit .th-facts span {
  display: block; margin-top: 0.6rem; font-family: var(--font-display); font-size: 0.62rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gray);
}

/* ---------------- The page ---------------- */
.tool-audit .audit-section { background: var(--paper); padding: 5.5rem 0 6rem; }
.tool-audit .audit-shell { display: block; }
.tool-audit .audit-main { max-width: 1060px; margin: 0 auto; }
.tool-audit .audit-step-label {
  display: block; background: none; border: 0; padding: 0; margin: 5.5rem 0 1.1rem;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange);
}
.tool-audit .audit-main > .audit-step-label:first-child { margin-top: 0; }
.tool-audit .audit-step-label span {
  display: inline; width: auto; height: auto; flex: none; padding: 0; border: 0; border-radius: 0;
  background: none; color: inherit; font: inherit; letter-spacing: inherit;
}
.tool-audit .audit-step-label::after { display: none; }
.tool-audit .audit-section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.12; color: var(--ink); margin: 0 0 2.4rem; max-width: 620px;
}
.tool-audit .audit-section-title .orange { color: var(--orange); }
.tool-audit .audit-foot {
  max-width: 620px; margin: 3.5rem auto 0; text-align: center;
  font-size: 0.86rem; line-height: 1.8; color: var(--gray-dim);
}
.tool-audit .audit-foot a { color: var(--orange); border-bottom: 1px solid rgba(249, 115, 22, 0.35); }

/* ---------------- Site scan ---------------- */
.tool-audit .scan-card {
  background: var(--paper-card); border: 0; border-radius: var(--radius);
  padding: 2.8rem 2.6rem; margin: 0 0 1rem; scroll-margin-top: 96px;
}
.tool-audit .scan-card-head { display: block; text-align: left; margin: 0 0 2.2rem; }
.tool-audit .scan-card-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.9vw, 2.1rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); margin: 0 0 0.9rem; max-width: 640px;
}
.tool-audit .scan-card-title .orange { color: var(--orange); }
.tool-audit .scan-card-lede { margin: 0; max-width: 720px; font-size: 0.92rem; line-height: 1.8; color: var(--gray-dark); }
.tool-audit .scan-form-plate { background: none; border: 0; padding: 0; }
.tool-audit .scan-field .tf-label { font-size: 0.64rem; }
.tool-audit .scan-skip {
  background: none; border: 0; border-bottom: 1px solid var(--paper-line); border-radius: 0;
  padding: 0.5rem 0; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--gray-dim); cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tool-audit .scan-skip:hover { color: var(--orange); border-color: var(--orange); }

.tool-audit .scan-result { margin-top: 2.4rem; border-top: 1px solid var(--paper-line); padding-top: 2.2rem; }
.tool-audit .scan-head { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.8rem 2.6rem; align-items: end; }
.tool-audit .scan-score { display: grid; grid-template-columns: max-content max-content; align-items: baseline; }
.tool-audit .scan-score-cap {
  grid-row: 1; grid-column: 1 / -1; font-family: var(--font-display); font-size: 0.6rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gray-dim);
}
.tool-audit .scan-score-num {
  grid-row: 2; grid-column: 1; font-family: var(--font-display); font-size: clamp(3rem, 5.4vw, 4rem);
  font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; color: var(--orange);
}
.tool-audit .scan-score-max { grid-row: 2; grid-column: 2; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--gray-mid); }
.tool-audit .scan-kicker {
  font-family: var(--font-display); font-size: 0.64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--gray-dim); margin: 0 0 0.7rem;
}
.tool-audit .scan-kicker span { color: var(--orange); }
.tool-audit .scan-verdict { color: var(--gray-dark); }
.tool-audit .scan-stat { background: var(--paper); border: 0; border-radius: 6px; padding: 0.3rem 0.6rem; }
.tool-audit .scan-blend { margin: 1.6rem 0 0; padding: 0; background: none; border: 0; font-size: 0.78rem; color: var(--gray-dim); }
.tool-audit .scan-found { margin: 1.9rem 0 0; padding: 1.9rem 0 0; border: 0; border-top: 1px solid var(--paper-line); }
.tool-audit .scan-group-track { height: 6px; }
.tool-audit .scan-group-fill { border-radius: 99px; }
.tool-audit .scan-check {
  border: 0; border-left: 3px solid var(--gray-dark); border-radius: 6px;
  padding: 0.8rem 0.95rem; background: var(--paper);
}
.tool-audit .scan-check[data-s="pass"] { border-left-color: #4ade80; }
.tool-audit .scan-check[data-s="warn"] { border-left-color: var(--gold); }
.tool-audit .scan-check[data-s="fail"] { border-left-color: #f87171; }

/* ---------------- Questions ---------------- */
.tool-audit .audit-bar {
  position: sticky; top: 84px; z-index: 20; display: flex; align-items: center; gap: 1.1rem;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 0.9rem 1.3rem; margin: 0 0 1.4rem; box-shadow: 0 12px 34px rgba(10, 9, 8, 0.06);
}
.tool-audit .audit-bar-track { flex: 1 1 auto; height: 6px; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.tool-audit .audit-bar-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--orange); transition: width 0.45s var(--ease); }
.tool-audit .audit-bar-score { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.tool-audit .audit-bar-score span { color: var(--orange); }
.tool-audit .audit-bar-meta { font-size: 0.78rem; color: var(--gray-dim); white-space: nowrap; }

.tool-audit .audit-group {
  background: var(--paper-card); border: 0; border-radius: var(--radius);
  padding: 2.6rem 2.6rem 1.4rem; margin: 0 0 1rem;
}
.tool-audit .audit-group-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-items: baseline; gap: 0.35rem 0.7rem; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--paper-line); padding: 0 0 1.4rem; margin: 0 0 0.4rem;
}
.tool-audit .audit-group-num {
  grid-column: 1; grid-row: 1; display: inline; width: auto; height: auto; padding: 0;
  border: 0; border-radius: 0; background: none; flex: none;
  font-family: var(--font-display); font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
}
.tool-audit .audit-group-title {
  grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0;
}
.tool-audit .audit-group-hint { grid-column: 2 / span 2; grid-row: 2; max-width: 64ch; font-size: 0.86rem; line-height: 1.65; color: var(--gray-dim); margin: 0; }
.tool-audit .audit-group-live {
  grid-column: 3; grid-row: 1; font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 700; color: var(--gray-mid); text-align: right; white-space: nowrap;
}
.tool-audit .audit-group-live.is-part { color: var(--gray-dark); }
.tool-audit .audit-group-live.is-full { color: var(--orange); }

.tool-audit .audit-q {
  border: 0; border-top: 1px solid var(--paper-line); border-radius: 8px;
  padding: 1.7rem 0.9rem 1.8rem; margin: 0; text-align: left;
  transition: background 0.5s var(--ease);
}
.tool-audit .audit-group-head + .audit-q { border-top: 0; padding-top: 1.1rem; }
.tool-audit .audit-q.is-miss { background: rgba(249, 115, 22, 0.07); }
.tool-audit .audit-q-text {
  font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.45; color: var(--ink); margin: 0 0 1.1rem; max-width: none;
}
.tool-audit .audit-opts { display: grid; gap: 0.15rem; max-width: none; margin: 0; }
.tool-audit .audit-opt {
  display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: start; gap: 0.85rem;
  width: 100%; justify-content: start; text-align: left; background: none; border: 0; border-radius: 8px;
  padding: 0.8rem 0.95rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 400;
  line-height: 1.55; color: var(--gray-dark); cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.tool-audit .audit-opt:hover { background: var(--lift); color: var(--ink); }
.tool-audit .audit-opt:hover .audit-opt-mark { border-color: var(--orange); }
.tool-audit .audit-opt.is-on,
.tool-audit .audit-opt.is-on[data-v="3"],
.tool-audit .audit-opt.is-on[data-v="2"],
.tool-audit .audit-opt.is-on[data-v="1"],
.tool-audit .audit-opt.is-on[data-v="0"] {
  background: rgba(249, 115, 22, 0.07); border: 0; color: var(--ink);
  box-shadow: inset 3px 0 0 var(--orange);
}
.tool-audit .audit-opt.is-on[data-v="3"] { background: rgba(249, 115, 22, 0.12); }
.tool-audit .audit-opt.is-on .audit-opt-text { font-weight: 600; }
.tool-audit .audit-opt-mark {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; margin-top: 0.1rem; padding: 0; border-radius: 5px;
  border: 1.5px solid rgba(10, 9, 8, 0.28); background: var(--paper-card);
  font-size: 0; color: transparent; transform: none; flex: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tool-audit .audit-opt.is-on .audit-opt-mark {
  background: var(--orange); border-color: var(--orange); opacity: 1; color: var(--ink);
}
.tool-audit .audit-opt.is-on .audit-opt-mark::after {
  content: ''; position: absolute; left: 5.5px; top: 1.5px; width: 4px; height: 9px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.tool-audit .audit-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  margin: 2.6rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--paper-line);
}
.tool-audit .audit-note { max-width: 46ch; font-size: 0.8rem; line-height: 1.65; color: var(--gray-dim); }

/* ---------------- Result ---------------- */
.tool-audit .audit-result { margin-top: 1.2rem; }
.tool-audit .audit-score-card {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: end;
  gap: 2.4rem 3rem; background: var(--ink); border: 0; border-radius: var(--radius); padding: 3rem 2.8rem;
}
.tool-audit .audit-score { display: grid; grid-template-columns: max-content max-content; align-items: baseline; }
.tool-audit .audit-score-cap {
  grid-row: 1; grid-column: 1 / -1; font-family: var(--font-display); font-size: 0.6rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gray-mid);
}
.tool-audit .audit-score-num {
  grid-row: 2; grid-column: 1; font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; color: var(--orange);
}
.tool-audit .audit-score-max { grid-row: 2; grid-column: 2; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--gray); }
.tool-audit .audit-verdict-label {
  display: block; margin: 0 0 0.7rem; font-family: var(--font-display); font-size: 0.62rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.tool-audit .audit-verdict-band {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.12; color: var(--white); margin: 0 0 0.8rem;
}
.tool-audit .audit-verdict-text { font-size: 0.92rem; line-height: 1.8; color: var(--gray); margin: 0 0 1rem; }
.tool-audit .audit-verdict-line { font-size: 0.8rem; line-height: 1.7; color: var(--gray-mid); margin: 0; }

.tool-audit .audit-panel {
  background: var(--paper-card); border: 0; border-radius: var(--radius);
  padding: 2.6rem 2.6rem 2.2rem; margin: 0 0 1rem;
}
.tool-audit .audit-panel-head { display: block; margin: 0 0 1.8rem; }
.tool-audit .audit-panel-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.tool-audit .audit-panel-sub { max-width: 64ch; margin: 0.5rem 0 0; font-size: 0.85rem; line-height: 1.7; color: var(--gray-dim); }
.tool-audit .audit-dim-name { font-size: 0.88rem; }
.tool-audit .audit-dim {
  grid-template-columns: auto minmax(0, 1fr) 62px; align-items: baseline;
  column-gap: 0.7rem; row-gap: 0; margin-bottom: 0.2rem;
}
.tool-audit .audit-dim-num {
  grid-column: 1; grid-row: 1; font-family: var(--font-display); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.08em; color: var(--orange);
}
.tool-audit .audit-dim-name { grid-column: 2; grid-row: 1; }
.tool-audit .audit-dim-val { grid-column: 3; grid-row: 1; text-align: right; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--gray-dim); }
.tool-audit .audit-dim-track { grid-column: 1 / -1; grid-row: 2; height: 6px; margin-top: 0.5rem; }
.tool-audit .audit-gap { background: var(--lift); border: 0; border-radius: 8px; padding: 1.5rem 1.6rem; }
.tool-audit .audit-gap-text { color: var(--gray-dark); }

/* ---------------- Gate + report ---------------- */
.tool-audit .audit-gate { background: var(--ink); border: 0; border-radius: var(--radius); padding: 2.8rem 2.6rem; margin: 0 0 1rem; }
.tool-audit .audit-gate-eyebrow { color: var(--orange); }
.tool-audit .audit-gate-title { font-size: 1.5rem; color: var(--white); }
.tool-audit .audit-gate-text { color: var(--gray); }
.tool-audit .audit-gate-list li { color: var(--gray); }
.tool-audit .audit-gate .tf-label { color: var(--gray); }
.tool-audit .audit-gate .tf-input,
.tool-audit .audit-gate .tf-textarea,
.tool-audit .audit-gate .tf-select {
  background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.14); color: var(--white);
}
.tool-audit .audit-gate .tf-input:focus { background: rgba(255, 255, 255, 0.08); border-color: var(--orange); }
.tool-audit .audit-gate .tf-input::placeholder { color: var(--gray-dim); opacity: 1; }
.tool-audit .audit-gate .tf-fine { color: var(--gray-mid); }
.tool-audit .tf-done { background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 2.4rem; }
.tool-audit .tf-done-title { font-size: 1.4rem; }
.tool-audit .audit-plan-row { border-bottom: 1px solid var(--paper-line); }

/* ---------------- FAQ + tools strip ---------------- */
.tool-audit .tool-faq { background: var(--paper); padding: 6rem 0; }
.tool-audit .tool-faq-inner { max-width: 860px; margin: 0 auto; }
.tool-audit .tool-faq h2 { text-align: center; margin: 0 0 2.8rem; }
.tool-audit .tool-faq h2::after {
  content: ''; display: block; width: 46px; height: 3px; background: var(--orange); margin: 1.3rem auto 0;
}
.tool-audit .tool-faq-item { background: var(--paper-card); border: 0; border-radius: var(--radius); }
.tool-audit .tool-faq-item + .tool-faq-item { margin-top: 0.6rem; }
.tool-audit .tool-faq-item summary { padding: 1.15rem 1.5rem; font-size: 0.98rem; font-weight: 600; }
.tool-audit .tool-faq-a { padding: 0 1.5rem 1.4rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .tool-audit .scan-card, .tool-audit .audit-panel { padding: 2.2rem 2rem; }
  .tool-audit .audit-group { padding: 2.2rem 2rem 1.2rem; }
  .tool-audit .audit-score-card { padding: 2.4rem 2.1rem; gap: 2rem 2.2rem; }
  .tool-audit .audit-gate { padding: 2.3rem 2rem; }
}
@media (max-width: 860px) {
  .tool-audit .th-hero .container { min-height: 0; padding-top: 8.5rem; padding-bottom: 0; }
  .tool-audit .th-title { font-size: clamp(2.5rem, 8vw, 3.4rem); }
  .tool-audit .th-hero-inner { padding-bottom: 2rem; }
  .tool-audit .th-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-audit .th-facts li { padding: 1.3rem 0.8rem 1.5rem 0; }
  .tool-audit .th-facts li:nth-child(n+4) { border-top: 1px solid var(--ink-line); }
  .tool-audit .audit-score-card { grid-template-columns: minmax(0, 1fr); text-align: left; justify-items: start; }
  .tool-audit .scan-head { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
}
@media (max-width: 640px) {
  .tool-audit .audit-section { padding: 4rem 0 4.5rem; }
  .tool-audit .audit-step-label { margin-top: 4rem; }
  .tool-audit .th-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-audit .th-facts li:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .tool-audit .th-facts li:nth-child(n+4) { border-top: 0; }
  .tool-audit .th-facts li:nth-child(odd) { padding-right: 1.2rem; }
  .tool-audit .scan-card, .tool-audit .audit-panel { padding: 1.9rem 1.4rem; }
  .tool-audit .audit-group { padding: 1.9rem 1.4rem 1rem; }
  .tool-audit .audit-gate { padding: 2rem 1.4rem; }
  .tool-audit .audit-score-card { padding: 2rem 1.5rem; }
  .tool-audit .tf-done { padding: 1.8rem 1.4rem; }
  .tool-audit .audit-group-head { gap: 0.3rem 0.6rem; }
  .tool-audit .audit-group-hint { grid-column: 1 / -1; }
  .tool-audit .audit-q { padding: 1.5rem 0.4rem 1.6rem; }
  .tool-audit .audit-bar { top: 72px; padding: 0.8rem 1rem; gap: 0.7rem; }
  .tool-audit .audit-bar-meta { font-size: 0.7rem; }
  .tool-audit .th-hero-bottom { align-items: flex-start; }
  .tool-audit .th-hero-bottom .btn { width: 100%; justify-content: center; }
  .tool-audit .tool-faq { padding: 4.5rem 0; }
  .tool-audit .tf-grid-2, .tool-audit .tf-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- Print ---------------- */
@media print {
  .tool-audit .th-ribbon, .tool-audit .th-facts, .tool-audit .audit-bar,
  .tool-audit .audit-foot, .tool-audit .tool-strip, .tool-audit .tool-faq,
  .tool-audit .audit-gate { display: none !important; }
  .tool-audit .th-hero { background: #fff; }
  .tool-audit .th-hero .container { min-height: 0; padding: 0; }
  .tool-audit .th-title { color: #111; font-size: 2rem; }
  .tool-audit .th-hero-inner { padding: 0 0 1rem; }
  .tool-audit .th-hero-bottom { border-color: #ddd; }
  .tool-audit .th-lede { color: #333; }
  .tool-audit .audit-section { background: #fff; padding: 1rem 0; }
  .tool-audit .scan-card, .tool-audit .audit-panel, .tool-audit .tf-done,
  .tool-audit .audit-score-card { background: #fff; border: 1px solid #ddd; }
  .tool-audit .audit-score-num, .tool-audit .scan-score-num,
  .tool-audit .audit-verdict-band, .tool-audit .audit-score-max { color: #111; }
  .tool-audit .audit-verdict-text, .tool-audit .audit-verdict-line,
  .tool-audit .scan-verdict, .tool-audit .scan-check-detail { color: #333; }
  .tool-audit .audit-opt, .tool-audit .audit-opt.is-on { background: #fff; box-shadow: none; }
  .tool-audit .audit-gap, .tool-audit .scan-check, .tool-audit .scan-stat { background: #f6f6f6; }
}
