/* ==========================================================================
   SLYNUMBER homepage — built from Figma "SLYNUMBER Website" (node 0-1)
   Loaded after webflow base styles. All page-specific styles are prefixed
   `hp-` to avoid clashing with the shared header/footer Webflow classes.
   Design tokens:
     Primary accent #7045f0 · Light accent #efeaff · Stroke gray #b7b7b7
     Heading gradient 90deg #7248f1 → #836ef9 47% → #ad87ff
     Type: Montserrat (loaded globally via critical-css)
   ========================================================================== */

:root {
  --hp-accent: #7045f0;
  --hp-accent-light: #efeaff;
  --hp-stroke: #b7b7b7;
  --hp-ink: #000;
  --hp-muted: #747785;
  --hp-muted-2: #6f7180;
  --hp-page-bg: #f3f3f3;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.hp-page {
  background: var(--hp-page-bg);
  color: var(--hp-ink);
  font-family: Montserrat, 'Montserrat Fallback', sans-serif;
  overflow: hidden;
}

.hp-container {
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hp-section { padding: 56px 0; }

/* Shared typography ------------------------------------------------------- */
.hp-h1 {
  margin: 0;
  font-size: 72px;
  font-weight: 800;
  line-height: 79px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}
.hp-h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 53px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}
.hp-center { text-align: center; }

.hp-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: -0.02em;
  color: var(--hp-muted);
}
.hp-body {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: -0.02em;
  color: var(--hp-muted);
}

/* Gradient text — matches the Figma heading gradient */
.hp-gradient {
  background-image: linear-gradient(90deg, #7248f1, #836ef9 47%, #ad87ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hp-hero { padding-top: 140px; padding-bottom: 24px; }

.hp-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 40px;
}
.hp-hero-text .hp-h1 { max-width: 760px; }
.hp-hero-text .hp-lead { max-width: 650px; }

/* Tabs -------------------------------------------------------------------- */
.hp-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 12px 0 28px;
}
.hp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 50px;
  padding: 10px 24px;
  border: 0.5px solid var(--hp-stroke);
  border-radius: 29px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
  transition: background-color .2s, border-color .2s;
}
.hp-tab-btn .hp-tab-icon { width: 24px; height: 24px; }
.hp-tab-btn span { padding-left: 8px; line-height: 30px; }
.hp-tab-btn:hover { border-color: var(--hp-accent); }
.hp-tab-btn.is-active {
  background: var(--hp-accent-light);
  border-color: var(--hp-accent);
}

/* Tab panels — background photo with overlaid glass form ------------------ */
.hp-tab-panels { position: relative; }
.hp-tab-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1141 / 628;
  border-radius: 40px;
  overflow: hidden;
}
.hp-tab-panel[hidden] { display: none; }
.hp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glass "Get started today" form */
.hp-hero-form {
  position: absolute;
  right: 17px;
  bottom: 14px;
  width: 490px;
  max-width: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 35px 29px 34px;
  border: 0.5px solid #fff;
  border-radius: 35px;
  background: linear-gradient(180deg, rgba(24,24,24,0.85), rgba(51,51,54,0.85));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hp-form-title {
  margin: 0;
  width: 100%;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.04em;
  color: #fff;
}
.hp-form-fields {
  display: flex;
  gap: 28px;
  width: 100%;
}
.hp-field { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.hp-field-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: #fff;
}
.hp-input {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: var(--hp-muted-2);
}
.hp-input-select { justify-content: space-between; }
.hp-input-select svg { flex: none; }

.hp-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.hp-btn-primary,
.hp-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-align: center;
}
.hp-btn-primary {
  background: var(--hp-accent);
  color: #fff;
  border-radius: 31px;
}
.hp-btn-primary:hover { background: #5e36d6; }
.hp-btn-outline {
  background: #fff;
  color: #000;
  border: 0.5px solid #000;
  border-radius: 42px;
}
.hp-btn-outline:hover { background: #f3f3f3; }
.hp-or {
  font-size: 16px;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: var(--hp-stroke);
}

.hp-hero-footnote {
  max-width: 700px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: -0.02em;
  color: var(--hp-muted);
}

/* --------------------------------------------------------------------------
   SPLIT SECTIONS (2 & 5)
   -------------------------------------------------------------------------- */
.hp-split-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hp-split-reverse { grid-template-columns: auto 1fr; }
.hp-split-text { display: flex; flex-direction: column; gap: 28px; }
.hp-split-text .hp-h2 { max-width: 550px; }
.hp-split-text .hp-body { max-width: 600px; }

.hp-feature-card {
  background: #fff;
  border: 0.5px solid var(--hp-stroke);
  border-radius: 21px;
  padding: 18px 14px;
}
.hp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 466px;
  max-width: 100%;
}
.hp-feature-row {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 59px;
  padding: 0 20px;
}
.hp-feature-icon { flex: none; }
.hp-feature-row span {
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}

/* --------------------------------------------------------------------------
   SECTION 3 — Why-choose slider
   -------------------------------------------------------------------------- */
.hp-slider-section .hp-h2 { margin-bottom: 35px; }
.hp-slider { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hp-slider-viewport { width: 100%; overflow: hidden; }
.hp-slider-track {
  display: flex;
  transition: transform .45s ease;
}
.hp-slide {
  flex: 0 0 100%;
  display: flex;
  gap: 35px;
  align-items: stretch;
}
.hp-slide-text,
.hp-slide-img {
  flex: 1 1 0;
  height: 432px;
  border-radius: 30px;
}
.hp-slide-text {
  background: #fff;
  border: 0.2px solid #000;
  padding: 18px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hp-slide-eyebrow {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 31px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}
.hp-slide-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}
.hp-slide-link {
  font-size: 18px;
  line-height: 31px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
  text-decoration: none;
}
.hp-slide-link:hover { color: var(--hp-accent); }
.hp-slide-img { overflow: hidden; }
.hp-slide-img img { width: 100%; height: 100%; object-fit: cover; }

.hp-slider-buttons { display: flex; gap: 19px; padding: 8px; }
.hp-slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 0.2px solid var(--hp-stroke);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.hp-slider-btn:hover { background: #f3f3f3; }

/* --------------------------------------------------------------------------
   SECTION 4 — More than a number (grid of cards)
   -------------------------------------------------------------------------- */
.hp-more-card {
  background: var(--hp-accent-light);
  border: 0.2px solid var(--hp-stroke);
  border-radius: 30px;
  padding: 60px 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}
.hp-more-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  text-align: center;
}
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px 28px;
  width: 100%;
  max-width: 997px;
}
.hp-grid-card {
  background: #fff;
  border: 0.5px solid var(--hp-stroke);
  border-radius: 20px;
  padding: 28px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.hp-grid-icon { width: 45px; height: 45px; }
.hp-grid-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 31px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
  max-width: 216px;
}
.hp-grid-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: var(--hp-muted-2);
  max-width: 310px;
}

/* --------------------------------------------------------------------------
   SECTION 6 — Your life crosses borders (image banner)
   -------------------------------------------------------------------------- */
.hp-banner {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 1144 / 514;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 35px 38px;
}
.hp-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-banner-text {
  position: relative;
  width: 627px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  text-align: right;
  color: #fff;
}
.hp-banner-h2 { color: #fff; }
.hp-banner-body {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: -0.02em;
  color: #fff;
}

/* --------------------------------------------------------------------------
   CTA — Your number without borders
   -------------------------------------------------------------------------- */
.hp-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.hp-cta-badge {
  width: 131px;
  height: 131px;
  border-radius: 28px;
  box-shadow: 0 4px 4px rgba(0,0,0,.25);
}
.hp-cta-text { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.hp-cta-title {
  margin: 0;
  font-size: 72px;
  font-weight: 800;
  line-height: 79px;
  letter-spacing: -0.04em;
  color: var(--hp-ink);
}
.hp-cta-text .hp-body { max-width: 594px; }
.hp-cta-buttons { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.hp-store-btn { display: inline-flex; text-decoration: none; }
.hp-store-btn img { height: 56px; width: auto; }

/* ==========================================================================
   TABLET  (≤ 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {
  .hp-h1, .hp-cta-title { font-size: 56px; line-height: 62px; }
  .hp-h2 { font-size: 40px; line-height: 46px; }

  .hp-hero { padding-top: 120px; }

  /* Tabs wrap to 2×2 */
  .hp-tab-buttons { max-width: 560px; margin: 0 auto; }

  /* Split sections stack: text first, card second (both reading orders) */
  .hp-split-grid,
  .hp-split-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
  .hp-split-text { align-items: center; }
  .hp-split-reverse .hp-split-text { order: -1; }
  .hp-split-text .hp-h2,
  .hp-split-text .hp-body { max-width: 600px; }

  /* Grid → 2 columns */
  .hp-grid { grid-template-columns: repeat(2, 1fr); }

  /* Slider → single card per slide */
  .hp-slide { gap: 24px; }
  .hp-slide-text, .hp-slide-img { height: 380px; }
}

/* ==========================================================================
   MOBILE  (≤ 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .hp-container { padding-left: 16px; padding-right: 16px; }
  .hp-section { padding: 40px 0; }

  .hp-h1, .hp-cta-title { font-size: 40px; line-height: 46px; }
  .hp-h2 { font-size: 32px; line-height: 38px; }
  .hp-slide-title { font-size: 24px; line-height: 28px; }
  .hp-lead, .hp-body, .hp-hero-footnote, .hp-banner-body { font-size: 16px; line-height: 28px; }

  .hp-hero { padding-top: 110px; }
  .hp-hero-footnote { margin-top: 36px; }

  /* Hero: image on top, form as a separate card beneath (per Figma mobile) */
  .hp-tab-panel {
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hp-hero-img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 349 / 312;
    border-radius: 20px;
  }
  .hp-hero-form {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }
  .hp-form-fields { flex-direction: column; gap: 16px; }

  /* Tabs: equal-size 2×2 grid on mobile (matches Figma) */
  .hp-tab-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
  }
  .hp-tab-btn {
    width: 100%;
    height: auto;
    min-height: 50px;
    padding: 8px 10px;
    justify-content: center;
    text-align: center;
  }
  .hp-tab-btn span { line-height: 1.25; }

  /* Split feature lists: full width, left-aligned (sections 2 & 5) */
  .hp-feature-list { width: 100%; }
  .hp-feature-row {
    padding: 0 8px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  /* Grid → single column */
  .hp-grid { grid-template-columns: 1fr; }
  .hp-more-card { padding: 40px 16px 24px; }

  /* Slider: stack text above image */
  .hp-slide { flex-direction: column; gap: 16px; }
  .hp-slide-text, .hp-slide-img { height: auto; flex: none; width: 100%; }
  .hp-slide-text { gap: 24px; }
  .hp-slide-img { aspect-ratio: 16 / 11; }

  /* Banner: text left-aligned, taller crop for legibility */
  .hp-banner {
    aspect-ratio: auto;
    min-height: 420px;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px 20px;
  }
  .hp-banner-text { width: 100%; align-items: flex-start; text-align: left; }

  .hp-store-btn img { height: 48px; }
}

/* ==========================================================================
   SMALL MOBILE  (≤ 479px)
   ========================================================================== */
@media screen and (max-width: 479px) {
  .hp-h1, .hp-cta-title { font-size: 34px; line-height: 40px; }
  .hp-tab-btn { padding: 8px 6px; font-size: 14px; }
  .hp-tab-btn span { padding-left: 6px; }
}
