/* ProRDP website design system, copied from the website repo (assets/css): tokens, dark palette, glass, controls, nav and footer. Portal-specific rules live in portal.css. Regenerate rather than edit. */
/* =========================================================================
   ProRDP — base
   Design tokens, reset, typography.
   ========================================================================= */

:root {
  /* Type ------------------------------------------------------------- */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Fluid type scale -------------------------------------------------- */
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.06rem + 0.32vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.65vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.75rem + 2.4vw, 3.5rem);
  --step-5:  clamp(2.75rem, 1.7rem + 4.8vw, 5.25rem);

  /* Rhythm ------------------------------------------------------------ */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 75ch;
  --page-max: 1200px;
  --page-wide: 1400px;
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  /* Motion ------------------------------------------------------------ */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur: 0.4s;

  --nav-h: 56px;
}

/* =========================================================================
   Palette

   Light is the base, defined on bare :root. The dark values live in one
   place — assets/css/_dark-tokens.css — and Hugo emits that single list into
   two selectors at build time (see layouts/_partials/head.html):

     :root[data-theme="dark"]                     an explicit choice
     @media (prefers-color-scheme: dark)
       :root:not([data-theme="light"])            the system default

   So the system preference is honoured by CSS alone. JavaScript is only
   needed to remember an explicit choice, and the page is correct without it.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Surfaces and text */
  --bg: #ffffff;
  --bg-elev: #fbfbfd;
  --surface: #f5f5f7;
  --surface-2: #ececf0;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);
  --hover-tint: rgba(0, 0, 0, 0.05);
  --media-bg: #e8e8ed;

  /* Accents */
  --accent: #0071e3;
  --accent-soft: #0058b0;
  --accent-alt: #8944ab;
  --positive: #1d8f3f;
  --neutral: #86868b;
  --selection: rgba(0, 113, 227, 0.22);
  --danger: #d70015;
  --danger-bg: rgba(255, 59, 48, 0.08);
  --danger-line: rgba(255, 59, 48, 0.45);
  --warning: #a05a00;
  --warning-bg: rgba(255, 149, 0, 0.1);
  --warning-line: rgba(255, 149, 0, 0.5);

  /* Liquid glass. On a light ground the bevel reads as a fine dark edge with
     a white inner highlight — the inverse of the dark treatment. */
  --glass-blur: 22px;
  --glass-sat: 180%;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-rim-hi: rgba(0, 0, 0, 0.15);
  --glass-rim-lo: rgba(0, 0, 0, 0.035);
  --glass-inner-top: rgba(255, 255, 255, 0.95);
  --glass-inner-bot: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.2);
  --glass-fallback: rgba(250, 250, 252, 0.97);
  --sheet-fallback: rgba(251, 251, 253, 0.97);

  /* Navigation bar, once it has materialised on scroll */
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-rim-hi: rgba(0, 0, 0, 0.13);
  --nav-rim-lo: rgba(0, 0, 0, 0.03);
  --nav-inner-top: rgba(255, 255, 255, 0.95);
  --nav-inner-bot: rgba(0, 0, 0, 0.05);
  --nav-shadow: 0 8px 26px -14px rgba(0, 0, 0, 0.3);
  --nav-fallback: rgba(251, 251, 253, 0.95);

  /* Homepage atmosphere */
  --aura-opacity: 0.55;
  --aura-1: rgba(10, 132, 255, 0.28);
  --aura-2: rgba(191, 90, 242, 0.2);
  --hero-glow-1: rgba(10, 132, 255, 0.26);
  --hero-glow-2: rgba(100, 210, 255, 0.12);
  --headline-grad: linear-gradient(96deg, #0a84ff 0%, #0071e3 40%, #8944ab 100%);
  --frame-tint: rgba(0, 0, 0, 0.07);
  --frame-shadow: 0 34px 90px -38px rgba(0, 0, 0, 0.45);
  --cta-glow-1: rgba(10, 132, 255, 0.4);
  --cta-glow-2: rgba(191, 90, 242, 0.16);
  --card-glow-docs: rgba(10, 132, 255, 0.3);
  --card-glow-blog: rgba(191, 90, 242, 0.26);
  --icon-grad: linear-gradient(
    150deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, var(--accent-alt) 18%, transparent)
  );
  --icon-highlight: rgba(255, 255, 255, 0.85);
}

/* ---- Reset ----------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 2rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--selection); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
a:hover { color: var(--accent-soft); }

img, svg, video, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button { font: inherit; color: inherit; }

code, pre, kbd { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ---- Layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--page-wide); }
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 590;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.9rem;
}

.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-4); }
.section-head p {
  margin-top: 1.1rem;
  font-size: var(--step-1);
  color: var(--text-2);
  line-height: 1.45;
  letter-spacing: -0.014em;
}

.footnote {
  margin-top: 2.25rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 76ch;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: translate 0.2s var(--ease-out);
}
.skip-link:focus-visible { translate: -50% 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Theme switching ------------------------------------------------- */
/* Applied for one beat while the palette swaps, so the change reads as a
   crossfade rather than a flash. Removed again straight after. */
:root.theme-anim,
:root.theme-anim *,
:root.theme-anim *::before,
:root.theme-anim *::after {
  transition:
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out) !important;
}

/* ---- Scroll reveal --------------------------------------------------- */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; translate: none; }
}
:root[data-theme="dark"] {
/* The dark palette, as a bare declaration list.

   This file is never linked directly. head.html reads it and emits it into
   two selectors — :root[data-theme="dark"] and, inside a prefers-color-scheme
   media query, :root:not([data-theme="light"]) — so there is exactly one
   place to edit a dark value. Keys must mirror the light set on :root in
   01-base.css. */

  color-scheme: dark;

  /* Surfaces and text */
  --bg: #000000;
  --bg-elev: #0b0b0e;
  --surface: #121215;
  --surface-2: #1b1b20;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --hover-tint: rgba(255, 255, 255, 0.07);
  --media-bg: #08080a;

  /* Accents */
  --accent: #0a84ff;
  --accent-soft: #64d2ff;
  --accent-alt: #bf5af2;
  --positive: #30d158;
  --neutral: #8e8e93;
  --selection: rgba(10, 132, 255, 0.35);
  --danger: #ff6961;
  --danger-bg: rgba(255, 69, 58, 0.12);
  --danger-line: rgba(255, 69, 58, 0.5);
  --warning: #ffb340;
  --warning-bg: rgba(255, 159, 10, 0.11);
  --warning-line: rgba(255, 159, 10, 0.45);

  /* Liquid glass */
  --glass-blur: 22px;
  --glass-sat: 180%;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.085);
  --glass-rim-hi: rgba(255, 255, 255, 0.5);
  --glass-rim-lo: rgba(255, 255, 255, 0.04);
  --glass-inner-top: rgba(255, 255, 255, 0.14);
  --glass-inner-bot: rgba(0, 0, 0, 0.28);
  --glass-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.62);
  --glass-fallback: rgba(24, 24, 28, 0.9);
  --sheet-fallback: rgba(20, 20, 24, 0.94);

  /* Navigation bar, once it has materialised on scroll */
  --nav-bg: rgba(255, 255, 255, 0.07);
  --nav-rim-hi: rgba(255, 255, 255, 0.42);
  --nav-rim-lo: rgba(255, 255, 255, 0.04);
  --nav-inner-top: rgba(255, 255, 255, 0.12);
  --nav-inner-bot: rgba(0, 0, 0, 0.24);
  --nav-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.7);
  --nav-fallback: rgba(20, 20, 24, 0.88);

  /* Homepage atmosphere */
  --aura-opacity: 0.5;
  --aura-1: rgba(10, 132, 255, 0.5);
  --aura-2: rgba(191, 90, 242, 0.32);
  --hero-glow-1: rgba(10, 132, 255, 0.45);
  --hero-glow-2: rgba(100, 210, 255, 0.16);
  --headline-grad: linear-gradient(96deg, #64d2ff 0%, #0a84ff 42%, #bf5af2 100%);
  --frame-tint: rgba(255, 255, 255, 0.045);
  --frame-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.9);
  --cta-glow-1: rgba(10, 132, 255, 0.62);
  --cta-glow-2: rgba(191, 90, 242, 0.2);
  --card-glow-docs: rgba(10, 132, 255, 0.5);
  --card-glow-blog: rgba(191, 90, 242, 0.45);
  --icon-grad: linear-gradient(
    150deg,
    color-mix(in srgb, var(--accent-soft) 26%, transparent),
    color-mix(in srgb, var(--accent-alt) 20%, transparent)
  );
  --icon-highlight: rgba(255, 255, 255, 0.28);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
/* The dark palette, as a bare declaration list.

   This file is never linked directly. head.html reads it and emits it into
   two selectors — :root[data-theme="dark"] and, inside a prefers-color-scheme
   media query, :root:not([data-theme="light"]) — so there is exactly one
   place to edit a dark value. Keys must mirror the light set on :root in
   01-base.css. */

  color-scheme: dark;

  /* Surfaces and text */
  --bg: #000000;
  --bg-elev: #0b0b0e;
  --surface: #121215;
  --surface-2: #1b1b20;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --hover-tint: rgba(255, 255, 255, 0.07);
  --media-bg: #08080a;

  /* Accents */
  --accent: #0a84ff;
  --accent-soft: #64d2ff;
  --accent-alt: #bf5af2;
  --positive: #30d158;
  --neutral: #8e8e93;
  --selection: rgba(10, 132, 255, 0.35);
  --danger: #ff6961;
  --danger-bg: rgba(255, 69, 58, 0.12);
  --danger-line: rgba(255, 69, 58, 0.5);
  --warning: #ffb340;
  --warning-bg: rgba(255, 159, 10, 0.11);
  --warning-line: rgba(255, 159, 10, 0.45);

  /* Liquid glass */
  --glass-blur: 22px;
  --glass-sat: 180%;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.085);
  --glass-rim-hi: rgba(255, 255, 255, 0.5);
  --glass-rim-lo: rgba(255, 255, 255, 0.04);
  --glass-inner-top: rgba(255, 255, 255, 0.14);
  --glass-inner-bot: rgba(0, 0, 0, 0.28);
  --glass-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.62);
  --glass-fallback: rgba(24, 24, 28, 0.9);
  --sheet-fallback: rgba(20, 20, 24, 0.94);

  /* Navigation bar, once it has materialised on scroll */
  --nav-bg: rgba(255, 255, 255, 0.07);
  --nav-rim-hi: rgba(255, 255, 255, 0.42);
  --nav-rim-lo: rgba(255, 255, 255, 0.04);
  --nav-inner-top: rgba(255, 255, 255, 0.12);
  --nav-inner-bot: rgba(0, 0, 0, 0.24);
  --nav-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.7);
  --nav-fallback: rgba(20, 20, 24, 0.88);

  /* Homepage atmosphere */
  --aura-opacity: 0.5;
  --aura-1: rgba(10, 132, 255, 0.5);
  --aura-2: rgba(191, 90, 242, 0.32);
  --hero-glow-1: rgba(10, 132, 255, 0.45);
  --hero-glow-2: rgba(100, 210, 255, 0.16);
  --headline-grad: linear-gradient(96deg, #64d2ff 0%, #0a84ff 42%, #bf5af2 100%);
  --frame-tint: rgba(255, 255, 255, 0.045);
  --frame-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.9);
  --cta-glow-1: rgba(10, 132, 255, 0.62);
  --cta-glow-2: rgba(191, 90, 242, 0.2);
  --card-glow-docs: rgba(10, 132, 255, 0.5);
  --card-glow-blog: rgba(191, 90, 242, 0.45);
  --icon-grad: linear-gradient(
    150deg,
    color-mix(in srgb, var(--accent-soft) 26%, transparent),
    color-mix(in srgb, var(--accent-alt) 20%, transparent)
  );
  --icon-highlight: rgba(255, 255, 255, 0.28);
} }
/* =========================================================================
   ProRDP — liquid glass
   One material, tuned in four steps of intensity. All of its colour comes
   from the --glass-* tokens in 01-base.css / _dark-tokens.css. The look comes from three
   stacked cues: a blurred + saturated backdrop, a specular rim that is bright
   where light would catch it and dark where it wouldn't, and a soft ambient
   shadow that lets the pane sit above the page rather than in it.
   ========================================================================= */

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-fallback);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 0 var(--glass-inner-top),
    inset 0 -1px 0 0 var(--glass-inner-bot),
    var(--glass-shadow);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
}

/* The specular rim. A 1px gradient border drawn with a mask so it can vary
   in brightness around the edge the way a real bevel catches light. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    var(--glass-rim-hi) 0%,
    var(--glass-rim-lo) 28%,
    transparent 50%,
    var(--glass-rim-lo) 72%,
    var(--glass-rim-hi) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Intensity variants ---------------------------------------------------- */
.glass--pill   { border-radius: var(--radius-pill); }
.glass--lg     { border-radius: var(--radius-lg); }
.glass--xl     { border-radius: var(--radius-xl); }

.glass--quiet {
  --glass-blur: 14px;
  --glass-rim-hi: rgba(255, 255, 255, 0.26);
  --glass-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.4);
}

.glass--raised {
  --glass-blur: 30px;
  --glass-sat: 200%;
  --glass-shadow:
    0 2px 6px -2px rgba(0, 0, 0, 0.4),
    0 22px 60px -18px rgba(0, 0, 0, 0.75);
}

/* Interactive glass: brightens and lifts, the way a control should. */
.glass--tap {
  transition:
    background-color 0.28s var(--ease-out),
    translate 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}
.glass--tap:hover {
  background-color: var(--glass-bg-hover);
  translate: 0 -2px;
}
.glass--tap:active { translate: 0 0; transition-duration: 0.08s; }

/* =========================================================================
   Controls
   ========================================================================= */

.btn {
  --btn-px: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem var(--btn-px);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 590;
  letter-spacing: -0.012em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    filter 0.22s var(--ease-out),
    translate 0.22s var(--ease-out),
    background-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}
.btn:active { translate: 0 1px; transition-duration: 0.08s; }

.btn--primary {
  position: relative;
  isolation: isolate;
  background: var(--accent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.18),
    0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--primary:hover { color: #fff; filter: brightness(1.11); translate: 0 -1px; }

.btn--glass {
  color: var(--text);
  background: var(--glass-fallback);
  box-shadow:
    inset 0 1px 0 0 var(--glass-inner-top),
    inset 0 -1px 0 0 var(--glass-inner-bot),
    var(--glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn--glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  }
}
.btn--glass:hover { color: var(--text); background-color: var(--glass-bg-hover); translate: 0 -1px; }

.btn--sm { --btn-px: 1.05rem; padding-block: 0.5rem; font-size: 0.9375rem; }
.btn--lg { --btn-px: 1.9rem; padding-block: 0.95rem; font-size: 1.0625rem; }

/* Apple's quiet "learn more ›" affordance. */
.btn--text {
  padding: 0;
  background: none;
  color: var(--accent-soft);
  font-weight: 500;
  gap: 0.3rem;
}
.btn--text .chev {
  transition: translate 0.22s var(--ease-out);
  font-size: 1.15em;
  line-height: 0;
}
.btn--text:hover .chev { translate: 3px 0; }

/* Small glass status chip, used for the metric and comparison badges. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-2);
  background: var(--glass-fallback);
  box-shadow: inset 0 0 0 1px var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chip {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
  }
}
.chip--accent {
  color: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.chip--muted { color: var(--text-3); }

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
/* =========================================================================
   ProRDP — chrome
   Floating glass navigation bar and site footer, shared by every page.
   ========================================================================= */

.nav-shell {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.nav-shell > * { pointer-events: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  min-height: var(--nav-h);
  padding: 0.4rem 0.5rem 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  /* At the top of the page the bar is barely there; it materialises on
     scroll, when there is finally something behind it worth refracting. */
  --glass-blur: 26px;
  --glass-bg: transparent;
  --glass-rim-hi: transparent;
  --glass-rim-lo: transparent;
  --glass-inner-top: transparent;
  --glass-inner-bot: transparent;
  --glass-shadow: none;
  --glass-fallback: transparent;
  transition:
    background-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.nav::before { transition: opacity 0.45s var(--ease-out); opacity: 0; }

.is-scrolled .nav {
  --glass-bg: var(--nav-bg);
  --glass-rim-hi: var(--nav-rim-hi);
  --glass-rim-lo: var(--nav-rim-lo);
  --glass-inner-top: var(--nav-inner-top);
  --glass-inner-bot: var(--nav-inner-bot);
  --glass-shadow: var(--nav-shadow);
  --glass-fallback: var(--nav-fallback);
}
.is-scrolled .nav::before { opacity: 1; }

/* Brand ----------------------------------------------------------------- */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  flex: none;
}
.nav__brand:hover { color: var(--text); opacity: 0.75; }
.nav__brand svg { width: 22px; height: 22px; flex: none; }

/* Links ----------------------------------------------------------------- */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.nav__link:hover { color: var(--text); background: var(--hover-tint); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--accent-soft);
}
.nav__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

/* Theme toggle ---------------------------------------------------------- */
.theme-toggle {
  display: none;
  position: relative;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hover-tint);
  color: var(--text-2);
  cursor: pointer;
  flex: none;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
:root[data-theme-pref] .theme-toggle { display: inline-grid; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.theme-toggle svg[data-mode="light"],
.theme-toggle svg[data-mode="dark"] { display: none; }
:root[data-theme-pref="light"] .theme-toggle svg[data-mode="auto"],
:root[data-theme-pref="dark"] .theme-toggle svg[data-mode="auto"] { display: none; }
:root[data-theme-pref="light"] .theme-toggle svg[data-mode="light"] { display: block; }
:root[data-theme-pref="dark"] .theme-toggle svg[data-mode="dark"] { display: block; }

/* Mobile ---------------------------------------------------------------- */
.nav__toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--hover-tint);
  cursor: pointer;
  flex: none;
}
/* Two bars that rotate into a cross, the way Apple's own mobile menu does. */
.nav__toggle span {
  position: absolute;
  inset: 0;
  display: block;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  top: calc(50% - 0.75px);
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: translate 0.3s var(--ease-out), rotate 0.3s var(--ease-out);
}
.nav__toggle span::before { translate: 0 -3.5px; }
.nav__toggle span::after { translate: 0 3.5px; }
.nav__toggle[aria-expanded="true"] span::before { translate: 0 0; rotate: 45deg; }
.nav__toggle[aria-expanded="true"] span::after { translate: 0 0; rotate: -45deg; }

.nav__sheet {
  display: none;
  width: 100%;
  max-width: var(--page-max);
  margin: 0.5rem auto 0;
  padding: 0.6rem;
  --glass-fallback: var(--sheet-fallback);
}
.nav__sheet ul { list-style: none; margin: 0; padding: 0; }
.nav__sheet .nav__link {
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  font-size: 1.0625rem;
}
.nav__sheet .nav__link[aria-current="page"] {
  color: var(--accent-soft);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.nav__sheet .nav__link[aria-current="page"]::after { content: none; }
.nav__sheet .btn { width: 100%; margin-top: 0.4rem; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__actions .btn--download { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav { margin-inline: auto; padding-right: 0.42rem; }
  .nav__brand { margin-right: auto; }
  .nav__sheet[data-open="true"] { display: block; }
}

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer__brand svg { width: 26px; height: 26px; margin-bottom: 0.9rem; }
.footer__brand p {
  max-width: 34ch;
  color: var(--text-3);
  font-size: 0.8125rem;
}
.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer__col h3 {
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a { color: var(--text-3); }
.footer__col a:hover { color: var(--text); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer__legal p { color: var(--text-3); }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a { color: var(--text-3); }
.footer__legal a:hover { color: var(--text); }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
