/* ════════════════════════════════════════════════════════
   COMPARAR · MILHAS — Sky Powder + Card v2
   ════════════════════════════════════════════════════════ */

:root {
  /* palette · Sky Powder */
  --cream:        #f1f5fa;
  --cream-warm:   #f7f9fc;
  --cream-deep:   #dde7f0;
  --white:        #ffffff;

  --forest:       #0e2540;
  --forest-soft:  #133258;
  --forest-line:  #1c4368;

  --ink:          #0e2540;
  --ink-soft:     #2c4366;
  --sage:         #6b7d97;
  --sage-d:       #9aabbf;

  --mint:         #4d8fd1;
  --mint-deep:    #2e6cb0;
  --mint-glow:    rgba(77, 143, 209, 0.18);
  --mint-bg:      #cfe1f3;

  --gold:         #c9a96a;
  --gold-deep:    #a87a3d;

  --coral:        #c1392b;
  --coral-bg:     #fde7e3;
  --warn:         #b07a1a;
  --warn-bg:      #f6e7c4;
  --green:        #2f7a5a;
  --green-bg:     #d8e8df;

  /* surfaces */
  --rule-cream:        #dde7f0;
  --rule-cream-strong: #c5d3e2;
  --rule-ink:          rgba(14, 37, 64, 0.10);
  --rule-ink-strong:   rgba(14, 37, 64, 0.20);
  --rule-on-dark:      rgba(241, 245, 250, 0.14);
  --rule-on-dark-s:    rgba(241, 245, 250, 0.30);

  /* typography */
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  /* layout */
  --max:    1180px;
  --pad-x:  clamp(20px, 4vw, 56px);
  --pad-y:  clamp(28px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(820px 480px at 92% -8%, var(--mint-glow), transparent 60%),
    radial-gradient(900px 540px at -8% 112%, rgba(77, 143, 209, 0.10), transparent 60%),
    var(--cream);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
a { color: var(--mint-deep); text-decoration: none; transition: color .18s; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* utilities */
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.dim  { color: var(--sage); }
.pos  { color: var(--mint-deep); }
.neg  { color: var(--coral); }
.warn { color: var(--warn); }
.accent { color: var(--mint-deep); }

.micro {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.on-bone .micro,
.card .micro,
.plan-summary .micro,
.plan-note .micro,
.stamp .micro,
.plan-disclaimer .micro {
  color: var(--sage);
}

/* container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ════════════════════════════════════════════════════════
   MASTHEAD
   ════════════════════════════════════════════════════════ */
.masthead {
  position: relative;
  padding-top: clamp(8px, 1.5vw, 16px);
  padding-bottom: 0;
  border-bottom: 1px solid var(--rule-ink);
}
.masthead::after {
  content: '';
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  bottom: -1px;
  height: 2px;
  background: var(--mint);
  max-width: var(--max);
  margin: 0 auto;
  border-radius: 99px;
}
.masthead-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}
.brand { display: flex; flex-direction: column; gap: 6px; transform: translateY(-15px); }
.brand-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.brand {
  position: relative;
}
.brand-name {
  margin: 0;
}
.brand-logo-main {
  height: clamp(60px, 10vw, 135px);
  width: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1),
              filter 0.4s ease;
}
.brand-logo-main:hover {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 8px 24px rgba(128, 0, 64, .35));
}

.masthead-logo-right {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 120px;
  width: auto;
  max-width: none;
  display: block;
  mix-blend-mode: multiply;
}

.tagline {
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  line-height: 1.4;
  border-left: 3px solid var(--mint);
  padding-left: 18px;
}
.issue-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--mono);
  text-align: right;
}
.issue-stamp .label {
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--sage);
}
.issue-stamp .value {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.issue-stamp .ed { font-size: 11px; color: var(--sage); }

/* ════════════════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule-ink);
  margin-top: 18px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sage);
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  margin-bottom: -1px;
  position: relative;
}
.tab:hover { color: var(--ink); }
.tab .tab-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint-deep);
  letter-spacing: 0.14em;
}
.tab .tab-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-style: normal;
}
.tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--mint);
}
.tab.is-active::before {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 3px;
  background: var(--mint);
  transform: translateY(50%);
  border-radius: 99px;
}

/* ════════════════════════════════════════════════════════
   BOARDING PASS — controls (forest dark surface)
   ════════════════════════════════════════════════════════ */
.boarding-pass {
  margin-top: 28px;
  padding: 28px clamp(22px, 3vw, 36px);
  background: linear-gradient(180deg, var(--forest-soft), var(--forest));
  color: var(--cream);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.boarding-pass::after {
  content: '';
  position: absolute;
  top: -100px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow), transparent 65%);
  pointer-events: none;
}
.boarding-pass::before {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -34px;
  width: 280px;
  height: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300d8a8'><path d='M3.478 2.405a.75.75 0 00-.926.94l2.432 7.905H13.5a.75.75 0 010 1.5H4.984l-2.432 7.905a.75.75 0 00.926.94 60.519 60.519 0 0018.445-8.986.75.75 0 000-1.218A60.517 60.517 0 003.478 2.405z'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.10;
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}
.boarding-pass > * { position: relative; z-index: 1; }

.bp-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
}
.bp-eyebrow .micro { color: var(--mint); }
.bp-eyebrow .legend {
  font-family: var(--mono);
  color: rgba(241, 245, 250, 0.55);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.controls-grid { display: grid; gap: clamp(20px, 3vw, 36px); position: relative; }
.controls-grid.sim  { grid-template-columns: 1.3fr 1fr 1.6fr; }
.controls-grid.plan { grid-template-columns: 1fr; }
@media (max-width: 860px){ .controls-grid.sim { grid-template-columns: 1fr; } }

.control-block { display: flex; flex-direction: column; gap: 10px; }
.control-block .ctrl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.control-block .ctrl-key {
  letter-spacing: 0.18em;
  color: rgba(241, 245, 250, 0.65);
}
.control-block .ctrl-val {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--cream);
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* range slider */
input[type=range].slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  outline: none;
}
input[type=range].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--mint-deep), 0 4px 14px rgba(77, 143, 209, 0.35);
  cursor: pointer;
  transition: transform .15s;
}
input[type=range].slider::-webkit-slider-thumb:hover { transform: scale(1.08); }
input[type=range].slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--cream);
  cursor: pointer;
}
.range-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(241, 245, 250, 0.5);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* period chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(241, 245, 250, 0.20);
  border-radius: 999px;
  color: rgba(241, 245, 250, 0.75);
  letter-spacing: 0.02em;
  transition: all .18s;
  font-weight: 500;
}
.chip:hover { border-color: var(--mint); color: var(--cream); }
.chip.is-active {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--forest);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════
   SUMMARY STRIP — passport stamps
   ════════════════════════════════════════════════════════ */
.summary-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stamp {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--rule-cream);
  position: relative;
}
.stamp::after {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 8px;
  width: 2px;
  background: var(--mint);
  border-radius: 99px;
}
.stamp-key {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  padding-left: 12px;
}
.stamp-val {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  padding-left: 12px;
  letter-spacing: -0.02em;
}
.stamp-val.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.stamp-foot { font-size: 11px; color: var(--sage); padding-left: 12px; }

.stamp-accent {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.stamp-accent::after { background: var(--mint); }
.stamp-accent .stamp-key,
.stamp-accent .stamp-foot { color: rgba(241, 245, 250, 0.65); }
.stamp-accent .stamp-val  { color: var(--cream); }

.stamp-target {
  background: var(--mint);
  color: var(--forest);
  border-color: var(--mint-deep);
}
.stamp-target::after { background: var(--forest); }
.stamp-target .stamp-key,
.stamp-target .stamp-foot { color: rgba(14, 37, 64, 0.7); }
.stamp-target .stamp-val { color: var(--forest); }

/* ════════════════════════════════════════════════════════
   RESULTS CONTROL BAR
   ════════════════════════════════════════════════════════ */
.results-bar {
  margin: 40px 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--rule-cream);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: var(--white);
}
.results-bar .micro { color: var(--sage); margin-right: 4px; }
.sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-left: 1px solid var(--rule-cream);
  padding-left: 14px;
}
.sort-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--sage);
  letter-spacing: 0.01em;
  transition: all .18s;
}
.sort-btn:hover { color: var(--ink); border-color: var(--rule-cream-strong); }
.sort-btn.is-active {
  color: var(--cream);
  background: var(--forest);
  border-color: var(--forest);
}
.filter-toggle {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 12.5px;
  border: 1px solid var(--rule-cream-strong);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
  font-weight: 500;
}
.filter-toggle:hover { border-color: var(--mint); color: var(--mint-deep); }
.filter-toggle.is-active {
  background: var(--mint);
  color: var(--forest);
  border-color: var(--mint);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════
   CARD V2 · Sky Powder
   ════════════════════════════════════════════════════════ */
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cards-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 900px){ .cards-list { grid-template-columns: 1fr; } }

.card {
  --card-color: var(--mint);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cream-deep);
  animation: reveal .6s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px rgba(14, 37, 64, 0.18);
}

/* top1 brass hairline + sky border */
.card.is-top1 {
  border-color: rgba(77, 143, 209, 0.35);
  box-shadow: 0 18px 36px -22px rgba(14, 37, 64, 0.18);
  grid-column: 1 / -1;
}
.card.is-top1::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.card.is-restricted { background: var(--cream-warm); }

/* ─── HEAD BAR · rank · bank-chip · score box ─── */
.card-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 18px 22px 14px;
  align-items: center;
}
.card-rank {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--mint-deep);
  font-variant-numeric: tabular-nums;
}
.card.is-compact .card-rank { color: var(--sage); font-size: 44px; }

.bank-row { display: flex; flex-direction: column; gap: 4px; }
.bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 99px;
  width: fit-content;
}
.bank-chip .swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--card-color);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.bank-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.bank-band {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--sage);
  letter-spacing: 0.08em;
  padding-left: 4px;
}

/* score box */
.card-score {
  background: var(--mint-bg);
  border: 1px solid rgba(77, 143, 209, 0.25);
  border-radius: var(--r-md);
  padding: 10px 14px;
  text-align: center;
  min-width: 68px;
}
.card-score .n {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--mint-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card-score .l {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mint-deep);
  font-weight: 600;
  margin-top: 4px;
}

/* ─── HEADLINE · h3 + badges ─── */
.card-headline { padding: 0 22px 14px; }
.card-headline h3 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--cream-warm);
  border: 1px solid var(--cream-deep);
  color: var(--ink-soft);
}
.badge-pos  { background: var(--green-bg); color: var(--green); border-color: rgba(47, 122, 90, 0.25); }
.badge-neg  { background: var(--coral-bg); color: var(--coral); border-color: rgba(193, 57, 43, 0.25); }
.badge-gold {
  background: var(--mint);
  color: var(--white);
  border-color: var(--mint-deep);
  font-weight: 600;
}
.badge-warn { background: var(--coral-bg); color: var(--coral); border-color: rgba(193, 57, 43, 0.3); }

/* ─── KPI HERO ROW · 3 colunas ─── */
.card-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cream-deep);
  border-bottom: 1px solid var(--cream-deep);
  background: var(--cream-warm);
}
.card-kpis > div {
  padding: 16px 18px;
  border-right: 1px dashed var(--cream-deep);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-kpis > div:last-child { border-right: 0; }
.card-kpis dt {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}
.card-kpis .num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.card-kpis .num.pos    { color: var(--mint-deep); }
.card-kpis .num.green  { color: var(--green); }
.card-kpis .num.neg    { color: var(--coral); }
.card-kpis .num.small  { font-size: 18px; }
.card-kpis .foot       { font-size: 10.5px; color: var(--sage); line-height: 1.3; }

/* ─── TRIP PREVIEW ─── */
.card-trip {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, var(--mint-glow), transparent 70%);
  border-bottom: 1px solid var(--cream-deep);
}
.card-trip .trip-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--mint);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.card-trip .trip-icon svg {
  width: 20px; height: 20px;
  transform: rotate(-12deg);
}
.card-trip .trip-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.card-trip .trip-foot {
  font-size: 11.5px;
  color: var(--sage);
  margin-top: 2px;
}

/* ─── BODY · 2 cols (Acesso · Benefícios) ─── */
.card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-body > section {
  padding: 16px 22px;
  border-right: 1px dashed var(--cream-deep);
}
.card-body > section:last-child { border-right: 0; }
@media (max-width: 600px){
  .card-body { grid-template-columns: 1fr; }
  .card-body > section { border-right: 0; border-bottom: 1px dashed var(--cream-deep); }
  .card-body > section:last-child { border-bottom: 0; }
}
.card-body .micro {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 10px;
}
.card-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.card-body li::before {
  content: '·';
  color: var(--mint);
  margin-right: 8px;
  font-weight: 700;
}
.card-body li.b-li::before {
  content: '✓';
  color: var(--mint-deep);
  font-size: 11px;
}
.card-body li.b-locked { opacity: 0.55; }
.card-body li.b-locked::before {
  content: '🔒';
  font-size: 10px;
}
.card-body li.more {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: default;
}
.card-body li.more::before { content: '+'; color: var(--mint-deep); }

/* restricted bar (slim navy strip) */
.restricted-bar {
  background: var(--forest);
  color: var(--cream);
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.restricted-bar .micro { color: var(--mint); }

/* ─── TOGGLE / FOOT ─── */
.card-toggle {
  padding: 13px 22px;
  border-top: 1px dashed var(--cream-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--sage);
  background: var(--cream-warm);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color .18s, background .18s;
}
.card-toggle::before {
  content: '▾';
  color: var(--mint);
  font-size: 10px;
}
.card.is-compact .card-toggle::before { content: '▸'; }
.card.is-compact .card-toggle { color: var(--mint-deep); font-weight: 600; }
.card-toggle:hover { color: var(--ink); background: var(--cream); }

/* compact state hides expanded sections */
.card.is-compact .card-headline,
.card.is-compact .card-trip,
.card.is-compact .card-body,
.card.is-compact .restricted-bar,
.card.is-compact .card-goal,
.card.is-compact .card-ms { display: none; }

/* ─── ACCESS PILLS (still used in plan-table) ─── */
.access-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.access-easy-pill   { background: var(--green-bg); color: var(--green); }
.access-medium-pill { background: var(--warn-bg); color: var(--warn); }
.access-hard-pill   { background: var(--coral-bg); color: var(--coral); }

/* ─── GOAL (when meta is set, inline above body) ─── */
.card-goal {
  padding: 14px 22px;
  background: var(--cream-warm);
  border-bottom: 1px solid var(--cream-deep);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-goal-head {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card-goal-rows { display: grid; gap: 4px; grid-template-columns: 1fr 1fr; font-size: 12px; }
.card-goal-rows > div { display: flex; justify-content: space-between; gap: 8px; }
.card-goal-rows dt { color: var(--sage); }
.card-goal-rows dd { color: var(--ink); font-weight: 500; }
.goal-bar {
  height: 5px;
  background: var(--rule-ink);
  border-radius: 99px;
  overflow: hidden;
}
.goal-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width .6s;
}
.goal-bar-ok   > span { background: var(--mint); }
.goal-bar-near > span { background: var(--warn); }
.goal-bar-far  > span { background: var(--coral); }

/* ─── MILESTONES (mini bar dentro do body) ─── */
.card-ms-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--cream-deep);
}
.card-ms-line li {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.card-ms-line li::before { content: ''; margin: 0; }
.card-ms-line .ms-r { background: var(--green-bg); color: var(--green); }
.card-ms-line .ms-n { background: var(--warn-bg); color: var(--warn); }
.card-ms-line .ms-f { opacity: 0.6; }

/* ════════════════════════════════════════════════════════
   PLAN VIEW
   ════════════════════════════════════════════════════════ */
.plan-section { margin-top: 40px; }
.plan-section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule-ink);
  padding-bottom: 16px;
}
.plan-section-head .num {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--mint-deep);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.plan-section-head h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  letter-spacing: -0.025em;
}
.plan-section-head .micro { color: var(--sage); margin-left: auto; }

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.route {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--rule-cream);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  animation: reveal .5s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
.route.is-selected {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-glow);
}
.route-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--cream-warm);
  border-radius: var(--r-sm);
}
.route-body { display: flex; flex-direction: column; gap: 4px; }
.route-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.route-header h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.route-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  background: var(--cream-warm);
  color: var(--ink-soft);
  font-weight: 500;
}
.route-tag.tag-exe { background: var(--forest); color: var(--mint); }
.route-tag.tag-eco { background: var(--mint-bg); color: var(--mint-deep); }
.route-example { font-size: 12px; color: var(--ink-soft); }
.route-note    { font-size: 11px; color: var(--sage); margin-top: 2px; line-height: 1.45; }
.route-cost { display: none; }

.route-stepper {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-cream-strong);
}
.step-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-cream-strong);
  background: var(--cream-warm);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  display: grid; place-items: center;
  transition: all .15s;
}
.step-btn:hover { background: var(--mint); border-color: var(--mint); color: var(--forest); }
.step-num {
  min-width: 30px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.step-total {
  margin-left: auto;
  font-size: 11px;
  color: var(--mint-deep);
  font-weight: 600;
}
.step-total.dim { color: var(--sage); font-weight: 400; font-style: italic; }

.routes-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.routes-divider::before,
.routes-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-cream-strong);
}

/* plan output */
.plan-output { margin-top: 36px; }
.plan-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--rule-cream-strong);
  background: var(--white);
  border-radius: var(--r-md);
  color: var(--sage);
}
.plan-empty-figure {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 56px;
  color: var(--mint);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.plan-empty p { font-size: 14px; max-width: 440px; margin: 0 auto; color: var(--ink-soft); }

.plan-note {
  background: var(--mint);
  color: var(--forest);
  padding: 16px 20px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-note[hidden] { display: none; }
.plan-note p { font-size: 13px; line-height: 1.6; }
.plan-note .micro { color: rgba(14, 37, 64, 0.6); }

.plan-summary {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 22px;
  border: 1px solid var(--rule-cream);
}
.plan-summary-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px dashed var(--rule-ink-strong);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.plan-summary-head h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.plan-summary-grid dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}
.plan-summary-grid dd {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.plan-summary-grid dd:not(.mono) {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* plan table */
.plan-table-wrap {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--rule-cream);
  overflow: hidden;
  overflow-x: auto;
}
.plan-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: var(--ink);
}
.plan-table thead th {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 14px;
  background: var(--cream-warm);
  color: var(--sage);
  border-bottom: 1px solid var(--rule-cream-strong);
}
.plan-table tbody td {
  padding: 14px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--rule-cream);
  vertical-align: top;
  animation: reveal .5s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table .t-rank {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}
.plan-table .t-name { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.plan-table .t-bank { font-size: 11px; color: var(--sage); margin-bottom: 6px; }
.plan-table .t-score {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--mint-deep);
}
.plan-table .t-warn  { font-size: 10.5px; color: var(--coral); margin-top: 6px; letter-spacing: 0.04em; }
.plan-table .t-cias  { color: var(--sage); font-size: 11.5px; line-height: 1.4; }
.plan-table tr.tr-best {
  background: linear-gradient(90deg, var(--mint-glow), transparent 70%);
}
.plan-table tr.tr-best .t-name { color: var(--mint-deep); }
.plan-table tr.tr-ok td { background: rgba(77, 143, 209, 0.04); }
.plan-table tr.tr-dim td { opacity: 0.55; }

.time-cell { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.time-bar {
  height: 5px;
  background: var(--rule-ink);
  border-radius: 99px;
  overflow: hidden;
}
.time-bar > span { display: block; height: 100%; }
.time-bar-pos > span  { background: var(--mint); }
.time-bar-warn > span { background: var(--warn); }
.time-bar-neg  > span { background: var(--coral); }

.plan-disclaimer {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--sage);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-left: 2px solid var(--mint);
  background: var(--white);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
footer.site-foot {
  margin-top: 80px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule-ink);
  position: relative;
}
footer.site-foot::before {
  content: '';
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 2px;
  background: var(--mint);
  opacity: .65;
  border-radius: 99px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.foot-block { display: flex; flex-direction: column; gap: 10px; }
.foot-block h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.foot-block p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule-cream-strong);
  padding-bottom: 2px;
  transition: border-color .18s, color .18s;
}
.foot-links a:hover { border-color: var(--mint); }
.foot-share {
  padding: 16px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--rule-cream);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .18s, color .18s;
  text-decoration: none;
}
.btn-share:hover { border-color: var(--mint); color: var(--ink); }
.btn-share svg { flex-shrink: 0; }

/* ── Export button ── */
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1px solid var(--rule-cream);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.export-btn:hover { border-color: var(--mint); color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--rule-cream);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--sage);
  letter-spacing: 0.04em;
}
.foot-legal {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--sage);
  line-height: 1.6;
}
@media (max-width: 700px){
  .foot-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 760px){
  .masthead-grid { grid-template-columns: 1fr; gap: 18px; }
  .tagline {
    border-left: 0;
    border-top: 2px solid var(--mint);
    padding-left: 0;
    padding-top: 12px;
  }
  .issue-stamp { align-items: flex-start; text-align: left; }
  .tabs { overflow-x: auto; }
  .tab { padding: 14px 18px; }
  .tab .tab-name { font-size: 16px; }

  .card { padding: 24px 20px; }
  .card-head { grid-template-columns: auto 1fr; gap: 16px; }
  .card-score-ring { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
  .card-score-ring .ring-lbl { margin-top: 0; }
  .rank-num { font-size: 50px; }

  .results-bar { padding: 12px 14px; }
  .filter-toggle { margin-left: 0; }
}

/* ══════════ PROMOÇÕES ══════════ */
.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.promo-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 1px 4px rgba(14,37,64,.06);
  transition: box-shadow .2s;
}
.promo-card:hover { box-shadow: 0 4px 16px rgba(14,37,64,.10); }
.promo-bar {
  width: 5px;
  flex-shrink: 0;
  background: var(--sage);
}
.promo-card.is-active .promo-bar { background: var(--green); }
.promo-card.is-expired { opacity: .55; }
.promo-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.promo-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.promo-emoji { font-size: 18px; }
.promo-nome { font-size: 14px; color: var(--forest); }
.promo-bonus {
  font-size: 26px;
  font-weight: 700;
  color: var(--mint-deep, var(--mint));
  line-height: 1.1;
}
.promo-detail { font-size: 12px; color: var(--sage); }
.promo-periodo { font-size: 11px; color: var(--sage); }
.promo-ago { margin-left: 4px; }

/* returning user flow */
.lp-link {
  background: var(--forest);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
  text-decoration: none;
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  transition: background .18s ease;
}
.lp-link:hover {
  background: var(--forest-soft);
}
.lp-return { margin-top: 1rem; }
.lp-return-divider {
  text-align: center;
  color: #9ca3af;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.lp-submit--secondary {
  background: transparent;
  border: 2px solid #0ea5e9;
  color: #0ea5e9;
}

/* ── LGPD Banner ── */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--forest-soft);
  border-top: 2px solid rgba(77, 143, 209, 0.35);
  padding: 14px 20px;
  transform: translateY(0);
  transition: transform 300ms ease;
}

.lgpd-banner--hiding {
  transform: translateY(100%);
}

.lgpd-banner__content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lgpd-banner__text {
  flex: 1;
  min-width: 220px;
  font-size: 0.8rem;
  color: var(--cream);
  line-height: 1.5;
  margin: 0;
}

.lgpd-banner__text strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
  color: var(--white);
}

.lgpd-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lgpd-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 150ms ease, opacity 150ms ease;
  font-family: inherit;
}

.lgpd-btn--primary {
  background: var(--mint);
  color: var(--white);
}

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

.lgpd-btn--secondary {
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
}

.lgpd-btn--secondary:hover {
  opacity: 0.75;
}

@media (max-width: 480px) {
  .lgpd-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .lgpd-banner__actions {
    justify-content: flex-end;
  }
}

/* ════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════ */
@media print {
  body { background: #fff !important; }
  .masthead, .boarding-pass, .summary-strip, .results-bar,
  footer.site-foot, .lgpd-banner, .export-btn,
  #viewPromos, .tabs { display: none !important; }

  body.print-sim #viewSim { display: block !important; }
  body.print-sim #viewPlan { display: none !important; }
  body.print-sim .cards-list { grid-template-columns: 1fr; }

  body.print-plan #viewPlan { display: block !important; }
  body.print-plan #viewSim { display: none !important; }
  body.print-plan [hidden] { display: block !important; }

  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .plan-table-wrap { overflow: visible; }
  .plan-table { font-size: 10px; }
}
