/* ============================================
   how-it-works.css — EduCoach
   Matches home.css color pattern exactly
   ============================================ */

/* ---------- HERO ---------- */
.hiw-hero {
    background: #f5f0e8;
    padding: 5rem 2rem 4rem;
    overflow: hidden;
}
.hiw-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hiw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e2d9cc;
    color: #666;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}
.hiw-hero-badge span { color: #e8651a; }
.hiw-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #0a1628;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
}
.hiw-hero-title em { font-style: italic; color: #e8651a; }
.hiw-hero-sub {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 460px;
}
.hiw-hero-nums {
    display: flex;
    gap: 2.5rem;
}
.hiw-hero-nums strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0a1628;
    line-height: 1;
    margin-bottom: .2rem;
}
.hiw-hero-nums span { font-size: .78rem; color: #94a3b8; }

/* Right card */
.hiw-hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(10,22,40,.1);
    border: 1px solid #e8e0d5;
}
.hiw-hero-card-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94a3b8;
    margin-bottom: 1.1rem;
}
.hiw-mini-step {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    margin-bottom: .5rem;
    background: #f8fafc;
}
.hiw-mini-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hiw-mini-text {
    font-size: .86rem;
    font-weight: 600;
    color: #0a1628;
}
.hiw-mini-time {
    margin-left: auto;
    font-size: .68rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* ---------- ROLES SECTION ---------- */
.hiw-roles {
    background: #fff;
    padding: 5rem 2rem;
}
.hiw-roles-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.hiw-roles-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.hiw-roles-header .ec-subtext { margin: 0 auto; max-width: 520px; }

.hiw-roles-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.hiw-role-tab {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    color: #475569;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
}
.hiw-role-tab:hover {
    border-color: #e8651a;
    color: #e8651a;
    background: #fff7f0;
}
.hiw-role-tab.active {
    background: #e8651a;
    border-color: #e8651a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,101,26,.28);
}

/* Role panels */
.hiw-role-panel { display: none; }
.hiw-role-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.hiw-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hiw-step-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}
.hiw-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(232,101,26,.25);
}
.hiw-step-body {}
.hiw-step-title {
    font-size: .98rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: .3rem;
}
.hiw-step-desc {
    font-size: .83rem;
    color: #64748b;
    line-height: 1.65;
}

/* Right visual panel */
.hiw-role-visual {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e8e0d5;
}
.hiw-visual-header {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}
.hiw-visual-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: .6rem;
    border: 1px solid #e8e0d5;
}
.hiw-visual-icon { font-size: 1.2rem; flex-shrink: 0; }
.hiw-visual-label {
    font-size: .84rem;
    font-weight: 600;
    color: #0a1628;
}
.hiw-visual-val {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 700;
    color: #e8651a;
}

/* ---------- COMPARISON TABLE ---------- */
.hiw-compare {
    background: #f5f0e8;
    padding: 5rem 2rem;
}
.hiw-compare-inner {
    max-width: 900px;
    margin: 0 auto;
}
.hiw-compare-header {
    text-align: center;
    margin-bottom: 3rem;
}
.hiw-compare-header .ec-subtext { margin: 0 auto; }

.hiw-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10,22,40,.08);
    border: 1px solid #e8e0d5;
}
.hiw-table thead tr {
    background: #0a1628;
}
.hiw-table thead th {
    padding: 1rem 1.5rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
    text-align: left;
}
.hiw-table thead th:first-child { color: rgba(255,255,255,.4); }
.hiw-table thead th.highlight { color: #e8651a; }

.hiw-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.hiw-table tbody tr:last-child { border-bottom: none; }
.hiw-table tbody tr:hover { background: #f8fafc; }
.hiw-table tbody td {
    padding: .9rem 1.5rem;
    font-size: .86rem;
    color: #475569;
}
.hiw-table tbody td:first-child {
    font-weight: 600;
    color: #0a1628;
}
.hiw-check { color: #16a34a; font-size: 1rem; }
.hiw-cross { color: #94a3b8; font-size: 1rem; }

/* ---------- FAQ ---------- */
.hiw-faq {
    background: #fff;
    padding: 5rem 2rem;
}
.hiw-faq-inner {
    max-width: 780px;
    margin: 0 auto;
}
.hiw-faq-header {
    text-align: center;
    margin-bottom: 3rem;
}
.hiw-faq-item {
    border-bottom: 1px solid #f1f5f9;
}
.hiw-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    color: #0a1628;
    gap: 1rem;
    user-select: none;
}
.hiw-faq-q:hover { color: #e8651a; }
.hiw-faq-icon {
    font-size: 1.2rem;
    color: #e8651a;
    transition: transform .25s;
    flex-shrink: 0;
}
.hiw-faq-item.open .hiw-faq-icon { transform: rotate(45deg); }
.hiw-faq-a {
    font-size: .87rem;
    color: #64748b;
    line-height: 1.75;
    padding-bottom: 1.2rem;
    display: none;
}
.hiw-faq-item.open .hiw-faq-a { display: block; }

/* ---------- CTA ---------- */
.hiw-cta {
    background: #0a1628;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hiw-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(232,101,26,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(13,148,136,.08) 0%, transparent 45%);
    pointer-events: none;
}
.hiw-cta-inner {
    position: relative; z-index: 1;
    max-width: 580px; margin: 0 auto;
}
.hiw-cta-eyebrow {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: #e8651a; display: block; margin-bottom: .75rem;
}
.hiw-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900; color: #fff;
    line-height: 1.2; margin-bottom: .9rem; letter-spacing: -.02em;
}
.hiw-cta-title em { font-style: italic; color: #e8651a; }
.hiw-cta-sub {
    font-size: 1rem; color: rgba(255,255,255,.55);
    line-height: 1.75; margin-bottom: 2rem;
}
.hiw-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hiw-btn-orange {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #e8651a; color: #fff;
    padding: .9rem 2rem; border-radius: 10px;
    font-size: .92rem; font-weight: 700; text-decoration: none;
    transition: background .18s, transform .18s;
    box-shadow: 0 6px 20px rgba(232,101,26,.35);
}
.hiw-btn-orange:hover { background: #c0501a; transform: translateY(-2px); color: #fff; }
.hiw-btn-white {
    display: inline-flex; align-items: center; gap: .45rem;
    background: transparent; border: 2px solid rgba(255,255,255,.25);
    color: #fff; padding: .9rem 2rem; border-radius: 10px;
    font-size: .92rem; font-weight: 700; text-decoration: none;
    transition: border-color .18s, background .18s;
}
.hiw-btn-white:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hiw-hero-inner { grid-template-columns: 1fr; }
    .hiw-hero-card  { display: none; }
    .hiw-role-panel.active { grid-template-columns: 1fr; }
    .hiw-role-visual { display: none; }
}
@media (max-width: 640px) {
    .hiw-hero-nums { gap: 1.5rem; }
    .hiw-table thead th, .hiw-table tbody td { padding: .7rem 1rem; }
}