:root {
  --red: #b3261e;
  --red-dark: #951d17;
  --logo: #1f4568;
  --navy: #0b2a6b;
  --ink: #0d1117;
  --muted: #5b6573;
  --line: #dfe3ea;
  --gray: #f3f4f6;
  --pad: 20px;
  --header-h: 64px;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 64px 0; }
.gray { background: var(--gray); }
.hide-m { display: none; }

.label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.label.small { font-size: .62rem; margin-bottom: 0; }
.label.light { color: #9fb6e6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 20px; font: 600 .85rem "Inter", sans-serif; border: 0; border-radius: 3px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-sm { padding: 10px 12px; font-size: .72rem; gap: 8px; white-space: nowrap; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%; max-width: 1344px; margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: .62rem; letter-spacing: .06em; line-height: 1.25; color: var(--logo); }
.brand-text small { font-size: .62rem; font-weight: 500; letter-spacing: .24em; }
.brand.light .brand-text { color: #fff; }
.brand.light img { filter: brightness(0) invert(1); }

.main-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px;
  display: none; flex-direction: column;
}
.main-nav.open { display: flex; }
.main-nav a { padding: 14px 0; font-size: .95rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.main-nav a:last-child { border-bottom: 0; }

.menu-btn {
  width: 40px; height: 40px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 9px;
}
.menu-btn span { height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: #0d1117; color: #fff; }
.stage {
  position: relative; aspect-ratio: 1376 / 768; overflow: hidden; background: #e9ebee;
  cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.layer.plano { clip-path: inset(0 50% 0 0); background: #fff; }
.shade {
  display: none; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,12,20,.88) 0%, rgba(10,12,20,.55) 36%, rgba(10,12,20,0) 62%);
}
.tag {
  position: absolute; top: 12px; padding: 5px 9px; background: #fff; color: var(--ink);
  font: 500 .62rem var(--mono); letter-spacing: .05em; pointer-events: none;
}
.tag-l { left: var(--pad); }
.tag-r { right: var(--pad); }

.divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--red);
  transform: translateX(-50%); pointer-events: none;
}
.knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--red);
  border: 2px solid var(--red); display: grid; place-items: center;
  font: 700 .8rem "Inter", sans-serif; letter-spacing: -1px; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.knob::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(179,38,30,.6); animation: pulse 2s ease-out infinite;
}
.touched .knob::after { animation: none; opacity: 0; }
@keyframes pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.hero-copy { padding: 36px var(--pad) 0; }
.hero-copy .btn { display: flex; width: 100%; padding: 18px 20px; }
.eyebrow { font: 400 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); font-weight: 700; }
.lead { margin: 14px 0 22px; font-size: .95rem; opacity: .9; max-width: 440px; }
.hint {
  padding: 26px var(--pad) 32px; font: 400 .62rem var(--mono);
  letter-spacing: .1em; text-transform: uppercase; opacity: .85; transition: opacity .4s; pointer-events: none;
}
.touched .hint { opacity: 0; }

/* ---------- strip ---------- */
.strip { background: var(--gray); border-bottom: 1px solid var(--line); }
.strip-inner { max-width: 1344px; margin: 0 auto; padding: 18px var(--pad); display: grid; gap: 14px; }
.strip-inner li { display: flex; gap: 12px; align-items: baseline; }
.strip .num { font: 400 .62rem var(--mono); color: var(--red); }
.strip strong { display: block; font-size: .8rem; font-weight: 600; }
.strip div span { font-size: .68rem; color: var(--muted); }

/* ---------- section heads ---------- */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
h2 { font-size: clamp(1.7rem, 6.5vw, 2.5rem); }
.side { color: var(--muted); font-size: .9rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; }
.steps li { position: relative; padding: 24px 0 24px 56px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  position: absolute; left: 0; top: 24px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--red); color: var(--red); font: 400 .72rem var(--mono); background: #fff;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; }
.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 18px 20px 22px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,17,23,.06); }
.card-top { display: flex; justify-content: space-between; margin-bottom: 22px; }
.arrow { color: var(--red); font-size: .85rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: .82rem; max-width: 420px; }

/* ---------- blueprint ---------- */
.blueprint {
  position: relative; color: #fff; padding: 64px 0; overflow: hidden;
  background:
    linear-gradient(rgba(11,42,107,.9), rgba(11,42,107,.92)),
    url("img/blueprint.jpg") center / cover;
}
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.bp-inner { position: relative; display: grid; gap: 36px; }
.bp-copy h2 { margin-bottom: 18px; }
.bp-text { font-size: .9rem; opacity: .85; }
.bp-foot { margin-top: 28px; }
.bp-list { border: 1px solid rgba(255,255,255,.55); background: rgba(11,42,107,.55); }
.bp-list li {
  display: flex; gap: 18px; align-items: center; padding: 22px 20px; font-size: .9rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.bp-list li:last-child { border-bottom: 0; }
.bp-list span { font: 400 .62rem var(--mono); color: #9fb6e6; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 32px; }
.faq-head h2 { margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 0; font-weight: 500; font-size: .95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 12px; height: 12px; flex: none; color: var(--red); }
.pm::before, .pm::after { content: ""; position: absolute; background: currentColor; }
.pm::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.pm::after { top: 0; bottom: 0; left: 5px; width: 1.5px; transition: transform .2s; }
details[open] .pm::after { transform: scaleY(0); }
.faq details p { color: var(--muted); font-size: .88rem; padding: 0 28px 22px 0; max-width: 560px; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; gap: 36px; }
.side.left { margin-top: 16px; max-width: 360px; }
.contact-note { margin-top: 40px; }
.contact-note .label { display: block; padding-top: 14px; border-top: 1px solid var(--red); max-width: 100%; }
.contact-note p { margin-top: 12px; font-size: .85rem; color: var(--muted); }

.form { display: grid; gap: 16px; }
.form h3 { font-size: 1.15rem; margin-bottom: 2px; }
.form .row { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .68rem; font-weight: 500; }
.form input[type=text], .form select, .form textarea {
  width: 100%; font: 400 .85rem "Inter", sans-serif; color: var(--ink);
  padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 3px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--logo); box-shadow: 0 0 0 3px rgba(31,69,104,.12); }
.form .invalid { border-color: var(--red) !important; }
::placeholder { color: #9aa3af; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: .82rem; min-height: 1em; }
.form-status.ok { color: #1c7a3b; }
.form-status.err { color: var(--red); }
.fine { font-size: .68rem; color: var(--muted); }
.form .fine + .fine { margin-top: -8px; }

/* ---------- footer ---------- */
.site-footer { background: #0d1117; color: #fff; padding: 36px 0 24px; }
.footer-inner, .footer-bottom { max-width: 1344px; margin: 0 auto; padding: 0 var(--pad); }
.footer-inner { display: grid; gap: 22px; padding-bottom: 28px; }
.tagline { font-size: .85rem; color: #c3c8d0; }
.to-top { color: #fff; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font: 400 .62rem var(--mono); letter-spacing: .06em; color: #8b93a0; text-transform: uppercase;
}
.footer-bottom span:first-child { text-transform: none; }

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .2s;
}
.wa:hover { transform: scale(1.07); }
.wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.55); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knob::after, .wa::before { animation: none; }
}

/* =========================== DESKTOP =========================== */
@media (min-width: 900px) {
  :root { --pad: 48px; --header-h: 72px; }
  .hide-m { display: inline; }
  .section { padding: 96px 0; }

  .brand img { height: 38px; }
  .brand-text, .brand-text small { font-size: .68rem; }
  .menu-btn { display: none; }
  .header-inner { gap: 56px; }
  .brand { margin-right: 0; }
  .main-nav {
    position: static; display: flex; flex-direction: row; gap: 44px; padding: 0; border: 0; background: none;
    margin-left: auto; margin-right: 32px;
  }
  .main-nav a { padding: 0; border: 0; font-size: .8rem; }
  .btn-sm { padding: 13px 18px; font-size: .78rem; min-width: 180px; }

  .hero { height: min(calc(100svh - var(--header-h)), 800px); min-height: 560px; overflow: hidden; }
  .stage { position: absolute; inset: 0; aspect-ratio: auto; }
  .shade { display: block; }
  .hero-copy { position: absolute; left: var(--pad); right: var(--pad); bottom: 72px; padding: 0; pointer-events: none; }
  .hero-copy .btn { display: inline-flex; width: auto; padding: 14px 20px; pointer-events: auto; }
  .tag { top: 24px; font-size: .68rem; padding: 6px 12px; }
  .knob { top: 42%; width: 44px; height: 44px; font-size: .9rem; }
  .hero-copy { max-width: 760px; }
  .eyebrow { font-size: .68rem; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.4rem); }
  .lead { font-size: 1.05rem; max-width: 520px; }
  .hint { position: absolute; right: var(--pad); bottom: 28px; padding: 0; font-size: .68rem; pointer-events: none; }

  .strip-inner { grid-template-columns: repeat(3, 1fr); padding: 24px var(--pad); gap: 0; }
  .strip-inner li { padding: 0 32px; border-left: 1px solid var(--line); }
  .strip-inner li:first-child { padding-left: 0; border-left: 0; }
  .strip strong { font-size: .9rem; }
  .strip div span { font-size: .76rem; }

  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-start; margin-bottom: 72px; }
  .section-head .side { max-width: 280px; margin-top: 10px; margin-right: 8%; }
  h2 { font-size: clamp(2.2rem, 3.2vw, 3rem); }
  .label { font-size: .72rem; margin-bottom: 26px; }
  .label.small { font-size: .66rem; }
  .side { font-size: .95rem; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { padding: 40px 0 0; border: 0; border-top: 1px solid var(--ink); }
  .steps li:last-child { border-bottom: 0; }
  .steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 1px; height: 11px; background: var(--ink); }
  .step-n { position: static; width: 44px; height: 44px; margin-bottom: 38px; }
  .steps h3 { font-size: 1.3rem; }
  .steps p { font-size: .92rem; margin-bottom: 36px; max-width: 320px; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card { padding: 22px 28px 30px; }
  .card-top { margin-bottom: 38px; }
  .card h3 { font-size: 1.4rem; }
  .card p { font-size: .88rem; }

  .blueprint { padding: 110px 0; }
  .bp-inner { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 64px; }
  .bp-list { max-width: 460px; justify-self: end; width: 100%; }
  .bp-list li { padding: 28px 28px; }

  .faq-wrap { grid-template-columns: 1fr 1.25fr; gap: 80px; }
  .faq summary { padding: 22px 0; font-size: 1rem; }

  .contact-wrap { grid-template-columns: 1fr 1.05fr; gap: 100px; align-items: start; }
  .contact-note { margin-top: 120px; max-width: 360px; }
  .form .row { grid-template-columns: 1fr 1fr; }

  .site-footer { padding: 40px 0 20px; }
  .footer-inner { grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 40px; }
  .tagline { text-align: center; }
  .to-top { justify-self: end; font-size: .62rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
