/* The build guide is a practical walkthrough with an illustrated product introduction. */
* { margin: 0; padding: 0; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 76px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 calc(-1 * var(--page-gutter));
    padding: 52px var(--page-gutter);
    background: radial-gradient(ellipse at 100% 45%, #f4ddc5 0, transparent 59%), #fcf7ef;
    border-bottom: 1px solid #e7d9c9;
}
.hero::before { content: ''; position: absolute; z-index: -1; width: 700px; height: 700px; border: 1px solid #e0bb992b; border-radius: 50%; right: -365px; top: -220px; box-shadow: 0 0 0 70px #f9e8d700, 0 0 0 71px #e0bb992b, 0 0 0 140px #f9e8d700, 0 0 0 141px #e0bb992b; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { font-size: 11px; letter-spacing: .12em; margin-bottom: 26px; }
.hero h1 { font-size: clamp(42px, 4.5vw, 64px); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
.hero h1 > span { color: #bb512b; }
.hero-description { max-width: 430px; margin-top: 27px; font-size: 17px; color: var(--brand-muted); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; margin-top: 30px; }
.hero-actions .button { padding: 12px 17px 12px 23px; gap: 30px; font-size: 14px; }
.hero-actions .text-link { font-size: 14px; }
.hero-actions .button-arrow { width: 29px; height: 29px; border-radius: 50%; background: #1a2a3412; display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* A small, code-native illustration: project structure becomes a branded desktop. */
.build-visual { position: relative; min-width: 0; width: 100%; max-width: 530px; justify-self: end; padding: 0 0 0 6px; }
.visual-label { display: flex; align-items: center; gap: 10px; color: #886549; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; margin-bottom: 18px; }
.visual-label-line { width: 28px; height: 1px; background: #bb815a; }
.visual-orbit { position: absolute; z-index: -1; width: 310px; height: 310px; border: 1px dashed #ca9b7399; border-radius: 50%; right: -45px; top: 57px; transform: rotate(-18deg); }
.project-preview { width: 92%; position: relative; overflow: hidden; border: 1px solid #344b54; border-radius: 12px; background: linear-gradient(135deg, #223a45, #172b35); box-shadow: 0 18px 38px #674a2720, 0 2px 6px #1a2a3415; }
.preview-top { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #ffffff12; color: #c7d5da; font-size: 13px; line-height: 1.4; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #73838a; }
.window-dots i:first-child { background: #ff996a; }
.project-tree { padding: 23px 22px 25px; display: grid; gap: 16px; }
.tree-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tree-icon { width: 19px; height: 19px; color: #f0a674; display: block; flex-shrink: 0; }
.tree-icon svg { display: block; width: 100%; height: 100%; }
.tree-icon--file { color: #9baeb7; }
.tree-line code { color: #edf0ec; font-size: 14px; }
.tree-line > span:last-child { color: #c6d4d8; font-size: 12px; margin-left: auto; }
.visual-connector { display: flex; align-items: center; gap: 10px; padding: 9px 0 9px 45%; font-size: 10px; color: #846045; line-height: 18px; }
.visual-connector > span:first-child { width: 1px; height: 21px; background: #c29e7e; }
.visual-connector code { white-space: nowrap; font-size: 13px; }
.connector-arrow { font-size: 18px; }
.desktop-preview { width: 85%; margin-left: auto; border: 1px solid #c8c6bd; border-radius: 10px; overflow: hidden; background: #f9faf6; box-shadow: 0 15px 30px #6d50391a, 0 2px 4px #1a2a3408; transform: rotate(-2deg); }
.desktop-top { display: flex; align-items: center; gap: 7px; padding: 9px 11px; background: #fff; border-bottom: 1px solid #e4e7df; color: var(--brand-ink); }
.desktop-app-mark { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: #ff8b58; color: #1a2a34; border-radius: 5px; font-size: 12px; font-weight: 700; }
.desktop-top strong { font-size: 12px; font-weight: 400; }
.desktop-controls { color: #85918a; font-size: 9px; margin-left: auto; white-space: nowrap; }
.desktop-workspace { display: grid; grid-template-columns: 24px minmax(0, 1.15fr) minmax(0, 1fr); gap: 9px; padding: 10px; }
.desktop-dock { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.dock-icon { width: 10px; height: 10px; border: 1px solid #bcc7be; border-radius: 3px; }
.dock-icon--active { border-color: #d58155; background: #f2c9ad; }
.workspace-panel { background: #fff; border: 1px solid #e0e5dc; border-radius: 4px; padding: 9px; }
.workspace-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #556960; font-size: 12px; }
.workspace-panel-title i { width: 4px; height: 4px; border-radius: 50%; background: #7fa383; }
.workspace-lines { display: grid; gap: 5px; margin-top: 10px; }
.workspace-lines i { height: 3px; border-radius: 1px; background: #e7ebe4; }
.workspace-lines i:nth-child(2) { width: 80%; }
.workspace-lines i:nth-child(3) { width: 56%; }
.workspace-chips { display: flex; gap: 4px; margin-top: 10px; }
.workspace-chips i { width: 20px; height: 9px; background: #f4dfcf; border-radius: 2px; }
.workspace-chips i:nth-child(2) { background: #dde8de; }
.workspace-chips i:nth-child(3) { background: #dfe6f0; }
.app-tiles { display: flex; gap: 6px; margin-top: 11px; }
.app-tiles i { width: 17px; height: 17px; border: 1px solid #e1cbb9; background: #ffead8; border-radius: 4px; }
.app-tiles i:nth-child(2) { background: #e8eef5; border-color: #cbd6e2; }
.app-tiles i:nth-child(3) { background: #e7efe4; border-color: #cbd9c7; }
.build-visual figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 20px 0 0; color: #77644f; font-size: 13px; }
.visual-caption-dot { width: 5px; height: 5px; border-radius: 50%; background: #b97343; }

/* A compact preparation strip makes the requirements part of the journey. */
.requirements { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 calc(-1 * var(--page-gutter)); padding: 26px var(--page-gutter); border-bottom: 1px solid var(--brand-line); background: #fff; }
.requirements-heading { display: grid; gap: 6px; flex-shrink: 0; }
.requirements-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--brand-ink); }
.requirements-heading > span:last-child { font-size: 14px; color: var(--brand-muted); }
.requirement-item { min-width: 0; display: flex; align-items: center; gap: 11px; }
.requirement-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 21px; font-weight: 400; color: #7e8e80; border: 1px solid #e0e5de; border-radius: 9px; background: #fbfcf8; flex-shrink: 0; }
.requirement-icon--terminal { font-family: var(--mono-font); font-size: 13px; }
.requirement-icon svg { width: 19px; height: 19px; }
.requirement-item > span:last-child { min-width: 0; }
.requirement-item small { display: block; color: #65746b; font-size: 11px; letter-spacing: .09em; margin-bottom: 5px; }
.requirement-item strong { display: block; font-size: 15px; font-weight: 400; color: var(--brand-ink); line-height: 1.5; }
.requirements > a { font-size: 14px; color: var(--brand-link); white-space: nowrap; }
.requirements > a > span { margin-left: 6px; }

/* Steps have a generous reading rhythm; the index stays close at hand. */
.guide-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 64px 0 34px; }
.guide-intro .brand-eyebrow { margin-bottom: 14px; font-size: 11px; }
.guide-intro h2 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.2; }
.guide-intro > p { color: var(--brand-muted); font-size: 16px; line-height: 1.75; text-align: right; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-sidebar { position: sticky; top: 112px; }
.sidebar-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #52635a; padding: 8px 4px 18px; }
.sidebar-label > span { font-size: 11px; font-weight: 400; color: #7b877e; letter-spacing: .06em; }
.step-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; margin-bottom: 7px; border-radius: 8px; color: var(--brand-muted); font-size: 14px; line-height: 1.5; transition: color .2s, background .2s; }
.step-nav a > span { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid #dbe0d8; border-radius: 50%; background: #fff; color: #6a7b6e; font-size: 11px; font-family: var(--mono-font); flex-shrink: 0; }
.step-nav a:hover { color: var(--brand-ink); background: #faf5ee; }
.step-nav a[aria-current='step'] { background: var(--brand-ink); color: #fff; box-shadow: 0 3px 6px #1a2a3410; }
.step-nav a[aria-current='step'] > span { background: var(--brand-orange); color: var(--brand-ink); border-color: var(--brand-orange); }
.step-nav a[aria-current='step']:focus-visible { outline-color: var(--brand-link); }
.sidebar-note { margin: 28px 4px 0; border-top: 1px solid var(--brand-line); padding-top: 24px; color: var(--brand-muted); font-size: 14px; line-height: 1.8; }
.note-icon { display: flex; align-items: center; justify-content: center; width: 31px; height: 29px; margin-bottom: 14px; border: 1px solid #dbe0d9; border-radius: 6px; font-family: var(--mono-font); font-size: 13px; color: #8c633f; }
.sidebar-note strong { display: block; color: var(--brand-ink); font-size: 14px; font-weight: 400; margin-bottom: 8px; }
.sidebar-note p + p { margin-top: 10px; }
.steps { min-width: 0; }
.step { background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; padding: 34px 36px; margin-bottom: 24px; box-shadow: 0 3px 8px #1a2a3403; scroll-margin-top: 8px; }
.step--license { background: linear-gradient(110deg, #fff9f2, #fffdf9); border-color: #eddbc7; }
.step-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.step-number { display: flex; align-items: center; justify-content: center; align-self: flex-start; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #e5cbb7; border-radius: 12px; background: #fff6ec; color: #9b603b; font-family: var(--mono-font); font-size: 13px; }
.step--license .step-number { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-ink); }
.step-kicker { color: #5b625b; font-size: 11px; font-weight: 700; letter-spacing: .13em; margin-bottom: 6px; }
.step h2 { font-size: 28px; line-height: 1.25; }
.step > p { color: #42565f; line-height: 1.8; font-size: 16px; margin-bottom: 18px; }
.step p code, .wizard-options code { font-size: 14px; color: #496250; background: #f0f3ec; border: 1px solid #e3e9df; border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.license-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 23px 0 24px; }
.license-actions .button { font-size: 14px; }
.license-actions .text-link { font-size: 14px; }
.inline-note { display: flex; align-items: flex-start; gap: 11px; border-top: 1px solid #e7e8df; padding-top: 18px; margin-top: 22px; color: var(--brand-muted); }
.inline-note > span { color: #b67e52; font-size: 19px; line-height: 1; }
.inline-note p { font-size: 14px; line-height: 1.8; }

/* Commands are visually distinct and copyable without leaving the guide. */
.terminal { background: #1c2f39; border: 1px solid #304650; border-radius: 9px; overflow: hidden; margin: 18px 0; box-shadow: 0 4px 8px #1a2a3408; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #233a44; border-bottom: 1px solid #ffffff09; font-size: 12px; color: #d8e0e1; }
.terminal-symbol { color: #e7a77d; margin-right: 8px; font-family: var(--mono-font); }
.terminal-context { color: #c3d0d5; margin-left: 7px; font-size: 12px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #ffffff06; color: #d9e2e3; border: 1px solid #637b8477; border-radius: 5px; padding: 5px 9px; font-size: 12px; min-width: 76px; flex-shrink: 0; transition: background .2s, border-color .2s; }
.copy-button::before { content: '⧉'; font-size: 13px; line-height: 1; }
.copy-button:hover { background: #ffffff12; border-color: #84999f; color: #fff; }
.copy-button:focus-visible { outline-color: var(--brand-orange); }
.copy-button:disabled { cursor: default; color: #bedbc1; }
.terminal pre { overflow-x: auto; padding: 23px 24px; color: #edf0e8; font-size: 14px; line-height: 2; tab-size: 2; scrollbar-width: thin; scrollbar-color: #72858c #1c2f39; }
.command { color: #ffb182; }
.string { color: #b7d2a0; }
.step > .caption { font-size: 14px; line-height: 1.8; margin-top: 18px; margin-bottom: 0; }
.caption a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d5aa8d; }
.wizard-options { border-left: 2px solid #efb68c; padding: 3px 0 3px 20px; margin: 26px 0; font-size: 15px; line-height: 1.85; color: var(--brand-muted); }
.wizard-options strong { color: var(--brand-ink); font-weight: 400; }
.wizard-options > p { margin-bottom: 9px; }
.wizard-options ul { padding-left: 16px; }
.wizard-options li { padding-left: 4px; margin-block: 6px; }
.wizard-options li::marker { color: #b47648; }
.file-map { border: 1px solid var(--brand-line); border-radius: 8px; margin: 22px 0; overflow: hidden; }
.file-map a { display: grid; grid-template-columns: minmax(135px, .9fr) minmax(0, 1.5fr) 22px; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid #e7ebe2; }
.file-map a:last-child { border-bottom: none; }
.file-map a:hover { background: #fcf8f0; }
.file-label { color: var(--brand-ink); font-size: 14px; line-height: 1.6; }
.file-map code { color: #655033; font-size: 13px; overflow-wrap: anywhere; line-height: 1.6; }
.file-map a > span:last-child { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #f6f2e9; font-size: 14px; }
.build-output { margin-top: 24px; border: 1px solid #d2dfce; background: #f3f8f0; border-radius: 8px; padding: 19px 20px; }
.build-output > div { display: flex; gap: 12px; align-items: center; }
.build-output strong { color: #365d40; font-size: 15px; font-weight: 400; line-height: 1.6; }
.build-output strong code { font-size: 14px; overflow-wrap: anywhere; }
.output-check { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #dcead5; color: #427449; font-size: 13px; flex-shrink: 0; }
.build-output p { color: #537058; font-size: 14px; margin: 9px 0 0 34px; line-height: 1.75; }
.guide-footer { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: #1c3039; color: #fff; border: 1px solid #304a53; border-radius: 12px; padding: 36px; margin-top: 32px; }
.guide-footer .brand-eyebrow { color: #e9a87c; font-size: 11px; margin-bottom: 14px; }
.guide-footer h2 { color: #fff; font-size: 33px; line-height: 1.2; }
.guide-footer p:not(.brand-eyebrow) { color: #b9c9cb; font-size: 15px; line-height: 1.75; max-width: 400px; margin-top: 14px; }
.guide-footer .button-secondary { color: #f3e8d9; background: #ffffff04; border-color: #80948f; font-size: 14px; }
.guide-footer .button-secondary:hover { background: #ff7d45; color: var(--brand-ink); border-color: #ff7d45; }
.guide-footer .button:focus-visible { outline-color: var(--brand-orange); }

@media (max-width: 1180px) {
    .hero { padding-block: 56px; gap: 36px; }
    .hero-description { font-size: 16px; }
    .hero .eyebrow { font-size: 11px; }
    .hero-actions { gap: 20px; }
    .tree-line > span:last-child { font-size: 12px; }
    .tree-line code { font-size: 14px; }
    .requirements { flex-wrap: wrap; justify-content: flex-start; gap: 22px 30px; }
    .requirements-heading { flex-basis: 100%; display: flex; align-items: center; gap: 12px; }
    .requirements > a { margin-left: auto; }
    .guide-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
    .step { padding: 30px; }
    .file-map a { grid-template-columns: minmax(0, 1fr) 22px; gap: 5px 12px; }
    .file-map code { grid-column: 1; grid-row: 2; }
    .file-map a > span:last-child { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 960px) {
    .hero { gap: 28px; }
    .hero h1 { font-size: clamp(40px, 4.5vw, 48px); }
    .hero-description { font-size: 16px; }
    .hero-actions { gap: 18px; }
    .project-preview { width: 100%; }
    .preview-top { gap: 8px; padding-inline: 14px; }
    .project-tree { padding-inline: 16px; }
    .tree-line { gap: 8px; }
    .tree-line > span:last-child { display: none; }
    .desktop-preview { width: 94%; }
    .visual-label { font-size: 11px; letter-spacing: .08em; }
    .visual-label-line { width: 14px; }
    .build-visual figcaption { font-size: 13px; }
    .visual-connector { padding-left: 33%; }
    .guide-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
    .sidebar-label { font-size: 11px; }
    .sidebar-label > span { display: none; }
    .step-nav a { font-size: 14px; gap: 8px; padding-inline: 8px; }
    .step { padding: 28px 24px; }
    .step h2 { font-size: 25px; }
    .step > p { font-size: 16px; }
    .step-heading { gap: 14px; }
    .terminal pre { font-size: 14px; padding-inline: 18px; }
}
@media (max-width: 760px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding-block: 44px; gap: 42px; }
    .hero .eyebrow { font-size: 11px; }
    .hero h1 { font-size: 56px; }
    .hero-description { max-width: 470px; font-size: 16px; margin-top: 24px; }
    .build-visual { max-width: 460px; width: 100%; justify-self: center; padding: 0; }
    .project-preview { width: 92%; }
    .project-tree { padding-inline: 22px; }
    .tree-line > span:last-child { display: block; font-size: 12px; }
    .tree-line code { font-size: 14px; }
    .desktop-preview { width: 85%; }
    .visual-label { font-size: 11px; letter-spacing: .1em; }
    .visual-label-line { width: 24px; }
    .visual-connector { padding-left: 45%; }
    .build-visual figcaption { font-size: 13px; }
    .requirements { gap: 22px 28px; padding-block: 24px; }
    .requirements-heading { flex-wrap: wrap; gap: 7px 12px; }
    .requirements > a { margin-left: 0; }
    .guide-intro { margin-top: 42px; margin-bottom: 24px; align-items: flex-start; flex-direction: column; gap: 16px; }
    .guide-intro > p { text-align: left; }
    .guide-intro > p br { display: none; }
    .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .guide-sidebar { position: static; min-width: 0; }
    .step-nav { display: flex; flex-wrap: wrap; gap: 7px; }
    .sidebar-label { width: 100%; font-size: 11px; padding: 0 0 7px; }
    .sidebar-label > span { display: inline; }
    .step-nav a { padding: 7px 10px; margin: 0; border: 1px solid #e0e5dc; font-size: 14px; }
    .step-nav a[aria-current='step'] { border-color: var(--brand-ink); }
    .step-nav a > span { width: 20px; height: 20px; font-size: 11px; }
    .sidebar-note { display: none; }
    .step { padding: 28px; }
    .step h2 { font-size: 27px; }
    .step > p { font-size: 16px; }
    .guide-footer { padding: 30px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: clamp(36px, 10vw, 48px); }
    .hero .eyebrow { font-size: 11px; margin-bottom: 23px; }
    .hero-description { font-size: 16px; }
    .hero-actions { gap: 20px; }
    .hero-actions .button { font-size: 14px; padding-left: 20px; gap: 22px; }
    .hero-actions .text-link { font-size: 14px; gap: 7px; }
    .visual-label { font-size: 11px; }
    .project-preview { width: 96%; }
    .project-tree { padding: 20px 15px; gap: 16px; }
    .tree-line code { font-size: 14px; }
    .tree-line > span:last-child { font-size: 12px; text-align: right; max-width: 84px; }
    .tree-icon { width: 17px; height: 17px; }
    .desktop-preview { width: 91%; }
    .build-visual figcaption { font-size: 13px; }
    .requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 16px; }
    .requirements-heading { grid-column: 1 / -1; }
    .requirement-item { gap: 8px; }
    .requirement-item:nth-child(4) { grid-column: 1 / -1; }
    .requirements > a { grid-column: 1 / -1; }
    .requirement-item strong { font-size: 15px; }
    .requirement-item small { font-size: 11px; }
    .guide-intro h2 { font-size: 30px; }
    .step { padding: 25px 19px; border-radius: 10px; }
    .step-heading { gap: 12px; margin-bottom: 20px; }
    .step-number { width: 36px; height: 36px; border-radius: 10px; font-size: 11px; }
    .step-kicker { font-size: 11px; }
    .step h2 { font-size: 23px; }
    .step > p { font-size: 16px; }
    .license-actions { gap: 20px; }
    .terminal-bar { padding: 10px 12px; }
    .terminal-context { display: none; }
    .terminal pre { font-size: 14px; padding: 20px 15px; }
    .copy-button { min-width: 76px; }
    .wizard-options { padding-left: 14px; font-size: 15px; }
    .file-map a { padding: 16px; }
    .build-output { padding: 16px; }
    .build-output strong { font-size: 15px; }
    .build-output p { margin-left: 0; }
    .guide-footer { padding: 28px 23px; }
    .guide-footer h2 { font-size: 31px; }
}

/* Keep the guide readable at narrow widths without clipping command text. */
@media (max-width: 760px) {
    .step-heading > div:last-child, .build-output strong { min-width: 0; overflow-wrap: anywhere; }
    .copy-button, .step-nav a { min-height: 44px; }
    .terminal-bar { flex-wrap: wrap; }
    .tree-icon { flex-shrink: 0; }
    .tree-line code { min-width: 0; overflow-wrap: anywhere; }
    .tree-line > span:last-child { flex-shrink: 0; }
}
@media (max-width: 360px) {
    .tree-line > span:last-child { display: none; }
    .requirements { grid-template-columns: minmax(0, 1fr); }
    .visual-connector { padding-left: 20%; }
    .step { padding-inline: 16px; }
    .license-actions .button, .guide-footer .button { width: 100%; gap: 12px; padding-inline: 14px; }
}
