:root {
  --brand-blue: #0d3b66;
  --brand-blue-strong: #0a3154;
  --brand-blue-light: #1c5d99;
  --brand-orange: #f97316;
  --brand-yellow: #fbbf24;
  --brand-green: #0e9f6e;
  --surface: #f4f7fb;
  --surface-raised: #ffffff;
  --text: #10233b;
  --muted: #5d728a;
  --border: #d8e1ed;
  --shadow: 0 18px 48px rgba(16, 35, 59, 0.14);
  color: var(--text);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 225, 237, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.page-shell {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 38, 66, 0.96) 0%, rgba(8, 38, 66, 0.82) 42%, rgba(8, 38, 66, 0.25) 100%),
    url("/assets/peneirao-hero.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, rgba(244, 247, 251, 1), rgba(244, 247, 251, 0));
  pointer-events: none;
}

.hero-inner,
.section-inner,
.footer-inner,
.legal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 124px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-yellow);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
}

.hero-metrics span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.hero-metrics strong {
  color: #ffffff;
  font-size: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button-secondary-dark {
  border-color: rgba(13, 59, 102, 0.22);
  background: #eef5ff;
  color: var(--brand-blue);
}

.section {
  padding: 84px 0;
}

.section-white {
  background: #ffffff;
}

.section-muted {
  background: #ecf2f8;
}

.section-heading {
  max-width: 720px;
  margin: 0 0 32px;
}

.section-heading h2,
.legal-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.search-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 35, 59, 0.08);
}

.metric-card strong {
  color: var(--brand-orange);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.metric-card span {
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 850;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 19px;
  line-height: 1.22;
}

.card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 35, 59, 0.08);
}

.flow-card span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
}

.flow-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.trust-list span,
.legal-link-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 850;
}

.legal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.legal-link-list a {
  min-height: 48px;
  border-color: rgba(13, 59, 102, 0.2);
  text-decoration: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.provider-panel {
  border: 1px solid rgba(13, 59, 102, 0.18);
  border-radius: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 28px;
}

.app-download-band .section-heading {
  margin-bottom: 0;
}

.app-card {
  padding: 28px;
  border: 1px solid rgba(13, 59, 102, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.app-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-card > strong {
  display: block;
  margin-top: 16px;
  color: var(--brand-blue);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.provider-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.provider-panel p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.check-list,
.legal-content ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.check-list li,
.legal-content li {
  margin: 10px 0;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--brand-blue);
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.58;
}

.site-footer {
  padding: 42px 0;
  background: #071622;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.footer-copy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  background: #ffffff;
}

.legal-shell {
  padding: 56px 0 76px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin: 34px 0 12px;
  color: var(--brand-blue);
  font-size: 24px;
  line-height: 1.2;
}

.legal-content p {
  color: #2c3f56;
  line-height: 1.7;
}

.legal-content .status {
  color: var(--muted);
  font-size: 15px;
}

.legal-card {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.legal-card a {
  display: block;
  margin-top: 10px;
  color: var(--brand-blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 840px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(8, 38, 66, 0.98) 0%, rgba(8, 38, 66, 0.9) 48%, rgba(8, 38, 66, 0.48) 100%),
      url("/assets/peneirao-hero.png") center bottom / cover no-repeat;
  }

  .hero-inner {
    padding: 56px 0 132px;
  }

  .grid,
  .metrics-grid,
  .flow-grid,
  .split,
  .footer-inner,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section-inner,
  .footer-inner,
  .legal-shell,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions .button {
    width: 100%;
  }
}
