:root {
  --bg: #081521;
  --bg-2: #0c1d2c;
  --surface: #0f2536;
  --surface-2: #143049;
  --primary: #2d7fb0;
  --primary-2: #3a94c9;
  --accent: #f39b3d;
  --accent-2: #e07e22;
  --on-accent: #081521;
  --heart: #e8536b;
  --text: #e8f0f7;
  --muted: #9bb4c9;
  --border: rgba(45, 127, 176, 0.35);
  --border-soft: rgba(155, 180, 201, 0.16);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
  --max: 720px;
  --wide: 1000px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(243, 155, 61, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% -20%, #163a52 0%, var(--bg) 55%);
  background-attachment: fixed;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--primary-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(8, 21, 33, 0.78);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner,
.site-footer__inner,
.page {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* "o" em forma de coração — exatamente o mesmo desenho do SintoniaWordmark do
   app (_HeartOPainter): um anel vermelho cujo vão interno tem formato de
   coração. Reproduzido como SVG (mesma curva de bézier, vermelho #E53935) e
   embutido via background, então o `<i class="wm__heart">` fica vazio no HTML. */
.wm {
  white-space: nowrap;
}

.wm__heart {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin: 0 0.03em;
  vertical-align: -0.04em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='%23E53935' fill-rule='evenodd' d='M0,50 a50,50 0 1,0 100,0 a50,50 0 1,0 -100,0 Z M50,37.6 C45.04,25.2 22.72,26.44 21.48,42.56 C20.24,54.96 37.6,67.36 50,79.76 C62.4,67.36 79.76,54.96 78.52,42.56 C77.28,26.44 54.96,25.2 50,37.6 Z'/></svg>");
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero__banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  filter: drop-shadow(0 0 40px rgba(243, 155, 61, 0.18));
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 800;
}

.hero .tagline {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero p.lead {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

/* ---------- Section heading ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 34rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1.5rem 0 3rem;
}

.card {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  background: rgba(243, 155, 61, 0.14);
  border: 1px solid rgba(243, 155, 61, 0.3);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent);
  box-shadow: 0 8px 22px rgba(243, 155, 61, 0.28);
}

.btn--primary:hover {
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(243, 155, 61, 0.38);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.btn--block {
  width: 100%;
}

/* ---------- Home: support block ---------- */
.contact-block {
  text-align: center;
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.contact-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

/* ---------- Status pages (premium sucesso/cancelado) ---------- */
.status-wrap {
  width: min(100% - 2rem, 480px);
  margin: 3rem auto;
  text-align: center;
}

.status-card {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 75%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.badge--ok {
  background: rgba(243, 155, 61, 0.15);
  border: 1px solid rgba(243, 155, 61, 0.4);
}

.badge--wait {
  background: rgba(45, 127, 176, 0.18);
  border: 1px solid rgba(45, 127, 176, 0.45);
}

.badge--error {
  background: rgba(232, 83, 107, 0.15);
  border: 1px solid rgba(232, 83, 107, 0.4);
}

.status-card h1 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.status-card .lead {
  margin: 0 auto 0.75rem;
  color: var(--muted);
  max-width: 30rem;
}

.status-card .lead:last-child {
  margin-bottom: 0;
}

/* ---------- Premium subscribe page ---------- */
.premium-card {
  width: min(100% - 2rem, 480px);
  margin: 2rem auto 3rem;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 75%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.premium-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.field {
  display: block;
  width: 100%;
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.field:focus {
  outline: none;
  border-color: var(--accent);
}

.field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.plans {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}

.plan {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.plan:hover {
  border-color: var(--border);
}

.plan.is-selected {
  border-color: var(--accent);
  background: rgba(243, 155, 61, 0.08);
}

.plan input {
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
}

.plan__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.plan__label {
  font-weight: 600;
}

.plan__note {
  font-size: 0.78rem;
  color: var(--muted, #8a8a8a);
}

.plan__tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.stack > * + * {
  margin-top: 0.6rem;
}

.msg {
  margin: 0.85rem 0 0;
  color: var(--accent);
  min-height: 1.2em;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

/* ---------- Contact page ---------- */
.page--contact {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.page--contact h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
}

.page--contact .lead {
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: var(--muted);
}

.contact-card {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 75%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-email-tap {
  display: inline-block;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  padding: 0.75rem 1rem;
  margin: 0 0 0.5rem;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
  word-break: break-all;
}

.contact-email-tap:hover {
  color: #fff;
  background: rgba(45, 127, 176, 0.25);
}

.contact-hint {
  margin: 0 auto 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28rem;
}

.btn--large {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.copy-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--accent);
}

.contact-topics {
  text-align: left;
  background: rgba(15, 37, 54, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}

.contact-topics h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.contact-topics ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.contact-topics li {
  margin-bottom: 0.35rem;
}

.contact-topics p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---------- Legal / policy pages ---------- */
.page--legal {
  width: min(100% - 2rem, var(--max));
  padding: 2.5rem 0 3rem;
}

.page--legal h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
}

.page--legal .updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page--legal article > section {
  background: rgba(15, 37, 54, 0.4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.page--legal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.page--legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.page--legal p,
.page--legal li {
  color: var(--text);
}

.page--legal ul {
  padding-left: 1.25rem;
}

.page--legal code {
  background: rgba(45, 127, 176, 0.18);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

.policy-placeholder {
  background: rgba(243, 155, 61, 0.08);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-section[data-pending="true"] {
  opacity: 0.85;
}

.policy-section[data-pending="true"] > p:last-child {
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 520px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-row .btn {
    width: 100%;
  }
}
