:root {
  color-scheme: light;
  --navy: #0B2D5B;
  --teal: #2EC4B6;
  --teal-dark: #15988d;
  --ink: #18324f;
  --muted: #5c6f82;
  --line: #d9e1e8;
  --paper: #FAFAF8;
  --canvas: #eef3f5;
  --success: #087f5b;
  --danger: #a93226;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(42px + env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.location-panel {
  width: min(calc(100% - 0px), 480px);
  background: var(--paper);
  border: 1px solid rgba(11, 45, 91, .09);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(11, 45, 91, .1);
  padding: 28px 24px 24px;
}

.brand-block { margin-bottom: 48px; }

.brand-mark {
  color: var(--navy);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1;
}

.brand-line {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-top: 6px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  color: var(--navy);
  font-size: clamp(31px, 8vw, 42px);
  letter-spacing: -.055em;
  line-height: 1.04;
  margin: 11px 0 15px;
}

.intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}

.status {
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  margin: 25px 0 16px;
  padding: 14px 15px;
  white-space: pre-line;
}

.status-info { background: #f1f7f7; color: var(--navy); }
.status-success { background: #ecfdf3; border-color: #a7e8c8; color: var(--success); }
.status-error { background: #fff4f2; border-color: #f5c6c1; color: var(--danger); }

.primary-button {
  align-items: center;
  appearance: none;
  background: var(--teal);
  border: 0;
  border-radius: 14px;
  color: #073c3a;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  transition: background-color .15s ease, transform .15s ease, opacity .15s ease;
  width: 100%;
}

.primary-button:hover:not(:disabled) { background: #53d1c5; }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .52; }
.primary-button:focus-visible,
.map-link:focus-visible {
  outline: 3px solid rgba(46, 196, 182, .42);
  outline-offset: 3px;
}

.button-icon { font-size: 19px; line-height: 1; }

.success-actions { margin-top: 16px; }
.precision-note,
.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.map-link {
  color: var(--navy);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 13px;
  text-align: center;
}

.privacy-note { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 17px; }
.hidden { display: none !important; }

@media (min-width: 768px) {
  .page-shell { padding-top: 96px; }
  .location-panel { padding: 34px 34px 29px; }
  .brand-block { margin-bottom: 64px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .page-shell { padding-top: calc(20px + env(safe-area-inset-top)); }
  .brand-block { margin-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
