/* ==========================================================================
   easybits n8n Workflow Checker – scoring guide styles (/scoring-rules/)
   ========================================================================== */

:root {
  --clay: #d14925;
  --clay-hover: #b23c1c;
  --clay-soft: #f6e4dc;
  --clay-line: #efd3c6;
  --navy: #002b49;
  --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);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
.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;
}
.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%);
}
header,
main,
section,
footer,
nav {
  position: relative;
  z-index: 1;
}
::selection {
  background: var(--clay);
  color: #fff;
}
a {
  color: inherit;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.narrow {
  max-width: 940px;
}

header {
  height: 70px;
  border-bottom: 1px solid rgba(234, 227, 216, 0.9);
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.brand {
  font-weight: 700;
}
.brand .mark {
  height: 27px;
  width: auto;
  display: block;
  color: var(--clay);
  flex: none;
}
.brand .lockup {
  height: 23px;
  width: auto;
  display: block;
  color: var(--clay);
  flex: none;
}
.brand .wm b {
  font-weight: 700;
}
.brand .wm span {
  font-weight: 400;
}
.header-side {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tool-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}
.back:hover {
  border-color: var(--ink-3);
  background: var(--bg-warm);
}

.hero {
  padding: 96px 0 58px;
  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-bottom: 18px;
}
.eyebrow:before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--clay);
  flex: none;
}
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 850px;
  font-weight: 800;
}
.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 690px;
  margin: 0 auto;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s;
}
.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 {
  border: 1px solid var(--line-2);
  background: #fff;
}
.btn.ghost:hover {
  background: var(--bg-warm);
}

.formula {
  margin-top: -1px;
  padding: 0 0 54px;
}
.formula-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 30px;
}
.formula-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: start;
}
.formula h2,
.section-title h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.formula p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}
.equation {
  margin-top: 20px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 19px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.equation b {
  color: var(--ink);
}
.example {
  border-left: 3px solid var(--clay);
  padding: 5px 0 5px 19px;
}
.example .mini {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 6px;
}
.example strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}
.example p {
  font-size: 13.5px;
}

.weights {
  padding: 4px 0 68px;
}
.section-kicker {
  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-bottom: 10px;
}
.section-kicker:before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--clay);
  flex: none;
}
.section-title {
  display: block;
  margin-bottom: 22px;
}
.section-title p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}
.weight-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.weight-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 15px;
  background: var(--surface);
  min-height: 124px;
}
.weight-card .pct {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--clay);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.weight-card b {
  font-size: 13px;
  display: block;
  line-height: 1.25;
}
.weight-card span {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.35;
}

.quick-nav {
  position: sticky;
  top: 70px;
  z-index: 14;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-nav .wrap {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-top: 11px;
  padding-bottom: 11px;
  scrollbar-width: none;
}
.quick-nav .wrap::-webkit-scrollbar {
  display: none;
}
.quick-nav a {
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fff;
}
.quick-nav a:hover {
  border-color: var(--clay-line);
  color: var(--clay);
  background: var(--clay-soft);
}

main {
  padding: 68px 0 86px;
}
.category {
  scroll-margin-top: 140px;
  margin-bottom: 76px;
}
.category-head {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 19px;
  margin-bottom: 20px;
}
.cat-num {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: var(--clay-soft);
  color: var(--clay);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
}
.category-head h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 0 5px;
}
.category-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
.weight-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-soft);
  border: 1px solid var(--clay-line);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-weight: 600;
}
.rules-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}
th {
  text-align: left;
  background: var(--bg-warm);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13.5px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fffefd;
}
td:first-child {
  width: 29%;
}
.rule-name {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}
.rule-ex {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}
.points {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bad);
  white-space: nowrap;
  background: var(--bad-t);
  border-radius: 8px;
  display: inline-block;
  padding: 4px 7px;
}
.points.serious:after {
  content: 'SERIOUS';
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-align: center;
}
.points.flag {
  color: var(--warn);
  background: var(--warn-t);
}
.count {
  color: var(--ink-2);
  line-height: 1.5;
}
.why {
  color: var(--ink-2);
  line-height: 1.5;
  width: 20%;
}
.fix {
  color: var(--ink-2);
  line-height: 1.5;
}
.fix b {
  color: var(--ink);
  font-weight: 600;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--clay);
  background: var(--clay-soft);
  border-radius: 5px;
  padding: 1px 4px;
}
.note {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.note b {
  color: var(--ink);
}

.faq {
  padding: 72px 0;
  scroll-margin-top: 140px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.faq-item:hover {
  border-color: var(--line-2);
}
.faq-item[open] {
  border-color: var(--clay-line);
  box-shadow: 0 1px 0 rgba(23, 21, 15, 0.03);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: -2px;
  border-radius: var(--r-card);
}
.faq-item h3 {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  transition: color 0.16s;
}
.faq-item summary:hover h3,
.faq-item[open] h3 {
  color: var(--clay);
}
.faq-chev {
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition:
    transform 0.2s ease,
    border-color 0.16s;
}
.faq-item[open] .faq-chev {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--clay);
}
.faq-item summary:hover .faq-chev {
  border-color: var(--clay);
}
.faq-a {
  padding: 0 22px 20px;
  margin-top: -2px;
}
.faq-a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 72ch;
}
.faq-a p + p {
  margin-top: 9px;
}
.faq-a a {
  color: var(--clay);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--clay-line);
}
.faq-a a:hover {
  text-decoration-color: var(--clay);
}
@media (prefers-reduced-motion: reduce) {
  .faq-chev {
    transition: none;
  }
}
.not-scored {
  background: var(--bg-warm);
  padding: 72px 0;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 25px 0 30px;
}
.legend-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}
.legend-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  padding: 4px 7px;
  display: inline-block;
  margin-bottom: 11px;
}
.legend-tag.check {
  background: var(--warn-t);
  color: var(--warn);
}
.legend-tag.info {
  background: #f0eeea;
  color: var(--ink-2);
}
.legend-tag.compat {
  background: var(--clay-soft);
  color: var(--clay);
}
.legend-card b {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.legend-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
}
.plain-list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  overflow: hidden;
}
.plain-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.plain-row:last-child {
  border-bottom: 0;
}
.plain-row b {
  font-size: 12.5px;
}
.plain-row span {
  color: var(--ink-2);
}

.critical-box {
  margin-top: 30px;
  border: 1px solid #eac6ba;
  background: var(--bad-t);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}
.critical-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bad);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.critical-box h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.critical-box p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
}

.cta {
  padding: 84px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.cta:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 420px at 85% -10%, rgba(209, 73, 37, 0.28), transparent 62%);
}
.cta .wrap {
  position: relative;
  z-index: 1;
}
.cta h2 {
  color: #f4f1ec;
}
.cta p {
  color: rgba(244, 241, 236, 0.72);
}
.cta .section-kicker {
  color: #ee8b69;
  justify-content: center;
}
.cta .section-kicker:before {
  background: #ee8b69;
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(29px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 auto 12px;
  max-width: 650px;
}
.cta p {
  margin: 0 auto 24px;
  max-width: 570px;
  font-size: 14.5px;
}
.cta .btn.primary {
  background: #fff;
  color: var(--ink);
}
.cta .btn.primary:hover {
  background: #f4f0eb;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg-warm);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 12.5px;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.foot-brand .lockup {
  height: 20px;
  width: auto;
  color: var(--clay);
  display: block;
}
.foot-sep {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-2);
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--clay);
}

@media (max-width: 900px) {
  .weight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .formula-grid {
    grid-template-columns: 1fr;
  }
  .header-side .tool-tag {
    display: none;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  header {
    height: 68px;
  }
  .back span {
    display: none;
  }
  .back {
    padding: 9px 11px;
  }
  .hero {
    padding: 62px 0 48px;
  }
  h1 {
    font-size: 38px;
  }
  .lede {
    font-size: 16px;
  }
  .formula-card {
    padding: 22px;
  }
  .weight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    padding-top: 50px;
  }
  .category {
    margin-bottom: 60px;
  }
  .category-head {
    grid-template-columns: 54px 1fr;
    gap: 13px;
  }
  .cat-num {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 18px;
  }
  .category-head h2 {
    font-size: 24px;
  }
  .weight-pill {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }
  .legend-grid {
    grid-template-columns: 1fr;
  }
  .plain-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
