/* Install guides (get/windows, get/linux, get/web). Shares tokens + components with site.css. */
.g-hero { position: relative; padding: calc(var(--nav-h) + 40px) 0 50px; margin-top: calc(-1 * var(--nav-h)); overflow: clip; }
.g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(40% 50% at 90% 20%, rgba(169, 139, 255, .06), transparent 70%); }
.crumbs { font: 600 12.5px/1 var(--mono); letter-spacing: .08em; color: var(--tx-3); margin-bottom: 22px; text-transform: uppercase; }
.crumbs a { color: var(--tx-3); } .crumbs a:hover { color: var(--tx); }
.g-hero h1 { font-size: clamp(40px, 5.4vw, 72px); font-stretch: 116%; letter-spacing: -.03em; }
.g-hero .lead { max-width: 40em; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.g-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.g-plat-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; color: var(--teal-hi);
  background: linear-gradient(180deg, rgba(60, 186, 208, .18), rgba(60, 186, 208, .05)); border: 1px solid rgba(60, 186, 208, .3); box-shadow: 0 20px 50px -20px var(--teal-glow); }
.g-plat-ico svg { width: 34px; height: 34px; }
.btn.disabled { opacity: .45; pointer-events: none; }

.dl-banner { margin-top: 24px; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(58, 208, 122, .35); background: rgba(58, 208, 122, .07); color: #c9f2d9; max-width: 720px; }
.dl-banner .spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(58, 208, 122, .3); border-top-color: var(--green); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* quick path strip */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--line); margin: 10px 0 0; }
.path > div { background: var(--bg); padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.path b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; font: 700 13px/1 var(--mono); color: #031418; background: var(--teal); }
.path span { font-weight: 650; font-size: 15px; line-height: 1.3; }
.path small { display: block; color: var(--tx-3); font-weight: 500; font-size: 12.5px; }
@media (max-width: 820px) { .path { grid-template-columns: 1fr 1fr; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 4vw, 60px); padding: 46px 0 46px 66px; border-top: 1px solid var(--line); align-items: start; }
.step:first-child { border-top: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 44px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font: 800 18px/1 var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.step h3 { font-size: clamp(22px, 2.2vw, 28px); font-stretch: 108%; margin-bottom: 12px; letter-spacing: -.015em; }
.step p, .step li { color: var(--tx-2); font-size: 16.5px; }
.step ol, .step ul { margin: 12px 0; padding-left: 20px; }
.step li { margin: 6px 0; }
.step li b, .step p b { color: var(--tx); }
.step .media { display: grid; gap: 14px; }
.step .media.two { grid-template-columns: 1fr 1fr; align-items: start; }
.step .frame { background: #1b1b1b; }
.step .frame img { width: 100%; height: auto; }
.step .frame.light { background: #f3f3f3; }
.step .frame figcaption, .step figure > figcaption { font: 600 11.5px/1.4 var(--mono); color: var(--tx-3); letter-spacing: .04em; padding: 10px 2px 0; }
.step .frame.light figcaption { color: #666; background: #f3f3f3; }
.step .frame figcaption { position: absolute; left: 0; right: 0; top: 100%; }
.step figure { margin: 0; position: relative; }
.step .frame + figcaption, .step figure.cap-under { margin-bottom: 26px; }
.tip { margin-top: 16px; font-size: 15px; color: var(--tx-3); }
.tip b { color: var(--tx-2); }
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; padding-left: 0; padding-top: 90px; }
  .step::before { top: 34px; }
  .step .media.two { grid-template-columns: 1fr; }
}

.hl-click { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 6px; background: rgba(60, 186, 208, .12); border: 1px solid rgba(60, 186, 208, .35); color: #dff7fb; font-weight: 650; font-size: .95em; white-space: nowrap; }

/* "why" explainer */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.why .card h3 { font-size: 20px; margin-bottom: 10px; font-stretch: 106%; }
.why .card p { color: var(--tx-2); font-size: 15.5px; margin: 0; }
.why .card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--tx-2); }
.why .card .ico svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.hash { margin-top: 26px; }
.hash pre { font-size: 12.5px; }
.hash .cmd pre::before { content: "PS> "; }
.hash .sum { font: 600 13px/1.5 var(--mono); word-break: break-all; color: #d5f5fb; padding: 12px 14px; border-radius: 12px; background: #06090b; border: 1px dashed var(--line-2); margin-top: 8px; }

/* terminal (Linux) */
.term { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #07090b; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.term-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #11161a; border-bottom: 1px solid var(--line); font: 600 12px/1 var(--mono); color: var(--tx-3); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3237; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 16px 18px 18px; font: 500 12.5px/1.62 var(--mono); color: #c9d6dc; white-space: pre; overflow-x: auto; }
.term .p { color: var(--teal-hi); } .term .c { color: #fff; } .term .q { color: #f3d36e; } .term .a { color: var(--green); font-weight: 700; } .term .d { color: var(--tx-3); } .term .ok { color: var(--green); }
.term .caret { display: inline-block; width: 8px; height: 15px; background: var(--teal); vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.install { list-style: none; margin: 0; padding: 0; counter-reset: ins; }
.install > li { position: relative; padding: 0 0 26px 50px; }
.install > li::before { counter-increment: ins; content: counter(ins); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 14px/1 var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.install > li::after { content: ""; position: absolute; left: 15.5px; top: 40px; bottom: 6px; width: 1px; background: var(--line-2); }
.install > li:last-child::after { display: none; }
.install .t { font-weight: 700; font-size: 17px; color: var(--tx); }
.install .t small { font-weight: 500; color: var(--tx-3); font-size: 14.5px; }
.linux-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.linux-grid .sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 960px) { .linux-grid { grid-template-columns: 1fr; } .linux-grid .sticky { position: static; } }

/* phone (web guide) */
.phone-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.pstep { border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); padding: 18px; }
.pstep .ps-art { height: 150px; border-radius: 12px; background: #0b0f12; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; position: relative; overflow: hidden; }
.pstep > b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.pstep p { color: var(--tx-2); font-size: 14.5px; margin: 0; }
.pstep .num { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; display: block; }
@media (max-width: 960px) { .phone-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .phone-steps { grid-template-columns: 1fr; } }
.ios-share { width: 54px; height: 54px; color: #0a84ff; }
.ps-sheet { width: 82%; border-radius: 12px; background: #1c1c1e; padding: 8px 0; font: 500 12.5px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; color: #fff; }
.ps-sheet div { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; }
.ps-sheet div + div { border-top: 1px solid #2c2c2e; }
.ps-sheet .on { background: rgba(10, 132, 255, .18); }
.ps-home { display: grid; grid-template-columns: repeat(4, 34px); gap: 12px; }
.ps-home i { width: 34px; height: 34px; border-radius: 9px; background: #2a2f35; display: block; }
.ps-home i.th { background: #000 url(brand/tinhat.svg) center/80% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 18px rgba(60, 186, 208, .5); }
.ps-notif { width: 86%; border-radius: 14px; background: rgba(40, 44, 50, .95); padding: 10px 12px; display: flex; gap: 10px; align-items: center; font: 500 12px/1.3 -apple-system, system-ui, sans-serif; color: #eee; }
.ps-notif img { width: 26px; height: 26px; border-radius: 7px; background: #000; padding: 2px; }
.ps-notif b { display: block; font-size: 12.5px; margin: 0; }

.section.tight { padding: clamp(56px, 7vw, 90px) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.faq-wrap { max-width: 860px; }

/* Windows step 1: flyout + menu stacked on the left, the trust dialog on the right */
.media.edge { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
.media.edge > :nth-child(1) { grid-column: 1; grid-row: 1; }
.media.edge > :nth-child(2) { grid-column: 1; grid-row: 2; }
.media.edge > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 560px) { .media.edge { grid-template-columns: 1fr; } .media.edge > * { grid-column: 1 !important; grid-row: auto !important; } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.split p { color: var(--tx-2); font-size: 16.5px; }
.split p b { color: var(--tx); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.phones { display: flex; gap: 16px; justify-content: center; }
.phones .phone { width: 46%; max-width: 280px; margin: 0; border-radius: 26px; border: 3px solid #1d2226; }
.phones .phone > img { border-radius: 22px; }
.phones .phone.lower { margin-top: 40px; }
