/* Visual DITA — the site. Light, like the pages DITA writers work on; the logo's blue for accents. No web fonts,
   no scripts, nothing loaded from anywhere else. */

:root {
  --blue: #2b6cf6;
  --navy: #102f8c;
  --ink: #0b1b3f;
  --text: #33415c;
  --muted: #5b6b86;
  --line: #e3e9f3;
  --soft: #f6f9ff;
  --card: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 47, 140, .06), 0 2px 8px rgba(16, 47, 140, .05);
  --shadow-lg: 0 2px 6px rgba(16, 47, 140, .06), 0 24px 60px -12px rgba(16, 47, 140, .22);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(43, 108, 246, .45); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
code { font: 0.9em ui-monospace, "Cascadia Code", Consolas, monospace; background: #eef3ff; color: var(--navy); padding: .1em .35em; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }

/* --- navigation ------------------------------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227, 233, 243, .8);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); font: 700 18px/1 var(--font-display); letter-spacing: -.01em; }
.brand-home { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand-home:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand .by { align-self: flex-end; margin: 0 0 2px -3px; color: var(--muted); font: 500 12.5px/1 var(--font); letter-spacing: 0; }
.brand .by:hover { color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* --- buttons ---------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 16px/1 var(--font); white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #3677f7, var(--blue) 45%, #1f55d8); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -8px rgba(43, 108, 246, .7); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 28px -8px rgba(43, 108, 246, .8); }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cdd8ea; }
.btn-small { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.nav .btn-small { margin-left: 4px; }
/* the guide is on GitHub: its link carries the mark, and on a phone is the mark alone */
.guide-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 15px; font-weight: 500; }
.guide-link svg { width: 18px; height: 18px; }
.guide-link:hover { color: var(--ink); text-decoration: none; }
.footer .guide-link { gap: 6px; font-weight: 400; }
.footer .guide-link svg { width: 16px; height: 16px; }

/* --- hero ------------------------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 40px; }
.hero-glow {
  position: absolute; inset: -200px -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 18% 22%, rgba(43, 108, 246, .16), transparent 70%),
    radial-gradient(520px 360px at 84% 12%, rgba(120, 94, 255, .12), transparent 70%),
    radial-gradient(700px 420px at 55% 70%, rgba(0, 184, 217, .08), transparent 70%);
}
.hero::before {
  /* a faint grid behind the headline, fading out: the page a writer types on */
  content: ""; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(16, 47, 140, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 47, 140, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.accent { background: linear-gradient(90deg, var(--blue), #6f5cf6 60%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 720px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.fineprint { font-size: 14px; color: var(--muted); }

.shot { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.shot-hero { margin-top: 56px; position: relative; }
.shot-hero::after {
  /* a thin ring of the brand colour, as if the window were lit from above */
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(43, 108, 246, .08);
}

/* --- at a glance ------------------------------------------------------------------------------------------------ */
.strip { padding: 28px 0 8px; }
.strip-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.strip-row > div { text-align: center; padding: 16px 10px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.strip-row strong { display: block; color: var(--ink); font: 650 16px/1.3 var(--font-display); }
.strip-row span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* --- sections --------------------------------------------------------------------------------------------------- */
.section { padding: 104px 0; }
.section-soft { background: linear-gradient(180deg, var(--soft), #fff 85%); border-top: 1px solid var(--line); }
.section-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: 52px; }
.section-head .sub { max-width: 680px; color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6e0f2; }
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card-lg { padding: 28px; }
.card-lg h3 { margin-top: 0; font-size: 21px; }
.card-accent { background: linear-gradient(160deg, #f2f6ff, #fff 60%); border-color: #cddbfb; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #eaf1ff, #dfe9ff); color: var(--blue);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- showcase --------------------------------------------------------------------------------------------------- */
.showcase { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 112px; }
.showcase.reverse { grid-template-columns: 7fr 5fr; }
.showcase.reverse .show-copy { order: 2; }
.show-copy { display: grid; gap: 16px; }
.show-copy p { color: var(--muted); font-size: 17.5px; }
.show-copy .eyebrow { color: var(--blue); font-size: 13px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #e6efff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.5' fill='none' stroke='%232b6cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* --- document types --------------------------------------------------------------------------------------------- */
.versions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px 0 40px; }
.ver { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); }
.ver-draft { border-style: dashed; border-color: #b9c9ef; color: var(--navy); background: #f5f8ff; }

/* --- free and licensed ------------------------------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin-inline: auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan > p { color: var(--muted); }
.plan .btn { justify-self: start; margin-top: 10px; }
.plan-tag { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan-accent { border: 1px solid #c8d8fb; background: linear-gradient(165deg, #f0f5ff, #fff 55%); box-shadow: var(--shadow-lg); }

.steps { list-style: none; padding: 0; margin: 64px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.7); border: 1px dashed #cfdaf0; }
.steps h3 { font-size: 17px; margin: 14px 0 6px; }
.steps p { font-size: 15.5px; color: var(--muted); }
.num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; font-weight: 700; background: linear-gradient(160deg, var(--blue), var(--navy)); }

/* --- principles ------------------------------------------------------------------------------------------------- */
.principle { padding: 4px 4px 0 18px; border-left: 3px solid; border-image: linear-gradient(180deg, var(--blue), rgba(43, 108, 246, .1)) 1; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15.5px; }

/* --- FAQ -------------------------------------------------------------------------------------------------------- */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; box-shadow: var(--shadow-sm); }
details + details { margin-top: 12px; }
summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  color: var(--ink); font: 600 17.5px/1.35 var(--font-display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 0 20px; color: var(--muted); }

/* --- contact ---------------------------------------------------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  padding: 48px; border-radius: 26px; color: #fff;
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(111, 92, 246, .45), transparent 70%),
    linear-gradient(140deg, var(--blue), var(--navy));
  box-shadow: var(--shadow-lg);
}
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, .85); margin-top: 10px; font-size: 18px; }
.contact-actions { display: grid; gap: 12px; justify-items: end; }
.contact .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); }
.contact .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }

/* --- install page ---------------------------------------------------------------------------------------------- */
.hero-small { padding: 72px 0 8px; }
.hero-small h1 { font-size: clamp(36px, 5vw, 56px); }
.section-tight { padding-top: 40px; }
.options { max-width: 1060px; align-items: start; }
.option { min-width: 0; }
/* the two ways that update themselves on the left, the file for offline computers on the right, as tall as both */
.option-tall { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
.option h3 { font-size: 26px; letter-spacing: -.02em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.plan .btn-row .btn { margin-top: 0; }
/* Open VSX's own purple (its theme's secondary colour), shaped like the site's buttons */
.btn-openvsx { color: #fff; background: linear-gradient(180deg, #9d3be0, #8b1fd6 45%, #7916bd); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 22px -8px rgba(139, 31, 214, .6); }
.btn-openvsx:hover { box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 28px -8px rgba(139, 31, 214, .7); }
.option-note { color: var(--muted); font-size: 15px; }
.how { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15.5px; }
.how li { min-width: 0; }
.cmd { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ink); }
/* no ligatures: "-<" is a hyphen and a bracket in a command, not an arrow; long commands wrap rather than hide */
.cmd code { background: none; color: #e8eeff; padding: 0; font-size: 13.5px; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: anywhere; }
kbd { font: 600 .82em ui-monospace, "Cascadia Code", Consolas, monospace; padding: .1em .4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ink); }
.after { max-width: 760px; margin: 56px auto 0; text-align: center; display: grid; gap: 12px; }
.after h2 { font-size: clamp(24px, 3vw, 30px); }
.after p { color: var(--muted); }
.card-action { margin-top: 18px; }

/* --- footer ----------------------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { color: var(--muted); font-size: 15px; }
.brand-small { font-size: 16px; }
.brand-small img { border-radius: 6px; }
.footer-base { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.legal { color: var(--muted); font-size: 13.5px; }
.maker img { width: 148px; height: 20px; }
.legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(91, 107, 134, .4); text-underline-offset: 2px; }

/* --- smaller screens -------------------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: repeat(3, 1fr); }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse .show-copy { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .guide-link { margin-left: auto; padding: 8px; }
  .nav .guide-link span { display: none; }
  .hero { padding-top: 56px; }
  .section { padding: 72px 0; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: 1fr 1fr; }
  .strip-row > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .plans, .steps { grid-template-columns: 1fr; }
  .option-tall { grid-column: auto; grid-row: auto; }
  .contact { grid-template-columns: 1fr; padding: 32px; }
  .contact-actions { justify-items: stretch; }
  .footer-row { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 440px) { .brand .by { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
