:root {
  --ink: #0d1f2d;
  --ink-2: #163348;
  --ink-soft: #3c5468;
  --paper: #ffffff;
  --paper-soft: #f6f2ea;
  --paper-dim: #efe8d9;
  --heart: #e2472f;
  --heart-dark: #b93521;
  --mint: #4f8a76;
  --gold: #e0a13e;
  --pink: #e16ca0;
  --pink-dark: #c94f83;
  --line: rgba(13, 31, 45, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 36px -18px rgba(13, 31, 45, 0.4);
  --shadow-sm: 0 6px 16px -8px rgba(13, 31, 45, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: 'Fraunces', serif; color: var(--ink); margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- ECG signature bar ---------- */
.ecg-bar { width: 100%; height: 28px; background: var(--ink); overflow: hidden; }
.ecg-bar svg { width: 200%; height: 100%; animation: ecg-scroll 7s linear infinite; }
.ecg-line { fill: none; stroke: var(--heart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
@keyframes ecg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ecg-bar svg { animation: none; } }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 31, 45, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.98rem; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; display: block; }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; padding: 8px 16px; font-size: 0.88rem; }
.btn-ghost-light:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--heart); color: #fff; box-shadow: 0 10px 22px -8px rgba(226, 71, 47, 0.55); }
.btn-primary:hover { background: var(--heart-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary:disabled { background: var(--ink-soft); box-shadow: none; cursor: not-allowed; transform: none; opacity: 0.6; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-submit { width: 100%; font-size: 1.05rem; padding: 17px; margin-top: 4px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 60%, #1c3f57 100%);
  color: var(--paper);
  padding: 44px 0 84px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(225,108,160,0.32), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(226,71,47,0.28), transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(224,161,62,0.16), transparent 50%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-2%, 2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }
.hero-content { position: relative; z-index: 1; }
.hero-logo {
  width: 76px; height: 76px; border-radius: 50%;
  box-shadow: 0 10px 26px -8px rgba(225, 108, 160, 0.6);
  margin-bottom: 16px;
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 0.06em;
  color: #f3a9c6; text-transform: uppercase; margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.3rem); font-weight: 600; color: #fff; line-height: 1.06;
}
.hero h1 span {
  display: block; font-size: 0.4em; font-weight: 400; font-style: italic; color: var(--gold); margin-top: 6px;
}
.lede { max-width: 46ch; margin: 18px auto 0; color: #d9e2e8; font-size: 1.02rem; }

.countdown {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  margin: 26px auto 0; flex-wrap: wrap;
}
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.countdown-item strong {
  font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1;
}
.countdown-item span { font-size: 0.68rem; color: #a9bbc7; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
.countdown-label { flex-basis: 100%; font-size: 0.78rem; color: #8fa4b3; margin-top: 4px; }

.hero-badges {
  display: flex; gap: 8px; margin: 26px 0 28px;
  overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none;
  justify-content: flex-start;
}
@media (min-width: 640px) { .hero-badges { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.hero-badges::-webkit-scrollbar { display: none; }
.badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #ecf1f4;
  padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
}
.badge-ic { display: flex; flex-shrink: 0; width: 15px; height: 15px; color: var(--gold); }
.badge-ic svg { width: 100%; height: 100%; }
.hero-cta { width: min(100%, 320px); }
.scroll-hint {
  display: block; margin: 30px auto 0; width: 34px; height: 34px; color: rgba(255,255,255,0.55);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--heart); margin: 0 0 8px; font-weight: 700;
}
.section-title { font-size: clamp(1.55rem, 5vw, 2rem); margin-bottom: 14px; }
.section-lede { color: var(--ink-soft); font-size: 1rem; max-width: 56ch; margin: 0 0 20px; }

/* ---------- Percurso: stats + map ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px;
}
.stat-chip {
  background: var(--paper-soft); border-radius: var(--radius-sm); padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px;
}
.stat-num { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.3rem; color: var(--heart); line-height: 1; }
.stat-unit { font-size: 0.7rem; color: var(--ink-soft); }
.stat-label { font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 3px; }
.stat-icon { width: 22px; height: 22px; color: var(--heart); }
.stat-icon svg { width: 100%; height: 100%; }

.route-notice {
  display: flex; align-items: flex-start; gap: 10px; background: var(--paper-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 20px;
}
.route-notice-ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--ink-soft); }
.route-notice-ic svg { width: 100%; height: 100%; }

.route-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 700px) { .route-layout { grid-template-columns: 1fr; } }
.route-map {
  height: 340px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper-dim);
}
@media (max-width: 700px) { .route-map { height: 280px; } }

.pin-numero {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--heart); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pin-numero span { transform: rotate(45deg); color: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.8rem; }
.pin-ativo { background: var(--pink-dark); transform: rotate(-45deg) scale(1.15); }
.leaflet-popup-content { font-family: 'Inter', sans-serif; font-size: 0.88rem; }
.leaflet-popup-content strong { font-family: 'Fraunces', serif; }

.route-list {
  list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.route-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s ease;
}
.route-item:last-child { border-bottom: none; }
.route-item:hover { background: var(--paper-soft); }
.route-item-ativo { background: #fff5f4; }
.route-item-num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.74rem;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.route-item-ativo .route-item-num { background: var(--heart); }
.route-item-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.route-item-body strong { font-family: 'Fraunces', serif; font-size: 0.96rem; }
.route-item-hora { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--heart); text-transform: uppercase; }
.route-item-detalhe { color: var(--ink-soft); font-size: 0.84rem; }

.trishaw-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--paper-soft); border-left: 3px solid var(--mint); padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.92rem;
}
.trishaw-ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--mint); }
.trishaw-ic svg { width: 100%; height: 100%; }

/* ---------- Programa: timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; position: relative; }
.tl-marker {
  grid-row: 1; width: 44px; height: 44px; border-radius: 50%;
  background: var(--heart); border: 2px solid var(--heart);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.tl-marker span {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.05rem; color: #fff;
}
.tl-line { grid-column: 1; width: 2px; background: var(--line); justify-self: center; margin-top: -2px; }
.timeline li:not(:last-child) .tl-line { min-height: calc(100% - 30px); }
.timeline li:not(:last-child) { padding-bottom: 26px; }
.tl-body { grid-column: 2; padding-top: 6px; }
.tl-body .time {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--heart); font-size: 0.85rem;
  display: block; margin-bottom: 2px;
}
.tl-body strong { display: block; font-family: 'Fraunces', serif; font-size: 1.08rem; margin-bottom: 4px; }
.tl-body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Partners marquee ---------- */
.partners-section { padding-bottom: 56px; }
.marquee {
  margin-top: 20px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 16px; padding-right: 16px; }
.partner-tile {
  flex: 0 0 auto; height: 76px; width: 152px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 12px 18px;
}
.partner-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-tile-text { background: var(--paper-soft); }
.partner-tile-text span { font-family: 'Fraunces', serif; font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; text-align: center; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }
@media (max-width: 560px) { .partner-tile { height: 64px; width: 128px; padding: 9px 14px; } }

/* ---------- Form ---------- */
.form-section { border-bottom: none; padding-bottom: 90px; }
.form-card {
  background: var(--paper-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.form-card-title {
  display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 1.05rem; margin: 0 0 16px;
}
.fc-ic {
  width: 26px; height: 26px; border-radius: 50%; background: var(--heart); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.participantes-sub { color: var(--ink-soft); font-size: 0.88rem; margin: -8px 0 16px; }

.field { margin-bottom: 16px; }
.field-tight { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field label .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Verificação de email ---------- */
.email-verify-row { display: flex; gap: 8px; }
.email-verify-row input { flex: 1; min-width: 0; }
.btn-verify {
  flex-shrink: 0; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: var(--radius-sm); padding: 0 16px; font-weight: 700; font-size: 0.86rem;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease; white-space: nowrap;
}
.btn-verify:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-verify:disabled { opacity: 0.5; cursor: not-allowed; }

.email-verify-ok {
  display: flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 600;
  font-size: 0.9rem; margin-top: 10px;
}
.email-verify-ok-ic { width: 18px; height: 18px; flex-shrink: 0; }
.email-verify-ok-ic svg { width: 100%; height: 100%; }

.link-btn {
  background: none; border: none; padding: 0; color: var(--ink-soft); text-decoration: underline;
  font-size: 0.82rem; cursor: pointer; margin-left: auto;
}
.link-btn:hover:not(:disabled) { color: var(--heart); }
.link-btn:disabled { text-decoration: none; cursor: default; opacity: 0.7; }

.codigo-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin-top: 10px;
}
.codigo-box-lede { margin: 0 0 10px; font-size: 0.86rem; color: var(--ink-soft); }
.codigo-box-row { display: flex; gap: 8px; }
.codigo-box-row input {
  flex: 1; min-width: 0; letter-spacing: 0.3em; font-family: 'JetBrains Mono', monospace;
  font-weight: 700; text-align: center;
}
.codigo-box .link-btn { margin: 0; }
.codigo-box-links { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.codigo-erro { color: var(--heart-dark); font-size: 0.84rem; margin: 8px 2px 0; min-height: 1.1em; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color 0.15s ease; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--heart); }
textarea { resize: vertical; }
input.campo-invalido, select.campo-invalido, textarea.campo-invalido { border-color: var(--heart); background: #fff5f4; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.qtd-selector {
  display: flex; align-items: center; justify-content: space-between; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 16px;
  flex-wrap: wrap; gap: 10px;
}
.qtd-selector label { font-weight: 600; font-size: 0.92rem; }
.qtd-controls { display: flex; align-items: center; gap: 10px; }
.qtd-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--heart); color: #fff;
  font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.qtd-btn:hover { background: var(--heart-dark); transform: translateY(-1px); }
#qtd-participantes {
  width: 40px; text-align: center; border: none; background: transparent;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 0;
}

.participante-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 12px; position: relative;
}
.participante-card .p-title {
  font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--mint);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
}
.participante-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .participante-grid { grid-template-columns: 1fr 1fr; } .participante-grid .field:first-child { grid-column: 1 / -1; } }
.trishaw-check { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.btn-remove { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.btn-remove:hover { color: var(--heart); }

.char-count { text-align: right; font-size: 0.76rem; color: var(--ink-soft); margin: 4px 2px 0; }

.total-box {
  display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff;
  padding: 17px 20px; border-radius: var(--radius); margin: 18px 0; font-size: 1rem;
}
.total-box strong { font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; color: var(--gold); }

.checkbox-field {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft);
  margin-bottom: 20px; cursor: pointer;
}
.checkbox-field input { margin-top: 3px; flex-shrink: 0; }
.form-error { color: var(--heart-dark); font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }

/* ---------- Confirmation ---------- */
.confirmacao { margin-top: 24px; }
.confirmacao-card {
  background: linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--paper);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); text-align: center;
}
.confirmacao-icon { width: 52px; height: 52px; margin: 0 auto 10px; color: var(--gold); }
.confirmacao-icon svg { width: 100%; height: 100%; }
.confirmacao-card h3 { color: #fff; margin-bottom: 8px; }
.confirmacao-card p { text-align: left; }
.numero-inscricao {
  font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; color: var(--gold);
  background: rgba(255,255,255,0.07); padding: 10px 16px; border-radius: var(--radius-sm);
  display: inline-block; margin: 8px 0 16px; text-align: center;
}
.pagamento-resumo { display: grid; gap: 10px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; text-align: left; }
.pagamento-resumo div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.pagamento-resumo span { color: #b9c6cf; }
.pagamento-resumo strong { font-family: 'JetBrains Mono', monospace; text-align: right; }
.aviso-email { margin-top: 16px; background: rgba(226,71,47,0.18); border: 1px solid rgba(226,71,47,0.4); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.86rem; text-align: left; }

/* ---------- Grelha fixa de parceiros (final da página) ---------- */
.partners-fixed { padding: 48px 0; background: var(--ink); }
.partners-fixed .kicker { color: var(--pink); }
.partners-fixed .section-title { color: #fff; margin-bottom: 22px; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 560px) { .partners-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 860px) { .partners-grid { grid-template-columns: repeat(5, 1fr); } }
.partners-grid .partner-tile {
  width: auto;
  height: 76px;
  background: #fff;
}
@media (max-width: 480px) { .partners-grid .partner-tile { height: 62px; padding: 8px 10px; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 110px; background: var(--paper-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: 'Fraunces', serif; font-weight: 600; }
.footer-logo { width: 26px; height: 26px; border-radius: 50%; }
.footer p { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }
.footer a { color: var(--heart); }
.back-to-top { font-size: 0.8rem; color: var(--ink-soft); text-decoration: none; margin-top: 4px; }
.back-to-top:hover { color: var(--heart); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(13, 31, 45, 0.97); backdrop-filter: blur(10px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -8px rgba(0,0,0,0.35);
  transform: translateY(120%); transition: transform 0.3s ease;
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta-info { display: flex; flex-direction: column; color: #fff; line-height: 1.25; }
.mobile-cta-info strong { font-family: 'Fraunces', serif; font-size: 0.95rem; }
.mobile-cta-info span { font-size: 0.76rem; color: #a9bbc7; }
.mobile-cta .btn { padding: 12px 22px; font-size: 0.92rem; }
@media (min-width: 860px) { .mobile-cta { display: none; } }
