:root {
  --bg: #0b1014;
  --bg-2: #121a21;
  --surface: #172229;
  --surface-2: #1e2b34;
  --ink: #eef3f6;
  --muted: #9aabB6;
  --line: rgba(238, 243, 246, 0.1);
  --line-strong: rgba(238, 243, 246, 0.18);
  --pt-green: #006847;
  --pt-green-deep: #004d35;
  --pt-red: #da291c;
  --pt-red-soft: #ff5a4e;
  --glow: 0 0 0 1px rgba(0, 104, 71, 0.35), 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(0, 104, 71, 0.28), transparent 60%),
    radial-gradient(700px 380px at 90% 8%, rgba(218, 41, 28, 0.16), transparent 55%),
    linear-gradient(180deg, #0e151b 0%, var(--bg) 40%, #080c10 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: #8fd4b8; }
a:hover { color: var(--pt-red-soft); }

.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

.mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 10px 0 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.78);
  backdrop-filter: blur(12px);
  overflow-anchor: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.mast-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
  overflow-anchor: none;
}
.mast.is-compact {
  padding: 6px 0;
  background: rgba(8, 12, 16, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.mast-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "aside brand actions"
    "rule rule rule"
    "nav nav nav";
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
  padding-inline: clamp(8px, 2vw, 24px);
}
.mast-aside {
  grid-area: aside;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 11rem;
  text-align: left;
  justify-self: start;
}
.mast-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}
.mast-cta {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-decoration: none;
  justify-self: center;
}
.brand-logo {
  width: auto;
  height: 72px;
  max-width: min(320px, 88vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}
body.home .brand-logo {
  height: 96px;
  max-width: min(420px, 90vw);
}
.rule {
  grid-area: rule;
  height: 2px;
  width: 180px;
  max-width: 40%;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pt-green), #f5f5f5 48%, var(--pt-red));
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
}
.nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 4px 0 8px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--pt-red);
}

/* Compact sticky: logo | menu | CTA clustered toward center */
.mast.is-compact .mast-inner {
  grid-template-columns: auto auto auto;
  grid-template-areas: "brand nav actions";
  justify-content: center;
  row-gap: 0;
  column-gap: calc(22px + 5vw);
}
.mast.is-compact .mast-aside,
.mast.is-compact .rule {
  display: none;
}
.mast.is-compact .brand,
.mast.is-compact .mast-actions {
  justify-self: center;
}
.mast.is-compact .nav {
  justify-content: center;
  flex-wrap: nowrap;
  padding: 0;
  gap: 4px 12px;
}
.mast.is-compact .nav a {
  font-size: 0.88rem;
  padding: 4px 2px;
  white-space: nowrap;
}
.mast.is-compact .brand-logo,
body.home .mast.is-compact .brand-logo {
  height: 60px;
  max-width: 230px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.mast.is-compact .mast-cta {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 20px;
}

/* Full-bleed home hero (Canada-style layout, Portugal identity) */
.hero--bleed {
  display: block;
  position: relative;
  width: 100%;
  min-height: min(55vh, 490px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(6, 10, 14, 0.94) 0%, rgba(6, 10, 14, 0.82) 34%, rgba(6, 10, 14, 0.35) 58%, rgba(6, 10, 14, 0.12) 78%, transparent 100%),
    linear-gradient(180deg, rgba(6, 10, 14, 0.72) 0%, transparent 28%, rgba(6, 10, 14, 0.55) 100%),
    radial-gradient(520px 320px at 18% 70%, rgba(0, 104, 71, 0.28), transparent 70%),
    radial-gradient(480px 280px at 88% 40%, rgba(218, 41, 28, 0.18), transparent 65%);
}
.hero-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(55vh, 490px);
  padding: 36px 0 40px;
  max-width: min(640px, calc(100% - 32px));
  margin-left: max(16px, calc((100% - min(1140px, calc(100% - 32px))) / 2));
  margin-right: auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(238, 243, 246, 0.14);
  background: rgba(8, 12, 16, 0.55);
  backdrop-filter: blur(8px);
  color: #d7e2ea;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pt-red);
  box-shadow: 0 0 0 0 rgba(218, 41, 28, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(218, 41, 28, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(218, 41, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(218, 41, 28, 0); }
}
.hero--bleed h1 {
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.hero--bleed .lede {
  color: #d5e0e8;
  max-width: 34rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.accent {
  color: var(--pt-red);
}

body.home main {
  display: block;
}
body.home .hero--bleed {
  min-height: min(55vh, 490px);
}

.kicker {
  margin: 0 0 10px;
  color: #7dcaa8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.35rem, 5vw, 4rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin: 0 0 12px; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 38rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 560;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 202, 168, 0.55);
  color: var(--ink);
}
.btn.solid {
  background: linear-gradient(105deg, var(--pt-green) 0%, var(--pt-green-deep) 100%);
  color: #f4fff9;
  border-color: transparent;
  box-shadow: 0 12px 28px -14px rgba(0, 104, 71, 0.85);
}
.btn.solid:hover {
  background: linear-gradient(105deg, #078456 0%, var(--pt-green) 100%);
  color: white;
}
.btn.ghost {
  background: rgba(8, 12, 16, 0.45);
  border-color: rgba(238, 243, 246, 0.28);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover {
  background: rgba(8, 12, 16, 0.62);
  border-color: rgba(238, 243, 246, 0.45);
}

.hero-visual {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
  background: #000;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pt-green), #fff 50%, var(--pt-red));
  z-index: 1;
}
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.96;
}
.hero-visual figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(8, 12, 16, 0.92);
}

.post-figure {
  width: 75%;
  margin: 0 auto 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.post-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-thumb {
  display: block;
  margin: -20px -20px 14px;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.band { padding: 48px 0; }
.band h2 { max-width: 20ch; }
.steps, .needs, .cards, .tickets {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.steps { grid-template-columns: repeat(3, 1fr); }
.step, .need, .card, .ticket, .prose, .faq details {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step, .need, .card { padding: 20px; }
.num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--pt-red-soft);
  margin: 0 0 6px;
}
.needs { grid-template-columns: 1.15fr 1fr 1fr; }

.tickets { grid-template-columns: repeat(4, 1fr); }
.ticket {
  padding: 22px 18px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ticket-actions {
  display: grid;
  gap: 8px;
}
.ticket-actions .btn {
  gap: 8px;
  min-height: 42px;
  font-size: 0.95rem;
}
.ticket-actions svg { width: 18px; height: 18px; flex: none; }
.ticket-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.screens {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}
.screen-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.screen-opt svg { width: 14px; height: 11px; }
.screen-opt:hover { color: var(--ink); }
.screen-opt[aria-pressed="true"] {
  background: var(--pt-green);
  color: #fff;
}
.screen-opt:focus-visible {
  outline: 2px solid var(--pt-red-soft);
  outline-offset: 1px;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pt-green), transparent 70%);
}
.ticket.pick {
  border-color: rgba(218, 41, 28, 0.55);
  box-shadow: 0 0 0 1px rgba(218, 41, 28, 0.25), 0 18px 40px rgba(0, 0, 0, 0.28);
}
.ticket.pick::before {
  background: linear-gradient(90deg, var(--pt-red), var(--pt-green));
}
.ticket .term {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
}
.ticket .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 10px 0;
  color: var(--ink);
}
.ticket ul { flex: 1; padding-left: 18px; margin: 0 0 16px; color: var(--muted); }
/* Portuguese-identity price cards (logo colors: green, red, gold) */
.tickets--pt {
  --pt-gold: #f5c542;
  --pt-gold-deep: #e8901a;
  --pt-green-bright: #0a8f4a;
}
.tickets--pt .ticket {
  border-color: rgba(245, 197, 66, 0.16);
  background:
    radial-gradient(260px 160px at 0% 0%, rgba(0, 104, 71, 0.32), transparent 70%),
    radial-gradient(240px 180px at 100% 100%, rgba(218, 41, 28, 0.2), transparent 70%),
    linear-gradient(180deg, #17221f, #121a1d);
  padding-top: 26px;
}
.tickets--pt .ticket::before {
  height: 5px;
  background: linear-gradient(90deg, var(--pt-green) 0 40%, var(--pt-red) 40% 100%);
}
.tickets--pt .ticket::after {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(40% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff2b8, var(--pt-gold) 45%, var(--pt-gold-deep));
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.55);
}
.tickets--pt .ticket .term { color: var(--pt-gold); }
.tickets--pt .ticket .price {
  background: linear-gradient(180deg, #fff 0%, #fff 45%, #ffe08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tickets--pt .ticket li::marker { color: var(--pt-gold); }
.tickets--pt .ticket li:first-child { color: var(--ink); font-weight: 600; }

.tickets--pt .screens {
  border-color: rgba(245, 197, 66, 0.28);
  background: rgba(0, 0, 0, 0.35);
}
.tickets--pt .screen-opt:hover { color: var(--pt-gold); }
.tickets--pt .screen-opt[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe07a, var(--pt-gold) 45%, var(--pt-gold-deep));
  color: #1d1400;
  box-shadow: 0 2px 10px rgba(245, 197, 66, 0.35);
}

.tickets--pt .btn-wa {
  background: linear-gradient(180deg, var(--pt-green-bright), var(--pt-green) 60%, var(--pt-green-deep));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -12px rgba(10, 143, 74, 0.9);
}
.tickets--pt .btn-wa:hover {
  background: linear-gradient(180deg, #12a85a, var(--pt-green-bright) 60%, var(--pt-green));
}
.tickets--pt .btn-mail {
  background: rgba(218, 41, 28, 0.08);
  border-color: rgba(218, 41, 28, 0.55);
}
.tickets--pt .btn-mail:hover {
  background: linear-gradient(180deg, #e8392b, var(--pt-red) 60%, #a81d12);
  border-color: transparent;
  color: #fff;
}

.tickets--pt .ticket.pick {
  border-color: rgba(245, 197, 66, 0.6);
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.25), 0 0 32px -8px rgba(245, 197, 66, 0.35), 0 18px 40px rgba(0, 0, 0, 0.3);
}
.tickets--pt .ticket.pick::before {
  background: linear-gradient(90deg, var(--pt-green) 0 40%, var(--pt-red) 40% 100%);
}

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

.related {
  margin: 2.5rem 0 1.5rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.related h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.related ul { margin: 0; padding-left: 1.1rem; }
.related li { margin: 0.35rem 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.faq-search { margin: 22px 0 0; }
.faq-search input {
  width: 100%;
  max-width: 640px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--pt-gold, #f5c542);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18);
}
.faq-count { margin: 8px 0 0; min-height: 1.4em; color: var(--muted); font-size: 0.9rem; }
.faq-empty { color: var(--muted); }
.faq-page mark {
  background: rgba(245, 197, 66, 0.35);
  color: inherit;
  border-radius: 3px;
}
.faq-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 8px;
}
.faq-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.faq-nav a:hover { border-color: var(--pt-gold, #f5c542); color: var(--pt-gold, #f5c542); }
.faq-page h2 { margin-top: 2.2rem; scroll-margin-top: 90px; }
.faq-page .faq + .note { margin-top: 4px; font-size: 0.92rem; }
.faq details { padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-bottom: 0; color: var(--muted); }

.cards { grid-template-columns: repeat(3, 1fr); }
.card h3 { margin-top: 0; font-size: 1.3rem; }
.card a { text-decoration: none; color: var(--ink); }
.card a:hover { color: #8fd4b8; }

.prose { padding: 28px; }
.prose.band { margin-top: 44px; margin-bottom: 44px; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { color: #c5d0d8; }
.home-prose { max-width: 820px; }
.home-split { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.home-split .home-prose { max-width: none; }
.home-aside { display: flex; flex-direction: column; }
.home-aside-title {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--pt-gold, #f5c542);
}
.home-aside ul { list-style: none; padding: 0; margin: 0; }
.home-aside li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.home-aside li:last-child { border-bottom: 0; }
.home-aside li a { color: var(--ink); text-decoration: none; }
.home-aside li a:hover { color: var(--pt-gold, #f5c542); }
.home-aside-more { margin: auto 0 0; padding-top: 14px; font-size: 0.92rem; }
.home-prose h2 { margin-top: 0; max-width: none; }
.home-prose ul, .home-prose ol { padding-left: 1.3em; }
.home-prose li { margin-bottom: 6px; }
.home-cta { text-align: center; margin-inline: auto; }
.home-cta p:last-child { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 0; }
.band > .lede { margin-top: 10px; }
.band > .note { margin-top: 16px; font-size: 0.92rem; }
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.96rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: rgba(0, 0, 0, 0.3); color: var(--ink); font-weight: 600; }
.compare tbody th { color: var(--ink); font-weight: 600; width: 18%; }
.compare td { color: #c5d0d8; }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: rgba(10, 143, 74, 0.08); }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 24px 0 0; }
.glossary div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 600; margin-bottom: 4px; }
.glossary dt a { color: var(--ink); }
.glossary dd { margin: 0; color: var(--muted); }
.crumbs { color: var(--muted); font-size: 0.9rem; }
.post-meta { margin: -0.4rem 0 1.2rem; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--muted); }

footer.site {
  margin-top: 36px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0 0 8px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr auto;
  grid-template-areas: "brand cta" "trust badge";
  gap: 20px 32px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { grid-area: brand; }
.footer-logo { height: 64px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 46ch; }
.footer-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer-trust {
  grid-area: trust;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
footer.site .footer-trust li { margin: 0; color: var(--ink); font-size: 0.92rem; }
.footer-trust li::before { content: "✓ "; color: var(--pt-green-bright, #0a8f4a); font-weight: 700; }
.footer-badge {
  grid-area: badge;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.86rem;
}
footer.site .footer-badge { color: var(--ink); }
.footer-badge svg { width: 18px; height: 18px; color: var(--pt-green-bright, #0a8f4a); flex: none; }
.footer-badge strong { font-weight: 600; }
footer.site .footer-badge:hover { border-color: var(--pt-gold, #f5c542); color: var(--ink); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 24px 40px;
  padding: 30px 0;
}
.footer-email { white-space: nowrap; }
.footer-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .hero:not(.hero--bleed), .steps, .needs, .tickets, .cards, .glossary, .home-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; grid-template-areas: "brand" "cta" "trust" "badge"; }
  .footer-badge { justify-self: start; }
  .footer-cta { justify-content: flex-start; }
  .footer-cols { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .footer-email { white-space: normal; overflow-wrap: anywhere; }
  .post-figure { width: 100%; }
  .mast-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "rule rule"
      "nav nav";
    row-gap: 8px;
  }
  .mast-aside { display: none; }
  .mast-actions { justify-self: end; }
  .brand { justify-self: start; }
  .nav-toggle { display: inline-block; }
  .mast-cta { display: none; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .nav.open { display: flex; }
  .mast.is-compact .mast-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions";
  }
  .mast.is-compact .nav {
    display: none;
    grid-area: nav;
  }
  .mast.is-compact .nav.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(8, 12, 16, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 14px;
  }
  .mast.is-compact .brand { justify-self: start; }
  .mast.is-compact .mast-actions { justify-self: end; }
  .mast.is-compact .brand-logo { height: 52px; max-width: 187px; }
  .brand-logo { height: 56px; }
  body.home .brand-logo { height: 76px; max-width: min(360px, 90vw); }
  body.home .mast.is-compact .brand-logo { height: 52px; max-width: 187px; }
  .hero:not(.hero--bleed) { padding-top: 20px; }
  .hero--bleed {
    min-height: min(50vh, 440px);
  }
  .hero-panel {
    min-height: min(50vh, 440px);
    padding: 28px 0 32px;
    max-width: calc(100% - 32px);
    margin-left: 16px;
  }
  .hero-media img {
    object-position: 60% center;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(6, 10, 14, 0.78) 0%, rgba(6, 10, 14, 0.55) 40%, rgba(6, 10, 14, 0.88) 100%),
      linear-gradient(105deg, rgba(6, 10, 14, 0.88) 0%, rgba(6, 10, 14, 0.45) 55%, transparent 100%);
  }
}

/* Portuguese site theme (THEME_PT in build.py) */
body.theme-pt {
  --pt-gold: #f5c542;
  --pt-gold-deep: #e8901a;
  --pt-green-bright: #0a8f4a;
  --pt-flag: linear-gradient(90deg, var(--pt-green) 0 40%, var(--pt-red) 40% 100%);
  --pt-card-bg:
    radial-gradient(260px 160px at 0% 0%, rgba(0, 104, 71, 0.28), transparent 70%),
    radial-gradient(240px 180px at 100% 100%, rgba(218, 41, 28, 0.16), transparent 70%),
    linear-gradient(180deg, #17221f, #121a1d);
  background:
    radial-gradient(1000px 560px at 6% -8%, rgba(0, 104, 71, 0.38), transparent 60%),
    radial-gradient(860px 520px at 96% 6%, rgba(218, 41, 28, 0.22), transparent 60%),
    radial-gradient(900px 520px at 50% 115%, rgba(245, 197, 66, 0.1), transparent 60%),
    linear-gradient(180deg, #0d1512 0%, #0a100f 45%, #080b0c 100%);
  background-attachment: fixed;
}
body.theme-pt::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f5c542' stroke-width='1.2'%3E%3Cpath d='M32 6 58 32 32 58 6 32Z'/%3E%3Ccircle cx='32' cy='32' r='9'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3Cpath d='M0 16A16 16 0 0 0 16 0M48 0a16 16 0 0 0 16 16M64 48a16 16 0 0 0-16 16M16 64A16 16 0 0 0 0 48'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
}

body.theme-pt .mast {
  background: rgba(9, 14, 12, 0.82);
  border-bottom: 2px solid transparent;
  border-image: var(--pt-flag) 1;
}
body.theme-pt .nav a[aria-current="page"] { border-bottom-color: var(--pt-gold); }
body.theme-pt .nav a:hover { color: var(--pt-gold); }

body.theme-pt .btn.solid {
  background: linear-gradient(180deg, var(--pt-green-bright), var(--pt-green) 60%, var(--pt-green-deep));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -12px rgba(10, 143, 74, 0.9);
}
body.theme-pt .btn.solid:hover {
  background: linear-gradient(180deg, #12a85a, var(--pt-green-bright) 60%, var(--pt-green));
}
body.theme-pt .btn.ghost:hover { border-color: rgba(245, 197, 66, 0.6); }
body.theme-pt .hero-badge { border-color: rgba(245, 197, 66, 0.35); }

body.theme-pt .step,
body.theme-pt .need,
body.theme-pt .card,
body.theme-pt .prose,
body.theme-pt .faq details,
body.theme-pt .related {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 197, 66, 0.16);
  background: var(--pt-card-bg);
}
body.theme-pt .step::before,
body.theme-pt .need::before,
body.theme-pt .card::before,
body.theme-pt .prose::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--pt-flag);
}
body.theme-pt .step::after,
body.theme-pt .need::after,
body.theme-pt .card::after,
body.theme-pt .prose::after {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(40% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff2b8, var(--pt-gold) 45%, var(--pt-gold-deep));
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.5);
}
body.theme-pt .num {
  background: linear-gradient(180deg, #ffe07a, var(--pt-gold) 50%, var(--pt-gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.theme-pt .card a:hover { color: var(--pt-gold); }
body.theme-pt .prose li::marker { color: var(--pt-gold); }
body.theme-pt .faq summary::marker { color: var(--pt-gold); }
body.theme-pt .faq details[open] summary { color: var(--pt-gold); }
body.theme-pt .related { border-left: 3px solid var(--pt-gold); }

body.theme-pt footer.site {
  border-top: 2px solid transparent;
  border-image: var(--pt-flag) 1;
  background: rgba(6, 10, 9, 0.55);
}
body.theme-pt footer.site strong,
body.theme-pt .footer-title { color: var(--pt-gold); }
body.theme-pt footer.site a:hover { color: var(--pt-gold); }
