/* Landing page (public). White base, navy text, red and yellow as small accents. Inter is self-hosted: the CSP allows no external fonts.
   Tokens mirror frontend/merchant-portal/src/app/brand.ts and DESIGN.md; the other public pages keep using styles.css. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy: #052b61; --navy-deep: #031d44;
  --red: #ff2d2d; --red-dark: #b90f28;
  --yellow: #ffd032; --yellow-soft: #ffe27a;
  --white: #ffffff; --paper: #f7f8fa; --sun: #fff8de; --sun-line: #f3e3a6; /* official "Amarelo Claro" */ --form: #eaf2ff; --form-line: #c9dcf8; /* official "Azul Formulário" */
  --ink-soft: #5b6575; --line: #e6e9ef; --line-strong: #c9d1de;
  --r-s: 8px; --r-m: 14px; --r-pill: 999px; /* the whole radius scale */
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--navy); background: var(--white); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: var(--r-s); }
.hidden { display: none !important; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--navy); color: var(--white); border-radius: var(--r-s); }
.skip:focus { left: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--navy); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white); color: var(--navy); font: 600 15px var(--font); cursor: pointer; }

/* buttons: one yellow primary per screen area; the header uses the outline */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-pill); font: 700 16px var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--navy); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-soft); }
.btn-outline { background: var(--white); color: var(--navy); min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-outline:hover { background: var(--paper); }
.btn-nav { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; text-decoration: none; }
.nav a.btn-nav { color: var(--navy); text-decoration: none; }
.btn-register { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 22px rgba(255, 208, 50, 0.34); }
.btn-register:hover { background: var(--yellow-soft); }
.nav a.btn-portal, .btn-portal { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.nav a.btn-portal:hover, .btn-portal:hover { background: #0b3e86; text-decoration: none; }
.btn-portal:focus-visible { outline-color: var(--yellow); }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }

/* sections */
section { padding: 88px 0; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.lede { margin-top: 16px; max-width: 62ch; color: var(--ink-soft); }

@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(5, 43, 97, 0.12); }
  .nav.open { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  .nav .btn-nav { margin-top: 12px; border-bottom: 0; justify-content: center; min-height: 52px; }
  section { padding: 64px 0; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
