:root {
  --bg-dark: #063c37;
  --bg-mid: #0a5a52;
  --bg-soft: #eaf6f1;
  --surface: #ffffff;
  --surface-soft: #f4fbf7;
  --text-main: #092b27;
  --text-soft: #3f5f5a;
  --text-on-dark: #ebfffb;
  --accent: #9ddb4b;
  --accent-deep: #7ec52d;
  --border-soft: rgba(6, 60, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-main);
  background: var(--bg-soft);
  line-height: 1.45;
}

.shell {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero-wrap {
  position: relative;
  isolation: isolate;
  color: var(--text-on-dark);
  min-height: clamp(560px, 96svh, 900px);
  padding-bottom: clamp(0.6rem, 1.8vw, 1.2rem);
  overflow: clip;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/onboarding/onboarding-page1.png") center 28% / cover no-repeat;
  z-index: -2;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(106deg, rgba(9, 14, 22, 0.72) 4%, rgba(9, 14, 22, 0.3) 44%, rgba(9, 14, 22, 0.12) 70%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.08) 0%, rgba(8, 13, 20, 0.52) 100%);
  z-index: -1;
}

.topbar {
  padding: 0.3rem 0 0.1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.nav a {
  color: #eef3fb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 2px 10px rgba(5, 9, 16, 0.42);
}

.hero {
  padding-top: clamp(0.2rem, 1.1vh, 0.6rem);
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-copy {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
}

.hero-lockup {
  margin: 0 0 0.3rem;
}

.hero-lockup img {
  width: clamp(145px, 20vw, 215px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(4, 7, 12, 0.38));
}

.eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow {
  color: #dce5f3;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  margin-top: 0.56rem;
  font-size: clamp(1.85rem, 6.8vw, 3.2rem);
  max-width: 17ch;
  text-wrap: balance;
  text-shadow: 0 8px 26px rgba(3, 7, 13, 0.5);
}

.lead {
  margin: 0.78rem 0 0;
  color: #e8edf7;
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  max-width: 56ch;
  text-shadow: 0 4px 16px rgba(4, 8, 13, 0.42);
}

.lead-tagline {
  margin-top: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cta-wrap {
  margin-top: 1.15rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-note {
  margin: 0 0 0.58rem;
  color: rgba(233, 239, 249, 0.9);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.82rem 1.12rem;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-store {
  background: rgba(216, 224, 239, 0.2);
  border-color: rgba(235, 241, 252, 0.34);
  color: rgba(238, 244, 253, 0.72);
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-store:hover {
  transform: none;
}

.btn-ghost {
  color: #f0f4fd;
  border-color: rgba(246, 249, 255, 0.56);
  background: rgba(10, 14, 21, 0.36);
}

.btn-ghost:hover {
  box-shadow: 0 8px 22px rgba(4, 8, 13, 0.26);
}

.hero-panel {
  background: linear-gradient(165deg, rgba(14, 21, 30, 0.68), rgba(14, 21, 30, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: clamp(0.9rem, 2.2vw, 1.2rem);
  backdrop-filter: blur(5px);
  box-shadow: 0 16px 36px rgba(2, 8, 16, 0.32);
}

.panel-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(239, 248, 255, 0.82);
}

.hero-panel h2 {
  margin-top: 0.1rem;
  font-size: clamp(1.12rem, 3.2vw, 1.42rem);
  line-height: 1.24;
  color: #f8fbff;
  text-wrap: balance;
}

.hero-panel .panel-intro {
  margin: 0.5rem 0 0;
  color: rgba(236, 244, 252, 0.95);
  font-size: 0.94rem;
  line-height: 1.45;
}

.trust-points {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.68rem;
}

.trust-points li {
  position: relative;
  padding: 0 0 0 1.05rem;
  color: rgba(246, 250, 255, 0.94);
  font-size: 0.92rem;
  line-height: 1.45;
}

.trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: rgba(157, 219, 75, 0.95);
  box-shadow: 0 0 0 4px rgba(157, 219, 75, 0.18);
}

.section {
  padding: clamp(2rem, 5.4vw, 3.6rem) 0;
}

.section-copy {
  max-width: 72ch;
}

.testimonial-card {
  margin-bottom: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 7px 22px rgba(8, 53, 48, 0.08);
}

.testimonial-stars {
  margin: 0;
  color: #f4b400;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.testimonial-quote {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
}

.testimonial-author {
  margin: 0.62rem 0 0;
  color: #1f7a6f;
  font-weight: 700;
}

.section-kicker {
  color: #1f7a6f;
}

h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.55rem, 5.1vw, 2.35rem);
}

.section-title-main {
  max-width: 23ch;
  text-wrap: balance;
}

.section-copy p,
.screen-copy p,
.feature-card p {
  color: var(--text-soft);
}

.feature-grid {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.8rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 7px 22px rgba(8, 53, 48, 0.08);
}

.feature-card h3 {
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0.52rem 0 0;
}

.screens {
  padding-top: 0;
}

.screen-card {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: clamp(0.9rem, 2.3vw, 1.4rem);
  box-shadow: 0 10px 30px rgba(8, 53, 48, 0.1);
}

.screen-card + .screen-card {
  margin-top: 1rem;
}

.screen-card img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(6, 60, 55, 0.13);
}

.screen-copy h2 {
  font-size: clamp(1.35rem, 4.4vw, 2rem);
}

.screen-copy p {
  margin: 0.62rem 0 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.4rem 0 2rem;
  color: #4e706a;
  font-size: 0.9rem;
}

.footer a {
  color: #1e776c;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 759px) {
  .hero-wrap::before {
    background-image: url("./assets/onboarding/onboarding-page1-long.png");
    background-position: center 35%;
    background-size: cover;
  }

  .hero-panel {
    display: none;
  }
}

@media (min-width: 760px) {
  .hero-wrap {
    min-height: 100vh;
  }

  .topbar {
    padding-top: 0.3rem;
  }

  .hero {
    padding-top: clamp(0.02rem, 0.25vh, 0.18rem);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 1.5rem;
  }

  .hero-copy {
    min-height: clamp(340px, 47vh, 430px);
  }

  .cta-wrap {
    margin-top: auto;
    padding-top: 1rem;
    align-self: center;
    width: fit-content;
    max-width: 100%;
  }

  .hero-panel {
    padding: 1.15rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-card {
    grid-template-columns: 1fr 0.95fr;
    align-items: center;
    gap: 1.2rem;
  }

  .screen-card.reverse {
    grid-template-columns: 0.95fr 1fr;
  }

  .screen-card.reverse .screen-copy {
    order: 2;
  }

  .screen-card.reverse img {
    order: 1;
  }
}
