/* ============================================================
   FEATHERWORK INVOICING — HOW IT WORKS PAGE
   Loaded alongside base.css + home.css: reuses the shared header,
   footer, .container, .btn, design tokens, and the .mock invoice
   component from those two files. Only adds what's unique here:
   the alternating step layout and the "send" mockup (a shape the
   homepage doesn't have).
   ============================================================ */

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hiw-hero { padding-block: var(--space-16) var(--space-8); }
.hiw-hero__inner {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.hiw-hero__eyebrow {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-accent);
}
.hiw-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 700; }
.hiw-hero__sub { font-size: var(--text-lg); color: var(--color-text-secondary); }

/* ----------------------------------------------------------
   STEPS — alternating text/visual rows, one .mock (or
   .send-mock) per step
   ---------------------------------------------------------- */
.hiw-steps { padding-block: var(--space-8) var(--space-12); }

.detail-step {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding-block: var(--space-16);
}
.detail-step:not(:last-child) { border-bottom: 1px solid var(--color-border); }
.detail-step--reverse { flex-direction: row-reverse; }

.detail-step__text { flex: 1 1 0; min-width: 0; }
.detail-step__visual { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }

.detail-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-text-primary);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}
.detail-step__text h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.detail-step__text > p { font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-normal); margin-bottom: var(--space-5); max-width: 46ch; }

.detail-step__list { display: flex; flex-direction: column; gap: var(--space-3); }
.detail-step__list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-secondary); }
.detail-step__list li svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: .15em;
    padding: 3px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .detail-step, .detail-step--reverse { flex-direction: column; gap: var(--space-8); padding-block: var(--space-10); }
    .detail-step__text > p { max-width: none; }
}

/* ---------- "Build it" mock variant: draft state ---------- */
.mock__invno--draft { color: var(--color-text-tertiary); border-left-color: var(--color-border-strong); }
.mock__bar--ghost {
    background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 10px);
    opacity: .6;
}
.mock__amt--ghost { color: transparent; }

/* ----------------------------------------------------------
   "Send it" mock — a message-thread shape, distinct from the
   invoice-frame .mock used in steps 1 and 3
   ---------------------------------------------------------- */
.send-mock {
    width: min(420px, 100%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.send-mock__header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem var(--space-5);
    background: var(--color-surface-raised);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
}
.send-mock__avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--color-secondary-300); flex: none; }
.send-mock__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.send-mock__bubble {
    align-self: flex-start;
    max-width: 90%;
    background: var(--color-accent-light);
    color: var(--color-text-primary);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
    padding: var(--space-4);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}
.send-mock__card {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}
.send-mock__card-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.send-mock__card-icon svg { width: 18px; height: 18px; }
.send-mock__card-title { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-sm); }
.send-mock__card-sub { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.send-mock__status {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-tertiary);
}
.send-mock__status svg { width: 14px; height: 14px; color: var(--color-accent); }

/* ----------------------------------------------------------
   CTA BAND
   ---------------------------------------------------------- */
.hiw-cta { padding-block: var(--space-20); text-align: center; background: var(--color-surface-raised); border-top: 1px solid var(--color-border); }
.hiw-cta__inner { max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.hiw-cta h2 { font-size: var(--text-2xl); }
.hiw-cta p { color: var(--color-text-secondary); }
