/*
 * ControlWase — site institucional.
 * Tokens iguais aos do painel (tarefaz/src/styles.css): azul institucional sobre neutros slate,
 * Inter, raios 6/8/12 px. Só tema claro: as capturas do painel são claras.
 */

:root {
  color-scheme: light;

  --bg: oklch(0.985 0.002 247);
  --fg: oklch(0.208 0.03 262);
  --card: oklch(1 0 0);
  --muted: oklch(0.965 0.005 250);
  --muted-fg: oklch(0.49 0.03 257);
  --accent: oklch(0.952 0.012 255);
  --border: oklch(0.915 0.008 252);
  --input: oklch(0.875 0.012 252);
  --ring: oklch(0.55 0.15 259);
  --primary: oklch(0.42 0.135 259);
  --primary-hover: oklch(0.37 0.13 259);
  --primary-fg: oklch(0.985 0.004 250);
  --success: oklch(0.5 0.115 155);
  --warning: oklch(0.54 0.115 62);
  --destructive: oklch(0.52 0.19 27);
  --navy-deep: oklch(0.3 0.08 260);
  --on-navy: oklch(0.96 0.01 250);
  --on-navy-muted: oklch(0.84 0.03 255);

  --badge-success-bg: color-mix(in oklab, var(--success) 9%, var(--card));
  --badge-success-fg: color-mix(in oklab, var(--success) 82%, var(--fg));
  --badge-success-border: color-mix(in oklab, var(--success) 24%, var(--card));
  --badge-warning-bg: color-mix(in oklab, var(--warning) 10%, var(--card));
  --badge-warning-fg: color-mix(in oklab, var(--warning) 82%, var(--fg));
  --badge-warning-border: color-mix(in oklab, var(--warning) 26%, var(--card));
  --badge-danger-bg: color-mix(in oklab, var(--destructive) 8%, var(--card));
  --badge-danger-fg: color-mix(in oklab, var(--destructive) 85%, var(--fg));
  --badge-danger-border: color-mix(in oklab, var(--destructive) 24%, var(--card));

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px 0 oklch(0.2 0.03 260 / 0.05);
  --shadow-lg: 0 1px 2px 0 oklch(0.2 0.03 260 / 0.05),
    0 24px 48px -16px oklch(0.2 0.03 260 / 0.18);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(1120px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-lg {
  height: 46px;
  padding: 0 20px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-xs);
}

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

.btn-outline {
  background: var(--card);
  border-color: var(--input);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--accent);
}

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

.btn-light {
  background: var(--on-navy);
  color: var(--navy-deep);
}

.btn-light:hover {
  background: oklch(1 0 0);
}

.btn-outline-light {
  border-color: oklch(1 0 0 / 0.35);
  color: var(--on-navy);
}

.btn-outline-light:hover {
  background: oklch(1 0 0 / 0.08);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link .icon {
  width: 16px;
  height: 16px;
}

/* Marca */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-name span {
  color: #184a95;
}

/* Cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
}

.nav > a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav > a:hover {
  color: var(--fg);
  background: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 1099px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px oklch(0.2 0.03 260 / 0.15);
  }

  .nav > a {
    padding: 12px 10px;
    font-size: 16px;
  }

  .nav-actions {
    flex-direction: column;
    margin: 12px 0 0;
  }

  .nav-actions .btn {
    height: 46px;
  }

  .nav-actions .btn-ghost {
    border-color: var(--input);
    background: var(--card);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .site-header.is-open .icon-open {
    display: none;
  }

  .site-header.is-open .icon-close {
    display: block;
  }
}

/* Textos de seção */

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: 34px;
  line-height: 42px;
  font-weight: 650;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 20px;
  max-width: 600px;
  color: var(--muted-fg);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

.muted {
  color: var(--muted-fg);
}

.section {
  padding-block: 96px;
}

.section-alt {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

/* Abertura */

.hero {
  padding-top: 72px;
  padding-bottom: 72px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in oklab, var(--primary) 7%, transparent), transparent),
    var(--bg);
}

.hero-copy {
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 20px;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.facts .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.hero-visual {
  position: relative;
  margin-top: 56px;
  padding-right: 120px;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--input);
}

.url {
  flex: 0 1 360px;
  overflow: hidden;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-fg);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caption {
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 13px;
  line-height: 18px;
}

/* Celular (reprodução das telas do app) — medidas em em, a escala vem de --w. */

.phone {
  --w: 270px;
  width: var(--w);
  font-size: calc(var(--w) / 22.5);
  padding: 0.7em;
  border-radius: 3em;
  background: oklch(0.22 0.02 262);
  box-shadow:
    0 0 0 1px oklch(0.4 0.02 262),
    0 32px 64px -20px oklch(0.2 0.03 260 / 0.45);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  border-radius: 2.4em;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 1.6em 0.4em;
  font-size: 0.95em;
  font-weight: 600;
}

.phone-dots {
  width: 3.6em;
  height: 0.9em;
  border-radius: 1em;
  background:
    linear-gradient(90deg, var(--fg) 0 30%, transparent 30% 40%, var(--fg) 40% 62%, transparent 62% 72%, var(--fg) 72%);
  opacity: 0.8;
}

.phone .icon {
  width: 1.4em;
  height: 1.4em;
}

.dev {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9em;
  padding: 0.8em 1.2em 1.2em;
}

.dev-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1em;
  background: var(--card);
}

.dev-card-head {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.9em 1em;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.dev-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  flex-shrink: 0;
  border-radius: 0.7em;
  background: var(--primary);
  color: var(--primary-fg);
}

.dev-card-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em 1em;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.85em;
  font-weight: 600;
}

.dev-col {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.dev-col small,
.dev-tag {
  color: var(--muted-fg);
  font-size: 0.85em;
}

.dev-col b {
  font-weight: 500;
}

.dev-title {
  margin-top: 0.2em;
  font-weight: 600;
}

.dev-apps {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1em;
  background: var(--card);
}

.dev-apps li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-height: 3.6em;
  padding: 0.4em 1em;
  border-bottom: 1px solid var(--border);
}

.dev-apps li:last-child {
  border-bottom: 0;
}

.app-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 0.8em;
  background: var(--muted);
  color: var(--primary);
}

.app-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.left {
  color: var(--muted-fg);
  font-size: 0.85em;
  white-space: nowrap;
}

.left.warn {
  color: var(--badge-warning-fg);
}

.dev-note {
  color: var(--muted-fg);
  font-size: 0.85em;
}

.dev-spacer {
  flex: 1;
}

.dev-warn {
  display: flex;
  gap: 0.6em;
  padding: 0.8em 0.9em;
  border: 1px solid var(--badge-warning-border);
  border-radius: 0.8em;
  background: var(--badge-warning-bg);
  font-size: 0.85em;
}

.dev-warn .icon {
  color: var(--badge-warning-fg);
}

.dev-warn b {
  font-weight: 600;
}

.dev-sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  color: var(--muted-fg);
  font-size: 0.8em;
}

.dev-sync i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--success);
}

.dev-locked {
  gap: 1.2em;
  padding: 1.2em 1.6em 1.6em;
}

.dev-managed {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted-fg);
  font-size: 0.85em;
}

.dev-managed .icon {
  width: 1.2em;
  height: 1.2em;
}

.dev-lock-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  text-align: center;
}

.lock-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.4em;
  height: 5.4em;
  border: 1px solid var(--badge-danger-border);
  border-radius: 50%;
  background: var(--badge-danger-bg);
  color: var(--badge-danger-fg);
}

.lock-ring .icon {
  width: 2.4em;
  height: 2.4em;
}

.dev-lock-title {
  font-size: 1.45em;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.dev-lock-text {
  color: var(--muted-fg);
  text-wrap: pretty;
}

.dev-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 3.6em;
  border-radius: 0.6em;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 500;
}

.dev-foot {
  color: var(--muted-fg);
  font-size: 0.85em;
  text-align: center;
}

/* O celular acompanha a largura da captura e desce além dela; a altura mínima reserva o espaço. */
.hero-visual {
  --phone-w: clamp(200px, 22vw, 272px);
  min-height: calc(var(--phone-w) * 1.93 + 56px);
}

.phone-hero {
  position: absolute;
  top: 56px;
  right: 0;
  --w: var(--phone-w);
}

/* Cartões */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 96px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

.section-alt .card {
  background: var(--bg);
  box-shadow: none;
}

.card p {
  color: var(--muted-fg);
  text-wrap: pretty;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--primary);
}

.card-row {
  flex-direction: row;
  gap: 16px;
}

.card-row .card-icon {
  margin-bottom: 0;
}

.card-row h3 {
  margin-bottom: 6px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success {
  border-color: var(--badge-success-border);
  background: var(--badge-success-bg);
  color: var(--badge-success-fg);
}

.badge-warning {
  border-color: var(--badge-warning-border);
  background: var(--badge-warning-bg);
  color: var(--badge-warning-fg);
}

.badge-muted {
  background: var(--muted);
  color: var(--muted-fg);
}

.badge-danger {
  border-color: var(--badge-danger-border);
  background: var(--badge-danger-bg);
  color: var(--badge-danger-fg);
}

/* Passos */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.step p {
  color: var(--muted-fg);
  text-wrap: pretty;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 15px;
  font-weight: 600;
}

.code {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.code span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Recursos com captura */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
}

.feature + .feature {
  margin-top: 96px;
}

.feature-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.feature-reverse .feature-copy {
  order: 2;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.feature-copy h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: -0.019em;
}

.feature-copy > p:not(.eyebrow) {
  color: var(--muted-fg);
  text-wrap: pretty;
}

.feature-copy .card-icon,
.feature-copy .eyebrow {
  margin-bottom: 0;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--muted-fg);
  text-wrap: pretty;
}

.checks li b {
  color: var(--fg);
  font-weight: 600;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--badge-success-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23177245' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--badge-success-border);
}

.shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.shot-narrow {
  justify-self: center;
  max-width: 520px;
}

.lock-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.shot-strip {
  width: 100%;
}

.phone-lock {
  --w: 250px;
}

/* Preço */

/* Mensal ou anual: o atributo data-billing da seção decide qual preço aparece. */
.pricing[data-billing="anual"] .when-mensal,
.pricing[data-billing="mensal"] .when-anual {
  display: none;
}

.billing {
  display: flex;
  width: fit-content;
  margin: -16px auto 40px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

.billing button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.billing button[aria-pressed="true"] {
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}

.billing-save {
  padding: 0 6px;
  border: 1px solid var(--badge-success-border);
  border-radius: 4px;
  background: var(--badge-success-bg);
  color: var(--badge-success-fg);
  font-size: 12px;
  line-height: 18px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.plan-featured {
  border-color: var(--primary);
  background: var(--card);
  box-shadow:
    0 0 0 1px var(--primary),
    var(--shadow-lg);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
}

.plan h3 {
  font-size: 20px;
  line-height: 28px;
}

/* Duas linhas reservadas: os preços ficam alinhados mesmo quando a frase quebra. */
.plan-for {
  min-height: 48px;
  margin-top: 4px;
  color: var(--muted-fg);
  font-size: 15px;
}

.plan-price {
  margin-top: 24px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 650;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  color: var(--muted-fg);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-note {
  min-height: 20px;
  margin-top: 4px;
  color: var(--badge-success-fg);
  font-size: 13px;
  line-height: 20px;
}

.pricing[data-billing="mensal"] .plan-note {
  color: var(--muted-fg);
}

.plan-devices {
  margin: 20px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--fg);
  font-weight: 600;
  text-align: center;
}

.plan .checks {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.plans-included {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.plans-included-title {
  margin-bottom: 20px;
  font-weight: 600;
}

.plans-included .checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
}

.plans-footnote {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  text-wrap: pretty;
}

/* Dúvidas */

.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--muted-fg);
  transition: transform 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 680px;
  padding-bottom: 20px;
  color: var(--muted-fg);
  text-wrap: pretty;
}

/* Chamada final e rodapé */

.cta-band {
  background: var(--navy-deep);
  color: var(--on-navy);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 72px;
}

.cta-row h2 {
  font-size: 30px;
  line-height: 38px;
}

.cta-row p {
  margin-top: 12px;
  color: var(--on-navy-muted);
}

.cta-row .actions {
  flex-shrink: 0;
  margin-top: 0;
}

.site-footer {
  padding-top: 48px;
  background: var(--card);
  color: var(--muted-fg);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand {
  color: var(--fg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-legal {
  margin-top: 40px;
  padding-block: 20px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 13px;
}

/* Responsivo */

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin-inline: auto;
  }

  /* Uma coluna: o plano recomendado vem primeiro e não há preços lado a lado para alinhar. */
  .plan-featured {
    order: -1;
  }

  .plan-for {
    min-height: 0;
  }

  .plans-included .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature-reverse .feature-copy {
    order: 0;
  }

  .shot-narrow {
    justify-self: start;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  h1 {
    font-size: 34px;
    line-height: 42px;
  }

  h2,
  .cta-row h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .lead,
  .section-lead {
    font-size: 17px;
    line-height: 26px;
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .section-head {
    margin-bottom: 32px;
  }

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

  .grid-4 {
    margin-top: 64px;
  }

  .feature + .feature {
    margin-top: 64px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 40px;
    padding-right: 0;
  }

  /* No celular a captura do painel fica pequena: a tela do app aparece logo abaixo dela. */
  .phone-hero {
    position: static;
    margin: 32px auto 0;
    --w: 250px;
  }

  .browser-bar {
    height: 32px;
  }

  .url {
    display: none;
  }

  .plan,
  .plans-included {
    padding: 24px;
  }

  .plans-included .checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .billing {
    margin-top: -8px;
  }

  .faq summary {
    font-size: 16px;
  }
}
