:root {
  --navy: #292f50;
  --green: #5c7e4e;
  --green-hover: #4e7042;
  --border: #d9d9dc;
  --header: #fafafa;
  --blue: #4a6fa5;
  --blue-hover: #3d5d8c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* =========================
   TOP NAVIGATION
========================= */

.topbar {
  height: 110px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--header);
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid var(--border);
  padding: 0 24px 0 4px;
  width: 100%;
}

.top-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  width: 130px;
  height: 100%;
  flex: 0 0 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e9ea;
  margin-right: 18px;
}

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

.primary-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.primary-links a {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   HERO — SPLIT LAYOUT
========================= */

.hero {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #f8f8fa;
  overflow: hidden;
  flex: 1;                       /* fills the remaining viewport height */
}

.hero-left {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f8fa;
  padding: 24px;
}

.hero-left img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-right {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 90px;
  background: #ffffff;
  overflow-y: auto;
}

.flow-container {
  width: 100%;
  max-width: 400px;
}

/* =========================
   FLOW HEADER — +20% fonts
========================= */

.flow-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px 0;
}

.flow-logo {
  display: block;
  width: 54px;
  height: auto;
}

.flow-title {
  font-size: 14.4px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.2px;
}

/* =========================
   STAGE 1 — Notification Card
========================= */

.stage-1 {
  background: #ffffff;
  border: 1px solid #e6e6ea;
  border-radius: 18px;
  padding: 30px 24px 26px;
  text-align: center;
}

.stage-1.hidden {
  display: none;
}

.stage-1-icon {
  font-size: 45.6px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.stage-1 h1 {
  font-size: 21.6px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 9px 0;
  letter-spacing: -0.2px;
}

.stage-1 p.sub {
  font-size: 12px;
  color: #5a6478;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.preparing-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #eef1f6;
  color: var(--navy);
  padding: 12px 19px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}

.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 3px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9b4c7;
  animation: pulse 1.4s infinite ease-in-out;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.4; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.trusted-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ee;
  color: #4a6b4a;
  padding: 11px 19px;
  border-radius: 40px;
  font-size: 10.8px;
  font-weight: 500;
  margin-bottom: 22px;
}

.info-box {
  background: #fdf6e3;
  border: 1px solid #f0e0b8;
  border-radius: 10px;
  padding: 14px 17px;
  text-align: left;
  font-size: 10.8px;
  color: #7a6a3a;
  line-height: 1.6;
}

.info-box strong {
  display: block;
  font-size: 12px;
  color: #6b5a2a;
  margin-bottom: 4px;
}

/* =========================
   STAGE 2 — Download Card
========================= */

.stage-2 {
  display: none;
  background: #ffffff;
}

.stage-2.visible {
  display: block;
}

.stage-2-header {
  border-left: 3px solid #5a7bb5;
  padding-left: 14px;
  margin-bottom: 18px;
}

.stage-2-header h1 {
  font-size: 20.4px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.stage-2-header p {
  font-size: 12px;
  color: #5a6478;
  margin: 0;
}

.success-box {
  background: #e8f3e8;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  font-size: 10.8px;
  color: #2e462e;
  line-height: 1.55;
}

.success-check {
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #5a7a4a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15.6px;
  font-weight: 700;
}

.download-btn {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #ffffff;
  font-size: 14.4px;
  font-weight: 700;
  padding: 16px 20px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
  margin-bottom: 12px;
}

.download-btn:hover {
  background: var(--blue-hover);
}

.download-hint {
  text-align: center;
  font-size: 10.8px;
  color: #6b7a90;
  margin: 0 0 20px 0;
}

.tip-box {
  background: #fdf6e3;
  border: 1px solid #f0e0b8;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 10.8px;
  color: #7a6a3a;
  line-height: 1.6;
  margin-bottom: 18px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.tip-box .tip-icon {
  flex-shrink: 0;
  font-size: 16.8px;
}

.redirect-box {
  background: #eef1f6;
  border-radius: 40px;
  padding: 14px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.redirect-box .sec {
  font-weight: 700;
  color: #2f3a55;
}

/* =========================
   DEVICE-BLOCK WARNING OVERLAY
========================= */

.device-block {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.device-block.visible {
  display: flex;
}

.device-block-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e6e6ea;
  border-radius: 18px;
  padding: 40px 28px 34px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.device-block-logo {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 20px auto;
}

.device-block-icon {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.device-block h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

.device-block p {
  font-size: 14px;
  color: #5a6478;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.device-block .warning-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf6e3;
  border: 1px solid #f0e0b8;
  color: #7a6a3a;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   MEDIUM SCREENS
========================= */

@media (max-width: 1250px) {
  .topbar {
    height: 88px;
    padding-right: 18px;
  }

  .brand {
    width: 112px;
    flex-basis: 112px;
    margin-right: 18px;
  }

  .brand img {
    width: 88px;
  }

  .primary-links {
    gap: 25px;
  }

  .primary-links a {
    font-size: 20px;
  }
}

/* =========================
   SMALL LAPTOPS / TABLETS
========================= */

@media (max-width: 980px) {
  .primary-links {
    gap: 18px;
  }

  .primary-links a {
    font-size: 17px;
  }

  .hero-right {
    padding: 50px 44px;
  }

  .flow-container {
    max-width: 100%;
  }

  .hero-left {
    padding: 16px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {
  .topbar {
    height: 76px;
    padding: 0 14px 0 0;
  }

  .brand {
    width: 105px;
    flex-basis: 105px;
    margin-right: 0;
  }

  .brand img {
    width: 82px;
  }

  .primary-links {
    display: none;
  }

  .hero {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero-left {
    padding: 16px;
  }

  .hero-right {
    padding: 28px 18px 36px;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 94px;
    flex-basis: 94px;
  }

  .brand img {
    width: 76px;
  }
}