/* ============================================
   VISIVRA — SHARED STYLESHEET (main.css)
   All shared component styles live here.
   ============================================ */

:root {
  --navy: #0a2540;
  --blue: #1565d8;
  --blue-light: #3a8dff;
  --sky: #e8f2ff;
  --gold: #f5b301;
  --gold-dark: #d99a00;
  --ink: #16202e;
  --slate: #4a5568;
  --mute: #6b7785;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --ok: #1a9e5e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(10,37,64,.06);
  --shadow: 0 12px 36px rgba(10,37,64,.10);
  --shadow-lg: 0 24px 60px rgba(10,37,64,.16);
  --maxw: 1180px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--slate); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, #08203a, #0e3160); color: #dce8f7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b8cce4; }
.eyebrow { display:inline-block; font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--slate); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left:auto; margin-right:auto; }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: .88rem;
  padding: 9px 16px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.announce-bar a { color: var(--gold); font-weight: 700; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 999;
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.logo img { width: 34px; height: 34px; }
.logo span em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn-cta, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(245,179,1,.35);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.btn-cta:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,179,1,.45); }
.btn-nav { padding: 10px 22px; font-size: .92rem; }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color:#fff; box-shadow: 0 8px 22px rgba(21,101,216,.32); }
.btn-blue:hover { box-shadow: 0 12px 30px rgba(21,101,216,.42); }
.btn-lg { padding: 17px 42px; font-size: 1.08rem; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); padding: 20px 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: #cfe0f5; font-weight: 600; font-size: .9rem; }
.trust-item svg { width: 20px; height: 20px; fill: var(--gold); flex-shrink: 0; }

/* ---------- Generic cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- AI Answer Block ---------- */
.ai-answer {
  background: linear-gradient(135deg, #eaf3ff, #f3f8ff);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.ai-answer .q { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--navy); margin-bottom: 8px; }
.ai-answer p { margin-bottom: 0; color: var(--ink); }

/* ---------- Check list ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.checklist svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b8cce4; padding: 56px 0 26px; }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr 1.1fr;
  gap: 32px;
}
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #b8cce4; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer-logo img { width: 30px; height: 30px; }
.footer-about p { font-size: .9rem; color: #9fb6d1; }
.footer-bottom { max-width: var(--maxw); margin: 36px auto 0; padding: 24px 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-disclaimer { font-size: .8rem; color: #8aa3c2; line-height: 1.7; margin-bottom: 14px; }
.footer-copy { font-size: .84rem; color: #7e98b8; }

/* ---------- Floating: social proof ---------- */
.social-proof {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px 14px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 330px;
  z-index: 1200;
  transform: translateX(-130%);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  border: 1px solid var(--line);
}
.social-proof.show { transform: translateX(0); }
.social-proof .sp-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--sky); display:grid; place-items:center; flex-shrink:0; }
.social-proof .sp-ico svg { width: 22px; height: 22px; fill: var(--blue); }
.social-proof .sp-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.social-proof .sp-detail { font-size: .8rem; color: var(--mute); }
.social-proof .sp-close { position: absolute; top: 6px; right: 9px; background: none; border: none; font-size: 1.1rem; color: var(--mute); cursor: pointer; line-height: 1; }

/* ---------- Floating: exit popup ---------- */
.exit-overlay {
  position: fixed; inset: 0;
  background: rgba(10,37,64,.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 20px;
}
.exit-overlay.show { display: flex; }
.exit-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  padding: 38px 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.exit-modal h3 { font-size: 1.7rem; margin-bottom: 10px; }
.exit-modal .exit-off { font-size: 2.6rem; font-family: var(--font-display); color: var(--gold-dark); font-weight: 700; }
.exit-modal .exit-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 1.6rem; color: var(--mute); cursor: pointer; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  z-index: 1100;
  box-shadow: 0 -6px 20px rgba(10,37,64,.12);
}
.mobile-sticky-cta .btn-cta { width: 100%; padding: 14px; }

/* ---------- Legal / article prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--slate); }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.page-hero { background: linear-gradient(160deg, #08203a, #0e3160); color: #fff; padding: 56px 0 48px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: #b8cce4; max-width: 640px; margin: 12px auto 0; }

/* ---------- FAQ accordion ---------- */
.faq-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow:hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; display:flex; justify-content: space-between; gap: 14px; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 22px 20px; }
.faq-item .faq-body p { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background:#fff; flex-direction: column; padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn-cta { width: 100%; }
  .mobile-menu-btn { display: flex; }
  .g4 { grid-template-columns: repeat(2,1fr); }
  .g3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .wrap { gap: 12px 20px; }
  .social-proof { left: 12px; right: 12px; max-width: none; }
}
