/* =========================================================
   HOW WAKART WORKS
   ========================================================= */
.works-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    background:
        radial-gradient(circle at 8% 16%, rgba(24,185,129,.13), transparent 28%),
        radial-gradient(circle at 91% 10%, rgba(91,53,245,.19), transparent 32%),
        linear-gradient(180deg, #fbfaff 0%, #f4f0ff 62%, #f7f7fc 100%);
}
.works-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(91,53,245,.085) 1px, transparent 1px);
    background-size: 25px 25px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.works-orb { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.works-orb-one { width: 330px; height: 330px; left: -165px; bottom: -120px; background: rgba(24,185,129,.1); }
.works-orb-two { width: 420px; height: 420px; right: -230px; top: 20px; background: rgba(91,53,245,.11); }
.works-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 78px; }
.works-hero-copy h1 { max-width: 680px; margin: 22px 0 19px; font-size: clamp(50px, 6vw, 78px); line-height: .98; letter-spacing: -4px; }
.works-hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.works-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.works-hero-proof { display: flex; flex-wrap: wrap; gap: 15px 24px; margin-top: 26px; color: #575268; font-size: 12px; font-weight: 800; }
.works-hero-proof i { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 5px; color: white; background: var(--accent); border-radius: 50%; font-style: normal; font-size: 10px; }
.works-hero-demo { position: relative; min-height: 500px; display: grid; place-items: center; }
.works-demo-window { width: min(100%, 455px); overflow: hidden; background: white; border: 1px solid rgba(91,53,245,.13); border-radius: 27px; box-shadow: 0 35px 95px rgba(49,30,127,.2); transform: rotate(1.6deg); }
.works-demo-bar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #211846; }
.works-demo-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #8e80c4; }
.works-demo-bar > span:first-child { background: #ff7690; }
.works-demo-bar > span:nth-child(2) { background: #ffcc66; }
.works-demo-bar > span:nth-child(3) { background: #58d9a9; }
.works-demo-bar small { margin-left: auto; padding: 5px 13px; color: #d8d0fa; background: rgba(255,255,255,.08); border-radius: 20px; font-size: 9px; }
.works-demo-body { padding: 31px; }
.works-demo-title { display: flex; align-items: center; gap: 13px; }
.works-demo-title > span { flex: 0 0 47px; height: 47px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--primary-light), var(--primary-dark)); border-radius: 14px; font-size: 22px; font-weight: 950; }
.works-demo-title div { display: flex; flex-direction: column; }
.works-demo-title strong { font-size: 17px; }
.works-demo-title small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.works-progress { height: 8px; margin: 25px 0 23px; overflow: hidden; background: #ede9fb; border-radius: 20px; }
.works-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), #6fe3bc); border-radius: inherit; }
.works-demo-check { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.works-demo-check i { flex: 0 0 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 900; }
.works-demo-check span { display: flex; flex-direction: column; }
.works-demo-check strong { font-size: 12px; }
.works-demo-check small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.works-live-pill { margin-top: 23px; padding: 12px 14px; color: #145b42; background: #e8f9f2; border: 1px solid #c6eddc; border-radius: 12px; font-size: 10px; font-weight: 850; }
.works-floating-card { position: absolute; z-index: 3; display: flex; flex-direction: column; min-width: 145px; padding: 15px 17px; background: rgba(255,255,255,.94); border: 1px solid rgba(91,53,245,.13); border-radius: 17px; box-shadow: 0 18px 45px rgba(37,25,91,.17); backdrop-filter: blur(14px); }
.works-floating-card strong { color: var(--primary-dark); font-size: 20px; }
.works-floating-card span { color: var(--muted); font-size: 9px; font-weight: 750; }
.works-floating-time { left: -3px; bottom: 62px; }
.works-floating-fee { right: -3px; top: 64px; }

.works-trust-strip { position: relative; z-index: 4; padding: 25px 0; color: white; background: #181126; box-shadow: 0 18px 45px rgba(28,18,57,.15); }
.works-trust-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 22px; }
.works-trust-grid > div { display: flex; align-items: center; gap: 11px; }
.works-trust-grid strong { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: #171022; background: #7aebbe; border-radius: 10px; font-size: 14px; }
.works-trust-grid span { color: #e0d9ef; font-size: 11px; font-weight: 800; }
.works-trust-grid > b { color: #655b7d; font-size: 20px; }

.works-steps-section { padding-top: 110px; background: white; }
.works-timeline { position: relative; display: grid; gap: 30px; margin-top: 54px; }
.works-timeline::before { content: ""; position: absolute; left: 41px; top: 77px; bottom: 77px; width: 2px; background: linear-gradient(var(--primary), #b9adef 70%, var(--accent)); }
.works-step { position: relative; display: grid; grid-template-columns: 82px minmax(0, .9fr) minmax(360px, 1.1fr); align-items: center; gap: 34px; min-height: 410px; padding: 38px 42px 38px 0; background: #fbfaff; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-soft); }
.works-step-reverse { background: #f6f3ff; }
.works-step-number { position: relative; z-index: 2; width: 82px; height: 82px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--primary-light), var(--primary-dark)); border: 10px solid white; border-radius: 50%; box-shadow: 0 14px 30px rgba(91,53,245,.24); font-size: 18px; font-weight: 950; }
.works-step-copy { padding: 8px 0; }
.works-step-label { color: var(--primary); font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: 1.6px; }
.works-step-copy h3 { margin: 8px 0 13px; font-size: clamp(28px, 3vw, 39px); line-height: 1.1; letter-spacing: -1.4px; }
.works-step-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.works-speed { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 13px; color: #3d3760; background: white; border: 1px solid #ddd7f2; border-radius: 30px; font-size: 10px; }
.works-speed span { font-size: 14px; }
.works-step-visual { min-height: 320px; display: grid; place-items: center; padding: 28px; overflow: hidden; border-radius: 22px; }
.create-visual { background: linear-gradient(145deg, #241657, #5b35f5); }
.share-visual { background: linear-gradient(145deg, #dff7ec, #bcebd8); }
.order-visual { background: linear-gradient(145deg, #fff1d8, #ffe3af); }
.mini-browser { width: min(100%, 370px); padding: 0 22px 22px; background: white; border-radius: 18px; box-shadow: 0 24px 55px rgba(15,8,43,.27); }
.mini-browser-top { height: 39px; display: flex; align-items: center; gap: 6px; margin: 0 -22px 16px; padding: 0 14px; background: #f4f1fb; border-radius: 18px 18px 0 0; }
.mini-browser-top span { width: 7px; height: 7px; background: #bbb2d8; border-radius: 50%; }
.mini-form-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eeeaf7; }
.mini-form-row i { height: 28px; display: grid; place-items: center; color: var(--primary); background: #eeeaff; border-radius: 8px; font-style: normal; font-size: 9px; font-weight: 950; }
.mini-form-row span { display: flex; flex-direction: column; }
.mini-form-row strong { font-size: 10px; }
.mini-form-row small { color: var(--muted); font-size: 8px; }
.mini-form-row b { width: 20px; height: 20px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 50%; font-size: 8px; }
.mini-success { margin: 17px 0 7px; color: #125e40; font-size: 11px; font-weight: 900; }
.mini-browser code { display: block; padding: 9px 10px; color: #4d377d; background: #f2efff; border-radius: 9px; font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.wa-chat-mock { width: min(100%, 345px); overflow: hidden; background: #ece5dd; border: 7px solid #fff; border-radius: 28px; box-shadow: 0 25px 55px rgba(31,98,73,.2); }
.wa-chat-head { display: grid; grid-template-columns: auto 34px 1fr auto; align-items: center; gap: 8px; padding: 12px 13px; color: white; background: #075e54; }
.wa-chat-head > span, .wa-chat-head > b { font-size: 15px; }
.wa-chat-head > i { height: 34px; display: grid; place-items: center; color: #075e54; background: white; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 900; }
.wa-chat-head div { display: flex; flex-direction: column; }
.wa-chat-head strong { font-size: 10px; }
.wa-chat-head small { color: #d4f2e7; font-size: 7px; }
.wa-chat-body { min-height: 245px; padding: 34px 16px 15px; background-image: radial-gradient(rgba(67,87,78,.08) 1px, transparent 1px); background-size: 17px 17px; }
.wa-message { width: fit-content; max-width: 88%; margin-left: auto; padding: 9px 11px; background: #dcf8c6; border-radius: 10px 3px 10px 10px; font-size: 9px; }
.wa-link-card { max-width: 88%; display: grid; grid-template-columns: 80px 1fr; gap: 10px; margin: 5px 0 0 auto; padding: 7px; background: #dcf8c6; border-radius: 10px 3px 10px 10px; }
.wa-link-image { height: 69px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #6b43f6, #321796); border-radius: 7px; font-size: 12px; font-weight: 950; }
.wa-link-card span { display: flex; flex-direction: column; min-width: 0; }
.wa-link-card small { color: #7c7b7b; font-size: 6px; letter-spacing: .5px; }
.wa-link-card strong { margin-top: 4px; font-size: 9px; }
.wa-link-card em { margin-top: auto; color: #0a715e; font-size: 7px; font-style: normal; font-weight: 850; }
.wa-chat-body time { display: block; margin-top: 5px; color: #6f7e78; text-align: right; font-size: 6px; }
.order-notification { width: min(100%, 365px); padding: 22px; background: white; border-radius: 20px; box-shadow: 0 25px 55px rgba(122,77,16,.17); }
.order-notification-head { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.order-notification-head > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 12px; font-size: 16px; font-weight: 950; }
.order-notification-head div { display: flex; flex-direction: column; }
.order-notification-head strong { font-size: 12px; }
.order-notification-head small { color: var(--muted); font-size: 8px; }
.order-customer, .order-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 10px; }
.order-customer span, .order-total span { color: var(--muted); }
.order-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px; background: #faf8ff; border-radius: 12px; }
.order-item i { height: 34px; display: grid; place-items: center; color: var(--primary); background: #ece7ff; border-radius: 9px; font-style: normal; font-size: 9px; font-weight: 950; }
.order-item span { display: flex; flex-direction: column; }
.order-item strong, .order-item b { font-size: 9px; }
.order-item small { color: var(--muted); font-size: 7px; }
.order-total { border-top: 1px solid var(--border); margin-top: 13px; }
.order-total strong { font-size: 17px; }
.order-notification button { width: 100%; min-height: 40px; color: white; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: 0; border-radius: 11px; font-size: 9px; font-weight: 900; }
.section-actions { display: flex; margin-top: 30px; }

.payment-flow-section { position: relative; overflow: hidden; padding: 110px 0; color: white; background: radial-gradient(circle at 85% 20%, rgba(111,78,255,.35), transparent 28%), linear-gradient(135deg, #171024, #302060); }
.payment-flow-section::after { content: "₹"; position: absolute; right: 2%; bottom: -165px; color: rgba(255,255,255,.035); font-size: 460px; font-weight: 950; line-height: 1; }
.payment-flow-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 78px; }
.payment-flow-copy h2 { max-width: 650px; margin: 18px 0 16px; font-size: clamp(38px, 4.6vw, 59px); line-height: 1.04; letter-spacing: -2.2px; }
.payment-flow-copy > p { max-width: 640px; margin: 0; color: #c7bfdc; font-size: 15px; line-height: 1.8; }
.payment-points { display: grid; gap: 16px; margin-top: 31px; }
.payment-points > div { display: flex; gap: 13px; }
.payment-points i { flex: 0 0 36px; height: 36px; display: grid; place-items: center; color: #161124; background: #79edbf; border-radius: 11px; font-style: normal; font-size: 13px; font-weight: 950; }
.payment-points span { display: flex; flex-direction: column; }
.payment-points strong { font-size: 13px; }
.payment-points small { margin-top: 3px; color: #aca3c1; font-size: 10px; line-height: 1.55; }
.money-route { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 11px; padding: 42px 28px 74px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 28px; box-shadow: 0 30px 75px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.money-node { min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 17px 12px; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 19px; }
.money-node > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 11px; color: #251842; background: white; border-radius: 16px; font-size: 22px; font-weight: 950; }
.platform-node > span { color: white; background: linear-gradient(145deg, var(--primary-light), var(--primary-dark)); }
.seller-node > span { background: #79edbf; }
.money-node strong { font-size: 12px; }
.money-node small { margin-top: 4px; color: #aaa2bd; font-size: 8px; }
.money-arrow { display: flex; flex-direction: column; align-items: center; color: #9187a8; }
.money-arrow span { margin-bottom: 3px; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.money-arrow b { color: #7768a0; font-size: 21px; }
.money-arrow-payment span, .money-arrow-payment b { color: #79edbf; }
.money-route-note { position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: #ccefe1; background: rgba(27,185,129,.13); border: 1px solid rgba(121,237,191,.2); border-radius: 11px; font-size: 9px; font-weight: 800; }
.money-route-note i { width: 18px; height: 18px; display: grid; place-items: center; color: #161124; background: #79edbf; border-radius: 50%; font-style: normal; font-size: 8px; }

.works-clarity-section { background: #f8f7fc; }
.clarity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 45px; }
.clarity-grid article { padding: 28px; background: white; border: 1px solid var(--border); border-radius: 21px; box-shadow: var(--shadow-soft); }
.clarity-grid article > span { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--primary-light), var(--primary-dark)); border-radius: 13px; font-size: 15px; font-weight: 950; }
.clarity-grid h3 { margin: 19px 0 8px; font-size: 16px; }
.clarity-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.works-faq { background: #f1eff9; }
.works-final-cta { padding-top: 90px; }

@media (max-width: 1080px) {
    .works-hero-grid, .payment-flow-grid { gap: 42px; }
    .works-step { grid-template-columns: 72px minmax(0, .9fr) minmax(320px, 1.05fr); gap: 24px; padding-right: 28px; }
    .works-step-number { width: 72px; height: 72px; }
    .works-timeline::before { left: 35px; }
    .clarity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .works-hero { padding-top: 68px; }
    .works-hero-grid, .payment-flow-grid { grid-template-columns: 1fr; }
    .works-hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
    .works-hero-copy h1, .works-hero-copy > p { margin-inline: auto; }
    .works-hero-actions, .works-hero-proof { justify-content: center; }
    .works-hero-demo { min-height: 480px; }
    .works-trust-grid { grid-template-columns: 1fr 1fr; }
    .works-trust-grid > b { display: none; }
    .works-step { grid-template-columns: 72px 1fr; padding: 32px 28px 32px 0; }
    .works-step-visual { grid-column: 2; }
    .payment-flow-copy { text-align: center; }
    .payment-flow-copy h2, .payment-flow-copy > p { margin-inline: auto; }
    .payment-points { max-width: 650px; margin-inline: auto; text-align: left; }
    .money-route { max-width: 720px; width: 100%; margin-inline: auto; }
}

@media (max-width: 650px) {
    .works-hero { padding: 54px 0 60px; }
    .works-hero-copy h1 { font-size: 47px; letter-spacing: -2.6px; }
    .works-hero-copy > p { font-size: 16px; }
    .works-hero-actions { flex-direction: column; }
    .works-hero-actions .button { width: 100%; }
    .works-hero-proof { align-items: center; flex-direction: column; gap: 10px; }
    .works-hero-demo { min-height: 420px; }
    .works-demo-window { transform: none; }
    .works-demo-body { padding: 23px; }
    .works-floating-card { min-width: 126px; padding: 12px 14px; }
    .works-floating-time { left: -7px; bottom: 25px; }
    .works-floating-fee { right: -7px; top: 38px; }
    .works-trust-grid { gap: 14px; }
    .works-trust-grid > div { gap: 8px; }
    .works-trust-grid strong { flex-basis: 30px; height: 30px; }
    .works-trust-grid span { font-size: 9px; }
    .works-steps-section { padding-top: 80px; }
    .works-timeline { gap: 20px; }
    .works-timeline::before { display: none; }
    .works-step { display: block; min-height: 0; padding: 27px 19px; }
    .works-step-number { width: 60px; height: 60px; margin-bottom: 18px; border-width: 7px; }
    .works-step-copy h3 { font-size: 30px; }
    .works-step-visual { min-height: 275px; margin-top: 24px; padding: 18px; }
    .payment-flow-section { padding: 82px 0; }
    .payment-flow-copy h2 { font-size: 39px; letter-spacing: -1.6px; }
    .money-route { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px 72px; }
    .money-node { min-height: 112px; }
    .money-arrow { flex-direction: row; justify-content: center; gap: 8px; }
    .money-arrow b { transform: rotate(90deg); }
    .money-route-note { left: 18px; right: 18px; bottom: 17px; text-align: center; }
    .clarity-grid { grid-template-columns: 1fr; }
}


/* Page-specific finishing layer. Kept in a separate file so strict CSP and
   browser caching cannot leave the How It Works page partially styled. */
.how-it-works-page main {
    overflow: hidden;
}

.how-it-works-page .site-header {
    background: rgba(250, 249, 255, .9);
}

.how-it-works-page .primary-nav > a[href$="how-it-works"] {
    color: var(--primary);
}

.how-it-works-page .primary-nav > a[href$="how-it-works"]::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}

.works-hero-copy h1 {
    text-wrap: balance;
}

.works-hero-copy > p,
.payment-flow-copy > p,
.section-heading p {
    text-wrap: pretty;
}

.works-demo-window,
.works-step,
.clarity-grid article,
.money-route {
    isolation: isolate;
}

.works-demo-window::after,
.works-step::after,
.clarity-grid article::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
}

.works-demo-window {
    position: relative;
}

.works-demo-window::after {
    background: linear-gradient(145deg, rgba(255,255,255,.28), transparent 48%);
}

.works-step {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.works-step:hover {
    transform: translateY(-4px);
    border-color: #d7cff9;
    box-shadow: 0 24px 60px rgba(37, 25, 91, .13);
}

.clarity-grid article {
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.clarity-grid article::after {
    background: radial-gradient(circle at 100% 0, rgba(91,53,245,.10), transparent 42%);
}

.clarity-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(37, 25, 91, .12);
}

.works-speed {
    box-shadow: 0 8px 22px rgba(50, 30, 125, .07);
}

.payment-flow-section {
    background:
        radial-gradient(circle at 12% 15%, rgba(24,185,129,.18), transparent 25%),
        radial-gradient(circle at 85% 20%, rgba(111,78,255,.35), transparent 28%),
        linear-gradient(135deg, #171024, #302060);
}

.money-route {
    overflow: hidden;
}

.money-route::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -120px;
    right: -70px;
    background: radial-gradient(circle, rgba(121,237,191,.2), transparent 68%);
    pointer-events: none;
}

.works-final-cta .cta-card {
    background:
        radial-gradient(circle at 90% 15%, rgba(121,237,191,.22), transparent 28%),
        linear-gradient(135deg, #6a43f7, #32189c);
}

@media (max-width: 650px) {
    .how-it-works-page .primary-nav > a[href$="how-it-works"]::after {
        display: none;
    }

    .works-hero-copy h1 {
        font-size: clamp(40px, 13vw, 52px);
        line-height: 1.02;
    }

    .works-hero-demo {
        min-height: 395px;
    }

    .works-floating-card {
        min-width: 118px;
    }

    .works-floating-card strong {
        font-size: 17px;
    }

    .works-step:hover,
    .clarity-grid article:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-step,
    .clarity-grid article {
        transition: none;
    }
}
