/* Safety On — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --navy: #0D1F3C;
  --teal: #1AA37A;
  --teal-dark: #169168;
  --amber: #E8A838;
  --off-white: #F5F2EE;
  --gray-light: #e5e7eb;
  --gray-mid: #6b7280;
  --gray-muted: #9ca3af;
  --serif: 'DM Serif Display', serif;
  --sans: 'Inter', sans-serif;
}

html { font-family: var(--sans); color: #1a1a1a; background: #fff; margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
body:has(.article-body) {
  background-color: #fff;
  background-image: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)), url('https://tile.openstreetmap.org/14/8187/5449.png');
  background-repeat: no-repeat, repeat;
  background-size: auto, 256px 256px;
  background-attachment: fixed, fixed;
  background-position: 0 0, 0 0;
}

/* Typography */
.serif { font-family: var(--serif); }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* RTL support */
[dir="rtl"] { direction: rtl; }
[dir="rtl"] .so-nav { flex-direction: row-reverse; }
[dir="rtl"] .so-nav-links { flex-direction: row-reverse; }
[dir="rtl"] .so-hero { text-align: right; }
[dir="rtl"] .so-hero-btns { justify-content: flex-end; }
[dir="rtl"] .so-step { text-align: right; }
[dir="rtl"] .so-footer-links { flex-direction: row-reverse; }

/* Nav */
.so-nav { display:flex; align-items:center; justify-content:space-between; padding:1.1rem 2rem; background:rgba(13,31,60,0.5); position:absolute; width:100%; top:0; left:0; z-index:10; border-bottom:none; }
.so-logo { display:flex; align-items:center; gap:9px; font-weight:600; font-size:15px; color:#ffffff; text-decoration:none; }
.so-logo-mark { width:30px; height:30px; background:var(--navy); border-radius:8px; display:flex; align-items:center; justify-content:center; }
.so-logo-mark svg { width:16px; height:16px; }
.so-nav-links { display:flex; gap:1.5rem; align-items:center; }
.so-nav-links a { font-size:17px; font-weight:600; color:#ffffff; text-decoration:none; transition:color 0.2s; }
.so-nav-links a:hover { color:rgba(255,255,255,0.75); }
.so-nav-links .so-btn-nav { background:var(--teal); color:#ffffff; border:none; border-radius:8px; padding:7px 16px; font-size:13.5px; font-weight:500; cursor:pointer; font-family:var(--sans); text-decoration:none; }
.so-nav-links .so-btn-nav:hover { color:#ffffff; }

/* Lang switcher */
.lang-switcher { position:relative; }
.lang-switcher select {
  background: rgba(13,31,60,0.7);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
}

/* Hero */
.so-hero { background:linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%), url('/images/why-safety-on-walking-home.png') center 20% / cover no-repeat; min-height:520px; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; padding:3rem 3rem 4rem; text-align:left; position:relative; overflow:hidden; }
.so-hero::before { content:''; position:absolute; inset:0; background:none; pointer-events:none; }
.so-shield { position:relative; display:inline-flex; align-items:center; justify-content:center; margin-bottom:2rem; }
.so-pulse-ring { position:absolute; border-radius:50%; border:1.5px solid rgba(26,163,122,0.4); animation:pulse-out 2.4s ease-out infinite; }
.so-pulse-ring:nth-child(1) { width:80px; height:80px; }
.so-pulse-ring:nth-child(2) { animation-delay:0.8s; width:110px; height:110px; border-color:rgba(26,163,122,0.2); }
.so-pulse-ring:nth-child(3) { animation-delay:1.6s; width:145px; height:145px; border-color:rgba(26,163,122,0.1); }
@keyframes pulse-out { 0%{transform:scale(0.7);opacity:1} 100%{transform:scale(1);opacity:0} }
@media (prefers-reduced-motion: reduce) { .so-pulse-ring { animation:none; } }
.so-shield-icon { width:56px; height:56px; background:var(--teal); border-radius:50%; display:flex; align-items:center; justify-content:center; position:relative; z-index:1; }
.so-hero-eyebrow { font-size:11px; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:#ffffff; background:rgba(26,163,122,0.85); padding:5px 12px; border-radius:20px; display:inline-block; margin-bottom:1rem; }
.so-hero h1 { font-family:var(--sans); font-size:clamp(3rem,7vw,5rem); font-weight:800; color:#ffffff; line-height:1.05; margin-bottom:1rem; max-width:680px; margin-left:0; margin-right:0; font-style:normal; }
.so-hero h1 em { font-style:normal; color:#ffffff; }
.so-hero-sub { font-size:15px; color:rgba(255,255,255,0.9); max-width:520px; text-align:left; margin:0 0 2rem 0; line-height:1.65; }
.so-hero-btns { display:flex; gap:12px; justify-content:flex-start; flex-wrap:wrap; }
.so-btn-primary { background:var(--teal); color:#fff; border:none; border-radius:10px; padding:13px 26px; font-size:15px; font-weight:500; cursor:pointer; font-family:var(--sans); text-decoration:none; transition:background 0.18s; display:inline-block; }
.so-btn-primary:hover { background:var(--teal-dark); }
.so-btn-ghost { background:rgba(255,255,255,0.1); color:#fff; border:1px solid rgba(255,255,255,0.25); border-radius:10px; padding:12px 22px; font-size:15px; font-weight:500; cursor:pointer; font-family:var(--sans); text-decoration:none; display:inline-block; }

/* Steps */
.so-steps-section { background:#ffffff; padding:5rem 2rem; max-width:960px; margin:0 auto; text-align:center; }
.so-section-eyebrow { font-size:12px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--teal); margin-bottom:0.75rem; }
.so-section-title { font-family:var(--serif); font-size:clamp(1.8rem,3.5vw,2.5rem); color:#0D1F3C; line-height:1.2; margin-bottom:0.6rem; }
.so-section-sub { font-size:15px; color:var(--gray-mid); margin-bottom:3rem; line-height:1.6; }
.so-diff-section .so-section-title { color:#0D1F3C; }
.so-diff-section .so-section-sub { color:#1a1a1a; }
.so-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:2px; background:var(--gray-light); border-radius:16px; overflow:hidden; margin-top:2.5rem; }
.so-step { background:#fff; border-radius:12px; padding:2rem 1.5rem; text-align:left; }
.so-step:hover { background:#f0faf6; }
.so-step-num { width:32px; height:32px; background:var(--off-white); border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--navy); margin-bottom:1.1rem; letter-spacing:0.04em; }
.so-step h3 { font-size:15px; font-weight:600; color:var(--navy); margin-bottom:0.45rem; }
.so-step p { font-size:14px; color:var(--gray-mid); line-height:1.6; }

/* Phone mockup */
.so-phone-mockup { background:var(--navy); border-radius:28px; padding:1.5rem; max-width:260px; margin:2.5rem auto 0; text-align:left; border:6px solid #1a2f50; }
.so-phone-label { font-size:11px; color:rgba(255,255,255,0.5); letter-spacing:0.05em; text-transform:uppercase; margin-bottom:1.2rem; }
.so-phone-row { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 0; border-bottom:0.5px solid rgba(255,255,255,0.1); }
.so-phone-row:last-of-type { border:none; }
.so-phone-row-label { font-size:12px; color:rgba(255,255,255,0.55); }
.so-phone-row-val { font-size:13px; font-weight:500; color:#fff; }
.so-phone-btn { display:block; background:var(--teal); color:#fff; text-align:center; border-radius:10px; padding:11px; font-size:13px; font-weight:600; margin-top:1.2rem; letter-spacing:0.02em; }

/* Differentiator */
.so-diff-section { background:#f0faf6; padding:5rem 2rem; position:relative; }
.so-diff-section::before {
  content:'';
  position:absolute;
  inset:0;
  background-image:url('https://tile.openstreetmap.org/14/8187/5449.png');
  background-repeat:repeat;
  background-size:256px 256px;
  opacity:0.35;
  pointer-events:none;
  z-index:0;
}
.so-diff-inner { max-width:900px; margin:0 auto; text-align:center; position:relative; z-index:1; }
.so-diff-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; margin-top:2.5rem; }
.so-diff-card { background:#fff; border-radius:16px; padding:2rem; text-align:left; border:0.5px solid var(--gray-light); }
.so-diff-card-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem; background:#f3f4f6; }
.so-diff-card h3 { font-size:16px; font-weight:600; color:#0D1F3C; margin-bottom:0.5rem; }
.so-diff-card p { font-size:14px; color:#1a1a1a; font-weight:400; line-height:1.65; }
.so-diff-card.featured { border:1.5px solid var(--teal); background:#e8f5f0; }
.so-diff-card.featured .so-diff-card-icon { background:#e8f5f0; }

/* Pricing */
.so-pricing-section { background:#ffffff; padding:5rem 2rem; max-width:1000px; margin:0 auto; text-align:center; }
.so-plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; margin-top:2.5rem; align-items:start; }
.so-plan { border:0.5px solid var(--gray-light); border-radius:16px; padding:1.75rem; text-align:left; background:#fff; }
.so-plan.highlight { border:2px solid #1AA37A; box-shadow:0 4px 24px rgba(26,163,122,0.15); }
.so-plan-badge { display:inline-block; background:#e8f5f0; color:#0f7a5a; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:20px; letter-spacing:0.04em; margin-bottom:1rem; }
.so-plan-name { font-size:13px; font-weight:600; color:var(--gray-muted); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:0.4rem; }
.so-plan-price { font-family:var(--serif); font-size:2.2rem; color:var(--navy); margin-bottom:0.2rem; line-height:1; }
.so-plan-price span { font-family:var(--sans); font-size:14px; font-weight:400; color:var(--gray-muted); }
.so-plan-desc { font-size:13.5px; color:var(--gray-mid); margin:0.7rem 0 1.25rem; line-height:1.55; }
.so-plan-features { list-style:none; display:flex; flex-direction:column; gap:9px; margin-bottom:1.5rem; }
.so-plan-features li { display:flex; align-items:flex-start; gap:8px; font-size:13.5px; color:#374151; }
.so-plan-features li::before { content:'✓'; color:var(--teal); font-weight:700; font-size:13px; flex-shrink:0; margin-top:1px; }
.so-plan-features li.dim { color:var(--gray-muted); }
.so-plan-features li.dim::before { color:#d1d5db; }
.so-plan-cta { display:block; width:100%; border:1.5px solid var(--navy); background:transparent; color:var(--navy); border-radius:9px; padding:10px; font-size:14px; font-weight:500; cursor:pointer; font-family:var(--sans); transition:all 0.18s; text-align:center; text-decoration:none; }
.so-plan-cta:hover { background:var(--navy); color:#fff; }
.so-plan.highlight .so-plan-cta { background:var(--teal); border-color:var(--teal); color:#fff; }
.so-plan.highlight .so-plan-cta:hover { background:var(--teal-dark); }

/* Editorial */
.so-editorial { background:var(--navy); padding:4rem 2rem; text-align:center; }
.so-editorial-inner { max-width:620px; margin:0 auto; }
.so-editorial blockquote { font-family:var(--serif); font-size:clamp(1.35rem,3vw,1.85rem); font-style:italic; color:#fff; line-height:1.5; margin-bottom:1.5rem; }
.so-editorial-link { display:inline-flex; align-items:center; gap:8px; color:var(--teal); font-size:14px; font-weight:500; text-decoration:none; border-bottom:1px solid rgba(26,163,122,0.4); padding-bottom:2px; }

/* Footer */
.so-footer { padding:2rem; text-align:center; border-top:0.5px solid var(--gray-light); }
.so-footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:1.2rem; margin-bottom:0.6rem; }
.so-footer-links a { font-size:13px; color:var(--gray-muted); text-decoration:none; }
.so-footer-links a:hover { color:var(--navy); }
.so-footer-settings { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; margin-bottom:1rem; padding-top:0.6rem; border-top:0.5px solid var(--gray-light); margin-top:0.6rem; }
.so-footer-settings a { font-size:12px; color:var(--gray-muted); text-decoration:none; opacity:0.7; }
.so-footer-settings a:hover { opacity:1; }

.so-steps-section { background:#ffffff; }
.so-diff-section { background:#f0faf6; position:relative; }
.so-plan { border:0.5px solid rgba(13,31,60,0.12); border-radius:18px; padding:1.85rem; text-align:left; background:#f8fbff; box-shadow:0 14px 30px rgba(13,31,60,0.06); }
.so-plan.highlight { border:2px solid #1AA37A; background:#fff; box-shadow:0 4px 24px rgba(26,163,122,0.15); }
.so-editorial { background:var(--navy); padding:6rem 2rem 3rem; text-align:center; }
.so-footer { background: var(--navy); padding:5rem 2rem 2.5rem; text-align: center; border-top:1px solid rgba(255,255,255,0.18); }

/* Editorial article page */
.hero-band {
  background: #2a4a7f;
  position: relative;
  z-index: 2;
  padding: 130px 2rem 3rem 2rem;
}
.hero-inner { max-width:740px; margin:0 auto; }
.hero-kicker { font-size:11.5px; font-weight:600; letter-spacing:0.13em; text-transform:uppercase; color:var(--teal); margin-bottom:1rem; }
.hero-h1 { font-family:var(--serif); font-size:clamp(2rem,4.5vw,3rem); color:#fff; line-height:1.15; margin-bottom:1.1rem; }
.hero-h1 em { font-style:italic; color:var(--amber); }
.hero-deck { font-size:1.05rem; color:rgba(255,255,255,0.65); line-height:1.7; margin-bottom:2.5rem; max-width:580px; }
.hero-img-wrap { margin:0 -2rem; position:relative; }
.hero-img-wrap img { width:100%; max-height:380px; object-fit:cover; display:block; filter:brightness(0.85); }
.hero-img-caption { position:absolute; bottom:0; left:0; right:0; padding:1rem 2rem; background:linear-gradient(transparent,rgba(13,31,60,0.8)); color:rgba(255,255,255,0.7); font-size:12.5px; font-style:italic; }
.article-body { max-width:680px; margin:0 auto; padding:0 2rem; position:relative; }
.prose-section { padding:2.5rem 0; position:relative; z-index:1; }
.prose-section p { font-size:16px; line-height:1.8; color:#374151; margin-bottom:1.25rem; }
.prose-section p:last-child { margin-bottom:0; }
.pullquote { margin:2.5rem -1rem; padding:2rem; border-left:3px solid var(--teal); background:#f0faf6; }
.pullquote p { font-family:var(--serif); font-size:1.3rem; font-style:italic; color:var(--navy); line-height:1.55; margin:0; }
.section-heading { font-family:var(--serif); font-size:1.6rem; color:var(--navy); line-height:1.25; margin:2.5rem 0 1rem; }
.inline-img { margin:2rem -2rem; position:relative; }
.inline-img img { width:100%; max-height:340px; object-fit:cover; display:block; }
.inline-img figcaption { font-size:12.5px; font-style:italic; color:var(--gray-muted); padding:0.7rem 2rem 0; }
.circle-intro { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; margin:1.5rem 0; align-items:start; }
.circle-card { background:var(--off-white); border-radius:12px; padding:1.4rem; }
.circle-card-icon { font-size:22px; margin-bottom:0.6rem; }
.circle-card h4 { font-size:14px; font-weight:600; color:var(--navy); margin-bottom:0.4rem; }
.circle-card p { font-size:13.5px; color:var(--gray-mid); line-height:1.6; }
.escalation-section {
  background: #2a4a7f;
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  margin: 0;
}
.escalation-inner { max-width:640px; margin:0 auto; }
.esc-kicker { font-size:11px; font-weight:600; letter-spacing:0.13em; text-transform:uppercase; color:var(--teal); margin-bottom:0.75rem; }
.esc-title { font-family:var(--serif); font-size:1.5rem; color:#fff; margin-bottom:0.5rem; line-height:1.3; }
.esc-sub { font-size:14px; color:rgba(255,255,255,0.55); margin-bottom:2rem; line-height:1.6; }
.esc-steps { display:flex; flex-direction:column; }
.esc-step { display:flex; gap:1.25rem; padding:1.25rem 0; border-bottom:0.5px solid rgba(255,255,255,0.1); }
.esc-step:last-child { border:none; }
.esc-num { flex-shrink:0; width:36px; height:36px; background:rgba(26,163,122,0.15); border:1px solid rgba(26,163,122,0.3); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:600; color:var(--teal); }
.esc-step-label { font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--teal); margin-bottom:0.3rem; }
.esc-step-title { font-size:15px; font-weight:500; color:#fff; margin-bottom:0.3rem; }
.esc-step-desc { font-size:13.5px; color:rgba(255,255,255,0.55); line-height:1.6; }
.closing-band {
  background: #2a4a7f;
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  text-align: center;
}
.closing-inner { max-width:560px; margin:0 auto; }
.closing-kicker { font-size:11.5px; font-weight:600; letter-spacing:0.13em; text-transform:uppercase; color:var(--teal); margin-bottom:1rem; }
.closing-title { font-family:var(--serif); font-size:clamp(1.6rem,3.5vw,2.2rem); color:#fff; line-height:1.25; margin-bottom:0.8rem; }
.closing-sub { font-size:15px; color:rgba(255,255,255,0.6); margin-bottom:2rem; line-height:1.65; }
.closing-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* Support & legal pages */
.page-wrap { max-width:740px; margin:0 auto; padding:3rem 2rem; }
.page-wrap h1 { font-family:var(--serif); font-size:2.2rem; color:var(--navy); margin-bottom:1.5rem; line-height:1.2; }
.page-wrap h2 { font-size:1.2rem; font-weight:600; color:var(--navy); margin:2rem 0 0.75rem; }
.page-wrap p { font-size:15px; line-height:1.8; color:#374151; margin-bottom:1rem; }
.page-wrap ul { margin:0.5rem 0 1rem 1.5rem; }
.page-wrap ul li { font-size:15px; line-height:1.8; color:#374151; }
.page-wrap a { color:var(--teal); }
.warning-box { background:#fff8e1; border-left:4px solid var(--amber); border-radius:0 8px 8px 0; padding:1rem 1.25rem; margin:1.5rem 0; font-size:14px; color:#374151; line-height:1.6; }

/* Download page */
.download-wrap { max-width:560px; margin:0 auto; padding:5rem 2rem; text-align:center; }
.download-wrap h1 { font-family:var(--serif); font-size:2.5rem; color:var(--navy); margin-bottom:1rem; }
.download-wrap p { font-size:16px; color:var(--gray-mid); line-height:1.7; margin-bottom:2rem; }
.download-note { background:var(--off-white); border-radius:12px; padding:1.25rem; margin-top:2rem; text-align:left; font-size:14px; color:var(--gray-mid); line-height:1.65; }
.download-note strong { color:var(--navy); display:block; margin-bottom:0.3rem; font-size:13px; text-transform:uppercase; letter-spacing:0.06em; }

@media (max-width:600px) {
  .so-nav-links { display:none; }
  .circle-intro { grid-template-columns:1fr; }
  .so-plans { grid-template-columns:1fr; }
}

@media(max-width:768px){ .so-nav-links{ display:none; } .so-nav-links.open{ display:flex; flex-direction:column; position:absolute; top:60px; left:0; width:100%; background:rgba(13,31,60,0.95); padding:1rem 2rem; gap:1rem; } .so-nav-hamburger{ display:block; background:none; border:none; color:#fff; font-size:24px; cursor:pointer; } }
@media(min-width:769px){
  .so-nav-hamburger{ display:none; }
  .so-hero{
    min-height:600px;
    padding-top:7rem;
    background-position:center 46%;
  }
}

/* ── Footer (updated to match live site design) ── */
.so-footer {
  background: #0a1628;
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: none;
}
.so-footer-headline {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}
.so-footer .so-footer-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  max-width: none;
  white-space: nowrap;
}
.so-footer-cta {
  background: #ffffff;
  color: #0D1F3C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border: none;
  box-shadow: none;
}
.so-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.5rem 0 0.5rem;
}
.so-footer-legal a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.18s ease;
}
.so-footer-legal a:hover {
  color: rgba(255,255,255,0.95);
}
.so-footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}
.scroll-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.35rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(13,31,60,0.2);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.scroll-top-btn:hover {
  transform: translateY(-2px);
}
.scroll-top-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .so-footer-headline,
  .so-footer-sub {
    white-space: normal;
  }
}
