:root {
  --blue: #036ded;
  --blue-dark: #0451d1;
  --ink: #222222;
  --muted: #777777;
  --light: #f7f8f9;
  --dark: #151619;
  --line: #f0f0f0;
  --white: #ffffff;
  --max: 1170px;
  --font-head: "Poppins", Arial, sans-serif;
  --font-body: "Raleway", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 30px));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 30px));
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

.logo img {
  width: 160px;
  height: auto;
}

.logo-dark {
  display: none;
}

.site-header.is-scrolled .logo-light {
  display: none;
}

.site-header.is-scrolled .logo-dark {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.site-header.is-scrolled .main-nav a {
  color: #313131;
}

.main-nav a:hover {
  color: var(--blue);
}

.btn-nav {
  min-width: 80px;
  padding: 4px 20px 3px !important;
  border: 2px solid var(--white) !important;
  background: var(--white) !important;
  color: #222 !important;
  border-radius: 30px !important;
  font-size: 13px !important;
}

.site-header.is-scrolled .btn-nav {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: 0.2s ease;
}

.site-header.is-scrolled .nav-toggle span {
  background: #222;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 163px;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-white {
  background: var(--white);
  border-color: var(--white);
  color: #222;
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-lg {
  min-width: 199px;
  padding: 15px 28px 13px;
}

.btn-outline {
  background: var(--white);
  border-color: #e5e5e5;
  color: #222;
}

.btn-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: var(--blue) url("assets/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 109, 237, 0.55);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(var(--max), calc(100% - 30px));
  margin-inline: auto;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.15fr;
  }
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.25;
  color: var(--white);
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 26px;
}

.hero-visual {
  display: none;
}

@media (min-width: 992px) {
  .hero-visual {
    display: block;
  }

  .hero-visual img {
    width: 125%;
    max-width: none;
    margin-left: -5%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
  }
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-muted {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
  padding: 100px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head.center,
.center {
  text-align: center;
}

.section h2,
.section-head h2,
.split-copy h2,
.dark-block h2 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.3;
  color: var(--blue);
}

.section-dark h2,
.dark-block h2 {
  color: var(--white);
  font-size: 28px;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.3px;
  font-weight: 400;
}

.section-dark .sub,
.dark-block p {
  color: #b7b7b7;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
}

.feature-item {
  text-align: center;
  padding: 10px 8px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 34px;
}

.feature-item h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

/* Split */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-copy p {
  color: #555;
  margin: 0 0 18px;
}

.split-copy .sub {
  margin-bottom: 18px;
}

.split-media {
  display: flex;
  justify-content: center;
}

.split-media img {
  max-width: 320px;
}

/* Dark showcase */
.dark-grid {
  display: grid;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .dark-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.dark-block + .dark-block {
  margin-top: 42px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #cfcfcf;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.phone-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.phone-frame {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 9 / 17;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.phone-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.phone-frame img[active] {
  opacity: 1;
}

.carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.carousel-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Onboarding */
.onboard-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 36px;
}

@media (min-width: 700px) {
  .onboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .onboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.onboard-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--light);
  border-radius: 8px;
}

.onboard-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}

.onboard-step h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
}

.onboard-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

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

/* Download / subscribe */
.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badges img {
  height: 54px;
  width: auto;
}

.subscribe {
  border-top: 1px solid var(--line);
  padding-top: 70px;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.subscribe-form input {
  width: min(360px, 100%);
  height: 54px;
  padding: 15px 25px;
  border: 1px solid #ececec;
  border-radius: 30px;
  background: #fcfcfc;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--blue);
}

/* Footer */
.site-footer {
  background: var(--dark);
  padding: 40px 0;
  color: #aaa;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  width: 140px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-links a {
  color: #cfcfcf;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0;
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 4px;
  z-index: 90;
}

.back-top.is-visible {
  display: inline-flex;
}

.back-top:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* Onboard page */
.page-onboard .hero-compact {
  min-height: auto;
  padding: 140px 0 70px;
}

.page-onboard .hero-compact .hero-visual {
  display: none;
}

.need-list,
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.need-list {
  display: grid;
  gap: 18px;
}

@media (min-width: 800px) {
  .need-list {
    grid-template-columns: 1fr 1fr;
  }
}

.need-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--light);
  border-radius: 8px;
}

.need-list span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

.need-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-head);
}

.need-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-list .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid #ececec;
}

.step-list .step:last-child {
  border-bottom: 1px solid #ececec;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 109, 237, 0.1);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 600;
}

.step h3 {
  margin: 4px 0 8px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
}

.step p {
  margin: 0 0 10px;
  color: var(--muted);
}

.step ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.faq details {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 0 18px;
  margin-bottom: 10px;
  background: var(--light);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Mobile nav */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
    z-index: 110;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    padding: 100px 28px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: #0f1722;
    transform: translateX(105%);
    transition: transform 0.3s ease;
  }

  .main-nav.is-open {
    transform: none;
  }

  .main-nav a,
  .site-header.is-scrolled .main-nav a {
    color: var(--white);
    font-size: 16px;
  }

  .btn-nav,
  .site-header.is-scrolled .btn-nav {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: var(--white) !important;
  }
}
