:root {
  color-scheme: light;
  --service-blue: #1c529e;
  --service-blue-dark: #12325f;
  --service-blue-soft: #e9f1fb;
  --ride: #2173b8;
  --food: #cc731a;
  --shelter: #40804d;
  --danger: #c72626;
  --ink: #101828;
  --muted: #667085;
  --line: #d8dee8;
  --grouped: #f2f4f7;
  --card: #ffffff;
  --operator-bg: #0d1c31;
  --operator-line: #29384d;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(9, 30, 66, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(33, 115, 184, 0.12), transparent 28rem), #f8fafc;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--service-blue-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  height: 82px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.09);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--service-blue-dark);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--service-blue);
  border-radius: 10px;
  letter-spacing: 0;
}

.demo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-label span {
  width: 8px;
  height: 8px;
  background: var(--shelter);
  border-radius: 50%;
}

.demo-shell {
  width: min(1480px, calc(100% - 48px));
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  padding: 52px 0 64px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(380px, 0.72fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 4vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--service-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 620px;
  margin: 0;
  color: var(--service-blue-dark);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.intro-copy {
  max-width: 570px;
  margin: 28px 0 0;
  color: #475467;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.primary-action,
.text-action {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 750;
}

.primary-action {
  min-width: 206px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  color: white;
  background: var(--service-blue);
  box-shadow: 0 10px 26px rgba(28, 82, 158, 0.24);
}

.primary-action:hover {
  background: #164984;
}
.primary-action:focus-visible,
.text-action:focus-visible,
.ios-button:focus-visible,
.service-button:focus-visible,
.back-button:focus-visible,
.rating-button:focus-visible {
  outline: 3px solid #7eb8ff;
  outline-offset: 3px;
}

.text-action {
  padding: 0 10px;
  color: var(--service-blue);
  background: transparent;
}

.build-boundary {
  max-width: 560px;
  margin: 46px 0 0;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.build-boundary div {
  min-width: 0;
}
.build-boundary dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.build-boundary dd {
  margin: 0;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 700;
}

.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 390 / 844;
  overflow: hidden;
  color: var(--ink);
  background: var(--grouped);
  border: 8px solid #111827;
  border-radius: 52px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px #667085;
}

.phone-top {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  height: 50px;
  padding: 11px 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  pointer-events: none;
}

.dynamic-island {
  width: 108px;
  height: 28px;
  margin-top: -3px;
  background: #05070a;
  border-radius: 18px;
}
.phone-signal {
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.screen {
  height: 100%;
  overflow: hidden;
}

.home-indicator {
  position: absolute;
  z-index: 20;
  bottom: 7px;
  left: 50%;
  width: 120px;
  height: 5px;
  background: currentColor;
  border-radius: 6px;
  transform: translateX(-50%);
  opacity: 0.82;
}

.ios-screen {
  height: 100%;
  padding: 56px 16px 28px;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--grouped);
}

.ios-screen::-webkit-scrollbar {
  display: none;
}
.ios-screen.login {
  padding: 80px 20px 32px;
  color: white;
  background: linear-gradient(180deg, var(--service-blue) 0%, #3971b5 100%);
}

.login-brand {
  text-align: center;
}
.login-seal {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  font-size: 2rem;
  font-weight: 900;
}
.login-brand h3 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}
.login-brand p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.login-card {
  margin-top: 38px;
  padding: 24px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(4, 25, 55, 0.25);
}
.login-card h4 {
  margin: 0 0 16px;
  text-align: center;
}
.ios-input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--grouped);
  border: 1px solid transparent;
  border-radius: 10px;
}
.ios-input:focus {
  border-color: var(--service-blue);
  outline: 0;
}

.ios-button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 10px 14px;
  color: white;
  background: var(--service-blue);
  border: 0;
  border-radius: 12px;
  font-weight: 760;
}
.ios-button.secondary {
  color: var(--service-blue);
  background: var(--service-blue-soft);
}
.login-footer {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  text-align: center;
}

.ios-nav {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}
.ios-nav h3 {
  margin: 0;
  font-size: 0.96rem;
  text-align: center;
}
.back-button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--service-blue);
  background: transparent;
  border: 0;
  font-size: 1.45rem;
}
.profile-dot {
  display: grid;
  width: 32px;
  height: 32px;
  margin-left: auto;
  place-items: center;
  color: var(--service-blue);
  background: #dbe8f7;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-heading {
  padding: 12px 2px 14px;
  text-align: center;
}
.home-heading strong {
  display: block;
  color: var(--service-blue-dark);
  font-size: 1rem;
}
.home-heading small {
  color: var(--muted);
}
.home-heading h2 {
  margin: 15px 0 0;
  font-size: 1.26rem;
  letter-spacing: -0.02em;
}

.service-list {
  display: grid;
  gap: 11px;
}
.service-button {
  width: 100%;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: var(--card);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.06);
}
.service-icon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 900;
}
.service-icon.ride {
  background: var(--ride);
}
.service-icon.food {
  background: var(--food);
}
.service-icon.shelter {
  background: var(--shelter);
}
.service-copy {
  min-width: 0;
  flex: 1;
}
.service-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
}
.service-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.chevron {
  color: #98a2b3;
  font-size: 1.25rem;
}
.sponsor-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}
.safety-card {
  margin-top: 16px;
  padding: 12px;
  background: #fceaea;
  border-radius: 12px;
  text-align: center;
}
.safety-card strong {
  display: block;
  color: #9b1c1c;
  font-size: 0.72rem;
}
.safety-card span {
  color: #7f1d1d;
  font-size: 0.66rem;
}

.form-title {
  margin: 16px 0 5px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
.form-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}
.form-card {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--card);
  border-radius: 14px;
}
.form-row {
  min-height: 52px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f4;
}
.form-row:last-child {
  border-bottom: 0;
}
.form-row.stack {
  display: block;
}
.form-row strong {
  display: block;
  font-size: 0.78rem;
}
.form-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}
.row-icon {
  color: var(--service-blue);
  font-size: 1.1rem;
}
.consent-check {
  width: 20px;
  height: 20px;
  accent-color: var(--service-blue);
}
.boundary-note {
  margin: 12px 2px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.status-body {
  display: flex;
  min-height: calc(100% - 42px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.status-orb {
  display: grid;
  width: 92px;
  height: 92px;
  margin-top: 52px;
  place-items: center;
  color: white;
  background: var(--ride);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(33, 115, 184, 0.24);
  font-size: 2.2rem;
}
.status-body h2 {
  margin: 20px 0 7px;
  font-size: 1.25rem;
}
.status-body > p {
  max-width: 280px;
  margin: 0;
  color: #344054;
  font-size: 0.82rem;
  line-height: 1.45;
}
.progress-track {
  width: 82%;
  height: 6px;
  margin: 22px 0 13px;
  overflow: hidden;
  background: #d8dee8;
  border-radius: 8px;
}
.progress-bar {
  height: 100%;
  background: var(--ride);
  border-radius: inherit;
  transition: width 0.45s ease;
}
.status-pill {
  padding: 6px 11px;
  color: var(--ride);
  background: #dcecf8;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.destination {
  margin-top: 18px !important;
  color: var(--muted) !important;
  font-size: 0.72rem !important;
}
.status-actions {
  width: 100%;
  margin-top: auto;
  padding: 24px 0 10px;
}

.rating {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: white;
  border-radius: 16px;
}
.rating p {
  margin-bottom: 12px;
  font-weight: 700;
}
.rating-row {
  display: flex;
  justify-content: center;
  gap: 9px;
}
.rating-button {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--grouped);
  border: 0;
  border-radius: 12px;
  font-size: 1.15rem;
}

.complete-check {
  display: grid;
  width: 92px;
  height: 92px;
  margin-top: 64px;
  place-items: center;
  color: white;
  background: var(--shelter);
  border-radius: 50%;
  font-size: 2.6rem;
  box-shadow: 0 12px 30px rgba(64, 128, 77, 0.22);
}
.receipt {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  text-align: left;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 0.7rem;
}
.receipt-row:last-child {
  border: 0;
}
.receipt-row span {
  color: var(--muted);
}
.receipt-row strong {
  text-align: right;
}

.operator {
  align-self: stretch;
  min-height: 650px;
  padding: 30px;
  color: white;
  background: var(--operator-bg);
  border: 1px solid #23354e;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(9, 30, 66, 0.18);
}
.operator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--operator-line);
}
.operator .eyebrow {
  color: #84b7f2;
}
.operator h2 {
  margin: 0;
  font-size: 1.3rem;
}
.loop-state {
  padding: 6px 9px;
  color: #a9c9ee;
  background: #172942;
  border: 1px solid #304762;
  border-radius: 8px;
  font:
    700 0.62rem ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.loop-list {
  margin: 0;
  padding: 18px 0 16px;
  list-style: none;
}
.loop-list li {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  color: #718198;
  transition: color 0.25s ease;
}
.loop-list li::after {
  content: '';
  position: absolute;
  top: 27px;
  bottom: -2px;
  left: 12px;
  width: 1px;
  background: var(--operator-line);
}
.loop-list li:last-child::after {
  display: none;
}
.loop-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: #17263a;
  border: 1px solid #34465d;
  border-radius: 50%;
  font:
    700 0.55rem ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.loop-list strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 0.82rem;
}
.loop-list small {
  font-size: 0.68rem;
}
.loop-list li.complete {
  color: #80b693;
}
.loop-list li.complete > span {
  color: #dff6e6;
  background: #214232;
  border-color: #4e8060;
}
.loop-list li.active {
  color: white;
}
.loop-list li.active > span {
  color: #08192e;
  background: #84b7f2;
  border-color: #b9d9ff;
  box-shadow: 0 0 0 5px rgba(132, 183, 242, 0.1);
}

.event-card {
  padding: 15px;
  background: #101f34;
  border: 1px solid var(--operator-line);
  border-radius: 14px;
}
.event-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8191a7;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event-card code {
  display: block;
  margin: 12px 0 6px;
  color: #a7cdf8;
  font-size: 0.71rem;
  overflow-wrap: anywhere;
}
.event-card p {
  min-height: 30px;
  margin: 0;
  color: #a5b1c1;
  font-size: 0.67rem;
  line-height: 1.45;
}

.site-footer {
  min-height: 74px;
  color: var(--muted);
  border-top: 1px solid rgba(16, 24, 40, 0.09);
  font-size: 0.72rem;
}

@media (max-width: 1120px) {
  .demo-shell {
    grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 0.7fr);
  }
  .operator {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .loop-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }
  .loop-list li {
    min-height: 92px;
    display: block;
    padding: 10px;
    background: #101f34;
    border-radius: 10px;
  }
  .loop-list li::after {
    display: none;
  }
  .loop-list li > span {
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .demo-shell {
    width: min(100% - 28px, 560px);
  }
  .site-header {
    height: 70px;
  }
  .demo-label {
    max-width: 180px;
    justify-content: flex-end;
    text-align: right;
    font-size: 0.62rem;
  }
  .demo-shell {
    padding-top: 38px;
    grid-template-columns: 1fr;
  }
  .intro h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }
  .build-boundary {
    margin-top: 32px;
  }
  .phone-stage {
    margin-top: 14px;
  }
  .phone {
    width: min(390px, 100%);
  }
  .operator {
    grid-column: auto;
    padding: 22px;
  }
  .loop-list {
    grid-template-columns: 1fr;
  }
  .loop-list li {
    min-height: 54px;
    display: grid;
    padding: 10px;
    grid-template-columns: 34px 1fr;
  }
  .site-footer {
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
