/* RDIC Parceiros — site estatico (#51). Mobile-first, sem dependencias. */
:root {
  --navy-950: #070e22;
  --navy-900: #0b1530;
  --navy-800: #13214a;
  --navy-700: #1f3166;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --red: #ea1d2c;          /* acento da marca (app do entregador) */
  --red-strong: #c8102e;   /* fundo de botao: contraste AA com texto branco */
  --red-hover: #a90d26;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--red-strong); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  color: #fff; background: var(--red-strong);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 21, 48, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.05rem; margin-right: auto; }
.brand b { font-weight: 800; }
.brand__mark { width: 32px; height: 32px; }
.topnav { display: none; gap: 24px; }
.topnav a { color: #cbd5e1; text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: #fff; }
.topbar .btn--sm { display: none; }
@media (min-width: 560px) { .topbar .btn--sm { display: inline-flex; } }
@media (min-width: 900px) { .topnav { display: flex; } }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(234, 29, 44, .22), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #cbd5e1;
  padding: 56px 0 64px;
}
.hero h1 { color: #fff; }
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fecaca; background: rgba(234, 29, 44, .16); padding: 4px 12px; border-radius: 999px;
}
.lead { font-size: 1.1rem; max-width: 36em; }
.hero__in { display: grid; gap: 48px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__cta .btn { flex: 0 0 auto; } }
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero__in { grid-template-columns: 1.25fr 1fr; }
}

/* mock do app (decorativo) */
.hero__art { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 300px;
  padding: 14px; border-radius: 32px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .45);
  display: grid; gap: 10px;
}
.phone__bar { display: flex; justify-content: center; padding: 2px 0 6px; }
.phone__bar span { width: 64px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.phone__card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; font-size: .9rem; line-height: 1.35;
}
.phone__card .muted { font-size: .8rem; }
.phone__card--offer { flex-direction: column; align-items: flex-start; gap: 6px; border-left: 4px solid var(--red); }
.phone__card--offer strong { font-size: 1.05rem; }
.tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red-strong); }
.phone__btn {
  margin-top: 6px; align-self: stretch; text-align: center;
  background: var(--red-strong); color: #fff; font-weight: 700; border-radius: 999px; padding: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.dot--pix { background: #32bcad; box-shadow: 0 0 0 4px rgba(50, 188, 173, .2); }

/* ---------- secoes ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__lead { font-size: 1.05rem; margin-bottom: 28px; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* passos */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps p { margin: 0; }
.steps__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 800;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* cards do produto */
.cards { display: grid; gap: 16px; margin-top: 32px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card__icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; fill: var(--red-strong); background: #fde8ea; margin-bottom: 14px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 22px; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.pill {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* beneficios */
.benefits { display: grid; gap: 28px; margin-top: 32px; }
.benefits > div { border-top: 3px solid var(--red); padding-top: 18px; }
.benefits p { margin: 0; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* ---------- formulario ---------- */
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 18px; }
.form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form { padding: 32px; }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .form__grid .field--city { grid-column: span 1; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .chips legend { font-weight: 600; color: var(--ink); font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #cbd5e1; border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(31, 49, 102, .18); }
.field [aria-invalid="true"] { border-color: var(--red-strong); }
.field__err { margin: 0; min-height: 0; font-size: .875rem; color: var(--red-strong); }
.field__err:empty { display: none; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label > span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #cbd5e1; border-radius: 999px; font-size: .95rem; color: var(--ink); background: #fff;
}
.chips input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.consent__label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.consent__label input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--red-strong); }
.lgpd { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 0; font-weight: 600; color: var(--red-strong); }
.form__status:empty { display: none; }

.thanks { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 24px; text-align: center; }
.thanks svg { width: 56px; height: 56px; margin: 0 auto 16px; }
.thanks:focus { outline: none; }

/* ---------- rodape ---------- */
.footer { background: var(--navy-950); color: #94a3b8; padding: 32px 0; font-size: .95rem; }
.footer strong { color: #fff; }
.footer a { color: #fff; }
.footer__in { display: grid; gap: 8px; }
@media (min-width: 760px) { .footer__in { grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; } }
.footer .muted { color: #64748b; }
