/* ============================================================
   Vera — Bike & Car Insurance
   Shared styles for all pages
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-2: #0e1428;
  --ink: #eef1f8;
  --muted: #8a92ab;
  --accent: #5b8cff;
  --accent-2: #7ea0ff;
  --line: rgba(255, 255, 255, 0.08);
  --wa-green: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(91, 140, 255, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem clamp(1.2rem, 5vw, 3rem);
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 26, 0.55);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--accent); }
.brand .tag {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.6rem;
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  flex-wrap: wrap;
}
.nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a.link:hover,
.nav a.link[aria-current="page"] { color: var(--ink); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-wa:hover { background: #4a7bf0; transform: translateY(-1px); }
.btn-wa svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.btn-wa-lg { font-size: 1rem; padding: 0.85rem 1.6rem; }
.btn-wa-lg svg { width: 19px; height: 19px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(91, 140, 255, 0.08); }

/* ---------- Layout ---------- */
main { flex: 1; }

section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}

.wide { max-width: 1040px; }

.hero {
  min-height: calc(90vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 0.8rem;
}
.headline .em { color: var(--accent); font-style: italic; }

.subhead {
  color: #c8cee0;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.4rem auto 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.page {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.2rem, 5vw, 2rem);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1.page-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.8rem 0 1.4rem;
}

h2.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0.7rem 0 0;
}

.section-lede {
  color: #c8cee0;
  max-width: 600px;
  margin: 0.9rem auto 0;
  font-size: 1.02rem;
}

.body-text {
  color: #c8cee0;
  font-size: 1.06rem;
  max-width: 640px;
  margin: 0 auto;
}
.body-text + .body-text { margin-top: 1.1rem; }

.contact-sub {
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 520px;
}

.contact-cta { display: flex; justify-content: center; }

.contact-alt {
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-alt a { color: var(--accent); text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.4rem clamp(1.2rem, 5vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ink);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ---------- Coverage cards ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
  text-align: left;
}
.coverage-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.coverage-card:hover { border-color: rgba(91, 140, 255, 0.35); transform: translateY(-2px); }
.coverage-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.coverage-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; }
.coverage-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.coverage-card ul { list-style: none; }
.coverage-card li {
  color: #c8cee0;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.coverage-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
  text-align: left;
}
.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.step h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
  text-align: left;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
}
.why-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; }
.why-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { text-align: left; margin-top: 2.4rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  margin-left: 1rem;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  max-width: 620px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 3.6rem);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(91, 140, 255, 0.25), transparent 60%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-banner h2 { margin: 0 0 0.8rem; }
.cta-banner p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Section spacing ---------- */
.block { margin-top: clamp(4rem, 10vw, 6.5rem); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2.4rem 1.2rem 2.6rem;
  border-top: 1px solid var(--line);
}
footer .sep { margin: 0 0.55rem; opacity: 0.5; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: var(--ink); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 4vw, 1.8rem);
  bottom: clamp(1rem, 4vw, 1.8rem);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  z-index: 50;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .page { animation: none; }
  .wa-float::before { animation: none; }
}

/* ============================================================
   Legal / document pages (light theme)
   ============================================================ */
body.doc {
  --doc-bg: #f6f7fb;
  --doc-card: #ffffff;
  --doc-ink: #1a1f2e;
  --doc-soft: #515a72;
  --doc-line: #e6e9f2;
  --doc-accent: #3a63d8;
  background: var(--doc-bg);
  color: var(--doc-ink);
}

.topbar {
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(91, 140, 255, 0.22), transparent 60%),
    var(--bg);
  padding: 2.4rem 1.5rem 2rem;
  text-align: center;
}
.topbar .brand { font-size: 1.9rem; font-weight: 600; }
.topbar .doc-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.topnav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.topnav a:hover { color: var(--ink); }

body.doc main.doc-main {
  max-width: 760px;
  margin: -1.4rem auto 4rem;
  background: var(--doc-card);
  border: 1px solid var(--doc-line);
  border-radius: 16px;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  box-shadow: 0 12px 40px rgba(16, 24, 56, 0.08);
  text-align: left;
}

body.doc h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
body.doc .updated {
  color: var(--doc-soft);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--doc-line);
}
body.doc .lead { margin-top: 1.6rem; color: var(--doc-ink); }
body.doc h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.7rem;
}
body.doc h3 { font-size: 1rem; font-weight: 600; margin: 1.3rem 0 0.4rem; }
body.doc p { margin: 0.7rem 0; color: var(--doc-ink); }
body.doc ul { margin: 0.6rem 0 0.6rem 1.2rem; }
body.doc li { margin: 0.4rem 0; }
body.doc a { color: var(--doc-accent); text-decoration: none; }
body.doc a:hover { text-decoration: underline; }
body.doc .callout {
  background: #eef3ff;
  border: 1px solid #d6e1ff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
body.doc .callout strong { color: var(--doc-accent); }
body.doc strong { font-weight: 600; }
body.doc footer { color: var(--doc-soft); }
body.doc footer a { color: var(--doc-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}
