:root {
  color-scheme: light;
  --red: #e60023;
  --red-dark: #b30018;
  --ink: #111827;
  --muted: #5f6673;
  --soft: #f7f4ef;
  --line: #e9e2d9;
  --white: #ffffff;
  --green: #10a37f;
  --blue: #0a66c2;
  --yellow: #f5b400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(230, 0, 35, 0.045), transparent 20rem),
    radial-gradient(circle at 92% 8%, rgba(16, 163, 127, 0.055), transparent 18rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    var(--soft);
  background-size: auto, auto, 18px 18px, auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(22px, 5vw, 76px);
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 4vw, 38px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
}

main {
  padding: 0 clamp(22px, 5vw, 76px) 80px;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 34px 0 48px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1120px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 94px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 650;
}

.install-zone {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Custom install buttons – black pill with icon + label */
.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  appearance: none;
  border: 0;
  background: #111827;
  color: #fff;
  padding: 12px 26px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.badge-btn:hover {
  transform: scale(1.05);
  background: #1f2937;
}

.badge-btn:active {
  transform: scale(0.97);
}

.badge-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.badge-label small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}

.badge-label strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

/* ── PWA install modal ─────────────────────────── */
.pwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pwa-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.pwa-modal {
  position: relative;
  width: min(92vw, 460px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 30px 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.24);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pwa-overlay.visible .pwa-modal {
  transform: translateY(0) scale(1);
}

.pwa-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s;
}

.pwa-close:hover {
  background: #e3e5ea;
}

.pwa-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.pwa-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(230, 0, 35, 0.12);
}

.pwa-modal h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.pwa-subtitle {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.pwa-instructions {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.pwa-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.pwa-step-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 0, 35, 0.09);
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.pwa-step strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pwa-step p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}

.pwa-step em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}

.pwa-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 99px;
  background: var(--red);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.pwa-install-btn:hover {
  background: var(--red-dark);
  transform: scale(1.02);
}

.pwa-install-btn:active {
  transform: scale(0.98);
}

.logo-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 46px);
  padding: 18px 0 76px;
}

.logo-rail img {
  width: clamp(42px, 7vw, 72px);
  height: clamp(42px, 7vw, 72px);
  object-fit: contain;
  filter: saturate(1.08);
}

.story-row {
  display: grid;
  grid-template-columns: minmax(250px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 8vw, 118px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 0 72px;
}

.story-row-flipped {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 420px);
}

.story-row-flipped .phone-shot {
  order: 2;
}

.story-row-flipped .story-copy {
  order: 1;
}

.phone-shot {
  width: min(100%, 390px);
  min-height: 590px;
  justify-self: center;
  border: 10px solid #111827;
  border-radius: 42px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.15);
  padding: 20px;
  overflow: hidden;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phone-top span:first-child {
  width: 68px;
  height: 8px;
  border-radius: 99px;
  background: #111827;
}

.phone-top span:last-child {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f2f4;
}

.service-hero {
  min-height: 146px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #0b6b57);
}

.service-hero img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffffff;
  padding: 8px;
}

.service-hero strong,
.service-hero small {
  display: block;
}

.service-hero strong {
  font-size: 18px;
}

.service-hero small {
  margin-top: 4px;
  opacity: 0.82;
}

.screen-title {
  margin: 24px 0 12px;
  font-size: 15px;
  font-weight: 900;
}

.plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.plan.selected {
  border-color: rgba(230, 0, 35, 0.45);
  background: rgba(230, 0, 35, 0.07);
}

.field-line {
  height: 46px;
  margin-top: 14px;
  border-radius: 16px;
  background: #f1f2f4;
}

.field-line.short {
  width: 72%;
}

.phone-shot button,
.closing a {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 99px;
  background: var(--red);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

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

.step-label {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.story-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.story-copy p:not(.step-label) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 650;
}

.timeline {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.timeline span {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #d7dbe2;
}

.timeline span.done {
  background: var(--green);
}

.timeline span.active {
  background: var(--red);
}

.timeline strong,
.timeline small,
.hub-item strong,
.hub-item small {
  display: block;
}

.timeline strong,
.hub-item strong {
  font-size: 15px;
}

.timeline small,
.hub-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-shot {
  background: linear-gradient(#ffffff, #fff8f0);
}

.hub-shot {
  background: linear-gradient(#ffffff, #f3fbff);
}

.hub-item {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #f5f7fb;
}

.hub-item:nth-of-type(2) {
  background: #fff4f6;
}

.hub-item:nth-of-type(3) {
  background: #eefbf6;
}

.closing {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  max-width: 760px;
  margin: 64px auto 0;
  padding-bottom: 16px;
}

.closing img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.closing h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
}

.closing p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 650;
}

.closing a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 190px;
  padding: 0 28px;
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand span {
    font-size: 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 72px);
  }

  .story-row,
  .story-row-flipped {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0 56px;
  }

  .story-row-flipped .phone-shot,
  .story-row-flipped .story-copy {
    order: initial;
  }

  .story-copy {
    text-align: center;
    justify-self: center;
  }

  .story-copy p:not(.step-label) {
    margin-left: auto;
    margin-right: auto;
  }

  .phone-shot {
    min-height: 560px;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    font-size: 13px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .badge-btn {
    padding: 10px 20px;
    gap: 10px;
  }

  .badge-label strong {
    font-size: 16px;
  }

  .phone-shot {
    border-width: 8px;
    border-radius: 34px;
    min-height: 530px;
    padding: 16px;
  }
}
