/* ──────────────────────────────────────────────────────────────────────
   Components — buttons, cards, badges, device frames.
   Depends on tokens.css (must be loaded first).
   ────────────────────────────────────────────────────────────────────── */

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: #ffffff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  /* Drop the accent glow so the button doesn't read as "ready to click". */
  box-shadow: none;
}
.btn-primary:disabled:hover {
  /* Hover should not lift a disabled CTA. */
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-card);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { color: var(--accent-light); text-decoration: underline; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--card-shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--card-shadow-hover);
}

.card-em-breve {
  border-style: dashed;
  opacity: 0.92;
}

/* ── Badges & labels ────────────────────────────────────────────────── */
.eyebrow-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.badge-em-breve {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-recomendado {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: #ffffff;
}

.badge-em-chegada {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(125, 211, 252, 0.3);
}

/* ── Device frames (showcase) ───────────────────────────────────────── */
.frame-browser {
  border-radius: 12px;
  border: 1px solid var(--border-card);
  background: var(--mock-phone-bg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.frame-browser .frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--mock-divider);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.frame-browser .frame-dots {
  display: inline-flex;
  gap: 0.375rem;
}
.frame-browser .frame-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.frame-browser .frame-screen {
  position: relative;
  background: var(--bg-body);
}
.frame-browser .frame-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-phone {
  position: relative;
  border-radius: 36px;
  border: 1px solid var(--mock-divider);
  background: var(--mock-phone-bg);
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  max-width: 280px;
}
.frame-phone .frame-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: var(--mock-notch);
  border-radius: 12px;
  z-index: 2;
}
.frame-phone .frame-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-body);
}
.frame-phone .frame-screen img,
.frame-phone .frame-screen video {
  display: block;
  width: 100%;
  height: auto;
}

/* iPad-shaped frame for tablet recordings. Slightly thicker bezel than
   the phone variant (real iPads have more bezel than iPhone Pro), and
   the screen aspect-ratio matches the recording native (480:688). */
.frame-tablet-video {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--mock-divider);
  background: var(--mock-phone-bg);
  padding: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  max-width: 320px;
  margin: 0 auto;
}
.frame-tablet-video .frame-screen {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-body);
  aspect-ratio: 480 / 688;
}
.frame-tablet-video .frame-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-body);
}

/* Video variant — recordings already include the iOS status bar, so we
   skip the .frame-notch (would overlap the time/battery text). Bezel is
   thinner so the screen reads bigger; shadow stays the same to match the
   site's mock-frame language. */
.frame-phone-video {
  position: relative;
  border-radius: 32px;
  border: 1px solid var(--mock-divider);
  background: var(--mock-phone-bg);
  padding: 4px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  max-width: 240px;
  margin: 0 auto;
}
.frame-phone-video .frame-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-body);
  aspect-ratio: 384 / 848;
}
.frame-phone-video .frame-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-body);
}

/* ── Skip link (a11y) ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Focus rings (a11y) ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Containers / layout ────────────────────────────────────────────── */
.container-mn {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.section-mn {
  padding-top: clamp(4rem, 10vw, 9rem);
  padding-bottom: clamp(4rem, 10vw, 9rem);
}

/* ── Type scale ─────────────────────────────────────────────────────── */
.h1-mn {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text-heading);
}
.h2-mn {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-heading);
}
.h3-mn {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-heading);
}
.body-mn { font-size: 1rem; color: var(--text-body); line-height: 1.6; }
@media (min-width: 1024px) { .body-mn { font-size: 1.0625rem; } }
