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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: clip;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #292524;
  background: #faf7f4;
  line-height: 1.5;
}

img {
  display: block;
}

button,
a {
  font-family: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

.page {
  width: 100%;
  background: #faf7f4;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.logo span {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.45px;
  color: #000;
}

.logo--light span {
  color: #fff;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  padding: 24px 20px;
  background: #faf7f4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header__link {
  font-size: 19.2px;
  font-weight: 500;
  line-height: 28.8px;
  color: #292524;
}

.header__link--active {
  font-weight: 700;
  color: #b94828;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  background: #3730a3;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.header__cta--drawer,
.header__toggle,
.nav-backdrop {
  display: none;
}

.header__toggle {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.header__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #292524;
}

.hero {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 584px;
  padding: 0 20px;
  gap: 24px;
}

.hero__copy {
  flex: 1 1 620px;
  min-width: 0;
  padding: 72px 24px 24px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow span:first-child {
  font-size: 21px;
  font-weight: 700;
  line-height: 31.5px;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: #b94828;
}

.eyebrow__bar {
  width: 72px;
  height: 3px;
  background: #b94828;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 30px;
  font-size: 54px;
  font-weight: 700;
  line-height: 67.5px;
  letter-spacing: -1.35px;
  color: #3730a3;
}

.hero__desc {
  max-width: 635px;
  margin-bottom: 48px;
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  color: #6b5b53;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.btn-primary {
  padding: 18px 42px;
  background: #3730a3;
  color: #fff;
}

.btn-secondary {
  padding: 16.5px 40.5px;
  border: 1.5px solid #3730a3;
  background: #fff;
  color: #3730a3;
}

.hero__visual {
  position: relative;
  flex: 1 1 560px;
  min-width: 0;
  min-height: 560px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero__glow {
  position: absolute;
  top: 10px;
  right: -22px;
  width: 340px;
  height: 340px;
  border-radius: 9999px;
  background: #f3ddd0;
  filter: blur(1px);
  opacity: 0.7;
}

.hero__shape {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(687px, 100%);
  height: 360px;
  object-fit: contain;
  object-position: right bottom;
}

.phone {
  position: relative;
  z-index: 1;
  width: 252px;
  height: 497px;
  margin-top: 40px;
  margin-right: 6%;
  flex-shrink: 0;
}

.phone__screen {
  position: absolute;
  left: 6%;
  top: 2%;
  width: 88%;
  height: 96%;
  object-fit: cover;
  border-radius: 31px;
}

.phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}

.story {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 472px;
  padding: 19px 20px;
  gap: 48px;
}

.story__photo {
  flex: 1 1 596px;
  width: 100%;
  height: 434px;
  min-width: 0;
  object-fit: cover;
  border-radius: 0 180px 180px 0;
}

.story__copy {
  flex: 1 1 453px;
  min-width: 0;
  max-width: 560px;
}

.story h2,
.features h2,
.how h2 {
  font-size: 36px;
  font-weight: 700;
}

.story h2 {
  line-height: 38px;
  color: #292524;
}

.story__bar {
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px 0 24px;
  background: #b94828;
}

.story p {
  max-width: 453px;
  font-size: 18px;
  line-height: 26px;
  color: #6b5b53;
}

.story p + p {
  margin-top: 8px;
}

.features {
  width: 100%;
  padding: 56px 24px 56px;
  background: #f9eae4;
}

.features h2,
.how h2 {
  line-height: 32px;
  text-align: center;
  color: #3730a3;
}

.features h2 {
  margin-bottom: 40px;
}

.features__grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.card {
  display: flex;
  flex: 1 1 0;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 25px;
  border: 1px solid #e5ddd7;
  border-radius: 16px;
  background: #fff;
}

.card__icon,
.support__chat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f8ede7;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 25.2px;
  color: #292524;
}

.card p {
  font-size: 14px;
  line-height: 19.25px;
  color: #6b5b53;
}

.how {
  width: 100%;
  padding: 56px 20px 32px;
  scroll-margin-top: 100px;
}

.how h2 {
  margin-bottom: 48px;
}

.how__steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
}

.how__line {
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #e5ddd7;
}

.step {
  position: relative;
  flex: 1 1 210px;
  max-width: 280px;
  text-align: center;
}

.step__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #f8ede7;
}

.step__badge {
  position: absolute;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #b94828;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #292524;
}

.step p {
  font-size: 14px;
  line-height: 21px;
  color: #6b5b53;
}

.how__note {
  margin-top: 48px;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
  color: #756a64;
}

.support {
  width: 100%;
  padding: 32px 20px;
}

.support__card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 114px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid rgba(229, 221, 215, 0.5);
  border-radius: 16px;
  background: #f8ede7;
}

.support__wash,
.support__accent {
  position: absolute;
  right: 0;
  bottom: 0;
  border-radius: 9999px 0 0 0;
}

.support__wash {
  width: 192px;
  height: 112px;
  background: #f0d5c7;
  opacity: 0.6;
}

.support__accent {
  width: 144px;
  height: 80px;
  background: #3730a3;
}

.support__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}

.support__chat {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #fff;
}

.support__rule {
  width: 1px;
  height: 48px;
  background: #b94828;
}

.support h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 31.92px;
  color: #3730a3;
}

.support p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
  color: #6b5b53;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 40px);
  margin: 32px 20px 0;
  padding: 24px 40px;
  border-radius: 12px 12px 0 0;
  background: #2b247f;
  gap: 24px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 33px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 21px;
}

.footer__sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  line-height: 24px;
}

.footer__email {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 21px;
  text-align: right;
  color: #fff;
}

.footer__email span {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 769px) and (max-width: 1279px) {
  .hero {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 54px;
  }

  .hero__desc,
  .btn-primary,
  .btn-secondary {
    font-size: 20px;
    line-height: 30px;
  }

  .hero__visual {
    min-height: 460px;
  }

  .phone {
    width: 210px;
    height: 414px;
    margin-right: 0;
  }

  .story {
    min-height: 0;
  }

  .story__photo {
    height: 320px;
  }

  .card p br,
  .step p br {
    display: none;
  }
}

@media (min-width: 1280px) {
  .page,
  .header,
  .hero,
  .story,
  .features,
  .how,
  .support {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  .header {
    height: 76px;
    padding: 12px 16px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: min(320px, 86vw);
    height: 100%;
    padding: 96px 24px 32px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  body.nav-open .header__nav {
    transform: translateX(0);
  }

  .header__cta--bar {
    display: none;
  }

  .header__cta--drawer {
    display: inline-flex;
  }

  .header__toggle {
    display: flex;
    position: relative;
    z-index: 130;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(41, 37, 36, 0.4);
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  .hero,
  .story,
  .features__grid,
  .how__steps,
  .support__body,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: 0;
    padding: 32px 16px 24px;
    align-items: stretch;
  }

  .hero__copy {
    padding-right: 0;
  }

  .eyebrow {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .eyebrow span:first-child {
    flex: 1 0 100%;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .hero__desc {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 28px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 18px;
    line-height: 28px;
  }

  .hero__visual {
    min-height: 420px;
    justify-content: center;
  }

  .hero__shape {
    height: 220px;
  }

  .phone {
    margin-right: 0;
  }

  .story {
    min-height: 0;
    padding: 24px 16px;
    gap: 24px;
  }

  .story__photo {
    height: 280px;
    border-radius: 24px 120px 120px 24px;
  }

  .features,
  .how,
  .support {
    padding-left: 16px;
    padding-right: 16px;
  }

  .features h2,
  .how h2,
  .story h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .card p br,
  .step p br {
    display: none;
  }

  .how__line {
    display: none;
  }

  .how__steps {
    align-items: center;
    padding: 0;
  }

  .step {
    max-width: 320px;
  }

  .support__card {
    padding: 24px 20px;
  }

  .support__wash,
  .support__accent {
    opacity: 0.35;
  }

  .footer {
    width: calc(100% - 32px);
    margin: 24px 16px 0;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .footer__links {
    flex-wrap: wrap;
    padding: 0;
    border: 0;
  }

  .footer__email {
    text-align: left;
  }
}
