html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

.avif-picture {
  display: contents;
}

h1,
h2,
h3,
.section-title {
  font-family: "Montserrat", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.hero-title {
  font-weight: 600;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.slider-btn {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #e6e9f0;
  border-radius: 999px;
  color: #677082;
  background: #fff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(20, 28, 57, 0.06);
}

.loader-ring {
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.phone-mockup {
  filter: drop-shadow(0 5px 6px rgba(18, 28, 80, 0.25));
}

.phone-frame {
  cursor: default;
  transition: transform 260ms ease, filter 260ms ease;
}

.phone-frame:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 14px 22px rgba(45, 54, 124, 0.2));
}

.phone-frame::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 3.8% 5.5%;
  border-radius: 12.5% / 6.5%;
  background: #000;
}

.phone-screen {
  position: absolute;
  inset: 2% 5% 2% 5%;
  z-index: 1;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.phone-track,
.phone-slide {
  width: 100%;
  height: 100%;
}

.phone-track {
  display: flex;
  transform: translateX(calc(var(--active-phone-slide, 0) * -100%));
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-slide {
  flex: 0 0 100%;
  object-fit: cover;
  opacity: 1;
  transform: none;
}

.phone-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #a7b1bf;
  transition: transform 180ms ease, background-color 180ms ease;
}

.phone-dot:hover,
.phone-dot.is-active {
  transform: scale(1.12);
  background: #2f85ff;
}

.partner-collage {
  position: relative;
  cursor: default;
}

.partner-main,
.partner-overlap {
  position: absolute;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.partner-collage:hover .partner-main {
  transform: translate(-4px, -4px) scale(1.015);
}

.partner-collage:hover .partner-overlap {
  transform: translate(5px, 4px) scale(1.035);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.2);
}

.partner-main {
  inset: 0 auto auto 0;
  width: 82%;
  height: 82%;
}

.partner-overlap {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 58%;
  border: 7px solid #fff;
}

.feature-img {
  width: 100%;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.13);
  cursor: default;
  transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
}

.feature-card {
  position: relative;
  min-height: 360px;
  padding: 36px 38px;
  border-radius: 22px;
  background: #eaf0ff;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, background-color 260ms ease;
}

.feature-card-content {
  transition: transform 300ms cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.feature-img:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(18, 30, 72, 0.18);
}

.feature-img:hover {
  filter: saturate(1.08) contrast(1.03);
}

.feature-card:hover {
  background: #e4ecff;
}

.feature-card:hover .feature-card-content {
  transform: translateY(var(--feature-center-shift, 72px));
}

.feature-card h3 {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-card p {
  font-size: 18px;
  line-height: 1.55;
}

.feature-img-1 { order: 1; }
.feature-card-1 { order: 2; }
.feature-img-2 { order: 3; }
.feature-card-2 { order: 4; }
.feature-img-3 { order: 5; }
.feature-card-3 { order: 6; }
.feature-img-4 { order: 7; }
.feature-card-4 { order: 8; }

.grow-section {
  margin-top: 16px;
}

.grow-image {
  width: min(100%, 670px);
  height: auto;
  object-fit: cover;
  border-radius: 0 38px 0 0;
  cursor: default;
  transition: transform 320ms ease, filter 320ms ease;
}

.grow-image:hover {
  transform: scale(1.01);
  filter: saturate(1.08);
}

.grow-copy {
  max-width: 610px;
}

input,
textarea {
  width: 100%;
  border-radius: 9px;
  background: #eaf0ff;
  padding-left: 24px !important;
  padding-right: 24px !important;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

input {
  height: 64px;
}

textarea {
  min-height: 142px;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7b8495;
}

input:focus,
textarea:focus {
  background: #f1f5ff;
  box-shadow: 0 0 0 3px rgba(45, 54, 124, 0.16);
}

.form-status {
  min-height: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-success {
  color: #15803d;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-visual {
  height: 520px;
  cursor: default;
}

.form-visual img {
  opacity: 1;
}

.different-grid {
  min-height: 520px;
  transition: grid-template-columns 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.difference-card {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  align-items: flex-end;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.difference-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: transform 520ms ease, filter 320ms ease;
}

.difference-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 0%, rgba(20, 20, 20, 0.18) 46%, rgba(0, 0, 0, 0.72) 100%);
  transition: background 300ms ease;
}

.difference-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.2);
}

.difference-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

.difference-card:hover::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0%, rgba(20, 20, 20, 0.12) 44%, rgba(0, 0, 0, 0.76) 100%);
}

.difference-card div {
  position: relative;
  z-index: 1;
  padding: 0 28px 54px;
}

.difference-card h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.difference-card p {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.store-badge {
  display: block;
  width: 200px;
  height: 58px;
  border-radius: 7px;
  background: #f4f5f7;
  cursor: pointer;
  object-fit: contain;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 12px rgba(18, 30, 72, 0.14));
}

.privacy-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 242, 255, 0.95) 0 120px, transparent 122px),
    radial-gradient(circle at 86% 0%, rgba(76, 122, 255, 0.42) 0 340px, transparent 342px),
    linear-gradient(180deg, #ffffff 0%, #ffffff 72%, rgba(236, 242, 255, 0.45) 100%);
  pointer-events: none;
}

.privacy-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(18, 30, 72, 0.12);
  padding: clamp(32px, 5vw, 72px);
}

.privacy-kicker {
  margin-bottom: 18px;
  color: #2d367c;
  font-size: 16px;
  font-weight: 700;
}

.privacy-panel h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
}

.privacy-lead {
  margin-top: 22px;
  max-width: 800px;
  color: #26324d;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.privacy-panel section {
  margin-top: 44px;
  border-top: 1px solid rgba(45, 54, 124, 0.12);
  padding-top: 34px;
}

.privacy-panel h2 {
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.18;
}

.privacy-panel h3 {
  margin-top: 26px;
  color: #2d367c;
  font-size: 19px;
  font-weight: 700;
}

.privacy-panel p,
.privacy-panel li {
  color: #26324d;
  font-size: 18px;
  line-height: 1.75;
}

.privacy-panel p {
  margin-top: 16px;
}

.privacy-panel ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
  list-style: disc;
}

.privacy-panel a {
  color: #2d367c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 16px;
  counter-reset: faq;
}

.faq-list > li {
  counter-increment: faq;
  list-style: none;
}

.faq-item {
  border-radius: 14px;
  background: #eaf0ff;
  box-shadow: 0 8px 18px rgba(18, 30, 72, 0.08);
  overflow: hidden;
  interpolate-size: allow-keywords;
  transition: background 220ms ease, box-shadow 220ms ease, transform 10ms ease;
}

.faq-item:hover,
.faq-item[open] {
  background: #e4ecff;
  box-shadow: 0 14px 26px rgba(18, 30, 72, 0.13);
  transform: translateY(-2px);
}

.faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  color: #111827;
  font-family: "Montserrat", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

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

.faq-item summary::before {
  content: counter(faq, decimal-leading-zero);
  color: #2d367c;
  font-size: 16px;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #2d367c;
  font-size: 22px;
  line-height: 1;
  transition: transform 220ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    block-size 260ms ease-in-out,
    opacity 220ms ease-in-out,
    content-visibility 260ms ease-in-out allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.faq-item p {
  max-height: 0;
  margin: 0 24px 0 64px;
  overflow: hidden;
  color: #26324d;
  font-size: 17px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 300ms ease-in-out,
    margin 300ms ease-in-out,
    opacity 220ms ease-in-out 70ms,
    transform 260ms ease-in-out;
}

.faq-item[open] p {
  max-height: 180px;
  margin: -4px 24px 24px 64px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item a {
  color: #2d367c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.slider-btn,
.phone-dot,
button,
a {
  cursor: pointer;
}

.primary-action {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.primary-action:hover {
  background-color: #252f76;
  box-shadow: 0 14px 24px rgba(45, 54, 124, 0.24);
  transform: translateY(-2px);
}

.primary-action:active {
  transform: translateY(0);
}

.primary-action:focus-visible {
  outline: 3px solid rgba(45, 54, 124, 0.28);
  outline-offset: 3px;
}

.app-phone {
  cursor: default;
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: minmax(120px, 0.32fr) minmax(0, 0.65fr) minmax(0, 0.65fr) minmax(120px, 0.32fr) !important;
    grid-auto-rows: 320px;
    max-width: 820px !important;
  }

  .feature-grid > * {
    grid-column: auto;
    grid-row: auto !important;
  }

  .feature-img-1 { order: 1; grid-column: 1 !important; }
  .feature-card-1 { order: 2; grid-column: 2 / span 3 !important; }
  .feature-img-2 { order: 3; grid-column: 1 !important; }
  .feature-card-2 { order: 4; grid-column: 2 / span 3 !important; }
  .feature-card-3 { order: 5; grid-column: 1 / span 3 !important; }
  .feature-img-3 { order: 6; grid-column: 4 !important; }
  .feature-card-4 { order: 7; grid-column: 1 / span 3 !important; }
  .feature-img-4 { order: 8; grid-column: 4 !important; }

  .feature-img,
  .feature-card {
    min-height: 320px;
  }

  .feature-card {
    padding: 28px 34px;
    --feature-center-shift: 76px;
  }

  .feature-card-1 {
    --feature-center-shift: 34px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 16px;
    line-height: 1.48;
  }

  .grow-section {
    margin-left: auto;
    margin-right: auto;
  }

  .different-grid:has(.difference-card:nth-child(1):hover) {
    grid-template-columns: 1.75fr 1fr 1fr;
  }

  .different-grid:has(.difference-card:nth-child(2):hover) {
    grid-template-columns: 1fr 1.75fr 1fr;
  }

  .different-grid:has(.difference-card:nth-child(3):hover) {
    grid-template-columns: 1fr 1fr 1.75fr;
  }
}

@media (min-width: 1536px) {
  .feature-grid {
    max-width: 1240px !important;
    grid-template-columns: minmax(185px, 0.32fr) minmax(0, 0.65fr) minmax(185px, 0.32fr) minmax(0, 0.65fr) !important;
  }

  .feature-img-1 { grid-column: 1 !important; }
  .feature-card-1 { grid-column: 2 !important; }
  .feature-img-2 { grid-column: 3 !important; }
  .feature-card-2 { grid-column: 4 !important; }
  .feature-card-3 { grid-column: 1 / span 2 !important; }
  .feature-img-3 { grid-column: 3 !important; }
  .feature-card-4 { grid-column: 1 / span 2 !important; }
  .feature-img-4 { grid-column: 3 !important; }

  .feature-img,
  .feature-card,
  .feature-grid {
    grid-auto-rows: 320px;
  }

  .feature-card {
    padding: 28px 30px;
  }
}

@media (min-width: 1600px) {
  .hero {
    padding-top: 84px;
    padding-bottom: 250px;
  }

  .feature-grid {
    grid-auto-rows: 340px;
  }

  .feature-img,
  .feature-card {
    min-height: 340px;
  }

  .grow-image {
    width: 700px;
  }
}

@media (max-width: 1023px) {
  .hero h1 {
    max-width: 660px;
  }

  .grow-section {
    padding: 0 18px;
  }

  .grow-image {
    width: 100%;
    border-radius: 14px;
  }

  .form-visual {
    height: 430px;
  }

  .different-grid {
    min-height: auto;
  }

  .difference-card {
    min-height: 360px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .feature-img {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }

  .feature-grid {
    max-width: 620px !important;
  }
}

@media (max-width: 639px) {
  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.55;
  }

  .feature-img {
    height: 285px;
    min-height: 285px;
    max-height: 285px;
  }

  .feature-img.hide-mobile {
    display: block;
    background: transparent;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12);
  }

  .feature-card {
    min-height: 430px;
    padding: 28px 22px;
    --feature-center-shift: 96px;
  }

  .feature-card-1 {
    --feature-center-shift: 46px;
  }

  .feature-img-1 {
    order: 1;
  }

  .feature-card-1 {
    order: 2;
  }

  .feature-img-2 {
    order: 3;
  }

  .feature-card-2 {
    order: 4;
  }

  .feature-img-3 {
    order: 5;
  }

  .feature-card-3 {
    order: 6;
  }

  .feature-img-4 {
    order: 7;
  }

  .feature-card-4 {
    order: 8;
  }

  .feature-card h3 {
    font-size: 21px;
  }

  .feature-card p {
    font-size: 17px;
  }

  .form-visual {
    height: 430px;
  }

  .different-grid {
    gap: 24px;
  }

  .difference-card {
    min-height: 335px;
    border-radius: 10px;
  }

  .difference-card div {
    padding-bottom: 34px;
  }

  .difference-card h3 {
    font-size: 22px;
  }

  .difference-card p {
    font-size: 15px;
  }

  .store-badge {
    width: 154px;
    height: 56px;
  }

  .store-badge {
    display: block;
  }
}

.feature-grid {
  grid-template-columns: 1fr !important;
}

.feature-pair {
  display: grid;
  gap: 24px;
}

.feature-pair .feature-img,
.feature-pair .feature-card {
  grid-column: auto !important;
  grid-row: auto !important;
}

@media (min-width: 1024px) {
  .feature-grid {
    max-width: 820px !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }

  .feature-pair {
    grid-template-columns: minmax(190px, 32%) minmax(0, 65%);
    gap: 28px;
  }

  .feature-pair.reverse-desktop {
    grid-template-columns: minmax(0, 65%) minmax(190px, 32%);
  }

  .feature-pair.reverse-desktop .feature-card {
    order: 1 !important;
  }

  .feature-pair.reverse-desktop .feature-img {
    order: 2 !important;
  }
}

@media (min-width: 1536px) {
  .feature-grid {
    max-width: 1240px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .feature-pair {
    grid-template-columns: minmax(160px, 32%) minmax(0, 65%);
  }

  .feature-pair.reverse-desktop {
    grid-template-columns: minmax(0, 65%) minmax(160px, 32%);
  }
}

@media (max-width: 639px) {
  .feature-pair .feature-img {
    order: 1 !important;
  }

  .feature-pair .feature-card {
    order: 2 !important;
  }
}
