/* ==========================================================================
   ZambezeHost — Design System
   Modern light minimal · Zero dependencies · Dark mode ready
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --blue-600: #2563eb;
  --amber-500: #f59e0b;

  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --section-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #d8dee8;
  --border-strong: #bcc6d4;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  --heading: #0f172a;

  --primary: var(--green-600);
  --primary-strong: var(--green-700);
  --primary-soft: var(--green-50);
  --on-primary: #ffffff;
  --accent: var(--blue-600);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --corner-shape: squircle;

  --container: 1160px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.18s;
  --dur: 0.3s;
  --dur-slow: 0.55s;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-subtle: #0f172a;
  --bg-muted: #131c31;
  --section-alt: #0f172a;
  --surface: #111a2e;
  --surface-2: #16203a;
  --border: #1e2a44;
  --border-strong: #2b3a5c;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #7c8aa5;
  --heading: #f8fafc;

  --primary: var(--green-500);
  --primary-strong: #34d399;
  --primary-soft: rgba(16, 185, 129, 0.12);
  --on-primary: #052e1e;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Cantos squircle em todo o site (Chrome 139+; outros ignoram) */
  corner-shape: var(--corner-shape);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Transição suave ao alternar tema claro/escuro (classe adicionada via JS) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease), fill 0.3s var(--ease),
    stroke 0.3s var(--ease) !important;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--primary-strong);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-full);
}

.section {
  padding: 5rem 0;
}

.section--sm {
  padding: 3.5rem 0;
}

.section--muted {
  background: var(--section-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__header--left {
  margin-inline: 0;
  text-align: left;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.875rem;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--auto-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--auto-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   4. Icons (inline SVG)
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }
.icon--xl { width: 2.25rem; height: 2.25rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn--primary:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.btn--dark {
  background: var(--text);
  color: var(--bg);
}

.btn--dark:hover {
  opacity: 0.9;
  color: var(--bg);
}

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

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

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

.btn--light {
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 20px;
}

.btn--lg {
  padding: 0.9375rem 1.875rem;
  font-size: 1rem;
}

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

/* --------------------------------------------------------------------------
   6. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  display: none;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.topbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 1rem;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar__item a {
  color: var(--text-muted);
  font-weight: 700;
}

.topbar__item a:hover { color: var(--primary); }

.topbar__item .icon { color: var(--primary); }

@media (min-width: 992px) {
  .topbar { display: block; }
}

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 35%, var(--border)) 50%,
    transparent
  );
  pointer-events: none;
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.03em;
}

.logo:hover { color: var(--heading); }

.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.logo:hover .logo__mark {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.logo__mark .icon { width: 20px; height: 20px; }

.logo__accent { color: var(--primary); }

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .nav { display: flex; }
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__link:hover,
.nav__item.is-active > .nav__link {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav__caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav__item:hover .nav__caret,
.nav__item.is-open .nav__caret {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown,
.nav__item.is-open > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__dropdown-link:hover,
.nav__item.is-active .nav__dropdown-link {
  background: var(--primary-soft);
  color: var(--primary);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

@media (min-width: 992px) {
  .header__actions { display: flex; }
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.theme-toggle .icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--moon { display: block; }

.burger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.burger:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

@media (min-width: 992px) {
  .burger { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer.is-open .drawer__overlay { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}

.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.drawer__close:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.drawer__link:hover,
.drawer__link.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.drawer__sub {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
}

.drawer__item.is-open .drawer__sub {
  max-height: 14rem;
  opacity: 1;
}

.drawer__item.is-open > .drawer__link .nav__caret {
  transform: rotate(180deg);
}

.drawer__footer {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.625rem;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 2.25rem 0 2.75rem;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 84% -14%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 62%),
    radial-gradient(40rem 28rem at 2% 112%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 64%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 7%, var(--bg)) 0%, var(--bg) 58%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 35%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 50% 35%, #000, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  margin-bottom: 0.875rem;
}

.hero__title em {
  font-style: normal;
  color: var(--primary);
}

.hero__lead {
  max-width: 34rem;
  margin-bottom: 1.375rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__badges .icon {
  color: var(--primary);
  width: 1.05rem;
  height: 1.05rem;
}

/* Entrada do hero (premium) */
.hero .eyebrow,
.hero__title,
.hero__lead,
.hero__actions,
.hero__badges,
.hero__visual {
  animation: rise-in 0.7s var(--ease-out) both;
}

.hero .eyebrow { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.12s; }
.hero__lead { animation-delay: 0.2s; }
.hero__actions { animation-delay: 0.28s; }
.hero__badges { animation-delay: 0.36s; }
.hero__visual { animation-delay: 0.22s; animation-duration: 0.8s; }

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

/* Hero visual */
.hero__visual {
  position: relative;
  display: none;
}

@media (min-width: 992px) {
  .hero__visual { display: block; }
}

.hero-panel {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hero-panel__dots {
  display: flex;
  gap: 0.375rem;
}

.hero-panel__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-panel__dots span:first-child { background: #f87171; }
.hero-panel__dots span:nth-child(2) { background: #fbbf24; }
.hero-panel__dots span:nth-child(3) { background: #34d399; }

.hero-panel__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px dashed var(--border);
}

.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }

.hero-stat__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 20px;
}

.hero-stat__label {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.hero-stat__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

.hero-float {
  position: absolute;
  right: -1.25rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: floaty 4.5s ease-in-out infinite;
}

.hero-float__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--green-50);
  color: var(--green-600);
  border-radius: 10px;
}

[data-theme="dark"] .hero-float__icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
}

.card:hover .card__icon {
  transform: translateY(-2px) scale(1.07);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--primary) 70%, transparent);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-bottom: 1.125rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 15%, var(--surface)),
    color-mix(in srgb, var(--primary) 6%, var(--surface))
  );
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--primary) 60%, transparent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.card--center {
  text-align: center;
}

.card--center .card__icon {
  margin-inline: auto;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card__list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card__list .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   10. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan--featured {
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(5, 150, 105, 0.18);
}

[data-theme="dark"] .plan--featured {
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.12);
}

.plan__badge {
  position: absolute;
  top: -0.8125rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.plan__desc {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  min-height: 2.6em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.plan__period {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.plan__year {
  margin: -1rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.plan__features {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9125rem;
  color: var(--text-muted);
}

.plan__features .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  color: var(--primary);
}

.plan__features .is-muted {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}

.plan__features .is-muted .icon { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
  background: linear-gradient(120deg, var(--green-700), var(--green-500) 55%, #0ea5e9);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 16rem at 15% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(24rem 14rem at 90% 100%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.cta-band__title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band__text {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
}

.cta-band .btn--light:hover { color: var(--green-700); }

/* --------------------------------------------------------------------------
   12. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(46rem 24rem at 50% -34%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 66%),
    radial-gradient(34rem 22rem at 6% 118%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 66%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--bg)) 0%, var(--bg-subtle) 60%);
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__title,
.page-hero .breadcrumb {
  animation: rise-in 0.6s var(--ease-out) both;
}

.page-hero .breadcrumb { animation-delay: 0.1s; }

.page-hero__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb__sep { color: var(--border-strong); }

.breadcrumb [aria-current] {
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-group {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.125rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.input.is-invalid,
.textarea.is-invalid {
  border-color: #ef4444;
}

/* Input-prepend: ícone colado dentro da caixa do campo */
.input-prepend {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-prepend:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border-strong));
}

.input-prepend:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft),
    0 14px 30px -18px color-mix(in srgb, var(--primary) 60%, transparent);
}

.input-prepend:has(.input.is-invalid),
.input-prepend.is-invalid {
  border-color: #ef4444;
}

.input-prepend__icon {
  display: inline-flex;
  align-items: center;
  padding-left: 0.95rem;
  color: var(--text-faint);
  transition: color 0.3s ease, transform 0.3s var(--ease);
}

.input-prepend:focus-within .input-prepend__icon {
  color: var(--primary);
  transform: scale(1.08);
}

.input-prepend .input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.input-prepend .input:focus {
  border: 0;
  box-shadow: none;
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.form-status.is-visible { display: flex; }

.form-status--success {
  color: var(--green-700);
  background: var(--green-50);
  border-color: #a7f3d0;
}

[data-theme="dark"] .form-status--success {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.form-status--error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

[data-theme="dark"] .form-status--error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; }
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 0.3s var(--ease), border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
}

.contact-card:hover .contact-card__icon {
  transform: translateY(-2px) scale(1.07);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--primary) 70%, transparent);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 15%, var(--surface)),
    color-mix(in srgb, var(--primary) 6%, var(--surface))
  );
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--primary) 60%, transparent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.contact-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.contact-card__value {
  font-weight: 600;
  color: var(--heading);
}

.contact-card__value:hover { color: var(--primary); }

.contact-form-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  gap: 0;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

/* --------------------------------------------------------------------------
   15. About page
   -------------------------------------------------------------------------- */
.about-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-hero-grid { grid-template-columns: 1fr 1fr; }
}

.about-visual {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(140deg, var(--green-500), var(--green-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 2.5rem;
}

.about-visual__mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  backdrop-filter: blur(6px);
}

.about-visual__title {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.about-visual__text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 22rem;
  margin-inline: auto;
}

.value-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.value-item__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.value-item__title {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.value-item__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.member {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease;
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.125rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.member__name {
  font-size: 1.125rem;
  margin-bottom: 0.2rem;
}

.member__role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. Login — premium / smooth
   -------------------------------------------------------------------------- */
.login-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.auth-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-bar .btn--outline {
  transition: transform 0.3s var(--ease), background-color 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}

.auth-bar .btn--outline:hover {
  transform: translateY(-1px);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong));
  color: var(--primary);
}

.auth-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
}

.login-wrap {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}

/* Aurora suave atrás do cartão */
.login-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  background: radial-gradient(
    50% 45% at 50% 38%,
    color-mix(in srgb, var(--primary) 18%, transparent),
    transparent 75%
  );
  filter: blur(34px);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
  animation: login-glow 7s ease-in-out infinite;
}

@keyframes login-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.login-card {
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04),
    0 28px 56px -24px rgb(15 23 42 / 0.28);
  animation: login-in 0.7s var(--ease) both;
}

@keyframes login-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-card__title {
  font-size: clamp(1.45rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.login-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.login-page .input-prepend .input {
  padding-block: 0.85rem;
}

.login-page .btn--primary {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 86%, #fff),
    var(--primary)
  );
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    filter 0.3s ease, background-color 0.3s ease;
}

.login-page .btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--primary) 75%, transparent);
}

.login-page .btn--primary:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

.login-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1.5rem;
  font-size: 0.875rem;
}

.login-meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

/* Sublinhado que desliza ao passar o rato */
.login-meta a {
  position: relative;
  transition: color 0.3s ease;
}

.login-meta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.login-meta a:hover {
  color: var(--primary);
}

.login-meta a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 4rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% -10%, var(--primary-soft), transparent 60%),
    var(--bg);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.notfound__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.notfound__text {
  max-width: 30rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 4rem;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer__brand .logo { margin-bottom: 1rem; }

.footer__about {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer__contact {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
}

.footer__contact .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  color: var(--primary);
}

.footer__contact a { color: var(--text-muted); }
.footer__contact a:hover { color: var(--primary); }

.footer__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  gap: 0.55rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links a:hover { color: var(--primary); }

.footer__links .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--primary);
  transition: transform 0.25s var(--ease);
}

.footer__links a:hover .icon {
  transform: translateX(3px);
}

.footer__payment {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__payment img {
  max-width: 220px;
  width: 100%;
  height: auto;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.footer__bottom {
  position: relative;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 35%, var(--border)) 50%,
    transparent
  );
  pointer-events: none;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   19. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { color: var(--on-primary); background: var(--primary-strong); }

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Fundir a entrada (reveal) com as transições de hover dos componentes */
.card.reveal,
.plan.reveal {
  transition: opacity var(--dur-slow) var(--ease), transform 0.35s var(--ease),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --------------------------------------------------------------------------
   21. Misc
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checklist {
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  color: var(--primary);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: 12px;
}

.step__title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   22. Comparison table
   -------------------------------------------------------------------------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
  background: var(--bg-subtle);
}

.compare-table thead th:first-child,
.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  position: sticky;
  left: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.compare-table thead th:first-child {
  background: var(--bg-subtle);
  z-index: 1;
}

.compare-table tbody td {
  color: var(--text-muted);
  transition: background-color 0.2s ease;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover td {
  background: var(--bg-subtle);
}

.compare-table .is-featured {
  color: var(--primary);
  font-weight: 700;
}

.compare-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   23. FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s var(--ease);
}

.faq-item:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
  transition: color 0.25s ease;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary:hover {
  color: var(--primary);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] > summary::after {
  transform: rotate(180deg);
}

.faq-item__body {
  padding: 1rem 1.35rem 1.3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.faq-item[open] > .faq-item__body {
  animation: faq-in 0.3s var(--ease);
}

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

.faq-item__body p {
  margin: 0 0 0.85rem;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.faq-item__body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.faq-item__body ul:last-child {
  margin-bottom: 0;
}

.faq-item__body li {
  margin: 0.35rem 0;
}

.faq-item__body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
}

/* Login: viewports muito baixos (ex.: telemóvel deitado) — permite scroll
   para nada ficar cortado, mantendo-o sem scrollbar no layout normal. */
@media (max-height: 620px) {
  .login-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
}

/* --------------------------------------------------------------------------
   Footer: informação legal
   -------------------------------------------------------------------------- */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.35rem;
}

.footer__legal a {
  color: var(--text-faint);
  font-size: 0.875rem;
  transition: color var(--dur-fast) var(--ease);
}

.footer__legal a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Faixa de confiança (estatísticas)
   -------------------------------------------------------------------------- */
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.25rem 0.5rem;
}

.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: -0.625rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--border);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.trust-item__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--heading);
}

.trust-item__label {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Testemunhos
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.testimonial__stars {
  display: flex;
  gap: 0.15rem;
  color: var(--amber-500);
}

.testimonial__stars .icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.testimonial__quote {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
}

.testimonial__name {
  display: block;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.testimonial__role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Toggle de faturação (mensal / anual)
   -------------------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  margin: 0 auto 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.billing-toggle__btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.billing-toggle__btn:hover {
  color: var(--primary);
}

.billing-toggle__btn.is-active {
  background: var(--primary);
  color: var(--on-primary);
}

.billing-toggle__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pricing-toggle-wrap {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Páginas legais (prose)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--heading);
  margin: 2.25rem 0 0.75rem;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.05rem;
  color: var(--heading);
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  line-height: 1.8;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose__updated {
  margin-bottom: 2rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .trust-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }

  .trust-item:nth-child(3)::before {
    display: none;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .trust-band {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .trust-item + .trust-item::before {
    left: 0;
    right: 0;
    top: -0.85rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}
