/* Scoped marketing page styles. Homepage CSS and Nadia remain untouched. */
body:has(.hiw) {
  background: #f8faf9;
  color: #152019;
}
body:has(.hiw) > main.w {
  max-width: none;
  width: 100%;
  padding: 0 !important;
  min-height: 0 !important;
}
body:has(.hiw) > footer {
  margin-top: 0;
}
.hiw,
.hiw-header {
  font-family: Inter, Arial, sans-serif;
}
.hiw {
  --green: #00ef59;
  --dark: #111b15;
  --muted: #65756a;
  --line: #dfe8e1;
  max-width: 100%;
  overflow: hidden;
}
.hiw * {
  box-sizing: border-box;
}
.hiw h1,
.hiw h2,
.hiw h3,
.hiw p {
  margin-top: 0;
}
.hiw h1,
.hiw h2,
.hiw h3 {
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: -0.045em;
}
.hiw-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5ece7;
}
.hiw-header-inner {
  max-width: 1240px;
  padding: 0 28px;
  margin: auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hiw-brand {
  font-weight: 900;
  font-size: 1.35rem;
  color: #102015;
  text-decoration: none;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.hiw-brand span,
.hiw-phone-brand span {
  color: #05ad49;
}
.hiw-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hiw-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #35463b;
  text-decoration: none;
  white-space: nowrap;
}
.hiw-nav a.active,
.hiw-nav a:hover {
  color: #079643;
}
.hiw-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hiw-account {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  text-decoration: none;
  background: #10251a;
  color: white !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}
.hiw-menu-button {
  display: none;
  background: #f2f7f3;
  border: 1px solid #dce7df;
  border-radius: 12px;
  padding: 10px 13px;
  color: #10251a;
  font-size: 20px;
  cursor: pointer;
}
.hiw-mobile-nav {
  display: none;
}
.hiw-hero {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 30px;
  min-height: 660px;
  padding: 80px 28px 92px;
  align-items: center;
}
.hiw-hero-copy {
  max-width: 590px;
}
.hiw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #087f3b;
}
.hiw-dot,
.hiw-status-dot {
  display: inline-block;
  background: #0dc65a;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hiw-hero h1 {
  font-size: clamp(2.7rem, 4.6vw, 4.8rem);
  line-height: 1.07;
  margin: 20px 0;
}
.hiw h1 em,
.hiw h2 em {
  color: #079b45;
  font-style: normal;
}
.hiw-lead {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 29px;
}
.hiw-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.hiw-step {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 17px;
  box-shadow: 0 5px 16px rgba(15, 40, 22, 0.025);
}
.hiw-step-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #e8f8ee;
  color: #087b38;
  font-weight: 800;
  font-size: 0.82rem;
}
.hiw-step > div {
  flex: 1;
}
.hiw-step h2 {
  font-size: 0.98rem;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.hiw-step p {
  color: #728177;
  font-size: 0.79rem;
  line-height: 1.5;
  margin: 0;
}
.hiw-step-arrow {
  color: #83968a;
  font-size: 1.2rem;
}
.hiw-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 999px;
  padding: 15px 24px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.87rem;
  transition: transform 0.2s ease;
}
.hiw-button:hover {
  transform: translateY(-2px);
}
.hiw-button-green {
  background: var(--green);
  color: #0e2015 !important;
}
.hiw-button-outline {
  border: 1px solid #6d8775;
  color: #fff !important;
}
.hiw-mini-note {
  font-size: 0.75rem;
  color: #809086;
  margin: 13px 0 0;
}
.hiw-visual {
  position: relative;
  min-height: 565px;
  background: radial-gradient(
    circle at 52% 45%,
    #dcf4e5 0%,
    #eaf6ee 40%,
    #f1f7f3 75%
  );
  border: 1px solid #e0eee4;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
}
.hiw-visual:after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 85%;
  height: 13%;
  background: rgba(10, 60, 25, 0.12);
  filter: blur(28px);
  border-radius: 50%;
  z-index: -1;
}
.hiw-visual-label {
  position: absolute;
  top: 29px;
  left: 30px;
  color: #3d7653;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.hiw-car {
  position: absolute;
  top: 18%;
  left: -6%;
  width: 103%;
  height: 55%;
  object-fit: contain;
  filter: drop-shadow(0 25px 22px rgba(8, 34, 14, 0.16));
  animation: hiw-float 6s ease-in-out infinite;
  visibility: hidden;
}
.hiw-visual-bottom {
  position: absolute;
  bottom: 22px;
  left: 30px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: #497657;
  font-weight: 800;
}
.hiw-phone {
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: 43%;
  max-width: 238px;
  min-height: 330px;
  border: 8px solid #14241b;
  border-radius: 30px;
  background: #14241b;
  box-shadow: 0 25px 50px rgba(10, 35, 18, 0.27);
  transform: rotate(7deg);
  overflow: hidden;
}
.hiw-phone-top {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.hiw-phone-brand {
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
}
.hiw-phone-circle {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ee56b;
}
.hiw-phone-screen {
  height: 100%;
  min-height: 295px;
  border-radius: 16px;
  background: #f8fbf9;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hiw-phone-overline {
  font-size: 0.52rem;
  color: #118846;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.hiw-phone-screen > strong {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.hiw-phone-car {
  background: #e5f3e9;
  border-radius: 12px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-phone-car img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
}
.hiw-phone-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 800;
}
.hiw-phone-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hiw-phone-info small {
  color: #7d8c80;
  font-size: 0.51rem;
}
.hiw-phone-info b {
  font-size: 0.7rem;
}
.hiw-phone-cta {
  background: #00d94c;
  color: #0b2716;
  text-align: center;
  border-radius: 999px;
  padding: 9px 6px;
  font-size: 0.61rem;
  font-weight: 800;
  margin-top: auto;
}
.hiw-section {
  padding: 85px max(28px, calc((100vw - 1184px) / 2));
}
.hiw-section-heading {
  max-width: 650px;
  margin-bottom: 32px;
}
.hiw-section h2 {
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  line-height: 1.16;
  margin: 15px 0;
}
.hiw-section p {
  line-height: 1.75;
  color: #6d7c72;
}
.hiw-event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hiw-event {
  border: 1px solid #dfe8e1;
  border-radius: 22px;
  background: #fff;
  padding: 32px;
  min-height: 245px;
}
.hiw-event-top {
  display: flex;
  justify-content: space-between;
  color: #0b9a47;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}
.hiw-event-symbol {
  font-size: 1.5rem;
  letter-spacing: 0;
}
.hiw-event h3 {
  font-size: 1.55rem;
  margin: 24px 0 10px;
}
.hiw-event p {
  font-size: 0.91rem;
  max-width: 420px;
}
.hiw-event strong {
  color: #128846;
  font-size: 0.9rem;
}
.hiw-winners {
  background: #eaf3ed;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}
.hiw-winners > div:first-child {
  max-width: 540px;
}
.hiw-text-link {
  display: inline-flex;
  gap: 20px;
  color: #0b803c;
  font-weight: 800;
  text-decoration: none;
  margin-top: 10px;
}
.hiw-claim-card {
  border: 1px solid #d6e7da;
  background: white;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(8, 55, 24, 0.06);
}
.hiw-claim-title {
  display: block;
  font-weight: 800;
  color: #0a853c;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-bottom: 15px;
}
.hiw-claim-card > div {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e7efe9;
  align-items: center;
}
.hiw-claim-card > div:last-child {
  border-bottom: 0;
}
.hiw-claim-card b {
  color: #0b9a46;
}
.hiw-claim-card span {
  font-weight: 600;
}
.hiw-premium {
  background: #13241a;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
}
.hiw-premium .hiw-kicker {
  color: #00ee59;
}
.hiw-premium p {
  color: #b8c9be;
  max-width: 650px;
}
.hiw-premium-art {
  background: #203d2b;
  border: 1px solid #376548;
  border-radius: 24px;
  min-height: 280px;
  padding: 22px;
}
.hiw-premium-inner {
  border: 1px solid #518460;
  border-radius: 18px;
  height: 100%;
  min-height: 234px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.hiw-premium-inner > span:first-child {
  color: #9deab1;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.hiw-premium-inner strong {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hiw-premium-swoosh {
  font-size: 2rem;
  color: #00ff55;
  align-self: flex-end;
}
.hiw-final {
  text-align: center;
  background: #f8faf9;
  padding: 100px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hiw-final h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 700px;
  margin: 18px auto;
}
.hiw-final p {
  color: #65756a;
}
.hiw-final small {
  max-width: 600px;
  color: #839188;
  margin-top: 25px;
  line-height: 1.6;
}
@keyframes hiw-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 1000px) {
  .hiw-nav {
    gap: 14px;
  }
  .hiw-nav a {
    font-size: 0.78rem;
  }
  .hiw-hero {
    gap: 15px;
  }
  .hiw-phone {
    right: 3%;
    width: 47%;
  }
}
@media (max-width: 800px) {
  .hiw-nav {
    display: none;
  }
  .hiw-menu-button {
    display: block;
  }
  .hiw-mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-top: 1px solid #e1e9e3;
    padding: 8px 22px 18px;
  }
  .hiw-mobile-nav a {
    padding: 13px 8px;
    color: #183322;
    text-decoration: none;
    font-weight: 650;
  }
  .hiw-hero {
    grid-template-columns: 1fr;
    padding: 54px 22px 68px;
    gap: 32px;
  }
  .hiw-hero-copy {
    max-width: 100%;
  }
  .hiw-visual {
    min-height: 500px;
  }
  .hiw-car {
    width: 95%;
    left: 0;
  }
  .hiw-phone {
    width: 39%;
    right: 8%;
  }
  .hiw-winners,
  .hiw-premium {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hiw-section {
    padding: 70px 22px;
  }
}
@media (max-width: 520px) {
  .hiw-header-inner {
    padding: 0 16px;
    min-height: 70px;
    gap: 8px;
  }
  .hiw-brand {
    font-size: 1.1rem;
  }
  .hiw-account {
    padding: 10px 12px;
    font-size: 0.72rem;
    gap: 5px;
  }
  .hiw-menu-button {
    padding: 8px 10px;
  }
  .hiw-hero {
    padding: 43px 16px 55px;
  }
  .hiw-hero h1 {
    font-size: clamp(2.35rem, 9vw, 3.3rem);
  }
  .hiw-lead {
    font-size: 0.96rem;
  }
  .hiw-visual {
    min-height: 390px;
    border-radius: 23px;
  }
  .hiw-visual-label {
    top: 17px;
    left: 18px;
    font-size: 0.55rem;
  }
  .hiw-car {
    top: 15%;
    left: -5%;
    width: 105%;
    height: 52%;
  }
  .hiw-phone {
    width: 43%;
    min-height: 260px;
    right: 5%;
    bottom: 8%;
    border-width: 6px;
    border-radius: 22px;
  }
  .hiw-phone-top {
    height: 22px;
  }
  .hiw-phone-screen {
    min-height: 245px;
    padding: 10px 8px;
    gap: 6px;
  }
  .hiw-phone-screen > strong {
    font-size: 0.75rem;
  }
  .hiw-phone-car {
    height: 62px;
  }
  .hiw-phone-car img {
    height: 60px;
  }
  .hiw-phone-status {
    font-size: 0.53rem;
  }
  .hiw-phone-info b {
    font-size: 0.58rem;
  }
  .hiw-phone-cta {
    font-size: 0.52rem;
  }
  .hiw-visual-bottom {
    font-size: 0.5rem;
    left: 16px;
    bottom: 15px;
  }
  .hiw-event-grid {
    grid-template-columns: 1fr;
  }
  .hiw-section {
    padding: 60px 17px;
  }
  .hiw-event {
    padding: 25px;
    min-height: 0;
  }
  .hiw-claim-card {
    padding: 22px;
  }
  .hiw-final {
    padding: 75px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-car {
    animation: none;
  }
  .hiw-button {
    transition: none;
  }
}

/* How It Works: layered Prime EV gradients and scroll-responsive header. */
body:has(.hiw) {
  background: #f5f9f6;
}
.hiw {
  background: linear-gradient(
    135deg,
    #fbfdfb 0%,
    #eff8f1 38%,
    #e5f5ea 68%,
    #f9fcfa 100%
  );
}
.hiw-hero {
  position: relative;
  isolation: isolate;
}
.hiw-hero:before {
  content: "";
  position: absolute;
  inset: 0 -8vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 80% 40%,
      rgba(39, 196, 98, 0.14),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 12% 12%,
      rgba(118, 218, 151, 0.11),
      transparent 48%
    );
}
.hiw-weekly {
  background: linear-gradient(160deg, #f3faf5 0%, #e9f6ed 55%, #f9fcfa 100%);
}
.hiw-winners {
  background: linear-gradient(130deg, #e3f2e8 0%, #f5faf6 65%, #e6f3e9 100%);
}
.hiw-premium {
  background: radial-gradient(
    ellipse at 85% 25%,
    #28533a 0%,
    #162c1e 45%,
    #101c15 100%
  );
}
.hiw-final {
  background: radial-gradient(ellipse at 50% 5%, #dff3e5 0%, #f7fbf8 66%);
}
header.hiw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 253, 251, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
header.hiw-header.is-scrolled {
  background: rgba(17, 34, 24, 0.97);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(9, 35, 18, 0.16);
}
header.hiw-header.is-scrolled .hiw-brand,
header.hiw-header.is-scrolled .hiw-nav a {
  color: #fff;
}
header.hiw-header.is-scrolled .hiw-nav a.active,
header.hiw-header.is-scrolled .hiw-nav a:hover {
  color: #00ee59;
}
header.hiw-header.is-scrolled .hiw-account {
  background: #00e85a;
  color: #10251a !important;
}
header.hiw-header.is-scrolled .hiw-menu-button {
  background: #263b2c;
  color: #fff;
  border-color: #45614c;
}
/* Global homepage stylesheet has header nav rules: explicitly override for this page. */
header.hiw-header nav.hiw-mobile-nav {
  display: none;
}
@media (max-width: 800px) {
  header.hiw-header nav.hiw-nav {
    display: none !important;
  }
  header.hiw-header .hiw-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  header.hiw-header nav.hiw-mobile-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.13);
    border-top: 1px solid #e1e9e3;
    padding: 12px 22px 20px;
    visibility: visible;
    opacity: 1;
  }
  header.hiw-header nav.hiw-mobile-nav.is-open a {
    display: block !important;
    color: #183322;
    padding: 13px 8px;
    text-decoration: none;
    font-weight: 650;
  }
  header.hiw-header nav.hiw-mobile-nav.is-open a:hover {
    color: #078f43;
    background: #f1f8f3;
    border-radius: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  header.hiw-header {
    transition: none;
  }
}

/* Prime EV typography polish — scoped to How It Works only. */
.hiw-header,
.hiw-header *,
.hiw,
.hiw * {
  font-family: Inter, Arial, sans-serif;
}
.hiw h1,
.hiw h2,
.hiw h3 {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: -0.038em;
  font-weight: 700;
}
.hiw-hero h1 {
  font-size: clamp(2.6rem, 4.3vw, 4.15rem);
  line-height: 1.11;
  letter-spacing: -0.046em;
  margin: 18px 0 19px;

  text-transform: capitalize;
}
.hiw-lead {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 26px;
}
.hiw-step {
  padding: 15px 17px;
  gap: 14px;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(12, 50, 27, 0.035);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.hiw-step:hover {
  transform: translateY(-2px);
  border-color: #b8d8c2;
  box-shadow: 0 10px 24px rgba(12, 50, 27, 0.075);
}
.hiw-step h2 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.hiw-step p {
  font-size: 0.83rem;
  line-height: 1.5;
}
.hiw-section h2 {
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  line-height: 1.2;
}
.hiw-section p {
  font-size: 1rem;
  line-height: 1.7;
}
.hiw-event h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}
.hiw-button,
.hiw-account,
.hiw-nav a,
.hiw-mobile-nav a {
  font-weight: 600;
}
.hiw-phone-screen > strong {
  font-weight: 700;
}
@media (max-width: 800px) {
  header.hiw-header nav.hiw-mobile-nav.is-open {
    gap: 2px;
    padding: 12px 20px 18px;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }
  header.hiw-header nav.hiw-mobile-nav.is-open a {
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
    padding: 13px 14px;
    text-align: left;
    border-radius: 10px;
  }
  .hiw-hero {
    padding-top: 46px;
    gap: 28px;
  }
  .hiw-step {
    padding: 14px 15px;
  }
}
@media (max-width: 520px) {
  .hiw-hero {
    padding: 40px 16px 56px;
    gap: 24px;
  }
  .hiw-hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 2.65rem);
    line-height: 1.13;
    letter-spacing: -0.043em;
    margin: 15px 0 16px;
  }
  .hiw-lead {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 22px;
  }
  .hiw-steps {
    gap: 10px;
    margin-bottom: 21px;
  }
  .hiw-step {
    gap: 12px;
    padding: 13px 14px;
  }
  .hiw-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 0.77rem;
  }
  .hiw-step h2 {
    font-size: 0.94rem;
    line-height: 1.3;
    margin-bottom: 3px;
  }
  .hiw-step p {
    font-size: 0.79rem;
    line-height: 1.45;
  }
  .hiw-step-arrow {
    font-size: 1rem;
  }
  .hiw-section {
    padding: 56px 17px;
  }
  .hiw-section h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    line-height: 1.19;
  }
  .hiw-section p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  .hiw-event h3 {
    font-size: 1.24rem;
    margin: 18px 0 8px;
  }
  .hiw-event {
    padding: 23px;
  }
  .hiw-button {
    font-size: 0.86rem;
    padding: 14px 21px;
  }
  .hiw-final h2 {
    font-size: clamp(1.9rem, 7.5vw, 2.45rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-step {
    transition: none;
  }
  .hiw-step:hover {
    transform: none;
  }
}

/* --- Phase 1: refined hero illustrations and realistic device --- */
.hiw h1,
.hiw h2,
.hiw h3 {
  font-family: Inter, Arial, sans-serif;
}
.hiw-step {
  position: relative;
  min-height: 83px;
  gap: 14px;
}
.hiw-step-icon {
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(145deg, #e6f8ed, #f1fbf5);
  border: 1px solid #d4efde;
  flex: none;
}
.hiw-step-icon svg {
  width: 38px;
  height: 38px;
  overflow: visible;
  transition: transform 0.25s ease;
}
.hiw-step-icon small {
  font-size: 9px;
  line-height: 1;
  color: #168447;
  font-weight: 800;
}
.hiw-step:hover .hiw-step-icon svg {
  transform: translateY(-2px) scale(1.04);
}
.hiw-step-copy {
  flex: 1;
  min-width: 0;
}
.hiw-step-arrow {
  font-size: 1.1rem;
}
/* Device: frame, edge, screen, and live HTML dashboard */
.hiw-phone-hardware > .hiw-phone-display {
  position: absolute;
  inset: 8px;
  height: auto;
}
@media (max-width: 520px) {
  .hiw-phone-hardware > .hiw-phone-display {
    inset: 6px;
  }
}
.hiw-phone {
  width: 47%;
  max-width: 255px;
  min-height: 0;
  right: 4%;
  bottom: 8%;
  padding: 0;
  border: 0;
  border-radius: 42px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: rotate(8deg);
  filter: drop-shadow(0 24px 25px rgba(12, 37, 22, 0.28));
  animation: hiw-device-float 7s ease-in-out infinite;
  z-index: 3;
}
.hiw-phone-hardware {
  position: relative;
  background: linear-gradient(
    125deg,
    #040b09,
    #1b2721 36%,
    #050908 65%,
    #48534d 98%
  );
  padding: 8px;
  border-radius: 42px;
  box-shadow:
    inset 0 0 0 2px #17211b,
    inset 2px 2px 1px rgba(255, 255, 255, 0.3),
    0 0 0 1px #1c2920;
  aspect-ratio: 0.505;
}
.hiw-side-key {
  position: absolute;
  left: -3px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: #111b15;
}
.hiw-side-key-a {
  top: 21%;
  height: 9%;
}
.hiw-side-key-b {
  top: 34%;
  height: 13%;
}
.hiw-phone-display {
  position: relative;
  height: 100%;
  background: #f9fcfa;
  border-radius: 35px;
  overflow: hidden;
  color: #152a1c;
  display: flex;
  flex-direction: column;
}
.hiw-device-status {
  height: 9%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10% 0;
  font-size: 10px;
  font-weight: 800;
  position: relative;
  flex: none;
}
.hiw-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 17px;
  border-radius: 30px;
  background: #050b08;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 7px;
}
.hiw-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #182c3c;
  box-shadow: inset 0 0 2px #47719a;
}
.hiw-status-icons svg {
  width: 37px;
  height: 14px;
  display: block;
}
.hiw-device-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3%;
  padding: 3% 7% 6%;
}
.hiw-device-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}
.hiw-device-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9f1e2;
  color: #137a40;
  font-size: 9px;
  font-weight: 900;
}
.hiw-device-greeting {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
}
.hiw-device-greeting b {
  font-size: 10px;
}
.hiw-device-greeting b span {
  color: #0fa34e;
}
.hiw-device-greeting small {
  font-size: 6px;
  color: #779282;
  letter-spacing: 0.06em;
}
.hiw-device-verified {
  font-size: 6px;
  background: #e0f6e8;
  color: #178048;
  border-radius: 20px;
  padding: 5px 6px;
  white-space: nowrap;
  font-weight: 800;
}
.hiw-device-verified i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #16be60;
  border-radius: 50%;
}
.hiw-device-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hiw-device-heading > span {
  font-size: 7px;
  letter-spacing: 0.09em;
  color: #658875;
  font-weight: 800;
}
.hiw-device-heading strong {
  font-size: clamp(13px, 1.5vw, 19px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hiw-device-vehicle {
  height: 23%;
  min-height: 54px;
  position: relative;
  background: radial-gradient(ellipse at 50% 75%, #e1f0e6, transparent 68%);
  display: grid;
  place-items: center;
}
.hiw-device-vehicle img {
  width: 108%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(20, 40, 25, 0.17));
}
.hiw-device-vehicle span {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 6px;
  color: #54836a;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.hiw-device-lock {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e1ebe4;
  border-radius: 30px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 750;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}
.hiw-device-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.hiw-device-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #ebf0ec;
  padding: 9px 6px;
  min-width: 0;
}
.hiw-device-metrics small {
  font-size: 6px;
  color: #718979;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.hiw-device-metrics b {
  font-size: 11px;
  color: #12482c;
}
.hiw-device-metrics span {
  font-size: 7px;
  color: #738b7b;
}
.hiw-device-event {
  background: #0c3925;
  color: #fff;
  border-radius: 12px;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hiw-device-event > span {
  font-size: 7px;
  color: #67ec9e;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.hiw-device-event strong {
  font-size: 10px;
}
.hiw-device-event small {
  font-size: 7px;
  color: #c6e4d0;
}
.hiw-device-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #e6eee8;
  padding-top: 6px;
}
.hiw-device-nav > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #8aa193;
  font-size: 17px;
  line-height: 1;
}
.hiw-device-nav > span.active {
  color: #0a6d37;
}
.hiw-device-nav small {
  font-size: 6px;
  font-weight: 650;
}
.hiw-home-indicator {
  width: 30%;
  height: 3px;
  background: #14271b;
  border-radius: 9px;
  align-self: center;
  margin: 0 auto 5px;
}
@keyframes hiw-device-float {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-9px);
  }
}
.hiw-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--hiw-delay, 0ms);
}
.hiw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hiw-visual .hiw-phone {
  transition: filter 0.3s ease;
}
.hiw-visual:hover .hiw-phone {
  filter: drop-shadow(0 30px 30px rgba(12, 37, 22, 0.33));
}
@media (max-width: 800px) {
  .hiw-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hiw-hero-copy {
    display: contents;
  }
  .hiw-kicker,
  .hiw-hero h1,
  .hiw-lead {
    grid-column: 1;
  }
  .hiw-hero > .hiw-visual {
    grid-row: 4;
    margin: 12px 0 26px;
  }
  .hiw-steps {
    grid-row: 5;
    margin-bottom: 22px;
  }
  .hiw-hero-copy > .hiw-button {
    grid-row: 6;
    justify-self: start;
  }
  .hiw-mini-note {
    grid-row: 7;
    margin: 8px 0 0;
  }
  .hiw-phone {
    width: 39%;
    right: 8%;
    bottom: 7%;
  }
}
@media (max-width: 520px) {
  .hiw-step {
    padding: 12px;
    min-height: 88px;
    gap: 11px;
  }
  .hiw-step-icon {
    width: 55px;
    height: 55px;
  }
  .hiw-step-icon svg {
    width: 36px;
    height: 36px;
  }
  .hiw-visual {
    min-height: 390px;
  }
  .hiw-phone {
    width: 48%;
    right: 6%;
    bottom: 8%;
    border: 0;
    border-radius: 36px;
    min-height: 0;
  }
  .hiw-phone-hardware {
    padding: 6px;
    border-radius: 35px;
  }
  .hiw-phone-display {
    border-radius: 30px;
  }
  .hiw-device-status {
    font-size: 8px;
    min-height: 23px;
  }
  .hiw-island {
    height: 14px;
    top: 5px;
  }
  .hiw-device-content {
    gap: 2.5%;
    padding: 3% 6% 5%;
  }
  .hiw-device-heading strong {
    font-size: 14px;
  }
  .hiw-device-vehicle {
    min-height: 48px;
  }
  .hiw-device-metrics > div {
    padding: 7px 5px;
  }
  .hiw-device-event {
    padding: 8px 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-phone {
    animation: none;
  }
  .hiw-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hiw-step-icon svg {
    transition: none;
  }
}

/* Mobile device composition refinement — scoped to How It Works.
   Keep the full phone (including its top bezel) inside the experience card. */
@media (max-width: 800px) {
  .hiw-visual {
    position: relative;
  }
  .hiw-visual .hiw-phone {
    width: clamp(185px, 39vw, 245px);
    max-width: none;
    min-height: 0;
    right: 9%;
    bottom: 8%;
    transform-origin: 50% 50%;
  }
  .hiw-phone-hardware {
    width: 100%;
    aspect-ratio: 0.505;
  }
  .hiw-phone-hardware > .hiw-phone-display {
    inset: 6px;
  }
  .hiw-device-content {
    min-height: 0;
  }
  .hiw-device-vehicle img {
    max-width: 100%;
    width: 96%;
    height: 100%;
    object-fit: contain;
  }
  .hiw-device-vehicle span {
    right: 3px;
    bottom: 0;
  }
}
@media (max-width: 520px) {
  .hiw-visual {
    height: clamp(430px, 125vw, 540px);
    min-height: 0;
    overflow: hidden;
  }
  .hiw-visual .hiw-phone {
    width: clamp(170px, 53vw, 235px);
    right: 8%;
    bottom: 8%;
    border: 0;
    min-height: 0;
  }
  .hiw-phone-hardware {
    padding: 6px;
    border-radius: 36px;
  }
  .hiw-phone-hardware > .hiw-phone-display {
    inset: 6px;
    border-radius: 30px;
  }
  .hiw-car {
    left: -7%;
    width: 89%;
    top: 26%;
    height: 43%;
  }
  .hiw-device-status {
    min-height: 0;
    height: 8%;
    padding-top: 3px;
  }
  .hiw-island {
    top: 5px;
  }
  .hiw-device-content {
    gap: 2%;
    padding: 2% 6% 5%;
  }
  .hiw-device-heading strong {
    font-size: clamp(12px, 3.2vw, 15px);
  }
  .hiw-device-vehicle {
    height: 22%;
    min-height: 0;
  }
  .hiw-device-vehicle img {
    width: 94%;
  }
  .hiw-device-lock {
    font-size: 7px;
    padding: 4px 6px;
  }
  .hiw-device-metrics > div {
    padding: 6px 5px;
    gap: 3px;
  }
  .hiw-device-event {
    padding: 7px;
    gap: 3px;
  }
  .hiw-device-nav {
    padding-top: 4px;
  }
  .hiw-visual-label {
    z-index: 4;
  }
  .hiw-visual-bottom {
    z-index: 4;
  }
}
@media (max-width: 360px) {
  .hiw-visual {
    height: 430px;
  }
  .hiw-visual .hiw-phone {
    width: 170px;
    right: 7%;
    bottom: 9%;
  }
  .hiw-car {
    width: 87%;
    left: -9%;
  }
  .hiw-device-heading strong {
    font-size: 12px;
  }
  .hiw-device-top {
    min-height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-visual .hiw-phone {
    animation: none;
  }
}
