/*
 * compraadora — international institutional site.
 * Official palette (do not change): Framboesa #E2336B · Framboesa funda #B81C4E · Ameixa #2B1638 · Creme #FFF6EF · Sol #FFB547.
 * Interface variations below exist only for WCAG AA contrast (same values as packages/ui-web/src/brand.css).
 * Type: Nunito Black (display) and Nunito Sans (text), SIL OFL, self-hosted.
 */
@font-face { font-family: 'Nunito'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --ca-framboesa: #e2336b;
  --ca-framboesa-funda: #b81c4e;
  --ca-framboesa-escura: #9a1541;
  --ca-framboesa-clara: #fbe4ec;
  --ca-ameixa: #2b1638;
  --ca-creme: #fff6ef;
  --ca-sol: #ffb547;
  --ca-sol-claro: #fff1d6;
  --ca-sol-texto: #6b4000;

  --bg: #fffaf6;
  --surface: #ffffff;
  --surface-2: var(--ca-creme);
  --text: var(--ca-ameixa);
  --muted: #5d4867;
  --border: #ead9d6;
  --primary: var(--ca-framboesa-funda);
  --primary-hover: var(--ca-framboesa-escura);
  --on-primary: #ffffff;
  --accent: var(--ca-framboesa);
  --focus: #1a5fd6;

  --font-display: 'Nunito', 'Nunito Sans', system-ui, sans-serif;
  --font-text: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(43 22 56 / 6%), 0 8px 24px rgb(43 22 56 / 7%);
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170c1f;
    --surface: #21122c;
    --surface-2: #2c1a3a;
    --text: var(--ca-creme);
    --muted: #d2c0d8;
    --border: #45304f;
    --primary: #ff7aa2;
    --primary-hover: #ff9dba;
    --on-primary: #2b1638;
    --accent: #ff7aa2;
    --ca-framboesa-clara: #3d1830;
    --ca-sol-claro: #3b2a0c;
    --ca-sol-texto: #ffd48a;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }

/* Development notice */
.notice-bar { background: var(--ca-ameixa); color: var(--ca-creme); font-size: 0.9rem; text-align: center; padding: 8px var(--gutter); }
.notice-bar strong { color: var(--ca-sol); }
@media (prefers-color-scheme: dark) { .notice-bar { background: #0e0614; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-link img { display: block; width: 150px; height: auto; }
.brand-market { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.nav-desktop { display: none; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 4px; align-items: center; }
.nav-desktop a, .nav-mobile a { display: block; text-decoration: none; color: var(--text); font-weight: 700; padding: 10px 12px; border-radius: 999px; }
.nav-desktop a:hover, .nav-mobile a:hover { background: var(--ca-framboesa-clara); color: var(--text); }
.nav-desktop a[aria-current='page'], .nav-mobile a[aria-current='page'] { color: var(--primary); }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 800; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; gap: 8px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 18px; height: 18px; }
.nav-mobile[open] ul { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; }
.nav-mobile[open] a { padding: 12px 14px; }
@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .brand-link img { width: 170px; }
}

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--text); }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ca-sol-claro); color: var(--ca-sol-texto); }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--primary); text-transform: uppercase; margin-bottom: 12px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); }
.statement { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 3.4vw, 1.6rem); line-height: 1.35; color: var(--text); }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ca-creme) 0%, var(--bg) 60%); padding: 48px 0 56px; }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(160deg, #2c1a3a 0%, var(--bg) 70%); } }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 8px; }
.hero h1 em, h2 em { font-style: normal; color: var(--accent); }
.hero h1 em { display: inline-block; }
.hero .subhead { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3.6vw, 1.75rem); line-height: 1.3; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-hub { font-weight: 700; color: var(--muted); }
.hero-art { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .hero-symbol { position: absolute; left: 50%; top: 50%; width: 30%; height: auto; transform: translate(-50%, -50%); background: #fff; border-radius: 28%; padding: 4%; box-shadow: 0 12px 32px rgb(43 22 56 / 18%); }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }

/* Cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); }
.card .pill { align-self: flex-start; margin-top: auto; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--ca-framboesa-clara); color: var(--primary); display: grid; place-items: center; flex: none; }
.icon svg { width: 28px; height: 28px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 84px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Mission / vision blocks */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.mission-lead { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.35rem, 3.5vw, 1.9rem); line-height: 1.3; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checklist li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.95rem; }

/* America / UK band */
.band { background: var(--ca-ameixa); color: var(--ca-creme); }
.band h2 { color: #fff; }
.band h2 em { color: #ff8db0; }
.band p { color: #eadcef; }
.band .disclaimer { border-left: 4px solid var(--ca-sol); padding: 12px 16px; background: rgb(255 255 255 / 6%); border-radius: 0 12px 12px 0; font-size: 0.95rem; }
.band a { color: #ffc1d4; }
.chips { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; padding: 6px 14px; font-weight: 700; color: #fff; }
.chips li.featured { background: rgb(255 255 255 / 12%); border-color: var(--ca-sol); }
@media (prefers-color-scheme: dark) { .band { background: #0e0614; } }

/* Promise */
.promise { background: var(--primary); color: var(--on-primary); text-align: center; }
.promise .eyebrow { color: inherit; opacity: 0.9; }
.promise p.big { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 5.5vw, 3.2rem); line-height: 1.15; margin: 0 auto 16px; max-width: 900px; }
.promise p.small { font-weight: 700; font-size: 1.15rem; margin: 0; }
@media (prefers-color-scheme: dark) { .promise { background: var(--ca-framboesa-funda); color: #fff; } }

/* Manifesto */
.manifesto { background: var(--surface-2); }
.manifesto ol { list-style: none; padding: 0; margin: 24px 0; }
.manifesto li { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2.8vw, 1.45rem); line-height: 1.4; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--border); position: relative; }
.manifesto li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.manifesto .closing { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.35rem, 3.6vw, 1.9rem); line-height: 1.3; margin-top: 32px; }
.manifesto .signature { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--primary); }

/* Coming soon */
.coming { text-align: center; }
.coming .statement { max-width: 760px; margin: 0 auto 24px; }
.coming img { width: 88px; height: 88px; margin: 0 auto 16px; display: block; }

/* Prose pages */
.page-head { background: linear-gradient(160deg, var(--ca-creme) 0%, var(--bg) 70%); padding: 48px 0 32px; }
@media (prefers-color-scheme: dark) { .page-head { background: linear-gradient(160deg, #2c1a3a 0%, var(--bg) 70%); } }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 760px; }
.prose { padding: 40px 0 72px; }
.prose h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.callout { background: var(--ca-sol-claro); border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0; color: var(--text); }
.callout strong { color: var(--ca-sol-texto); }
.meta-line { color: var(--muted); font-size: 0.95rem; }
.faq h2 { font-size: 1.3rem; margin-top: 1.8em; }
.status { display: grid; gap: 8px; margin: 0 0 1em; }
.status p { margin: 0; }
.status .label { font-weight: 800; }
dl.entity { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 16px 0; }
dl.entity dt { font-weight: 800; }
dl.entity dd { margin: 0 0 8px; }
@media (min-width: 640px) { dl.entity { grid-template-columns: 200px 1fr; } dl.entity dd { margin: 0; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer img { width: 150px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer li a:hover { color: var(--primary); text-decoration: underline; }
.footer-tag { font-family: var(--font-display); font-weight: 800; margin: 12px 0 4px; }
.footer-legal { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: 0.875rem; }
.footer-legal p { margin: 0 0 8px; }
.region { margin-top: 12px; }
.region a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.region a[aria-current] { color: var(--text); text-decoration: none; }

/* ---------- UK edition (/uk/) ---------- */
h1 [lang='pt-BR'] em { font-style: normal; color: var(--accent); } /* large text: AA 3:1 */
.signature [lang='pt-BR'] em, .footer-tag [lang='pt-BR'] em { font-style: normal; color: var(--primary); } /* small text: AA 4.5:1 */
.footer-tag [lang='pt-BR'] { display: block; }
.uk-promise { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; color: var(--primary); }
.uk-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.band .uk-status { color: var(--ca-creme); }
.statement-light { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff !important; }
.toc ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; }
.toc a:hover { border-color: var(--primary); }
.manifesto .closing:first-of-type { margin-top: 8px; }
.center { justify-content: center; }
.mt { margin-top: 24px; }
[id] { scroll-margin-top: 88px; }
.band .eyebrow { color: var(--ca-sol); }
@media (min-width: 960px) { .grid-3 > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
.steps li { padding: 24px; }
.steps li::before { position: static; margin-bottom: 12px; }
.page-symbol { display: block; width: 72px; height: 72px; margin-bottom: 12px; }
