/* ==========================================================================
   RPAraujo — Design System
   Derivado de design_system/design_padrao.html (Meta commerce system).
   Tokens, tipografia, componentes compartilhados. Zero CSS inline nos templates.

   Conteúdo:
     1. Tokens
     2. Reset + base
     3. Tipografia
     4. Layout (container, seção, grid, pilha)
     5. Navegação
     6. Botões
     7. Badges / promo banner
     8. Cards
     9. Formulários
    10. Accordion / specs table
    11. Rodapé
    12. Utilitários
    13. Breakpoints
   ========================================================================== */

/* 1. Tokens ================================================================= */
:root {
  /* Brand & accent */
  --primary: #0064e0;
  --primary-deep: #0457cb;
  --primary-soft: #0091ff;
  --on-primary: #ffffff;
  --ink-button: #000000;
  --on-ink-button: #ffffff;
  --fb-blue: #1876f2;
  --link-blue: #385898;
  --accent-purple: #a121ce;

  /* Semantic */
  --success: #31a24c;
  --attention: #f2a918;
  --warning: #f7b928;
  --critical: #e41e3f;
  --critical-strong: #f0284a;

  /* Surface */
  --canvas: #ffffff;
  --surface-soft: #f1f4f7;
  --hairline: #ced0d4;
  --hairline-soft: #dee3e9;
  --disabled-text: #bcc0c4;

  /* Text */
  --ink-deep: #0a1317;
  --ink: #1c1e21;
  --charcoal: #444950;
  --slate: #4b4c4f;
  --steel: #5d6c7b;
  --stone: #8595a4;

  /* Spacing scale (4px base) */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-section-sm: 48px;
  --space-section: 64px;
  --space-section-lg: 80px;
  --space-hero: 120px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-xxxl: 32px;
  --radius-feature: 40px;
  --radius-full: 100px;

  /* Elevation */
  --elev-0: none;
  --elev-1: rgba(0, 0, 0, 0.2) 1px 1px 0px 0px;
  --elev-2: rgba(20, 22, 26, 0.3) 0px 1px 4px 0px;

  /* Layout */
  --max-width: 1440px;
  --nav-height: 64px;
  --control-height: 44px;

  /* Fontes */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', Menlo, Consolas, monospace;

  /* Motion */
  --ease: 200ms ease;
}

/* 2. Reset + base ========================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-deep);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link-blue);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--fb-blue);
  outline-offset: 2px;
}

.min-width-0,
.min-width-0 * {
  min-width: 0;
}

/* 3. Tipografia ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink-deep);
  text-wrap: balance;
}

.t-hero {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.5px;
}

.t-display-lg {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.5px;
}

.t-heading-lg {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.5px;
}

.t-heading-md {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.21;
  letter-spacing: -0.3px;
}

.t-heading-sm {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.t-subtitle-lg {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: -0.14px;
}

.t-subtitle-md {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
}

.t-body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--charcoal);
}

.t-body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.14px;
  color: var(--charcoal);
}

.t-body-sm-bold {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  color: var(--ink);
}

.t-caption {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
  color: var(--steel);
}

.t-mono {
  font-family: var(--font-mono);
}

/* 4. Layout ================================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section-flush {
  padding: 0;
}

.section-heading {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--ink-deep);
}

.section-sub {
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 40px;
  max-width: 640px;
  line-height: 1.5;
  letter-spacing: -0.16px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--ink-deep);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 5. Navegação ============================================================= */
/* Padrão do design de referência: grid 1fr auto 1fr — marca à esquerda,
   links centralizados, CTA preta à direita. Abaixo de 768px os links viram
   drawer acionado por checkbox + label (sem JS). */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  min-height: var(--nav-height);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: start;
}

.nav-brand {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.nav-links {
  justify-self: center;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.14px;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.nav-links a:hover {
  border-color: var(--ink);
}

.nav-links a.active {
  background: var(--ink-deep);
  color: var(--canvas);
  border-color: var(--ink-deep);
}

.nav-cta {
  justify-self: end;
  padding: 10px 22px;
  background: var(--ink-button);
  color: var(--on-ink-button);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: opacity var(--ease);
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Botão dentro do form de logout: mesma geometria da nav-cta, mas sem
   underline e sem o comportamento de link. */
.nav-logout-form {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.14px;
  white-space: nowrap;
}

/* O nome do usuário pode sumir, se for preciso — nunca os links.

   Faixa estreita do grid `1fr auto 1fr`: a coluna central é `auto`, então ela
   cresce com o conteúdo e as laterais encolhem até zero. Quando o conteúdo
   central passa da largura da lateral, ele transborda e a página ganha
   scroll horizontal.

   Medido no Chrome em 2026-09-27, com a barra logada em 5 links (Home, Sobre,
   Dashboard, Compras, Agenda), nome de 32px e botão "Sair" de 118px: precisa
   de 700px de conteúdo, e sobra folga a partir de 768px. Ou seja, o nome não
   precisa mais sumir em lugar nenhum da faixa de desktop.

   O breakpoint antigo (768-860px) existia quando a barra tinha menos links e
   o nome ocupava mais. Caiu por medição, não por suposição. Se voltar a
   faltar espaço, meça antes de esconder algo: esconder o nome do usuário é
   o último recurso, não o primeiro. */
@media (max-width: 700px) {
  .nav-user {
    display: none;
  }
}

button.nav-cta {
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta-ghost {
  background: transparent;
  color: var(--ink-deep);
  border: 2px solid var(--hairline);
}

.nav-cta-ghost:hover {
  opacity: 1;
  border-color: var(--ink-deep);
}

/* Drawer: escondido no desktop, revelado pelo checkbox no mobile */
.nav-toggle,
.nav-toggle-label,
.nav-drawer {
  display: none;
}

/* 6. Botões ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.14px;
  text-decoration: none;
  border: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
  min-height: 40px;
}

.btn-lg {
  padding: 14px 30px;
}

.btn-primary {
  /* No design system de origem, `padding: 14px 30px` pertence ao proprio
     `.btn-primary` (design_padrao.html:101-102), nao a uma classe de
     tamanho. A extracao separou a base em `.btn` e deixou o padding so
     em `.btn-lg`, o que deixava TODO botao `btn-primary` sem `btn-lg`
     (os do dashboard) com padding zero — 47px de largura, sem respiro
     ao redor do texto. Restaurado aqui para casar com a origem. */
  padding: 14px 30px;
  background: var(--ink-button);
  color: var(--on-ink-button);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-buy {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-buy:hover {
  background: var(--primary-deep);
}

.btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: var(--ink-deep);
  border: 2px solid var(--ink-deep);
}

.btn-secondary:hover {
  background: var(--ink-deep);
  color: var(--canvas);
}

.btn-ghost {
  padding: 10px 22px;
  background: transparent;
  color: var(--ink-deep);
  border: 2px solid rgba(10, 19, 23, 0.12);
}

.btn-ghost:hover {
  border-color: var(--ink-deep);
}

.btn-invert {
  background: var(--canvas);
  color: var(--ink-button);
}

.btn-invert:hover {
  opacity: 0.85;
}

.btn-pill-tab {
  padding: 8px 16px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-pill-tab.active {
  background: var(--ink-deep);
  color: var(--canvas);
  border-color: var(--ink-deep);
}

.btn-icon-circular {
  width: 40px;
  height: 40px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-disabled,
.btn:disabled {
  background: var(--disabled-text);
  color: var(--canvas);
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

/* 7. Badges / promo banner ================================================== */
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
}

.badge-warning {
  background: var(--warning);
  color: var(--ink-deep);
}

.badge-attention {
  background: var(--attention);
  color: var(--canvas);
}

.badge-success {
  background: var(--success);
  color: var(--canvas);
}

.badge-critical {
  background: var(--critical);
  color: var(--canvas);
}

.promo-banner {
  background: var(--ink-deep);
  color: var(--canvas);
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.14px;
}

.promo-banner a {
  color: var(--canvas);
  text-decoration: underline;
  margin-left: 8px;
}

/* 8. Cards ================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-flat {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-feature {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xxxl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-feature h4 {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.21;
  letter-spacing: -0.3px;
}

.card-feature p {
  font-size: 16px;
  color: var(--charcoal);
  letter-spacing: -0.16px;
}

.card-icon-feature {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.card-icon-feature:hover {
  box-shadow: var(--elev-2);
}

.icon-box {
  width: 32px;
  height: 32px;
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.card-icon-feature h5 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.44;
  color: var(--ink-deep);
}

.card-icon-feature p {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.43;
  letter-spacing: -0.14px;
}

.card-sticky {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--elev-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-promo-strip {
  background: var(--ink-deep);
  color: var(--canvas);
  border-radius: var(--radius-xxxl);
  padding: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-promo-strip h4 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.5px;
  color: var(--canvas);
}

.card-promo-strip p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.44;
}

/* 9. Formulários ============================================================ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.14px;
}

.text-input {
  padding: 12px 16px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  font-size: 16px;
  height: var(--control-height);
  letter-spacing: -0.16px;
  width: 100%;
  transition: border-color var(--ease);
}

.text-input:focus {
  outline: none;
  border: 2px solid var(--fb-blue);
  padding: 11px 15px;
}

.text-input.error {
  border: 1px solid var(--critical-strong);
}

.err-label {
  font-size: 14px;
  color: var(--critical-strong);
  letter-spacing: -0.14px;
}

.search-pill {
  background: var(--surface-soft);
  color: var(--steel);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  height: 40px;
  border: none;
  font-size: 14px;
  min-width: 280px;
  width: 100%;
}

.search-pill::placeholder {
  color: var(--steel);
}

/* Switch (checkbox estilizado) */
.switch {
  position: relative;
  width: 45px;
  height: 25px;
  display: inline-block;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--hairline);
  border-radius: var(--radius-full);
  transition: background 300ms ease-in-out;
  cursor: pointer;
}

.switch .slider::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  background: var(--canvas);
  border-radius: 50%;
  transition: transform 300ms ease-in-out;
}

.switch input:checked + .slider {
  background: var(--ink-deep);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:focus-visible + .slider {
  outline: 2px solid var(--fb-blue);
  outline-offset: 2px;
}

/* 10. Accordion / specs table =============================================== */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--canvas);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--hairline-soft);
}

.accordion-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.accordion-q-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.44;
}

.chev {
  width: 20px;
  height: 20px;
  color: var(--steel);
  flex-shrink: 0;
  transition: transform 300ms ease;
}

.accordion-item.collapsed .chev {
  transform: rotate(180deg);
}

.accordion-a {
  font-size: 16px;
  color: var(--charcoal);
  margin-top: 16px;
  line-height: 1.5;
  letter-spacing: -0.16px;
}

.accordion-item.collapsed .accordion-a {
  display: none;
}

.specs-table {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-section-header {
  padding: 16px 20px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.14px;
}

.spec-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  gap: 16px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.14px;
}

.spec-value {
  font-size: 14px;
  color: var(--charcoal);
  letter-spacing: -0.14px;
  /* URL e e-mail da política de privacidade nao tem onde quebrar: sem isto
     o texto estourava a linha da tabela (377px de conteudo numa celula de
     318px, medido a 360px de viewport) e o `.specs-table { overflow:
     hidden }` cortava a URL no meio em vez de quebrar a linha. */
  overflow-wrap: anywhere;
}

/* 11. Rodapé =============================================================== */
.footer {
  padding: 80px 0 32px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline-soft);
  font-size: 14px;
  color: var(--steel);
  letter-spacing: -0.14px;
  margin-top: 0;
}

.footer-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.14px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--steel);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--ink-deep);
}

/* Abaixo de ~600px o `auto-fit minmax(180px, 1fr)` do .footer-grid entrega
   colunas de 148px (medido a 360px de viewport) e o e-mail do bloco
   Contato tem 182px de conteudo — nenhuma quebra de palavra em
   "guilherme@rparaujo.com.br" —, o que estourava a pagina em 14px e
   criava scroll horizontal em TODAS as telas. Uma coluna e `overflow-wrap`
   resolvem; nada mais muda. */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-col a,
  .footer-col span {
    overflow-wrap: anywhere;
  }
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  text-decoration: none;
  transition: border-color var(--ease);
}

.footer-nav a:hover {
  border-color: var(--ink-deep);
}

.footer-nav img {
  width: 18px;
  height: 18px;
}

.footer-credit {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  margin-top: 24px;
  font-size: 12px;
  color: var(--steel);
}

.footer-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* 11b. Alertas de mensagem (partials/_alertas.html)
   Extensão documentada: reaproveita os tokens semânticos e a geometria pill
   dos badges da seção 7 — só o formato muda (bloco em vez de inline). */
.alert-stack {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: -0.14px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(49, 162, 76, 0.12);
  border-color: var(--success);
  color: var(--ink-deep);
}

.alert-warning,
.alert-attention {
  background: rgba(247, 185, 40, 0.16);
  border-color: var(--warning);
  color: var(--ink-deep);
}

.alert-error,
.alert-critical {
  background: rgba(228, 30, 63, 0.12);
  border-color: var(--critical);
  color: var(--ink-deep);
}

.alert-info,
.alert-debug {
  background: var(--surface-soft);
  border-color: var(--hairline);
  color: var(--charcoal);
}

/* 12. Utilitários =========================================================== */
.u-center {
  text-align: center;
}

.u-flex-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.u-space-between {
  justify-content: space-between;
}

.u-mt-base {
  margin-top: 16px;
}

.u-mt-xxl {
  margin-top: 32px;
}

.u-mb-xxl {
  margin-bottom: 32px;
}

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

.avatar-circle {
  border-radius: 50%;
  object-fit: cover;
}

/* 13. Breakpoints =========================================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .section-title {
    font-size: 28px;
  }

  .t-hero {
    font-size: 48px;
  }

  .t-display-lg,
  .card-promo-strip h4 {
    font-size: 40px;
  }

  .nav {
    padding: 0 32px;
  }

  .footer-shell,
  .alert-stack {
    padding: 0 32px;
  }

  .footer-grid {
    gap: 32px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading,
  .section-title {
    font-size: 24px;
  }

  .t-hero {
    font-size: 36px;
  }

  .t-display-lg,
  .t-heading-lg,
  .card-promo-strip h4 {
    font-size: 28px;
  }

  .card-promo-strip {
    padding: 32px;
  }

  .card-grid,
  .grid-auto {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Nav vira drawer (checkbox + label, sem JS). O checkbox e o label ficam
     fora do fluxo (position: absolute) para não ocuparem célula do grid. */
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 20px;
    min-height: 56px;
    gap: 12px;
  }

  .nav-left {
    margin-right: auto;
  }

  .nav-links,
  .nav-cta,
  .nav-logout-form {
    display: none;
  }

  .nav-drawer-form {
    display: block;
    padding: 0;
  }

  .nav-drawer-form button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    background: none;
    border: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .nav-drawer-form button:hover {
    background: var(--surface-soft);
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 20px;
    width: 30px;
    height: 30px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
  }

  .nav-toggle-label {
    display: block;
    position: absolute;
    top: 13px;
    right: 21px;
    width: 28px;
    height: 28px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--ink-deep);
    border-radius: var(--radius-full);
    transition: transform 300ms ease, opacity 200ms ease;
  }

  .nav-toggle-label span:nth-child(1) {
    top: 2px;
  }

  .nav-toggle-label span:nth-child(2) {
    top: 11px;
  }

  .nav-toggle-label span:nth-child(3) {
    top: 20px;
  }

  .nav-drawer {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
  }

  .nav-drawer a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
  }

  .nav-drawer a:hover,
  .nav-drawer a.active {
    background: var(--surface-soft);
  }

  .nav-toggle:checked ~ .nav-drawer {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .footer {
    padding: 48px 0 24px;
  }

  .footer-shell,
  .alert-stack {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
  }

  .search-pill {
    min-width: 0;
  }
}

@media (max-width: 479px) {
  .t-hero {
    font-size: 24px;
  }

  .section-heading,
  .section-title {
    font-size: 20px;
  }

  .btn-lg {
    padding: 12px 24px;
  }
}
