:root {
    --navy: #0f1626;
    --navy-soft: #1a2439;
    --orange: #eb6131;
    --orange-dark: #d44f22;
    --orange-pale: #fff1eb;
    --paper: #f7f5f0;
    --paper-deep: #eeebe3;
    --white: #ffffff;
    --ink: #172033;
    --muted: #626a79;
    --line: #dedbd3;
    --success: #26745e;
    --success-pale: #eaf6f1;
    --shadow: 0 18px 60px rgba(15, 22, 38, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans TC", "Noto Sans JP", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body::selection { background: rgba(235, 97, 49, 0.25); }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.content-shell { width: min(calc(100% - 40px), 980px); }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--white);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,.13);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 145px; height: auto; }

.language-switcher { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.language-switcher > span { margin-right: 8px; color: rgba(255,255,255,.62); }
.language-switcher a {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.language-switcher a:hover, .language-switcher a:focus-visible { color: var(--white); border-color: rgba(255,255,255,.3); }
.language-switcher a[aria-current="page"] { background: var(--white); color: var(--navy); font-weight: 700; }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 168px 0 104px;
    background:
        radial-gradient(circle at 80% 20%, rgba(235, 97, 49, .12), transparent 25%),
        linear-gradient(135deg, #0b1120 0%, var(--navy) 55%, #19243a 100%);
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -55%;
    width: 760px;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .8; pointer-events: none; }
.hero-glow-one { width: 380px; height: 380px; left: -180px; top: 150px; background: rgba(235,97,49,.08); }
.hero-glow-two { width: 240px; height: 240px; right: 30%; bottom: -130px; border: 1px solid rgba(235,97,49,.22); }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 64px; align-items: start; }
.hero-copy { max-width: 850px; }

.eyebrow, .section-kicker {
    margin: 0 0 20px;
    color: var(--orange);
    font-family: "Outfit", "Noto Sans TC", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 32px; height: 2px; background: var(--orange); }

h1, h2, h3, h4 { margin-top: 0; color: var(--ink); font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif; line-height: 1.2; }
.hero h1 { max-width: 700px; margin-bottom: 24px; color: var(--white); font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -.035em; }
.hero-intro { max-width: 640px; margin: 0 0 34px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.85; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: transform .2s, background-color .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(235,97,49,.55); outline-offset: 3px; }
.button-primary { background: var(--orange); color: var(--white); box-shadow: 0 12px 28px rgba(235,97,49,.22); }
.button-primary:hover { background: var(--orange-dark); }
.button-quiet { border-color: rgba(255,255,255,.24); color: var(--white); }
.button-quiet:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.start-setup-button { cursor: pointer; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: rgba(255,255,255,.58); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { min-width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--white); font-size: 10px; font-style: normal; }

.hero-visual { width: 100%; margin: 0; }
.hero-frame { position: relative; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: rgba(255,255,255,.06); box-shadow: 0 32px 90px rgba(0,0,0,.32); transform: rotate(1.2deg); }
.hero-frame::before { content: ""; position: absolute; inset: -18px; z-index: -1; border: 1px solid rgba(235,97,49,.18); border-radius: 32px; transform: rotate(-3deg); }
.hero-frame img { width: 100%; height: auto; aspect-ratio: 1883 / 869; object-fit: contain; border-radius: 17px; }
.hero-visual figcaption { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: rgba(255,255,255,.62); font-size: 13px; }
.hero-visual figcaption span { width: 8px; height: 8px; border-radius: 50%; background: #62d6a9; box-shadow: 0 0 0 5px rgba(98,214,169,.12); }

.section-heading { max-width: 500px; }
.section-heading.compact { max-width: 680px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.025em; }
.section-heading > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 17px; }

.equipment-section { overflow: hidden; padding: 108px 0 122px; background: var(--paper-deep); }
.equipment-layout { display: grid; grid-template-columns: minmax(250px,.58fr) minmax(0,1.42fr); gap: 72px; align-items: center; }
.equipment-heading { position: relative; z-index: 2; }
.equipment-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.equipment-card { min-width: 0; }
.equipment-card-1 { transform: translateY(-18px); }
.equipment-card-2 { transform: translateY(24px); }
.equipment-card-3 { transform: translateY(-6px); }
.equipment-card figure { height: 100%; margin: 0; padding: 16px; border: 1px solid rgba(15,22,38,.1); border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: 0 16px 42px rgba(15,22,38,.07); }
.equipment-image-wrap { height: 230px; display: grid; place-items: center; padding: 12px; border-radius: 16px; background: var(--white); }
.equipment-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.equipment-card figcaption { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: start; padding: 19px 4px 4px; }
.equipment-card figcaption > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--white); font-family: "Outfit",sans-serif; font-size: 11px; font-weight: 700; }
.equipment-card h3 { margin: 2px 0 7px; font-size: 19px; line-height: 1.4; }
.equipment-requirement { display: inline-flex; align-items: center; margin: 0 0 9px; padding: 5px 9px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-dark); font-size: 13px; font-weight: 700; line-height: 1.4; }
.equipment-requirement::before { content: "●"; margin-right: 5px; font-size: 7px; }
.equipment-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.equipment-action { grid-column: 2; display: flex; justify-content: flex-end; margin-top: 18px; }
.equipment-action .button { min-width: 210px; cursor: pointer; }

.preflight-section { padding: 100px 0; background: var(--paper-deep); }
.preflight-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.local-note { margin-top: 24px !important; padding-left: 14px; border-left: 2px solid var(--orange); font-size: 13px !important; }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist label { min-height: 72px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 16px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); cursor: pointer; transition: background-color .2s, border-color .2s; }
.checklist label:hover { border-color: rgba(235,97,49,.38); background: var(--white); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid #aaa79f; border-radius: 8px; background: var(--white); transition: background .2s, border-color .2s; }
.custom-check::after { content: "✓"; color: var(--white); font-size: 14px; font-weight: 700; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.checklist input:checked + .custom-check { border-color: var(--success); background: var(--success); }
.checklist input:checked + .custom-check::after { opacity: 1; transform: scale(1); }
.checklist input:focus-visible + .custom-check { outline: 3px solid rgba(235,97,49,.35); outline-offset: 3px; }

.progress-dock { position: sticky; z-index: 15; top: 0; border-bottom: 1px solid rgba(15,22,38,.08); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.progress-inner { min-height: 138px; display: grid; grid-template-columns: minmax(210px,.28fr) minmax(620px,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 32px; row-gap: 10px; padding-block: 14px; }
.progress-current { grid-row: 1 / 3; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.progress-stage-count { grid-column: 1 / -1; margin-bottom: 3px; color: var(--orange-dark) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.progress-current strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 17px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.progress-current > span:last-child { margin-top: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.stage-track { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.stage-track li { position: relative; min-width: 0; display: grid; grid-template-rows: 24px auto; justify-items: center; align-content: start; gap: 7px; color: #858a95; text-align: center; }
.stage-track li::after { content: ""; position: absolute; z-index: -1; left: calc(50% + 12px); right: calc(-50% + 5px); top: 11px; height: 2px; background: var(--line); }
.stage-track li:last-child::after { display: none; }
.stage-track li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #c9c8c4; border-radius: 50%; background: var(--white); font-family: "Outfit",sans-serif; font-size: 12px; font-weight: 700; }
.stage-track li em { max-width: 112px; min-width: 0; display: -webkit-box; overflow: hidden; font-size: 12px; font-style: normal; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.stage-track li.is-complete { color: var(--success); }
.stage-track li.is-complete > span { border-color: var(--success); background: var(--success); color: var(--white); }
.stage-track li.is-complete::after { background: var(--success); }
.stage-track li.is-current { color: var(--orange-dark); }
.stage-track li.is-current > span { border-color: var(--orange); background: var(--orange); color: var(--white); box-shadow: 0 0 0 4px rgba(235,97,49,.13); }
.progress-controls { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--orange); transition: width .35s ease; }
.progress-controls button { padding: 5px 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.progress-controls button:hover { color: var(--orange-dark); }

.flow-focus-target:focus { outline: none; }

.instructions-section { padding: 120px 0; }
.js .instructions-section { padding-bottom: calc(100vh + 120px); }
.instructions-heading { margin-bottom: 80px; }
.steps-list, .branch-steps { margin: 0; padding: 0; list-style: none; }
.phase-divider { display: grid; grid-template-columns: 66px 1fr; gap: 22px; align-items: center; margin: 90px 0 34px; scroll-margin-top: 120px; }
.phase-divider:first-child { margin-top: 0; }
.phase-divider > span { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font-family: "Outfit", sans-serif; font-weight: 700; }
.phase-divider h2 { margin: 0 0 4px; font-size: 28px; }
.phase-divider p { margin: 0; color: var(--muted); }

.step-card { position: relative; margin-bottom: 28px; scroll-margin-top: 108px; }
.step-card::before { content: ""; position: absolute; left: 32px; top: -34px; width: 1px; height: 34px; background: var(--line); }
.step-card article { display: grid; grid-template-columns: minmax(0,.92fr) minmax(360px,1.08fr); gap: 42px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.step-copy { min-width: 0; }
.step-label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--orange-dark); font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.step-label span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); color: var(--white); font-family: "Outfit", sans-serif; font-size: 15px; box-shadow: 0 8px 18px rgba(235,97,49,.22); }
.step-card h3 { margin-bottom: 30px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.015em; }
.step-details { margin: 0; }
.step-details > div { padding: 17px 0; border-top: 1px solid var(--line); }
.step-details dt { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.step-details dd { margin: 0; }
.step-details .success-detail { margin-top: 5px; padding: 16px; border: 0; border-radius: 12px; background: var(--success-pale); }
.success-detail dt { color: var(--success); }
.success-detail dd::before { content: "✓"; margin-right: 8px; color: var(--success); font-weight: 700; }
.step-details .tip-detail { margin-top: 10px; padding: 13px 16px; border: 0; border-left: 3px solid var(--orange); background: var(--orange-pale); font-size: 14px; }
.tip-detail dt { color: var(--orange-dark); }
.complete-step-button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; margin-top: 26px; padding: 13px 17px; border: 0; border-radius: 14px; background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(235,97,49,.22); font-weight: 700; text-align: left; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s; }
.complete-step-button:hover { transform: translateY(-2px); background: var(--orange-dark); box-shadow: 0 14px 28px rgba(235,97,49,.28); }
.complete-step-button:focus-visible { outline: 3px solid rgba(235,97,49,.38); outline-offset: 4px; }
.complete-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 13px; }
.complete-arrow { font-size: 20px; transition: transform .2s; }
.complete-step-button:hover .complete-arrow { transform: translateX(3px); }
.complete-step-button[aria-pressed="true"] { background: var(--success); box-shadow: 0 10px 24px rgba(38,116,94,.2); }
.complete-step-button[aria-pressed="true"] .complete-icon { background: var(--white); color: var(--success); }
.complete-step-button[aria-pressed="true"] .complete-arrow { transform: rotate(-90deg); }
.review-step-button { min-height: 46px; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 15px; border: 1px solid rgba(235,97,49,.42); border-radius: 11px; background: var(--orange-pale); color: var(--orange-dark); font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.review-step-button[hidden] { display: none !important; }
.review-step-button:hover { transform: translateY(-1px); border-color: var(--orange); background: #ffe6dc; }
.step-card.is-complete article { border-color: rgba(38,116,94,.28); }

.account-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.account-choice button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 700; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.account-choice button:hover { border-color: var(--orange); background: var(--orange-pale); }
.account-choice button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: var(--white); }

.js .step-card:not(.is-unlocked),
.js .phase-divider:not(.is-unlocked),
.js .account-branch:not(.is-unlocked),
.js .branch-steps > li:not(.is-unlocked),
.js [data-flow-complete]:not(.is-unlocked) { display: none; }
.step-card.is-unlocked,
.phase-divider.is-unlocked,
.account-branch.is-unlocked,
.branch-steps > li.is-unlocked,
[data-flow-complete].is-unlocked { animation: flow-reveal .32s ease both; }
@keyframes flow-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.step-media { min-width: 0; align-self: center; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 20px; background: var(--paper); }
.step-media figure { width: 100%; margin: 0; }
.step-media img { width: 100%; height: auto; max-height: 480px; object-fit: contain; border-radius: 12px; }
.step-media.media-landscape img { max-height: none; }
.step-media.media-portrait figure { display: grid; justify-items: center; }
.step-media.media-portrait img { width: auto; max-width: 100%; max-height: 560px; }
.step-media img[data-previewable], .branch-steps img[data-previewable], .complete-grid img[data-previewable] { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.step-media img[data-previewable]:hover, .branch-steps img[data-previewable]:hover, .complete-grid img[data-previewable]:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,22,38,.13); }
.step-media img[data-previewable]:focus-visible, .branch-steps img[data-previewable]:focus-visible, .complete-grid img[data-previewable]:focus-visible { outline: 3px solid rgba(235,97,49,.55); outline-offset: 4px; }
.step-media figcaption, .branch-steps figcaption, .complete-grid figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.step-media.media-pair { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.media-pair figure { display: flex; flex-direction: column; justify-content: center; }

.account-branch { margin: 34px 0 46px; padding: 40px; border: 1px dashed rgba(235,97,49,.52); border-radius: var(--radius-lg); background: var(--orange-pale); }
.branch-header { max-width: 720px; margin-bottom: 32px; }
.branch-header > span { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.branch-header h3 { margin-bottom: 10px; font-size: 28px; }
.branch-header p { margin: 0; color: var(--muted); }
.branch-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.branch-links a { padding: 10px 14px; border: 1px solid rgba(235,97,49,.34); border-radius: 10px; background: var(--white); color: var(--orange-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.branch-steps { display: grid; gap: 14px; }
.branch-steps > li { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: center; padding: 26px; border-radius: 18px; background: var(--white); scroll-margin-top: 110px; }
.branch-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: var(--white); font-family: "Outfit", sans-serif; font-weight: 700; }
.branch-copy h4 { margin-bottom: 12px; font-size: 22px; }
.branch-copy p { margin: 0; color: var(--muted); }
.branch-success { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.branch-success strong { color: var(--success); }
.branch-steps figure { margin: 0; padding: 10px; border-radius: 14px; background: var(--paper); }
.branch-steps img { width: 100%; height: auto; max-height: 250px; object-fit: contain; border-radius: 8px; }

.complete-section { position: relative; overflow: hidden; padding: 110px 0; background: var(--navy); color: var(--white); }
.complete-section::before { content: ""; position: absolute; width: 500px; height: 500px; right: -160px; top: -230px; border: 1px solid rgba(235,97,49,.2); border-radius: 50%; }
.complete-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.complete-grid > div { max-width: 720px; }
.complete-grid h2 { margin-bottom: 20px; color: var(--white); font-size: clamp(38px, 5vw, 60px); }
.complete-grid > div > p:not(.section-kicker) { margin: 0 0 30px; color: rgba(255,255,255,.7); font-size: 17px; }
.complete-grid figure { width: 100%; margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.05); }
.complete-grid img { width: 100%; height: auto; object-fit: contain; border-radius: 15px; }
.complete-grid figcaption { color: rgba(255,255,255,.55); }
.return-steps-button { border: 0; cursor: pointer; }

body.flow-finished { background: var(--navy); }
body.flow-finished .site-header,
body.flow-finished .hero,
body.flow-finished .equipment-section,
body.flow-finished .progress-dock,
body.flow-finished .instructions-section,
body.flow-finished .site-footer { display: none; }
body.flow-finished .complete-section { min-height: 100vh; display: grid; align-items: center; padding-block: 70px; }

.troubleshooting-section { padding: 110px 0; background: var(--white); }
.trouble-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.version-note { margin-top: 36px; padding: 20px; border-radius: 14px; background: var(--paper); }
.version-note strong { display: block; margin-bottom: 7px; }
.version-note p { margin: 0; color: var(--muted); font-size: 13px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: absolute; right: 8px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 9px; left: 2px; width: 16px; height: 2px; background: var(--orange); transition: transform .2s; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { margin: -4px 0 24px; padding-right: 48px; color: var(--muted); }

.site-footer { padding: 30px 0; background: #0a0f1b; color: rgba(255,255,255,.55); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-inner a:hover { color: var(--orange); }

.current-step-fab { position: fixed; z-index: 40; right: 24px; bottom: 24px; min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: var(--navy); color: var(--white); box-shadow: 0 14px 38px rgba(15,22,38,.28); font-weight: 700; cursor: pointer; transition: transform .2s, background-color .2s, opacity .2s; }
.current-step-fab:hover { transform: translateY(-3px); background: var(--navy-soft); }
.current-step-fab-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); font-size: 18px; }
.current-step-fab[hidden] { display: none !important; }
body.flow-finished .current-step-fab { display: none; }

.facebook-fab { position: fixed; z-index: 40; left: 24px; bottom: 160px; min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: #155ac2; color: var(--white); box-shadow: 0 14px 38px rgba(15,22,38,.24); font-weight: 700; text-decoration: none; transition: transform .2s, background-color .2s; }
.facebook-fab:hover { transform: translateY(-3px); background: #104b9f; }
.facebook-fab-icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.whatsapp-fab { position: fixed; z-index: 40; left: 24px; bottom: 92px; min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: #187c58; color: var(--white); box-shadow: 0 14px 38px rgba(15,22,38,.24); font-weight: 700; text-decoration: none; transition: transform .2s, background-color .2s; }
.whatsapp-fab:hover { transform: translateY(-3px); background: #126747; }
.whatsapp-fab-icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.faq-fab { position: fixed; z-index: 40; left: 24px; bottom: 24px; min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: var(--navy); color: var(--white); box-shadow: 0 14px 38px rgba(15,22,38,.28); font-weight: 700; cursor: pointer; transition: transform .2s, background-color .2s; }
.faq-fab:hover { transform: translateY(-3px); background: var(--navy-soft); }
.faq-fab-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); font-family: "Outfit",sans-serif; font-size: 18px; font-weight: 700; }
.faq-dialog[hidden] { display: none; }
.faq-dialog { position: fixed; z-index: 900; inset: 0; display: grid; place-items: center; padding: 28px; }
.faq-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(5,9,17,.78); backdrop-filter: blur(7px); cursor: pointer; }
.faq-panel { position: relative; z-index: 1; width: min(94vw, 900px); max-height: min(88vh, 820px); display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.42); }
.faq-panel-header { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 34px 36px 26px; border-bottom: 1px solid var(--line); }
.faq-panel-header .section-kicker { margin-bottom: 10px; }
.faq-panel-header h2 { margin-bottom: 10px; font-size: clamp(30px,4vw,44px); }
.faq-panel-header > div > p:last-child { max-width: 680px; margin: 0; color: var(--muted); }
.faq-close { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.faq-close:hover { background: var(--paper-deep); }
.faq-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 36px 34px; }
.faq-dialog-content .version-note { margin-top: 28px; }
body.faq-open { overflow: hidden; }

.image-lightbox[hidden] { display: none; }
.image-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 28px; }
.lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(5,9,17,.9); backdrop-filter: blur(8px); cursor: zoom-out; }
.lightbox-panel { position: relative; z-index: 1; width: min(94vw, 1500px); height: min(90vh, 980px); max-height: calc(100vh - 56px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 12px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: var(--navy); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.lightbox-toolbar { display: flex; justify-content: center; gap: 8px; }
.lightbox-toolbar button { min-width: 46px; min-height: 42px; display: grid; place-items: center; padding: 5px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.08); color: var(--white); font-size: 20px; font-weight: 700; cursor: pointer; }
.lightbox-toolbar button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }
.lightbox-toolbar button:disabled { opacity: .38; cursor: default; }
.lightbox-toolbar [data-lightbox-zoom-reset] { min-width: 76px; font-size: 14px; }
.lightbox-viewport { min-width: 0; min-height: 0; overflow: auto; border-radius: 12px; background: #080d18; overscroll-behavior: contain; touch-action: pan-x pan-y; scrollbar-color: rgba(255,255,255,.38) transparent; }
.lightbox-canvas { display: grid; place-items: center; }
.lightbox-panel img { display: block; max-width: none; max-height: none; object-fit: contain; border-radius: 8px; }
.lightbox-panel p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; text-align: center; }
.lightbox-close { position: absolute; z-index: 2; top: -18px; right: -18px; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--orange); color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--orange-dark); }
body.lightbox-open { overflow: hidden; }

.resume-dialog[hidden] { display: none; }
.resume-dialog { position: fixed; z-index: 950; inset: 0; display: grid; place-items: center; padding: 24px; }
.resume-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(5,9,17,.78); backdrop-filter: blur(7px); cursor: default; }
.resume-panel { position: relative; z-index: 1; width: min(100%, 560px); padding: 42px; border-radius: 24px; background: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.resume-panel h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 38px); }
.resume-panel > p:not(.section-kicker) { margin: 0; color: var(--muted); }
.resume-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.resume-close:hover { background: var(--paper-deep); }
.resume-actions { display: grid; gap: 10px; margin-top: 30px; }
.resume-actions .button { width: 100%; cursor: pointer; }
.resume-restart { border-color: var(--line); background: var(--white); color: var(--ink); }
.resume-restart:hover { border-color: var(--orange); background: var(--orange-pale); }
body.dialog-open { overflow: hidden; }

@media (max-width: 1050px) {
    .hero-grid { gap: 50px; }
    .equipment-layout { grid-template-columns: 1fr; gap: 54px; }
    .equipment-heading { max-width: 680px; }
    .equipment-action { grid-column: 1; margin-top: 4px; }
    .progress-inner { min-height: 112px; grid-template-columns: minmax(160px,.28fr) minmax(0,1fr); column-gap: 18px; }
    .stage-track li { grid-template-columns: 24px; justify-items: center; }
    .stage-track li em { display: none; }
    .step-card article { grid-template-columns: 1fr; }
    .step-media { max-height: none; }
    .branch-steps > li { grid-template-columns: 1fr 300px; }
}

@media (max-width: 820px) {
    html { scroll-padding-top: 92px; }
    .header-inner { min-height: 74px; }
    .language-switcher > span { display: none; }
    .hero { min-height: auto; padding: 130px 0 84px; }
    .hero-grid, .preflight-grid, .complete-grid, .trouble-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 50px; }
    .hero-copy { max-width: 650px; }
    .hero-visual { max-width: none; }
    .preflight-grid, .trouble-grid { gap: 48px; }
    .equipment-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
    .equipment-card figure { padding: 10px; border-radius: 18px; }
    .equipment-image-wrap { height: 190px; }
    .progress-inner { min-height: 108px; grid-template-columns: minmax(150px,.38fr) 1fr; grid-template-rows: auto auto; gap: 9px 14px; padding-block: 11px; }
    .branch-steps > li { grid-template-columns: 1fr; }
    .branch-steps figure { max-width: 540px; }
    .complete-grid { gap: 48px; }
}

@media (max-width: 600px) {
    .shell, .content-shell { width: min(calc(100% - 28px), var(--shell)); }
    .brand img { width: 122px; }
    .language-switcher { gap: 2px; }
    .language-switcher a { padding: 5px 7px; font-size: 11px; }
    .hero { padding-top: 116px; }
    .hero h1 { font-size: clamp(38px, 12vw, 54px); }
    .hero-intro { font-size: 16px; }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .hero-meta { gap: 14px; }
    .equipment-section, .preflight-section, .instructions-section, .troubleshooting-section { padding: 78px 0; }
    .js .instructions-section { padding-bottom: calc(100vh + 78px); }
    .equipment-list { grid-template-columns: 1fr; gap: 12px; }
    .equipment-card-1, .equipment-card-2, .equipment-card-3 { transform: none; }
    .equipment-card figure { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
    .equipment-image-wrap { height: 132px; }
    .equipment-card figcaption { padding: 0; }
    .equipment-action { display: block; }
    .equipment-action .button { width: 100%; }
    .progress-inner { min-height: 118px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 8px; padding-block: 10px; }
    .progress-current { grid-row: auto; display: grid; grid-template-columns: 1fr auto; }
    .progress-stage-count { grid-column: 1; margin: 0; align-self: end; }
    .progress-current strong { grid-column: 1; grid-row: 2; font-size: 16px; }
    .progress-current > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .stage-track { gap: 4px; }
    .stage-track li { display: block; }
    .stage-track li > span { width: 22px; height: 22px; margin-inline: auto; }
    .stage-track li::after { left: 50%; right: -55%; top: 11px; }
    .progress-controls { gap: 7px; }
    .instructions-heading { margin-bottom: 56px; }
    .phase-divider { grid-template-columns: 54px 1fr; gap: 15px; margin-top: 70px; }
    .phase-divider > span { width: 54px; height: 54px; }
    .phase-divider h2 { font-size: 23px; }
    .phase-divider p { font-size: 15px; line-height: 1.6; }
    .step-card article { gap: 28px; padding: 24px; border-radius: 20px; }
    .step-card h3 { font-size: 26px; }
    .step-media { padding: 8px; }
    .step-media.media-portrait img { max-height: min(70vh, 560px); }
    .account-choice { grid-template-columns: 1fr; }
    .account-branch { padding: 24px 18px; border-radius: 20px; }
    .branch-links { display: grid; }
    .branch-steps > li { padding: 18px; }
    .complete-section { padding: 80px 0; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .current-step-fab { right: 14px; bottom: 14px; min-height: 50px; padding: 9px 14px 9px 9px; font-size: 14px; }
    .current-step-fab-icon { width: 32px; height: 32px; }
    .facebook-fab { left: 14px; bottom: 142px; min-height: 50px; padding: 9px; font-size: 14px; }
    .facebook-fab > span:last-child { display: none; }
    .facebook-fab-icon { width: 32px; height: 32px; }
    .whatsapp-fab { left: 14px; bottom: 78px; min-height: 50px; padding: 9px; font-size: 14px; }
    .whatsapp-fab > span:last-child { display: none; }
    .whatsapp-fab-icon { width: 32px; height: 32px; }
    .faq-fab { left: 14px; bottom: 14px; min-height: 50px; padding: 9px; font-size: 14px; }
    .faq-fab > span:last-child { display: none; }
    .faq-fab-icon { width: 32px; height: 32px; }
    .faq-dialog { padding: 12px; }
    .faq-panel { width: 100%; max-height: calc(100dvh - 24px); border-radius: 20px; }
    .faq-panel-header { gap: 14px; padding: 24px 18px 20px; }
    .faq-panel-header h2 { font-size: 29px; }
    .faq-close { width: 42px; height: 42px; }
    .faq-dialog-content { padding: 0 18px 24px; }
    .faq-list summary { padding-block: 20px; font-size: 16px; }
    .faq-list details p { padding-right: 12px; font-size: 15px; line-height: 1.75; }
    .image-lightbox { padding: 14px; }
    .lightbox-panel { width: 100%; height: calc(100dvh - 28px); max-height: calc(100dvh - 28px); gap: 9px; padding: 10px; }
    .lightbox-toolbar button { min-width: 50px; min-height: 46px; }
    .lightbox-close { top: 8px; right: 8px; width: 42px; height: 42px; }
    .resume-dialog { padding: 14px; }
    .resume-panel { padding: 34px 22px 24px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .site-header, .hero-actions, .progress-dock, .complete-step-button, .current-step-fab, .facebook-fab, .whatsapp-fab, .faq-fab, .faq-dialog, .site-footer, .image-lightbox, .resume-dialog { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .hero { min-height: 0; padding: 36px 0; background: #fff; color: #000; }
    .hero h1, .complete-grid h2 { color: #000; }
    .hero-intro, .complete-grid > div > p:not(.section-kicker) { color: #333; }
    .hero-visual { display: none; }
    .equipment-section, .preflight-section, .instructions-section, .complete-section, .troubleshooting-section { padding: 28px 0; background: #fff; color: #000; }
    .step-card, .account-branch, .branch-steps > li { break-inside: avoid; }
    .step-card article { grid-template-columns: 1fr 1fr; box-shadow: none; }
}
