/* =========================================================
   Food Delivery App Development Services — the sections added
   2026-11-03 (definition, business-model table, how-to steps,
   Uber Eats build-like cards, tech stack pills, revenue models,
   cost table). The page's original sections keep their own
   styles; everything here is fd- prefixed so nothing collides.
   Palette from variable.css: brand red #ec2024, red tile #fdecec.
   common.css already gives every <section> 90px vertical padding.
   ========================================================= */

.fd-tint {
  background: #fafafa;
}

/* ---------- EXTRACTABLE DEFINITION ---------- */
.fd-def {
  background: var(--white-bg);
  border: 1px solid var(--border-grey-three);
  border-left: 4px solid var(--red-bg);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 10px 34px rgba(17, 17, 17, .05);
}

.fd-def-lead {
  color: var(--text-black);
  font-size: 19px;
  line-height: 34px;
  font-weight: 500;
}

.fd-def-body {
  color: var(--text-black-two);
  font-size: 16.5px;
  line-height: 31px;
}

/* ---------- SHARED CARD ---------- */
.fd-card {
  background: var(--white-bg);
  border: 1px solid var(--border-grey-three);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.fd-card:hover {
  border-color: var(--border-red);
  box-shadow: 0 10px 30px rgba(17, 17, 17, .07);
  transform: translateY(-3px);
}

.fd-rev-num {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--border-red);
  opacity: .4;
}

/* ---------- TABLES ---------- */
.fd-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-grey-three);
  border-radius: 16px;
  background: var(--white-bg);
}

.fd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.fd-table th,
.fd-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  font-size: 15.5px;
  line-height: 26px;
  color: var(--text-black-two);
  border-bottom: 1px solid var(--border-grey-three);
}

.fd-table thead th {
  background: #fafafa;
  color: var(--text-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fd-table tbody tr:last-child td {
  border-bottom: 0;
}

.fd-table tbody tr:hover td {
  background: #fcfcfc;
}

.fd-table strong {
  color: var(--text-black);
  font-weight: 600;
}

.fd-note-inline {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 14px;
  line-height: 23px;
  color: var(--text-red);
}

/* ---------- PILLS ---------- */
.fd-pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-grey-three);
  background: #fafafa;
  color: var(--text-black-two);
  font-size: 14px;
  white-space: nowrap;
}

.fd-pill--red {
  background: #fdecec;
  border-color: #f6c9ca;
  color: var(--text-red);
  font-weight: 600;
}

/* ---------- HOW-TO STEPS (vertical rail) ---------- */
.fd-steps {
  position: relative;
}

.fd-steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-grey-three);
}

.fd-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 30px;
}

.fd-step:last-child {
  padding-bottom: 0;
}

.fd-step-num {
  position: relative;
  z-index: 1;
  flex: 0 0 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdecec;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-grey-three);
  color: var(--text-red);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- TECH STACK GROUPS ---------- */
.fd-groups {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border-grey-three);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-grey-three);
}

.fd-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--white-bg);
  padding: 20px 24px;
}

.fd-group-name {
  flex: 0 0 170px;
  color: var(--text-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fd-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- NOTE ---------- */
.fd-note {
  background: #fff;
  border: 1px dashed var(--border-grey-three);
  border-radius: 12px;
  padding: 22px 26px;
  color: var(--text-black-two);
  font-size: 16px;
  line-height: 30px;
}

/* explore-white-icon.svg has no intrinsic size and renders 28px if left alone */
.fd-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767.98px) {
  .fd-group {
    gap: 12px;
  }

  .fd-group-name {
    flex: 0 0 100%;
  }

  /* tables become labelled stacked rows rather than a sideways scroll */
  .fd-table,
  .fd-table tbody,
  .fd-table tr,
  .fd-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .fd-table thead {
    display: none;
  }

  .fd-table tbody tr {
    border-bottom: 1px solid var(--border-grey-three);
    padding: 6px 0;
  }

  .fd-table tbody tr:last-child {
    border-bottom: 0;
  }

  .fd-table td {
    border-bottom: 0;
    padding: 10px 18px;
  }

  .fd-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-red);
    margin-bottom: 4px;
  }
}

@media (max-width: 575.98px) {
  .fd-def {
    padding: 24px 20px;
  }

  .fd-def-lead {
    font-size: 17px;
    line-height: 30px;
  }

  .fd-def-body {
    font-size: 15.5px;
    line-height: 28px;
  }

  .fd-card {
    padding: 22px 18px;
  }

  .fd-steps::before {
    left: 19px;
  }

  .fd-step {
    gap: 16px;
  }

  .fd-step-num {
    flex: 0 0 40px;
    height: 40px;
    font-size: 13px;
  }
}
