/* =========================================================
   iFood + Selfit — landing page
   Cores, imagens e textos do Figma; layout adaptado para web
   (container de 1200px, mobile first).
   ========================================================= */

:root {
  /* Cores do Figma */
  --red: #da291c;
  --red-ifood: #ea1d2c;
  --red-bright: #ed0000;
  --red-btn-dark: #b41c12;
  --red-plan: #b0060a;
  --ink: #1c1c1c;
  --text: #353a48;
  --text-soft: #5a5a5a;
  --label: #3b332d;
  --nav: #6f6f6f;
  --bg: #f5f5f5;
  --form-bg: #d9d9d9;
  --white: #ffffff;

  /* Fonte única do site: Rubik (Google Fonts) */
  --f-head: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Rubik", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

main { overflow-x: clip; }
main > section { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* =========================================================
   COMPONENTES
   ========================================================= */

/* Botões (fonte condensada, como no Figma) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn--red    { background: var(--red); color: var(--white); }
.btn--dark   { background: var(--red-btn-dark); color: var(--white); }
.btn--white  { background: var(--white); color: var(--red); border-color: var(--red); }
.btn--block  { width: 100%; }
.btn--square { border-radius: 8px; }

/* Etiqueta "Melhor oferta" */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--white);
  color: var(--red-bright);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--lg {
  padding: 5px 18px;
  font-size: 14px;
}

/* Lista com check vermelho */
.checklist li {
  position: relative;
  padding-left: 1.5em;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Títulos de seção */
.section-title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
}

.section-title--light { color: var(--white); }

.section-text {
  margin-top: 12px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-soft);
}

.section-text--light { color: #eed8d8; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-ifood  { height: 33px; width: auto; }
.logo-selfit { height: 46px; width: auto; }

/* Logos em SVG inline: vetor nítido em qualquer tela/zoom */
.logo-ifood,
.logo-selfit,
.hero__badge { display: block; overflow: visible; }

.menu-toggle { display: none; }

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.menu-btn span {
  height: 3px;
  border-radius: 2px;
  background: var(--red);
  transition: transform .2s ease, opacity .2s ease;
}

.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.nav a {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: var(--f-head);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--nav);
  transition: color .15s ease;
}

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

.nav .nav__cta {
  margin-top: 16px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  text-align: center;
}

.nav .nav__cta:hover { color: var(--white); filter: brightness(1.08); }

.menu-toggle:checked ~ .nav { display: flex; }
.menu-toggle:checked + .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle:checked + .menu-btn span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
}

.hero__bg {
  position: absolute;
  top: -40%;
  left: -5%;
  width: 110%;
  max-width: none;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-top: 36px;
}

.hero__title img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  max-width: 380px;
}

/* Composição da foto: moldura + academia + entregador.
   Proporções tiradas do Figma (área de 1416 x 775). */
.hero__media {
  position: relative;
  aspect-ratio: 1416 / 775;
  margin: 0 calc(-1 * var(--gutter));
}

.hero__media img,
.hero__media svg {
  position: absolute;
  max-width: none;
}

/* posições = bounding boxes das camadas no Figma (exportadas com use_absolute_bounds) */
.hero__frame  { left: 0;      top: 23.35%; width: 111.23%; }
.hero__gym    { left: 2.45%;  top: 27.73%; width: 105.25%; }
.hero__person { left: 7.63%;  top: 0;      width: 61.58%; z-index: 1; }
.hero__badge  { left: 66.7%; top: 6.5%;  width: 25.3%; height: auto; z-index: 1; }

/* =========================================================
   OFERTAS
   ========================================================= */
.offers {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}

.offers__person { display: none; }

.offers__title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}

.offers__title em {
  font-size: 1.45em;
  font-weight: 900;
  font-style: italic;
  color: var(--red);
}

.offers__grid {
  display: grid;
  gap: 28px;
  max-width: 300px;
  margin: 40px auto 0;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 20px 28px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 16px;
}

.offer-card__tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
}

.offer-card__title {
  font-weight: 900;
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
}

.offer-card__text {
  margin: 16px 0 20px;
  font-size: 16px;
  line-height: 1.2;
}

.offer-card__btn {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter .15s ease;
}

.offer-card__btn:hover { filter: brightness(1.1); }

/* =========================================================
   SELFPASS 7 DIAS
   ========================================================= */
.selfpass {
  overflow: hidden;
  padding-top: 56px;
}

.selfpass__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 56px;
}

.selfpass__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.selfpass__kicker {
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--red-ifood);
}

.selfpass__title {
  margin-top: 12px;
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
}

.selfpass__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.35;
}

.selfpass__media {
  position: relative;
  margin-top: 20px;
}

.selfpass__img {
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  margin-left: calc(-1 * var(--gutter));
}

.selfpass__checklist {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  font-family: var(--f-head);
  font-size: 13px;
  color: #3b332c;
}

.selfpass__checklist li + li { margin-top: 8px; }

/* Formulário */
.form {
  padding: 24px 20px;
  background: var(--form-bg);
  border-radius: 8px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 12px;
}

@media (min-width: 480px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__field { margin-bottom: 14px; }

.form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--label);
}

.form input,
.form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--white);
  font-size: 15px;
  color: var(--label);
}

.form input::placeholder { color: #c4c4c4; }

.form select {
  appearance: none;
  color: #85807b;
  background-image: linear-gradient(45deg, transparent 50%, #85807b 50%),
                    linear-gradient(135deg, #85807b 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, .2);
}

.form__submit {
  height: 58px;
  margin-top: 4px;
  border-radius: 12px;
  font-style: italic;
  font-size: 19px;
  letter-spacing: .5px;
}

.form__submit:disabled { opacity: .7; cursor: wait; }

.form__status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  background: #fdecea;
  color: #a1170c;
}

.form__status--ok { background: #e7f6ec; color: #1d6b38; }

.form__status ul { margin: 6px 0 0 18px; font-weight: 400; }

.form__legal {
  margin-top: 12px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  color: #a3a3a3;
}

/* =========================================================
   PLANO INFINITY
   ========================================================= */
.plan {
  padding: 56px 0;
  background: var(--red-plan);
  color: var(--white);
}

.plan .section-title br { display: none; }

.plan__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.price-card {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--red);
  border-radius: 16px;
  text-align: center;
}

.price-card__tag {
  position: absolute;
  top: -11px;
  left: 32px;
}

.price-card__from {
  font-size: 16px;
  text-transform: uppercase;
}

.price-card__price {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
  font-weight: 900;
  line-height: .8;
}

.price-card__currency { margin: 6px 8px 0 0; font-size: 30px; }
.price-card__value    { font-size: 84px; letter-spacing: -1px; }
.price-card__cents    { font-size: 40px; }

.price-card__note {
  margin: 14px 0 22px;
  font-size: 13px;
  text-transform: uppercase;
}

.price-card .btn {
  height: 56px;
  padding: 0 12px;
  font-size: 16px;
}

.plan__benefits {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--red);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.5;
}

.plan__benefits .checklist li::before { color: #ff2a1a; filter: brightness(1.2); }
.plan__benefits li + li { margin-top: 6px; }

/* =========================================================
   UNIDADES
   ========================================================= */
.units { padding: 56px 0 72px; }

.search {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  max-width: 600px;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 1.5px solid #d9d6d6;
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
}

.search input::placeholder { color: #b5b5b5; }
.search input:focus { outline: none; border-color: var(--red); }

.search button {
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--bg);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease;
}

.search button:hover { filter: brightness(1.08); }

.units__count {
  margin: 20px 0 16px 4px;
  font-size: 15px;
  color: var(--text-soft);
}

.units__grid {
  display: grid;
  gap: 24px;
}

.unit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 16px;
}

.unit-card__media { position: relative; }

.unit-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 342;
  object-fit: cover;
  border-radius: 14px;
  background: #2a2a2a;
}

.unit-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.unit-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 22px;
}

.unit-card__city {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--red);
}

.unit-card__name {
  margin-top: 2px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.unit-card__address {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-soft);
}

.unit-card__hours {
  flex: 1;
  margin: 6px 0 18px;
  font-size: 12px;
  color: #8a8a8a;
}

.unit-card__btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 5px;
  background: var(--red-bright);
  color: var(--bg);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter .15s ease;
}

.unit-card__btn:hover { filter: brightness(1.1); }

/* Busca e "Carregar mais" controlados por script.js */
.unit-card[hidden] { display: none; }

.units__empty {
  padding: 32px 0;
  font-size: 16px;
  color: var(--text-soft);
}

/* Botão secundário: contorno, discreto, para não competir com os CTAs */
.units__more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px auto 0;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.units__more span { font-size: 16px; line-height: 1; }

.units__more:hover {
  background: var(--ink);
  color: var(--white);
}

.units__more:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.units__more[hidden],
.units__empty[hidden] { display: none; }


/* =========================================================
   TABLET (>= 768px)
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .hero__actions { flex-direction: row; max-width: none; }

  .offers__title { font-size: 28px; }
  .offers__grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; gap: 20px; align-items: stretch; }

  .section-title { font-size: 32px; }
  .section-text { font-size: 17px; }

  .selfpass__title { font-size: 34px; }
  .selfpass__kicker { font-size: 30px; }
  .form { max-width: 600px; padding: 28px; }

  .plan .section-title br { display: inline; }
  .plan__benefits { grid-template-columns: 1.15fr 1fr; gap: 24px; padding: 28px 32px; }

  .units__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   DESKTOP (>= 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 24px; --header-h: 88px; }

  /* Header */
  .logo-ifood  { height: 43px; }
  .logo-selfit { height: 59px; }
  .header__logos { gap: 20px; }

  .menu-btn { display: none; }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .nav a { padding: 0; border: 0; font-size: 15px; }

  .nav .nav__cta {
    margin: 0 0 0 8px;
    padding: 12px 28px;
    font-size: 15px;
  }

  /* Hero: texto à esquerda, foto sangrando até a borda direita */
  .hero__inner {
    grid-template-columns: 440px 1fr;
    align-items: end;
    gap: 0;
    padding-top: 0;
  }

  .hero__content { align-self: center; padding: 48px 0 64px; }
  .hero__title img { max-width: 440px; }

  /* Botões lado a lado; podem avançar sobre a foto, como no Figma */
  .hero__content { position: relative; z-index: 2; }
  .hero__actions { flex-wrap: nowrap; width: max-content; gap: 16px; }
  .btn { height: 54px; font-size: 16px; }

  .hero__media {
    margin: 32px calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter))) 0 -40px;
  }

  /* Ofertas: entregadores nas laterais */
  .offers { padding: 72px 0 88px; }
  .offers__title { font-size: 32px; }
  .offers__grid { grid-template-columns: repeat(2, 236px); justify-content: center; align-items: stretch; gap: 24px; max-width: none; margin-top: 48px; }
  .offer-card { padding: 32px 20px 40px; }
  /* mesma altura de texto nos dois cards: botões alinhados */
  .offer-card__text { min-height: calc(4 * 1.2em); }

  /* Entregadores por cima dos cards (a mão/celular avança ~30px sobre
     o 1º e o 3º card, como no Figma). Grid de cards = 800px centrado. */
  .offers .container { position: relative; z-index: 1; }

  .offers__person {
    display: none;
    position: absolute;
    z-index: 2;
    height: auto;
    max-width: none;
    pointer-events: none;
  }

  /* grid de 2 cards = 496px centrado; fotos ocupam o espaço lateral e avançam um pouco sobre os cards */
  .offers__person--left  { bottom: -70px; width: 450px; left: calc(50% - 248px + 10px - 450px); }
  .offers__person--right { bottom: -70px; width: 440px; left: calc(50% + 248px - 50px); }

  /* Selfpass: conteúdo + foto à esquerda, formulário à direita */
  .selfpass { padding-top: 64px; }

  .selfpass__inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 0;
  }

  .selfpass__title { font-size: 38px; }
  .selfpass__text { max-width: 560px; }

  /* Foto maior, vazando por cima do topo da seção do Plano */
  .selfpass {
    position: relative;
    z-index: 2;
    overflow-x: clip;
    overflow-y: visible;
  }

  .selfpass__media {
    margin-top: -150px;
    top: 100px; /* desloca a foto para baixo: ela avança sobre a próxima seção */
  }

  .selfpass__img {
    width: calc(100% + 260px);
    margin-left: -320px;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28));
  }

  .selfpass__checklist {
    position: absolute;
    z-index: 1;
    top: 16%;
    right: 0;
    margin: 0;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  }

  .form { max-width: none; margin-bottom: 64px; padding: 32px 32px 24px; }

  /* Plano: espaço extra no topo para a foto que vaza da seção anterior */
  .plan { position: relative; z-index: 1; padding: 180px 0 88px; }
  .section-title { font-size: 40px; }

  .plan__grid {
    grid-template-columns: 400px 1fr;
    align-items: stretch; /* os dois boxes com a mesma altura */
    margin-top: 44px;
  }

  .plan__benefits { align-content: center; padding: 32px 40px; font-size: 18px; }

  /* Unidades */
  .units { padding: 72px 0 96px; }
  .units__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: #bdbdbd;
  font-size: 15px;
}

.footer__inner {
  display: grid;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer__logo {
  display: block;
  width: 220px;
  height: auto;
}

.footer__about {
  margin-top: 18px;
  max-width: 340px;
  line-height: 1.5;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--white);
}

.footer__col li + li { margin-top: 10px; }

.footer__col a {
  transition: color .15s ease;
}

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

.footer__cta { justify-self: start; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  font-size: 13px;
  color: #8a8a8a;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr auto;
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .footer__brand { grid-column: auto; }
}

/* Entregadores só aparecem quando há espaço lateral suficiente */
@media (min-width: 1200px) {
  .offers__person { display: block; }
  .offers { padding-bottom: 150px; }

  /* Transição entre seções: faixa vermelha com topo inclinado
     (mesma diagonal do hero) por trás dos entregadores */
  .offers::before,
  .offers::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }

  .offers::before {
    height: 84px;
    background: var(--red-btn-dark);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  }

  .offers::after {
    height: 72px;
    background: var(--red);
    clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
  }
}

/* Mobile/tablet: foto do hero maior, vazando por cima da seção de ofertas */
@media (max-width: 1023px) {
  .hero {
    z-index: 2;
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero__bg {
    top: 0;
    height: 100%;
    object-fit: cover;
  }

  .hero__media {
    width: calc(100% + 2 * var(--gutter) + 48px);
    margin-left: calc(-1 * var(--gutter) - 32px);
    margin-top: -40px;
    top: 56px; /* quanto a foto avança sobre a próxima seção */
  }

  /* entregador cortado na base da moldura (a foto é mais alta que ela) */
  .hero__person { clip-path: inset(0 0 15.7% 0); }

  .offers { padding-top: 150px; }
}

/* Mobile/tablet: entregadores lado a lado entre o título e os cards,
   com o primeiro card cobrindo a base das fotos */
@media (max-width: 1199px) {
  .offers {
    display: grid;
    grid-template-columns: 1fr minmax(0, 160px) minmax(0, 160px) 1fr;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .offers .container { display: contents; }

  .offers__title { grid-column: 1 / -1; grid-row: 1; }

  .offers__person {
    display: block;
    grid-row: 2;
    align-self: end;
    width: calc(100% + 24px);
    max-width: none;
    height: auto;
    margin-top: 24px;
    pointer-events: none;
  }

  .offers__person--left  { grid-column: 2; justify-self: end; }
  .offers__person--right { grid-column: 3; justify-self: start; }

  .offers__grid {
    grid-column: 1 / -1;
    grid-row: 3;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: -64px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .offers { grid-template-columns: 1fr minmax(0, 230px) minmax(0, 230px) 1fr; }
  .offers__grid { margin-top: -90px; }
}

/* Mobile/tablet: na seção Selfpass a foto vai para o fim, depois do formulário */
@media (max-width: 1023px) {
  .selfpass__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
  }

  .selfpass__main,
  .selfpass__media { display: contents; }

  .selfpass__checklist { order: 1; margin-top: 20px; }
  .form               { order: 2; margin-top: 28px; }
  .selfpass__img      { order: 3; margin-top: 32px; }

  /* foto avança sobre o topo da seção do Plano */
  .selfpass {
    position: relative;
    z-index: 2;
    overflow-x: clip;
    overflow-y: visible;
  }

  .selfpass__img {
    position: relative;
    top: 64px;
    margin-top: -72px;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28));
  }

  .plan { position: relative; z-index: 1; padding-top: 112px; }
}

/* Mobile/tablet: mesmo separador (faixa vermelha inclinada) entre Ofertas e Selfpass */
@media (max-width: 1199px) {
  .offers { padding-bottom: 120px; }

  .offers::before,
  .offers::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }

  .offers::before {
    height: 60px;
    background: var(--red-btn-dark);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  }

  .offers::after {
    height: 50px;
    background: var(--red);
    clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
  }
}


/* Unidades: navegação do carrossel (só aparece no mobile) */
.units__nav { display: none; }

@media (max-width: 767px) {
  .units__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .units__grid::-webkit-scrollbar { display: none; }

  .unit-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .units__more { display: none; }

  .units__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
  }

  .units__nav[hidden] { display: none; }

  .units__arrow {
    width: 44px;
    height: 44px;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--white);
    color: var(--red);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
  }

  .units__arrow:hover { background: var(--red); color: var(--white); }
  .units__arrow:disabled { opacity: .35; cursor: default; background: var(--white); color: var(--red); }
}

/* Celular: botões longos cabem na largura (texto menor e pode quebrar linha) */
@media (max-width: 479px) {
  .form__submit,
  .price-card .btn {
    height: auto;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
}


/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-bottom: 72px; background: var(--bg); }

.faq__banner {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
}

.faq__mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 220px;
  line-height: 1;
  color: #c41a17;
  pointer-events: none;
  user-select: none;
}

.faq__mark--left  { left: -40px; }
.faq__mark--right { right: -30px; }

.faq__banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.faq__outline {
  display: none;
  font-weight: 700;
  font-size: 150px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.faq__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
}

.faq__subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: #f5f5f5;
}

.faq__body { padding-top: 56px; }

.faq__heading {
  font-weight: 700;
  font-size: 26px;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

.faq__heading span { color: var(--red); }

.faq__grid {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 32px auto 0;
  align-items: start;
}

.faq__item {
  border-radius: 8px;
  background: #e6e5e5;
  transition: background-color .15s ease;
}

.faq__item[open] { background: var(--white); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }

.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 52px 16px 22px;
  font-weight: 500;
  font-size: 17px;
  color: #717171;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 26px;
  color: var(--red);
  transition: transform .2s ease;
}

.faq__item[open] summary { color: var(--ink); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }

.faq__item p {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .faq__grid { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .faq__title { font-size: 44px; }
  .faq__heading { font-size: 32px; }
  .faq__mark { font-size: 300px; }
}

@media (min-width: 1024px) {
  .faq { padding-bottom: 96px; }
  .faq__banner-inner { justify-content: center; gap: 56px; padding-top: 48px; padding-bottom: 48px; }
  .faq__outline { display: block; }
  .faq__title { font-size: 56px; }
  .faq__subtitle { font-size: 18px; }
  .faq__body { padding-top: 72px; }
  .faq__heading { font-size: 38px; }
  .faq__mark { font-size: 380px; }
}
