/*
Theme Name: Conformis — strona informacyjna
Theme URI: https://przygotowanienis2.pl
Author: Conformis
Description: Lekki motyw strony usług przygotowania do KSC/NIS2.
Version: 1.0.0
Text Domain: conformis-marketing
*/

:root {
  --paper: #f4f3ed;
  --surface: #fffef9;
  --ink: #17201d;
  --muted: #66716c;
  --navy: #173b36;
  --navy-dark: #0e2a26;
  --green: #26705e;
  --mint: #dcebe5;
  --mint-light: #edf5f1;
  --amber: #a96625;
  --line: #d9ddd6;
  --line-strong: #bdc7be;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(22, 50, 44, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-dark);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

p {
  margin: 0 0 1rem;
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 59, 54, 0.1);
  background: rgba(244, 243, 237, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 3px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 22px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--green);
}

.nav-cta-mobile {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

.button,
.main-nav .nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.main-nav .nav-cta:hover {
  transform: translateY(-2px);
  background: var(--navy-dark);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(17, 45, 41, 0.16);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--mint);
  color: var(--navy-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -240px;
  right: -180px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 235, 229, 0.95), rgba(220, 235, 229, 0));
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 80px;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(43px, 5.6vw, 76px);
}

.hero-lead {
  max-width: 690px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 13px;
}

.hero-trust span::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.document-scene {
  position: relative;
  min-height: 490px;
}

.document-card {
  position: absolute;
  width: 335px;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-card.back {
  top: 38px;
  right: 44px;
  transform: rotate(6deg);
  background: var(--mint);
}

.document-card.front {
  top: 0;
  right: 74px;
  transform: rotate(-2.4deg);
}

.document-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-title {
  margin: 54px 0 24px;
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.document-rule {
  height: 1px;
  margin: 20px 0;
  background: var(--line);
}

.document-line {
  height: 8px;
  margin: 13px 0;
  border-radius: 20px;
  background: #dce2dc;
}

.document-line.short {
  width: 65%;
}

.document-score {
  display: grid;
  width: 88px;
  height: 88px;
  margin-top: 34px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--serif);
  font-size: 28px;
}

.section {
  padding: 100px 0;
}

.section-white {
  background: var(--surface);
}

.section-mint {
  background: var(--mint);
}

.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-head h2 {
  max-width: 780px;
  font-size: clamp(36px, 4vw, 54px);
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.problem-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.problem-card {
  min-height: 218px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.card-index {
  display: block;
  margin-bottom: 52px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 18px;
}

.problem-card h3 {
  font-size: 25px;
  line-height: 1.18;
}

.section-closer {
  margin: 34px 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 24px;
  text-align: center;
}

.audience-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}

.audience-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  grid-column: span 2;
}

.audience-card-wide {
  display: grid;
  min-height: 210px;
  align-content: start;
  grid-column: span 4;
}

.audience-card span,
.proof-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1;
}

.audience-card h3,
.proof-card h3 {
  margin-bottom: 14px;
  font-size: 26px;
}

.audience-card p,
.proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
}

.step {
  position: relative;
  padding: 0 24px;
  border-left: 1px solid rgba(23, 59, 54, 0.18);
}

.step:first-child {
  padding-left: 0;
  border-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 34px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 40px;
}

.step h3 {
  min-height: 58px;
  margin-bottom: 16px;
  font-size: 23px;
}

.step p {
  margin: 0;
  color: #52635d;
  font-size: 14px;
}

.offer-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.offer-card {
  display: flex;
  min-height: 610px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.offer-card.featured {
  position: relative;
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.offer-card.featured::before {
  position: absolute;
  top: -1px;
  right: 34px;
  left: 34px;
  height: 4px;
  background: var(--green);
  content: "";
}

.package-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.offer-card h3 {
  margin: 16px 0 14px;
  font-size: 38px;
}

.package-intro {
  min-height: 82px;
  color: var(--muted);
}

.offer-card ul {
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.offer-card li {
  position: relative;
  margin: 10px 0;
  padding-left: 23px;
  font-size: 15px;
}

.offer-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "—";
}

.package-result {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.offer-card .button {
  width: 100%;
  margin-top: 18px;
}

.proof-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.proof-card {
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.proof-card span {
  width: auto;
  min-width: 52px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.value-grid {
  display: grid;
  align-items: start;
  gap: 80px;
  grid-template-columns: 0.9fr 1.1fr;
}

.value-grid h2 {
  font-size: clamp(40px, 4.5vw, 60px);
}

.value-statement {
  margin-top: 25px;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 26px;
}

.value-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.value-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
}

.value-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.checklist-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: 1.1fr 0.9fr;
}

.checklist-copy {
  padding: 62px;
}

.checklist-copy h2 {
  max-width: 700px;
  font-size: clamp(38px, 4vw, 56px);
}

.checklist-copy p {
  max-width: 670px;
  margin: 25px 0 30px;
  color: var(--muted);
}

.checklist-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  background: var(--mint);
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(23, 59, 54, 0.16);
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

.preview-row span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--serif);
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 80px;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-copy h2 {
  font-size: clamp(42px, 4vw, 58px);
}

.contact-copy > p {
  margin-top: 24px;
  color: var(--muted);
}

.contact-detail {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-detail small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-detail a {
  display: inline-block;
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 25px;
  text-decoration: none;
}

.contact-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 18px;
  font-size: 30px;
}

.contact-card p {
  color: var(--muted);
}

.contact-card .button {
  width: 100%;
  margin-top: 15px;
}

.contact-card .ff-el-group {
  margin-bottom: 17px;
}

.contact-card .ff-el-input--label label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.contact-card .ff-el-form-control {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.contact-card textarea.ff-el-form-control {
  min-height: 108px;
}

.contact-card .ff-btn-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 3px;
  background: var(--navy) !important;
  color: var(--white) !important;
  font-weight: 750;
}

.contact-card .ff-el-form-check-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-card .ff-el-is-error .ff-el-form-control {
  border-color: #a33b2f;
}

.form-privacy-link {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.legal-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 72px 0 28px;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
}

.footer-brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: 28px;
}

.footer-description {
  max-width: 330px;
  margin-top: 16px;
  font-size: 14px;
}

.footer-title {
  margin-bottom: 17px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-disclaimer {
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 55px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.page-hero {
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(44px, 5vw, 68px);
}

.page-hero p {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
}

.page-content {
  padding: 70px 0 100px;
}

.prose {
  max-width: 850px;
}

.prose h2 {
  margin: 54px 0 18px;
  font-size: 34px;
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 25px;
}

.prose li {
  margin: 9px 0;
}

.notice {
  padding: 22px 24px;
  border-left: 3px solid var(--amber);
  background: #f4e9dc;
  color: #6a451f;
  font-size: 14px;
}

@media (max-width: 980px) {
  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-grid,
  .value-grid,
  .contact-grid {
    gap: 50px;
    grid-template-columns: 1fr;
  }

  .document-scene {
    min-height: 430px;
  }

  .document-card.front {
    right: calc(50% - 150px);
  }

  .document-card.back {
    right: calc(50% - 180px);
  }

  .problem-grid,
  .offer-grid,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .offer-card:last-child {
    grid-column: 1 / -1;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audience-card,
  .audience-card-wide {
    grid-column: auto;
  }

  .steps {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }

  .step,
  .step:first-child {
    padding: 0 20px;
    border-left: 1px solid rgba(23, 59, 54, 0.18);
  }

  .checklist-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 680px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .container {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    position: relative;
    min-height: 68px;
    gap: 14px;
  }

  .brand-copy small {
    display: block;
    max-width: 150px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: lowercase;
    white-space: nowrap;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(23, 59, 54, 0.18);
    border-radius: 3px;
    background: rgba(255, 254, 249, 0.68);
    color: var(--navy);
    cursor: pointer;
  }

  .burger-line {
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.mobile-menu-open .burger-line:first-of-type {
    transform: translateY(4.25px) rotate(42deg);
  }

  body.mobile-menu-open .burger-line:last-of-type {
    transform: translateY(-4.25px) rotate(-42deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(23, 59, 54, 0.14);
    border-radius: 5px;
    background: rgba(255, 254, 249, 0.98);
    box-shadow: 0 24px 50px rgba(17, 45, 41, 0.13);
    backdrop-filter: blur(18px);
  }

  .js .main-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .js body.mobile-menu-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a,
  .main-nav a:not(.nav-cta) {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--navy-dark);
    font-size: 15px;
  }

  .main-nav a:not(.nav-cta)::after {
    color: var(--line-strong);
    content: "→";
    font-family: var(--serif);
    font-size: 18px;
  }

  .main-nav a:nth-last-child(2) {
    border-bottom: 0;
  }

  .main-nav .nav-cta {
    min-height: 48px;
    margin-top: 8px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero {
    padding: 66px 0 64px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 55px);
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    gap: 9px;
  }

  .document-scene {
    display: none;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: inline;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 34px;
  }

  .section-head p {
    margin-top: 20px;
  }

  .problem-grid,
  .steps,
  .offer-grid,
  .audience-grid,
  .proof-grid,
  .value-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 160px;
  }

  .card-index {
    margin-bottom: 28px;
  }

  .step,
  .step:first-child {
    padding: 0 0 25px 24px;
    border-bottom: 1px solid rgba(23, 59, 54, 0.16);
    border-left: 2px solid var(--green);
  }

  .step h3 {
    min-height: 0;
  }

  .offer-card,
  .offer-card:last-child {
    min-height: 0;
    grid-column: auto;
  }

  .audience-card,
  .audience-card-wide,
  .proof-card {
    min-height: 0;
  }

  .checklist-copy,
  .checklist-preview,
  .contact-card {
    padding: 32px 24px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 10px;
  }
}

.footer-link-button {
  display: block;
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--white);
}

body.has-cookie-bar {
  padding-bottom: var(--cookie-bar-offset, 0px);
}

.cookie-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 100000;
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 40px rgba(22, 50, 44, 0.06);
}

.cookie-bar__container {
  padding-block: 18px 20px;
}

.cookie-bar__view {
  display: grid;
  align-items: center;
  gap: 20px 32px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cookie-bar__content {
  min-width: 0;
}

.cookie-bar__label {
  margin: 0 0 6px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.cookie-bar__text {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-bar__text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-bar__actions--end {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 4px;
}

.cookie-bar__btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cookie-bar__btn:hover {
  border-color: var(--navy);
  background: var(--mint-light);
}

.cookie-bar__btn--primary {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.cookie-bar__btn--primary:hover {
  border-color: var(--navy-dark);
  background: var(--navy-dark);
  color: var(--white);
}

.cookie-bar__btn--text {
  min-height: 40px;
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.cookie-bar__btn--text:hover {
  border-color: transparent;
  background: transparent;
  color: var(--navy);
}

.cookie-bar__view--settings {
  grid-template-columns: 1fr;
  gap: 14px;
}

.cookie-bar__settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-bar__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cookie-bar__item {
  display: grid;
  align-items: center;
  gap: 16px 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-bar__item-copy {
  display: grid;
  gap: 4px;
}

.cookie-bar__item-copy strong,
.cookie-bar__item-copy label {
  color: var(--navy-dark);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.cookie-bar__item-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-bar__status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-bar__switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-bar__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-bar__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 160ms ease;
}

.cookie-bar__switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(22, 50, 44, 0.18);
  transition: transform 160ms ease;
}

.cookie-bar__switch input:checked + span {
  background: var(--green);
}

.cookie-bar__switch input:checked + span::after {
  transform: translateX(18px);
}

.cookie-bar__switch input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .cookie-bar__view {
    grid-template-columns: 1fr;
  }

  .cookie-bar__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .cookie-bar__container {
    padding-block: 16px 18px;
  }

  .cookie-bar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-bar__btn {
    width: 100%;
  }

  .cookie-bar__btn--text {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    min-height: 36px;
    padding-inline: 0;
  }

  .cookie-bar__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-bar__status {
    justify-self: start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & ENHANCEMENTS  v1.3.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Scroll-reveal ──────────────────────────────────────────────────────────
   Progressive enhancement: opacity:0 is set ONLY when JS has loaded and
   added the `.js` class to <html>. Without JS the elements are always visible.
   JS adds .is-visible via IntersectionObserver when elements enter viewport.
   ─────────────────────────────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }
.js .reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ── Document card float ────────────────────────────────────────────────────
   Gentle oscillation on the hero document cards.
   ─────────────────────────────────────────────────────────────────────────── */
@keyframes float-front {
  0%, 100% { transform: rotate(-2.4deg) translateY(0px);  }
  50%       { transform: rotate(-2.4deg) translateY(-9px); }
}

@keyframes float-back {
  0%, 100% { transform: rotate(6deg) translateY(0px); }
  50%       { transform: rotate(6deg) translateY(6px); }
}

.document-card.front {
  animation: float-front 5.2s ease-in-out infinite;
}

.document-card.back {
  animation: float-back 5.2s ease-in-out infinite 0.7s;
}

/* ── Score widget ───────────────────────────────────────────────────────────
   Replaces the static .document-score circle. Includes SVG progress ring
   drawn by JS and a counting number.
   ─────────────────────────────────────────────────────────────────────────── */
.score-widget {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-top: 30px;
}

.score-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.score-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}

.score-ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
}

.score-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ── Stats bar ──────────────────────────────────────────────────────────────
   Four headline figures between hero and problems section.
   ─────────────────────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.05em;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

/* ── FAQ accordion ──────────────────────────────────────────────────────────
   Accessible accordion: maxHeight transition driven by JS, icon rotates.
   ─────────────────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border: none;
  background: none;
  color: var(--navy-dark);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 720px;
}

/* ── prefers-reduced-motion overrides ───────────────────────────────────────
   Kill all animations and transitions for users who prefer less motion.
   ─────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal[data-delay="1"],
  .js .reveal[data-delay="2"],
  .js .reveal[data-delay="3"],
  .js .reveal[data-delay="4"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .document-card.front,
  .document-card.back {
    animation: none;
  }

  .faq-answer {
    transition: none;
  }

  .faq-icon {
    transition: none;
  }
}

/* ── Responsive: stats bar ──────────────────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .stat-number {
    font-size: 38px;
  }
}

@media (max-width: 680px) {
  .faq-question {
    font-size: 17px;
    padding: 18px 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG  v1.5.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Blog hero ──────────────────────────────────────────────────────────────*/
.blog-hero p {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

/* ── Blog listing grid ──────────────────────────────────────────────────────*/
.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  padding: 56px 0 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.blog-card-meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-card-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.blog-card-title a {
  color: var(--navy-dark);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--green);
}

.blog-card-excerpt {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.blog-card-link:hover {
  gap: 11px;
}

.blog-card-link svg {
  transition: transform 160ms ease;
}

.blog-card-link:hover svg {
  transform: translateX(3px);
}

/* ── Pagination ─────────────────────────────────────────────────────────────*/
.blog-pagination {
  padding: 32px 0 56px;
}

.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.blog-pagination .page-numbers.current {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.blog-pagination .page-numbers:hover:not(.current) {
  border-color: var(--green);
  color: var(--green);
}

.blog-empty {
  padding: 56px 0;
  color: var(--muted);
  font-size: 18px;
}

/* ── Single post hero ───────────────────────────────────────────────────────*/
.post-hero {
  padding: 72px 0 52px;
  border-bottom: 1px solid var(--line);
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.post-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.post-breadcrumb a:hover {
  color: var(--green);
}

.post-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.post-eyebrow .eyebrow {
  margin-bottom: 0;
}

.post-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.post-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 4.2vw, 60px);
}

/* ── Single post body ───────────────────────────────────────────────────────*/
.post-body {
  padding: 60px 0 80px;
}

.post-layout {
  display: grid;
  grid-template-columns: min(720px, 100%);
  justify-content: center;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
}

.post-content h2 {
  margin: 52px 0 18px;
  font-size: 30px;
}

.post-content h3 {
  margin: 34px 0 12px;
  font-size: 22px;
}

.post-content p {
  margin: 0 0 1.4rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin: 8px 0;
}

.post-content strong {
  color: var(--navy-dark);
  font-weight: 700;
}

.post-content .notice {
  margin: 2rem 0;
}

/* ── Post CTA ───────────────────────────────────────────────────────────────*/
.post-cta-section {
  background: var(--mint);
  padding: 64px 0;
}

.post-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.post-cta-label {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-cta-card h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.post-cta-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.post-cta-card .button {
  flex-shrink: 0;
}

/* ── Blog responsive ────────────────────────────────────────────────────────*/
@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-cta-card .button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .post-hero {
    padding: 48px 0 36px;
  }

  .post-body {
    padding: 40px 0 56px;
  }

  .post-cta-section {
    padding: 48px 0;
  }
}
