/* ── VoxOn Hub Landing — premium UI ── */
:root {
  color-scheme: dark light;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --accent: #1428a2;
  --accent-2: #3b82f6;
  --accent-line: linear-gradient(90deg, #1428a2, #3b82f6 45%, #10b981 75%, #f59e0b);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --container: min(640px, calc(100% - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right) + 24px)));
  --header-h: 64px;
}

html[data-theme="dark"] {
  --bg: #070b14;
  --bg-elevated: rgba(14, 22, 40, 0.72);
  --glass: rgba(12, 18, 34, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.28);
  --header-glass: rgba(7, 11, 20, 0.72);
  --field-bg: rgba(255, 255, 255, 0.04);
  --thumb-bg: #f8fafc;
  --thumb-fg: #0f172a;
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] {
  --bg: #f0f4ff;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.06);
  --header-glass: rgba(255, 255, 255, 0.82);
  --field-bg: rgba(15, 23, 42, 0.03);
  --thumb-bg: #1428a2;
  --thumb-fg: #ffffff;
  --btn-ghost-bg: rgba(255, 255, 255, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.016em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="light"] body::after {
  opacity: 0.02;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.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;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ambient__orb--1 {
  width: min(70vmax, 640px);
  height: min(70vmax, 640px);
  top: -22%;
  right: -28%;
  background: rgba(20, 40, 162, 0.38);
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient__orb--2 {
  width: min(50vmax, 480px);
  height: min(50vmax, 480px);
  bottom: -8%;
  left: -22%;
  background: rgba(59, 130, 246, 0.16);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

html[data-theme="light"] .ambient__orb--1 {
  background: rgba(20, 40, 162, 0.12);
}
html[data-theme="light"] .ambient__orb--2 {
  background: rgba(99, 102, 241, 0.08);
}

.ambient__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(at 20% 0%, rgba(59, 130, 246, 0.12) 0, transparent 50%),
    radial-gradient(at 80% 20%, rgba(20, 40, 162, 0.1) 0, transparent 45%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.06) 0, transparent 40%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3%, 4%) scale(1.06); }
}

.page {
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: max(12px, env(safe-area-inset-top)) 0 0;
}

.site-header__shell {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-h);
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--header-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow-sm);
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand__logo {
  max-height: clamp(28px, 8vw, 36px);
  width: auto;
}

html[data-theme="dark"] .brand__logo--light,
html[data-theme="light"] .brand__logo--dark {
  display: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  padding-inline: 8px;
}

.nav-desktop__link {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop__link:hover {
  color: var(--text);
  background: var(--field-bg);
}

.nav-desktop__link--cta {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1428a2, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(20, 40, 162, 0.35);
}

.nav-desktop__link--cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 40, 162, 0.4);
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Lang toggle — hero control */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, rgba(20, 40, 162, 0.35), rgba(59, 130, 246, 0.15));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 24px rgba(20, 40, 162, 0.35),
    0 4px 16px rgba(20, 40, 162, 0.25);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.lang-toggle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 32px rgba(59, 130, 246, 0.45),
    0 8px 24px rgba(20, 40, 162, 0.35);
}

.lang-toggle__icon {
  font-size: 17px;
  color: #93c5fd;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

html[data-theme="light"] .lang-toggle__icon {
  color: var(--accent);
  filter: none;
}

.lang-toggle__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 78px;
  height: 34px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .lang-toggle__track {
  background: rgba(15, 23, 42, 0.06);
  border-color: var(--glass-border);
}

.lang-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: var(--radius-pill);
  background: var(--thumb-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.32s var(--ease-spring);
}

html[data-lang="en"] .lang-toggle__thumb {
  transform: translateX(100%);
}

.lang-toggle__opt {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  user-select: none;
  transition: color 0.2s;
}

html[data-theme="light"] .lang-toggle__opt {
  color: var(--muted-2);
}

html[data-lang="pt"] .lang-toggle__opt[data-lang-opt="pt"],
html[data-lang="en"] .lang-toggle__opt[data-lang-opt="en"] {
  color: var(--thumb-fg);
}

html[data-theme="light"][data-lang="pt"] .lang-toggle__opt[data-lang-opt="pt"],
html[data-theme="light"][data-lang="en"] .lang-toggle__opt[data-lang-opt="en"] {
  color: #fff;
}

/* Theme */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  background: var(--field-bg);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle__icon {
  width: 17px;
  height: 17px;
  grid-area: 1 / 1;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.theme-toggle__icon--sun {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.theme-toggle__icon--moon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 14.5A8.5 8.5 0 0112.5 6 8.5 8.5 0 0012 3a9 9 0 109 11.5z'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0.35; }
html[data-theme="light"] .theme-toggle__icon--moon { opacity: 0.35; }

.nav-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--field-bg);
}

.nav-toggle__bar {
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease);
}

body.nav-open .nav-toggle__bar:first-child { transform: translateY(3.25px) rotate(45deg); }
body.nav-open .nav-toggle__bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.nav-drawer[hidden] { display: none; }
body.nav-open .nav-drawer { pointer-events: auto; }

.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

body.nav-open .nav-drawer__backdrop { opacity: 1; }

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  padding: max(80px, calc(env(safe-area-inset-top) + 64px)) 24px 32px;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-spring);
}

body.nav-open .nav-drawer__panel { transform: translateX(0); }

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-drawer__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-drawer__link:hover { background: var(--field-bg); }

@media (min-width: 768px) {
  .nav-drawer { display: none !important; }
}

/* Hero */
.hero {
  padding: clamp(20px, 5vw, 40px) 0 clamp(8px, 2vw, 16px);
}

.hero-card {
  position: relative;
  padding: clamp(28px, 6vw, 40px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-line);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 40%, var(--muted));
}

.hero-card__title {
  margin: 0;
  font-size: clamp(1.75rem, 5.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.hero-card__accent {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #93c5fd 0%, #e2e8f0 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero-card__accent {
  background: linear-gradient(120deg, #1428a2, #2563eb 50%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-card__title .hero-card__accent,
.hero-card__lede .hero-card__accent {
  display: inline;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.hero-card__tagline {
  margin: clamp(20px, 4.5vw, 26px) 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-card__lede {
  margin: clamp(6px, 1.6vw, 8px) 0 0;
  max-width: 38ch;
  font-size: clamp(17px, 2.9vw, 18.5px);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.53;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .hero-card__lede {
    font-size: clamp(16.75px, 4.4vw, 17.75px);
    max-width: 36ch;
    line-height: 1.55;
    margin-top: 6px;
  }

  .hero-card__tagline {
    margin-top: clamp(22px, 5.5vw, 26px);
  }
}

.hero-card__cta {
  margin-top: clamp(24px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s, background 0.22s, border-color 0.22s;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, #1428a2, #2563eb);
  color: #fff;
  box-shadow: 0 4px 20px rgba(20, 40, 162, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20, 40, 162, 0.45);
}

.btn--shine {
  position: relative;
  overflow: hidden;
}

.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: btn-shine 4s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.btn--wa {
  width: 100%;
  background: linear-gradient(135deg, #128c7e, #25d366);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--wa:hover:not(:disabled) {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn--wa:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

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

.btn--ghost:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.btn .ph { font-size: 18px; }

/* Sections */
.section {
  padding: clamp(12px, 3vw, 24px) 0;
}

.section--last {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.section__head {
  margin-bottom: 16px;
}

.section__label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.section__title {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section__subtitle {
  margin: 6px 0 0;
  font-size: clamp(14.5px, 2.2vw, 15.5px);
  color: var(--muted);
  line-height: 1.5;
}

/* Cards grid */
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cards__grid {
  display: grid;
  gap: 10px;
}

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

.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.card--featured {
  flex-direction: row;
  align-items: center;
  padding: 20px;
}

.card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card--featured .card__icon {
  overflow: hidden;
}

.card--featured .card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(20, 40, 162, 0.35), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
}

html[data-theme="light"] .card__icon {
  color: var(--accent);
  background: rgba(20, 40, 162, 0.08);
}

.card__icon .ph { font-size: 22px; }

.card__body {
  flex: 1;
  min-width: 0;
}

.card__kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}

.card__title {
  display: block;
  font-size: clamp(15.5px, 2.4vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

.card__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.48;
}

.card__go {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  background: var(--field-bg);
  color: var(--muted);
  transition: transform 0.25s var(--ease-spring), background 0.2s, color 0.2s, border-color 0.2s;
}

.card__go .ph { font-size: 16px; }

.card:hover .card__go {
  transform: translate(2px, -2px);
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.cards__grid .card {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 140px;
}

.cards__grid .card__go {
  margin-left: 0;
  margin-top: auto;
  align-self: flex-end;
}

.cards__grid .card__icon {
  overflow: hidden;
}

.cards__grid .card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cards__grid .card__title {
  font-size: clamp(16.5px, 2.85vw, 18px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.cards__grid .card__kicker {
  margin-bottom: 4px;
  letter-spacing: 0.13em;
}

.cards__grid .card__desc {
  margin-top: 5px;
  font-size: clamp(13.5px, 2vw, 14.5px);
  line-height: 1.46;
  color: var(--muted);
}

/* Panel */
.panel {
  padding: clamp(20px, 4vw, 28px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-line);
  opacity: 0.85;
}

.panel__title {
  margin: 0;
  font-size: clamp(1.28rem, 3.2vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel__text {
  margin: 8px 0 0;
  font-size: clamp(14.5px, 2.2vw, 15.5px);
  color: var(--muted);
  line-height: 1.52;
  max-width: 40ch;
}

.panel__form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 520px) {
  .panel__form {
    flex-direction: row;
    align-items: stretch;
  }
}

.field {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.field__icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}

.field:focus-within .field__icon { color: var(--accent-2); }

.field__input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--field-bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input::placeholder { color: var(--muted); }

.field__input:focus {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.panel__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.panel__hint:empty {
  display: none;
}

.panel__benefits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.panel__benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(14px, 2.1vw, 15px);
  line-height: 1.45;
  color: var(--text);
}

.panel__benefit .ph {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 17px;
  color: var(--accent-2);
}

html[data-theme="light"] .panel__benefit .ph {
  color: var(--accent);
}

.panel__link {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.panel__link:hover {
  color: var(--accent-2);
  text-decoration-color: currentColor;
}

/* Challenge panel — scoped to #news only */
#news .panel__title {
  line-height: 1.3;
  max-width: none;
}

#news .panel__text {
  max-width: none;
  margin-top: 10px;
  line-height: 1.55;
}

#news .panel__form {
  margin-top: 22px;
}

#news .panel__form .btn--primary {
  white-space: nowrap;
}

#news .panel__footer {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

#news .panel__trust {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}

#news .panel__secondary {
  margin: 0;
}

@media (max-width: 519px) {
  #news .panel__form {
    flex-direction: column;
  }

  #news .panel__form .btn--primary {
    width: 100%;
    white-space: normal;
  }
}

/* Contact */
.contact-grid {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

@media (min-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--field-bg);
  transition: transform 0.22s var(--ease-spring), border-color 0.2s, box-shadow 0.22s;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 24px rgba(20, 40, 162, 0.15);
}

.contact-card--wa:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12);
}

.contact-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(20, 40, 162, 0.3), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--glass-border);
}

.contact-card__icon .ph { font-size: 20px; }

.contact-card--wa .contact-card__icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(255, 255, 255, 0.04));
}

.contact-card--wa .contact-card__icon .ph { color: #4ade80; }

.contact-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__label {
  font-size: 14px;
  font-weight: 600;
}

.contact-card__hint {
  font-size: 12px;
  color: var(--muted);
}

.contact-card__arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.contact-card:hover .contact-card__arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 24px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-mark {
  max-height: 20px;
  width: auto;
  opacity: 0.75;
}

html[data-theme="dark"] .footer-mark--light,
html[data-theme="light"] .footer-mark--dark {
  display: none;
}

/* Reveal */
.reveal {
  animation: reveal 0.75s var(--ease) both;
}

.hero-card.reveal { animation-delay: 0.05s; }
.section__head.reveal { animation-delay: 0.08s; }
.card--featured.reveal { animation-delay: 0.1s; }
.cards__grid .card:nth-child(1).reveal { animation-delay: 0.14s; }
.cards__grid .card:nth-child(2).reveal { animation-delay: 0.18s; }
.cards__grid .card:nth-child(3).reveal { animation-delay: 0.22s; }
#news .reveal { animation-delay: 0.1s; }
#contato .reveal { animation-delay: 0.12s; }

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.8);
  outline-offset: 3px;
}

/* Wide screens — still bio-friendly but breathes */
@media (min-width: 900px) {
  :root {
    --container: min(680px, calc(100% - 48px));
  }

  .hero-card__title {
    max-width: 24ch;
  }
}

@media (max-width: 380px) {
  .site-header__inner {
    padding-inline: 8px;
    gap: 6px;
  }

  .lang-toggle {
    padding: 4px 5px 4px 8px;
    gap: 5px;
  }

  .lang-toggle__track {
    width: 68px;
    height: 30px;
  }

  .lang-toggle__icon {
    display: none;
  }

  .theme-toggle,
  .nav-toggle {
    width: 34px;
    height: 34px;
  }
}

/* Booking modal */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.booking-modal[hidden] {
  display: none;
}

body.booking-open .booking-modal {
  pointer-events: auto;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

body.booking-open .booking-modal__backdrop {
  opacity: 1;
}

.booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.38s var(--ease-spring), opacity 0.3s var(--ease);
}

html[data-theme="dark"] .booking-modal__dialog.glass {
  background: rgba(14, 22, 40, 0.88);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

html[data-theme="light"] .booking-modal__dialog.glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

body.booking-open .booking-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.booking-modal__dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-line);
  z-index: 2;
}

.booking-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 12px;
}

.booking-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.booking-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.booking-modal__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.booking-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  background: var(--field-bg);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.booking-modal__close:hover {
  transform: scale(1.06);
  background: var(--btn-ghost-bg);
}

.booking-modal__close .ph {
  font-size: 18px;
}

.booking-modal__body {
  padding: 0 22px 16px;
  overflow-y: auto;
  flex: 1;
}

.booking-times-popover {
  position: fixed;
  z-index: 90;
  width: 220px;
  pointer-events: none;
}

.booking-times-popover:not([hidden]) {
  pointer-events: auto;
}

.booking-times-popover__panel {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, 0.08);
  transform-origin: top left;
  animation: booking-popover-in 0.3s var(--ease-spring);
}

@keyframes booking-popover-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateX(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

html[data-theme="dark"] .booking-times-popover__panel {
  background: rgba(16, 24, 44, 0.94);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

html[data-theme="light"] .booking-times-popover__panel {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.booking-times-popover__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.booking-times-popover__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.booking-times-popover__date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-transform: capitalize;
}

.booking-times-popover__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  background: var(--field-bg);
  transition: transform 0.2s var(--ease);
}

.booking-times-popover__close:hover {
  transform: scale(1.06);
}

.booking-times-popover__close .ph {
  font-size: 14px;
}

.booking-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.booking-calendar__month {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.booking-calendar__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  background: var(--field-bg);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.booking-calendar__arrow:hover {
  transform: scale(1.06);
  border-color: rgba(59, 130, 246, 0.4);
}

.booking-calendar__arrow .ph {
  font-size: 16px;
}

.booking-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.booking-calendar__weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 4px 0;
}

.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.booking-day {
  aspect-ratio: 1;
  min-height: 38px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background 0.18s, border-color 0.18s, transform 0.18s var(--ease-spring), color 0.18s;
}

.booking-day--empty {
  pointer-events: none;
}

.booking-day.is-disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.booking-day:not(.is-disabled):not(.booking-day--empty):hover {
  background: var(--field-bg);
  border-color: var(--glass-border);
}

.booking-day.is-today:not(.is-selected) {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--accent-2);
}

.booking-day.is-selected {
  background: linear-gradient(135deg, #1428a2, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(20, 40, 162, 0.4);
  transform: scale(1.04);
}

.booking-times__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.booking-time {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--field-bg);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s, background 0.18s, color 0.18s;
}

.booking-time:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.booking-time.is-selected {
  background: linear-gradient(135deg, #1428a2, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 40, 162, 0.35);
}

.booking-times__empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.booking-summary {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(20, 40, 162, 0.12), rgba(59, 130, 246, 0.06));
}

.booking-summary__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(20, 40, 162, 0.25);
  border: 1px solid var(--glass-border);
  color: #93c5fd;
}

.booking-summary__icon .ph {
  font-size: 20px;
}

.booking-summary__text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.booking-modal__foot {
  padding: 12px 22px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}

.booking-modal__hint {
  margin: 0 0 10px;
  min-height: 1.2em;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ── Responsive: mobile & tablet (desktop ≥768px unchanged) ── */
html {
  overflow-x: clip;
}

.page,
.container,
.panel,
.hero-card,
.card,
.contact-card {
  min-width: 0;
}

.hero-card__title,
.hero-card__lede,
.panel__title,
.panel__text,
.card__title,
.card__desc,
.contact-card__label {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Tablet: 2-column cards between phone and desktop nav */
@media (min-width: 540px) and (max-width: 767px) {
  .cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --container: min(640px, calc(100% - max(20px, env(safe-area-inset-left) + env(safe-area-inset-right) + 16px)));
  }

  .btn {
    min-height: 44px;
    padding-block: 12px;
  }

  .theme-toggle,
  .nav-toggle,
  .booking-modal__close,
  .booking-calendar__arrow,
  .booking-times-popover__close {
    min-width: 44px;
    min-height: 44px;
  }

  .hero-card__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card__cta .btn {
    width: 100%;
  }

  .card--featured {
    flex-wrap: wrap;
    gap: 12px;
  }

  .card--featured .card__go {
    margin-left: 0;
  }

  .site-footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .booking-modal__dialog {
    width: min(420px, calc(100vw - 32px));
  }

  .booking-modal__head,
  .booking-modal__body,
  .booking-modal__foot {
    padding-inline: 16px;
  }

  .booking-day {
    min-height: 44px;
  }

  .booking-time {
    min-height: 44px;
    padding-block: 12px;
  }

  .booking-times-popover {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none;
  }

  .booking-times-popover__panel {
    width: 100%;
  }

  .booking-summary {
    flex-wrap: wrap;
  }
}

@media (max-width: 639px) {
  .cards__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-card {
    padding: clamp(22px, 5.5vw, 28px);
  }

  .hero-card__title {
    max-width: none;
  }

  .panel {
    padding: clamp(18px, 4.5vw, 24px);
  }

  .card {
    padding: 14px 16px;
  }

  .contact-card {
    padding: 12px 14px;
  }

  .field__input {
    font-size: 16px;
  }
}

/* Footer e-mail CTA (index) */
.site-footer + .section .container {
  display: flex;
  justify-content: center;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.site-footer + .section .btn {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 400px) {
  .site-footer + .section .btn {
    width: auto;
    max-width: min(100%, 360px);
  }
}

/* Challenge landings: prevent horizontal overflow on small screens */
@media (max-width: 640px) {
  [class$="-container"],
  [class$="-panel"],
  [class$="-lesson"] {
    max-width: 100%;
    box-sizing: border-box;
  }

  iframe,
  video,
  embed {
    max-width: 100%;
  }
}

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

  .ambient__orb { animation: none; }
  .btn--shine::after { animation: none; }
  .booking-times-popover__panel { animation: none; }
}
