/* New Dreams — website corporativo 2026 */
:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: #0f1d30;
  --panel-2: #12243b;
  --text: #eaf1f8;
  --muted: #9fb1c5;
  --brand: #28d3b3;
  --brand-2: #5aa8ff;
  --accent: #a7f3d0;
  --line: rgba(255,255,255,.10);
  --danger: #ff8f8f;
  --ok: #8be3b2;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; background: white; color: #07111f; padding: 10px 14px; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,17,31,.84); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .06em; }
.brand img { width: 42px; height: 42px; }
.brand span small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--brand); margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #cbd7e5; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; }
.nav-cta { padding: 11px 16px; border: 1px solid rgba(40,211,179,.45); border-radius: 999px; background: rgba(40,211,179,.09); color: #d9fff7 !important; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: white; }
.hero { position: relative; overflow: hidden; padding: 92px 0 74px; }
.hero::before { content:""; position:absolute; inset:-160px -80px auto auto; width:620px; height:620px; background: radial-gradient(circle, rgba(90,168,255,.24), transparent 62%); pointer-events:none; }
.hero::after { content:""; position:absolute; left:-220px; bottom:-300px; width:620px; height:620px; background: radial-gradient(circle, rgba(40,211,179,.18), transparent 65%); pointer-events:none; }
.hero-grid { position:absolute; inset:0; opacity:.15; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.hero-layout { position:relative; display:grid; grid-template-columns: 1.15fr .85fr; align-items:center; gap:70px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; text-transform:uppercase; letter-spacing:.16em; font-size:12px; font-weight:800; color:var(--brand); }
.eyebrow::before { content:""; width:28px; height:1px; background:var(--brand); }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing:-.045em; margin:18px 0 22px; max-width: 900px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height:1.1; letter-spacing:-.03em; margin:0 0 18px; }
h3 { line-height:1.25; margin:0 0 10px; font-size:21px; }
p { margin: 0 0 16px; }
.lead { font-size:19px; color:#b7c7d8; max-width:730px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:13px 20px; font-weight:800; font-size:14px; border:1px solid transparent; transition:.2s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:linear-gradient(135deg,var(--brand),#25b8dc); color:#03151b; box-shadow:0 10px 30px rgba(40,211,179,.18); }
.btn-secondary { border-color:var(--line); background:rgba(255,255,255,.035); color:#f4f8fc; }
.hero-panel { position:relative; background:linear-gradient(155deg, rgba(18,36,59,.95), rgba(10,23,40,.93)); border:1px solid var(--line); border-radius:30px; padding:28px; box-shadow:var(--shadow); }
.signal { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; margin-top:18px; }
.signal-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.025); min-height:110px; }
.signal-card strong { display:block; font-size:24px; color:white; }
.signal-card span { color:var(--muted); font-size:13px; }
.section { padding: 86px 0; }
.section.alt { background: #0a1524; border-block:1px solid rgba(255,255,255,.05); }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:34px; }
.section-head p { color:var(--muted); max-width:680px; }
.grid { display:grid; gap:18px; }
.grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.card { padding:26px; background:linear-gradient(180deg, rgba(18,36,59,.75), rgba(12,26,44,.85)); border:1px solid var(--line); border-radius:var(--radius); }
.card:hover { border-color:rgba(40,211,179,.35); }
.card p { color:var(--muted); }
.icon { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; margin-bottom:20px; background:rgba(40,211,179,.12); border:1px solid rgba(40,211,179,.2); color:var(--brand); font-weight:900; }
.tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.tag { font-size:11px; border:1px solid var(--line); color:#b9c9da; padding:6px 9px; border-radius:999px; }
.kpi-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:28px; }
.kpi { padding:20px; border-left:1px solid var(--line); }
.kpi:first-child { border-left:0; }
.kpi strong { display:block; font-size:28px; }
.kpi span { color:var(--muted); font-size:13px; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; }
.checklist { list-style:none; padding:0; margin:22px 0 0; }
.checklist li { padding:10px 0 10px 30px; position:relative; color:#c5d2df; border-bottom:1px dashed rgba(255,255,255,.07); }
.checklist li::before { content:"✓"; position:absolute; left:0; color:var(--brand); font-weight:900; }
.tech-visual { min-height:420px; position:relative; border-radius:30px; border:1px solid var(--line); overflow:hidden; background:linear-gradient(160deg,#10243e,#081624); }
.tech-visual .orb { position:absolute; border-radius:50%; border:1px solid rgba(90,168,255,.32); }
.tech-visual .orb:nth-child(1){width:310px;height:310px;right:-40px;top:34px}
.tech-visual .orb:nth-child(2){width:220px;height:220px;right:5px;top:80px}
.tech-visual .orb:nth-child(3){width:120px;height:120px;right:55px;top:130px;background:rgba(40,211,179,.11)}
.tech-visual .node { position:absolute; padding:13px 16px; border-radius:13px; background:rgba(7,17,31,.9); border:1px solid rgba(255,255,255,.14); font-size:12px; color:#cfdae6; box-shadow:0 12px 24px rgba(0,0,0,.2); }
.tech-visual .n1{left:24px;top:44px}.tech-visual .n2{left:78px;top:154px}.tech-visual .n3{left:28px;bottom:42px}.tech-visual .n4{right:24px;bottom:38px}
.callout { border-radius:28px; padding:38px; background:linear-gradient(120deg,rgba(40,211,179,.13),rgba(90,168,255,.12)); border:1px solid rgba(40,211,179,.22); display:flex; align-items:center; justify-content:space-between; gap:30px; }
.callout p { color:#b7c7d8; max-width:760px; }
.page-hero { padding:72px 0 56px; border-bottom:1px solid var(--line); background:radial-gradient(circle at 80% 20%, rgba(90,168,255,.14), transparent 35%); }
.page-hero h1 { font-size:clamp(40px,5vw,62px); }
.breadcrumb { color:var(--muted); font-size:13px; margin-bottom:18px; }
.prose { max-width:880px; color:#c3d0dd; }
.prose h2 { margin-top:36px; font-size:30px; }
.prose h3 { margin-top:26px; }
.prose a { color:var(--brand); text-decoration:underline; text-underline-offset:3px; }
.prose ul { padding-left:20px; }
.prose li { margin:8px 0; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:16px; }
table { width:100%; border-collapse:collapse; min-width:700px; }
th,td { padding:14px 16px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:rgba(255,255,255,.04); color:#fff; }
td { color:#bfd0df; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:flex; flex-direction:column; gap:8px; }
.field.full { grid-column:1/-1; }
label { font-size:13px; font-weight:700; color:#d7e1ea; }
input, textarea, select { width:100%; border:1px solid rgba(255,255,255,.14); background:#091728; color:white; border-radius:12px; padding:13px 14px; outline:none; }
textarea { min-height:150px; resize:vertical; }
input:focus,textarea:focus,select:focus { border-color:rgba(40,211,179,.65); box-shadow:0 0 0 3px rgba(40,211,179,.08); }
.checkbox { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#adbdcc; }
.checkbox input { width:18px; height:18px; margin-top:2px; accent-color:var(--brand); }
.checkbox a { color:#d8fff7; text-decoration:underline; }
.form-status { margin-top:14px; min-height:22px; font-size:14px; }
.form-status.ok { color:var(--ok); }.form-status.error{color:var(--danger)}
.site-footer { padding:54px 0 24px; border-top:1px solid var(--line); background:#050d17; }
.footer-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr .9fr; gap:30px; }
.footer-grid h4 { margin:0 0 12px; font-size:14px; }
.footer-grid p, .footer-grid a { color:#91a5b9; font-size:13px; }
.footer-grid a { display:block; margin:8px 0; }
.footer-bottom { margin-top:38px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; color:#71869b; font-size:12px; }
.cookie-banner { position:fixed; left:18px; right:18px; bottom:18px; z-index:4000; max-width:1080px; margin:auto; padding:22px; background:#0b1728; border:1px solid rgba(255,255,255,.16); border-radius:20px; box-shadow:0 25px 70px rgba(0,0,0,.45); display:none; }
.cookie-banner.show { display:block; }
.cookie-layout { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.cookie-banner p { color:#afc0d0; font-size:13px; margin:5px 0 0; max-width:660px; }
.cookie-actions { display:flex; gap:8px; flex-wrap:wrap; }
.cookie-actions button { border-radius:999px; padding:10px 14px; border:1px solid var(--line); background:#111f32; color:white; font-weight:700; font-size:12px; }
.cookie-actions .accept { background:var(--brand); color:#041918; border-color:transparent; }
.cookie-modal { position:fixed; inset:0; z-index:5000; background:rgba(0,0,0,.65); display:none; place-items:center; padding:20px; }
.cookie-modal.open { display:grid; }
.cookie-dialog { width:min(680px,100%); max-height:88vh; overflow:auto; border:1px solid var(--line); border-radius:22px; background:#0b1728; box-shadow:var(--shadow); padding:26px; }
.cookie-row { display:flex; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }
.cookie-row p { color:var(--muted); font-size:13px; }
.switch { position:relative; width:48px; height:26px; flex:0 0 auto; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; inset:0; border-radius:999px; background:#34465b; transition:.2s; }
.slider::after { content:""; position:absolute; width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:white;transition:.2s; }
.switch input:checked + .slider { background:var(--brand); }.switch input:checked + .slider::after{transform:translateX(22px)}
.switch input:disabled + .slider { opacity:.6; }
.notice { padding:18px 20px; border-left:3px solid var(--brand); border-radius:8px; background:rgba(40,211,179,.07); color:#bbd2d0; }
.honeypot { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
@media (max-width: 900px) {
  .menu-btn { display:grid; place-items:center; }
  .nav-links { position:absolute; left:20px; right:20px; top:70px; padding:18px; background:#0b1728; border:1px solid var(--line); border-radius:18px; flex-direction:column; align-items:stretch; display:none; box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .hero-layout,.split { grid-template-columns:1fr; }
  .grid-3 { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .kpi-strip { grid-template-columns:1fr 1fr; }
  .hero { padding-top:64px; }
}
@media (max-width: 620px) {
  .container { width:min(calc(100% - 28px),var(--max)); }
  .grid-2,.grid-3,.form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .section { padding:66px 0; }
  .section-head,.callout,.cookie-layout,.footer-bottom { flex-direction:column; align-items:flex-start; }
  .footer-grid { grid-template-columns:1fr; }
  .kpi-strip { grid-template-columns:1fr; }
  .kpi { border-left:0; border-top:1px solid var(--line); }
  .kpi:first-child { border-top:0; }
  h1 { font-size:44px; }
}
@media (prefers-reduced-motion: reduce) { html{scroll-behavior:auto} .btn{transition:none} }

/* ==========================================================
   Responsive hardening — v1.1 (desktop, tablet, mobile)
   ========================================================== */
html {
  min-width: 320px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 320px;
  overflow-x: clip;
}
main,
section,
header,
footer,
.container,
.nav,
.hero-layout,
.split,
.grid,
.card,
.callout,
.footer-grid,
.cookie-layout {
  min-width: 0;
}
.container {
  width: 100%;
  max-width: var(--max);
  padding-inline: clamp(16px, 3vw, 28px);
}
.site-header {
  width: 100%;
}
.nav {
  position: relative;
  min-height: 78px;
  height: auto;
  padding-block: 10px;
}
.brand {
  min-width: 0;
  flex: 0 1 auto;
}
.brand span {
  white-space: nowrap;
}
.nav-links {
  min-width: 0;
}
.hero-layout > *,
.split > *,
.grid > *,
.footer-grid > * {
  min-width: 0;
}
h1,
h2,
h3,
p,
li,
a,
span,
label,
button {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.65rem, 5vw, 4.75rem);
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.lead {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
}
.hero-panel h3,
.card h3,
.callout h2 {
  max-width: 100%;
}
.callout h2 {
  font-size: clamp(1.8rem, 3vw, 2.25rem) !important;
}
.btn {
  min-height: 46px;
  text-align: center;
  line-height: 1.25;
}
.card,
.hero-panel,
.callout,
.cookie-dialog {
  max-width: 100%;
}
.table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
input,
textarea,
select,
button {
  max-width: 100%;
}

/* Evita conflito do menu em notebooks, tablets horizontais e browser com zoom. */
@media (max-width: 1120px) {
  .menu-btn {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
  }
  .nav-links {
    position: absolute;
    left: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
    top: calc(100% + 1px);
    z-index: 1200;
    padding: 14px;
    background: rgba(11, 23, 40, .98);
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: rgba(255,255,255,.045);
  }
  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }
  .hero-layout {
    gap: clamp(28px, 5vw, 52px);
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 64px 0 58px;
  }
  .hero-layout,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-layout {
    gap: 34px;
  }
  .hero-panel {
    width: 100%;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi:nth-child(3) {
    border-left: 0;
  }
  .tech-visual {
    min-height: 360px;
  }
  .callout {
    align-items: flex-start;
  }
  .callout .btn {
    flex: 0 0 auto;
  }
  .page-hero {
    padding: 58px 0 46px;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 70px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand span {
    font-size: 14px;
  }
  .brand span small {
    font-size: 8px;
  }
  .hero {
    padding: 52px 0 48px;
  }
  .hero::before {
    width: 460px;
    height: 460px;
    right: -220px;
    top: -180px;
  }
  .hero::after {
    width: 440px;
    height: 440px;
    left: -260px;
    bottom: -260px;
  }
  h1 {
    font-size: clamp(2.35rem, 9.5vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -.035em;
  }
  h2 {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }
  .hero-panel,
  .card {
    padding: 22px;
  }
  .signal {
    grid-template-columns: 1fr 1fr;
  }
  .signal-card {
    min-height: 100px;
  }
  .section {
    padding: 62px 0;
  }
  .callout {
    padding: 28px;
    flex-direction: column;
  }
  .callout .btn {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px;
    border-radius: 16px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
  .cookie-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions button {
    flex: 1 1 150px;
    min-height: 44px;
  }
  .cookie-modal {
    padding: 10px;
    align-items: end;
  }
  .cookie-dialog {
    width: 100%;
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    border-radius: 20px 20px 12px 12px;
    padding: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 16px;
  }
  .nav-links {
    left: 12px;
    right: 12px;
  }
  .grid-2,
  .grid-3,
  .footer-grid,
  .kpi-strip,
  .signal {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .kpi {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .kpi:first-child {
    border-top: 0;
  }
  .tech-visual {
    min-height: 330px;
    border-radius: 22px;
  }
  .tech-visual .orb:nth-child(1) {
    width: 250px;
    height: 250px;
    right: -90px;
    top: 38px;
  }
  .tech-visual .orb:nth-child(2) {
    width: 180px;
    height: 180px;
    right: -35px;
    top: 74px;
  }
  .tech-visual .orb:nth-child(3) {
    width: 100px;
    height: 100px;
    right: 6px;
    top: 114px;
  }
  .tech-visual .node {
    max-width: 52%;
    padding: 10px 12px;
    font-size: 11px;
  }
  .tech-visual .n1 { left: 14px; top: 28px; }
  .tech-visual .n2 { left: 36px; top: 120px; }
  .tech-visual .n3 { left: 14px; bottom: 28px; }
  .tech-visual .n4 { right: 14px; bottom: 28px; }
  .page-hero {
    padding: 46px 0 38px;
  }
  .page-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }
  .prose h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  table {
    min-width: 620px;
  }
  .cookie-row {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 14px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand span {
    font-size: 12px;
    letter-spacing: .04em;
  }
  .brand span small {
    font-size: 7px;
    letter-spacing: .12em;
  }
  .menu-btn {
    width: 42px;
    height: 42px;
  }
  h1 {
    font-size: clamp(2.1rem, 10vw, 2.65rem);
  }
  .hero-panel,
  .card,
  .callout {
    padding: 19px;
    border-radius: 18px;
  }
  .section {
    padding: 52px 0;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
  }
  .eyebrow::before {
    width: 20px;
  }
  .btn {
    width: 100%;
    padding-inline: 16px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions button {
    width: 100%;
    flex-basis: auto;
  }
  .cookie-row {
    align-items: flex-start;
  }
  .switch {
    margin-top: 2px;
  }
}

/* Safari/iOS: respeita áreas seguras em telas com notch. */
@supports (padding: max(0px)) {
  .site-header .container,
  .site-footer .container,
  main .container {
    padding-left: max(clamp(14px, 3vw, 28px), env(safe-area-inset-left));
    padding-right: max(clamp(14px, 3vw, 28px), env(safe-area-inset-right));
  }
  .cookie-banner {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* ==========================================================
   Layout refinements — v1.2
   Full-width canvas + button/arrow normalization
   ========================================================== */
:root {
  --page-gutter: clamp(18px, 3.25vw, 64px);
}

/* O site passa a usar toda a largura útil do navegador. */
.container {
  width: 100%;
  max-width: none;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  margin-inline: 0;
}

/* Mantém textos editoriais confortáveis mesmo em telas ultrawide. */
.prose {
  max-width: 1040px;
}

/* Evita que a seta desça sozinha para a linha inferior. */
.btn,
.cookie-actions button {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* CTAs: dimensões e alinhamento consistentes em todas as páginas. */
.btn {
  min-height: 46px;
  padding: 13px 20px;
  line-height: 1.2;
}

.callout .btn {
  flex: 0 0 auto;
  align-self: center;
}

/* Banner LGPD: ações proporcionais e sem botões com larguras aleatórias. */
.cookie-banner {
  left: var(--page-gutter);
  right: var(--page-gutter);
  max-width: none;
  width: auto;
}

.cookie-layout > div:first-child {
  flex: 1 1 520px;
  min-width: 0;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  flex: 0 1 570px;
  align-items: stretch;
}

.cookie-actions button {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* No modal existem somente duas ações: ficam equilibradas. */
.cookie-dialog > .cookie-actions {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  width: min(100%, 460px);
  margin-left: auto;
}

/* Hero e seções respiram melhor no desktop largo. */
@media (min-width: 1440px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
    gap: clamp(56px, 5vw, 96px);
  }
  .section-head p {
    max-width: 760px;
  }
  .grid {
    gap: clamp(18px, 1.5vw, 28px);
  }
  .card {
    padding: clamp(26px, 2vw, 34px);
  }
}

@media (max-width: 1120px) {
  .nav-links {
    left: var(--page-gutter);
    right: var(--page-gutter);
  }
  .cookie-layout {
    align-items: stretch;
  }
  .cookie-actions {
    flex-basis: 500px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cookie-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-layout > div:first-child,
  .cookie-actions {
    flex: 0 0 auto;
    width: 100%;
  }
  .cookie-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .callout .btn {
    align-self: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
  }
  .cookie-dialog > .cookie-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .callout .btn {
    align-self: stretch;
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 14px;
  }
}

/* Safe-area coerente com o novo gutter full-width. */
@supports (padding: max(0px)) {
  .site-header .container,
  .site-footer .container,
  main .container {
    padding-left: max(var(--page-gutter), env(safe-area-inset-left));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right));
  }
}
