:root {
  --yellow: #ffe600;
  --yellow-strong: #f5d800;
  --navy: #2d3277;
  --navy-dark: #141a4a;
  --ink: #0f172a;
  --muted: #5b6478;
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e4e7ef;
  --red: #d92d20;
  --green: #12b76a;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 20px 40px -20px rgba(15, 23, 42, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
[hidden] { display: none !important; }

img, video { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); }
.brand__logo {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy-dark);
}
.brand__logo svg { width: 18px; height: 18px; }
.brand__img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.brand__img--lg { width: 64px; height: 64px; }
.brand__text strong { color: var(--navy); margin-left: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { outline: 3px solid rgba(45, 50, 119, .35); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--sm { padding: 9px 14px; font-size: .875rem; }
.btn--sm svg { width: 17px; height: 17px; }
.btn i { font-size: .95em; }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; }
.btn--primary { background: var(--yellow); color: var(--navy-dark); }
.btn--primary:hover { background: var(--yellow-strong); }
.btn--primary svg { width: 18px; height: 18px; }
.btn--navy { background: var(--navy-dark); color: #fff; }
.btn--navy:hover { background: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--danger { background: #fdecec; color: var(--red); }
.btn--danger:hover { background: #fbdcdc; }

.show-xs { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg, .toast i { color: #32d583; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar__inner { height: 60px; gap: 8px; }
  .brand { min-width: 0; font-size: .95rem; gap: 8px; }
  .brand__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand__img { width: 40px; height: 40px; }
  .topbar .btn--sm { padding: 8px 12px; }
}

@media (max-width: 420px) {
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .brand__text { max-width: 9.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
