.quorum-page {
  overflow: hidden;
  background: #fff;
}

.quorum-hero {
  padding: 58px 0 68px;
  color: #fff;
  background-color: #0f172a;
  background-image:
    linear-gradient(90deg, rgba(8, 20, 45, 0.96) 0%, rgba(8, 20, 45, 0.89) 45%, rgba(8, 20, 45, 0.66) 100%),
    url("/tools/kvorum-oss/quorum-hero-counting-v1.webp");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid #1e3a8a;
}

.quorum-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.78fr);
  gap: 54px;
  align-items: center;
}

.quorum-intro {
  display: grid;
  gap: 20px;
}

.quorum-intro h1 {
  max-width: 800px;
  color: #fff;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.quorum-lead {
  max-width: 720px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.6;
}

.quorum-intro > .eyebrow-light {
  color: #f0fdf4;
  background: rgba(20, 83, 45, 0.78);
  border-color: rgba(134, 239, 172, 0.62);
}

.quorum-law-note {
  display: grid;
  max-width: 720px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 17px 18px;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
}

.quorum-law-note strong {
  white-space: nowrap;
}

.quorum-law-note span {
  line-height: 1.55;
}

.quorum-calculator {
  display: grid;
  gap: 19px;
  padding: 30px;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(22, 101, 52, 0.12);
}

.quorum-calculator-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.quorum-calculator-head span {
  color: #172554;
  font-size: 23px;
  font-weight: 750;
}

.quorum-calculator-head strong {
  color: #166534;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quorum-calculator label {
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-weight: 700;
}

.quorum-calculator input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
}

.quorum-calculator input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: 0;
}

.quorum-calculator small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.quorum-calculator .button {
  width: 100%;
  min-height: 54px;
}

.quorum-error {
  padding: 12px 14px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
}

.quorum-result {
  display: grid;
  gap: 6px;
  padding: 20px;
  color: #cbd5e1;
  background: #172554;
  border-radius: 8px;
}

.quorum-result-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quorum-result > strong {
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
}

.quorum-result > span:not(.quorum-result-label):not(.quorum-progress) {
  font-size: 14px;
  font-weight: 650;
}

.quorum-result.has-quorum > span:not(.quorum-result-label):not(.quorum-progress) {
  color: #86efac;
}

.quorum-result.no-quorum > span:not(.quorum-result-label):not(.quorum-progress) {
  color: #fca5a5;
}

.quorum-progress {
  display: block;
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
  background: #334155;
  border-radius: 999px;
}

.quorum-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #22c55e;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.quorum-result.no-quorum .quorum-progress i {
  background: #ef4444;
}

.quorum-download-section {
  padding: 34px 0 0;
  background: #fff;
}

.quorum-download {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 30px;
  color: #fff;
  background: #172554;
  border: 1px solid #1e3a8a;
  border-radius: 8px;
}

.quorum-download-format {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #14532d;
  background: #dcfce7;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
}

.quorum-download-copy {
  display: grid;
  gap: 9px;
}

.quorum-download-kicker {
  width: max-content;
  padding: 7px 11px;
  color: #14532d;
  background: #bbf7d0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.quorum-download-copy h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.18;
}

.quorum-download-copy > p:last-child {
  max-width: 820px;
  color: #cbd5e1;
  line-height: 1.55;
}

.quorum-download-actions {
  display: grid;
  min-width: 230px;
  gap: 10px;
  justify-items: stretch;
  text-align: center;
}

.quorum-download-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  color: #052e16;
  background: #4ade80;
  border: 2px solid #86efac;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.quorum-download-button:hover {
  color: #052e16;
  background: #86efac;
}

.quorum-download-button:focus-visible {
  outline: 3px solid #fef08a;
  outline-offset: 3px;
}

.quorum-download-actions span {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 650;
}

.quorum-content-grid,
.quorum-example-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: start;
}

.quorum-content-grid > div:first-child,
.quorum-example-grid > div:first-child {
  display: grid;
  gap: 16px;
}

.quorum-formula {
  display: grid;
  gap: 13px;
  padding: 30px;
  color: #fff;
  background: #172554;
  border-radius: 8px;
}

.quorum-formula span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quorum-formula strong {
  font-size: clamp(23px, 2.8vw, 36px);
  line-height: 1.3;
}

.quorum-formula p {
  color: #cbd5e1;
}

.quorum-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.quorum-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 17px;
  min-height: 205px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.quorum-steps li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: #15803d;
  border-radius: 50%;
  font-weight: 800;
}

.quorum-steps h3 {
  margin-bottom: 11px;
}

.quorum-example-math {
  display: grid;
  gap: 10px;
  padding: 30px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.quorum-example-math span {
  color: #166534;
  font-size: 18px;
  font-weight: 700;
}

.quorum-example-math strong {
  color: #14532d;
  font-size: 58px;
  line-height: 1;
}

.quorum-thresholds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.quorum-thresholds article {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-top: 4px solid #172554;
  border-radius: 8px;
}

.quorum-thresholds article:last-child {
  border-top-color: #15803d;
}

.quorum-thresholds span {
  display: block;
  margin-bottom: 24px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quorum-thresholds h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.quorum-warning {
  display: grid;
  grid-template-columns: minmax(230px, 0.44fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 23px 26px;
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.quorum-warning p {
  color: #78350f;
}

.quorum-article-section {
  padding: 0 0 34px;
  background: #fff;
}

.quorum-article-cta {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  color: #172554;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.quorum-article-cta p {
  max-width: 920px;
  color: #172554;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.quorum-article-cta .button {
  min-width: 170px;
  min-height: 50px;
  flex: 0 0 auto;
}

.quorum-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quorum-checklist li {
  position: relative;
  padding: 15px 18px 15px 48px;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.quorum-checklist li::before {
  position: absolute;
  top: 15px;
  left: 17px;
  color: #b91c1c;
  content: "×";
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.quorum-source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quorum-source-links a {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 15px 18px;
  color: #1e3a8a;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  font-weight: 700;
}

.quorum-source-links a:hover {
  background: #eef2ff;
}

.quorum-disclaimer {
  max-width: 940px;
  margin-top: 24px;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 960px) {
  .quorum-hero-grid,
  .quorum-content-grid,
  .quorum-example-grid {
    grid-template-columns: 1fr;
  }

  .quorum-hero-grid,
  .quorum-content-grid,
  .quorum-example-grid {
    gap: 32px;
  }

  .quorum-download {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .quorum-download-format {
    width: 70px;
    height: 70px;
  }

  .quorum-download-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .quorum-hero {
    padding: 34px 0 44px;
    background-image:
      linear-gradient(rgba(8, 20, 45, 0.9), rgba(8, 20, 45, 0.9)),
      url("/tools/kvorum-oss/quorum-hero-counting-v1.webp");
    background-position: 62% center;
  }

  .quorum-intro h1 {
    font-size: 38px;
  }

  .quorum-lead {
    font-size: 17px;
  }

  .quorum-law-note,
  .quorum-warning {
    grid-template-columns: 1fr;
  }

  .quorum-law-note strong {
    white-space: normal;
  }

  .quorum-calculator {
    padding: 22px 18px;
  }

  .quorum-calculator-head {
    display: grid;
  }

  .quorum-steps,
  .quorum-thresholds,
  .quorum-source-links {
    grid-template-columns: 1fr;
  }

  .quorum-steps li {
    min-height: 0;
    padding: 22px 18px;
  }

  .quorum-download-section {
    padding-top: 20px;
  }

  .quorum-download {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
  }

  .quorum-download-format {
    width: 64px;
    height: 52px;
  }

  .quorum-download-actions {
    grid-column: auto;
    min-width: 0;
  }

  .quorum-article-section {
    padding-bottom: 20px;
  }

  .quorum-article-cta {
    display: grid;
    gap: 18px;
    padding: 22px 20px;
  }

  .quorum-article-cta p {
    font-size: 18px;
  }

  .quorum-article-cta .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .quorum-intro h1 {
    font-size: 34px;
  }

  .quorum-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
  }

  .quorum-steps li > span {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quorum-progress i {
    transition: none;
  }
}
