:root {
  color-scheme: light dark;
  --background-1: #f4f9ff;
  --background-2: #ffffff;
  --text: #132034;
  --muted: #5f6d7f;
  --card: rgb(255 255 255 / 78%);
  --card-strong: #ffffff;
  --line: rgb(19 32 52 / 10%);
  --blue: #1f7cff;
  --cyan: #17bde5;
  --green: #2ea865;
  --orange: #c77700;
  --shadow: 0 24px 70px rgb(31 124 255 / 14%);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1120px;
}

:root[data-theme="dark"] {
  --background-1: #05070b;
  --background-2: #101826;
  --text: #eff6ff;
  --muted: #aab8cb;
  --card: rgb(17 25 39 / 78%);
  --card-strong: #121c2b;
  --line: rgb(239 246 255 / 12%);
  --blue: #68a8ff;
  --cyan: #55d8ef;
  --green: #6bd68f;
  --orange: #ffb84d;
  --shadow: 0 24px 70px rgb(0 0 0 / 34%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background-1: #05070b;
    --background-2: #101826;
    --text: #eff6ff;
    --muted: #aab8cb;
    --card: rgb(17 25 39 / 78%);
    --card-strong: #121c2b;
    --line: rgb(239 246 255 / 12%);
    --blue: #68a8ff;
    --cyan: #55d8ef;
    --green: #6bd68f;
    --orange: #ffb84d;
    --shadow: 0 24px 70px rgb(0 0 0 / 34%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgb(31 124 255 / 14%), transparent 34rem),
    linear-gradient(135deg, var(--background-1), var(--background-2));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.toolbar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.625rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 0.8rem;
  box-shadow: 0 10px 24px rgb(31 124 255 / 24%);
}

.site-nav {
  justify-content: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.toolbar {
  gap: 0.5rem;
}

select {
  max-width: 8rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font: inherit;
}

main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 5rem);
  padding: 2rem 0 4rem;
}

.hero-copy {
  max-width: 40rem;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 37rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.support-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-actions {
  margin-top: 1.75rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 34px rgb(31 124 255 / 22%);
}

.secondary-action {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
}

.phone-frame {
  justify-self: center;
  width: min(100%, 24rem);
  padding: 0.8rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 14%));
  border: 1px solid var(--line);
  border-radius: 2.7rem;
  box-shadow: var(--shadow);
}

.phone-screen {
  display: flex;
  min-height: 47.5rem;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgb(31 124 255 / 10%), transparent 42%),
    var(--background-2);
  border: 1px solid var(--line);
  border-radius: 2rem;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-topbar {
  padding: 0.35rem 0.15rem 0.6rem;
  font-weight: 800;
}

.app-topbar strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.05;
}

.app-caption {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.alert-button {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
}

.app-card,
.info-card,
.legal-copy,
.support-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 14%) inset;
}

.app-card {
  padding: 1rem;
}

.progress-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.card-label,
.quick-title {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 9.75rem;
  height: 9.75rem;
  flex: 0 0 auto;
  place-items: center;
  background: conic-gradient(from -90deg, var(--blue) 0 76%, rgb(127 149 177 / 18%) 76% 100%);
  border-radius: 999px;
}

.progress-ring::before {
  position: absolute;
  inset: 0.85rem;
  content: "";
  background: var(--card-strong);
  border-radius: inherit;
}

.ring-content {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.ring-content strong {
  font-size: 2.65rem;
  line-height: 0.92;
}

.ring-content span,
.ring-content small {
  color: var(--muted);
  font-weight: 800;
}

.ring-content small {
  max-width: 4.9rem;
  font-size: 0.72rem;
  line-height: 1.15;
}

.progress-metrics {
  display: grid;
  flex: 1;
  gap: 0.55rem;
}

.risk-pill {
  width: fit-content;
  margin: 0;
  padding: 0.32rem 0.55rem;
  color: var(--green);
  background: rgb(46 168 101 / 12%);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.stacked-metric strong,
.stacked-metric span {
  display: block;
}

.stacked-metric strong {
  font-size: 1.2rem;
}

.stacked-metric span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-primary-button {
  width: 100%;
  min-height: 3.25rem;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 800;
}

.app-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.app-action-grid button {
  display: grid;
  min-height: 4.2rem;
  align-content: center;
  justify-items: center;
  gap: 0.2rem;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 800;
}

.app-action-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 0;
}

.app-action-secondary {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
}

.app-section {
  display: grid;
  gap: 0.45rem;
}

.app-section h3 {
  font-size: 0.95rem;
  font-weight: 800;
}

.latest-trip-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.latest-trip-card h3 {
  font-size: 1rem;
}

.latest-trip-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

.latest-trip-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.latest-status {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green);
  background: rgb(46 168 101 / 12%);
  border-radius: 999px;
  font-weight: 900;
}

.quick-list {
  margin-top: 0.1rem;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.show-all {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.frequent-list {
  display: grid;
  gap: 0.55rem;
}

.frequent-button {
  display: flex;
  min-height: 3.45rem;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  color: white;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 800;
}

.frequent-button span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: rgb(255 255 255 / 20%);
  border-radius: 999px;
}

.frequent-blue {
  background: linear-gradient(135deg, #2878ff, #6366f1);
}

.frequent-cyan {
  background: linear-gradient(135deg, #09aeca, #0f9f76);
}

.feature-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue);
  background: rgb(31 124 255 / 12%);
  border-radius: var(--radius-md);
  font-weight: 800;
}

.app-tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: auto;
  padding: 0.55rem 0.35rem 0.1rem;
  border-top: 1px solid var(--line);
}

.app-tabbar span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.app-tabbar .is-active {
  color: var(--blue);
}

.content-section,
.legal-section,
.support-section {
  padding: 4rem 0;
}

.standalone-section {
  min-height: calc(100svh - 13rem);
  padding-top: 5rem;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.1rem;
}

.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
}

.info-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.legal-copy {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.legal-copy h1,
.support-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.legal-copy h2,
.support-card h2 {
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.legal-copy p {
  max-width: 72ch;
  color: var(--muted);
}

.legal-copy h3 {
  margin-top: 1.5rem;
}

.legal-date {
  margin-top: 0.5rem;
  font-weight: 700;
}

.support-card {
  justify-content: space-between;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.support-card p {
  max-width: 48rem;
  color: var(--muted);
}

.legal-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .toolbar {
    justify-content: flex-start;
  }

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

  .phone-frame {
    width: min(100%, 23rem);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 1rem, var(--max-width));
  }

  .site-nav {
    gap: 0.75rem;
  }

  .hero-actions,
  .support-card,
  .legal-link-actions,
  .toolbar {
    align-items: stretch;
  }

  .primary-action,
  .secondary-action,
  .toolbar select {
    width: 100%;
  }

  .phone-screen {
    min-height: 47.5rem;
  }

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

  .site-footer {
    display: block;
  }
}
