/* =========================================================
   Burromart — Landing page
   Design tokens extracted from Figma (file QqcCayaFOBl8UfvAzrpHQx)
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #faf9f6;
  --bg-alt: #fbfaf7;
  --surface: #ffffff;
  --ink-bg: #17150f; /* dark sections */
  --ink-card: #221f18; /* dark-section card */

  /* Text */
  --ink: #17150f; /* headings */
  --body: #46423b; /* body copy */
  --muted: #6d675c; /* secondary text — darkened to clear WCAG AA (≈5.4:1 on bg) */
  --muted-dark: #b8b2a6; /* muted on dark */

  /* Brand */
  --green: #1fa463; /* brand primary — accents, borders, fills */
  --green-btn: #0e7a45; /* primary BUTTON fill — darker so white text hits WCAG AA 4.5:1 (5.4:1) */
  --green-btn-hover: #0b6238; /* button hover + CTA "go" fill — 6.3:1 white text, AA */
  --green-deep: #0f6440; /* eyebrow on light */
  --green-bright: #4fbf80; /* accent on dark */
  --green-wash: #e5f7ed; /* light green text/bg */
  --green-soft: #dfe9e2; /* faint green fill */

  /* Lines */
  --border: #eae7e0;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Shape */
  --r-pill: 999px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Shadows */
  --shadow-card: 0 10px 30px -16px rgba(20, 19, 15, 0.1);
  --shadow-lift: 0 18px 50px -24px rgba(20, 19, 15, 0.22);
  --shadow-frame: 0 40px 90px -50px rgba(20, 19, 15, 0.35);

  /* Layout */
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-nav: 100;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--features {
  max-width: 1160px;
}

.section {
  padding-block: clamp(56px, 8vw, 80px);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
/* Left-aligned editorial header — one deliberate asymmetric moment for rhythm */
.section__head--left {
  text-align: left;
  align-items: flex-start;
  max-width: 720px;
  margin-inline: 0;
}

.section__title {
  font-weight: 700;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__deck {
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- Hero kicker (single deliberate brand label) ---------- */
.eyebrow {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: #fff;
  padding: 13px 22px;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  --btn-bg: var(--green-btn);
}
.btn--primary:hover {
  background: var(--green-btn-hover);
}
.btn--ink {
  --btn-bg: var(--ink);
}
.btn--ink:hover {
  background: #000;
}
.btn--sm {
  padding: 11px 20px;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 17px 32px;
  font-size: 1.0625rem;
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav--scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px -20px rgba(20, 19, 15, 0.4);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 1.4375rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 0.5em;
}
.wordmark--light {
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links > a:not(.btn) {
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--body);
  transition: color 0.18s var(--ease);
}
.nav__links > a:not(.btn):hover {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad) 24px;
  border-top: 1px solid var(--border);
}
.nav__mobile a:not(.btn) {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--body);
}
.nav__mobile .btn {
  margin-top: 8px;
}

/* ===================== HERO ===================== */
.hero {
  text-align: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.hero__content {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero__content > .eyebrow,
.hero__title {
  max-width: 900px;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__sub {
  max-width: 760px;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--body);
  text-wrap: pretty;
}

/* CTA group — one decisive button + a line of reassurance microcopy */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  /* #start (this group) is the nav-CTA anchor target — clear the sticky nav
     so the focused group doesn't land hidden underneath it. */
  scroll-margin-top: 120px;
}
.cta-go {
  scroll-margin-top: 120px;
}
.cta-go.is-go {
  background: var(--green-btn-hover); /* AA 6.3:1 with white text (was --green-strong #178a52 ≈ 4.4:1, missed AA) */
}
.btn--ink.cta-go.is-go {
  background: #000;
}
.capture__note {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.capture__note--light {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero visual */
.hero__visual {
  margin-top: clamp(40px, 6vw, 80px);
  padding-inline: var(--pad);
}
.hero__frame {
  max-width: 1280px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: clamp(20px, 3vw, 32px);
  padding: 8px;
  box-shadow: var(--shadow-frame);
}
.hero__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: clamp(14px, 2.4vw, 24px);
}

/* ===================== PROBLEM ===================== */
.problem {
  background: var(--bg-alt);
}
/* Editorial column layout — no card chrome; hairline rules group the columns */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 40px;
}
.pain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--border);
}
.pain:first-child {
  padding-left: 0;
  border-left: none;
}
.pain__media {
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.pain__media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.pain__title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.26;
  letter-spacing: -0.02em;
}
.pain__body {
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.pain__title + .pain__body {
  margin-top: -8px;
}

/* ===================== HOW IT WORKS ===================== */
/* Connected timeline — a real sequence, not three isolated cards */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.flow__node {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--green-soft);
}
/* the connector runs from this node toward the next */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 32px);
  width: calc(100% - 64px + clamp(28px, 4vw, 48px));
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--green) 0 7px,
    transparent 7px 14px
  );
  opacity: 0.45;
  z-index: 0;
}
.flow__title {
  margin-top: 4px;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.26;
  letter-spacing: -0.02em;
}
.flow__body {
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* ===================== FEATURES ===================== */
.features .pillar + .pillar {
  margin-top: clamp(48px, 7vw, 88px);
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.pillar--reverse .pillar__text {
  order: 2;
}
.pillar__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}
/* Feature label — a deliberate inline tag, not a tracked-caps eyebrow */
.pillar__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
.pillar__kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.pillar__title {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pillar__body {
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.pillar__visual {
  display: flex;
  justify-content: center;
}
.mock {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mock__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}
.star {
  color: var(--green);
  font-size: 0.875rem;
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.6875rem;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pill--live {
  background: var(--green-wash);
  color: var(--green-deep);
}
.pill--live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.18);
}
.pill--ok {
  background: var(--green-wash);
  color: var(--green-deep);
}
.pill--soft {
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pill--pop {
  background: var(--green-btn); /* AA: white text needs 4.5:1 (5.4:1) */
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 12px;
}

/* Pillar 1 — shop grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shop-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-tile__img {
  aspect-ratio: 118 / 81;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1ece2, #e4ddcd);
}
.shop-tile:nth-child(2) .shop-tile__img {
  background: linear-gradient(135deg, #e7efe9, #d4e6da);
}
.shop-tile:nth-child(3) .shop-tile__img {
  background: linear-gradient(135deg, #f3e9df, #e8d3bb);
}
.bar {
  border-radius: 4px;
  background: var(--border);
  height: 7px;
}
.bar--lg {
  width: 64%;
}
.bar--sm {
  width: 38%;
}

/* Pillar 2 — brand kit */
.swatches {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.swatches span {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.brand-font {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.brand-font__aa {
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.brand-font__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.brand-font__meta span {
  font-size: 0.75rem;
  color: var(--muted);
}
.brand-voice {
  font-size: 0.875rem;
  color: var(--body);
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: 10px;
  margin-bottom: 12px;
}
.jingle {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.875rem;
  color: var(--body);
}
.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  animation: wave 1.1s var(--ease) infinite;
}
.wave i:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}
.wave i:nth-child(2) {
  height: 15px;
  animation-delay: 0.08s;
}
.wave i:nth-child(3) {
  height: 22px;
  animation-delay: 0.16s;
}
.wave i:nth-child(4) {
  height: 12px;
  animation-delay: 0.24s;
}
.wave i:nth-child(5) {
  height: 18px;
  animation-delay: 0.32s;
}
.wave i:nth-child(6) {
  height: 10px;
  animation-delay: 0.4s;
}
.wave i:nth-child(7) {
  height: 17px;
  animation-delay: 0.48s;
}
.wave i:nth-child(8) {
  height: 7px;
  animation-delay: 0.56s;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Pillar 3 — channels */
.channels {
  display: flex;
  flex-direction: column;
}
.channels li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  border-top: 1px solid var(--border);
}
.channels li:first-child {
  border-top: none;
}

/* Pillar 4 — keys */
.keys {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.keys li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--body);
}
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
}
.keys .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-wash);
  font-size: 0.75rem;
}
.keys__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--green-deep);
  font-weight: 500;
}

/* ===================== ECONOMICS ===================== */
.economics {
  background: var(--ink-bg);
}
.economics__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.economics__zero {
  font-weight: 700;
  font-size: clamp(5rem, 2rem + 14vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green-bright);
  margin-block: 8px;
}
.economics__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.economics__body {
  max-width: 760px;
  color: var(--muted-dark);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.5;
}
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 24px;
}
.compare__card {
  text-align: left;
  background: var(--ink-card);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 24px 16px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.compare__card--brand {
  background: var(
    --green-btn
  ); /* AA: white + green-wash text on this card need 4.5:1 */
  border-color: transparent;
}
.compare__label {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.compare__card--brand .compare__label {
  color: #fff;
}
.compare__value {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.compare__note {
  font-size: 0.875rem;
  color: var(--muted-dark);
  line-height: 1.4;
}
.compare__card--brand .compare__note {
  color: var(--green-wash);
}
.economics__founding {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--green-bright);
}

/* ===================== PRICING ===================== */
.pricing__founding {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--green-wash);
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.875rem;
}
.pricing__cta {
  margin-top: 12px;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 20px;
  justify-content: center;
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tier--featured {
  border: 2px solid var(--green);
  box-shadow: 0 12px 36px -16px rgba(31, 164, 99, 0.32);
}
.tier__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tier__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.tier__amount {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier__per {
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
}
.tier__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}
.tier__rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
  width: 100%;
}
.tier__feats {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tier__feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--body);
  letter-spacing: -0.01em;
}
.tier__feats .tick {
  font-size: 0.8125rem;
}

/* ===================== FAQ ===================== */
.faq .accordion {
  max-width: 860px;
  margin-inline: auto;
}
.qa {
  border-bottom: 1px solid var(--border);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
  border-radius: 2px;
}
.qa__icon::before {
  width: 16px;
  height: 2px;
}
.qa__icon::after {
  width: 2px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.qa[open] .qa__icon::after {
  transform: scaleY(0);
}
.qa__body {
  padding: 0 0 22px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
}
.qa[open] .qa__body {
  animation: fadeDown 0.3s var(--ease);
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== FINAL CTA ===================== */
.final-cta {
  background: var(--ink-bg);
}
.final-cta__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.final-cta__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.final-cta__sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.45;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink-bg);
  color: var(--muted-dark);
  padding-block: 80px 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer__tagline {
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 0.9375rem;
  max-width: 280px;
}
.footer__heading {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__col {
  display: flex;
  flex-direction: column;
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--muted-dark);
  transition: color 0.18s var(--ease);
  width: fit-content;
}
.footer__col a:hover {
  color: #fff;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.875rem;
}

/* ===================== MOTION / REVEAL ===================== */
/* Hidden-by-default ONLY when JS is on (html.js is set in <head> before
   first paint). Without JS the .reveal content stays fully visible instead of
   being stuck at opacity:0. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wave i {
    animation: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__mobile {
    display: flex;
  }

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

  /* Problem → stacked editorial list with top dividers */
  .pains {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .pain {
    border-left: none;
    padding-left: 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .pain:first-child {
    border-top: none;
    padding-top: 0;
  }

  /* How it works → vertical timeline with a connecting rail */
  .flow {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow__step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    text-align: left;
    align-items: start;
    padding-bottom: 32px;
  }
  .flow__node {
    grid-column: 1;
    grid-row: 1;
  }
  .flow__title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-top: 0;
  }
  .flow__body {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }
  .flow__step:not(:last-child)::after {
    top: 52px;
    left: 25px;
    width: 2px;
    height: calc(100% - 52px);
    background: repeating-linear-gradient(
      to bottom,
      var(--green) 0 7px,
      transparent 7px 14px
    );
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pillar__text {
    order: 1 !important;
    max-width: none;
  }
  .pillar__visual {
    order: 2;
  }
  .pillar__text {
    text-align: left;
  }

  .tiers {
    grid-template-columns: minmax(0, 420px);
  }
  .tier--featured {
    order: -1;
  }
}

@media (max-width: 520px) {
  .cta-go {
    width: 100%;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Language toggle (EN/PL, #1370) ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 13px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--muted);
  background: var(--surface);
}
