/* =============================================================================
   Consulta — Design System (premium)
   Tipografia editorial (Fraunces display + Inter), paleta com profundidade,
   superfícies em camadas, gradientes sutis e micro-interações.
   ============================================================================= */
:root {
  /* Marca / teal com profundidade */
  --brand-900: #0A3B40;
  --brand-800: #0E4F55;
  --brand-700: #0E5C63;
  --brand-600: #157179;
  --brand-500: #1F8A8F;
  --brand-400: #2A9AA0;
  --brand-300: #6FBDB7;
  --brand-100: #DCEFEC;

  /* Acento quente (CTA de destaque, "sua vez") */
  --accent: #E0913B;
  --accent-600: #C9792A;
  --accent-100: #FBEFDD;

  /* Neutros quentes */
  --bg: #F4F1EA;
  --bg-2: #EFE9DF;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --ink: #14302E;
  --ink-soft: #355049;
  --muted: #6B7B77;
  --line: #E7E1D5;
  --line-soft: #F0EBE1;

  /* Sinal */
  --ok: #2F8A5B;
  --ok-100: #E3F3EA;
  --warn: #B5852A;
  --warn-100: #FBF1D8;
  --danger: #B4453A;

  /* Forma / profundidade */
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10,59,64,.05);
  --shadow: 0 2px 6px rgba(10,59,64,.06), 0 12px 28px rgba(10,59,64,.07);
  --shadow-lg: 0 8px 24px rgba(10,59,64,.10), 0 30px 60px rgba(10,59,64,.12);
  --ring: 0 0 0 4px rgba(31,138,143,.16);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(31,138,143,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(224,145,59,.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-optical-sizing: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-800); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ------- Layout ------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 1.25rem 1.25rem; }
.wrap.narrow { max-width: 560px; }
.stack > * + * { margin-top: 1.1rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ------- Topbar (frosted) ------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,250,246,.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.16rem; color: var(--brand-700); letter-spacing: -.02em; }
.brand:hover { color: var(--brand-800); }
.brand .logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: var(--shadow-sm); }
.brand .logo svg { width: 17px; height: 17px; }
.site-header nav { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.credit a { color: var(--brand-700); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(21,113,121,.32);
  transition: color .18s ease, text-decoration-color .18s ease; }
.credit a:hover { color: var(--brand-800); text-decoration-color: var(--brand-700); }

/* ------- Footer global (privacidade/termos) + páginas legais ------- */
.site-footer { margin-top: 3.5rem; border-top: 1px solid var(--line-soft); padding: 1.6rem 0 2.2rem;
  background: linear-gradient(180deg, transparent, rgba(14,92,99,.03)); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: .9rem 2rem; font-size: .88rem; }
.foot-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); white-space: nowrap; }
.foot-brand .logo { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: var(--shadow-sm); }
.foot-brand .logo svg { width: 13px; height: 13px; }
.foot-nome { font-weight: 700; color: var(--brand-700); letter-spacing: -.01em; }
.foot-sep { color: var(--line); }
.foot-by a { color: var(--brand-700); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(21,113,121,.32); transition: color .18s ease, text-decoration-color .18s ease; }
.foot-by a:hover { color: var(--brand-800); text-decoration-color: var(--brand-700); }
.site-footer nav { display: inline-flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  justify-self: end; }
.site-footer nav a { color: var(--ink-soft); font-weight: 500; padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; }
.site-footer nav a:hover { color: var(--brand-700); border-bottom-color: rgba(21,113,121,.45); }
.site-footer nav a.foot-mail { color: var(--brand-600); font-weight: 600; }
.foot-copy { grid-column: 1 / -1; color: var(--muted); font-size: .8rem;
  border-top: 1px solid var(--line-soft); padding-top: .85rem; }
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-self: start; gap: .9rem 1.3rem; }
}
.legal h1 { font-size: 1.9rem; margin: 0 0 .3rem; }
.legal h2 { font-size: 1.2rem; margin: 1.4rem 0 .3rem; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }

/* ------- Cards / surfaces ------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.35rem 1.4rem;
}
.card.flush { padding: 0; overflow: hidden; }
.card.tint { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.hairline { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ------- Pills / chips / badges ------- */
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px; background: var(--brand-100); color: var(--brand-800); letter-spacing: .01em; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600;
  padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface); }
.chip.ok { background: var(--ok-100); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-100); color: var(--warn); border-color: transparent; }
.chip.accent { background: var(--accent-100); color: var(--accent-600); border-color: transparent; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip .dot.live { animation: pulse 1.5s ease-in-out infinite; }

/* ------- Buttons ------- */
.btn {
  --bg1: var(--brand-600); --bg2: var(--brand-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: .72rem 1.15rem; border-radius: 13px; border: 1px solid transparent; min-height: 46px;
  color: #fff; background: linear-gradient(145deg, var(--bg1), var(--bg2));
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); filter: saturate(108%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.big { width: 100%; min-height: 60px; font-size: 1.08rem; border-radius: 16px; box-shadow: var(--shadow); }
.btn.accent { --bg1: var(--accent); --bg2: var(--accent-600); }
.btn.secondary { background: var(--surface); color: var(--brand-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { color: var(--brand-800); background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line-soft); box-shadow: none; min-height: 40px; padding: .45rem .8rem; }
.btn.ghost:hover { color: var(--ink); background: var(--surface); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------- Hero (home) ------- */
.hero { padding: 3rem 0 1rem; display: grid; gap: 2.2rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero .eyebrow { color: var(--brand-600); font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: .6rem 0 .7rem; }
.hero h1 em { font-style: italic; color: var(--brand-600); }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.hero .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-art { position: relative; }

/* mini ilustração de fila no hero (CSS puro) */
.queue-illu { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 1.2rem; display: grid; gap: .6rem; }
.queue-illu .row { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft); }
.queue-illu .row.live { border-color: var(--brand-300); box-shadow: var(--ring); }
.queue-illu .row .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg,var(--brand-300),var(--brand-600)); }
.queue-illu .row .ln { flex: 1; height: 9px; border-radius: 6px; background: var(--line); }
.queue-illu .row .ln.s { width: 55%; }
.queue-illu .row .t { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { display: grid; gap: .5rem; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); }
.feature .ic svg { width: 22px; height: 22px; }

/* ------- App shell (painel) ------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head h2 { font-size: 1.7rem; margin: .2rem 0 .1rem; }
.select { font: inherit; font-weight: 600; color: var(--ink-soft); padding: .6rem .9rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); min-height: 44px; }

/* ------- Action bar ------- */
.actionbar { display: grid; gap: .8rem; }
.actionbar .status { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink-soft); }

/* ------- Fila (blocos premium) ------- */
.fila { display: grid; gap: .7rem; }
.qitem { position: relative; }
.bloco {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .15s ease, border-color .2s;
}
.bloco:hover { box-shadow: var(--shadow); }
.bloco .av {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: .95rem; letter-spacing: .02em;
  background: linear-gradient(145deg, var(--brand-400, #2a9aa0), var(--brand-700));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.bloco .pos-badge { position: absolute; left: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-weight: 700;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); z-index: 1; }
.bloco .info { min-width: 0; flex: 1; }
.bloco .nome { font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.bloco .sub { font-size: .82rem; color: var(--muted); }
.bloco .faixa { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line-soft); padding: .3rem .6rem; border-radius: 10px; font-size: .88rem; }

/* Em atendimento: anel cônico animado */
.qitem.fazendo .bloco { border-color: transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  conic-gradient(from var(--a,0deg), var(--brand-500), var(--accent), var(--brand-500)) border-box;
  border: 2px solid transparent; animation: spin 6s linear infinite; box-shadow: var(--shadow); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.qitem.fazendo .av { background: linear-gradient(145deg, var(--accent), var(--accent-600)); }

.qitem.feito .bloco { opacity: .6; background: var(--surface-2); }
.qitem.feito .av { background: linear-gradient(145deg, #9fb3af, #6b7b77); }

.qitem .acts { display: flex; gap: .5rem; margin-top: .45rem; padding-left: .3rem; }

/* ------- Banner honestidade ------- */
.banner-honestidade { font-size: .9rem; color: var(--warn); background: var(--warn-100);
  border: 1px solid #F0E2BE; border-radius: 14px; padding: .75rem .9rem; line-height: 1.45; }

/* ------- Visão do paciente: anel de progresso ------- */
.paciente-hero { text-align: center; display: grid; gap: .35rem; }
.ring {
  --p: 0; width: 188px; height: 188px; margin: .4rem auto .2rem; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--brand-500) calc(var(--p) * 1%), var(--brand-100) 0);
  box-shadow: var(--shadow);
}
.ring.accent { background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-100) 0); }
.ring .num { font-family: var(--display); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--brand-700); }
.ring.accent .num { color: var(--accent-600); }
.ring .ord { font-size: 1rem; color: var(--muted); margin-top: .15rem; }
.faixa-box { display: inline-flex; flex-direction: column; gap: .15rem; padding: .8rem 1.4rem; border-radius: 16px;
  background: var(--brand-100); }
.faixa-box .h { font-variant-numeric: tabular-nums; font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--brand-800); }

/* ------- Forms ------- */
.field { display: grid; gap: .35rem; margin-bottom: .95rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.field input, .field select { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 12px; min-height: 46px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
/* Campo de código OTP (centralizado, sem estourar o card) */
.otp-input { font-size: 1.5rem; letter-spacing: .5em; text-align: center; padding-left: calc(.85rem + .5em); font-variant-numeric: tabular-nums; }
.field input:focus, .field select:focus { border-color: var(--brand-400, #2a9aa0); box-shadow: var(--ring); outline: none; }
.check { display: flex; gap: .55rem; align-items: center; color: var(--ink-soft); }

.notice { padding: .8rem 1rem; border-radius: 14px; font-size: .94rem; }
.notice.ok { background: var(--ok-100); color: var(--ok); }
.notice.err { background: #FBEDEB; color: var(--danger); }
.notice.info { background: var(--brand-100); color: var(--brand-800); }
.notice.warn { background: var(--warn-100); color: var(--warn); }

/* ------- HTMX transitions ------- */
.fila, #fila-container, #card { transition: opacity .18s ease; }
.htmx-swapping { opacity: 0; }
.htmx-settling .bloco { animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ------- Agendamento (portal) ------- */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.choice:hover { border-color: var(--brand-300); color: var(--brand-800); }
.choice.sel { background: linear-gradient(145deg, var(--brand-600), var(--brand-800)); color: #fff; border-color: transparent; }
.daystrip { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .4rem; -webkit-overflow-scrolling: touch; }
.day { flex: none; text-align: center; padding: .55rem .7rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); min-width: 66px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--brand-300); color: var(--brand-800); }
.day.sel { background: linear-gradient(145deg, var(--brand-600), var(--brand-800)); color: #fff; border-color: transparent; }
.day small { display: block; font-weight: 500; font-size: .7rem; opacity: .85; text-transform: capitalize; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: .55rem; }
.slots form { margin: 0; }
.slot { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-800); cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s; }
.slot:hover { background: var(--brand-100); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.steplabel { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); }

/* ------- Relatórios / KPIs ------- */
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 1.05rem 1.1rem; }
.kpi .lbl { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi .big { font-family: var(--display); font-size: 2.1rem; font-weight: 600; line-height: 1.05; margin-top: .25rem;
  font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi .big small { font-size: .9rem; color: var(--muted); font-family: var(--font); font-weight: 600; }
.kpi.good .big { color: var(--ok); }
.kpi.warn .big { color: var(--warn); }
.kpi.bad .big { color: var(--danger); }
.barrow { display: grid; grid-template-columns: 1fr auto; gap: .5rem .8rem; align-items: center; margin: .35rem 0; }
.barrow .track { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.barrow .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.barrow .n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-soft); }

/* ------- Responsivo ------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.6rem; }
  .hero-art { order: -1; }
  .ring { width: 168px; height: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  .qitem.fazendo .bloco { animation: none; }
  * { scroll-behavior: auto; }
}

/* Card de plano em destaque (âncora Pro) na página de preços */
.plano-destaque { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }


/* ------- Página de preços — cards premium ------- */
.planos { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch; margin: 1.6rem 0 .4rem; }
.plano { display: flex; flex-direction: column; gap: .45rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem; transition: transform .15s ease, box-shadow .2s ease; }
.plano:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plano.destaque { background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-color: var(--brand-300); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plano.destaque:hover { transform: translateY(-13px); }
.plano-badge { min-height: 1.9rem; }
.plano h3 { font-size: 1.45rem; margin: 0; }
.plano .desc { color: var(--muted); margin: 0; min-height: 2.7em; }
.plano .preco-wrap { min-height: 3.6rem; margin: .3rem 0 .1rem; }
.plano .preco { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plano .preco b { font-family: var(--display); font-weight: 600; font-size: 2.1rem;
  color: var(--ink); line-height: 1; }
.plano .preco small { color: var(--muted); font-size: .95rem; }
.plano .assento { color: var(--muted); font-size: .88rem; margin: .25rem 0 0; }
.plano .quota { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--brand-800); background: var(--brand-100);
  padding: .32rem .7rem; border-radius: 999px; }
.plano .feats { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .6rem; }
.plano .feats li { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink-soft);
  font-size: .95rem; line-height: 1.35; }
.plano .feats li::before { content: "\2713"; flex: 0 0 auto; width: 20px; height: 20px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  margin-top: .06rem; background: var(--ok-100); color: var(--ok); font-size: .72rem; font-weight: 800; }
.plano .cta { margin-top: auto; padding-top: 1.1rem; display: grid; gap: .5rem; }
.plano .cta .trial { color: var(--muted); font-size: .85rem; margin: 0; text-align: center; }
@media (max-width: 820px) {
  .planos { grid-template-columns: 1fr; }
  .plano.destaque, .plano.destaque:hover { transform: none; }
}

/* toggle de ciclo (mensal/anual) sem recarregar */
.plano .preco-mensal, .plano .preco-anual { align-items: baseline; gap: .4rem; }
.plano .preco-mensal { display: inline-flex; }
.plano .preco-anual { display: none; }
.planos.anual .plano .preco-mensal { display: none; }
.planos.anual .plano .preco-anual { display: inline-flex; }
.choice { cursor: pointer; }

/* ROI "vale a pena?" — comparação premium (custo de 1 falta x mensalidade) */
.roi .roi-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.roi .roi-head h3 { margin: 0; }
.roi-bars { display: grid; gap: 1rem; margin: .7rem 0 .2rem; }
.roi-row { display: grid; grid-template-columns: minmax(110px, auto) 1fr auto; align-items: center; gap: 1rem; }
.roi-label { color: var(--ink-soft); font-size: .95rem; }
.roi-track { height: 14px; border-radius: 999px; background: var(--bg-2); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(10,59,64,.06); }
.roi-fill { height: 100%; border-radius: 999px; }
.roi-fill.falta { background: linear-gradient(90deg, var(--accent), var(--accent-600)); }
.roi-fill.plano { background: linear-gradient(90deg, var(--brand-400), var(--brand-700)); }
.roi-val { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.roi-nota { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink-soft); margin: .4rem 0 0; }
.roi-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--ok-100); color: var(--ok);
  font-weight: 800; font-size: .78rem; margin-top: .05rem; }
@media (max-width: 560px) {
  .roi-row { grid-template-columns: 1fr auto; }
  .roi-row .roi-track { grid-column: 1 / -1; order: 3; }
}
