:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-dark: #1a1f3a;
  --bg-dark-2: #232a4d;
  --ink: #1a1f3a;
  --ink-2: #383f59;
  --muted: #6c7290;
  --line: #e5e7f0;
  --line-dark: #2a3158;
  --brand: #4454b3;
  --brand-2: #383f59;
  --brand-light: #8c8dd1;
  --accent: #63c0a4;
  --accent-2: #71c8af;
  --warn: #f59e0b;
  --ok: #63c0a4;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1180px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.muted { color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px; background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: var(--radius-sm); z-index: 1000;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #2f3a87; color: #fff; }
.btn-primary:hover { background: #1f2862; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px; display: block; flex-shrink: 0;
}
.nav .brand-logo { width: 36px; height: 36px; }
.footer .brand-logo { width: 40px; height: 40px; }
.brand-text { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text strong { color: var(--brand); font-weight: 700; }
.footer .brand-text { color: #fff; }
.footer .brand-text strong { color: var(--brand-light); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--brand-2); text-decoration: none; }
.nav-cta { padding: .55rem 1rem; font-size: .9rem; }
/* Buttons inside nav must keep their own color, not inherit from .nav-links a */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

.lang-switch { display: inline-flex; gap: 4px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  padding: 3px 9px; font-size: .72rem; color: var(--muted); border-radius: 999px;
}
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  flex-direction: column; justify-content: space-around;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 24px 24px; max-height: 0; overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
  }
  [data-nav][data-open="true"] .nav-links { max-height: 80vh; padding: 16px 24px 24px; }
  [data-nav]:not([data-open="true"]) .nav-links { padding-top: 0; padding-bottom: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-of-type { border-bottom: 0; }
  .lang-switch { margin: 8px 0; align-self: flex-start; }
  .nav-cta { margin-top: 8px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-2);
  padding: 4px 10px; background: rgba(59,130,246,.08); border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(59,130,246,.25), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(34,211,238,.15), transparent 60%),
    var(--bg-dark);
  color: #e2e8f0;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: #cbd5e1; max-width: 60ch; }
.hero .eyebrow { background: rgba(59,130,246,.18); color: #93c5fd; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-bullets {
  margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 28px; max-width: 640px;
}
.hero-bullets li {
  list-style: none; padding-left: 24px; position: relative; color: #cbd5e1; font-size: .95rem;
}
.hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand);
}
.hero ul { padding: 0; margin: 0; }

/* ---------- Trust bar ---------- */
.trust {
  background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-label { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; text-align: center; margin-bottom: 16px; }
.trust-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 24px 40px;
}
.trust-logos img {
  height: 36px; max-width: 150px; width: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.trust-logos img:hover { opacity: 1; transform: scale(1.05); }
.trust-logos span {
  font-weight: 600; color: var(--muted); font-size: 1.05rem; opacity: .85;
}

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; }
.stats h2 { color: #fff; text-align: center; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px;
}
.stat {
  text-align: center; padding: 16px;
  border-radius: var(--radius); background: rgba(255,255,255,.07);
}
.stat-value { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.stat-label { font-size: .9rem; opacity: .85; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.service-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.service-card:hover {
  text-decoration: none; border-color: var(--brand);
  box-shadow: var(--shadow); transform: translateY(-2px);
}
.service-card h3 { margin-top: 12px; margin-bottom: 8px; }
.service-card p { color: var(--ink-2); margin: 0; }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em;
}
.service-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 600; color: var(--brand-2);
}
.service-card:hover .service-more::after { transform: translateX(3px); }
.service-more::after { content: "→"; transition: transform .15s; }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.case-card:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow); border-color: var(--brand);
}
.case-cover {
  height: 180px;
  background:
    radial-gradient(400px 200px at 30% 20%, rgba(99,192,164,.18), transparent 60%),
    radial-gradient(500px 250px at 90% 100%, rgba(68,84,179,.30), transparent 60%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.case-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,18,32,.6));
  z-index: 1;
}
.case-cover-logo {
  max-width: 60%; max-height: 60px; width: auto; height: auto;
  filter: brightness(0) invert(1); /* tint white so any color logo sits on dark cover */
  opacity: .85;
  z-index: 2; position: relative;
}
.case-cover-mono {
  font-size: 3.5rem; font-weight: 700;
  color: rgba(255,255,255,.18);
  letter-spacing: -.03em;
  z-index: 2; position: relative;
  line-height: 1;
}
.case-cover .case-tag {
  position: absolute; bottom: 12px; left: 16px; right: 16px; z-index: 3;
  font-size: .72rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600;
}
.case-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { color: var(--ink); }
.case-body p { color: var(--ink-2); margin: 8px 0 16px; }
.case-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.kpi-value { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.kpi-label { font-size: .74rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 920px) { .cases-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- Tech badges (Codeminer42 style) ---------- */
.tech-badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.tech-badges li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; font-size: .9rem; font-weight: 500;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tech-badges li:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.tech-badges li img {
  width: 18px; height: 18px; display: block;
}

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial {
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.testimonial blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.author-meta { font-size: .9rem; line-height: 1.3; }
.author-name { font-weight: 600; color: var(--ink); }
.author-role { color: var(--muted); }
@media (max-width: 880px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ---------- How we work ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.how-step {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.how-step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-weight: 700; font-size: .85rem;
  color: var(--brand-2); margin-bottom: 12px; letter-spacing: .04em;
}
.how-step h4 { margin: 0 0 6px; }
.how-step p { margin: 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 880px) { .how-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(59,130,246,.25), transparent 60%),
    var(--bg-dark);
  color: #e2e8f0;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: #cbd5e1; }
.final-cta-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 800px) { .final-cta-inner { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-page { padding: 72px 0; background: var(--bg-alt); min-height: calc(100vh - 68px); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.contact-info h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.contact-info .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 50ch; }
.contact-info-block {
  margin-top: 32px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-info-block h4 { margin: 0 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-info-block p { margin: 0; color: var(--ink); }

.form {
  background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .req { color: var(--brand-2); }
.honey { position: absolute; left: -9999px; opacity: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-msg { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; }
.form-msg.ok { background: rgba(16,185,129,.1); color: #047857; border: 1px solid rgba(16,185,129,.3); }
.form-msg.err { background: rgba(239,68,68,.1); color: #b91c1c; border: 1px solid rgba(239,68,68,.3); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Cases filter chips ---------- */
.cases-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 0 0 32px;
}
.cases-filter .chip {
  padding: 8px 16px; font-size: .88rem; font-weight: 500;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.cases-filter .chip:hover { border-color: var(--brand); color: var(--brand); }
.cases-filter .chip.is-active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

/* Hide cards that don't match the selected tag */
.case-card[hidden] { display: none; }

/* NDA card (no external URL) */
.case-card.is-nda { cursor: default; }
.case-card.is-nda:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.case-cover-nda {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font-size: .68rem; padding: 3px 10px;
  background: rgba(245,158,11,.2); color: #fde68a;
  border: 1px solid rgba(245,158,11,.4);
  border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600;
}

.case-body-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 14px; border-top: 1px solid var(--line);
  margin-top: auto;
}
.case-body-tag {
  font-size: .72rem; padding: 3px 9px;
  background: var(--bg-alt); color: var(--ink-2);
  border-radius: 999px;
}

/* ---------- Case tags (hero pills) ---------- */
.case-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.case-tag-pill {
  padding: 4px 12px; font-size: .8rem; font-weight: 500;
  background: rgba(99,192,164,.15); color: var(--accent);
  border: 1px solid rgba(99,192,164,.3);
  border-radius: 999px;
}

/* ---------- Case detail ---------- */
.case-hero {
  background: var(--bg-dark); color: #e2e8f0; padding: 96px 0 64px;
  border-bottom: 1px solid var(--line-dark);
}
.case-hero h1 { color: #fff; max-width: 22ch; }
.case-hero .sector { color: #93c5fd; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.case-hero .lead { color: #cbd5e1; font-size: 1.2rem; max-width: 60ch; margin-top: 12px; }

.case-kpi-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  margin-top: 40px;
}
.case-kpi-row .stat { background: rgba(255,255,255,.06); padding: 24px; }
.case-kpi-row .stat-value { color: #fff; font-size: 2.2rem; }
.case-kpi-row .stat-label { color: #93c5fd; font-size: .8rem; }
@media (max-width: 720px) { .case-kpi-row { grid-template-columns: 1fr; } }

.case-body-section { padding: 72px 0; }
.case-body-section .case-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.case-body-section h2 { font-size: 1.4rem; }
.case-body-section p { font-size: 1.05rem; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack-list span {
  font-size: .82rem; padding: 4px 10px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
}
@media (max-width: 800px) { .case-body-section .case-cols { grid-template-columns: 1fr; } }

/* ---------- Service detail ---------- */
.service-hero {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(59,130,246,.25), transparent 60%),
    var(--bg-dark);
  color: #e2e8f0;
  padding: 88px 0 64px;
}
.service-hero h1 { color: #fff; max-width: 22ch; }
.service-hero .lead { color: #cbd5e1; font-size: 1.2rem; max-width: 60ch; margin-top: 12px; }
.service-hero .highlights {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.service-hero .highlights span {
  font-size: .85rem; padding: 6px 12px;
  background: rgba(59,130,246,.18); color: #93c5fd; border-radius: 999px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark); color: #94a3b8;
  padding: 64px 0 32px;
}
.footer h4 { color: #cbd5e1; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer .brand { color: #fff; }
.footer .brand-text strong { color: #93c5fd; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #94a3b8; font-size: .92rem; }
.footer-list a:hover { color: #fff; }
.footer .muted { color: #64748b; font-size: .88rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px; margin-top: 48px; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie table (privacy page) ---------- */
.cookie-table {
  width: 100%; border-collapse: collapse; margin: 16px 0 32px;
  font-size: .92rem;
}
.cookie-table th, .cookie-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.cookie-table th {
  background: var(--bg-alt); font-weight: 600; color: var(--ink);
}
.cookie-table code {
  background: var(--bg-alt); padding: 2px 6px; border-radius: 4px;
  font-size: .85em; color: var(--brand-2);
}
@media (max-width: 720px) {
  .cookie-table { font-size: .82rem; }
  .cookie-table th, .cookie-table td { padding: 8px 6px; }
}

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 200;
  display: none;
}
.consent-banner.is-visible { display: block; }
.consent-banner p {
  font-size: .92rem; margin: 0 0 14px; color: var(--ink-2);
}
.consent-banner a { color: var(--brand-2); }
.consent-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.consent-actions .btn { font-size: .88rem; padding: .55rem 1rem; }
@media (max-width: 540px) {
  .consent-banner { left: 8px; right: 8px; padding: 16px; }
  .consent-actions .btn { flex: 1 1 auto; }
}

/* ---------- LGPD consent checkbox in form ---------- */
.field-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; line-height: 1.5; color: var(--ink-2);
  margin-bottom: 12px;
}
.field-consent input[type="checkbox"] {
  flex-shrink: 0; margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--brand);
}
.field-consent a { color: var(--brand-2); }

/* ---------- Thanks page ---------- */
.thanks {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center;
  background: var(--bg-alt);
}
.thanks-card {
  max-width: 540px; margin: 0 auto; text-align: center; padding: 48px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thanks-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
}
