:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --charcoal: #263238;
  --green: #15724f;
  --focus: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 250, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1100px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #263238;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus {
  outline: none;
  background: #e9edf3;
}

.hero {
  width: min(1100px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: center;
  padding: 48px 0 56px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
}

h2 {
  margin: 0 0 16px;
  font-size: 32px;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  background: var(--surface);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  outline: none;
  background: var(--red-dark);
}

.button.secondary:hover,
.button.secondary:focus {
  outline: none;
  border-color: #b8c1d0;
  background: #eef2f7;
}

.phone-frame {
  width: min(360px, 100%);
  margin: 0 auto;
  border: 10px solid #1f2937;
  border-radius: 34px;
  background: #101820;
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.22);
}

.app-screen {
  min-height: 620px;
  border-radius: 22px;
  background: #f7f8fa;
  overflow: hidden;
  padding: 18px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-top img {
  width: 36px;
  height: 36px;
}

.gear {
  width: 42px;
  height: 42px;
  border: 1px solid #d5dbe5;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #ffffff;
}

.app-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  margin: 54px auto 38px;
}

.sos-action {
  min-height: 116px;
  display: grid;
  place-items: center;
  margin: 14px 0;
  border-radius: 8px;
  color: white;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
}

.sos-action.health {
  background: var(--red);
}

.sos-action.police {
  background: var(--charcoal);
}

.status-line {
  margin-top: 22px;
  color: #4b5563;
  font-size: 14px;
}

.section {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section.tight {
  padding-top: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.card p,
.content p,
.content li {
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--red);
  background: #fff7f7;
  padding: 16px;
  border-radius: 6px;
  color: #5b2020;
}

.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.file-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.content {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.content h1 {
  font-size: 42px;
}

.content h2 {
  margin-top: 34px;
}

.content ul {
  padding-left: 22px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #edf1f6;
}

.footer-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #5b6574;
  font-size: 14px;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
