:root {
  /* Produto — Bloqueador */
  --bi-seed: #0f6e56;
  --bi-deep: #0a5247;
  --bi-teal: #0e9384;
  --bi-bright: #14b8a6;
  --bi-blue: #2196f3;
  --bi-success: #1b7f5a;
  --bi-warning: #b7791f;
  --bi-danger: #c53030;

  /* Casa — Sonsai (só rodapé) */
  --sonsai-blue: #2480d4;
  --sonsai-lime: #d8e800;
  --sonsai-cream: #fcfcd6;
  --sonsai-ink: #1a1a2e;

  /* Ritmo */
  --header-h: 64px;
  --section-y: 72px;
  --content: 1120px;
  --measure: 68ch;

  /* Superfície */
  --bg: #f7faf9;
  --bg-elevated: #ffffff;
  --bg-alt: #ecfdf9;
  --fg: #0b1f1a;
  --fg-muted: #3e5c54;
  --fg-soft: #5f7a72;
  --line: color-mix(in srgb, var(--bi-deep) 16%, transparent);
  --border: var(--line);
  --shadow-phone: 0 24px 48px color-mix(in srgb, var(--bi-deep) 28%, transparent);

  --font-ui: "Inter", system-ui, sans-serif;
  --font-legal: system-ui, -apple-system, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 80px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --tap-min: 48px;
  --prose: var(--measure);
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-ui);
  line-height: 1.5;
  background: var(--bg);
}

a {
  color: var(--bi-deep);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.play-cta:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--bi-teal);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

::selection {
  color: #fff;
  background: var(--bi-teal);
}

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

.section {
  padding: var(--section-y) 20px;
}

.section--elevated {
  background: var(--bg-elevated);
}

.section--alt {
  background: var(--bg-alt);
}

.section--deep {
  background: var(--bi-deep);
  color: #fff;
}

.section__inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.hero-bi {
  background: linear-gradient(160deg, var(--bi-deep) 0%, var(--bi-seed) 58%, var(--bi-teal) 100%);
  color: #fff;
}

.btn-primary,
.play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bi-teal);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.btn-primary:hover,
.play-cta:hover {
  background: var(--bi-deep);
}

.hero-bi .play-cta,
.section--deep .play-cta {
  background: #fff;
  color: var(--bi-deep);
}

.hero-bi .play-cta:hover,
.section--deep .play-cta:hover {
  background: var(--bg-alt);
}

.play-cta--compact {
  min-height: 40px;
  padding: 0 0.95rem;
  font-size: 0.9rem;
}

.play-cta--soon {
  cursor: default;
  opacity: 0.95;
}

.text-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mark-sonsai {
  color: var(--sonsai-blue);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone-frame {
  width: 280px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 32px;
  background: var(--bi-deep);
  box-shadow: var(--shadow-phone);
}

.phone-frame__screen {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  aspect-ratio: 738 / 1600;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-frame figcaption {
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.md-doc {
  max-width: var(--measure);
  font-family: var(--font-legal);
}

.md-doc h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.md-doc h2 {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-mast {
  padding: 28px 20px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.legal-mast__back {
  margin-bottom: 0.85rem;
}

.legal-mast__back a {
  color: var(--bi-teal);
  font-weight: 700;
}

.legal-mast__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
  color: var(--bi-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-mast__logo {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 6px;
}

.legal-mast h1 {
  margin: 0 0 0.45rem;
  color: var(--bi-deep);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-mast__updated {
  margin: 0 0 0.55rem;
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-mast__lead {
  max-width: 40rem;
  color: var(--fg-muted);
  font-size: 1.02rem;
}

@media (max-width: 720px) {
  .legal-mast h1 {
    font-size: 30px;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rise-in {
  animation: rise-in 400ms ease both;
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
    --section-y: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
