/* ═══════════════════════════════════════════════════════════════════════════
   /how-it-works — "Revideo — How It Works" design canvas (2026-10-14).
   Markup: resources/views/home/pages/how-it-works.blade.php (+ _tour,
   _step-head), inside .hv-design. Every class is hw-; colours are
   revideo.css theme tokens so light and dark both work. Ink panels stay
   dark in both themes.
   ═══════════════════════════════════════════════════════════════════════════ */

.hw {
    --hw-ink: var(--rv-ink, #16161d);
    --hw-body: var(--rv-body, #5c5c70);
    --hw-text: var(--rv-ink-alt, #40404f);
    --hw-muted: var(--rv-muted, #6e6e83);
    --hw-page: var(--rv-page, #fbfbfd);
    --hw-card: var(--rv-surface, #fff);
    --hw-line: var(--rv-border, #ececf4);
    --hw-line-soft: #f1f1f6;
    --hw-soft: var(--rv-surface-3, #f2f2f7);
    --hw-tint: #f7f6fd;
    --hw-well: #fafaff;
    --hw-pale: var(--rv-surface-4, #f0effa);
    --hw-violet: #5850ec;
    --hw-violet-text: #6d5ce6;
    --hw-violet-ink: #5b4dd1;
    --hw-violet-line: #ddd6fe;
    --hw-grad: linear-gradient(120deg, #5850ec, #8b5cf6);
    --hw-panel: #16161d;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--hw-ink);
    background: var(--hw-page);
    overflow-x: hidden;
}
[data-theme="dark"] .hw {
    --hw-text: var(--rv-body, #b4b4c8);
    --hw-line-soft: var(--rv-border, #26263a);
    --hw-tint: #12121d;
    --hw-well: var(--rv-surface-2, #1a1a28);
    --hw-violet-text: #a78bfa;
    --hw-violet-ink: #c4b5fd;
    --hw-violet-line: #3a3466;
    --hw-panel: #1c1c2b;
}
.hw *, .hw *::before, .hw *::after { box-sizing: border-box; }
.hw a { color: var(--hw-violet); }
.hw section[id] { scroll-margin-top: calc(var(--nav-height, 72px) + 16px); }
.hw a:focus-visible, .hw button:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 3px; }
/* main.css turns every <nav> into the old sticky white header — this one is in-page */
.hw nav, html.vt-scroll-lock .hw nav { position: static !important; top: auto !important; left: auto !important; z-index: auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: none; }

.hw-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hw-col { display: flex; flex-direction: column; }
.hw-stack { display: flex; flex-direction: column; gap: 32px; }
.hw-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hw-row--center { justify-content: center; }

/* type */
.hw-grad { background: var(--hw-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hw-grad--light { background: linear-gradient(120deg, #a78bfa, #c4b5fd); -webkit-background-clip: text; background-clip: text; }
.hw-h1 { margin: 0; max-width: 920px; font-size: 60px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--hw-ink); }
.hw-h2 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--hw-ink); }
.hw-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--hw-body); max-width: 760px; }
.hw-lead strong { color: var(--hw-ink); }
.hw-lead--hero { max-width: 660px; font-size: 18px; }
.hw-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--hw-pale); border: 1px solid var(--hw-violet-line); color: var(--hw-violet-ink); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* buttons */
.hw .hw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .18s cubic-bezier(.23,1,.32,1); }
.hw .hw-btn:hover { transform: translateY(-1px); }
.hw .hw-btn--primary { background: var(--hw-grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(109,92,230,.55); }
.hw .hw-btn--primary:hover { color: #fff; }
.hw .hw-btn--ink { background: #16161d; color: #fff; align-self: flex-start; margin-top: 6px; }
.hw .hw-btn--ink:hover { color: #fff; }
[data-theme="dark"] .hw .hw-btn--ink { background: #2b2a55; }
.hw .hw-btn--ghost { background: var(--hw-card); color: var(--hw-ink); border: 1px solid var(--hw-violet-line); }
.hw .hw-btn--ghost:hover { color: var(--hw-ink); border-color: #a78bfa; }
.hw .hw-btn--white { background: #fff; color: #16161d; }
.hw .hw-btn--white:hover { color: #16161d; }
.hw .hw-btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hw .hw-btn--outline:hover { color: #fff; border-color: #fff; }
.hw .hw-btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

/* hero */
.hw-hero { position: relative; padding: 80px 0 64px; }
.hw-hero__glow { position: absolute; inset: 0; background: radial-gradient(640px 320px at 50% 0%, rgba(139,92,246,.14), transparent 70%); pointer-events: none; }
.hw-hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hw-jump { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hw-jump__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--hw-muted); }
.hw-jump__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 980px; }
.hw .hw-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px; background: var(--hw-card); border: 1px solid var(--hw-line); color: var(--hw-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.hw .hw-chip:hover { border-color: #a78bfa; color: var(--hw-ink); }
.hw-chip b { width: 24px; height: 24px; border-radius: 50%; background: var(--hw-pale); color: var(--hw-violet); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* sections + step heading */
.hw-sec { padding: 72px 0; }
.hw-sec--top { border-top: 1px solid var(--hw-line-soft); }
.hw-sec--tint { background: var(--hw-tint); border-top: 1px solid var(--hw-line); border-bottom: 1px solid var(--hw-line); }
.hw-sec--nobottom { border-bottom: 0; }
.hw-step-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.hw-step-num { flex: none; width: 64px; height: 64px; border-radius: 20px; background: var(--hw-grad); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -10px rgba(109,92,230,.55); }
.hw-step-num--ink { background: #16161d; box-shadow: none; }
[data-theme="dark"] .hw-step-num--ink { background: #2b2a45; }
.hw-step-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 10px; }
.hw-kicker { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--hw-violet-text); }
.hw-kicker--muted { color: var(--hw-muted); }
.hw-path { padding: 3px 10px; border-radius: 999px; background: var(--hw-soft); color: var(--hw-text); }
.hw-path--deep { background: var(--hw-pale); color: var(--hw-violet-ink); }
.hw-sec--tint .hw-path--deep { background: var(--hw-card); }

/* annotated screenshot */
.hw-tour { display: flex; flex-direction: column; gap: 32px; }
.hw-tour[hidden], [data-hw-panel][hidden] { display: none !important; }
.hw-shot { position: relative; background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(80,63,205,.30), 0 4px 16px -8px rgba(22,22,29,.10); }
.hw-shot img { display: block; width: 100%; height: auto; }
.hw .hw-dot { position: absolute; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--hw-grad); color: #fff; font: 800 14px/1 'Plus Jakarta Sans', sans-serif; display: flex; align-items: center; justify-content: center; cursor: pointer; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(22,22,29,.25); transition: transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s; }
.hw .hw-dot.is-on { transform: translate(-50%,-50%) scale(1.2); box-shadow: 0 0 0 6px rgba(139,92,246,.35), 0 8px 20px rgba(22,22,29,.35); }
.hw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.hw .hw-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 18px; border-radius: 18px; border: 1.5px solid var(--hw-line); background: var(--hw-card); color: var(--hw-ink); cursor: pointer; font-family: inherit; transition: border-color .18s, background .18s, box-shadow .18s; }
.hw .hw-card:hover { border-color: #a78bfa; }
.hw .hw-card.is-on { border-color: #8b5cf6; background: var(--hw-tint); box-shadow: 0 12px 40px -12px rgba(80,63,205,.28); }
.hw-sec--tint .hw-card.is-on { background: var(--hw-card); }
.hw-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #16161d; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .hw-num { background: #2b2a55; }
.hw-card.is-on .hw-num { background: var(--hw-grad); }
.hw-card__copy { display: flex; flex-direction: column; gap: 4px; }
.hw-card__copy strong { font-size: 15.5px; }
.hw-card__copy span { font-size: 14px; line-height: 1.55; color: var(--hw-body); }

/* tabs */
.hw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hw-stack > .hw-tabs { margin-bottom: 0; }
.hw .hw-tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hw-line); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; background: var(--hw-card); color: var(--hw-text); }
.hw .hw-tab.is-on { background: #16161d; border-color: #16161d; color: #fff; }
[data-theme="dark"] .hw .hw-tab.is-on { background: #5850ec; border-color: #5850ec; }
.hw-panel-note { background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 22px; padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.hw-panel-note strong { font-size: 19px; }
.hw-panel-note span { font-size: 15px; line-height: 1.6; color: var(--hw-body); }
.hw-narrow > .hw-tour > .hw-shot { max-width: 760px; width: 100%; margin: 0 auto; }

/* step 2 fork */
.hw-fork { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 8px; }
.hw .hw-fork__card { text-decoration: none; color: var(--hw-ink); background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 22px; padding: 24px; display: flex; gap: 16px; align-items: center; }
.hw .hw-fork__card:hover { color: var(--hw-ink); border-color: #a78bfa; }
.hw .hw-fork__card--ink { background: var(--hw-panel); border-color: var(--hw-panel); color: #fff; }
.hw .hw-fork__card--ink:hover { color: #fff; }
.hw-fork__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--hw-soft); color: var(--hw-text); display: flex; align-items: center; justify-content: center; }
.hw-fork__ico--grad { background: var(--hw-grad); }
.hw-fork__copy { display: flex; flex-direction: column; gap: 4px; }
.hw-fork__copy strong { font-size: 17px; }
.hw-fork__copy span { font-size: 14px; color: var(--hw-body); }
.hw-fork__card--ink .hw-fork__copy span { color: #c4c4d4; }
.hw-fork__go { margin-left: auto; color: var(--hw-violet-text); font-weight: 800; }
.hw-fork__card--ink .hw-fork__go { color: #a78bfa; }

/* step 3 upsell */
.hw-upsell { background: var(--hw-card); border: 1.5px dashed var(--hw-violet-line); border-radius: 22px; padding: 24px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hw-upsell__copy { display: flex; flex-direction: column; gap: 4px; max-width: 720px; }
.hw-upsell__copy strong { font-size: 17px; }
.hw-upsell__copy span { font-size: 15px; color: var(--hw-body); }

/* deep path banner */
.hw-banner-sec { padding: 0 0 8px; }
.hw-banner { position: relative; overflow: hidden; background: var(--hw-panel); color: #fff; border-radius: 32px; padding: 48px; display: flex; flex-direction: column; gap: 14px; }
[data-theme="dark"] .hw-banner { border: 1px solid var(--hw-line); }
.hw-banner__glow { position: absolute; right: -100px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.45), transparent 70%); }
.hw-banner > :not(.hw-banner__glow) { position: relative; }
.hw-banner__kick { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #a78bfa; }
.hw-banner .hw-h2 { color: #fff; max-width: 760px; }
.hw-banner .hw-lead { color: #c4c4d4; max-width: 720px; }

/* step 6 legend */
.hw-legend { background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hw-legend__title { font-size: 17px; }
.hw-legend__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.hw-legend__item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--hw-well); }
.hw-legend__item strong { font-size: 13px; letter-spacing: .08em; color: var(--hw-violet-text); }
.hw-legend__item span { font-size: 14px; color: var(--hw-text); }
.hw-legend__key { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--hw-body); padding-top: 6px; border-top: 1px solid var(--hw-line-soft); }
.hw-legend__key > span { display: inline-flex; gap: 8px; align-items: center; }
.hw-mark { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; font-style: normal; }
.hw-mark--ok { background: #f0fdf7; border: 1px solid #b9e8d4; color: #00915f; }
.hw-mark--no { background: #fef2f2; border: 1px solid #fecaca; color: #c81e1e; }
.hw-mark--na { border: 1px dashed #d4d4de; color: var(--hw-muted); }
[data-theme="dark"] .hw-mark--ok { background: rgba(0,145,95,.15); border-color: rgba(0,145,95,.4); color: #34d399; }
[data-theme="dark"] .hw-mark--no { background: rgba(200,30,30,.15); border-color: rgba(248,113,113,.4); color: #f87171; }
[data-theme="dark"] .hw-mark--na { border-color: var(--hw-line); }

/* step 7 "you can" */
.hw-can { background: var(--hw-panel); color: #fff; border-radius: 22px; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
[data-theme="dark"] .hw-can { border: 1px solid var(--hw-line); }
.hw-can__kick { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #a78bfa; }
.hw-can__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.hw-can__item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06); }
.hw-can__item svg { flex: none; margin-top: 2px; }
.hw-can__item > span { display: flex; flex-direction: column; gap: 4px; }
.hw-can__item > span > span { font-size: 14px; color: #c4c4d4; }

/* dashboard map */
.hw-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.hw-map__card { background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.hw-map__card strong { font-size: 16px; }
.hw-map__card span:not(.hw-map__kick) { font-size: 14px; color: var(--hw-body); }
.hw-map__kick { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--hw-violet-text); }
.hw-map__card--ink { background: var(--hw-panel); border-color: var(--hw-panel); color: #fff; }
.hw-map__card--ink .hw-map__kick { color: #a78bfa; }
.hw-map__card--ink span:not(.hw-map__kick) { color: #c4c4d4; }

/* recap */
.hw-recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.hw-recap__card { background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 26px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.hw-recap__card--ink { background: var(--hw-panel); border-color: var(--hw-panel); color: #fff; box-shadow: 0 30px 80px -24px rgba(80,63,205,.45); }
.hw-recap__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hw-recap__head strong { font-size: 22px; }
.hw-recap__badge { padding: 5px 12px; border-radius: 999px; background: #f0fdf7; color: #00915f; font-size: 13px; font-weight: 700; border: 1px solid #b9e8d4; }
[data-theme="dark"] .hw-recap__badge { background: rgba(0,145,95,.15); border-color: rgba(0,145,95,.4); color: #34d399; }
.hw-recap__badge--grad { background: var(--hw-grad) !important; color: #fff !important; border: 0 !important; }
.hw-recap__card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--hw-text); }
.hw-recap__card--ink ul { color: #e4e4ee; }
.hw-recap__card--ink .hw-btn { align-self: flex-start; margin-top: 6px; }

/* final cta (gradient in both themes) */
.hw-cta-sec { padding: 0 0 88px; }
.hw-cta { position: relative; overflow: hidden; background: var(--hw-grad); color: #fff; border-radius: 32px; padding: 64px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hw-cta .hw-h2 { color: #fff; max-width: 720px; }
.hw-cta .hw-lead { color: #ede9fe; max-width: 560px; }

@media (max-width: 860px) {
    .hw-h1 { font-size: 40px; }
    .hw-h2 { font-size: 30px; }
    .hw-hero { padding: 48px 0 48px; }
    .hw-sec { padding: 56px 0; }
    .hw .hw-dot { width: 22px; height: 22px; font-size: 11px; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(22,22,29,.25); }
    .hw-banner, .hw-cta, .hw-legend { padding: 28px 20px; }
    .hw-step-num { width: 52px; height: 52px; font-size: 23px; border-radius: 16px; }
    .hw-step-head { gap: 16px; }
    .hw-tour { gap: 20px; }
    .hw-shot { border-radius: 14px; }
}
@media (max-width: 480px) {
    .hw-wrap { padding: 0 16px; }
    .hw-h1 { font-size: 33px; }
    .hw-h2 { font-size: 26px; }
    .hw .hw-dot { width: 18px; height: 18px; font-size: 10px; }
    .hw .hw-chip { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .hw *, .hw *::before, .hw *::after { transition: none !important; }
}
