:root {
  --ff-base: #f8fafc;
  --ff-surface: #ffffff;
  --ff-surface-2: #eef4f7;
  --ff-text: #0b1220;
  --ff-muted: #64748b;
  --ff-primary: #1746a2;
  --ff-primary-hover: #0f3480;
  --ff-bright: #1c00fe;
  --ff-cyan: #16c7e8;
  --ff-mint: #2ee6a6;
  --ff-mint-dark: #087a58;
  --ff-ink: #07111f;
  --ff-border: #d8e2ea;
  --ff-warning: #ffb020;
  --ff-error: #e5484d;
  --ff-radius: 12px;
  --ff-radius-lg: 18px;
  --ff-shadow: 0 18px 44px rgba(7, 17, 31, 0.06);
  --ff-container: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ff-text);
  background: var(--ff-base);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

section[id],
form[id] {
  scroll-margin-top: 88px;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ff-cyan);
  outline-offset: 2px;
}

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

.ff-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 10px 36px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 226, 234, 0.86);
  backdrop-filter: blur(18px);
}

.ff-logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ff-text);
  font-weight: 800;
  text-decoration: none;
}

.ff-logo__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ff-primary);
  border-radius: 9px;
  font-family: Inter, system-ui, sans-serif;
}

.ff-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: var(--ff-muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.ff-nav a {
  text-decoration: none;
}

.ff-nav a:hover {
  color: var(--ff-primary);
}

.ff-header__actions,
.ff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ff-actions--center {
  justify-content: center;
}

.ff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ff-button:hover {
  transform: translateY(-1px);
}

.ff-button--primary {
  color: #fff;
  background: var(--ff-primary);
  border-color: var(--ff-primary);
}

.ff-button--primary:hover {
  background: var(--ff-primary-hover);
}

.ff-button--secondary,
.ff-button.button-ghost {
  color: var(--ff-text);
  background: #fff;
}

.ff-button--secondary:hover,
.ff-button.button-ghost:hover {
  border-color: rgba(23, 70, 162, 0.34);
}

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

.ff-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1fr);
  gap: 46px;
  align-items: center;
  min-height: min(760px, calc(100svh - 120px));
  padding: 64px 40px 82px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ff-base) 100%);
}

.ff-hero__content,
.ff-hero__visual,
.ff-section,
.ff-final,
.ff-footer {
  width: min(100%, var(--ff-container));
  margin-inline: auto;
}

.ff-eyebrow {
  margin: 0 0 14px;
  color: var(--ff-primary);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ff-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.ff-hero h1 span {
  color: var(--ff-primary);
}

.ff-hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ff-muted);
  font-size: 19px;
  line-height: 1.55;
}

.ff-hero .ff-actions {
  margin-top: 30px;
}

.ff-microcopy {
  margin: 14px 0 0;
  color: var(--ff-muted);
  font-size: 14px;
}

.ff-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.ff-hero__facts li,
.ff-chip-grid span,
.ff-integration-rows span,
.ff-field-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--ff-text);
  background: rgba(238, 244, 247, 0.9);
  border: 1px solid var(--ff-border);
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.ff-hero__visual {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ff-pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.ff-pipeline::before {
  content: "";
  position: absolute;
  inset: 50% 14% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ff-cyan), transparent);
}

.ff-pipeline__step,
.ff-feature,
.ff-split__pane,
.ff-price,
.ff-scenario-grid article,
.ff-faq-list details {
  min-width: 0;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
}

.ff-pipeline__step {
  position: relative;
  z-index: 1;
  padding: 18px;
  box-shadow: var(--ff-shadow);
}

.ff-pipeline__step span,
.ff-feature span,
.ff-step-list span {
  color: var(--ff-primary);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.ff-pipeline__step strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.ff-pipeline__step p {
  margin: 7px 0 12px;
  color: var(--ff-muted);
  font-size: 13px;
}

.ff-pipeline__step em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  color: var(--ff-mint-dark);
  background: rgba(46, 230, 166, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ff-feed-panel,
.ff-code-card,
.ff-rule-builder {
  color: #eaf2f8;
  background: var(--ff-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ff-radius-lg);
  box-shadow: 0 20px 54px rgba(7, 17, 31, 0.14);
}

.ff-feed-panel {
  overflow: hidden;
}

.ff-feed-panel__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 13px 16px;
  color: #8ea3b5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ff-feed-panel__bar span {
  width: 9px;
  height: 9px;
  background: #2f4054;
  border-radius: 50%;
}

pre {
  margin: 0;
  overflow: auto;
}

code {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.ff-feed-panel pre,
.ff-code-card pre,
.ff-rule-builder pre {
  padding: 18px;
}

.ff-section {
  padding: 88px 40px;
}

.ff-section__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.ff-section__head--wide {
  max-width: 980px;
  text-align: center;
  margin-inline: auto;
}

.ff-section h2,
.ff-final h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.ff-section__head p:not(.ff-eyebrow),
.ff-final__copy p,
.ff-feature p,
.ff-scenario-grid p,
.ff-price p,
.ff-step-list p,
.ff-faq-list p {
  color: var(--ff-muted);
  line-height: 1.55;
}

.ff-section__head p:not(.ff-eyebrow) {
  margin: 16px 0 0;
  font-size: 18px;
}

.ff-demo {
  padding-top: 74px;
}

.ff-demo__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ff-demo__tabs button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--ff-muted);
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 999px;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
}

.ff-demo__tabs button.is-active {
  color: #fff;
  background: var(--ff-primary);
  border-color: var(--ff-primary);
}

.ff-slider-shell {
  position: relative;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(7, 17, 31, 0.06);
}

.ff-slider-panel {
  position: relative;
}

.ff-slider-panel[hidden] {
  display: none;
}

.ff-comparison {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--ff-surface-2);
  border-radius: 18px;
  --divider-width: 2px;
  --divider-color: #ffffff;
  --divider-shadow: 0 0 0 1px rgba(23, 70, 162, 0.22);
  --default-handle-width: 64px;
  --default-handle-color: #1746a2;
  --default-handle-opacity: 1;
  --default-handle-shadow: 0 12px 36px rgba(23, 70, 162, 0.22);
  --keyboard-transition-time: 120ms;
  --default-transition-time: 120ms;
}

.ff-comparison img {
  width: 100%;
  height: auto;
}

.ff-comparison--square {
  max-width: 760px;
  margin-inline: auto;
}

.ff-comparison-labels {
  position: absolute;
  inset: 18px 18px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.ff-comparison-labels span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ff-text);
  background: rgba(238, 244, 247, 0.92);
  border: 1px solid rgba(216, 226, 234, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.ff-comparison-labels span:last-child {
  color: var(--ff-mint-dark);
  background: rgba(46, 230, 166, 0.18);
  border-color: rgba(46, 230, 166, 0.36);
}

.ff-demo__note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: 18px;
  align-items: start;
  margin: 20px auto 0;
  max-width: 1060px;
}

.ff-demo__note span {
  color: var(--ff-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.ff-demo__note p {
  margin: 0;
  color: var(--ff-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ff-demo .ff-actions {
  margin-top: 24px;
}

.ff-noscript-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ff-problem {
  padding-top: 56px;
}

.ff-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ff-value,
.ff-merchant,
.ff-integrations {
  max-width: none;
  background: var(--ff-surface-2);
}

.ff-feature-grid,
.ff-price-grid,
.ff-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ff-feature,
.ff-scenario-grid article,
.ff-price {
  padding: 22px;
}

.ff-feature h3,
.ff-scenario-grid h3,
.ff-price h3,
.ff-step-list h3,
.ff-split h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.18;
}

.ff-diff,
.ff-split,
.ff-creative__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ff-code-card {
  padding-top: 18px;
  overflow: hidden;
}

.ff-code-card--light {
  color: var(--ff-text);
  background: #fff;
  border-color: var(--ff-border);
}

.ff-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-left: 18px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.ff-status--warning {
  color: #8a5600;
  background: rgba(255, 176, 32, 0.16);
}

.ff-status--success {
  color: var(--ff-mint-dark);
  background: rgba(46, 230, 166, 0.16);
}

.ff-product-preview {
  min-height: 360px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(23, 70, 162, 0.92), rgba(7, 17, 31, 0.94)),
    url("../img/feedflow/sliders/catalog-after.jpg") center / cover;
  border-radius: 20px;
  display: grid;
  align-content: end;
}

.ff-product-preview span,
.ff-product-preview em {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.ff-product-preview span {
  color: var(--ff-mint-dark);
  background: rgba(46, 230, 166, 0.82);
}

.ff-product-preview strong {
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.05;
}

.ff-product-preview p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
}

.ff-product-preview em {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.ff-field-list {
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 20px;
}

.ff-rule-builder {
  overflow: hidden;
}

.ff-rule-builder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ff-rule-builder__actions span {
  margin-right: auto;
  color: #8ea3b5;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.ff-rule-builder__actions button {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.ff-split__pane {
  padding: 24px;
}

.ff-split__pane--mint {
  border-color: rgba(46, 230, 166, 0.48);
  background: linear-gradient(180deg, #fff, rgba(46, 230, 166, 0.08));
}

.ff-split ul,
.ff-price ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.ff-split li,
.ff-price li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  color: var(--ff-muted);
}

.ff-split li::before,
.ff-price li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--ff-mint);
  border-radius: 50%;
}

.ff-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ff-metrics span {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 18px;
  color: var(--ff-muted);
}

.ff-metrics strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ff-text);
  font-size: 36px;
  line-height: 1;
}

.ff-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.ff-step-list li {
  padding: 0 18px 0 0;
  border-right: 1px solid var(--ff-border);
}

.ff-step-list li:last-child {
  border-right: 0;
}

.ff-integration-rows {
  display: grid;
  gap: 14px;
}

.ff-integration-rows p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 18px;
}

.ff-integration-rows strong {
  min-width: 120px;
}

.ff-price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ff-price {
  display: grid;
  align-content: start;
}

.ff-price--featured {
  border-color: rgba(23, 70, 162, 0.38);
  box-shadow: var(--ff-shadow);
}

.ff-price a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  margin-top: 18px;
  color: #fff;
  background: var(--ff-primary);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.ff-faq-list {
  display: grid;
  gap: 12px;
}

.ff-faq-list details {
  padding: 18px 20px;
}

.ff-faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.ff-final {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 72px 40px;
  margin-bottom: 24px;
  color: #fff;
  background: var(--ff-ink);
  border-radius: 0;
}

.ff-final__copy p {
  color: rgba(255, 255, 255, 0.72);
}

.ff-final .ff-eyebrow {
  color: var(--ff-mint);
}

.ff-lead-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  color: var(--ff-text);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-field,
.lead-check {
  display: grid;
  gap: 7px;
}

.lead-field span,
.lead-check span {
  color: var(--ff-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.lead-field input,
.lead-field textarea,
.lead-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ff-text);
  background: var(--ff-base);
  border: 1px solid var(--ff-border);
  border-radius: 10px;
  outline: 0;
}

.lead-field textarea {
  min-height: 96px;
  padding-top: 11px;
  resize: vertical;
}

.lead-field input:focus,
.lead-field textarea:focus,
.lead-field select:focus {
  border-color: var(--ff-cyan);
  box-shadow: 0 0 0 3px rgba(22, 199, 232, 0.13);
}

.lead-form__checks {
  display: grid;
  gap: 10px;
}

.lead-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
}

.lead-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ff-primary);
}

.lead-check span {
  color: var(--ff-muted);
  font-weight: 600;
  line-height: 1.4;
}

.lead-check a {
  color: var(--ff-primary);
  font-weight: 800;
}

.lead-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-field__error,
.lead-form__status.is-error {
  color: var(--ff-error);
}

.lead-field.has-error input,
.lead-field.has-error textarea,
.lead-field.has-error select {
  border-color: var(--ff-error);
}

.lead-form__status[hidden] {
  display: none;
}

.lead-form__status.is-success {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 14px;
  color: var(--ff-mint-dark);
  background: rgba(46, 230, 166, 0.12);
  border: 1px solid rgba(46, 230, 166, 0.34);
  border-radius: 12px;
}

.lead-form__status-icon {
  width: 30px;
  height: 30px;
  background: var(--ff-mint);
  border-radius: 50%;
}

.lead-form__status-copy {
  display: grid;
  gap: 3px;
}

.lead-form__status-copy span {
  color: var(--ff-muted);
}

.ff-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  padding: 36px 40px 48px;
  color: var(--ff-muted);
  border-top: 1px solid var(--ff-border);
}

.ff-footer strong {
  color: var(--ff-text);
}

.ff-footer nav {
  display: grid;
  gap: 8px;
}

.ff-footer a {
  color: var(--ff-primary);
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(520px, calc(100vw - 36px));
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 16px;
  box-shadow: var(--ff-shadow);
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--ff-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner__text a {
  color: var(--ff-primary);
  font-weight: 800;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button-small {
  min-height: 38px;
  padding: 0 12px;
}

.ff-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.ff-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ff-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 901px) {
  .ff-pipeline__step:nth-child(2),
  .ff-pipeline__step:nth-child(4) {
    transform: translateY(18px);
  }
}

@media (max-width: 1240px) {
  .ff-header {
    padding-inline: 24px;
  }

  .ff-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 54px 28px 48px;
  }

  .ff-hero h1 {
    font-size: 58px;
  }

  .ff-hero__visual {
    display: none;
  }

  .ff-demo {
    padding-top: 44px;
  }

  .ff-feature-grid,
  .ff-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ff-step-list li {
    border-right: 0;
    border-top: 1px solid var(--ff-border);
    padding-top: 18px;
  }
}

@media (max-width: 900px) {
  .ff-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 20px;
  }

  .ff-menu-toggle {
    display: inline-grid;
    gap: 4px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: #fff;
    border: 1px solid var(--ff-border);
    border-radius: 12px;
  }

  .ff-menu-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--ff-text);
    border-radius: 99px;
  }

  .ff-nav,
  .ff-header__actions {
    position: fixed;
    left: 16px;
    right: 16px;
    display: none;
    background: #fff;
    border: 1px solid var(--ff-border);
    box-shadow: var(--ff-shadow);
  }

  .ff-nav {
    top: 76px;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 16px 16px 0 0;
  }

  .ff-nav a {
    padding: 12px;
  }

  .ff-header__actions {
    top: 314px;
    z-index: 71;
    grid-template-columns: 1fr;
    padding: 12px;
    border-top: 0;
    border-radius: 0 0 16px 16px;
  }

  .ff-header.is-open .ff-nav,
  .ff-header.is-open .ff-header__actions {
    display: grid;
  }

  .ff-hero h1 {
    font-size: 54px;
  }

  .ff-hero {
    padding: 46px 24px 42px;
  }

  .ff-section h2,
  .ff-final h2 {
    font-size: 38px;
  }

  .ff-section {
    padding: 70px 24px;
  }

  .ff-demo__note,
  .ff-diff,
  .ff-split,
  .ff-creative__layout,
  .ff-final {
    grid-template-columns: 1fr;
  }

  .ff-final {
    padding: 62px 24px;
  }

  .ff-feature-grid,
  .ff-price-grid,
  .ff-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ff-metrics {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .ff-hero {
    padding: 34px 16px 34px;
  }

  .ff-hero h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .ff-hero__lead {
    font-size: 16px;
  }

  .ff-actions,
  .ff-header__actions {
    align-items: stretch;
  }

  .ff-actions .ff-button,
  .ff-header__actions .ff-button,
  .lead-form__submit {
    width: 100%;
  }

  .ff-pipeline,
  .ff-feature-grid,
  .ff-price-grid,
  .ff-scenario-grid,
  .ff-step-list,
  .lead-form__grid {
    grid-template-columns: 1fr;
  }

  .ff-pipeline::before {
    inset: 12% auto 12% 22px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--ff-cyan), transparent);
  }

  .ff-pipeline__step {
    padding-left: 48px;
  }

  .ff-section {
    padding: 54px 16px;
  }

  .ff-section h2,
  .ff-final h2 {
    font-size: 30px;
  }

  .ff-section__head p:not(.ff-eyebrow) {
    font-size: 16px;
  }

  .ff-slider-shell {
    padding: 10px;
    border-radius: 18px;
  }

  .ff-comparison {
    border-radius: 12px;
    --default-handle-width: 54px;
  }

  .ff-comparison-labels {
    inset: 10px 10px auto;
  }

  .ff-comparison-labels span {
    min-height: 30px;
    max-width: 48%;
    padding: 0 9px;
    font-size: 11px;
  }

  .ff-demo__tabs {
    justify-content: stretch;
  }

  .ff-demo__tabs button {
    flex: 1;
  }

  .ff-product-preview {
    min-height: 290px;
  }

  .ff-product-preview strong {
    font-size: 28px;
  }

  .ff-rule-builder__actions {
    display: grid;
  }

  .ff-rule-builder__actions span {
    margin-right: 0;
  }

  .ff-lead-form {
    padding: 16px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .ff-header {
    padding-inline: 14px;
  }

  .ff-hero__facts li {
    min-height: 30px;
    font-size: 12px;
  }

  code {
    font-size: 12px;
  }

  .ff-feed-panel pre,
  .ff-code-card pre,
  .ff-rule-builder pre {
    padding: 14px;
  }

  .ff-integration-rows p {
    display: grid;
  }

  .ff-integration-rows strong {
    min-width: 0;
  }
}
