/* ===========================
   HOW IT WORKS PAGE
=========================== */

/* HERO */
.hiw-hero { background: var(--navy); padding: clamp(80px, 10vw, 140px) 0 0; }
.hiw-hero .section-label { margin-bottom: 20px; }
.hiw-hero-headline { color: var(--white); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 900; line-height: 1.05; margin-bottom: 24px; }
.hiw-hero-headline .highlight { color: var(--orange); }
.hiw-hero-sub { color: rgba(255,255,255,0.65); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 640px; line-height: 1.75; padding-bottom: clamp(48px, 6vw, 80px); }

.hiw-steps-bar { background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.08); }
.hiw-steps-inner { display: flex; align-items: center; justify-content: center; gap: 0; padding: clamp(24px, 4vw, 40px) 0; }
.hiw-step-preview { display: flex; align-items: center; gap: 16px; padding: 0 clamp(32px, 5vw, 64px); }
.step-preview-num { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900; color: var(--orange); line-height: 1; }
.step-preview-label { font-size: clamp(0.9rem, 1.2vw, 1.1rem); font-weight: 700; color: var(--white); }
.step-preview-arrow { color: rgba(255,255,255,0.3); font-size: 1.2rem; flex-shrink: 0; }

/* STEP SECTIONS */
.hiw-step-section { padding: clamp(80px, 10vw, 140px) 0; }
.hiw-step-white { background: var(--white); }
.hiw-step-grey { background: var(--grey-light); }
.hiw-step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 100px); align-items: center; }
.hiw-step-reversed { direction: rtl; }
.hiw-step-reversed > * { direction: ltr; }
.hiw-step-num { font-size: clamp(5rem, 10vw, 9rem); font-weight: 900; color: rgba(247,147,26,0.1); line-height: 1; margin-bottom: 8px; letter-spacing: -4px; }
.hiw-step-content .section-label { margin-bottom: 12px; }
.hiw-step-headline { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; color: var(--black); margin-bottom: 20px; line-height: 1.2; }
.hiw-step-body { color: var(--grey-text); font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.85; margin-bottom: 36px; }

/* CONNECT CARDS */
.hiw-connect-cards { display: flex; flex-direction: column; gap: 14px; }
.hiw-connect-card { display: flex; align-items: center; gap: 16px; background: var(--grey-light); border: 1px solid var(--grey-mid); border-radius: 12px; padding: 16px 20px; transition: var(--transition); }
.hiw-connect-card:hover { border-color: var(--orange); background: rgba(247,147,26,0.03); transform: translateX(4px); }
.hiw-connect-icon { width: 44px; height: 44px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--orange); flex-shrink: 0; }
.hiw-connect-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--black); margin-bottom: 2px; }
.hiw-connect-desc { display: block; font-size: 0.8rem; color: var(--grey-text); line-height: 1.4; }

/* PROCESS POINTS */
.hiw-process-points { display: flex; flex-direction: column; gap: 20px; }
.hiw-process-point { display: flex; align-items: flex-start; gap: 16px; }
.hiw-process-icon { width: 40px; height: 40px; background: rgba(247,147,26,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.hiw-process-text { display: flex; flex-direction: column; gap: 4px; }
.hiw-process-text strong { font-size: 0.925rem; font-weight: 700; color: var(--black); }
.hiw-process-text span { font-size: 0.85rem; color: var(--grey-text); line-height: 1.5; }

/* RESULT CARDS */
.hiw-result-cards { display: flex; flex-direction: column; gap: 14px; }
.hiw-result-card { display: flex; align-items: flex-start; gap: 16px; background: var(--grey-light); border: 1px solid var(--grey-mid); border-radius: 12px; padding: 18px 20px; transition: var(--transition); }
.hiw-result-card:hover { border-color: var(--orange); transform: translateX(4px); }
.hiw-result-icon { width: 44px; height: 44px; background: var(--orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--white); flex-shrink: 0; margin-top: 2px; }
.hiw-result-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.hiw-result-info span { font-size: 0.82rem; color: var(--grey-text); line-height: 1.5; }

/* ===========================
   ANIMATED MOCKUPS
=========================== */

.hiw-step-visual { display: flex; justify-content: center; align-items: center; }

.hiw-mockup { background: var(--white); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,0.12); border: 1px solid var(--grey-mid); width: 100%; max-width: 460px; overflow: hidden; }

.hiw-step-grey .hiw-mockup { background: var(--white); }

.mockup-topbar { background: var(--navy); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-topbar-title { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-left: 6px; }
.mockup-content { padding: 20px; }

/* CONNECT MOCKUP */
.mockup-account-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--grey-light); margin-bottom: 10px; opacity: 0; transform: translateX(20px); animation: slideInAccount 0.5s ease forwards; }
.mockup-account-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.mockup-account-icon.orange { background: rgba(247,147,26,0.15); color: var(--orange); }
.mockup-account-icon.navy { background: rgba(18,40,60,0.1); color: var(--navy); }
.mockup-account-icon.green { background: rgba(16,185,129,0.1); color: var(--green); }
.mockup-account-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.mockup-account-name { display: block; font-size: 0.85rem; font-weight: 700; color: var(--black); }
.mockup-account-sub { display: block; font-size: 0.72rem; color: var(--grey-text); }
.mockup-account-status { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-left: auto; flex-shrink: 0; }
.mockup-account-status.active { background: rgba(16,185,129,0.1); color: var(--green); }
.mockup-account-status.imported { background: rgba(59,130,246,0.1); color: #3b82f6; }
.mockup-add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 2px dashed var(--grey-mid); border-radius: 10px; color: var(--grey-text); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--transition); margin-top: 4px; }
.mockup-add-btn:hover { border-color: var(--orange); color: var(--orange); }

@keyframes slideInAccount {
    to { opacity: 1; transform: translateX(0); }
}

/* PROCESS MOCKUP */
.mockup-process-header { margin-bottom: 14px; }
.mockup-process-title { display: block; font-weight: 700; font-size: 0.9rem; color: var(--black); margin-bottom: 2px; }
.mockup-process-sub { font-size: 0.75rem; color: var(--grey-text); }
.mockup-progress-bar { height: 6px; background: var(--grey-mid); border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.mockup-progress-fill { height: 100%; background: var(--orange); border-radius: 6px; width: 0%; animation: fillProgress 3s ease 0.5s forwards; }
@keyframes fillProgress { 0% { width: 0%; } 30% { width: 35%; } 60% { width: 65%; } 100% { width: 100%; } }
.mockup-process-steps { display: flex; flex-direction: column; gap: 12px; }
.mockup-process-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 0.82rem; transition: var(--transition); }
.mockup-process-step.done { background: rgba(16,185,129,0.06); color: var(--black); }
.mockup-process-step.done i { color: var(--green); }
.mockup-process-step.active { background: rgba(247,147,26,0.08); color: var(--black); border: 1px solid rgba(247,147,26,0.2); }
.mockup-process-step.active i { color: var(--orange); }
.mockup-process-step.pending { color: var(--grey-text); }
.mockup-process-step.pending i { color: var(--grey-mid); font-size: 0.5rem; }
.step-count { margin-left: auto; font-weight: 700; font-size: 0.75rem; color: var(--grey-text); flex-shrink: 0; }
.mockup-process-step.done .step-count { color: var(--green); }
.mockup-process-step.active .step-count { color: var(--orange); }

/* CLARITY MOCKUP */
.mockup-clarity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.clarity-stat { background: var(--grey-light); border-radius: 10px; padding: 12px; text-align: center; }
.clarity-stat-label { display: block; font-size: 0.68rem; color: var(--grey-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.clarity-stat-value { display: block; font-size: 0.9rem; font-weight: 800; color: var(--black); }
.clarity-stat-value.gain { color: var(--green); }
.clarity-stat-value.tax { color: var(--orange); }
.mockup-chart-area { background: var(--grey-light); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.mockup-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.chart-bar { flex: 1; background: rgba(247,147,26,0.25); border-radius: 4px 4px 0 0; transition: var(--transition); animation: growBar 1s ease forwards; transform-origin: bottom; }
.chart-bar.active { background: var(--orange); }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-bar:nth-child(1) { animation-delay: 0.05s; }
.chart-bar:nth-child(2) { animation-delay: 0.1s; }
.chart-bar:nth-child(3) { animation-delay: 0.15s; }
.chart-bar:nth-child(4) { animation-delay: 0.2s; }
.chart-bar:nth-child(5) { animation-delay: 0.25s; }
.chart-bar:nth-child(6) { animation-delay: 0.3s; }
.chart-bar:nth-child(7) { animation-delay: 0.35s; }
.chart-bar:nth-child(8) { animation-delay: 0.4s; }
.chart-bar:nth-child(9) { animation-delay: 0.45s; }
.mockup-report-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: var(--white); padding: 12px 16px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: var(--transition); animation: pulseCTA 2s ease-in-out infinite; }
@keyframes pulseCTA { 0%, 100% { box-shadow: 0 0 0 0 rgba(247,147,26,0.4); } 50% { box-shadow: 0 0 0 8px rgba(247,147,26,0); } }

/* WHO BENEFITS */
.hiw-who { background: var(--navy); padding: clamp(80px, 10vw, 130px) 0; }
.hiw-who .section-title { color: var(--white); }
.hiw-who .section-sub { color: rgba(255,255,255,0.6); }
.hiw-who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.hiw-who-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 44px) clamp(24px, 2.5vw, 36px); transition: var(--transition); display: flex; flex-direction: column; }
.hiw-who-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); border-color: rgba(247,147,26,0.3); }
.hiw-who-featured { background: rgba(247,147,26,0.1); border-color: rgba(247,147,26,0.3); }
.hiw-who-featured:hover { background: rgba(247,147,26,0.15); }
.hiw-who-icon { width: clamp(44px, 3.5vw, 56px); height: clamp(44px, 3.5vw, 56px); background: var(--orange); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: clamp(1rem, 1.4vw, 1.3rem); color: var(--white); margin-bottom: 20px; }
.hiw-who-card h3 { color: var(--white); font-size: clamp(1rem, 1.3vw, 1.15rem); margin-bottom: 12px; }
.hiw-who-card p { color: rgba(255,255,255,0.6); font-size: clamp(0.85rem, 0.95vw, 0.95rem); line-height: 1.75; flex: 1; margin-bottom: 24px; }
.hiw-who-link { color: var(--orange); text-decoration: none; font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.hiw-who-link:hover { gap: 10px; }
.hiw-who-link i { font-size: 0.75rem; }

/* CONNECTIONS */
.hiw-connections { background: var(--grey-light); padding: clamp(80px, 10vw, 130px) 0; }
.hiw-exchange-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 32px; }
.hiw-exchange-item { background: var(--white); border: 1px solid var(--grey-mid); border-radius: 12px; padding: clamp(14px, 1.5vw, 20px) 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: var(--transition); cursor: default; }
.hiw-exchange-item:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }
.hiw-exchange-item i { color: var(--orange); font-size: 0.7rem; }
.hiw-exchange-item span { font-size: clamp(0.78rem, 0.85vw, 0.875rem); font-weight: 700; color: var(--navy); }
.hiw-exchange-more { background: rgba(247,147,26,0.06); border-color: rgba(247,147,26,0.2); }
.hiw-exchange-more span { color: var(--orange); }
.hiw-csv-note { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border: 1px solid var(--grey-mid); border-radius: 12px; padding: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 28px); }
.hiw-csv-note i { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.hiw-csv-note span { font-size: clamp(0.85rem, 0.95vw, 0.95rem); color: var(--grey-text); line-height: 1.6; }

/* PRIVACY */
.hiw-privacy { background: var(--white); padding: clamp(80px, 10vw, 130px) 0; }
.hiw-privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.hiw-privacy-card { background: var(--grey-light); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.5vw, 32px); position: relative; transition: var(--transition); overflow: hidden; }
.hiw-privacy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hiw-privacy-num { position: absolute; top: 16px; right: 20px; font-size: 3.5rem; font-weight: 900; color: rgba(18,40,60,0.06); line-height: 1; }
.hiw-privacy-icon { width: clamp(44px, 3.5vw, 56px); height: clamp(44px, 3.5vw, 56px); background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--orange); margin-bottom: 20px; }
.hiw-privacy-card h3 { font-size: clamp(0.95rem, 1.1vw, 1.05rem); color: var(--black); margin-bottom: 12px; }
.hiw-privacy-card p { font-size: clamp(0.83rem, 0.9vw, 0.9rem); color: var(--grey-text); line-height: 1.8; }

/* HOW IT WORKS RESPONSIVE */
@media (max-width: 1100px) {
    .hiw-exchange-grid { grid-template-columns: repeat(4, 1fr); }
    .hiw-privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hiw-step-grid { grid-template-columns: 1fr; gap: 48px; }
    .hiw-step-reversed { direction: ltr; }
    .hiw-who-grid { grid-template-columns: 1fr; }
    .hiw-step-num { font-size: clamp(4rem, 8vw, 6rem); }
}
@media (max-width: 768px) {
    .hiw-steps-inner { gap: 0; flex-wrap: wrap; justify-content: center; }
    .hiw-step-preview { padding: 16px 24px; }
    .hiw-exchange-grid { grid-template-columns: repeat(3, 1fr); }
    .hiw-privacy-grid { grid-template-columns: 1fr 1fr; }
    .mockup-clarity-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hiw-exchange-grid { grid-template-columns: repeat(2, 1fr); }
    .hiw-privacy-grid { grid-template-columns: 1fr; }
    .step-preview-arrow { display: none; }
}