/* Desafios Coincidentes prototype. Brand: Poppins (the current site's font), the logo's two blues, soft 10px corners. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/poppins-700.woff2') format('woff2'); }

:root {
  --navy: #163f7a; --navy-2: #11325f; --blue: #1f5fae; --blue-2: #1a52a0; --sky: #5fa0e0; --sky-2: #a9cdf0;
  --tint: #e4eef9; --tint-2: #d6e5f6; --paper: #f6f8fb; --white: #fff;
  --ink: #0f1f3a; --ink-2: #3b4a66; --ink-3: #5d6b85; --line: rgba(22, 63, 122, .16);
  --on-dark: #f4f8fd; --on-dark-2: #c6d8ee;
  --r: 10px; --w: 1200px; --gutter: clamp(20px, 4vw, 56px);
  --fs-h1: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); --fs-h2: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); --fs-h3: 1.2rem;
  --shadow: 0 10px 30px rgba(22, 63, 122, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 'Poppins', 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word; -webkit-tap-highlight-color: rgba(31, 95, 174, .2); }
a, button, input, select, textarea { touch-action: manipulation; }
.site-footer li, .contact-info, .legal, .fact { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .25em 0; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.nb { white-space: nowrap; }
.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -.2em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--on-dark); padding: .5rem 1rem; z-index: 100; border-radius: var(--r); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.4rem; border: 2px solid var(--blue); border-radius: var(--r); background: var(--blue); color: var(--white); font: 600 .95rem/1.2 'Poppins', sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s; white-space: nowrap; min-height: 48px; }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--tint); color: var(--navy); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); color: var(--white); }
.btn .icon { width: 1.1em; height: 1.1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--tint); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 200px; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1.3rem); list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; padding: .5rem .1rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.menu a:hover { color: var(--navy); }
.menu a[aria-current='page'] { color: var(--navy); border-bottom-color: var(--blue); }
.menu .cta a { padding: .6rem 1rem; border-radius: var(--r); background: var(--blue); color: var(--white); border: 0; font-weight: 600; }
.menu .cta a:hover { background: var(--blue-2); color: var(--white); }
.menu-toggle { display: none; background: transparent; border: 2px solid var(--line); border-radius: var(--r); color: var(--navy); padding: .5rem .6rem; cursor: pointer; min-width: 48px; min-height: 48px; }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--tint); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu li { border-top: 1px solid var(--line); }
  .menu a { display: block; padding: .9rem 0; font-size: 1rem; border-bottom: 0; }
  .menu a[aria-current='page'] { border-bottom: 0; font-weight: 600; }
  .menu .cta { border-top: 0; margin-top: .75rem; }
  .menu .cta a { text-align: center; }
  .brand img { width: 170px; }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.navy { background: var(--navy); color: var(--on-dark); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.section.navy p { color: var(--on-dark-2); }
.section.navy a:not(.btn) { color: var(--sky-2); }
.section.navy a:not(.btn):hover { color: var(--white); }
.section.blue { background: var(--blue); color: var(--on-dark); }
.section.blue h2 { color: var(--white); }
.section.blue p { color: var(--on-dark); }
.section.tint { background: var(--tint); }
.section.paper { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { margin-bottom: 0; }

/* Hero (home) */
.hero { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(95, 160, 224, .35), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { color: var(--white); margin-bottom: .6em; }
.hero .lead { color: var(--on-dark-2); font-size: 1.15rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-pic img { width: 100%; border-radius: var(--r); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); aspect-ratio: 660 / 820; object-fit: cover; }
.hero-pic figcaption { margin-top: .6rem; font-size: .85rem; color: var(--on-dark-2); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-pic { order: 2; max-width: 420px; }
  .hero-pic img { aspect-ratio: 4 / 3; }
}

/* Page header (inner pages) */
.page-head { background: var(--navy); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(95, 160, 224, .3), transparent 60%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { color: var(--white); margin-bottom: .4em; }
.page-head .lead { color: var(--on-dark-2); margin-bottom: 0; }
.crumbs { font-size: .85rem; color: var(--on-dark-2); margin-bottom: 1rem; }
.crumbs a { color: var(--on-dark-2); }
.crumbs a:hover { color: var(--white); }

/* Promise band */
.promise { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.promise blockquote { margin: 0; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; color: var(--navy); line-height: 1.3; }
.promise .facts { display: grid; gap: .75rem; }
.fact { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.fact .icon { color: var(--blue); width: 1.35rem; height: 1.35rem; margin-top: .15rem; }
.fact a { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service { background: var(--white); border-radius: var(--r); padding: 1.5rem; box-shadow: 0 2px 0 var(--tint-2); display: flex; flex-direction: column; gap: .5rem; }
.service .icon { width: 2rem; height: 2rem; color: var(--blue); }
.service h3 { margin: .25rem 0 0; font-size: 1.1rem; }
.service p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.service a { margin-top: auto; font-weight: 500; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Split (text + image) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split.rev > .split-pic { order: -1; }
.split-pic img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; }
.split-pic.poster { max-width: 440px; justify-self: center; }
.checks { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks .icon { color: var(--blue); width: 1.3rem; height: 1.3rem; margin-top: .2rem; }
.checks small { display: block; color: var(--ink-3); font-size: .85rem; }
.section.navy .checks .icon { color: var(--sky-2); }
.section.navy .checks small { color: var(--on-dark-2); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev > .split-pic { order: 0; } .split-pic.poster { max-width: 360px; } }

/* Products band */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.product { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 1.4rem; }
.product .icon { width: 1.9rem; height: 1.9rem; color: var(--sky-2); margin-bottom: .6rem; }
.product h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.product p { font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* Brands strip */
.brands { display: flex; flex-wrap: wrap; gap: .6rem 1rem; list-style: none; padding: 0; margin: 0; }
.brands li { background: var(--white); border-radius: var(--r); padding: .55rem 1rem; font-weight: 600; color: var(--navy); font-size: .95rem; letter-spacing: .01em; }

/* Values (empresa) */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.value { text-align: left; display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center; }
.value img { width: 72px; height: 72px; }
.value h3 { margin: 0; font-size: 1.05rem; }
.value p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.split .values { grid-template-columns: 1fr; gap: .75rem; }
.split .value { grid-template-columns: 56px 1fr; }
.split .value img { width: 56px; height: 56px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Lists in groups (hardware) */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.group h3 { font-size: 1.05rem; color: var(--navy); padding-bottom: .4rem; border-bottom: 2px solid var(--tint-2); margin-bottom: .6rem; }
.group ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.group li { break-inside: avoid; font-size: .95rem; color: var(--ink-2); padding: .2rem 0; }
@media (max-width: 760px) { .groups { grid-template-columns: 1fr; } .group ul { columns: 1; } }

/* Partner logos (software) */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.partner { background: var(--white); border-radius: var(--r); padding: 1.75rem; box-shadow: 0 2px 0 var(--tint-2); }
.partner img { height: 48px; width: auto; margin-bottom: 1rem; }
.partner p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 640px) { .partners { grid-template-columns: 1fr; } }

/* Promotions */
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.promo { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.promo img { width: 100%; }
.promo-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.promo-body h3 { margin: 0; }
.promo-body p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.promo-body .btn { margin-top: auto; align-self: flex-start; }
.price { font-weight: 700; color: var(--navy); font-size: 1.25rem; }
@media (max-width: 960px) { .promos { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.kit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.kit-layout .split-pic { max-width: 100%; }
.kit { background: var(--white); border-radius: var(--r); padding: 1.5rem; box-shadow: 0 2px 0 var(--tint-2); }
.kit h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.kit ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-2); }
.kit li { padding: .15rem 0; }
@media (max-width: 960px) { .kit-layout { grid-template-columns: 1fr 1fr; } .kit-layout .split-pic { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 640px) { .kit-layout { grid-template-columns: 1fr; } }

/* Steps (suporte) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { background: var(--white); border-radius: var(--r); padding: 1.5rem; box-shadow: 0 2px 0 var(--tint-2); }
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-info .fact { font-size: 1rem; }
.contact-info .fact div { display: grid; gap: .1rem; }
.contact-info .fact b { color: var(--ink); font-weight: 600; }
.contact-info a { white-space: nowrap; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Form */
.form { background: var(--white); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .check label { font-weight: 500; font-size: .92rem; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: .75rem .9rem; border: 1.5px solid #b9c7da; border-radius: 8px; background-color: var(--white); color: var(--ink); font: inherit; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7a93; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field .err, .check .err { display: none; font-size: .85rem; color: #a3261e; }
.field.invalid .err, .check.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #a3261e; }
.check { display: grid; gap: .3rem; }
.check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; accent-color: var(--blue); }
.form-error { display: none; background: #fbe9e7; color: #7a1d16; border-radius: 8px; padding: .75rem 1rem; font-size: .92rem; }
.form-error.show { display: block; }
.form .btn { justify-self: start; }
.section.tint .form { box-shadow: 0 2px 0 var(--tint-2); }

/* Thank-you, legal, 404 */
.thanks dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; background: var(--white); border-radius: var(--r); padding: 1.25rem 1.5rem; margin: 1.5rem 0; max-width: 40rem; }
.thanks dt { font-weight: 600; color: var(--navy); }
.thanks dd { margin: 0; color: var(--ink-2); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { max-width: 72ch; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-2); color: var(--on-dark-2); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h3 { color: var(--white); font-size: .95rem; margin-bottom: .75rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.foot-grid a { color: var(--on-dark-2); text-decoration: none; }
.foot-grid a:hover { color: var(--white); text-decoration: underline; }
.foot-brand img { width: 220px; margin-bottom: 1rem; }
.foot-brand p { font-size: .92rem; margin: 0 0 .5rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; }
.foot-bottom a { color: var(--on-dark-2); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
