:root {
  --background: #fffbef;
  --surface: #ffffff;
  --ink: #071b3a;
  --muted: #68758a;
  --line: #e7e0d4;
  --primary: #126bff;
  --primary-dark: #0756db;
  --primary-soft: #eaf3ff;
  --teal: #16b8a8;
  --yellow: #ffd15a;
  --purple: #8f7cff;
  --danger-soft: #fca5a5;
  --shadow: 0 28px 80px rgba(7, 27, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 31px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav a {
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
  max-width: 1180px;
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  padding: 48px 24px 70px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 5.2vw, 5.05rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.intro {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 8px;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
}

.primary-link {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(18, 107, 255, 0.24);
}

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

.secondary-link {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: rgba(18, 107, 255, 0.35);
  outline: none;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 660px;
}

.mascot {
  position: absolute;
  top: -18px;
  right: max(-52px, -6vw);
  z-index: 2;
  width: min(42vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(7, 27, 58, 0.12));
}

.phone {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 0.52;
  border: 12px solid #071b3a;
  border-radius: 42px;
  background: #071b3a;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screenshot-phone {
  margin: 0;
  background: #071b3a;
}

.screenshot-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 108px;
  height: 28px;
  border-radius: 0 0 18px 18px;
  background: #071b3a;
  transform: translateX(-50%);
}

.app-screen {
  height: 100%;
  border-radius: 30px;
  background: var(--background);
  padding: 54px 22px 24px;
  overflow: hidden;
}

.app-header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.app-header img {
  display: block;
  width: min(100%, 190px);
  height: auto;
}

.app-header span {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quick-actions div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border: 1px solid rgba(18, 107, 255, 0.12);
  border-radius: 14px;
  background: var(--primary-soft);
  padding: 11px;
  color: var(--ink);
  font-weight: 900;
}

.action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.action-icon.scan::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 5px;
}

.search-pill {
  min-height: 50px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #9ca3af;
  padding: 15px 14px;
  font-size: 0.94rem;
  font-weight: 700;
}

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

.loyalty-card {
  display: grid;
  justify-items: center;
  align-content: space-between;
  min-height: 116px;
  border-radius: 14px;
  padding: 14px 10px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 20px rgba(18, 107, 255, 0.16);
}

.loyalty-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.loyalty-card strong {
  max-width: 100%;
  font-size: 0.98rem;
  font-weight: 900;
}

.blue {
  background: var(--primary);
}

.teal {
  background: var(--teal);
}

.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.purple {
  background: var(--purple);
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 78px) 24px;
}

.download-band h2 {
  max-width: 540px;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3.8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.download-band p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  min-width: 188px;
  border: 1px solid #071b3a;
  border-radius: 8px;
  background: #071b3a;
  color: #ffffff;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 16px 36px rgba(7, 27, 58, 0.16);
}

.store-button:hover,
.store-button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  outline: none;
}

.store-button small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.store-icon {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
}

.store-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-band article {
  min-height: 270px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 52px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 44px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.feature-band article:nth-child(2) .feature-icon {
  background: var(--teal);
  color: #ffffff;
}

.feature-band article:nth-child(3) .feature-icon {
  background: var(--purple);
  color: #ffffff;
}

.feature-band h2,
.workflow h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.feature-band p,
.steps p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.screenshots {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 24px clamp(34px, 6vw, 74px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

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

.screenshot-grid figure {
  margin: 0;
}

.screenshot-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border: 8px solid #071b3a;
  border-radius: 30px;
  background: #071b3a;
  box-shadow: 0 18px 44px rgba(7, 27, 58, 0.14);
  object-fit: cover;
}

.screenshot-grid figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 24px;
}

.workflow h2 {
  max-width: 520px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 30px 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer img {
  border-radius: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.legal-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) 24px;
}

.legal-content {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 56px);
}

.legal-content h1 {
  margin-bottom: 8px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.legal-content p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.legal-content a {
  color: var(--primary);
  font-weight: 800;
}

.legal-updated {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero-copy {
    max-width: none;
  }

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

  .mascot {
    right: calc(50% - 255px);
  }

  .feature-band,
  .download-band,
  .workflow {
    grid-template-columns: 1fr;
  }

  .store-actions {
    justify-content: flex-start;
  }

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

  .feature-band article {
    min-height: 0;
  }

  .feature-icon {
    margin-bottom: 34px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand img {
    height: 28px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.86rem;
  }

  .nav a {
    padding: 9px 7px;
  }

  .hero {
    gap: 38px;
    padding: 34px 18px 58px;
  }

  h1 {
    font-size: clamp(2.66rem, 14vw, 4.1rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

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

  .mascot {
    right: -20px;
    width: 150px;
  }

  .phone {
    width: min(100%, 318px);
    border-width: 10px;
    border-radius: 38px;
  }

  .app-screen {
    padding: 52px 18px 22px;
  }

  .quick-actions {
    gap: 9px;
  }

  .quick-actions div {
    gap: 8px;
    padding: 9px;
  }

  .action-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .workflow {
    padding-inline: 18px;
  }

  .download-band,
  .screenshots,
  .legal-page {
    padding-inline: 18px;
  }

  .store-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-button {
    justify-content: flex-start;
    width: 100%;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .screenshot-grid img {
    max-width: 310px;
    margin: 0 auto;
  }

  .steps li {
    padding: 16px;
  }
}
