:root {
  --navy: #1b2d39;
  --navy-deep: #14222c;
  --teal: #3e9d93;
  --teal-dark: #2f7f77;
  --white: #ffffff;
  --mist: #f2f6f7;
  --line: #dde6e8;
  --text: #24343f;
  --muted: #5b6d77;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 45, 57, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--navy); }
p { margin: 0 0 1rem; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font: 600 .95rem/1 "Montserrat", sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: 11px 20px; font-size: .85rem; }
.btn svg { width: 15px; height: 15px; margin: -3px 8px 0 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 45, 57, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 36px; width: auto; }
.brand-text { font-weight: 600; letter-spacing: .08em; font-size: 1.15rem; }
.brand-text b { color: var(--teal); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(62,157,147,.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 9vw, 110px);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--teal); margin-bottom: 18px; }
.eyebrow.dark { color: var(--teal-dark); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.7rem); font-weight: 700; max-width: 17ch; }
.hero h1 span { color: var(--teal); }
.lead { max-width: 60ch; margin: 26px 0 34px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 34px; padding: 0; margin: 56px 0 0; }
.pillars li { position: relative; padding-left: 18px; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75); }
.pillars li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--teal); }
.hero-shape {
  position: absolute; right: -80px; bottom: -120px; width: 520px; height: 520px;
  background: linear-gradient(135deg, rgba(62,157,147,.35), rgba(62,157,147,0));
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
  opacity: .55;
}

/* Sections */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border-top: 4px solid var(--teal);
}
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(62,157,147,.12); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--teal-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.card-sub { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--teal-dark); text-transform: uppercase; }
.card ul { padding: 0; margin: 0 0 18px; list-style: none; }
.card li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .95rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.benefit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); margin-bottom: 0; }
.benefit b { color: var(--navy); }
.more { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--mist); }
.more summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.more dl { margin: 0; padding: 0 16px 14px; font-size: .9rem; }
.more dt { font-weight: 700; color: var(--teal-dark); margin-top: 10px; }
.more dd { margin: 0; color: var(--muted); }

/* Features */
.section-head.light h2 { color: #fff; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { padding-top: 22px; border-top: 2px solid var(--teal); }
.feature .num { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .15em; color: var(--teal); margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps li { counter-increment: s; position: relative; padding: 70px 24px 26px; background: var(--mist); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; top: 22px; left: 24px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.contact h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { color: rgba(255,255,255,.8); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { margin-bottom: 12px; }
.contact-list span { display: inline-block; min-width: 90px; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--teal); }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-list a:hover { border-color: var(--teal); }
.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  font: 400 .95rem "Montserrat", sans-serif; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form input.invalid { border-color: #c0392b; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.form-note.error { color: #c0392b; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 28px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand strong { display: block; color: #fff; letter-spacing: .08em; }
.footer-brand b { color: var(--teal); }
.footer-brand span { font-size: .82rem; }
.footer-tag { margin: 0; text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--teal); line-height: 2.2; }
.footer-link { color: rgba(255,255,255,.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer-link:hover { color: #fff; border-color: var(--teal); }

/* Portal do cliente: login */
body:has(dialog[open]) { overflow: hidden; }
.login { border: 0; padding: 0; background: transparent; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: visible; color: var(--text); }
.login::backdrop { background: rgba(20, 34, 44, .74); backdrop-filter: blur(3px); }
.login[open] { animation: login-in .2s ease-out; }
@keyframes login-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.form-login { position: relative; gap: 14px; padding: 32px 30px 26px; border-top: 4px solid var(--teal); max-height: calc(100dvh - 32px); overflow-y: auto; }
.login-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.login-brand img { height: 30px; width: auto; }
.login-brand .brand-text { font-size: 1rem; }
.login h2 { font-size: 1.55rem; margin-top: 6px; }
.login-sub { margin: -6px 0 2px; color: var(--muted); font-size: .92rem; }
.login-status { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(62,157,147,.12); color: var(--navy); font-size: .85rem; font-weight: 500; }
.form-login .btn { justify-self: stretch; width: 100%; padding: 15px 28px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--mist); color: var(--navy); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .slash { display: none; }
.pw-toggle[aria-pressed="true"] .slash { display: block; }
.login-help { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-size: .85rem; }
.login-help a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.login-help a:hover { text-decoration: underline; }
.login-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.login-close:hover { background: var(--mist); color: var(--navy); }
.footer-legal { margin: 0; text-align: right; font-size: .8rem; }

/* Responsive */
@media (max-width: 980px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .nav .btn:first-of-type { margin-top: 18px; }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-legal { text-align: center; }
}
@media (max-width: 560px) {
  .features, .steps { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .form { padding: 22px; }
  .hero-shape { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
