/* OSReinstall - customer side styles (homepage, sign in, app, legal pages).
   Light look: cool white background, deep navy text, cobalt blue for actions, mint for progress and success.
   Headings: Archivo. Text: Instrument Sans. Wide page: 1360px. */
:root {
  --bg: #f2f4f8;
  --white: #ffffff;
  --sky: var(--ds-brand-soft);
  --sky-2: #d4def9;
  --ink: #0d1626;
  --ink-2: #33415a;
  --mut: #566278;
  --line: #d5dbe6;
  --line-2: #c7cfdd;
  --blue: var(--ds-brand);
  --blue-d: var(--ds-brand-d);
  --mint: #159a5b;
  --mint-soft: #e1f3e9;
  --mint-ink: #0f7a47;
  --amber-soft: #faf0d6;
  --amber-ink: #9a6b00;
  --red: #e5484d;
  --red-soft: #fce9ec;
  --red-ink: #c2334a;
  --signal: var(--ds-amber);
  --panel: #0b1b33;
  --wa: #1fb855;
  --tg: #229ed9;
  --f:var(--ds-font-body);
  --fh:var(--ds-font-display);
  --mono:var(--ds-font-mono);
  --px: clamp(16px, 3.4vw, 48px);
  --shadow: 0 1px 2px rgba(8, 20, 50, .06), 0 12px 32px -12px rgba(8, 20, 50, .16);
  color-scheme: light;
}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0a111d; --white:#111b2b; --sky:var(--ds-brand-soft); --sky-2:#1d3161;
  --ink:#e9eef7; --ink-2:#c3cde0; --mut:#93a1b8; --line:#24324a; --line-2:#2d3d58;
  --blue:var(--ds-brand); --blue-d:var(--ds-brand-d);
  --mint:#3ccb86; --mint-soft:#10301f; --mint-ink:#3ccb86;
  --amber-soft:#2e2510; --amber-ink:#f2b93a;
  --red:#ff6b72; --red-soft:#331319; --red-ink:#ff8b98;
  --signal:var(--ds-amber); --panel:#050b16; color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0a111d; --white:#111b2b; --sky:var(--ds-brand-soft); --sky-2:#1d3161;
  --ink:#e9eef7; --ink-2:#c3cde0; --mut:#93a1b8; --line:#24324a; --line-2:#2d3d58;
  --blue:var(--ds-brand); --blue-d:var(--ds-brand-d);
  --mint:#3ccb86; --mint-soft:#10301f; --mint-ink:#3ccb86;
  --amber-soft:#2e2510; --amber-ink:#f2b93a;
  --red:#ff6b72; --red-soft:#331319; --red-ink:#ff8b98;
  --signal:var(--ds-amber); --panel:#050b16; color-scheme:dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--fh); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius:6px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem var(--fh); letter-spacing: -.03em; white-space: nowrap; }
.logo .mark { flex: none; width: 36px; height: 36px; }
.logo b { color: var(--blue); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius:6px; background: var(--white); color: var(--ink); font: 600 .9rem var(--f); cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); border-color: var(--blue-d); transform: translateY(-1px); }
.btn-soft { background: var(--sky); border-color: var(--sky); color: var(--blue-d); }
.btn-soft:hover { background: var(--sky-2); border-color: var(--sky-2); }
.btn-big { height: 44px; padding: 0 20px; font-size: .95rem; border-radius:6px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: .86rem; border-radius:6px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-chat { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-chat:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn-tg:hover { background: #1b8cc2; border-color: #1b8cc2; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.top nav { display: flex; gap: 2px; }
.top nav a { padding: 10px 16px; border-radius:6px; color: var(--ink-2); font-weight: 500; }
.top nav a:hover { background: var(--bg); color: var(--ink); }
.top-r { display: flex; align-items: center; gap: 10px; }
.top-r .btn { height: 44px; }

/* ---------- Homepage: hero ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius:999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow); }
.badge b { padding: 3px 10px; border-radius:999px; background: var(--mint-soft); color: var(--mint-ink); font-weight: 700; }
.hero h1 { margin: 24px 0 22px; font-size: clamp(2.5rem, 4.4vw, 4rem); letter-spacing: -.035em; }
.hero .sub { max-width: 31em; margin-bottom: 34px; color: var(--ink-2); font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero .facts div { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .97rem; }
.hero .facts svg { width: 22px; height: 22px; color: var(--mint); flex: none; }

/* Hero picture: terminal on the Linux VPS, Windows desktop appearing over it */
.scene { position: relative; min-height: 500px; }
.term-win { position: absolute; left: 0; top: 0; width: 70%; border-radius:6px; background: #0f1a2b; color: #cfd8e6; box-shadow: 0 30px 60px -20px rgba(14, 27, 44, .45); overflow: hidden; }
.term-win .tb { display: flex; gap: 6px; padding: 12px 14px; background: #17243a; }
.term-win .tb i { width: 10px; height: 10px; border-radius:50%; background: #34445f; }
.term-win pre { padding: 18px 18px 22px; font: 500 .84rem/1.75 var(--mono); white-space: pre-wrap; }
.term-win .g { color: #5eead4; }
.term-win .d { color: #7d8aa3; }
.desk-win { position: absolute; right: 0; bottom: 0; width: 80%; border-radius:6px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 80px -24px rgba(14, 27, 44, .35); overflow: hidden; }
.desk-win .tb { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--mut); }
.desk-win .tb b { color: var(--ink); font-weight: 600; }
.desk-win .tb span { display: inline-flex; align-items: center; gap: 6px; color: var(--mint-ink); font-weight: 600; }
.desk-win .tb span::before { content: ""; width: 8px; height: 8px; border-radius:50%; background: var(--mint); }
.screen { position: relative; height: 290px; background: radial-gradient(120% 90% at 80% 10%, #8fb4ff 0%, #3d6cf0 45%, #1d3fb8 100%); }
.screen .icons { position: absolute; left: 18px; top: 16px; display: grid; gap: 14px; }
.screen .icons i { display: block; width: 34px; height: 30px; border-radius:6px; background: rgba(255, 255, 255, .85); }
.screen .card { position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-40%, -55%); padding: 16px 18px; border-radius:6px; background: rgba(255, 255, 255, .95); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .35); }
.screen .card strong { display: block; font-family: var(--fh); font-size: 1.05rem; }
.screen .card p { color: var(--mut); font-size: .85rem; line-height: 1.45; }
.screen .card .bar { margin-top: 12px; }
.screen .task { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; gap: 8px; }
.screen .task i { width: 18px; height: 18px; border-radius:6px; background: rgba(14, 27, 44, .25); }
.screen .task i:first-child { background: var(--blue); }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.alt { background: var(--white); border-block: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 52px; }
.head h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.head p { color: var(--ink-2); font-size: 1.12rem; max-width: 34em; }
.head.c { display: block; max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.head.c h2 { margin-bottom: 14px; }
.head.c p { margin: 0 auto; }

/* Steps: a real sequence, joined by a line */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px); }
.steps li { position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px; border-radius:6px; background: var(--blue); color: #fff; font: 700 1.4rem var(--fh); box-shadow: 0 0 0 8px var(--white); }
.alt .steps li::before { box-shadow: 0 0 0 8px var(--white); }
.steps h3 { margin-bottom: 10px; font-size: 1.5rem; }
.steps p { color: var(--ink-2); max-width: 26em; }
.steps .t { display: inline-block; margin-top: 16px; color: var(--mint-ink); font-weight: 600; font-size: .95rem; }

/* Features: one big panel + smaller ones */
.feat { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 20px; }
.f { padding: 32px; border-radius:8px; background: var(--white); border: 1px solid var(--line); }
.f h3 { margin-bottom: 10px; font-size: 1.3rem; }
.f p { color: var(--ink-2); }
.f .ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius:6px; background: var(--sky); color: var(--blue); }
.f .ic svg { width: 26px; height: 26px; }
.f.big { grid-row: span 2; display: flex; flex-direction: column; background: var(--sky); border-color: var(--sky-2); }
.f.big h3 { font-size: 1.7rem; }
.versions { display: grid; gap: 8px; margin-top: 26px; }
.versions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius:6px; background: var(--white); font-weight: 600; }
.versions li span { color: var(--mut); font-size: .88rem; font-weight: 500; }
.versions li.top-pick { outline: 2px solid var(--blue); }
.versions li.top-pick span { color: var(--blue); font-weight: 700; }
.mini-prog { margin-top: 22px; padding: 16px; border-radius:6px; background: var(--bg); }
.mini-prog div { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.mini-prog div span { color: var(--mint-ink); }

/* Providers */
.prov { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.prov li { display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 12px; border-radius:6px; background: var(--bg); border: 1px solid var(--line); text-align: center; font: 600 1.02rem var(--fh); line-height: 1.2; }
.prov li.any { background: var(--sky); border-color: var(--sky-2); color: var(--blue-d); }
.note { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 30px auto 0; padding: 18px 22px; border-radius:6px; background: var(--amber-soft); color: var(--amber-ink); }
.note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* Price + what you need */
.pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
.price { display: flex; flex-direction: column; padding: 44px; border-radius:var(--r, 8px); background: var(--blue); color: #fff; }
.price h3 { font-size: 1.6rem; }
.price > p { color: #d9e3ff; }
.price .amt { display: flex; align-items: flex-end; gap: 12px; margin: 30px 0 8px; }
.price .amt b { font: 700 clamp(4.6rem, 8vw, 6.4rem)/.85 var(--fh); letter-spacing: -.05em; }
.price .amt span { padding-bottom: 8px; color: #d9e3ff; font-weight: 500; }
.price ul { display: grid; gap: 12px; margin: 26px 0 34px; }
.price li { display: flex; gap: 12px; align-items: center; }
.price li svg { flex: none; width: 22px; height: 22px; color: #8ff0e3; }
.price .btn { margin-top: auto; background: #fff; border-color: #fff; color: var(--blue-d); box-shadow: none; }
.price .btn:hover { background: var(--sky); border-color: var(--sky); }
.need { padding: 44px; border-radius:8px; background: var(--white); border: 1px solid var(--line); }
.need h3 { margin-bottom: 8px; font-size: 1.6rem; }
.need > p { color: var(--ink-2); margin-bottom: 26px; }
.need ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.need li { padding: 22px; border-radius:8px; background: var(--bg); }
.need li strong { display: block; margin-bottom: 4px; font-family: var(--fh); font-size: 1.12rem; }
.need li span { color: var(--ink-2); font-size: .95rem; }

/* VDS / dedicated: manual install by the live team */
.team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px; border-radius:8px; background: var(--panel); color: #fff; }
.team > * { min-width: 0; }
.team h2 { margin: 18px 0 16px; font-size: clamp(2rem, 3.8vw, 3rem); }
.team > div > p { color: #b9c4d6; font-size: 1.08rem; max-width: 32em; }
.team .list2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 26px; }
.team .list2 li { display: flex; gap: 10px; align-items: center; color: #dfe6f1; }
.team .list2 svg { width: 20px; height: 20px; color: #5eead4; flex: none; }
.online { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius:999px; background: rgba(94, 234, 212, .12); color: #5eead4; font-size: .92rem; font-weight: 600; }
.online i { width: 8px; height: 8px; border-radius:50%; background: #5eead4; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .online i { animation: none; } }
.chat { padding: 30px; border-radius:8px; background: var(--white); color: var(--ink); }
.chat h3 { font-size: 1.35rem; margin-bottom: 4px; }
.chat > p { color: var(--mut); margin-bottom: 20px; }
.chat .btns { display: grid; gap: 10px; }
.chat .btn { justify-content: flex-start; height: 60px; padding: 0 20px; font-size: 1.05rem; }
.chat .btn small { margin-left: auto; font-size: .85rem; font-weight: 500; opacity: .85; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: start; }
.faq details { border-radius:6px; background: var(--white); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--sky-2); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius:6px; background: var(--bg); color: var(--blue); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--blue); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }

/* Final call to action */
.end { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 48px 56px; border-radius:8px; background: var(--sky); border: 1px solid var(--sky-2); }
.end h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 8px; }
.end p { color: var(--ink-2); font-size: 1.08rem; }

/* Footer */
.foot { background: var(--white); border-top: 1px solid var(--line); }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot .about p { margin-top: 14px; color: var(--mut); max-width: 26em; }
.foot h4 { margin-bottom: 14px; font-size: 1rem; }
.foot li + li { margin-top: 10px; }
.foot li a { color: var(--mut); }
.foot li a:hover { color: var(--blue); }
.foot .bottom { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--mut); font-size: .93rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .lbl { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius:6px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--mut); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky); }
select.input { appearance: none; padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2366738a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.msg { padding: 14px 16px; border-radius:6px; font-size: .96rem; }
.msg:empty { display: none; }
.msg.bad { background: var(--red-soft); color: var(--red-ink); }
.msg.ok { background: var(--mint-soft); color: var(--mint-ink); }
.msg.warn { background: var(--amber-soft); color: var(--amber-ink); }

/* ---------- Sign in / create account (home-style two column) ---------- */
.auth {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  max-width: 1080px; margin: 0 auto;
  min-height: calc(100vh - 64px);
  padding: clamp(24px, 4vh, 52px) max(20px, env(safe-area-inset-left, 0px));
}
body:has(.auth) {
  background:
    radial-gradient(900px 520px at 92% -6%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 55%),
    radial-gradient(760px 480px at -4% 108%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 55%),
    var(--bg);
}
/* Left: intro + benefit cards */
.auth-side { display: flex; flex-direction: column; justify-content: center; }
.auth-side .eyebrow { margin-bottom: 16px; }
.auth-side h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 12px; text-wrap: balance; }
.auth-side h2 em { font-style: normal; color: var(--blue); }
.auth-side > p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.55; max-width: 36ch; margin-bottom: 0; }
.auth-points { display: grid; gap: 14px; margin-top: 28px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 1rem; font-weight: 500; }
.auth-points svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 999px; background: var(--blue); color: #fff; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 4px 12px -4px var(--blue); }
/* Right: form in a card */
.auth-main { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius:8px; padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(1.6rem, 2.2vw, 1.95rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-2); font-size: .98rem; margin-bottom: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius:6px; background: var(--white); border: 1px solid var(--line); }
.tabs button { height: 44px; border: 0; border-radius:6px; background: none; color: var(--mut); font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.auth form { display: grid; gap: 13px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 80px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px; border: 0; border-radius:6px; background: var(--bg); color: var(--ink-2); font-size: .88rem; font-weight: 600; cursor: pointer; }
.auth-foot { margin-top: 14px; color: var(--mut); text-align: center; }
.auth-foot a { color: var(--blue); font-weight: 600; }

/* ---------- App (customer screen) ---------- */
.app { padding: 36px 0 88px; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hello h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.hello p { color: var(--ink-2); }
.grid-app { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.side { display: grid; gap: 20px; position: sticky; top: 100px; }
.bal { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border-radius:6px; background: var(--white); border: 1.5px solid var(--line-2); font-weight: 600; }
.bal b { color: var(--blue); font-family: var(--fh); font-size: 1.1rem; }
.bal button { height: 32px; padding: 0 12px; border: 0; border-radius:6px; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius:6px; background: var(--panel); color: #fff; font-weight: 700; cursor: pointer; }
.menu-wrap { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 240px; padding: 8px; border-radius:6px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(14, 27, 44, .3); }
.menu-pop .who { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-pop .who strong, .menu-pop .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop .who span { color: var(--mut); font-size: .88rem; }
.menu-pop button, .menu-pop a { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius:6px; background: none; text-align: left; font-weight: 500; cursor: pointer; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--bg); }
.menu-pop .out { color: var(--red-ink); }

.box { padding: 32px; border-radius:8px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.main-col > .box + .box { margin-top: 24px; }
.box h2 { font-size: 1.6rem; margin-bottom: 6px; }
.box .sub { color: var(--ink-2); margin-bottom: 24px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.box-head h2 { margin: 0; }

/* Steps header inside the install box */
.dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.dots i { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius:6px; background: var(--bg); color: var(--mut); font-style: normal; font-weight: 600; font-size: .92rem; }
.dots i::before { content: attr(data-n); display: grid; place-items: center; width: 26px; height: 26px; border-radius:6px; background: var(--white); border: 1px solid var(--line-2); font-size: .85rem; }
.dots i.on { background: var(--sky); color: var(--blue-d); }
.dots i.on::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-label { display: none; }

/* Windows choice */
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.win { position: relative; display: grid; gap: 3px; padding: 18px 18px 18px; border-radius:6px; border: 1.5px solid var(--line-2); background: var(--white); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.win:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(47, 91, 234, .5); }
.win b { font: 600 1.12rem var(--fh); }
.win small { color: var(--mut); font-size: .88rem; }
.win em { position: absolute; top: -11px; left: 14px; padding: 2px 10px; border-radius:999px; background: var(--mint); color: #fff; font-size: .75rem; font-style: normal; font-weight: 700; }
.win[aria-checked="true"] { border-color: var(--blue); background: var(--sky); box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.win[aria-checked="true"]::after { content: ""; position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius:50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.ed { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-weight: 600; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius:6px; background: var(--bg); border: 1px solid var(--line); }
.seg button { height: 38px; padding: 0 16px; border: 0; border-radius:6px; background: none; color: var(--mut); font-weight: 600; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 27, 44, .15); }

/* Password row */
.pwrow { display: flex; gap: 10px; }
.pwrow .input { flex: 1; font: 600 1.12rem var(--mono); letter-spacing: .03em; }
.adv { margin-top: 16px; }
.adv summary { display: inline-flex; color: var(--blue); font-weight: 600; font-size: .95rem; cursor: pointer; }
.adv .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.erase { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-radius:6px; background: var(--red-soft); cursor: pointer; }
.erase input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--red); cursor: pointer; }
.erase b { color: var(--red-ink); }
.go { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

/* Command + progress */
.cmd { position: relative; border-radius:6px; background: #0f1a2b; overflow: hidden; }
.cmd code { display: block; padding: 22px 22px 76px; font: 500 .95rem/1.7 var(--mono); color: #d7f7f2; overflow-wrap: anywhere; white-space: pre-wrap; }
.cmd .btn { position: absolute; right: 12px; bottom: 12px; }
.small { margin-top: 10px; color: var(--mut); font-size: .92rem; }
.how-run { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 20px; counter-reset: r; }
.how-run li { counter-increment: r; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius:6px; background: var(--bg); color: var(--ink-2); font-size: .95rem; }
.how-run li::before { content: counter(r); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius:6px; background: var(--blue); color: #fff; font-size: .85rem; font-weight: 700; }
.how-run b { color: var(--ink); }
.prog { padding: 22px 24px; border-radius:8px; background: var(--bg); border: 1px solid var(--line); }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.prog-top strong { font-family: var(--fh); font-size: 1.15rem; }
.prog-top span { font: 700 1.8rem var(--fh); color: var(--blue); }
.bar { height: 12px; border-radius:999px; background: var(--line); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius:999px; background: linear-gradient(90deg, var(--blue), var(--mint)); transition: width .6s; }
.prog p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.prog.done { background: var(--mint-soft); border-color: #bdeee7; }
.prog.done .prog-top span { color: var(--mint-ink); }
.prog.bad { background: var(--red-soft); border-color: #f6cccc; }
.prog.bad .prog-top span { color: var(--red-ink); }
.prog.bad .bar i { background: var(--red); }
.login-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.login-card div { padding: 14px 16px; border-radius:6px; background: var(--sky); min-width: 0; }
.login-card dt { color: var(--ink-2); font-size: .82rem; }
.login-card dd { font: 600 1.02rem var(--mono); overflow-wrap: anywhere; }

/* No balance yet */
.empty-bal { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.empty-bal .big { display: grid; place-items: center; width: 140px; height: 140px; border-radius:8px; background: var(--sky); color: var(--blue); font: 700 3rem var(--fh); letter-spacing: -.04em; }
.empty-bal h2 { margin-bottom: 8px; }
.empty-bal p { color: var(--ink-2); margin-bottom: 20px; max-width: 32em; }

/* Installs list */
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius:6px; background: var(--bg); }
.row .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius:6px; background: var(--white); color: var(--blue); }
.row .ic svg { width: 22px; height: 22px; }
.row strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.row span { color: var(--mut); font-size: .92rem; }
.row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius:6px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag.ok { background: var(--mint-soft); color: var(--mint-ink); }
.tag.run { background: var(--sky); color: var(--blue-d); }
.tag.wait { background: var(--amber-soft); color: var(--amber-ink); }
.tag.bad { background: var(--red-soft); color: var(--red-ink); }
.empty { padding: 28px; border-radius:6px; border: 1.5px dashed var(--line-2); color: var(--mut); text-align: center; }

/* Side cards */
.wallet { padding: 24px; border-radius:6px; background: var(--blue); color: #fff; }
.wallet span { color: #d9e3ff; font-size: .95rem; }
.wallet b { display: block; margin: 4px 0 4px; font: 700 3rem/1 var(--fh); letter-spacing: -.04em; }
.wallet p { color: #d9e3ff; font-size: .92rem; margin-bottom: 18px; }
.wallet .btn { width: 100%; background: #fff; border-color: #fff; color: var(--blue-d); }
.help-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.help-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 16px; }
.help-card .btns { display: grid; gap: 8px; }
.help-card .btn { justify-content: flex-start; }
.help-card .vds { margin-top: 16px; padding: 14px 16px; border-radius:6px; background: var(--bg); font-size: .92rem; color: var(--ink-2); }
.help-card .vds b { color: var(--ink); }
.tips h3 { font-size: 1.15rem; margin-bottom: 12px; }
.tips li { display: flex; gap: 10px; padding: 8px 0; color: var(--ink-2); font-size: .94rem; }
.tips li svg { flex: none; width: 20px; height: 20px; color: var(--mint); margin-top: 2px; }
.side .box { padding: 26px; }

/* Pop-up windows */
dialog { margin: auto; width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 32px; border-radius:8px; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(14, 27, 44, .45); }
dialog::backdrop { background: rgba(14, 27, 44, .45); backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.6rem; margin-bottom: 6px; }
dialog .sub { color: var(--ink-2); margin-bottom: 22px; }
.dlg-x { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border: 0; border-radius:6px; background: var(--bg); color: var(--ink-2); font-size: 1.3rem; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.dlg-x:hover { background: var(--red-soft, #fde8e8); color: var(--red-ink, #c2334a); transform: rotate(90deg); }
.dlg-x:active { transform: rotate(90deg) scale(.92); }
.stack { display: grid; gap: 18px; }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amts button { height: 64px; border-radius:6px; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; line-height: 1.2; }
.amts button b { display: block; font: 700 1.25rem var(--fh); }
.amts button small { color: var(--mut); font-size: .82rem; }
.amts button[aria-checked="true"] { border-color: var(--blue); background: var(--sky); }
.payinfo { padding: 16px 18px; border-radius:6px; background: var(--amber-soft); color: var(--amber-ink); white-space: pre-wrap; font-size: .97rem; }
.payinfo:empty { display: none; }
.hist { display: grid; gap: 8px; margin-top: 8px; max-height: 220px; overflow-y: auto; }
.hist div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius:6px; background: var(--bg); font-size: .93rem; }

/* Legal pages */
.legal { max-width: 820px; padding: 72px var(--px) 104px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Medium and small screens ---------- */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .scene { max-width: 720px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .f.big { grid-row: auto; grid-column: 1 / -1; }
  .prov { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pn, .team { grid-template-columns: 1fr; }
  .grid-app { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 900px) {
  .top nav { display: none; }
  .head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 10px, transparent 10px 18px); }
  .steps li { padding-left: 84px; min-height: 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .faq { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; gap: 32px; max-width: 540px; }
  .auth-side { order: 2; }
  .auth-card { max-width: none; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .how-run { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .hero { padding: 44px 0 60px; }
  .hero .acts .btn { flex: 1 1 100%; }
  .scene { min-height: 360px; }
  .term-win { width: 86%; }
  .term-win pre { font-size: .74rem; }
  .desk-win { width: 88%; }
  .screen { height: 200px; }
  .screen .card { width: 78%; transform: translate(-50%, -55%); }
  .feat { grid-template-columns: 1fr; }
  .f, .price, .need { padding: 26px; }
  .need ul { grid-template-columns: 1fr; }
  .prov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { padding: 28px 22px; border-radius:8px; }
  .team .list2 { grid-template-columns: 1fr; }
  .chat { padding: 22px; }
  .end { padding: 32px 24px; }
  .end .btn { width: 100%; }
  .box { padding: 22px 18px; border-radius:8px; }
  .dots i { justify-content: center; padding: 10px 6px; font-size: 0; }
  .dots i::before { font-size: .85rem; }
  .wins { grid-template-columns: 1fr 1fr; gap: 10px; }
  .win { padding: 16px 12px 14px; }
  .win b { font-size: 1rem; }
  .win small { font-size: .8rem; }
  .win[aria-checked="true"]::after { width: 20px; height: 20px; right: 10px; top: 10px; background-size: 11px; }
  .go { flex-direction: column-reverse; }
  .go .btn { width: 100%; }
  .adv .two, .login-card { grid-template-columns: 1fr; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row .acts { grid-column: 1 / -1; }
  .row .acts .btn { flex: 1; }
  .empty-bal { grid-template-columns: 1fr; text-align: center; }
  .empty-bal .big { margin: 0 auto; width: 110px; height: 110px; font-size: 2.4rem; }
  .empty-bal p { margin-left: auto; margin-right: auto; }
  .top-r .hide-m { display: none; }
  .logo { font-size: 1.2rem; }
  .logo .mark { width: 32px; height: 32px; }
  dialog { padding: 26px 18px; }
  .auth-card h1 { font-size: 1.9rem; }
}
.foot .simple { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-top: 0; padding-top: 28px; }
.foot .simple nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot .simple a:hover { color: var(--blue); }

/* Dark-mode fixes for hardcoded light-only colours */
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){}
  :root:not([data-theme="light"]) .top { background: rgba(10,17,29,.85); }
}
:root[data-theme="dark"] .top { background: rgba(10,17,29,.85); }

/* =====================================================================
   KEYSTONE BOLD LAYER (client) — mono eyebrows, bigger tight display
   headings, Keystone stepper/segment/card accents.
   ===================================================================== */

/* Mono eyebrow above headers */
.eyebrow { display: inline-flex; align-self: flex-start; width: fit-content; align-items: center; gap: 8px; margin-bottom: 14px; font: 600 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius:6px; }

/* Bigger, tighter display headings */
.hello h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -.035em; }
.auth-card h1 { font-size: clamp(2rem, 3.2vw, 2.5rem); letter-spacing: -.035em; }
.box h2 { letter-spacing: -.03em; }
.auth-side h2 { letter-spacing: -.035em; }

/* Balance / wallet number as display + tabular */
.bal b, .wallet b, .prog-top span, .login-card dd b { font-variant-numeric: tabular-nums; }

/* Status / step pills — Keystone mono tags */
.tag { font: 700 .72rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.dots i { font-family: var(--f); }

/* Segmented controls — Keystone seg (accent pressed) */
.seg button[aria-checked="true"], .tabs button[aria-selected="true"] { box-shadow: none; }

/* Card radius slightly tighter to match Keystone surfaces */
.box { border-radius:6px; }
.win, .amts button { border-radius:6px; }

/* =====================================================================
   EASY LAYOUT (client app) — simple, guided, single-column focus so even
   a first-timer can follow it.
   ===================================================================== */

/* 3-step "how it works" guide, always visible at the top */
.guide3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: none; }
.guide3 li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius:6px; background: var(--white); border: 1px solid var(--line); }
.guide3 .n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius:50%; background: var(--blue); color: #fff; font: 700 .95rem var(--fh); }
.guide3 b { display: block; font-size: .95rem; line-height: 1.25; }
.guide3 small { color: var(--mut); font-size: .83rem; line-height: 1.4; }
@media (max-width: 760px) { .guide3 { grid-template-columns: 1fr; gap: 10px; } }

/* Focus flow: one column, the install box is front and centre; the helper
   cards (balance, help, tips) sit calmly below instead of competing. */
.app .grid-app { grid-template-columns: 1fr; }
.app .side { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; align-items: stretch; }
@media (max-width: 900px) { .app .side { grid-template-columns: 1fr; } }

/* Clearer install box + wizard — Keystone-sized, not bulky */
.app .main-col > .box { padding: 28px 30px; }
.app .box h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.app .box .sub { font-size: .98rem; }

/* Step indicator */
.dots i { font-size: .9rem; }
.dots i.on { box-shadow: 0 0 0 2px var(--blue) inset; }

.app .go { margin-top: 26px; }

@media (max-width: 640px) {
  .app .main-col > .box { padding: 22px 18px; }
}
