/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #383838;
  background: #f2f2f2;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── NAVIGATION BAR ── Figma: px-64 py-32, 1440px, justify-between */
.hiw-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 64px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.hiw-nav-logo img {
  width: 200px;
  height: 31px;
  object-fit: cover;
}
.hiw-nav-buttons {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ── BUTTONS ── */
.hiw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
  width: 245px;
  cursor: pointer;
}
.hiw-btn-login {
  background: #e9e9e9;
  color: #838383;
}
.hiw-btn-cta {
  background: #4a90e2;
  color: #fefefe;
}

/* ── HERO ── Figma: 606px content area below nav */
.hiw-hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 606px;
  overflow: hidden;
}
.hiw-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hiw-hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.hiw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90.6deg, rgba(0,0,0,0.79) 0.22%, rgba(0,0,0,0) 99.78%);
}
.hiw-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 64px;
  height: 100%;
  max-width: 1312px;
}
.hiw-hero-top {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: flex-start;
}
.hiw-back-btn {
  display: flex;
  align-items: center;
  width: 40px;
}
.hiw-back-icon {
  width: 34px;
  height: auto;
}
.hiw-hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 48px;
  color: #fefefe;
  line-height: normal;
}
.hiw-hero-body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #f2f2f2;
  line-height: normal;
}
.hiw-hero-body p {
  margin-bottom: 0;
}
.hiw-hero-body p:last-child {
  margin-top: 1em;
}

/* ── STEP SECTIONS ── Figma: p-64, gap-48, flex row, min-height from Figma ~509-637px */
.hiw-step {
  padding: 64px;
  width: 100%;
}
.hiw-step-grey { background: #f2f2f2; }
.hiw-step-white { background: #fefefe; }

.hiw-step-inner {
  display: flex;
  gap: 48px;
  align-items: stretch;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 509px;
}
.hiw-step-reverse {
  flex-direction: row-reverse;
}

/* ── STEP TEXT ── Figma: w-532, gap-40, justify-center */
.hiw-step-text {
  flex: 0 0 532px;
  width: 532px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}
.hiw-step-text-center {
  align-items: center;
}
.hiw-step-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #383838;
  line-height: normal;
}
.hiw-step-title-center {
  text-align: center;
}

/* ── BULLET LIST ── Figma: gap-16 between items, gap-24 between bullet and text */
.hiw-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hiw-bullet-list li {
  display: flex;
  gap: 24px;
  align-items: center;
}
.hiw-bullet {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}
.hiw-bullet-list li span {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #838383;
  line-height: normal;
  flex: 1 1 0%;
  min-width: 0;
}

/* ── MOCKUP CARDS ── Figma: flex-1, rounded-16, px-40 py-32, overflow-clip */
.hiw-mockup-card {
  flex: 1 0 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
  border-radius: 16px;
  overflow: hidden;
}
.hiw-mockup-white { background: #fefefe; }
.hiw-mockup-blue { background: #dfedfa; }
.hiw-mockup-lightblue { background: #f1f7fd; }

/* The frame that clips the zoomed image — takes all remaining space */
.hiw-mockup-frame {
  position: relative;
  width: 100%;
  flex: 1 0 0%;
  min-height: 0;
  overflow: hidden;
}

/* Mockup images — absolute positioned with Figma's exact % offsets for zoom/crop */
.hiw-mockup-img {
  position: absolute;
  max-width: none;
  display: block;
}
.hiw-mockup-img-1 {
  width: 139.74%;
  height: 215.38%;
  left: -22.92%;
  top: -57.55%;
}
.hiw-mockup-img-2 {
  width: 135.56%;
  height: 209.82%;
  left: -14.36%;
  top: -55.04%;
}
.hiw-mockup-img-3 {
  width: 146.1%;
  height: 221.15%;
  left: -26.51%;
  top: -60.81%;
}
.hiw-mockup-img-4 {
  width: 144.72%;
  height: 197.66%;
  left: -17.69%;
  top: -50.09%;
}

/* ── BOTTOM CTA ── Figma: flex-1, p-64, image overlay */
.hiw-bottom-cta {
  position: relative;
  width: 100%;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
}
.hiw-bottom-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hiw-bottom-cta-img {
  position: absolute;
  width: 100.14%;
  height: 166.86%;
  left: -0.09%;
  top: -23%;
  max-width: none;
  object-fit: cover;
}
.hiw-bottom-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(89.84deg, rgba(0,0,0,0.7) 0%, rgba(255,255,255,0.154) 99.94%);
}
.hiw-bottom-cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  flex: 1 0 0%;
  max-width: 1312px;
}
.hiw-bottom-cta-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #f2f2f2;
  line-height: normal;
}
.hiw-bottom-cta-body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #f2f2f2;
  line-height: normal;
}

/* ── OVERRIDES for Bootstrap/theme that conflict with our page ── */
body { padding-top: 0 !important; margin-top: 0 !important; }
.footer-top.dark-bg { display: none; }

.hiw-hero-title {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 500 !important;
  font-size: 48px !important;
  color: #fefefe !important;
  line-height: normal !important;
  text-transform: none !important;
  margin: 0 !important;
}
.hiw-step-title {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 600 !important;
  font-size: 40px !important;
  color: #383838 !important;
  line-height: normal !important;
  text-transform: none !important;
  margin: 0 !important;
}
.hiw-bottom-cta-title {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 600 !important;
  font-size: 40px !important;
  color: #f2f2f2 !important;
  line-height: normal !important;
  text-transform: none !important;
  margin: 0 !important;
}
.hiw-hero-body p,
.hiw-bottom-cta-body {
  margin-bottom: 0 !important;
}
.hiw-hero-body p:last-child {
  margin-top: 1em !important;
}
.hiw-btn {
  text-decoration: none !important;
  color: inherit;
}
.hiw-btn-login {
  color: #838383 !important;
}
.hiw-btn-cta {
  color: #fefefe !important;
}
.hiw-nav img,
.hiw-step img,
.hiw-hero img,
.hiw-bottom-cta img { display: block; }
.hiw-mockup-img { max-width: none !important; }
.hiw-hero-img { max-width: none !important; }
.hiw-bottom-cta-img { max-width: none !important; }
.hiw-bullet-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.hiw-bullet-list li { list-style: none !important; }

/* ── MOBILE ELEMENTS (hidden on desktop) ── */
.hiw-hero-mobile-img,
.hiw-bottom-cta-mobile-img,
.hiw-mobile-nav,
.hiw-mobile-menu { display: none; }

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE STYLES (max-width: 768px) — Figma mobile design at 390px
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── HIDE DESKTOP HEADER, SHOW MOBILE NAV ── */
  .hiw-desktop-header {
    display: none !important;
  }
  .hiw-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f2f2f2;
  }
  .hiw-mobile-logo img {
    width: 142px;
    height: 22px;
    object-fit: contain;
  }
  .hiw-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .hiw-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #999;
    border-radius: 1px;
  }
  
  /* ── MOBILE DROPDOWN MENU ── */
  .hiw-mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
    padding: 16px;
    gap: 16px;
  }
  .hiw-mobile-menu.open {
    display: flex;
  }
  .hiw-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #838383;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .hiw-mobile-menu-item:hover {
    background: #f2f2f2;
  }
  .hiw-mobile-menu-item i {
    font-size: 22px;
    width: 24px;
    text-align: center;
  }

  /* ── HERO MOBILE ── */
  .hiw-hero {
    height: auto !important;
    min-height: auto !important;
    overflow: visible;
  }
  .hiw-hero-bg {
    display: none;
  }
  .hiw-hero-content {
    padding: 40px 16px;
    gap: 32px;
    max-width: 100%;
  }
  .hiw-hero-top {
    gap: 48px;
  }
  .hiw-hero-title {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #383838 !important;
  }
  .hiw-hero-body {
    font-size: 20px;
    color: #838383;
  }
  .hiw-hero-body p:last-child {
    margin-top: 0 !important;
  }
  .hiw-hero-mobile-img {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    flex: 1 0 300px;
    min-height: 300px;
  }
  .hiw-hero-mobile-img img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 16px;
  }

  /* ── STEPS MOBILE ── */
  .hiw-step {
    padding: 32px 16px;
  }
  .hiw-step-inner {
    flex-direction: column;
    gap: 32px;
    min-height: auto;
  }
  .hiw-step-text {
    flex: 0 0 auto;
    width: 100%;
    gap: 40px;
    order: 1;
  }
  .hiw-step-text-center {
    align-items: flex-start;
  }
  .hiw-step-title {
    font-size: 32px !important;
    text-align: left !important;
  }
  .hiw-step-title-center {
    text-align: left !important;
  }
  .hiw-bullet-list li {
    gap: 16px;
  }
  .hiw-bullet-list li span {
    font-size: 18px;
  }
  .hiw-mockup-card {
    flex: 0 0 auto;
    width: 100%;
    height: 284px;
    min-height: 284px;
    order: 2;
  }

  /* ── STEP 4 BUTTON FULL WIDTH ── */
  .hiw-btn-step {
    width: 100% !important;
  }

  /* ── BOTTOM CTA MOBILE ── */
  .hiw-bottom-cta {
    min-height: auto;
    padding: 32px 16px;
    background: #f2f2f2;
  }
  .hiw-bottom-cta-bg {
    display: none;
  }
  .hiw-bottom-cta-content {
    position: static;
    gap: 32px;
  }
  .hiw-bottom-cta-title {
    font-size: 32px !important;
    color: #383838 !important;
  }
  .hiw-bottom-cta-body {
    font-size: 18px;
    color: #838383;
    margin-bottom: 32px !important;
  }
  .hiw-btn-desktop {
    display: none;
  }
  .hiw-bottom-cta-mobile-img {
    display: block;
    width: 100%;
    flex: 1 0 400px;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
  }
  .hiw-bottom-cta-mobile-img img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 16px;
  }
}

