/* RDJDB — tema "Instante" (light, petróleo/âmbar/coral) */

:root {
  --bg: #FAF6EF;
  --bg-alt: #F1EADC;
  --ink: #211D1A;
  --ink-soft: #5A5048;
  --line: #E5DCC9;
  --teal: #1F5C56;
  --teal-dark: #164641;
  --amber: #D98E34;
  --coral: #E2735E;
  --card-bg: #FFFFFF;
  --shadow-md: 0 10px 28px rgba(33, 29, 26, 0.10);
  --shadow-lg: 0 18px 46px rgba(33, 29, 26, 0.14);
  --radius-card: 18px;
  --footer-text: #F1EADC;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .brand span {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 700; font-size: 0.98rem;
  border: none; position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, color-mix(in srgb, #fff 35%, transparent) 42%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-secondary { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); }
.btn-secondary:hover { background: color-mix(in srgb, var(--teal) 20%, transparent); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn svg { flex: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand span { font-size: 1.25rem; margin: 0; }
.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav ul a { font-weight: 600; color: var(--ink); }
.main-nav ul a:hover { color: var(--teal); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-toggle { display: none; background: none; border: none; width: 40px; height: 34px; flex-direction: column; justify-content: center; gap: 6px; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2.5px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 18px 6vw 56px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
  .main-nav .btn { width: 100%; justify-content: center; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral); font-weight: 700; font-size: 0.82rem;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  color: var(--ink);
}
.trust-chip svg { color: var(--teal); flex: none; }

/* --- mockup de ampulheta (SVG inline: evita o bug de borda invisível em
   clip-path e alinha moldura/base com exatidão) --- */
.hourglass-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hourglass-mock { position: relative; margin: 0 auto; width: min(260px, 70vw); height: 340px; }
.hourglass-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.frame-bar { fill: var(--teal-dark); }
.glass-outline { fill: none; stroke: var(--teal); stroke-width: 3; }
.glass-neck-rect { fill: var(--teal); }
.sand-top { fill: var(--amber); animation: sandDrainY 6s ease-in-out infinite alternate; }
.sand-bottom { fill: var(--amber); animation: sandFillY 6s ease-in-out infinite alternate; }
@keyframes sandDrainY { 0%, 15% { y: 14; height: 136px; } 85%, 100% { y: 150; height: 0px; } }
@keyframes sandFillY { 0%, 15% { y: 306; height: 0px; } 85%, 100% { y: 170; height: 136px; } }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 6px 11px; border-radius: 999px;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulseDot 1.4s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------------- Cards com "corner-tick" ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card {
  position: relative; isolation: isolate;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 18px;
  width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 14px solid var(--amber);
}
.card:nth-child(even) .card-icon { color: var(--coral); }
.card-icon, .icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); margin-bottom: 14px; }

/* ---------------- Números ---------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; text-align: center; }
.stat-num { font-family: "Figtree", sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--teal); }
.stat-label { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- Como funciona / steps ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.step { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 22px; box-shadow: var(--shadow-md); }
.step-num { display: inline-block; font-family: "Figtree", sans-serif; font-weight: 800; color: var(--amber); font-size: 0.95rem; margin-bottom: 10px; }

/* ---------------- Planos ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 34px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--card-bg); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 30px 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-md);
}
.plan-card.featured { border-color: var(--teal); padding-top: 2.6rem; }
.plan-card .badge {
  position: absolute; top: 30px; right: -34px;
  transform: rotate(38deg); padding: 5px 40px;
  background: var(--teal); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--teal) 35%, transparent);
}
.plan-name { font-size: 1.05rem; font-weight: 700; }
.plan-price { font-family: "Figtree", sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--ink); }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.plan-permes { font-size: 0.86rem; color: var(--teal); font-weight: 700; }
.plan-note { font-size: 0.86rem; color: var(--ink-soft); }
.plan-bullets li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 8px; }
.plan-bullets svg { flex: none; color: var(--teal); margin-top: 2px; }
.plan-card .btn { margin-top: auto; justify-content: center; }

/* ---------------- Dispositivos (grid da home) ---------------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 30px; }
.device-chip { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow-md); }
.device-chip .device-icon { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--teal); }
.device-chip span { font-weight: 600; font-size: 0.92rem; }

/* ---------------- Blog ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 30px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card .blog-card-body { padding: 20px; }
.blog-card .tag { color: var(--teal); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq-item summary { padding: 16px 0; cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { transition: transform 0.2s ease; color: var(--teal); }
.faq-item[open] summary .chevron { transform: rotate(90deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------------- CTA final ---------------- */
.cta-final { background: var(--teal); }
.cta-final .container.cta-box { text-align: center; }
.cta-final h2, .cta-final p { color: #fff; }
.cta-final p { opacity: 0.88; }

/* ---------------- Página-satélite (hero + badge) ---------------- */
.page-hero { text-align: left; padding-top: 56px; }
.page-icon-badge {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 12px; background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal);
  margin-bottom: 16px;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 60px 0 0; }
.site-footer p { color: var(--footer-text); }
.site-footer a { color: var(--footer-text); opacity: 0.86; }
.site-footer a:hover { opacity: 1; }
.site-footer h3 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.footer-brand .brand span { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 0.84rem; opacity: 0.75; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards-grid, .steps-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Páginas institucionais simples (termos, contato, 404) ---------------- */
.simple-page { max-width: 760px; }
.simple-page h2 { margin-top: 1.4em; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-md); }
.not-found { text-align: center; padding: 110px 0; }
.not-found .num { font-family: "Figtree", sans-serif; font-size: 5rem; font-weight: 800; color: var(--teal); }
