/* Sofá House · Home: seções depois da Hero
   Só layout e composição. Aparência dos elementos vem de components.css. */

/* ============ Do seu jeito ============ */
.custom { background: var(--paper-light); }
.custom .section__head { margin-bottom: var(--s-10); }
.custom__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 40px); }
.custom__media { position: relative; margin: 0 0 var(--s-5); aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-md); background: var(--paper-deep); }
.custom__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.custom__media--size img { object-position: 50% 60%; }
/* Régua de largura sob o sofá */
.custom__ruler {
  position: absolute; z-index: 1; left: 4%; right: 8%; bottom: 8%; height: 12px;
  border: 1.5px solid var(--paper); border-width: 0 1.5px;
  background: linear-gradient(var(--paper), var(--paper)) center / 100% 1.5px no-repeat;
}
.custom__media--size::after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(14, 40, 80, 0.4)); pointer-events: none; }
.custom__swatches li, .foam__tag {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-bold);
}
.custom__swatches { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.custom__swatches li { display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px 12px 4px 4px; }
.custom__swatches li img { width: 24px; height: 24px; border-radius: 50%; }
.custom__topic { display: block; margin-bottom: var(--s-2); font-size: var(--fs-card); font-weight: var(--fw-bold); letter-spacing: 0; }
.custom__number { display: block; }
.custom__value { margin-top: var(--s-1); font-size: var(--fs-title); font-weight: var(--fw-bold); line-height: 1.1; letter-spacing: -0.02em; }
.custom__text { margin-top: var(--s-3); max-width: 36ch; color: var(--ink-soft); line-height: 1.5; }
.custom__cta { margin-top: var(--s-10); }

/* Espumas: a mesma foto nas duas densidades, com divisória arrastável */
/* Tablet: cada possibilidade vira uma linha (mídia ao lado do texto) para não empilhar três fotos enormes */
@media (min-width: 600px) and (max-width: 900px) {
  .custom .custom__grid { gap: var(--s-8); }
  .custom__item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: var(--s-6); }
  .custom .custom__media { grid-column: 1; grid-row: 1 / -1; aspect-ratio: 4 / 3; margin: 0; }
  .custom__value, .custom__text { grid-column: 2; }
  .custom__value { grid-row: 2 / 4; }
  .custom__text { grid-row: 4; }
  .custom .custom__cta .btn { width: auto; }
}

.foam { --pos: 50%; touch-action: pan-y; }
.foam img { position: absolute; inset: 0; }
.foam__top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.foam__line { position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.foam__knob {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--paper); color: var(--ink); box-shadow: 0 4px 14px rgba(14, 40, 80, 0.25);
  transition: transform var(--dur-fast) var(--ease);
}
.foam:hover .foam__knob, .foam__range:focus-visible ~ .foam__line .foam__knob { transform: translate(-50%, -50%) scale(1.08); }
.foam__range:focus-visible ~ .foam__line .foam__knob { outline: 2px solid var(--ink); outline-offset: 2px; }
.foam__tag { position: absolute; z-index: 1; top: var(--s-4); display: inline-flex; gap: 6px; pointer-events: none; }
.foam__tag i { font-style: normal; font-weight: var(--fw-medium); color: var(--ink-soft); }
.foam__tag--a { left: var(--s-4); }
.foam__tag--b { right: var(--s-4); }
.foam__range { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* Ícone do destino nos botões: seta para página, WhatsApp para conversa */
.ico-wa { display: none; flex: none; }
.ico-wa.is-on, .is-wa .ico-wa { display: block; order: -1; }
.is-wa .ico-go { display: none; }

/* ============ Fabricação (editorial) ============ */
/* Três etapas no mesmo recorte e escala; no celular, a primeira fica acima das outras duas. */
.craft .section__head { max-width: 1160px; margin-inline: auto; margin-bottom: var(--s-8); }
.craft__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--s-6); max-width: 1160px; margin-inline: auto; }
.craft__side { display: contents; }
.craft__item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; margin: 0; }
.craft__img { position: relative; align-self: end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--paper-deep); }
.craft__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.craft__item:hover .craft__img img { transform: scale(1.03); }
.craft__tag { position: absolute; left: var(--s-3); top: var(--s-3); padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(245, 240, 232, 0.92); font-size: var(--fs-caption); font-weight: var(--fw-medium); color: var(--ink); }
.craft__item figcaption { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; row-gap: 4px; padding-top: var(--s-5); font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-soft); }
.craft__item figcaption span { font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: 1.6; }
.craft__item figcaption b { font-size: var(--fs-card); color: var(--ink); }
.craft__item figcaption p { grid-column: 2; max-width: 34ch; }

/* ============ Como funciona (fundo azul) ============ */
/* Passos à esquerda; à direita, a própria mensagem que vai para a loja, num cartão claro. */
.how { border-top: 0; overflow: hidden; }
.how__head { max-width: 1320px; margin: 0 auto var(--s-8); }
.how__head .h2 { max-width: 28ch; }
.how__head .section__lede { max-width: 64ch; }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 4vw, 80px); max-width: 1320px; margin-inline: auto; }
.how__copy { max-width: 540px; }
.how__copy .section__lede { max-width: 460px; }
.how__steps { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.how__steps li { position: relative; padding-bottom: var(--s-4); }
.how__steps li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -8px; width: 2px; background: rgba(233, 227, 216, 0.22); transition: background var(--dur-fast); }
.how__steps li[data-step-state='complete']::before { background: var(--paper); }
.how__trigger { display: flex; align-items: flex-start; gap: var(--s-4); width: 100%; min-height: var(--tap); padding: 4px 0; border: 0; border-radius: var(--radius-md); background: none; color: var(--paper); text-align: left; cursor: pointer; }
.how__trigger:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
.how__n { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 2px solid rgba(233, 227, 216, 0.3); border-radius: 50%; font-size: var(--fs-small); font-weight: var(--fw-bold); color: rgba(233, 227, 216, 0.8); transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.how__steps [data-step-state='current'] .how__n, .how__steps [data-step-state='complete'] .how__n { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.how__steps [data-step-state='current'] .how__n { box-shadow: 0 0 0 4px rgba(233, 227, 216, 0.12); }
.how__check { display: none; }
.how__steps [data-step-state='complete'] .how__check { display: block; }
.how__steps [data-step-state='complete'] .how__number { display: none; }
.how__step-copy { display: grid; gap: 6px; padding-top: 3px; }
.how__steps b { font-size: var(--fs-card); line-height: 1.3; }
.how__description { max-width: 34ch; font-size: var(--fs-ui); line-height: 1.5; color: rgba(233, 227, 216, 0.76); }
.how__trigger:hover .how__step-copy b { text-decoration: underline; text-underline-offset: 4px; }
.how__action { display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-6); padding-top: var(--s-8); border-top: 1px solid rgba(245, 240, 232, 0.16); }
.how__hint { font-size: var(--fs-small); line-height: 1.45; color: rgba(245, 240, 232, 0.72); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
/* Mensagem de orçamento: o texto real enviado à loja, sem simular um celular */
.msg { --ink-soft: #4a5872; --line: rgba(14, 40, 80, 0.14); justify-self: center; width: 100%; max-width: 460px; border-radius: var(--radius-md); background: var(--paper-light); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }
.msg { margin: 0; }
.msg__head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); background: #edf3eb; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.msg__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-light); }
.msg__avatar img { width: 32px; height: 32px; object-fit: contain; }
.msg__identity { display: grid; gap: 2px; font-size: var(--fs-ui); line-height: 1.3; }
.msg__head .store-change { font-size: var(--fs-small); min-height: var(--tap); }
.msg__title { font-size: var(--fs-small); color: var(--ink-soft); }
.msg__to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-2); font-size: var(--fs-card); }
/* Balão de conversa: lê como mensagem enviada, não como formulário */
.msg__bubble {
  position: relative; margin: var(--s-6) var(--s-6) var(--s-5) var(--s-10);
  padding: var(--s-4) var(--s-5); border-radius: 14px 14px 4px 14px;
  background: #e3f1df; color: var(--ink); font-size: 17px; line-height: 1.5;
}
.msg__bubble::after {
  content: ''; position: absolute; right: -7px; bottom: 0; width: 12px; height: 12px;
  background: inherit; clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.msg__foot { display: grid; gap: var(--s-3); padding: 0 var(--s-6) var(--s-6); }
.msg__foot .btn { width: 100%; }
.msg__hint { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); text-align: center; }

/* ============ Avaliações: composição inspirada em Testimonial of Students ============ */
.reviews { background: var(--paper); border-top: 0; }
.reviews .section__head, .stores .section__head { margin-bottom: var(--s-8); max-width: 1160px; margin-inline: auto; }
.stars { display: inline-flex; gap: 2px; color: #e8a317; }
.reviews__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-6); max-width: 1160px; margin-inline: auto; }
.reviews__list { display: contents; margin: 0; padding: 0; list-style: none; }
.review { grid-column: span 2; display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: var(--s-6); border: var(--border); border-radius: 10px; background: var(--paper-light); }
.review[data-review-index='3'] { grid-column: 2 / span 2; }
.review[data-review-index='4'] { grid-column: 4 / span 2; }
.review__quote { height: 36px; font-family: Georgia, serif; font-size: 72px; line-height: 0.95; font-weight: bold; color: var(--ink); }
.review blockquote { flex: 1; margin: 0; font-size: var(--fs-ui); line-height: 1.55; color: var(--ink-soft); }
.review__who { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: center; align-items: center; gap: 2px var(--s-3); margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-soft); }
.review__who .review__avatar { display: grid; place-items: center; grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: var(--fs-ui); font-weight: var(--fw-bold); }
.review__who b { grid-column: 2; font-size: var(--fs-card); color: var(--ink); }
.review__who > span:not(.review__avatar) { grid-column: 2; }
.review__who a { color: inherit; text-underline-offset: 3px; }
/* Área de toque de 44 px de altura sem mudar o layout (padding compensado por margem negativa) */
.review__who a, .store__rating { display: inline-block; padding: 14px 4px; margin: -14px -4px; }
.review__who a:hover { color: var(--ink); }
.reviews__nav { display: none; }
.reviews__note { max-width: 1160px; margin: var(--s-6) auto 0; font-size: var(--fs-small); color: var(--ink-soft); }

/* ============ Lojas ============ */
/* Lista de cidades à esquerda; fachadas e mapa à direita, na mesma altura. Tocar numa loja mostra ela no mapa. */
.stores { background: var(--paper-deep); }
.stores__hint { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ink-soft); }
.stores__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-2); padding: var(--s-2); border-radius: calc(var(--radius-md) + 6px); background: var(--paper-light); }
.stores__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.store { border-top: 1px solid var(--line); border-radius: var(--radius-md); transition: background var(--dur-fast) var(--ease); }
.store:first-child, .store.is-active, .store.is-active + .store { border-top-color: transparent; }
.store.is-active { background: var(--paper); box-shadow: inset 3px 0 0 var(--accent); }
.store__pick { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; padding: var(--s-4) var(--s-5); border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.store__pick:hover .store__city { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.store__pick:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: var(--radius-md); }
.store__city { flex: 1; font-size: clamp(18px, 1.3vw, 22px); font-weight: var(--fw-bold); line-height: 1.15; letter-spacing: -0.02em; }
.store__city small { font-size: var(--fs-small); font-weight: var(--fw-medium); letter-spacing: 0; color: var(--ink-soft); }
.store__score { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-small); }
.store__score svg { color: #e8a317; }
.store__chev { flex: none; color: var(--ink-soft); transition: transform var(--dur-fast) var(--ease); }
.store.is-active .store__chev { transform: rotate(180deg); }
.store__detail { display: grid; gap: var(--s-3); padding: 0 var(--s-5) var(--s-5); }
.store__detail[hidden] { display: none; }
.store__addr { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.store__addr.is-soon { font-weight: var(--fw-medium); color: var(--ink); }
.store__rating { justify-self: start; font-size: var(--fs-small); color: var(--ink-soft); text-underline-offset: 3px; }
.store__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); padding-top: var(--s-1); }
.store__link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-size: var(--fs-ui); font-weight: var(--fw-bold); text-decoration: none; }
.store__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.stores__media { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: var(--s-2); }
.stores__photo, .stores__map { position: relative; overflow: hidden; margin: 0; min-height: 220px; border-radius: var(--radius-md); background: var(--paper); }
.stores__photo img, .stores__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stores__photo img { object-fit: cover; }
.stores__photo figcaption { position: absolute; z-index: 1; left: var(--s-3); top: var(--s-3); padding: 2px 10px; border-radius: var(--radius-pill); background: var(--paper); font-size: var(--fs-caption); font-weight: var(--fw-medium); color: var(--ink); box-shadow: 0 2px 8px rgba(14, 40, 80, 0.12); }
.stores__photo--a { grid-area: 1 / 1; }
.stores__photo--b { grid-area: 2 / 1; }
.stores__map { grid-area: 1 / 2 / 3 / 3; }
/* Cartão sobre o mapa: mostra a loja ativa, ligando a lista ao mapa */
.stores__maplabel { position: absolute; z-index: 1; left: var(--s-3); bottom: var(--s-3); right: var(--s-3); display: grid; gap: 2px; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 4px 16px rgba(14, 40, 80, 0.18); pointer-events: none; }
.stores__maplabel b { font-size: var(--fs-card); color: var(--ink); }
.stores__maplabel span { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }

/* ============ Rodapé ============ */
.footer { padding: 0 0 var(--s-10); background: var(--paper-light); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-10);
  padding: var(--s-16) var(--pad) 0;
}
.footer__about p { margin-top: var(--s-5); max-width: 34ch; font-size: var(--fs-ui); line-height: var(--lh-body); color: var(--ink-soft); }
.footer__brand { justify-items: start; }
.footer__brand img { height: 92px; width: auto; }
.footer__title { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--s-4); }
.footer__links { display: grid; gap: var(--s-2); font-size: var(--fs-ui); font-weight: var(--fw-medium); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin: var(--s-16) var(--pad) 0; padding-top: var(--s-6); border-top: var(--border); font-size: var(--fs-caption); color: var(--ink-soft); }

/* ============ Mobile ============ */
@media (max-width: 900px) {
  main > .section { padding-block: var(--s-10); }
  main > .custom { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .custom .section__head { margin-bottom: var(--s-6); }
  .custom__value { margin-top: 0; margin-bottom: var(--s-4); }
  .custom__topic { font-size: var(--fs-title); margin-bottom: var(--s-1); }
  .custom__number { font-size: var(--fs-card); font-weight: var(--fw-medium); color: var(--ink-soft); letter-spacing: 0; }
  .custom__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); }
  .custom__media { aspect-ratio: 16 / 10; margin-bottom: var(--s-5); }
  .foam { aspect-ratio: 4 / 3; }
  .custom__cta { margin-top: var(--s-6); }
  .custom__cta .btn { width: 100%; }

  .craft .section__head, .reviews .section__head, .stores .section__head { margin-bottom: var(--s-6); }
  .craft__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; gap: var(--s-8) var(--s-4); }
  .craft__item { display: flex; flex-direction: column; grid-row: auto; }
  .craft__item--lead { grid-column: 1 / -1; }
  .craft__img { align-self: stretch; }
  .craft__item figcaption { grid-template-columns: 24px minmax(0, 1fr); padding-top: var(--s-3); font-size: var(--fs-small); }
  .craft__item figcaption p { grid-column: 1 / -1; }
  .craft__side .craft__tag { left: var(--s-2); top: var(--s-2); font-size: 11px; }

  .how__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
  .how__action { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .how__action .btn { width: 100%; }
  .how__grid { gap: var(--s-6); }
  .how__steps { margin-top: 0; }
  .msg { max-width: 560px; justify-self: start; }
  .msg__head { padding: var(--s-4) var(--s-5); }
  .msg__bubble { margin: var(--s-5) var(--s-5) var(--s-4) var(--s-8); font-size: 16px; }
  .msg__foot { padding: 0 var(--s-5) var(--s-5); }

  .reviews__grid { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .reviews__grid .review { flex: 0 0 100%; scroll-snap-align: start; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
  .reviews__grid .review blockquote, .reviews__grid .review__quote,
  .reviews__grid .review__who, .reviews__grid .review__who b, .reviews__grid .review__who a:hover { color: var(--on-ink); }
  .reviews__grid .review__avatar { background: rgba(233, 227, 216, 0.14); color: var(--on-ink); }
  .reviews__grid .review :focus-visible { outline-color: var(--on-ink); }
  .reviews__nav { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
  .reviews__count { margin-right: auto; font-size: var(--fs-small); color: var(--ink-soft); }
  .reviews__count b { color: var(--ink); }
  .reviews__btn { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: var(--border); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
  .reviews__btn:disabled { opacity: 0.35; cursor: default; }
  .reviews__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  .stores__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); }
  .stores__media { display: contents; }
  .stores__photo, .stores__map { grid-area: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .stores__list { grid-column: 1 / -1; order: 1; padding: var(--s-1); }
  .stores__map { grid-column: 1 / -1; order: 2; aspect-ratio: 4 / 3; }
  .store__pick { padding-inline: var(--s-4); }
  .store__detail { padding: 0 var(--s-4) var(--s-4); }
  .store__actions { column-gap: var(--s-3); }
  .store__actions .btn { padding-inline: var(--s-3); }

  .footer { padding-bottom: calc(var(--s-8) + env(safe-area-inset-bottom)); } /* a barra fixa se oculta neste bloco */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-5); padding-top: var(--s-12); }
  .footer__about { grid-column: 1 / -1; }
  .footer__brand img { height: 76px; }
  .footer__legal { margin-top: var(--s-10); }
}

/* Celular: o título identifica cada possibilidade antes da imagem, sem rótulo solto. */
@media (max-width: 599px) {
  .custom__item { display: flex; flex-direction: column; }
  .custom__value { order: -1; }
  .custom__grid { gap: var(--s-6); }
  .custom__item + .custom__item { padding-top: var(--s-6); border-top: var(--border); }
  .custom__media { margin-bottom: 0; }
  .custom__text { margin-top: var(--s-3); }
}

/* Feedback da cidade: a escolha fica visível antes de abrir o WhatsApp. */
.storepick__item.is-picked { animation: store-choice 220ms var(--ease); }
.storepick__item[aria-current='true']::after { content: '✓'; color: var(--ink); font-weight: var(--fw-bold); }
@keyframes store-choice { from { transform: translateX(-3px); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .storepick__item.is-picked { animation: none; } }

/* Desktop: título e explicação no mesmo eixo, sem texto isolado na coluna direita. */
@media (min-width: 901px) {
  .custom .section__head, .craft .section__head, .reviews .section__head { display: block; }
  .custom .section__head .section__lede,
  .craft .section__head .section__lede,
  .reviews .section__head .section__lede,
  .stores .section__head .section__lede { margin-top: var(--s-4); max-width: 64ch; }
}

/* Uma sequência contínua até a conversa; a entrada acontece só uma vez. */
.how__steps li { --step-delay: 0ms; }
.how__steps li:nth-child(2) { --step-delay: 160ms; }
.how__steps li:nth-child(3) { --step-delay: 320ms; }
.how.is-entered .how__steps li { animation: how-step-in 550ms var(--ease) var(--step-delay) both; }
.how .msg { overflow: hidden; border-radius: 12px; justify-self: end; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.how .msg__head { background: #f0f2f5; border-radius: 0; }
.msg__product { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-6); background: var(--paper-light); border-bottom: 1px solid var(--line); }
.msg__product img { width: 86px; height: 46px; object-fit: contain; }
.msg__product span { display: grid; gap: 2px; }
.msg__product small { font-size: var(--fs-caption); color: var(--ink-soft); }
.msg__product b { font-size: var(--fs-ui); }
.msg__conversation { padding: var(--s-5); background-color: #efeae2; background-image: radial-gradient(rgba(14, 40, 80, 0.08) 0.7px, transparent 0.7px); background-size: 14px 14px; }
.how .msg__bubble { margin: 0 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: #d9fdd3; font-size: 16px; line-height: 1.45; box-shadow: 0 1px 2px rgba(14, 40, 80, 0.1); }
.msg__status { display: block; margin-top: var(--s-2); text-align: right; font-size: 11px; color: #49634e; }
.how .msg__foot { padding-top: var(--s-4); }
.how.is-entered .msg__bubble { animation: how-message-in 550ms var(--ease) 440ms both; }
@media (prefers-reduced-motion: no-preference) {
  .how__trigger[data-how-step='1'] .how__n { position: relative; }
  .how.is-entered:not(.has-interacted) .how__trigger[data-how-step='1'] .how__n::after {
    content: '';
    position: absolute; inset: -2px; border: 1px solid var(--paper); border-radius: 50%;
    opacity: 0; pointer-events: none;
    animation: how-step-cue 800ms var(--ease) 720ms 2 both;
  }
  .how__steps [data-step-state='complete'] .how__check path {
    stroke-dasharray: 15;
    animation: how-check-draw 200ms ease-out;
  }
}
@keyframes how-step-cue {
  from { opacity: 0.6; transform: scale(1); }
  75%, to { opacity: 0; transform: scale(1.4); }
}
@keyframes how-check-draw { from { stroke-dashoffset: 15; } to { stroke-dashoffset: 0; } }
@keyframes how-step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes how-connect { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes how-number-in { from { background: transparent; color: var(--paper); } to { background: var(--paper); color: var(--ink); } }
@keyframes how-message-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .how__head { margin-bottom: var(--s-6); }
  .how__head .h2 { max-width: none; }
  .how .msg { justify-self: start; max-width: 560px; }
  .msg__product { padding-inline: var(--s-5); }
  .msg__conversation { padding: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) {
  .how.is-entered .how__steps li, .how.is-entered .how__steps li::before,
  .how.is-entered .how__n, .how.is-entered .msg__bubble { animation: none; }
}

/* Mantém o bloco de conversa próximo da sequência e compacto. */
.how .msg { justify-self: start; }
.how .msg__head { padding: var(--s-3) var(--s-5); }
.how .msg__product { padding: var(--s-2) var(--s-5); }
.how .msg__product img { height: 40px; }
.how .msg__conversation { padding: var(--s-4); }
@media (min-width: 901px) {
  .how { padding-block: var(--s-16); }
  .how__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* Aparelho inspirado na referência Mise; conversa com linguagem visual do WhatsApp no iPhone. */
.how .msg.msg--phone { width: 300px; max-width: 100%; overflow: visible; justify-self: center; background: none; border-radius: 0; box-shadow: none; }
.phone__caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--s-3); color: var(--on-ink); font-size: 12px; }
.phone__caption .store-change { min-height: 32px; padding: 0; color: var(--on-ink); font-size: 12px; }
.phone__hardware { position: relative; padding: 3px; border: 1px solid #414747; border-radius: 46px; background: linear-gradient(125deg, #9b9f9e 0%, #3b3e3d 5%, #080a09 20%, #333735 55%, #9b9f9c 85%, #252725 100%); box-shadow: 0 1px 1px rgba(255,255,255,.25), 0 18px 32px rgba(0,0,0,.3), inset 0 0 0 1px #080909; }
.phone__hardware::after { content: ''; position: absolute; pointer-events: none; inset: 1px; border: 1px solid rgba(255,255,255,.16); border-radius: 44px; }
.phone__side { position: absolute; width: 3px; left: -4px; border-radius: 2px 0 0 2px; background: linear-gradient(90deg,#101211,#606462,#121413); box-shadow: -1px 0 1px rgba(0,0,0,.35); }
.phone__side--mute { top: 77px; height: 18px; }
.phone__side--up { top: 110px; height: 35px; }
.phone__side--down { top: 158px; height: 35px; }
.phone__side--power { left: auto; right: -4px; top: 132px; height: 60px; border-radius: 0 2px 2px 0; }
.phone__frame { position: relative; display: flex; flex-direction: column; height: 600px; overflow: hidden; border: 4px solid #080a09; border-radius: 41px; background: #f6f6f6; color: #111b21; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }
.phone__status { position: relative; display: flex; align-items: center; justify-content: space-between; flex: 0 0 34px; padding: 2px 15px 0; color: #080909; font-size: 10px; font-weight: 600; }
.phone__island { position: absolute; top: 6px; left: 50%; width: 82px; height: 22px; border-radius: 999px; transform: translateX(-50%); background: #000; box-shadow: inset 0 0 0 1px #151615; }
.phone__island::after { content: ''; position: absolute; right: 9px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 40% 30%,#1d2741,#050609 70%); }
.how .msg--phone .msg__head { flex: none; grid-template-columns: 9px 30px minmax(0, 1fr) 45px; gap: 6px; min-height: 56px; padding: 5px 8px; background: #f6f6f6; border-radius: 0; border-bottom: 1px solid #dadada; }
.phone__back, .phone__tools, .phone__composer { color: #007aff; }
.how .msg--phone .msg__avatar { width: 30px; height: 30px; background: #fff; overflow: hidden; }
.how .msg--phone .msg__avatar img { width: 27px; height: 27px; }
.how .msg--phone .msg__identity { gap: 1px; font-size: 12px; line-height: 1.2; color: #101010; }
.how .msg--phone .msg__identity b { font-weight: 600; }
.how .msg--phone .msg__title { font-size: 10px; color: #838383; }
.phone__tools { display: flex; gap: 7px; align-items: center; }
.phone__tools svg, .phone__composer svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.how .msg--phone .msg__conversation { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 14px; background-color: #efe7dc; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22150%22%20height%3D%22160%22%20viewBox%3D%220%200%20150%20160%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23c7bcac%22%20stroke-width%3D%221%22%20opacity%3D%22.34%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2016h20v13H20l-6%205v-5h-2Z%22%20transform%3D%22rotate(-18%2022%2024)%22%2F%3E%3Cpath%20d%3D%22m67%2014%203%207%208%201-6%205%202%208-7-4-7%204%202-8-6-5%208-1Z%22%2F%3E%3Cpath%20d%3D%22M112%2017c-7-10-18%201%200%2013%2018-12%207-23%200-13Z%22%20transform%3D%22rotate(19%20112%2022)%22%2F%3E%3Cpath%20d%3D%22M26%2065c-4%205%204%2017%2012%2018l4-5-6-5-3%202-5-7%202-2Z%22%2F%3E%3Cpath%20d%3D%22m68%2057%2014%205-10%2010-1-8-8%201Z%22%20transform%3D%22rotate(-16%2074%2064)%22%2F%3E%3Cpath%20d%3D%22M117%2060h15v13h-15zm2%200%202-4h7l2%204m-6%203a4%204%200%201%200%200%208%204%204%200%200%200%200-8Z%22%20transform%3D%22rotate(14%20124%2065)%22%2F%3E%3Cpath%20d%3D%22M10%20120c7-14%2015-14%2022%200m-16-3v13h10v-13m-4-13v26%22%2F%3E%3Ccircle%20cx%3D%2266%22%20cy%3D%22111%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m61%20112%204%203%206-8M105%20113h20v13h-20zm20%203c8-2%208%209%200%207m-18%209h17%22%2F%3E%3Cpath%20d%3D%22m36%20147%205-5%205%205-5%205Z%22%2F%3E%3Cpath%20d%3D%22M92%20146c2-8%207-8%2010%200m-5-5v11m-5-5h10%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-size: 150px 160px; }
.phone__date { align-self: center; margin-bottom: 3px; padding: 3px 10px; border-radius: 6px; background: #e1e7eb; color: #55616a; font-size: 10px; line-height: 1.2; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.how .msg--phone .msg__bubble, .phone__incoming, .phone__outgoing { position: relative; flex: none; max-width: 89%; margin: 0; padding: 6px 8px 4px; font-size: 12px; line-height: 1.35; letter-spacing: -.1px; border-radius: 7px; box-shadow: 0 1px 1px rgba(0,0,0,.1); color: #111b21; }
.how .msg--phone .msg__bubble, .phone__outgoing { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.how .msg--phone .msg__bubble::after, .phone__outgoing::after { content: ''; position: absolute; top: 0; bottom: auto; width: 7px; height: 8px; right: -5px; background: inherit; clip-path: polygon(0 0,0 100%,100% 0); }
.phone__incoming { background: #fff; border-top-left-radius: 0; }
.phone__incoming::before { content: ''; position: absolute; top: 0; left: -5px; width: 6px; height: 8px; background: inherit; clip-path: polygon(0 0,100% 100%,100% 0); }
.phone__meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 2px; color: #667781; font-size: 8px; line-height: 1; white-space: nowrap; }
.phone__ticks { color: #53bdeb; }
.phone__composer { display: flex; align-items: center; gap: 9px; flex: 0 0 43px; padding: 5px 10px; border-top: 1px solid #dadada; background: #f6f6f6; }
.phone__plus { font-size: 27px; font-weight: 300; line-height: 1; }
.phone__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; padding: 5px 8px; border: 1px solid #d2d2d7; border-radius: 18px; background: #fff; color: #007aff; font-size: 11px; }
.phone__input > span { color: #a2a2a7; }
.phone__home { flex: 0 0 4px; width: 100px; margin: 6px auto 7px; border-radius: 999px; background: #000; }
.how .msg--phone .msg__foot { margin-top: var(--s-4); padding: 0; }
.how__steps .how__step--send { --step-delay: 480ms; }
.how__send { text-decoration: none; }
.how__send .how__step-copy b { text-decoration: underline; text-underline-offset: 4px; }
.how .msg--phone .msg__foot .btn { min-height: 48px; background: var(--paper); color: var(--ink); }
.how .msg--phone .msg__foot .btn:hover { background: #fff; }
.how .msg--phone .msg__foot .btn:focus-visible { outline-color: var(--paper); }
.how.is-entered .phone__incoming { animation: how-message-in 400ms var(--ease) 800ms both; }
.how.is-entered .phone__incoming + .phone__incoming { animation-delay: 1100ms; }
.how.is-entered .phone__outgoing { animation: how-message-in 400ms var(--ease) 1400ms both; }
.how.is-entered .phone__outgoing + .phone__incoming { animation-delay: 1700ms; }
@media (prefers-reduced-motion: reduce) { .how.is-entered .phone__incoming, .how.is-entered .phone__outgoing { animation: none; } }
/* Título, explicação e passos formam uma coluna; celular ao lado, no mesmo topo. */
.how__copy { max-width: none; }
.how__copy .how__head { margin-bottom: var(--s-8); }
.how__copy .how__head .h2 { max-width: none; }
@media (min-width: 901px) {
  .how__grid { max-width: 900px; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-12); align-items: start; }
  .how__copy .h2 { margin-top: 0; font-size: clamp(32px, 2.5vw, 44px); }
  .how__copy .section__lede { max-width: 43ch; margin-top: var(--s-4); }
  .how .msg.msg--phone { justify-self: end; }
  .phone__caption { text-align: left; }
}
@media (max-width: 900px) { .how__copy .how__head { margin-bottom: var(--s-6); } }
@media (prefers-reduced-motion: reduce) { .how.is-entered .phone__incoming { animation: none; } }

/* Fábrica: o conjunto fecha nas legendas, sem faixa de CTA ou respiro excessivo. */
@media (min-width: 901px) { .craft { padding-block: var(--s-16); } }
@media (min-width: 600px) and (max-width: 900px) {
  .craft__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  .craft .craft__item--lead { grid-column: auto; }
  .craft__grid .craft__tag { left: var(--s-2); top: var(--s-2); padding: 2px 6px; font-size: 10px; }
}

/* Desktop: Estrutura ancora o processo; Costura e Estofamento ficam empilhados à direita. */
@media (min-width: 901px) {
  .craft__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto; align-items: start; gap: var(--s-6); }
  .craft__item { display: block; grid-row: auto; }
  .craft__side { display: grid; gap: var(--s-6); }
  .craft__side .craft__img { aspect-ratio: 16 / 9; }
  .craft__side .craft__img img { object-position: 50% 55%; }
  .craft__side .craft__item figcaption { padding-top: var(--s-3); }
}

/* Unidade macro: as seções compartilham o eixo externo; seus layouts internos são preservados. */
@media (min-width: 901px) {
  main > .section, .footer { padding-inline: max(var(--pad), calc((100% - 1160px) / 2)); }
  .footer__grid { padding-inline: 0; }
  .footer__legal { margin-inline: 0; }
}
/* Compactação do mobile por texto e respiro, preservando fotos, controles e aparelho. */
@media (max-width: 900px) {
  .custom .section__head { margin-bottom: var(--s-5); }
  .custom__value { margin-bottom: var(--s-3); }
  .custom__cta { margin-top: var(--s-5); }
  .how__copy .how__head { margin-bottom: var(--s-5); }
  .how__steps { gap: var(--s-3); }
  .how__steps li { padding-bottom: var(--s-3); }
}
@media (max-width: 599px) {
  .custom__grid { gap: var(--s-5); }
  .custom__item + .custom__item { padding-top: var(--s-5); }
}
