/* Homepage — Figma: Anasayfa — v7 (111:661) · mobile (114:738) */

/* =========================================================
   Hero — Figma 111:663 · mobile 114:753
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate; /* keeps the backdrop (z-index -1) inside the hero */
  overflow: clip; /* bleeding screen/cards and the tall backdrop stay inside the hero */
  padding: var(--space-40) 0 var(--space-56);
  background: linear-gradient(180deg, var(--color-surface-page) 0%, var(--color-brand-tint) 100%);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.hero__eyebrow {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-brand-primary);
}
.hero__title {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}
.hero__lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Backdrop: desktop/tablet only (the mobile design has a plain gradient) */
.hero__backdrop { display: none; }

/* Mobile: full-width M-size buttons stacked (component renders L; size adjusted here) */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: calc(var(--space-28) - var(--space-16));
}
.hero__actions .btn {
  height: 46px;
  min-height: 46px;
  padding-inline: var(--space-20);
  font-size: 15px;
  letter-spacing: -0.002em;
}

/* ---------- Stage (mobile) ----------
   Figma bleeds the screen off the right edge; here it fits the column so
   tab labels and screen text are never cut. Only the AI card sits on top. */
.hero__stage-wrap {
  margin-top: var(--space-28);
  padding-inline: var(--gutter);
}
.hero__stage {
  position: relative;
  height: 314px;
}
.hero__slot { position: absolute; }
.hero__slot--screen { top: 0; left: 0; right: 0; }
.hero__slot--screen .screenshot {
  --screenshot-radius: 8px;
  box-shadow: 0 0.5px 1.5px rgba(21, 33, 43, 0.05), 0 20px 40px -4px rgba(30, 86, 195, 0.16);
}
.hero__slot--ai { top: 110px; right: 0; }
.hero__slot--ai .ai-card { zoom: 0.62; }
.hero__slot--notification,
.hero__slot--counter,
.hero__slot--stat { display: none; }

/* ---------- Metrics ---------- */
.hero__metrics {
  display: flex;
  margin-top: var(--space-28);
}
.hero__metrics .metric { flex: 1 1 0; }
.hero__metrics .metric:first-child { padding-left: 0; }

/* ---------- Tablet (768–1023): mobile hero, Figma Anasayfa — tablet 768 › Hero (361:6750) ----------
   Buttons side by side, a 560 px rotating screen (no tab bar) with the AI card on its right edge */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__title { font-size: 44px; }
  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: var(--space-24);
    min-height: 100px;
  }
  .hero__actions .btn { height: 56px; min-height: 56px; }
  .hero__actions .btn--text { padding-inline: 0; }

  .hero__stage { height: 420px; }
  .hero__slot--screen { top: var(--space-24); right: auto; width: 560px; }
  .hero__slot--ai { top: 220px; }
  .hero .product-tour__bar { display: none; }
}

/* =========================================================
   Hero — desktop (≥ 1024; tablet uses the mobile hero)
   ========================================================= */
@media (min-width: 1024px) {
  .hero { padding: 88px 0 74px; }

  /* ---------- Backdrop: rings + dots (1512×1260, centered at the top) ---------- */
  .hero__backdrop {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    width: 1512px;
    height: 1260px;
    margin-left: -756px;
    pointer-events: none;
  }
  .hero__dots {
    position: absolute;
    inset: 0;
    background: url("../../img/patterns/hero-dots.svg") center / 1512px 1260px no-repeat;
  }
  .hero__rings {
    position: absolute;
    inset: 0;
    overflow: visible;
  }
  .hero__ring {
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Load: dots spread outward from the rings' center (756, 760) */
  .js .hero__dots {
    -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 var(--dots-reveal), transparent calc(var(--dots-reveal) + 25%));
    mask-image: radial-gradient(circle at 50% 60%, #000 var(--dots-reveal), transparent calc(var(--dots-reveal) + 25%));
    animation: hero-dots-in 2.4s var(--ease-out-soft) 0.2s both;
  }

  /* Load: rings ripple out one after another, then breathe slowly (out of sync) */
  .js .hero__ring {
    animation:
      hero-ring-in 1.6s var(--ease-out-soft) calc(var(--ring) * 0.2s) both,
      hero-ring-breathe 9s ease-in-out calc(1.6s + var(--ring) * 1.5s) infinite alternate;
  }
}

@property --dots-reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
@keyframes hero-dots-in {
  from { --dots-reveal: -25%; opacity: 0; }
  to   { --dots-reveal: 100%; opacity: 1; }
}
@keyframes hero-ring-in {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes hero-ring-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__dots,
  .js .hero__ring { animation: none; -webkit-mask-image: none; mask-image: none; }
}

@media (min-width: 1024px) {

  .hero__text {
    align-items: center;
    gap: var(--space-24);
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
  }
  .hero__eyebrow { font-size: 15px; line-height: normal; }
  .hero__title {
    font-size: 64px;
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
  }
  .hero__lead {
    max-width: 620px;
    font-size: 20px;
    line-height: 1.55;
    letter-spacing: -0.005em;
  }
  .hero__actions {
    flex-direction: row;
    gap: var(--space-28);
    margin-top: 0;
  }
  .hero__actions .btn {
    height: 56px;
    min-height: 56px;
    padding-inline: var(--space-24);
    font-size: 17px;
    letter-spacing: -0.003em;
  }
  .hero__actions .btn--text { padding-inline: 0; }

  /* Stage: Figma coordinates, relative to the 1264×618 box
     (screen 1000 wide at 124/56; cards around it). Centered, then
     shifted 32 px left as in the design. Zoomed down below 1344 px. */
  .hero__stage-wrap {
    display: flex;
    justify-content: center;
    margin-top: 23px;
  }
  .hero__stage {
    flex-shrink: 0;
    left: -32px;
    width: 1264px;
    height: 618px;
  }
  .hero__slot--screen { top: 56px; left: 124px; right: auto; width: 1000px; }
  .hero__slot--screen .screenshot {
    --screenshot-radius: 16px;
    box-shadow: var(--shadow-screen);
  }
  .hero__slot--notification { display: block; top: 204px; left: 0; }
  .hero__slot--counter { display: block; top: 0; left: 824px; }
  .hero__slot--stat { display: block; top: 534px; left: 84px; }
  .hero__slot--ai { top: 184px; right: auto; left: 944px; }
  .hero__slot--ai .ai-card { zoom: 1; }

  .hero__metrics {
    justify-content: center;
    margin-top: 106px;
  }
  .hero__metrics .metric { flex: 0 0 auto; }
  .hero__metrics .metric:first-child { padding-left: var(--space-40); }
}

/* =========================================================
   Problems — Figma 113:745 · mobile 114:861
   Mobile: heading above a single list · Tablet (Figma 361:6767): list in 2 columns
   Desktop (≥ 1280): heading left (420), list right in 2 columns
   ========================================================= */
.problems { background: var(--color-surface-page); }

.problems__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

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

@media (min-width: 768px) and (max-width: 1023px) {
  .problems__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
}

@media (min-width: 1024px) {
  .problems__inner { gap: var(--space-56); }
  .problems__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-56) var(--space-48);
  }
}

@media (min-width: 1280px) {
  .problems__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-96);
  }
  .problems__inner > :first-child { flex: 0 0 420px; }
  .problems__list { flex: 1 1 0; }
}

/* =========================================================
   Unify: scattered tools → one record — Figma 111:2990
   Mobile (no Figma design): tools in a 2×2 grid, lines fan down into
   the record card. ≥ 1024: Figma composition, scaled below 1280.
   Motion: tools settle in, lines appear and their dashes flow toward
   the record card, then the record's rows fill in one by one.
   ========================================================= */
.unify {
  overflow: clip;
  padding-block: var(--space-72) 80px;
  background: var(--color-surface-page);
}

.unify__title {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}
.unify__before {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-disabled);
}
.unify__after {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}
.unify__after em {
  font-style: normal;
  color: var(--color-brand-primary);
}

.unify__lines line {
  stroke: var(--color-border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}

/* ---------- Mobile stage ---------- */
.unify__stage-wrap {
  margin-top: var(--space-40);
  padding-inline: var(--gutter);
}
.unify__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  max-width: 400px;
  margin-inline: auto;
}
.unify__tool {
  min-width: 0;
  transform: rotate(var(--r));
}
.unify__tool .tool-card {
  display: flex;
  width: 100%;
}
.unify__tool .tool-card__text { min-width: 0; }
.unify__tool .tool-card__meta { overflow: hidden; text-overflow: ellipsis; }

.unify__lines--wide { display: none; }
.unify__lines--narrow {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.unify__record { grid-column: 1 / -1; }
.unify__record .record-card { width: 100%; }

.js .unify__tool {
  opacity: 0;
  transform: translateY(-12px) rotate(calc(var(--r) * 3));
  transition:
    opacity 700ms var(--ease-out-soft),
    transform 900ms var(--ease-out-soft);
  transition-delay: calc(var(--i) * 100ms);
}
.js .unify__stage.is-revealed .unify__tool {
  opacity: 1;
  transform: rotate(var(--r));
}

/* ---------- Motion shared by both layouts ---------- */
.js .unify__lines line {
  opacity: 0;
  transition: opacity 600ms var(--ease-standard);
  transition-delay: calc(400ms + var(--i) * 100ms);
}
.js .unify__stage.is-revealed .unify__lines line {
  opacity: 1;
  animation: unify-flow 0.8s linear infinite; /* dashes travel toward the record */
}

.js .unify__record {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 800ms var(--ease-out-soft),
    transform 800ms var(--ease-out-soft);
  transition-delay: 700ms;
}
.js .unify__stage.is-revealed .unify__record { opacity: 1; transform: none; }

.js .unify__record .record-card__row {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 500ms var(--ease-out-soft),
    transform 500ms var(--ease-out-soft);
}
.js .unify__record .record-card__row:nth-child(1) { transition-delay: 1000ms; }
.js .unify__record .record-card__row:nth-child(2) { transition-delay: 1150ms; }
.js .unify__record .record-card__row:nth-child(3) { transition-delay: 1300ms; }
.js .unify__record .record-card__row:nth-child(4) { transition-delay: 1450ms; }
.js .unify__stage.is-revealed .record-card__row { opacity: 1; transform: none; }

/* ---------- ≥ 1024: Figma composition (1020×257), zoomed down below 1280 ---------- */
@media (min-width: 1024px) {
  .unify { padding-block: var(--space-96); }

  .unify__before { font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; }
  .unify__after { font-size: 44px; line-height: 1.08; }

  .unify__stage-wrap {
    display: flex;
    justify-content: center;
    margin-top: 55px;
  }
  .unify__stage {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 1020px;
    max-width: none;
    height: 257px;
    margin-inline: 0;
  }

  .unify__lines--narrow { display: none; }
  .unify__lines--wide {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .unify__tool {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) rotate(var(--r));
  }
  .unify__tool .tool-card { display: inline-flex; width: auto; }

  .unify__record {
    position: absolute;
    top: 35.5px;
    left: 680px;
  }
  .unify__record .record-card { width: 340px; }

  .js .unify__tool {
    transform: translate(-50%, -50%) translateX(-24px) rotate(calc(var(--r) * 3));
  }
  .js .unify__stage.is-revealed .unify__tool {
    transform: translate(-50%, -50%) rotate(var(--r));
  }
}

/* Desktop: full type sizes; the composition sits slightly left of center (Figma) */
@media (min-width: 1280px) {
  .unify__before { font-size: 40px; }
  .unify__after { font-size: 52px; }
  .unify__stage { left: -46px; }
}

@keyframes unify-flow {
  from { stroke-dashoffset: 10; }
  to   { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .unify__lines line { animation: none; }
}

/* =========================================================
   Same lead, two endings — Figma 111:4078
   ≥ 1280: Figma board (1320×700), zoomed to fit if the screen is narrower.
   Below 1280: each lane stacks as a vertical timeline.
   Motion: time runs left → right; each day's cards appear in both lanes
   together, links fade (grey) or draw (blue); the two endings land together.
   ========================================================= */
.endings {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle, rgba(30, 86, 195, 0.07) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    var(--color-surface-page);
}

.endings__board-wrap {
  margin-top: var(--space-40);
  padding-inline: var(--gutter);
}

/* ---------- Narrow: stacked lanes ---------- */
.endings__board {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  max-width: 480px;
  margin-inline: auto;
}
.endings__axis,
.endings__links { display: none; }

.endings__lane {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-24) var(--space-20);
  border: 1px solid var(--color-border-divider);
  border-radius: var(--radius-xl);
  background: var(--color-surface-page);
  box-shadow: var(--shadow-card-soft);
}
.endings__lane--crm { background: var(--color-surface-subtle); }

/* .endings prefix: outranks the base `ol[role="list"] { padding: 0 }` reset */
.endings .endings__events {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin: 0;
  padding: 0 0 0 var(--space-16);
  border-left: 2px dashed var(--color-border-strong);
  list-style: none;
}
.endings__lane--crm .endings__events { border-left-style: solid; border-left-color: var(--color-brand-primary); }

.endings__event {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.endings__when {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.endings__event .timeline-card { max-width: 100%; }
.endings__event .timeline-card__head,
.endings__event .timeline-card__table th,
.endings__event .timeline-card__table td { white-space: normal; }

.endings__frame {
  max-width: 480px;
  margin-inline: auto;
}
.endings__note {
  margin-top: var(--space-16);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ---------- Motion (both layouts) ---------- */
.js .endings__event {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 600ms var(--ease-out-soft),
    transform 700ms var(--ease-out-soft);
  transition-delay: calc(var(--i) * 180ms);
}
.js .endings__lane--crm .endings__event { transition-delay: calc(900ms + var(--i) * 180ms); }
.js .endings__board.is-revealed .endings__event { opacity: 1; transform: none; }

.js .endings__board.is-revealed .timeline-card--success {
  animation: endings-glow 1.6s var(--ease-standard) 1900ms 1 both;
}
@keyframes endings-glow {
  0%   { box-shadow: 0 1px 2px rgba(21, 33, 43, 0.05), 0 12px 28px rgba(30, 86, 195, 0.1); }
  40%  { box-shadow: 0 0 0 6px rgba(3, 174, 102, 0.16), 0 12px 28px rgba(3, 174, 102, 0.18); }
  100% { box-shadow: 0 1px 2px rgba(21, 33, 43, 0.05), 0 12px 28px rgba(30, 86, 195, 0.1); }
}

/* ---------- ≥ 1280: Figma board ---------- */
@media (min-width: 1280px) {
  .endings { padding-bottom: 76px; }

  .endings__board-wrap {
    display: flex;
    justify-content: center;
    margin-top: 76px;
  }
  .endings__frame {
    flex-shrink: 0;
    width: 1320px;
    max-width: none;
  }
  .endings__board {
    display: block;
    position: relative;
    width: 1320px;
    max-width: none;
    height: 700px;
    overflow: hidden;
    border: 1px solid var(--color-border-divider);
    border-radius: var(--radius-xl);
    background:
      /* column dividers at x 250 / 520 / 790 / 1060, below the axis row */
      linear-gradient(var(--color-border-divider), var(--color-border-divider)) 250px 64px / 1px 636px no-repeat,
      linear-gradient(var(--color-border-divider), var(--color-border-divider)) 520px 64px / 1px 636px no-repeat,
      linear-gradient(var(--color-border-divider), var(--color-border-divider)) 790px 64px / 1px 636px no-repeat,
      linear-gradient(var(--color-border-divider), var(--color-border-divider)) 1060px 64px / 1px 636px no-repeat,
      var(--color-surface-page);
    box-shadow: var(--shadow-card-soft);
  }

  .endings__axis {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    height: 64px;
    border-bottom: 1px solid var(--color-border-divider);
  }
  .endings__axis span {
    position: absolute;
    top: 24px;
    left: var(--x);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
  }
  .endings__axis b {
    margin-right: var(--space-6);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
  }

  .endings__links {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .endings__link { stroke-width: 2; }
  .endings__link--today { stroke: var(--color-border-strong); stroke-dasharray: 4 6; }
  .endings__link--crm { stroke: var(--color-brand-primary); }

  .endings__lane {
    position: absolute;
    left: 0;
    right: 0;
    display: block;
    height: 318px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .endings__lane--today { top: 64px; }
  .endings__lane--crm {
    top: 382px;
    border-top: 1px solid var(--color-border-divider);
    background: rgba(238, 243, 249, 0.45); /* canvas tint over the column dividers */
  }
  .endings__lane .lane-header {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 180px;
  }

  .endings .endings__events {
    position: static;
    padding: 0;
    border: 0;
  }
  .endings__event {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: var(--w);
  }
  .endings__when { display: none; }
  .endings__event .timeline-card { width: 100%; }
  .endings__event .timeline-card__head,
  .endings__event .timeline-card__table th,
  .endings__event .timeline-card__table td { white-space: nowrap; }
  .endings__event .timeline-card--dark { width: auto; }

  .endings__note { margin-top: var(--space-16); }

  /* Time runs left → right: each card and link appears at its day (--at, set per item from its x) */
  .js .endings__event,
  .js .endings__lane--crm .endings__event { transition-delay: calc(200ms + var(--at)); }

  .js .endings__link--today {
    opacity: 0;
    transition: opacity 500ms var(--ease-standard);
    transition-delay: calc(200ms + var(--at));
  }
  .js .endings__link--crm {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 500ms var(--ease-out-soft);
    transition-delay: calc(200ms + var(--at));
  }

  /* The two endings land together: loss badge pops, the order card glows */
  .js .endings__board.is-revealed .timeline-card--success { animation-delay: 3000ms; }
  .js .timeline-card__badge-error { transform: scale(0.85); opacity: 0; transition: transform 400ms var(--ease-out-soft), opacity 400ms; transition-delay: 3000ms; }
  .js .endings__board.is-revealed .timeline-card__badge-error { transform: none; opacity: 1; }
  .js .endings__board.is-revealed .endings__link--today { opacity: 1; }
  .js .endings__board.is-revealed .endings__link--crm { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .endings__board.is-revealed .timeline-card--success { animation: none; }
}

/* =========================================================
   Modules (bento) — Figma 111:6415 · mobile 114:882
   Mobile: one column of text cards · Tablet: 2 columns
   Desktop (≥ 1280): 805 + 371 / 3 × 384 / full-width FinCo Flow
   ========================================================= */
.modules { background: var(--color-surface-page); }

.modules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-32);
}

/* Tablet (Figma 361:6774): text cards in 2 columns on a subtle background */
@media (min-width: 768px) and (max-width: 1023px) {
  .modules { background: var(--color-surface-subtle); }
  .modules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-16); }
  .modules .feature-card { padding: var(--space-24) var(--space-40); border-radius: 20px; }
}

@media (min-width: 1024px) {
  .modules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
    margin-top: var(--space-48);
  }
  .modules__c360,
  .modules__flow { grid-column: 1 / -1; }

  /* Screenshot widths from Figma (share of the card's inner width) */
  .modules__c360 .feature-card__media { width: 78%; }
  .modules__script .feature-card__media { width: 93%; }
  .modules__ai .feature-card__media { width: 102px; }

  /* Campaign ROI: big number */
  .modules__roi {
    flex-direction: column;
    gap: var(--space-12);
    margin-top: auto;
  }
  .modules__roi-card .feature-card__body { height: 100%; }
  .modules__roi-card .feature-card__title { max-width: 190px; }
  .modules__roi-value {
    font-size: 96px;
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--color-text-inverse);
  }
  .modules__roi-caption {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--color-text-inverse-secondary);
  }

  /* FinCo Flow: text + three rules */
  .modules__rules {
    flex-direction: column;
    gap: var(--space-12);
    margin-top: var(--space-12);
  }
}

@media (min-width: 1280px) {
  .modules__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .modules__c360 { grid-column: span 8; height: 460px; }
  .modules__pipeline { grid-column: span 4; height: 460px; }
  .modules__script,
  .modules__roi-card,
  .modules__ai { grid-column: span 4; height: 340px; }
  .modules__flow { grid-column: 1 / -1; }

  .modules__c360 .feature-card__media { width: 575px; }
  .modules__script .feature-card__media { width: 299px; }

  .modules__flow { padding: var(--space-32); }
  /* Text column (300) on the left, the three rules centered on the right */
  .modules__flow .feature-card__body {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    column-gap: var(--space-48);
    row-gap: var(--space-12);
  }
  .modules__flow .feature-card__head { grid-column: 1; justify-content: flex-start; gap: var(--space-12); }
  .modules__flow .feature-card__title { white-space: nowrap; } /* as in Figma: title + tag on one line */
  .modules__flow .feature-card__text { grid-column: 1; }
  .modules__flow .modules__rules {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: row;
    gap: var(--space-16);
    margin-top: 0;
  }
  .modules__flow .automation-rule { flex: 1 1 0; }
}

/* Rules appear one after another once the card is revealed */
.js .modules__flow .automation-rule {
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  transition: opacity 500ms var(--ease-out-soft), transform 500ms var(--ease-out-soft);
}
.js .modules__flow .automation-rule:nth-child(1) { transition-delay: 500ms; }
.js .modules__flow .automation-rule:nth-child(2) { transition-delay: 650ms; }
.js .modules__flow .automation-rule:nth-child(3) { transition-delay: 800ms; }
.js .modules__flow.is-revealed .automation-rule { opacity: 1; transform: none; }

/* =========================================================
   Return on investment — Figma 111:6593 · mobile 114:917
   Mobile: heading, scenario rows, calculator, full-width button (page background)
   Desktop (≥ 1280): text column 440 + calculator, on a faint 48 px grid (canvas)
   ========================================================= */
.roi { background: var(--color-surface-page); }

.roi__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-32);
}
.roi__intro { display: flex; flex-direction: column; gap: var(--space-32); }

.roi__cta-desktop { display: none; }

/* Tablet (Figma 361:6801): bigger scenario numbers, button as wide as its text */
@media (min-width: 768px) and (max-width: 1023px) {
  .roi .metric--horizontal .metric__value { font-size: 44px; }
  .roi .roi__cta-mobile { width: auto; }
}

@media (min-width: 1024px) {
  /* Figma "Background pattern · Izgara": 1 px lines every 48 px, 5% brand blue */
  .roi {
    background-color: var(--color-surface-canvas);
    background-image:
      linear-gradient(to right, rgba(30, 86, 195, 0.05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(30, 86, 195, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: 12px 0;
  }

  .roi__grid { gap: var(--space-48); }
  .roi__intro { gap: var(--space-20); }

  /* Heading in this section is the 40 px display style, not the 52 px section title */
  .roi .roi__heading { max-width: 520px; }
  .roi .roi__heading .section-heading__title {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .roi .roi__heading .section-heading__description { line-height: 1.6; letter-spacing: -0.003em; }
  .roi__scenarios { max-width: 520px; }

  /* Desktop row reads as one sentence: no "Gelire oranı ·" prefix (as in Figma) */
  .roi__ratio .metric__label { display: none; }
  .roi__ratio .metric__description::before { content: none; }

  .roi__calculator { width: 100%; max-width: 680px; }

  .roi__cta-desktop { display: inline-flex; }
  .roi__cta-mobile { display: none; }
  .roi__cta { margin-top: calc(var(--space-20) - var(--space-48)); }
}

@media (min-width: 1280px) {
  .roi__grid {
    grid-template-columns: 440px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".     calculator"
      "intro calculator"
      "cta   calculator"
      ".     calculator";
    column-gap: var(--space-80, 80px);
    row-gap: 0;
  }
  .roi__intro { grid-area: intro; }
  .roi__cta { grid-area: cta; margin-top: var(--space-20); }
  .roi__calculator { grid-area: calculator; max-width: none; }
  .roi .roi__heading,
  .roi__scenarios { max-width: none; }
}

/* =========================================================
   Ecosystem — Figma 111:6704 · mobile 115:860
   Mobile: heading + text list (FinCo CRM first)
   Tablet (Figma 361:6809): the mobile text list in 2 × 2 columns
   1024–1279: 2 × 2 product columns with visuals + integrations strip
   Desktop (≥ 1280): journey stepper over four columns, as in Figma
   ========================================================= */
.ecosystem { background: var(--color-surface-page); }

.ecosystem__tag,
.ecosystem__journey,
.ecosystem__integrations { display: none; }

.ecosystem__products {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-32);
}
.ecosystem .product-column--featured { order: -1; }

@media (min-width: 768px) and (max-width: 1023px) {
  .ecosystem__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-24); }
}

@media (min-width: 1024px) {
  .ecosystem { background: var(--color-brand-tint); }

  .ecosystem__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-40);
  }
  .ecosystem__tag { display: inline-flex; flex-shrink: 0; border-radius: var(--radius-sm); }

  .ecosystem .ecosystem__heading { max-width: 640px; gap: var(--space-16); }
  .ecosystem .ecosystem__heading .section-heading__title { font-weight: 700; letter-spacing: -0.025em; }
  .ecosystem .ecosystem__heading .section-heading__description { font-size: 20px; line-height: 1.55; letter-spacing: -0.005em; }

  .ecosystem__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-40) var(--space-24);
    margin-top: var(--space-48);
  }
  .ecosystem .product-column--featured { order: 0; }

  .ecosystem__integrations { display: block; margin-top: var(--space-48); }
}

@media (min-width: 1280px) {
  .ecosystem__journey { display: block; margin-top: var(--space-48); }
  .ecosystem__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--space-48);
  }
  .integrations-strip { flex-wrap: nowrap; }
}

/* =========================================================
   Plans — Figma 111:6811 · mobile 115:761
   Mobile/tablet: stacked cards · ≥ 1024: three columns
   ========================================================= */
.pricing { background: var(--color-surface-canvas); }

.pricing__plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  margin-top: var(--space-32);
}
.pricing__note {
  margin-top: var(--space-32);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Tablet (Figma 361:6836): the mobile cards, 560 px wide and centred, with a 44 px user count */
@media (min-width: 768px) and (max-width: 1023px) {
  .pricing__plans { max-width: 560px; margin-inline: auto; }
  .pricing .plan-card__count { font-size: 44px; line-height: 1.1; }
}

@media (min-width: 1024px) {
  .pricing__plans {
    max-width: 560px;
    margin: var(--space-56) auto 0;
    gap: var(--space-24);
  }
  .pricing__note { margin-top: var(--space-56); text-align: center; }
}

@media (min-width: 1024px) {
  .pricing__plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    max-width: none;
  }
}

/* =========================================================
   Comparison — Figma 111:6908 · mobile 115:933
   ========================================================= */
.comparison { background: var(--color-surface-page); }
.comparison__table { margin-top: var(--space-32); }

@media (min-width: 1024px) {
  .comparison__table { margin-top: var(--space-56); }
}

/* =========================================================
   Wiki teaser — Figma 111:6985 · mobile 115:889
   Mobile: heading, scaled wiki window, full-width button (tint background)
   Desktop (≥ 1280): text 440 + dotted preview 696
   ========================================================= */
.wiki-teaser { background: var(--color-brand-tint); }

.wiki-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-32);
}
.wiki-teaser__tag,
.wiki-teaser__cta-desktop { display: none; }

/* Tablet (Figma 361:6853): the window spans the column, button as wide as its text */
@media (min-width: 768px) and (max-width: 1023px) {
  .wiki-teaser .wiki-preview__stage { width: 100%; }
  .wiki-teaser__cta-mobile .btn { width: auto; }
}

@media (min-width: 1024px) {
  .wiki-teaser { background: var(--color-surface-page); }
  .wiki-teaser__grid { gap: var(--space-48); }
  .wiki-teaser__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }

  .wiki-teaser .wiki-teaser__heading { max-width: 520px; gap: var(--space-24); }
  .wiki-teaser__tag { display: inline-flex; align-self: flex-start; border-radius: var(--radius-sm); }
  .wiki-teaser .wiki-teaser__heading .section-heading__title {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .wiki-teaser .wiki-teaser__heading .section-heading__description { line-height: 1.6; letter-spacing: -0.003em; }

  .wiki-teaser__cta-desktop { display: inline-flex; }
  .wiki-teaser__cta-mobile { display: none; }
}

@media (min-width: 1280px) {
  .wiki-teaser__grid {
    grid-template-columns: 440px minmax(0, 696px);
    justify-content: space-between;
    align-items: center;
    gap: var(--space-64);
  }
  .wiki-teaser .wiki-teaser__heading { max-width: none; }
}

/* =========================================================
   Quote form — Figma 111:7810 · mobile 115:1014
   Desktop (≥ 1280): intro 440 + form card
   ========================================================= */
.quote { background: var(--color-surface-page); }

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-32);
}
.quote__intro { display: flex; flex-direction: column; gap: var(--space-32); }
.quote__benefits { display: flex; flex-direction: column; gap: var(--space-8); }

/* Tablet (Figma 361:6887): benefits in 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .quote__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
}

@media (min-width: 1024px) {
  .quote__grid { gap: var(--space-48); }
  .quote__intro { gap: var(--space-24); }
  .quote__benefits { gap: 0; max-width: 560px; }

  .quote .quote__heading { max-width: 560px; gap: var(--space-24); }
  .quote .quote__heading .section-heading__title {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .quote .quote__heading .section-heading__description { line-height: 1.6; letter-spacing: -0.003em; }
}

@media (min-width: 1280px) {
  .quote__grid {
    grid-template-columns: 440px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-80, 80px);
  }
}
