/* Ritmo e superfícies compartilhados pelas páginas públicas. */
@layer components {
  :root { --section-gutter: max(32px, calc((100% - 1280px) / 2)); }
  .home-catalog.home-shell, .home-how.home-shell, .home-partners.home-shell,
  .home-app.home-shell, .home-faq.home-shell {
    width: 100%; margin: 0; padding: 64px var(--section-gutter);
    border-radius: 0; border: 0;
  }
  .home-section-heading { gap: 24px; margin-bottom: 28px; }
  .home-section-heading h2, .home-app h2, .home-faq h2 { text-wrap: balance; }
  .home-section-heading > p, .home-app-copy p { line-height: 1.65; }
  .home-hero :is(a, button):focus-visible, .home-header :is(a, button):focus-visible { outline: 3px solid white; outline-offset: 5px; }
  .home-header .mobile-nav a:focus-visible { outline-color: var(--wine); }
  .home-steps article { border-top: 3px solid var(--wine); }
  .home-strip > div { padding-block: 18px; }
  .home-steps, .home-partner-grid, .store-list { gap: 20px; }
  .home-steps article, .store-card { border-radius: 20px; padding: 24px; }
  .home-step-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 20px; background: var(--soft); }
  .home-partner { display: flex; flex-direction: column; align-items: flex-start; border-radius: 20px; padding: 36px; }
  .home-partner > p { flex: 1; }
  .home-partner .partner-onboarding { align-self: stretch; }
  .home-partner h3 { margin-top: 48px; }
  .home-partner .home-cta { width: 100%; gap: 12px; }
  .home-app { gap: 48px; }
  .home-preview { max-width: 230px; }
  .home-store-links > div { gap: 12px; }
  .home-faq { gap: 48px; }
  .home-questions { align-self: start; border: 1px solid var(--line); border-radius: 20px; padding: 8px 24px; background: var(--white); }
  .home-questions details { padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
  .home-questions details:last-child { border-bottom: 0; }
  .home-questions summary { min-height: 64px; font-size: .9375rem; }
  .home-questions details p { margin-right: 0; }
  .home-footer { padding-top: 40px; }
  .home-footer > .home-shell { width: 100%; padding-inline: var(--section-gutter); }
  .home-footer-grid { padding-bottom: 32px; }
  .home-footer-grid a { min-height: 44px; font-size: .8125rem; }
  .header.container { width: 100%; padding-inline: var(--section-gutter); border-radius: 0; }
  .editorial { padding-block: 40px 56px; }
  .editorial > h1 { margin-top: 0; border-radius: 20px; }
  .editorial p, .editorial li { line-height: 1.75; }
  .editorial .availability { padding: 24px; border-radius: 20px; }
  html:not([data-contrast='high']) .home-catalog,
  html:not([data-contrast='high']) .home-partners,
  html:not([data-contrast='high']) .home-faq { background: #fffaf7; }
  html:not([data-contrast='high']) .home-how,
  html:not([data-contrast='high']) .home-app { background: #f5ece8; }
  html:not([data-contrast='high']) .home-steps article,
  html:not([data-contrast='high']) .home-questions details { background: #fff; }
  html:not([data-contrast='high']) .store-card { box-shadow: 0 4px 20px #59061506; }
  html[data-contrast='high'] .home-questions,
  html[data-contrast='high'] .home-questions details { background: #000; border-color: #fff; }
  html[data-contrast='high'] .home-step-number { background: #ffff00; color: #000; }
  @media (max-width: 800px) {
    .home-steps { grid-template-columns: 1fr; }
    .home-steps article { padding: 22px; }
    .home-section-heading { flex-direction: column; align-items: stretch; gap: 16px; }
    .home-section-heading > p { max-width: none; }
  }
  @media (max-width: 650px) {
    :root { --section-gutter: 20px; }
    .home-catalog.home-shell, .home-how.home-shell, .home-partners.home-shell,
    .home-app.home-shell, .home-faq.home-shell { padding: 40px var(--section-gutter); }
    .home-section-heading h2, .home-app h2, .home-faq h2 { font-size: 2rem; line-height: 1.15; }
    .home-section-heading { margin-bottom: 24px; }
    .catalog-controls { padding: 16px; }
    .catalog-controls > .catalog-button { width: 100%; margin: 0; }
    .home-partner { padding: 26px 22px; border-radius: 20px; }
    .home-partner h3 { font-size: 1.875rem; }
    .home-partner-icon { right: 22px; top: 22px; }
    .home-app { gap: 28px; }
    .home-app-copy { grid-row: 1; }
    .home-preview { max-width: 200px; }
    .home-faq { gap: 24px; }
    .home-questions { padding-inline: 20px; }
    .home-footer-grid { gap: 24px 16px; }
    .home-footer-bottom { gap: 16px; }
    .editorial.container { width: 100%; padding: 28px var(--section-gutter) 40px; }
    .editorial > h1 { font-size: 2rem; padding: 24px; }
    .footer-top { gap: 24px 16px; }
  }
  @media (max-width: 360px) {
    :root { --section-gutter: 16px; }
    .home-footer-grid, .footer-top { grid-template-columns: 1fr; }
    .home-partner-tag { display: block; max-width: calc(100% - 48px); }
  }
}
