:root {
  --ink: #10252a;
  --muted: #5b6f73;
  --teal: #087f84;
  --teal-dark: #046267;
  --teal-soft: #dff5f2;
  --sky: #e7f7fb;
  --cream: #fffdf7;
  --line: rgba(16, 37, 42, 0.12);
  --shadow: 0 24px 70px rgba(17, 71, 77, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(4, 98, 103, 0.16);
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a,
.footer-links a,
.text-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--teal);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(50px, 7vw, 100px);
  padding: 64px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.app-store-button {
  min-width: 176px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px 11px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 13px;
  line-height: 1.05;
  cursor: default;
  user-select: none;
}

.app-store-small {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.app-store-large {
  margin-top: 3px;
  font-size: 1.25rem;
  font-weight: 650;
}

.hero-visual {
  min-height: 580px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: clip;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.glow-one {
  width: 440px;
  height: 440px;
  background: var(--sky);
}

.glow-two {
  width: 250px;
  height: 250px;
  right: 0;
  top: 35px;
  background: #ffe8a9;
  opacity: 0.45;
}

.phone-shell {
  width: 292px;
  height: 580px;
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #15272a;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 48px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(16, 37, 42, 0.12);
  transform: rotate(3deg);
}

.phone-island {
  width: 86px;
  height: 25px;
  position: absolute;
  z-index: 3;
  top: 19px;
  left: 50%;
  background: #15272a;
  border-radius: 20px;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 56px 19px 25px;
  background: #f3f4f5;
  border-radius: 38px;
}

.app-heading p {
  margin-bottom: 1px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.app-heading span,
.trip-details small,
.option-card small {
  color: #68777a;
  font-size: 0.68rem;
}

.app-section {
  margin-top: 27px;
}

.app-section h2 {
  margin-bottom: 9px;
  font-size: 1.04rem;
  letter-spacing: -0.025em;
}

.trip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 37, 42, 0.05);
}

.trip-icon {
  color: var(--teal);
  font-size: 1.3rem;
}

.trip-details {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.trip-details strong {
  font-size: 0.82rem;
}

.chevron {
  color: #7b8a8d;
  font-size: 1.4rem;
}

.trip-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.option-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 37, 42, 0.05);
}

.option-card > span {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 1.35rem;
}

.option-card strong {
  margin-bottom: 4px;
  font-size: 0.76rem;
  line-height: 1.25;
}

.floating-icon {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 55px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 27px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.how-it-works {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-intro h2,
.closing-callout h2,
.page-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-intro > p:last-child,
.page-intro > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 270px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 55px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.closing-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 90px;
  padding: 48px;
  background: var(--teal-soft);
  border-radius: 32px;
}

.closing-callout img {
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(4, 98, 103, 0.16);
}

.closing-callout h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.compact {
  flex-shrink: 0;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.copyright {
  grid-column: 1 / -1;
}

.inner-page main {
  min-height: calc(100vh - 230px);
}

.page-intro {
  max-width: 770px;
  padding: 92px 0 46px;
}

.page-intro h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.prose {
  max-width: 760px;
  padding-bottom: 110px;
}

.prose section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

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

.prose a {
  color: var(--teal-dark);
  font-weight: 650;
}

.prose ul {
  padding-left: 1.3rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 74px;
  }

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

  .hero-visual {
    min-height: 630px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .feature-number {
    margin-bottom: 32px;
  }

  .closing-callout {
    grid-template-columns: auto 1fr;
  }

  .closing-callout .app-store-button {
    grid-column: 1 / -1;
    width: max-content;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p:not(.copyright) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    gap: 28px;
    padding: 55px 0 68px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  .hero-visual {
    min-height: 575px;
  }

  .phone-shell {
    width: 268px;
    height: 540px;
  }

  .floating-icon {
    width: 92px;
    height: 92px;
    right: 0;
  }

  .how-it-works {
    padding: 82px 0;
  }

  .closing-callout {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .closing-callout img {
    width: 70px;
  }

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

  .footer-links,
  footer > p:not(.copyright) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
