/* ============================================================
   BeSafe — Global Styles
   Primary: #0a7ea4  |  Light BG: #E6F4FE  |  Dark: #11181C
   ============================================================ */

:root {
  --primary:       #0a7ea4;
  --primary-dark:  #085f7a;
  --primary-light: #E6F4FE;
  --accent:        #f57c00;
  --text:          #11181C;
  --text-muted:    #687076;
  --surface:       #ffffff;
  --border:        #dce8ef;
  --radius:        12px;
  --shadow:        0 4px 24px rgba(10, 126, 164, 0.10);
  --font:          system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); text-decoration: none; }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10,126,164,0.30);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(10,126,164,0.40);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover { background: var(--primary-light); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}

.store-badge:hover { opacity: 0.85; transform: translateY(-2px); text-decoration: none; }

.store-badge svg { flex-shrink: 0; }

.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge-text small { font-size: 0.68rem; opacity: 0.75; }
.store-badge-text strong { font-size: 1rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9abf 60%, #0fc0e8 100%);
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.hero-text { flex: 1; max-width: 520px; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span { color: #b0e8f7; }

.hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-phones {
  flex: 1;
  max-width: 460px;
  display: flex;
  justify-content: center;
  gap: 24px;
  perspective: 800px;
}

/* ── Phone Mockup ───────────────────────────────────────── */
.phone-mockup {
  width: 200px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.30);
  overflow: hidden;
  position: relative;
  transform: rotateY(-6deg) rotateX(2deg);
  border: 6px solid #e0e0e0;
}

.phone-mockup:nth-child(2) {
  margin-top: 40px;
  transform: rotateY(-4deg) rotateX(1deg);
}

.phone-screen {
  background: var(--primary-light);
  padding: 16px 12px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-status { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); padding-bottom: 4px; }

.phone-header { font-size: 13px; font-weight: 700; color: var(--text); }

.phone-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(10,126,164,0.10);
}

.phone-card-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.phone-card-value { font-size: 15px; font-weight: 700; color: var(--primary); margin-top: 2px; }

.phone-map-block {
  background: linear-gradient(135deg, #cde9f4 0%, #e8f7fe 100%);
  border-radius: 12px;
  flex: 1;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.phone-map-pin {
  width: 22px; height: 28px;
  background: var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(10,126,164,0.4);
}

.phone-tag {
  font-size: 9px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  display: inline-block;
  margin-top: 4px;
}

/* ── Section headings ───────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
}

.text-center { text-align: center; }

/* ── Features grid ──────────────────────────────────────── */
.features-section { background: var(--primary-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10,126,164,0.14);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ── Screenshots ────────────────────────────────────────── */
.screenshots-section { background: var(--surface); }

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.screenshot-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--primary-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  outline: 1px solid var(--border);
}

.screenshot-label {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* screenshot screen mockups */
.ss-screen {
  padding: 18px 14px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-title { font-size: 14px; font-weight: 700; color: var(--text); }
.ss-row   { display: flex; gap: 8px; }

.ss-block {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  flex: 1;
  box-shadow: 0 1px 4px rgba(10,126,164,0.08);
}

.ss-block-label { font-size: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.ss-block-value { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 2px; }

.ss-map {
  background: linear-gradient(135deg, #bde3f2 0%, #daf0fc 100%);
  border-radius: 10px;
  flex: 1;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.ss-map::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(10,126,164,0.2);
}

.ss-news-item {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  box-shadow: 0 1px 4px rgba(10,126,164,0.08);
}

.ss-news-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.ss-news-text { font-size: 9px; color: var(--text-muted); line-height: 1.5; }
.ss-news-text strong { color: var(--text); display: block; font-size: 10px; }

.ss-emergency-btn {
  background: #e53935;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ss-setting {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(10,126,164,0.08);
}

.ss-setting-label { font-size: 10px; font-weight: 600; color: var(--text); }
.ss-toggle { width: 28px; height: 16px; background: var(--primary); border-radius: 8px; }

/* ── How it works ───────────────────────────────────────── */
.how-section { background: var(--primary-light); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(10,126,164,0.30);
}

.step-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-item p  { font-size: 0.9rem; color: var(--text-muted); }

/* ── CTA banner ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9abf 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p  { font-size: 1.05rem; opacity: 0.88; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Page header (inner pages) ──────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9abf 100%);
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.page-header p  { font-size: 1.05rem; opacity: 0.85; max-width: 480px; margin: 0 auto; }

/* ── Content prose (support / privacy) ─────────────────── */
.prose-section { max-width: 780px; margin: 0 auto; }

.prose-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.prose-section h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose-section p  { color: var(--text-muted); margin-bottom: 14px; font-size: 0.97rem; }
.prose-section ul, .prose-section ol { padding-left: 22px; color: var(--text-muted); margin-bottom: 14px; font-size: 0.97rem; }
.prose-section li { margin-bottom: 6px; }
.prose-section strong { color: var(--text); }

/* ── FAQ / Accordion ────────────────────────────────────── */
.faq-section { background: var(--primary-light); }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .25s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }

/* ── Contact form ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 32px; font-size: 0.97rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-detail-body strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.contact-detail-body span  { font-size: 0.9rem; color: var(--text-muted); }

.form-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,126,164,0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 16px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: #0d1a20;
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a  { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}

.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: #fff; }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1a2b33;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  z-index: 999;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner  { flex-direction: column; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-phones { max-width: 380px; }
  .store-badges { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-phones { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 24px; }
  .phone-mockup { width: 160px; }
}
