/* ==========================================================================
   easybits n8n Workflow Checker – page styles (/)
   ========================================================================== */

/* The hidden attribute must win over component display rules. */
[hidden] {
  display: none !important;
}

/* ── easybits design tokens. --clay sampled from the brand logo. ── */
:root {
  --clay: #d14925;
  --clay-hover: #b23c1c;
  --clay-soft: #f6e4dc;
  --clay-line: #efd3c6;
  --ink: #191512;
  --ink-2: #6e6a64;
  --ink-3: #9a958c;
  --bg: #fcfbf8;
  --bg-warm: #f7f2ea;
  --surface: #ffffff;
  --line: #eae3d8;
  --line-2: #dfd6c7;
  --good: #3e7c4b;
  --warn: #b47a1e;
  --bad: #c24a2e;
  --good-t: #eaf3ec;
  --warn-t: #f8f0df;
  --bad-t: #faeae4;
  --display: 'Inter', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r-card: 20px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(23, 21, 15, 0.03), 0 20px 50px -30px rgba(23, 21, 15, 0.14);
  --shadow-pop: 0 2px 4px rgba(23, 21, 15, 0.04), 0 30px 70px -35px rgba(209, 74, 37, 0.22);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.58;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
::selection {
  background: var(--clay);
  color: #fff;
}
a {
  color: inherit;
}
.wrap {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 28px;
}

/* warm ambient glow behind the hero, echoing the site's soft red accents */
.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  top: -280px;
  right: -200px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(209, 73, 37, 0.1), rgba(209, 73, 37, 0.04) 45%, transparent 68%);
}
.gridbg {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 21, 18, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 21, 18, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
}
main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* ── top bar ── */
header.wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 100%;
  padding: 0;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(234, 227, 216, 0.9);
}
.section-note {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: -10px 0 20px;
  line-height: 1.6;
}
.section-note a {
  color: var(--clay);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--clay-line);
}
.section-note a:hover {
  text-decoration-color: var(--clay);
}
.about {
  margin-top: 46px;
}
.about p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}
.about p a {
  color: var(--clay);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--clay-line);
}
.about p a:hover {
  text-decoration-color: var(--clay);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand .mark {
  height: 28px;
  width: auto;
  display: block;
  color: var(--clay);
  flex: none;
}
.brand .lockup {
  height: 22px;
  width: auto;
  display: block;
  color: var(--clay);
  flex: none;
}
.brand .wm {
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: var(--sans);
}
.brand .wm b {
  font-weight: 600;
}
.brand .wm span {
  font-weight: 400;
}
.tool-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  background: var(--surface);
}
.tool-tag .v {
  color: var(--clay);
  font-weight: 600;
}

/* ── buttons: pill + arrow, the easybits CTA signature ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  transition:
    background 0.16s,
    transform 0.07s,
    box-shadow 0.16s;
}
.btn:active {
  transform: translateY(1px);
}
.btn .arr {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s;
}
.btn:hover .arr {
  transform: translateX(3px);
}
.btn.primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(209, 73, 37, 0.55);
}
.btn.primary:hover {
  background: var(--clay-hover);
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn.ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg-warm);
}
.btn.inverse {
  background: #fff;
  color: var(--clay);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.35);
}
.btn.inverse:hover {
  background: #fff6f2;
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── hero / upload ── */
.hero {
  padding: 58px 0 30px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--clay);
  flex: none;
}
h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
h1 .accent {
  color: var(--clay);
}
.lede {
  font-size: 17.5px;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 580px;
}

.dropzone {
  position: relative;
  margin-top: 38px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  background-image: radial-gradient(rgba(23, 21, 15, 0.045) 1px, transparent 1px);
  background-size: 19px 19px;
  background-position: -9px -9px;
  padding: 52px 30px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    background 0.16s;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--clay);
  background: #fff9f6;
  box-shadow: 0 0 0 5px rgba(209, 73, 37, 0.08);
}
.dz-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: var(--clay);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -12px rgba(209, 74, 37, 0.6);
}
.dz-ico svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dz-title {
  font-weight: 600;
  font-size: 16.5px;
  margin: 0 0 5px;
  letter-spacing: -0.01em;
}
.dz-sub {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
}
.dz-sub b {
  color: var(--clay);
  font-weight: 600;
}
.subrow {
  margin-top: 20px;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-2);
}
.subrow .lnk {
  background: none;
  border: none;
  font: inherit;
  color: var(--clay);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--clay-line);
}
.subrow .lnk:hover {
  text-decoration-color: var(--clay);
}
.subrow .sep {
  color: var(--ink-3);
}
.paste-area {
  display: none;
  margin-top: 20px;
}
.paste-area.open {
  display: block;
}
textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  resize: vertical;
  background: var(--surface);
  color: var(--ink);
}
textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 5px rgba(209, 74, 37, 0.08);
}
.paste-actions {
  margin-top: 16px;
}
.err {
  margin-top: 18px;
  background: var(--bad-t);
  border: 1px solid #efc7b8;
  color: #93331b;
  font-size: 14px;
  padding: 13px 17px;
  border-radius: 14px;
  display: none;
  font-weight: 500;
}
.err.show {
  display: block;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.journey-step {
  position: relative;
  padding: 14px 13px 14px 44px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 70px;
}
.journey-step .n {
  position: absolute;
  left: 12px;
  top: 14px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--clay-soft);
  color: var(--clay);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.journey-step b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--ink);
}
.journey-step span:last-child {
  display: block;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.35;
}

/* trust strip under hero */
.trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.trust svg {
  width: 16px;
  height: 16px;
  stroke: var(--clay);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── report ── */
.report {
  display: none;
  padding: 34px 0 72px;
}
.report.show {
  display: block;
}
.rep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 4px;
}
.rep-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 10px;
  font-weight: 700;
}
.rep-kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--clay);
  flex: none;
}
.rep-name {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
  word-break: break-word;
  line-height: 1.12;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.chip b {
  color: var(--ink);
  font-weight: 600;
}

/* score card: light, elevated, warm shadow */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-top: 24px;
  padding: 38px 42px;
  box-shadow: var(--shadow-pop);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clay), #ea8a5f);
}
.panel-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
}
.gauge {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto;
}
.gauge svg {
  width: 210px;
  height: 210px;
  display: block;
}
.gauge .center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.gauge .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 62px;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.gauge .den {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 7px;
  letter-spacing: 0.12em;
}
.verdict {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.verdict span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.bar-row {
  display: grid;
  grid-template-columns: 152px 1fr 34px;
  align-items: center;
  gap: 16px;
}
.bar-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.bar-label .wt {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.07em;
  margin-top: 1px;
}
.track {
  height: 7px;
  background: #f2efea;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.fill {
  height: 100%;
  border-radius: var(--r-pill);
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar-num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.section-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 52px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-h::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--clay);
  flex: none;
}
.section-h::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.dim {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 10px;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.dim:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-card);
}
.dim-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
.dim-badge {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  min-width: 52px;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dim-meta {
  flex: 1;
  min-width: 0;
}
.dim-title {
  font-weight: 600;
  font-size: 15.5px;
  margin: 0;
  letter-spacing: -0.01em;
}
.dim-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin: 2px 0 0;
}
.dim-caret {
  color: var(--ink-3);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.dim.open .dim-caret {
  transform: rotate(90deg);
}
.dim-body {
  display: none;
  padding: 0 22px 16px 22px;
}
.dim.open .dim-body {
  display: block;
}
.find {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.f-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  width: 38px;
  text-align: right;
  padding-top: 1px;
}
.f-minus,
.f-critical {
  color: var(--bad);
}
.f-plus {
  color: var(--good);
}
.f-info,
.f-review {
  color: var(--ink-3);
}
.f-critical {
  background: var(--bad-t);
  border-radius: 6px;
  padding: 2px 4px;
  width: auto;
  min-width: 38px;
}
.f-review {
  color: var(--warn-d);
}
.f-text {
  flex: 1;
  color: var(--ink);
}
.f-text .fix {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.5;
}

.tips {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 26px;
  box-shadow: var(--shadow-card);
}
.tip {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.tip:first-child {
  border-top: none;
}
.tip-n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--clay);
  flex-shrink: 0;
  background: var(--clay-soft);
  border: 1px solid var(--clay-line);
  border-radius: 8px;
  padding: 3px 8px;
}
.tip-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tip-body p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.tip-body .where {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.tip-empty {
  padding: 30px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  text-align: center;
}
.compat-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 24px;
  box-shadow: var(--shadow-card);
}
.compat-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.compat-item:first-child {
  border-top: 0;
}
.compat-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clay);
  min-width: 64px;
  padding-top: 2px;
}
.glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.word-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.word-card b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--ink);
}
.word-card span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* CTA: terracotta gradient block, white pill button. Mirrors the site's closing CTA. */
.cta {
  background: linear-gradient(135deg, var(--clay) 0%, #e06a3a 100%);
  border-radius: 24px;
  padding: 48px 44px;
  margin-top: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(209, 74, 37, 0.5);
}
.cta::before {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}
.cta::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), transparent 65%);
}
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.cta h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 11px;
  color: #fff;
  max-width: 500px;
  position: relative;
  line-height: 1.12;
  z-index: 1;
}
.cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  margin: 0 0 26px;
  max-width: 520px;
  position: relative;
  line-height: 1.55;
  z-index: 1;
}
.cta .btn {
  position: relative;
  z-index: 1;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-person {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 24px 20px 20px;
}
.cta-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: #f6eee8;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto 12px;
}
.cta-name {
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cta-facts {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin: 0 auto;
  max-width: 100%;
}
.cta-fact {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.cta-fact svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  margin-top: 2px;
}
.cta-profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.btn.profile {
  background: #fff;
  color: var(--clay-deep);
  padding: 11px 16px;
  font-size: 13px;
  width: 100%;
  justify-content: flex-start;
  gap: 9px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35);
}
.btn.profile:hover {
  background: #fff4ef;
}
.btn.profile .label {
  flex: 1;
  text-align: left;
}
.btn.profile .arr {
  margin-left: auto;
  width: 15px;
  height: 15px;
}
.btn.profile .ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn.profile .n8n-logo {
  height: 15px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.disclaimer {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 36px;
  line-height: 1.6;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 30px 0;
  background: var(--bg-warm);
  position: relative;
  z-index: 1;
}
main.wrap {
  padding-bottom: 64px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
footer a.plain {
  text-decoration: none;
  color: var(--ink-2);
}
footer a.plain:hover {
  color: var(--ink);
}
.brand.sm {
  gap: 0;
}
.brand.sm .lockup {
  height: 24px;
}

@media (max-width: 740px) {
  .wrap {
    padding: 0 18px;
  }
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .journey {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 26px 18px;
  }
  .panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bar-row {
    grid-template-columns: 96px 1fr 28px;
    gap: 10px;
  }
  .bar-label {
    font-size: 12.5px;
  }
  .rep-head {
    align-items: flex-start;
  }
  .rep-actions {
    width: 100%;
  }
  .rep-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .chips {
    gap: 6px;
  }
  .chip {
    font-size: 11px;
    padding: 5px 9px;
  }
  .dim-head {
    padding: 16px 16px;
  }
  .dim-body {
    padding: 0 16px 14px 16px;
  }
  .cta {
    padding: 32px 20px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cta-person {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
  .glossary {
    grid-template-columns: 1fr;
  }
  .journey {
    grid-template-columns: 1fr 1fr;
  }
  .glow {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fill {
    transition: none;
  }
  .btn .arr {
    transition: none;
  }
}

.rep-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── intro loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  width: 58px;
  height: auto;
  color: var(--clay);
  animation: loaderPop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes loaderPop {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.loader-word {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-left: 0.34em;
  animation: loaderRise 0.6s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes loaderRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.loader-track {
  width: 148px;
  height: 3px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  animation: loaderRise 0.6s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.loader-fill {
  height: 100%;
  width: 0;
  background: var(--clay);
  border-radius: var(--r-pill);
  animation: loaderFill 0.85s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes loaderFill {
  to {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader {
    display: none;
  }
}

/* ── badge modal ── */
.badge-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 21, 15, 0.45);
  backdrop-filter: blur(3px);
}
.badge-modal.open {
  display: flex;
}
.badge-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(23, 21, 15, 0.5);
  width: 100%;
  max-width: 520px;
  padding: 28px 28px 24px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}
.badge-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font: inherit;
}
.badge-close:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.badge-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.badge-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.badge-preview {
  display: flex;
  justify-content: center;
  background: var(--bg-warm);
  background-image: radial-gradient(rgba(23, 21, 15, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.badge-code-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 18px 0 8px;
}
.badge-code {
  position: relative;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.badge-code:hover {
  border-color: var(--line-2);
}
.badge-code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow: auto;
}
.badge-copy {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}
.badge-copy.copied {
  background: var(--good);
}

/* score panel stays clear; the findings below are blurred until the visitor unlocks */
/* only the overall number is free: the per-category bars are gated too */
.report.revealing .lock-inner {
  transition:
    filter 0.45s ease,
    -webkit-mask-image 0.45s ease,
    mask-image 0.45s ease;
}
.locked {
  position: relative;
}
.locked.on {
  margin-bottom: -50px;
}
/* the mask fades the blurred content out at its own bottom edge, so nothing is
     cut off mid-card and the blur has no hard line to bleed past */
.locked.on .lock-inner {
  filter: blur(6px) saturate(0.88);
  pointer-events: none;
  user-select: none;
  max-height: 380px;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0, #000 26%, rgba(0, 0, 0, 0.4) 62%, rgba(0, 0, 0, 0) 90%),
    linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 26px, #000 calc(100% - 26px), rgba(0, 0, 0, 0) 100%);
  mask-image:
    linear-gradient(to bottom, #000 0, #000 26%, rgba(0, 0, 0, 0.4) 62%, rgba(0, 0, 0, 0) 90%),
    linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 26px, #000 calc(100% - 26px), rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.lock-overlay {
  display: none;
}
.locked.on .lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(252, 251, 248, 0) 0%,
    rgba(252, 251, 248, 0.4) 22%,
    rgba(252, 251, 248, 0.82) 52%,
    rgba(252, 251, 248, 0.94) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-card {
  text-align: center;
  max-width: 470px;
  padding: 0 20px 4px;
}
.lock-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--clay-soft);
  border: 1px solid var(--clay-line);
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
}
.lock-ico svg {
  width: 21px;
  height: 21px;
  stroke: var(--clay);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lock-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.22;
}
.lock-sub {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 20px;
}
.lock-note {
  font-size: 12px;
  color: var(--ink-3);
  margin: 13px 0 0;
}
.btn.is-locked {
  position: relative;
}
@media (max-width: 720px) {
  /* on a phone the card is taller than the teaser, so stack it under the fade
       instead of overlaying it. It is in flow here, so there is no dead space to
       pull the next section into. */
  .locked.on {
    margin-bottom: 22px;
  }
  .locked.on .lock-inner {
    max-height: 250px;
    -webkit-mask-image:
      linear-gradient(to bottom, #000 0, #000 30%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 16px, #000 calc(100% - 16px), rgba(0, 0, 0, 0) 100%);
    mask-image:
      linear-gradient(to bottom, #000 0, #000 30%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(to right, rgba(0, 0, 0, 0) 0, #000 16px, #000 calc(100% - 16px), rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .locked.on .lock-overlay {
    position: static;
    display: block;
    background: none;
    top: auto;
    margin-top: -6px;
  }
  .lock-title {
    font-size: 19px;
  }
}

/* ── lead gate modal ── */
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 21, 15, 0.45);
  backdrop-filter: blur(3px);
}
.gate-modal.open {
  display: flex;
}
.gate-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(23, 21, 15, 0.5);
  width: 100%;
  max-width: 440px;
  padding: 30px 30px 26px;
  position: relative;
}
.gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font: inherit;
}
.gate-close:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.gate-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--clay);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 12px 26px -12px rgba(209, 74, 37, 0.6);
}
.gate-ico svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1;
  transition:
    color 0.16s,
    border-color 0.16s;
}
.gate-close:hover {
  color: var(--ink);
  border-color: var(--line-2);
}
.gate-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.gate-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.5;
}
.gate-field {
  margin-bottom: 13px;
}
.gate-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.gate-field input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
}
.gate-field input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(209, 74, 37, 0.09);
}
.gate-field input.invalid {
  border-color: var(--bad);
  box-shadow: 0 0 0 4px rgba(194, 74, 46, 0.09);
}
.gate-err {
  font-size: 12.5px;
  color: var(--bad);
  margin: 0 0 12px;
  display: none;
}
.gate-err.show {
  display: block;
}
.gate-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.gate-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 14px;
  cursor: pointer;
}
.gate-consent-row input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    border-color 0.14s,
    background 0.14s,
    box-shadow 0.14s;
}
.gate-consent-row input:checked {
  background: var(--clay);
  border-color: var(--clay);
}
.gate-consent-row input:checked:after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.gate-consent-row input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(209, 74, 37, 0.14);
}
.gate-consent-row span {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.gate-consent-row.invalid input {
  border-color: var(--bad);
  box-shadow: 0 0 0 4px rgba(194, 74, 46, 0.09);
}
.gate-submit[disabled] {
  opacity: 0.62;
  cursor: default;
}
.gate-consent {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 14px 0 0;
  line-height: 1.5;
  text-align: center;
}
.gate-consent a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── print / PDF export ─────────────────────────────────────────
     Triggered by the Download PDF button via window.print().
     The PDF contains: logo header, workflow name and chips, score
     panel, and the full breakdown. Everything after that is hidden. */
@media print {
  html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    display: block;
    background: #fff;
  }
  .loader,
  .glow,
  .gridbg,
  .badge-modal,
  .gate-modal,
  .tool-tag,
  .rep-actions,
  #shTips,
  .tips,
  .cta,
  .about,
  .disclaimer,
  footer {
    display: none !important;
  }
  .wrap {
    max-width: 100%;
    padding: 0 9mm;
  }
  header.wrap {
    position: static;
    max-width: 100%;
    padding: 0 9mm;
    background: none;
    backdrop-filter: none;
    border-bottom: 0;
  }
  main.wrap {
    padding-bottom: 0;
  }
  .report {
    padding-top: 0;
    padding-bottom: 0;
  }
  .topbar {
    padding: 7mm 0 11px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
  }
  .rep-name {
    font-size: 25px;
  }
  .panel {
    box-shadow: none;
    border-color: var(--line-2);
    margin-top: 16px;
    padding: 26px 30px;
    border-radius: 16px;
  }
  .panel::before {
    display: none;
  }
  .panel-grid {
    gap: 36px;
  }
  .section-h {
    margin: 24px 0 12px;
    break-after: avoid;
    page-break-after: avoid;
  }
  .dim {
    box-shadow: none;
    margin-bottom: 8px;
    border-radius: 12px;
  }
  .dim:hover {
    box-shadow: none;
  }
  .dim .dim-body {
    display: block !important;
    padding: 0 22px 14px 22px;
  }
  .dim-caret {
    display: none;
  }
  .dim-head {
    cursor: default;
    padding: 14px 22px;
  }
  .panel,
  .dim {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* transparent top border cannot collapse at a page break, unlike margin */
  .dim {
    margin-top: 0;
    border-top: 5mm solid transparent;
    background-clip: padding-box;
  }
  .dim:first-of-type {
    border-top: 0;
  }
  .fill {
    transition: none;
  }
  .locked.on .lock-inner {
    display: none;
  }
  .locked.on .lock-overlay {
    position: static;
    display: block;
    background: none;
    top: auto;
  }
  @page {
    margin: 10mm 6mm 9mm 6mm;
  }
}
