/* ---------- Hero ---------- */
.mw-hiw-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}

.mw-hiw-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .68fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.mw-hiw-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    color: var(--violet);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .13em;
}

.mw-hiw-hero__eyebrow .material-symbols-outlined { font-size: 1rem; }

.mw-hiw-hero__title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.15rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.mw-hiw-hero__title em {
    color: transparent;
    background: linear-gradient(110deg, var(--violet) 5%, var(--blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
}

.mw-hiw-hero__desc {
    max-width: 30rem;
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.mw-hiw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.mw-hiw-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mw-hiw-hero__phone {
    width: min(100%, 16.5rem);
}

.mw-hiw-hero__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .85rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .1);
    color: var(--ink);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

.mw-hiw-hero__chip .material-symbols-outlined { color: var(--violet); font-size: 1rem; }
.mw-hiw-hero__chip--a { top: 8%; left: -1rem; }
.mw-hiw-hero__chip--b { right: -1rem; bottom: 14%; }

@media (max-width: 900px) {
    .mw-hiw-hero__grid { grid-template-columns: 1fr; text-align: center; }
    .mw-hiw-hero__desc { margin-inline: auto; }
    .mw-hiw-hero__actions { justify-content: center; }
    .mw-hiw-hero__visual { margin-top: 1rem; }
    .mw-hiw-hero__chip--a, .mw-hiw-hero__chip--b { display: none; }
}

/* ---------- Toggle ---------- */
.mw-hiw-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 0 1rem clamp(3rem, 6vw, 4.5rem);
}

.mw-hiw-toggle {
    display: flex;
    width: min(100%, 22rem);
    padding: .3rem;
    border: 1px solid var(--line);
    border-radius: .9rem;
    background: #f1f4f9;
}

.mw-hiw-toggle__opt {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: .65rem;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.mw-hiw-toggle__opt.is-active {
    background: linear-gradient(120deg, var(--violet), var(--blue));
    box-shadow: 0 .6rem 1.4rem rgba(113, 56, 242, .22);
    color: #fff;
}

/* ---------- Merchant summary stats ---------- */
.mw-hiw-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 54rem;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
    padding: 0;
    border-top: 1px solid var(--line);
}

.mw-hiw-stats > div {
    padding: 1.4rem 1rem 0;
    border-left: 1px solid var(--line);
    text-align: center;
}

.mw-hiw-stats > div:first-child { border-left: 0; }

.mw-hiw-stats dt {
    margin: 0 0 .4rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.mw-hiw-stats dd {
    margin: 0;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

/* ---------- Merchant timeline ---------- */
.mw-hiw-merchant {
    padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.mw-hiw-merchant__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.mw-hiw-merchant__heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 2rem;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
}

.mw-hiw-merchant__heading .material-symbols-outlined { color: var(--violet); }

.mw-hiw-timeline {
    position: relative;
}

.mw-hiw-timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 1.1rem;
    padding-bottom: 2.25rem;
}

.mw-hiw-timeline__step:not(.mw-hiw-timeline__step--last)::before {
    position: absolute;
    top: 3.25rem;
    left: 1.6rem;
    bottom: 0;
    width: 2px;
    content: "";
    background: var(--line);
}

.mw-hiw-timeline__dot {
    display: grid;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    box-shadow: 0 .3rem .8rem rgba(15, 23, 42, .05);
    transition: border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.mw-hiw-timeline__step:hover .mw-hiw-timeline__dot {
    border-color: var(--violet);
    color: var(--violet);
    box-shadow: 0 0 0 4px rgba(113, 56, 242, .1);
}

.mw-hiw-timeline__num {
    display: block;
    margin-bottom: .3rem;
    color: var(--violet);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.mw-hiw-timeline__body h3 {
    margin: 0 0 .5rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
}

.mw-hiw-timeline__body p {
    margin: 0 0 .8rem;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
}

.mw-hiw-timeline__meta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .6rem;
    border-radius: .55rem;
    background: #f5f7fa;
    color: #475569;
    font-size: .7rem;
    font-weight: 700;
}

.mw-hiw-timeline__meta .material-symbols-outlined { color: var(--blue); font-size: .95rem; }
.mw-hiw-timeline__meta--live { color: #16813b; background: #ecfdf3; }
.mw-hiw-timeline__meta--live i { width: .42rem; height: .42rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .12); }

/* ---------- Side cards ---------- */
.mw-hiw-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mw-hiw-arch-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
}

.mw-hiw-arch-card__img {
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: .75rem;
    aspect-ratio: 16 / 10;
    background: #eef0f3;
}

.mw-hiw-arch-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-hiw-arch-card h3 {
    margin: 0 0 .4rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.mw-hiw-arch-card p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.mw-hiw-code {
    overflow: hidden;
    border: 1px solid #2a3142;
    border-radius: 1rem;
    background: #10131c;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
}

.mw-hiw-code__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    border-bottom: 1px solid #2a3142;
    background: #161b26;
    color: #8b93a7;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .78rem;
}

.mw-hiw-code__dots { display: flex; gap: .35rem; }
.mw-hiw-code__dots i { width: .55rem; height: .55rem; border-radius: 50%; background: #3a4256; }

.mw-hiw-code__body {
    margin: 0;
    padding: 1.1rem;
    overflow-x: auto;
    color: #c9d1e0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .82rem;
    line-height: 1.65;
}

.mw-hiw-code__body .tk-kw { color: #ff7ab6; }
.mw-hiw-code__body .tk-var { color: #7dc4ff; }
.mw-hiw-code__body .tk-fn { color: #c9a4ff; }
.mw-hiw-code__body .tk-str { color: #8ce99a; }
.mw-hiw-code__body .tk-cm { color: #5b6272; }

@media (max-width: 900px) {
    .mw-hiw-merchant__grid { grid-template-columns: 1fr; }
}

/* ---------- Compatible platforms strip ---------- */
.mw-hiw-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: clamp(3rem, 6vw, 4rem);
    padding-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--line);
}

.mw-hiw-stack__label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.mw-hiw-stack__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.mw-hiw-stack__badges span {
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: #fff;
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
}

/* ---------- User experience: step list + phone mockup ---------- */
.mw-hiw-user { padding: clamp(4rem, 8vw, 6rem) 0; }

.mw-hiw-user__desc {
    max-width: 34rem;
    margin: .75rem auto 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.mw-hiw-user__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .68fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.mw-hiw-ustep-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mw-hiw-ustep {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.mw-hiw-ustep:hover { transform: translateY(-.15rem); }

.mw-hiw-ustep.is-active {
    border-color: rgba(113, 56, 242, .35);
    box-shadow: 0 .8rem 1.8rem rgba(51, 65, 85, .1);
}

.mw-hiw-ustep__num {
    color: rgba(15, 23, 42, .25);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1;
    transition: color .25s ease;
}

.mw-hiw-ustep.is-active .mw-hiw-ustep__num { color: var(--violet); }

.mw-hiw-ustep__body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.mw-hiw-ustep__body strong {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.mw-hiw-ustep__body span {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.55;
}

.mw-hiw-phone {
    display: flex;
    justify-content: center;
    width: min(100%, 19rem);
}

.mw-hiw-phone__frame {
    position: relative;
    width: 100%;
    padding: .5rem;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 2.4rem;
    background: #13151b;
    box-shadow: 0 1.8rem 4rem rgba(17, 24, 39, .22);
}

.mw-hiw-phone__speaker {
    position: absolute;
    z-index: 2;
    top: .75rem;
    left: 50%;
    width: 3.8rem;
    height: 1rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #0c0e12;
}

.mw-hiw-phone__screen {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    aspect-ratio: 2 / 3;
    background: #f4f0ec;
}

.mw-hiw-phone__state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity .35s ease;
}

.mw-hiw-phone__state.is-active { opacity: 1; }

.mw-hiw-phone__try-btn {
    position: absolute;
    z-index: 2;
    bottom: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1rem;
    border: 0;
    border-radius: .7rem;
    background: linear-gradient(120deg, var(--violet), var(--blue));
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    box-shadow: 0 .6rem 1.4rem rgba(113, 56, 242, .28);
}

.mw-hiw-phone__scan-icon {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 3rem;
    filter: drop-shadow(0 .3rem .6rem rgba(15, 23, 42, .35));
}

.mw-hiw-phone__scanline {
    position: absolute;
    z-index: 2;
    top: 30%;
    right: 12%;
    left: 12%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent);
    box-shadow: 0 0 16px rgba(19, 91, 236, .6);
    animation: mw-hiw-scan 1.6s ease-in-out infinite;
}

@keyframes mw-hiw-scan {
    0%, 100% { top: 28%; opacity: .3; }
    50% { top: 62%; opacity: 1; }
}

.mw-hiw-phone__scan-label {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.mw-hiw-phone__state--photo {
    padding: 0;
}

.mw-hiw-phone__state--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-hiw-phone__state--photo::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, .05) 35%, rgba(15, 23, 42, .55) 100%);
}

.mw-hiw-phone__fit {
    position: absolute;
    z-index: 2;
    right: .75rem;
    bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .6rem;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .92);
    color: #166534;
    font-size: .66rem;
    font-weight: 800;
}

.mw-hiw-phone__fit .material-symbols-outlined { font-size: .9rem; }

@media (max-width: 900px) {
    .mw-hiw-user__layout { grid-template-columns: 1fr; }
    .mw-hiw-phone { order: -1; }
}

/* ---------- FAQ ---------- */
.mw-hiw-faq { padding: clamp(4rem, 8vw, 6rem) 0; }

.mw-hiw-faq__list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

.mw-hiw-faq__item {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: .9rem;
    background: #fff;
}

.mw-hiw-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
    font-size: .98rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mw-hiw-faq__item summary::-webkit-details-marker { display: none; }

.mw-hiw-faq__item summary .material-symbols-outlined {
    color: var(--violet);
    transition: transform .25s ease;
}

.mw-hiw-faq__item[open] summary .material-symbols-outlined { transform: rotate(180deg); }

.mw-hiw-faq__item p {
    margin: .85rem 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
    .mw-hiw-timeline__dot, .mw-hiw-toggle__opt, .mw-hiw-ustep, .mw-hiw-phone__state, .mw-hiw-faq__item summary .material-symbols-outlined { transition: none !important; }
    .mw-hiw-phone__scanline { animation: none !important; }
}
