:root {
  --yellow: #f8d848;
  --yellow-soft: #fff4ae;
  --ink: #111111;
  --muted: #555047;
  --white: #ffffff;
  --green: #0f7a45;
  --green-soft: #e8f6ee;
  --blue: #183a6b;
  --blue-soft: #e9f0ff;
  --line: rgba(17, 17, 17, 0.1);
  --shadow: 0 22px 70px rgba(17, 17, 17, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #fffdf0;
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

.download-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(248, 216, 72, 0.96), rgba(255, 244, 174, 0.92) 46%, #ffffff 46%),
    #fffdf0;
}

.download-hero,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.download-hero {
  padding: 24px 0 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy span,
.android-only {
  color: var(--muted);
  font-size: 0.92rem;
}

.android-only {
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 46px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  line-height: 0.95;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.lead {
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

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

.hero-actions {
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-large {
  padding: 16px 22px;
}

.btn-primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.2);
}

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

.referral-box {
  width: min(100%, 520px);
  margin-top: 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.referral-box span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.referral-box strong {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.referral-box button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 900;
}

.referral-box button:disabled {
  opacity: 0.45;
}

.trust-note,
.note,
.muted,
.section-heading p,
.support-row p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.trust-note {
  max-width: 58ch;
  margin: 14px 0 0;
  font-weight: 700;
}

.phone-stage {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(310px, 84vw);
  aspect-ratio: 9 / 18.5;
  border: 12px solid #141414;
  border-radius: 38px;
  background: #141414;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 78px;
  height: 7px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.22);
}

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

.phone-card {
  position: absolute;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.18);
}

.phone-card strong {
  font-size: 1rem;
}

.phone-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fast-card {
  top: 72px;
  left: 0;
  border-left: 6px solid var(--green);
}

.cheap-card {
  right: 0;
  bottom: 76px;
  border-left: 6px solid var(--blue);
}

.section-band,
.feature-band,
.support-band {
  padding: 58px 0;
}

.section-band {
  background: var(--white);
}

.feature-band {
  background: #f4f7ff;
}

.support-band {
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.install-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffdf7;
}

.install-steps li > span {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-size: 1.35rem;
  font-weight: 900;
}

.install-steps strong {
  display: block;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.install-steps p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-item {
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(24, 58, 107, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.feature-item strong {
  display: block;
  font-size: 1.12rem;
}

.feature-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.support-row p {
  color: rgba(255, 255, 255, 0.72);
  margin: 10px 0 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: linear-gradient(180deg, var(--yellow) 0%, #f5cf36 100%);
}

.card {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  padding: 34px 28px 22px;
}

.content {
  padding: 0 28px 28px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stack {
  display: grid;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
}

.code {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.06em;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.93rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 16, 16, 0.14);
  padding: 14px 16px;
  font: inherit;
  background: #fffef5;
}

.status {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status-info {
  background: rgba(16, 16, 16, 0.06);
}

.status-success {
  background: rgba(18, 115, 60, 0.11);
  color: var(--green);
}

.status-error {
  background: rgba(198, 39, 39, 0.1);
  color: #c62727;
}

.footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 880px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .phone-stage {
    min-height: 480px;
  }

  .feature-item {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .download-hero,
  .section-inner {
    width: min(100% - 24px, 1120px);
  }

  .download-hero {
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .android-only {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .row,
  .support-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .referral-box {
    grid-template-columns: 1fr auto;
  }

  .referral-box span {
    grid-column: 1 / -1;
  }

  .install-steps li {
    grid-template-columns: 44px 1fr;
    padding: 14px;
  }

  .install-steps li > span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .install-steps strong {
    font-size: 1rem;
  }

  .phone-stage {
    min-height: 410px;
  }

  .phone {
    width: 250px;
  }

  .phone-card {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .shell {
    padding: 18px 14px;
  }

  .hero,
  .content {
    padding-left: 18px;
    padding-right: 18px;
  }
}
