/* ─────────────────────────────────────────────────────────────────────────────
   mulher.app — homepage
   Design editorial: hierarquia por peso (300/400/500), itálico como acento,
   cor pontual (rose-dark), generous whitespace. Inspirado em Mubi, Aesop,
   Anthropic — refined, not flashy.
   WCAG 2.2 AA mínimo; corpo AAA (13.8:1 dark/cream).
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette herdada da Lyra, com nuances editoriais */
  --bg:            #FAF4F6;
  --bg-soft:       #FDF9FB;
  --card-bg:       #FFFFFF;
  --card-border:   #EFE0E5;        /* mais sutil que EAC0CB pra editorial */
  --accent:        #C4859A;
  --accent-strong: #A87288;
  --accent-soft:   #EAC0CB;

  --text:          #1F1F1D;        /* off-black quente, não preto puro */
  --text-mid:      #4A4A47;        /* novo — pra subtítulos */
  --text-muted:    #6B6B68;
  --text-subtle:   #9B9B97;

  --radius-card:   20px;
  --radius-focus:  6px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;
  --space-8: 7rem;

  --container-max: 40rem;          /* ~640px — editorial, não cramped */

  /* Easings refinados */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img, picture, svg { display: block; max-width: 100%; }

/* Base */
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';  /* Inter: alternates pra a/g mais editoriais */

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;

  /* Sutil gradient no fundo — quase imperceptível, dá profundidade */
  background:
    radial-gradient(ellipse at top, rgba(234, 192, 203, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(196, 133, 154, 0.08) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-focus);
  font-weight: 500;
  font-size: 0.875rem;
  z-index: 100;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

/* ── Brand bar (top, refined) ────────────────────────────────────────────── */
.brand-bar {
  padding: var(--space-4) var(--space-3);
  display: flex;
  justify-content: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: opacity 0.18s var(--ease-out);
}
.brand:hover { opacity: 0.72; }
.brand:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 4px;
}
.brand-mark {
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1;
  transform: translateY(-1px);
}
.brand-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;          /* -1% conforme especificação */
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

/* Eyebrow (label uppercase pequeno) */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;            /* +14% — clássico de label refinado */
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 auto;
}

/* Headline principal — mix de pesos + cor pontual */
.hero-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;                  /* LIGHT — o protagonismo vem do tamanho, não do peso */
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;          /* -3.5% — tight, típico de hero moderno */
  color: var(--text);
  max-width: 14ch;
  margin: 0 auto;
}
.hero-line {
  display: block;
}
.hero-accent em {
  font-style: italic;
  font-weight: 400;                  /* regular > light pra dar peso ao acento */
  color: var(--accent-strong);
  letter-spacing: -0.03em;
}

/* Lead (subtítulo refinado, MUITO menor que antes) */
.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 28ch;
  margin: var(--space-2) auto 0;
  letter-spacing: -0.005em;
}
.lead-break {
  display: none;
}
@media (min-width: 32rem) {
  .lead-break { display: inline; }
}

/* ── Error page (404) ──────────────────────────────────────────────────────── */
.error-actions {
  margin-top: var(--space-3);
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--accent-strong);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease-out);
}
.home-link:hover {
  border-bottom-color: var(--accent-strong);
}
.home-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 4px;
}
.home-link .arrow {
  display: inline-block;
  transition: transform 0.32s var(--ease-out);
}
.home-link:hover .arrow {
  transform: translateX(4px);
}

/* ── Card (mais refinado, sem borda hard) ────────────────────────────────── */
.card-wrapper {
  margin: 0;
  /* Pequeno offset visual pra separar do hero */
}
.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-4) var(--space-3);
  text-align: left;
  position: relative;
  transition:
    transform 0.32s var(--ease-out),
    box-shadow 0.32s var(--ease-out),
    border-color 0.32s var(--ease-out);
  box-shadow:
    0 1px 2px rgba(196, 133, 154, 0.04),
    0 8px 24px rgba(31, 31, 29, 0.04);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(196, 133, 154, 0.06),
    0 12px 40px rgba(168, 114, 136, 0.14);
  border-color: var(--accent-soft);
}
.card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}
.card:active {
  transform: translateY(-1px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-3);
}
.card-mark {
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1;
}
.card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.card-desc {
  color: var(--text-mid);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: var(--space-4);
  max-width: 32ch;
}
.card-price {
  display: block;
  margin-top: var(--space-1);
  color: var(--text-muted);
  font-weight: 400;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--accent-strong);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease-out);
}
.card:hover .card-cta {
  border-bottom-color: var(--accent-strong);
}
.card .arrow {
  display: inline-block;
  transition: transform 0.32s var(--ease-out);
}
.card:hover .arrow {
  transform: translateX(4px);
}

/* ── Hint discreto ────────────────────────────────────────────────────────── */
.hint {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-3) var(--space-3) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.footer p {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
  justify-content: center;
}
.footer a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1px;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.footer a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}
.footer a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer .separator {
  color: var(--text-subtle);
  opacity: 0.5;
}

/* ── A11y utility ────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Motion preferences ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .card:active { transform: none; }
  .card:hover .arrow { transform: none; }
  .home-link:hover .arrow { transform: none; }
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
  body { background: white; color: black; }
  .card { border-color: #999; box-shadow: none; }
}
