:root {
    --navy: #0d2f4e;
    --navy-2: #173f62;
    --blue: #2f80ed;
    --cyan: #36b8d8;
    --green: #13ad58;
    --orange: #ff7d2b;
    --bg: #f2f6fa;
    --surface: #ffffff;
    --line: #dbe6f0;
    --muted: #63778c;
    --text: #122e48;
    --soft-blue: #eef7ff;
    --soft-green: #eefbf4;
    --soft-yellow: #fff9e9;
    --shadow: 0 12px 34px rgba(19, 54, 84, .10);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.58;
}
button, a { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.progress-bar {
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: width .1s linear;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 76px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 8px 18px rgba(47,128,237,.22);
}
.brand strong { display: block; font-size: 20px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -3px; }
.top-actions { display: flex; gap: 9px; }

.btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(47,128,237,.20); }
.btn-primary:hover { background: #226fd7; }
.btn-light { color: var(--navy); background: #f6f9fc; border: 1px solid var(--line); }
.btn-lg { padding: 14px 20px; }
#toggleNav { display: none; }

.page-shell {
    width: min(1540px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 295px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}
.sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 124px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.sidebar-head { padding: 24px 22px 16px; border-bottom: 1px solid var(--line); }
.sidebar-head h2 { margin: 5px 0 7px; font-size: 22px; }
.sidebar-head p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow {
    display: inline-block;
    color: #5d7890;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.step-nav { padding: 10px; }
.step-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 12px;
    color: #3f5970;
    font-size: 13px;
    font-weight: 700;
    transition: .18s ease;
}
.step-nav a:hover { background: #f2f7fb; color: var(--navy); }
.step-nav a.active { color: #155ea6; background: var(--soft-blue); }
.nav-number {
    flex: 0 0 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid #cfe0ee;
    background: #fff;
    font-weight: 900;
    font-size: 12px;
}
.step-nav a.active .nav-number { color: #fff; border-color: var(--blue); background: var(--blue); }
.sidebar-help {
    margin: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f7fafc;
    border: 1px solid var(--line);
}
.sidebar-help strong, .sidebar-help span { display: block; }
.sidebar-help strong { font-size: 13px; }
.sidebar-help span { color: var(--muted); font-size: 11px; margin-top: 4px; }

.content { min-width: 0; }
.hero {
    min-height: 440px;
    display: grid;
    grid-template-columns: 1fr 1.02fr;
    gap: 34px;
    align-items: center;
    padding: 40px;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(60,190,219,.32), transparent 32%),
        linear-gradient(135deg, #0c2d4a 0%, #16486c 100%);
    box-shadow: var(--shadow);
}
.pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    padding: 7px 11px;
    border-radius: 99px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .09em;
}
.hero h1 { margin: 16px 0 14px; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.hero p { max-width: 700px; margin: 0 0 18px; color: #d9e9f5; font-size: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 24px; color: #bcd4e6; font-size: 13px; font-weight: 700; }
.hero-image {
    position: relative;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.30);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-3deg);
}
.hero-image img { display: block; width: 100%; }
.hero-image span { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 9px; color: #fff; background: rgba(7,30,49,.82); font-size: 11px; font-weight: 800; }

.quick-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.quick-flow div { display: flex; align-items: center; gap: 8px; }
.quick-flow div span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-size: 12px; font-weight: 900; }
.quick-flow strong { font-size: 12px; }
.quick-flow i { color: #a5b5c3; font-style: normal; }

.requirements {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 22px;
    background: var(--soft-blue);
    border: 1px solid #cfe7fa;
    border-radius: 18px;
}
.requirements-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; font-size: 20px; }
.requirements h2 { margin: 0 0 4px; font-size: 20px; }
.requirements p { margin: 0; color: #46657f; }

.manual-step {
    margin: 0 0 26px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 7px 23px rgba(19,54,84,.05);
}
.step-heading {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.step-badge {
    flex: 0 0 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(47,128,237,.18);
}
.step-heading h2 { margin: 3px 0 6px; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; }
.step-heading p { margin: 0; color: var(--muted); }
.step-grid {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    gap: 26px;
    align-items: start;
    padding-top: 24px;
}
.instructions-card {
    padding: 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.instructions-card h3 { margin: 0 0 14px; font-size: 17px; }
.instructions-card ol { margin: 0; padding-left: 24px; }
.instructions-card li { margin: 0 0 12px; padding-left: 5px; color: #3d566d; }
.instructions-card li::marker { color: var(--blue); font-weight: 900; }
.callout { display: flex; gap: 11px; margin-top: 18px; padding: 14px; border-radius: 14px; font-size: 13px; }
.callout > span { font-size: 18px; }
.callout strong { display: block; margin-bottom: 2px; }
.callout p { margin: 0; }
.callout.tip { background: var(--soft-green); border: 1px solid #caedd9; }
.callout.warning { background: var(--soft-yellow); border: 1px solid #f0dfaa; }

.screenshot-card { margin: 0; min-width: 0; }
.screenshot-card > button {
    position: relative;
    display: block;
    width: 100%;
    min-height: 190px;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: #eef3f7;
    border: 1px solid #d7e3ed;
    border-radius: 17px;
    box-shadow: 0 10px 25px rgba(21,60,91,.08);
}
.screenshot-card img { display: block; width: 100%; height: auto; }
.zoom-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(13,47,78,.88);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(5px);
    transition: .18s ease;
}
.screenshot-card button:hover .zoom-label { opacity: 1; transform: translateY(0); }
.screenshot-card figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }

.finish-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 26px;
    margin: 32px 0 22px;
    color: #fff;
    border-radius: 22px;
    background: linear-gradient(135deg, #0b8750, #16af67);
    box-shadow: 0 15px 35px rgba(11,135,80,.18);
}
.finish-icon { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 50%; font-size: 25px; font-weight: 900; }
.finish-card .eyebrow { color: #c9f5dd; }
.finish-card h2 { margin: 3px 0 4px; }
.finish-card p { margin: 0; color: #d7f4e5; }
.finish-card .btn-primary { background: #fff; color: #087744; box-shadow: none; }

.summary-card { margin: 0 0 25px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.summary-card h2 { margin-top: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfe; }
.summary-grid span, .summary-grid strong, .summary-grid small { display: block; }
.summary-grid span { font-size: 22px; }
.summary-grid strong { margin-top: 8px; }
.summary-grid small { margin-top: 3px; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px 28px; color: var(--muted); font-size: 12px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 44px 26px 24px;
    background: rgba(4,16,27,.92);
    backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1500px, 96vw); max-height: 84vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 70px rgba(0,0,0,.4); }
.lightbox p { margin: 10px 0 0; color: #dce8f1; font-size: 13px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-size: 26px; }
body.no-scroll { overflow: hidden; }

@media (max-width: 1120px) {
    .page-shell { grid-template-columns: 1fr; padding: 20px; }
    .sidebar { position: fixed; z-index: 1200; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); max-height: none; border-radius: 0 22px 22px 0; transform: translateX(-105%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.20); }
    #toggleNav { display: inline-flex; }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 30px; }
    .hero-image { transform: none; }
    .step-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-flow { justify-content: flex-start; overflow-x: auto; }
    .quick-flow div { min-width: max-content; }
    .finish-card { grid-template-columns: auto 1fr; }
    .finish-card .btn { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .topbar { padding: 10px 14px; }
    .brand small { display: none; }
    .top-actions .btn { padding: 9px 11px; font-size: 12px; }
    .top-actions .btn-primary { display: none; }
    .page-shell { padding: 12px; }
    .hero { min-height: 0; padding: 24px 20px; border-radius: 20px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15px; }
    .manual-step { padding: 20px 16px; border-radius: 19px; }
    .step-heading { gap: 12px; }
    .step-badge { flex-basis: 40px; height: 40px; border-radius: 12px; }
    .step-heading h2 { font-size: 23px; }
    .instructions-card { padding: 16px; }
    .summary-grid { grid-template-columns: 1fr; }
    .requirements { padding: 17px; }
    footer { flex-direction: column; }
}

@media print {
    .progress-bar, .topbar, .sidebar, .quick-flow, .hero .btn, .zoom-label, .lightbox { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .page-shell { display: block; padding: 0; width: 100%; }
    .hero { min-height: 0; display: block; color: #000; background: #fff; box-shadow: none; padding: 0 0 20px; border-radius: 0; }
    .hero p, .hero-meta { color: #333; }
    .hero-image { margin-top: 16px; transform: none; box-shadow: none; }
    .manual-step { page-break-inside: avoid; box-shadow: none; border: 1px solid #ccc; margin: 0 0 18px; padding: 18px; }
    .step-grid { grid-template-columns: 1fr 1.2fr; gap: 15px; }
    .instructions-card { background: #fff; }
    .screenshot-card > button { border: 1px solid #ccc; box-shadow: none; }
    .finish-card { color: #000; background: #fff; border: 2px solid #1a8e58; box-shadow: none; }
    .finish-card p, .finish-card .eyebrow { color: #333; }
    .finish-card .btn { display: none; }
}
