/* WP Workbench site styles: Virtualmin blue on light surfaces, glass frames
   around the product screenshots, and soft blue, sky and green glows. There
   is one light palette; the landing page, changelog and 404 page share
   these tokens. */
/* Self-hosted fonts. Instrument Sans is variable (weights 400-700, widths
   75-100%); the serif ships only in italic and Plex Mono only in Regular.
   font-display: swap shows fallback text until each font loads. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  /* Surfaces: page background, tinted section band, cards, and the subtle
     fill used for chips, table heads and hover states. */
  --bg: #f0f2f4;
  --band: #e6eaf0;
  --surface: #fff;
  --subtle: #e9edf2;
  --plate: #e1e6ed;
  /* Text: headings and strong text, body copy, and secondary labels. */
  --text: #0b0f17;
  --text-2: #283040;
  --muted: #475569;
  /* Hairlines: the default border and a stronger one. */
  --line: #d3dae4;
  --line-2: #bbc6d4;
  /* Accent blue for links, focus rings and selected states, with a pale
     fill and border for badges and highlighted chips. */
  --link: #0143d6;
  --btn: #0143d6;
  --btn-hover: #0a3bbf;
  --accent-soft: #eaf0ff;
  --accent-line: #cfdcfb;
  /* Single-purpose colors: the screenshot backdrop, green for the "Latest"
     and savings labels and storage dots, and the raised thumb of the tab
     bar and billing switch. */
  --shot-bg: #fff;
  --green: #287450;
  --raised: #fff;
  /* Glass and light: the frosted fill and its hairline, the lit top edge
     (an inset highlight), the background grid lines, and the blue, sky and
     green glows. */
  --glass: rgb(255 255 255 / 78%);
  --glass-line: rgb(11 15 23 / 11%);
  --highlight: rgb(255 255 255 / 90%);
  --grid: rgb(11 15 23 / 6.5%);
  --glow-1: rgb(37 99 235 / 18%);
  --glow-2: rgb(14 165 233 / 13%);
  --glow-3: rgb(88 204 0 / 7%);
  /* Gradients and shadows: the hero headline's gradient text, the
     screenshot bezel fill, and layered shadows for frames and cards. */
  --accent-text: linear-gradient(96deg, #0143d6 10%, #2563eb 45%, #0891b2 95%);
  --frame: linear-gradient(180deg, rgb(255 255 255 / 85%), rgb(255 255 255 / 50%));
  --shadow-frame: 0 1px 1px rgb(11 15 23 / 4%), 0 12px 24px -12px rgb(16 32 72 / 14%), 0 48px 96px -40px rgb(16 32 72 / 30%);
  --shadow-card: 0 1px 2px rgb(11 15 23 / 4%), 0 8px 24px -16px rgb(16 32 72 / 14%);
  /* Virtualmin mark colors on light surfaces. .top.scrolled swaps in a
     brighter pair so the mark stays visible on the dark header capsule. */
  --mark-blue: #0044d6;
  --mark-green: #58cc00;
  /* Ink tokens for the dark CLI card: graphite close to the scrolled header
     capsule, light text, code colors and a pale blue accent. */
  --ink-bg: linear-gradient(180deg, #47474c, #333337);
  --ink-line: #55555b;
  --ink-glow: rgb(255 255 255 / 8%);
  --ink-light: rgb(255 255 255 / 10%);
  --ink-text: #f5f5f7; --ink-text-2: #d4d5db; --ink-muted: #b0b1b9; --ink-comment: #a5a6ae;
  --ink-code: rgb(0 0 0 / 22%); --ink-code-line: rgb(255 255 255 / 10%); --ink-code-text: #ececf0;
  --ink-accent: #a9c4ff;
  --ink-shadow: 0 24px 48px -24px rgb(0 0 0 / 45%);
  /* Font stacks, the shared easing curve, and the 12-column grid gap. */
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gap: 24px;
}

/* Base page. scroll-padding-top keeps anchor targets clear of the sticky
   header. interpolate-size lets the FAQ answers transition to and from
   height auto.
   overflow-x: clip stops wide decorations, such as the 100vw header strip,
   from causing sideways scrolling. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; interpolate-size: allow-keywords; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* A faint fixed noise layer over the whole page breaks up large flat
   areas. z-index 90 puts it above the header (50) and below the skip link
   (100); pointer-events: none lets clicks pass through. */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .028; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Keep [hidden] elements hidden even when a class sets display, such as
   the billing switch before script.js shows it. */
[hidden] { display: none !important; }
/* Element defaults: selection color, links, media, form fonts and
   paragraph color. */
::selection { background: var(--accent-line); color: var(--text); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { color: inherit; }
p { margin: 0; color: var(--text-2); }
/* Headings: tight leading and negative tracking; h1 and h2 scale with the
   viewport. */
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 7.6vw, 6.6rem); line-height: .96; letter-spacing: -.058em; font-weight: 520; }
h2 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 520; }
h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
/* An <em> in a heading sets its phrase in the serif italic. It is scaled
   up slightly to balance the sans, with a tight line height so it does not
   grow the line box. The right padding leaves room for the italic
   overhang. */
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding-right: .06em; }
h1 em, h2 em, h3 em { font-size: 1.08em; line-height: .9; }
h3 em { font-size: 1.14em; }
/* Inline code uses the mono font. .ic is the shared stroke icon: an <svg>
   that shows a sprite symbol through <use>, stroked in currentColor and
   20px unless a component resizes it. */
code { font: .86em var(--mono); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Layout helpers: .wrap is the centered content column with 32px side
   gutters; .grid is the 12-column grid of the changelog and 404 pages. */
.wrap { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
/* Accessibility: .sr-only hides text visually but keeps it for screen
   readers. The skip link waits above the viewport until it gets focus.
   Keyboard focus shows a blue outline on every element. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 4px; }
/* Shared pieces: .eyebrow is the mono uppercase label above a title, with
   an optional numbered pill; .lead is the larger intro paragraph; .tile is
   the rounded icon tile in the facts strip, benefits row and
   existing-customer note. */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); font: 400 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow > span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--link); letter-spacing: .04em; }
.lead { font-size: 18px; line-height: 1.65; }
.tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--surface), var(--subtle)); color: var(--link); box-shadow: inset 0 1px 0 var(--highlight), 0 1px 2px rgb(11 15 23 / 5%); }
.tile .ic { width: 20px; height: 20px; }

/* Buttons are pills with a lit top edge; the arrow icon nudges right on
   hover. .btn-primary is solid blue, .btn-secondary is frosted glass, and
   .btn.sm is the compact size used in the header. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; transition: background-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: linear-gradient(180deg, #2c66f6, #0143d6); border-color: #0039bd; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 1px 2px rgb(1 40 140 / 30%), 0 8px 22px -10px rgb(1 67 214 / 70%); }
.btn-primary:hover { background: linear-gradient(180deg, #3a72ff, #0a4be6); box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 1px 2px rgb(1 40 140 / 30%), 0 14px 32px -12px rgb(1 67 214 / 85%); }
.btn-secondary { background: var(--glass); border-color: var(--line-2); color: var(--text); box-shadow: inset 0 1px 0 var(--highlight), 0 1px 2px rgb(11 15 23 / 5%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-secondary:hover { border-color: var(--muted); }
.btn.sm { min-height: 38px; padding: 8px 16px; font-size: 13px; gap: 8px; }
.btn.sm .ic { width: 15px; height: 15px; }
/* .actions is a wrapping row of buttons. .more is a text link with an
   arrow that nudges right on hover. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.more .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.more:hover { text-decoration: none; }
.more:hover .ic { transform: translateX(3px); }

/* Header: a sticky pill, transparent over the top of the page. When
   script.js adds .scrolled (after 8px of scrolling), a dark graphite glass
   capsule fades in. .scrolled also swaps the color tokens below, so the
   brand, nav links, Menu button and menu sheet recolor without dark rules
   of their own. */
.top {
  position: sticky; top: 12px; z-index: 50;
  width: min(1200px, calc(100% - 32px)); margin: 12px auto 0;
  border: 1px solid transparent; border-radius: 999px;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.top.scrolled {
  --text: #f5f5f7; --text-2: #efefef; --muted: #c6c9d1; --subtle: rgb(0 0 0 / 26%);
  --surface: #16171c; --line: rgb(255 255 255 / 16%); --line-2: rgb(255 255 255 / 26%); --highlight: rgb(255 255 255 / 8%);
  --mark-blue: #5f9cfa; --mark-green: #78d65a;
}
/* The dark glass lives on ::after, not on .top itself. .top is a stacking
   context, and its z-index -1 pseudo-elements paint above its own
   background, so the halo (::before) would cover a glass background.
   ::after comes later and paints above the halo. inset: -1px also covers
   the transparent border. */
.top::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 999px;
  opacity: 0; transition: opacity .3s;
  background: rgb(11 11 14 / 67%);
  box-shadow: 0 0 0 1px #303035, 0 14px 40px -20px rgb(0 0 0 / 55%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
.top.scrolled::after { opacity: 1; }
/* The halo: a full-width strip in the page background color that covers
   and blurs content as it scrolls past the top of the viewport. top: -13px
   reaches the viewport top (12px sticky offset plus the 1px border). It is
   solid to just inside the pill's top edge, then fades out over the next
   13px or so, so content beside the pill fades instead of ending at a hard
   line. Content under the pill is blurred by the capsule's own glass. */
.top::before {
  content: ""; position: absolute; left: 50%; top: -13px; z-index: -1;
  width: 100vw; height: 30px; transform: translateX(-50%);
  pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to bottom, var(--bg) 0 55%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.top.scrolled::before { opacity: 1; }
/* The header row fills the pill instead of the .wrap width. Its left
   padding is smaller because the mark has its own transparent margin. */
.top .wrap { display: flex; align-items: center; gap: 24px; width: 100%; height: 60px; padding: 0 10px 0 6px; }
/* Brand link: the mark, then the name over a small "by Virtualmin" line. */
.brand { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
/* The Virtualmin mark is an inline SVG <symbol> drawn with <use>, so CSS
   can color it on each surface. Its blue paths use currentColor, set here
   from --mark-blue. Selectors cannot reach into the <use> shadow tree, so
   the leaf path reads --mark-green in its own inline style; custom
   properties inherit through the shadow tree. The symbol has a wide
   transparent margin, so it is sized close to the header height. The
   footer mark is pulled left to offset that margin. */
.mark { display: block; flex: none; color: var(--mark-blue); fill: currentColor; }
.brand .mark { width: 56px; height: 56px; }
.foot .brand .mark { width: 48px; height: 48px; margin-left: -7px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
/* Desktop nav: pill links on hover; the current page (aria-current) stays
   highlighted. .top-end holds the header button and the mobile Menu. */
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { padding: 8px 13px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s, background-color .2s; }
.links a:hover, .links a[aria-current="page"] { background: var(--subtle); color: var(--text); text-decoration: none; }
.top-end { display: flex; align-items: center; gap: 8px; }
/* Mobile menu: a native <details> disclosure that replaces the nav links
   at 960px and narrower. script.js closes it after a link click, an
   outside click or Escape. The sheet scrolls if it would not fit in the
   viewport. */
.menu { display: none; position: relative; }
.menu summary { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.sheet { position: absolute; top: calc(100% + 12px); right: 0; width: min(300px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--glass-line); border-radius: 20px; box-shadow: inset 0 1px 0 var(--highlight), 0 24px 48px -16px rgb(11 15 23 / 35%); }
.sheet a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-size: 15px; }
.sheet a:hover { background: var(--subtle); color: var(--text); text-decoration: none; }

/* Hero: a fading grid and soft glows behind the headline and the product
   screenshot. isolation: isolate gives the hero its own stacking context,
   so .hero-bg (z-index -1) sits behind the hero content but no further
   back. .hero-bg starts 84px higher so the light runs up behind the
   header. A mask limits the grid to a soft-edged area around the headline,
   and the glows gather behind the screenshot. */
.hero { position: relative; padding: 80px 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: -84px 0 auto; height: 1300px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 72px 72px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 60% 42% at 50% 22%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 60% 42% at 50% 22%, #000 25%, transparent 72%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(38% 30% at 30% 62%, var(--glow-1), transparent 70%), radial-gradient(34% 28% at 72% 58%, var(--glow-2), transparent 70%), radial-gradient(26% 22% at 52% 74%, var(--glow-3), transparent 70%), radial-gradient(50% 30% at 50% 0%, var(--glow-2), transparent 70%); }
.hero-copy { text-align: center; }
/* The "New in 2.2" pill that links to the changelog. Its moving border
   light is in the motion section. */
.note { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 28px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); font-size: 13px; color: var(--text-2); box-shadow: inset 0 1px 0 var(--highlight), 0 1px 3px rgb(11 15 23 / 6%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.note b { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); font-size: 12px; font-weight: 600; }
.note .ic { width: 14px; height: 14px; color: var(--muted); transition: transform .25s var(--ease); }
.note:hover { text-decoration: none; border-color: var(--line-2); }
.note:hover .ic { transform: translateX(3px); }
.hero .eyebrow { justify-content: center; margin-bottom: 20px; }
/* Gradient text: background-clip: text paints only inside the element's
   box, and the italic glyphs reach past it. Padding extends the box past
   the ascenders, descenders and overhang; equal negative margins cancel it
   so the layout does not move. */
.hero h1 em { display: inline-block; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .12em .1em .26em .06em; margin: -.12em -.1em -.26em -.06em; }
.hero-lead { max-width: 660px; margin: 28px auto 0; font-size: 19px; line-height: 1.6; }
.hero .actions { justify-content: center; margin-top: 36px; }
/* Meta line: a middle dot separates the items. The perspective on
   .hero-product gives depth to the screenshot's scroll-driven tilt. */
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-meta > span + span::before { content: "·"; margin-right: 18px; }
.hero-product { position: relative; margin-top: 72px; perspective: 2000px; }
/* The "Built for" strip: three audiences between hairlines. */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 26px 28px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.facts span:not(.tile) { display: block; font-size: 14px; color: var(--muted); }

/* Screenshots sit in a glass bezel (.frame) with a lit top edge, and each
   .shot link opens its image in the lightbox. On wide screens the image
   fits the frame; at 960px and narrower, hero and tour screenshots keep a
   960px width and scroll sideways inside it. min-width: 0 lets the figure
   shrink inside grid and flex layouts. */
.plate { margin: 0; padding: 0; min-width: 0; }
.frame { position: relative; padding: 8px; border: 1px solid var(--glass-line); border-radius: 22px; background: var(--frame); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow-frame); }
/* The inner radius is the frame radius minus its border and padding
   (22 - 1 - 8 = 13px), so the corners stay concentric; the phone sizes
   follow the same rule (16 - 1 - 5 = 10px). .shot draws the image's 1px
   outline. */
.shot { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--shot-bg); cursor: zoom-in; }
.shot img { width: 100%; height: auto; }
/* Caption row: text on the left, the "Expand screenshot" link on the
   right. */
figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 6px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
figcaption .shot-expand { display: flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 500; }
figcaption .ic { width: 13px; height: 13px; }

/* Requirements: three short lists in a hairline strip before pricing.
   Each list's dots use one of the glow colors: blue, sky and green. */
.stack { padding: 0 0 80px; }
.stack-title { margin-bottom: 22px; text-align: center; color: var(--muted); font: 400 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.req { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--line); }
.req > div { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 24px 0; }
.req > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.req dt { color: var(--text); font-size: 14px; font-weight: 600; }
.req dd { margin: 0; }
.req ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.req li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; }
.req li::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: #2563eb; }
.req > div:nth-child(2) li::before { background: #0ea5e9; }
.req > div:nth-child(3) li::before { background: #58cc00; }

/* Sections: shared vertical spacing, and a heading row with the title on
   the left and a lead or aside on the right. .centered stacks the heading
   in the middle, as in the tour. */
.sec { position: relative; padding: 128px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-heading > div:first-child { flex: 1; }
.section-heading > .lead, .section-aside { max-width: 400px; padding-bottom: 6px; }
.section-aside .more { margin-top: 20px; }
.section-heading.centered { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered > .lead { max-width: 560px; }
/* Two-column feature layout (backups): copy beside a visual. .benefits is
   its check list with round icon badges. */
.feature-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.feature-copy .lead { margin-top: 28px; }
.benefits { margin: 32px 0 0; padding: 0; list-style: none; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.benefits .ic { width: 18px; height: 18px; margin-top: 2px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: var(--accent-soft); color: var(--link); stroke-width: 2.2; }

/* Three short benefits with icon tiles, below the tour. */
.benefits-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 64px 0 0; padding: 0; list-style: none; }
.benefits-row h3 { margin-top: 20px; font-size: 18px; }
.benefits-row p { margin-top: 6px; font-size: 15px; }

/* Product tour on the tinted band, with a grid that fades out from the
   top. overflow: clip, not hidden, trims overflow without making .tour a
   scroll container, which would stop the tab bar from sticking. .wrap is
   positioned so it paints above the grid layer. */
.tour { background: var(--band); border-block: 1px solid var(--line); overflow: clip; }
.tour::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 72px 72px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 40% at 50% 0%, #000, transparent 75%); }
.tour .wrap { position: relative; }
.tabs { margin-top: 0; }
/* The tab bar stays pinned 10px below the stuck header while a tall panel
   scrolls. z-index 5 keeps it above the screenshots and under the header
   (50). The full-width wrapper ignores the pointer so it does not block the
   page; only the pill takes clicks. The pill scrolls sideways when the
   labels do not fit, with its scrollbar hidden. */
.seg-wrap { position: sticky; top: 84px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.seg { position: relative; display: flex; gap: 2px; max-width: 100%; overflow-x: auto; padding: 5px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); scrollbar-width: none; pointer-events: auto; box-shadow: inset 0 1px 0 var(--highlight), 0 12px 32px -16px rgb(11 15 23 / 30%); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.seg::-webkit-scrollbar { display: none; }
/* The sliding thumb under the selected tab: script.js sets --thumb-x and
   --thumb-w from the tab's offset and width. Tab buttons sit above it. The
   inset focus ring stays inside the pill, where overflow would clip an
   outer one. */
.seg::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--thumb-w, 0); transform: translateX(var(--thumb-x, 0)); border-radius: 999px; background: var(--raised); box-shadow: inset 0 1px 0 var(--highlight), 0 1px 2px rgb(11 15 23 / 8%), 0 4px 12px -4px rgb(11 15 23 / 12%); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg button { position: relative; z-index: 1; flex: none; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.seg button:focus-visible { outline-offset: -3px; border-radius: 999px; }
/* Panel caption: title and text beside a "01 / 06" counter. Below the
   panels, a footer line pairs a hint with a docs link. */
.panel-cap { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 40px 6px 24px; }
.panel-cap h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.panel-cap p { margin-top: 8px; max-width: 760px; font-size: 15px; }
.tour-count { flex: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 12px var(--mono); color: var(--muted); }
.tour-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 28px; font-size: 13px; color: var(--muted); }
.tour-footer .more { flex: none; }
/* Without JS, every panel shows in sequence and the tab bar is hidden.
   script.js adds .tabs-ready to html, and then only the selected panel
   (.on) shows. */
html:not(.tabs-ready) .seg-wrap { display: none; }
html:not(.tabs-ready) .panel + .panel { margin-top: 32px; }
.tabs-ready .panel:not(.on) { display: none; }

/* Comparison of hosted managers and WP Workbench: a plain table with the
   Workbench column tinted. overflow: hidden clips the table to the rounded
   corners. At 700px and narrower, each row stacks into labeled cells. */
.compare { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow-card); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 24px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.55; }
.compare thead th { padding: 14px 24px; border-top: 0; background: var(--subtle); color: var(--muted); font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.compare thead th.us { color: var(--link); }
.compare tbody th { width: 22%; color: var(--text); font-weight: 600; }
/* Each cell has an icon badge in its left padding: a red cross for hosted
   managers, a blue check on white in the Workbench column. */
.compare td { position: relative; padding-left: 60px; color: var(--text-2); }
.compare td .ic { position: absolute; left: 24px; top: 21px; width: 14px; height: 14px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: rgb(220 60 60 / 12%); color: #d24a3f; stroke-width: 2.4; }
.compare td.us { background: var(--accent-soft); color: var(--text); }
.compare td.us .ic { background: var(--surface); color: var(--link); }

/* Backups visual: a soft glow behind the schedule screenshot. */
.backup-visual { position: relative; }
.backup-visual::before { content: ""; position: absolute; inset: 0 0 10%; z-index: -1; background: radial-gradient(45% 45% at 60% 45%, var(--glow-2), transparent 70%), radial-gradient(40% 40% at 35% 60%, var(--glow-1), transparent 70%); filter: blur(24px); }
.backup-visual .plate { max-width: 680px; margin-inline: auto; }
/* The backup form always fits its frame and never scrolls sideways. This
   overrides the 960px rule that lets other screenshots scroll. */
.backup-visual .shot { overflow: hidden; }
.backup-visual .shot img { width: 100%; }
/* Example backup destinations as chips, with a link to the full list. */
.storage { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
.storage-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.storage-list li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--text-2); }
.storage-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.storage .more { font-size: 13px; }

/* Security, CLI and automation cards in a six-column bento grid. With a
   precise pointer that can hover, a soft light follows the cursor:
   script.js sets --mx and --my, and the light defaults to the top center.
   Each card is its own stacking context, so the z-index -1 light sits
   above the card background and below its content. */
.control { background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: inset 0 1px 0 var(--highlight), var(--shadow-card); isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow-1), transparent 65%); transition: opacity .4s; }
.card:hover::before { opacity: .55; }
.card h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.card p { margin-top: 12px; font-size: 15px; }
/* The security and CLI cards take half a row each, the mini cards a third.
   margin-top: auto pushes each card's list, visual or link to the bottom,
   so cards in one row line up. */
.security-card, .terminal-card { grid-column: span 3; display: flex; flex-direction: column; }
.security-card .security-list { margin-top: auto; }
.security-card > p { margin-bottom: 26px; }
.terminal-card .more { margin-top: auto; }
.mini-card { grid-column: span 2; display: flex; flex-direction: column; padding: 30px; }
/* Mini card label. !important beats .card p and .mini-card p, which are
   more specific. */
.card-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px !important; color: var(--link) !important; font: 500 12px/1.4 var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; }
.card-kicker .ic { width: 16px; height: 16px; }
.mini-card h3 { font-size: 19px; }
.mini-card p { font-size: 14px; }
/* Security card visual: two rings and a blurred glow around a blue shield
   badge, with a check list below. The outer ring pulses (see the motion
   section). */
.shield-viz { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: -6px 0 26px -8px; }
.shield-viz i { position: absolute; inset: 0; border: 1px solid var(--accent-line); border-radius: 50%; }
.shield-viz i:nth-child(2) { inset: 18px; border-color: var(--accent-line); opacity: .8; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.shield-viz i:nth-child(3) { inset: 36px; border: 0; background: var(--glow-1); filter: blur(14px); }
.shield-viz span { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #0039bd; border-radius: 18px; background: linear-gradient(180deg, #2c66f6, #0143d6); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 10px 24px -8px rgb(1 67 214 / 70%); }
.shield-viz .ic { width: 28px; height: 28px; }
.security-list { padding: 22px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); list-style: none; }
.security-list li { display: flex; gap: 10px; align-items: center; margin: 10px 0 0; font-size: 15px; color: var(--text); }
.security-list .ic { width: 16px; height: 16px; color: var(--link); stroke-width: 2; }
/* CLI card: a dark ink panel. color-scheme: dark gives its code block dark
   scrollbars, and its pointer light is a faint white instead of blue. */
.terminal-card { padding: 26px 34px 32px; border-color: var(--ink-line); background: radial-gradient(120% 80% at 100% 0%, var(--ink-glow), transparent 55%), var(--ink-bg); color-scheme: dark; box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), var(--ink-shadow); }
.terminal-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--ink-light), transparent 65%); }
.terminal-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; color: var(--ink-muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.terminal-bar > span:last-child { margin-left: auto; padding: 3px 8px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; }
.terminal-card h3 { color: var(--ink-text); }
.terminal-card > p { color: var(--ink-text-2); max-width: 46ch; }
/* Code block: a light base style that the CLI card overrides with ink
   colors. .c marks comments, .p the shell prompt, and .cursor is a block
   cursor that blinks (see the motion section). */
pre.code { overflow-x: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--subtle); color: var(--text); line-height: 1.8; font-size: 13px; }
pre.code code { font-size: 13px; }
.terminal-card .code { margin: 26px 0 24px; padding: 20px 22px; background: var(--ink-code); border: 1px solid var(--ink-code-line); border-radius: 14px; color: var(--ink-code-text); line-height: 1.85; }
.code .c { color: var(--muted); }
.terminal-card .c { color: var(--ink-comment); }
.terminal-card .p { color: var(--ink-accent); }
.cursor { display: inline-block; width: .6em; height: 1.15em; margin-left: 4px; vertical-align: -.2em; background: #6ea0ff; }
.terminal-card .more { color: var(--ink-accent); }
/* Scheduler card: a timeline of runs five minutes apart. Earlier runs are
   dots on a track; the next due run is a larger dot that pulses. The track
   runs between the centers of the first and last of six columns, and
   top: 36px centers it on the dots (30px padding + 2px margin + 5px
   radius - 1px). A ring in the card color around each dot cuts the track. */
.ticks { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin: auto 0 0; padding: 30px 0 0; list-style: none; font: 11px var(--mono); color: var(--muted); }
.ticks::before { content: ""; position: absolute; top: 36px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-line), var(--link)); }
.ticks li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin: 2px 0; border-radius: 50%; background: color-mix(in srgb, var(--link) 55%, var(--surface)); box-shadow: 0 0 0 3px var(--surface); }
.ticks li:last-child { color: var(--link); }
.ticks li:last-child::before { width: 14px; height: 14px; margin: 0; background: linear-gradient(180deg, #2c66f6, #0143d6); box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px rgb(1 67 214 / 18%); }
/* Search and replace card: the old URL struck through above the new one.
   Long values end in an ellipsis. */
.replace { display: grid; gap: 8px; margin-top: auto; padding-top: 26px; }
.replace code { display: block; overflow: hidden; padding: 9px 12px; border-radius: 10px; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.replace .from { border: 1px solid var(--line); background: var(--subtle); color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(220 60 60 / 60%); }
.replace .to { border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--link); }
/* Multiple servers card: sites with a green status dot and a Local or
   Remote label. */
.fleet { display: grid; gap: 6px; margin: auto 0 0; padding: 26px 0 0; list-style: none; }
.fleet li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--subtle); font: 12px var(--mono); color: var(--text); }
.fleet li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 3px rgb(63 185 80 / 18%); }
.fleet span { margin-left: auto; color: var(--muted); font: 500 11px var(--sans); }

/* Pricing on the tinted band: the plan's feature lists beside one price
   card. */
.pricing { background: var(--band); border-block: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px 96px; align-items: center; }
.pricing-copy .lead { margin-top: 28px; max-width: 480px; }
.pro-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 32px; }
.pro-groups h3 { margin-bottom: 14px; color: var(--muted); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pro-features { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.pro-features li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); }
.pro-features .ic { width: 14px; height: 14px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--accent-soft); color: var(--link); stroke-width: 2.4; }
.pricing-note { max-width: 400px; margin-top: 28px; font-size: 13px; color: var(--muted); }
/* A glow behind the price card. z-index 0 rather than -1, so the glow
   cannot drop behind the band background; .price-card comes later and
   paints above it. The card's gradient border is a surface fill clipped to
   the padding box over a gradient on the border box, with a transparent
   1px border. */
.price-wrap { position: relative; }
.price-wrap::before { content: ""; position: absolute; inset: 8% -6% -4%; z-index: 0; background: radial-gradient(50% 50% at 50% 50%, var(--glow-1), transparent 70%); filter: blur(30px); }
.price-card { position: relative; padding: 34px; border: 1px solid transparent; border-radius: 28px; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(160deg, #2c66f6, rgb(14 165 233 / 55%) 30%, var(--line) 60%, var(--line)) border-box; box-shadow: inset 0 1px 0 var(--highlight), 0 30px 60px -30px rgb(16 32 72 / 30%); }
/* Card header: the plan name and a "Workbench included" badge. */
.price-card-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.included-badge { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--link); font: 600 12px var(--sans); letter-spacing: 0; text-transform: none; }
/* Billing switch: two radios styled as a segmented control. It starts
   hidden and script.js shows it; the switch changes only the shown price,
   period, terms and purchase link. The ::before thumb is half the width
   minus the 4px inset, and :has() slides it right when Yearly is checked.
   The radios stay focusable but invisible, so the focus ring is drawn on
   the visible span next to each radio. */
.billing { position: relative; display: flex; gap: 0; width: 100%; margin: 0 0 28px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--subtle); }
.billing::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--raised); box-shadow: inset 0 1px 0 var(--highlight), 0 1px 2px rgb(11 15 23 / 8%), 0 4px 12px -4px rgb(11 15 23 / 14%); transition: transform .4s var(--ease); }
.billing:has(input[value="annual"]:checked)::before { transform: translateX(100%); }
.billing label { position: relative; flex: 1; cursor: pointer; }
.billing input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing label > span { display: flex; justify-content: center; align-items: center; gap: 7px; padding: 9px 4px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.billing input:checked + span { color: var(--text); font-weight: 600; }
.billing input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.billing small { padding: 1px 7px; border-radius: 999px; background: rgb(40 116 80 / 12%); font-size: 11px; color: var(--green); font-weight: 600; }
/* Price and purchase button. The button spans the card, with its label at
   one end and the arrow at the other. */
.price-from { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.amount { display: flex; gap: 10px; align-items: baseline; }
.amount b { font-size: 76px; font-weight: 520; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount > span { font-size: 15px; color: var(--muted); }
.price-terms { margin-top: 14px; font-size: 14px; }
.price-cta { width: 100%; margin-top: 28px; min-height: 54px; justify-content: space-between; padding-inline: 26px; }
/* The annual link shows only without JS; script.js hides it once the
   billing switch appears. Below it, the per-server license note. */
.annual-option { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.price-license { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
/* Plan sizes: chips for the domain counts, with the 10-domain starting
   plan highlighted, and a link to compare all plans. */
.plan-scale { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.plan-scale > span { color: var(--text); font-weight: 600; }
.plan-scale ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.plan-scale li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--subtle); font: 12px var(--mono); color: var(--text-2); }
.plan-scale li:first-child { border-color: var(--accent-line); background: var(--accent-soft); color: var(--link); }
.plan-scale p { font-size: 13px; color: var(--muted); }
.plan-scale a { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-weight: 600; }
.plan-scale .ic { width: 14px; height: 14px; }
/* A note for existing Pro customers, across both pricing columns. */
.existing-customer { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: inset 0 1px 0 var(--highlight); }
.existing-customer > div { flex: 1; }
.existing-customer strong { font-size: 16px; font-weight: 600; }
.existing-customer p { margin-top: 2px; font-size: 14px; }
.existing-customer .more { flex: none; }

/* FAQ: native <details> disclosures, so the answers work with the keyboard
   and without JS. On wide screens the heading column sticks beside the
   answers. */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .more { margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 500; letter-spacing: -.015em; color: var(--text); transition: color .2s; }
.faq summary:hover { color: var(--link); }
.faq summary::-webkit-details-marker { display: none; }
/* The +/- icon is two 1.5px bars drawn as gradients. Opening rotates it
   and shrinks the vertical bar to zero, leaving a minus. */
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface) no-repeat center / 12px; background-image: linear-gradient(var(--muted), var(--muted)), linear-gradient(var(--muted), var(--muted)); background-size: 12px 1.5px, 1.5px 12px; transition: transform .35s var(--ease), background-size .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; }
/* Where ::details-content is supported, answers open and close with a
   height transition. Animating to auto needs interpolate-size on html, and
   allow-discrete keeps the content visible until the close finishes. */
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 56px 26px 0; font-size: 16px; line-height: 1.7; }

/* Footer: the brand, two link groups, and a base line with the version
   link and tagline. */
.foot { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2.6fr repeat(2, 1fr); gap: 40px; }
.foot-brand p { max-width: 300px; margin-top: 16px; font-size: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { margin-bottom: 6px; font: 400 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot-col a { color: var(--text-2); font-size: 14px; }
.foot-col a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-base a { color: inherit; }
.foot-base > span { margin-left: auto; }

/* Lightbox: a native <dialog> that shows the full-resolution screenshot.
   The image is at least 1200px wide instead of shrinking to fit, and the
   dialog scrolls in both directions. The dialog handles focus and Escape.
   The close button is fixed to the viewport corner so it stays in view
   while the image scrolls, and the page stops scrolling while it is open. */
dialog.lightbox { width: min(94vw, 1600px); max-width: 94vw; max-height: 88vh; padding: 0; border: 1px solid #3a414c; border-radius: 16px; background: var(--shot-bg); overflow: auto; box-shadow: 0 40px 120px -20px rgb(0 0 0 / 60%); }
dialog.lightbox::backdrop { background: rgb(4 7 14 / 82%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.lightbox img { width: max(100%, 1200px); max-width: none; height: auto; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; background: rgb(20 26 38 / 80%); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
dialog.lightbox button:hover { background: rgb(40 50 70 / 90%); }
html:has(dialog[open]) { overflow: hidden; }

/* Changelog and 404 pages (main.doc): a glow and fading grid at the top,
   like the hero's, then a 12-column layout with a label in columns 1-3 and
   content in 4-12. isolation keeps the z-index -1 layers inside main, and
   they start 84px higher so the light runs up behind the header. The
   changelog markup comes from tools/build_changelog.py; 404.html is
   hand-written. */
.doc { position: relative; min-height: 65vh; padding: 96px 0 120px; isolation: isolate; }
.doc::before { content: ""; position: absolute; inset: -84px 0 auto; height: 640px; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 20% 0%, var(--glow-1), transparent 70%), radial-gradient(30% 40% at 60% 0%, var(--glow-2), transparent 70%); }
.doc::after { content: ""; position: absolute; inset: -84px 0 auto; height: 640px; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 30% 0%, #000 20%, transparent 70%); }
.sec-label, .rel-head { grid-column: 1 / span 3; }
.sec-label { padding-top: 14px; color: var(--muted); font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sec-body, .rel ul { grid-column: 4 / -1; }
.doc h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
.doc .lead { margin-top: 24px; max-width: 620px; }
.doc-actions { margin-top: 40px; gap: 12px 20px; }
/* Release list: each release is a 12-column row. On wide screens the
   version, date and Latest badge stick beside the change list; align-self:
   start lets the sticky grid item move. The newest release gets accent
   colors, and change items get small ring bullets. */
.releases { position: relative; margin-top: 80px; }
.rel { position: relative; padding: 36px 0; border-top: 1px solid var(--line); }
.rel-head { position: sticky; top: 100px; align-self: start; }
.rel h2 { display: inline-flex; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 15px/1.5 var(--mono); letter-spacing: 0; }
.rel:first-child h2 { border-color: var(--accent-line); background: var(--accent-soft); color: var(--link); }
.rel time { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.rel .latest { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; margin-top: 10px; border-radius: 999px; background: rgb(40 116 80 / 12%); color: var(--green); font-size: 12px; font-weight: 600; }
.rel .latest::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rel ul { margin: 0; padding: 0; list-style: none; }
.rel li { position: relative; margin: 0 0 10px; padding-left: 22px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.rel li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.rel:first-child li::before { border-color: var(--link); }
.rel li code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); }

/* Up to 1100px: tighten the header, section, heading and card spacing
   before the layout stacks at 960px. */
@media (max-width: 1100px) {
  .top .wrap { gap: 12px; }
  .links a { padding-inline: 10px; }
  .feature-split, .pricing-grid, .faq-layout { gap: 48px; }
  .section-heading { gap: 40px; }
  .section-heading > .lead, .section-aside { max-width: 340px; }
  .card { padding: 30px; }
  .terminal-card { padding-inline: 28px; }
  .mini-card { padding: 26px; }
}
/* Up to 960px: the nav links fold into the Menu, two-column layouts stack,
   and the bento grid drops to two columns. Hero and tour screenshots keep
   a 960px width and scroll sideways in their frames. The sticky FAQ
   heading and release labels go static, and changelog rows go full width. */
@media (max-width: 960px) {
  .links { display: none; }
  .top-end { margin-left: auto; }
  .menu { display: block; }
  .sec { padding: 96px 0; }
  .hero { padding-top: 56px; }
  .facts li { padding: 22px 18px; align-items: flex-start; }
  .facts b { font-size: 14px; }
  .facts span:not(.tile) { font-size: 13px; }
  .feature-split, .pricing-grid, .faq-layout { grid-template-columns: 1fr; }
  .feature-copy { max-width: 620px; }
  .shot { overflow-x: auto; }
  .hero-product .shot img, .tour-plate .shot img { width: max(100%, 960px); max-width: none; }
  .section-heading { align-items: start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-card, .terminal-card { grid-column: 1 / -1; }
  .mini-card { grid-column: span 1; }
  .mini-card:last-child { grid-column: 1 / -1; }
  .price-wrap { max-width: 540px; width: 100%; }
  .pricing-copy .lead { max-width: 620px; }
  .pricing-note { max-width: none; }
  .req { grid-template-columns: 1fr; }
  .req > div { padding: 18px 0; }
  .req > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .faq-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .sec-label, .sec-body, .rel-head, .rel ul { grid-column: 1 / -1; }
  .rel-head { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .rel time, .rel .latest { margin-top: 0; }
}
/* Up to 700px: section headings, the bento grid, and the facts and
   benefits rows go to one column. The comparison table stacks: its header
   row is hidden, and ::before text labels each cell instead. */
@media (max-width: 700px) {
  .section-heading { flex-direction: column; gap: 24px; margin-bottom: 48px; }
  .section-heading > .lead, .section-aside { max-width: none; }
  .bento { grid-template-columns: 1fr; }
  .mini-card:last-child { grid-column: auto; }
  .benefits-row { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .benefits-row li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .benefits-row .tile { grid-row: span 2; }
  .benefits-row h3 { margin-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 16px 4px; align-items: center; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .compare thead { display: none; }
  .compare tr, .compare tbody th, .compare td { display: block; }
  .compare tbody th { width: auto; padding: 20px 20px 4px; }
  .compare td { padding: 12px 20px 12px 56px; border-top: 0; }
  .compare td .ic { left: 20px; top: 28px; }
  .compare td::before { display: block; margin-bottom: 2px; color: var(--muted); font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .compare td:not(.us)::before { content: "Hosted managers"; }
  .compare td.us::before { content: "WP Workbench"; color: var(--link); }
  .compare td.us { padding-bottom: 20px; }
  .pro-groups { grid-template-columns: 1fr; }
}
/* Phones, up to 600px: 20px side gutters, a shorter header without its
   button (the Menu stays), smaller type, and tighter frames, cards and
   spacing. The tab bar aligns left and sticks just under the shorter
   header. */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .top { top: 8px; width: calc(100% - 16px); margin-top: 8px; }
  .top .wrap { height: 54px; gap: 6px; padding: 0 7px 0 4px; }
  .brand { font-size: 14px; }
  .brand img { width: 50px; height: 50px; }
  .top-end .btn { display: none; }
  .hero { padding-top: 40px; }
  .note { gap: 8px; font-size: 12px; margin-bottom: 22px; padding-right: 10px; }
  .note b { font-size: 11px; padding: 2px 8px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .hero-lead { font-size: 17px; margin-top: 22px; }
  .hero .actions { gap: 10px; margin-top: 30px; }
  .hero .btn { padding-inline: 18px; min-height: 48px; font-size: 14px; }
  .hero-meta { flex-direction: column; margin-top: 16px; font-size: 12px; }
  .hero-meta > span + span::before { content: none; }
  .hero-product { margin-top: 48px; }
  .frame { padding: 5px; border-radius: 16px; }
  .shot { border-radius: 10px; }
  figcaption { flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
  h2 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .eyebrow { font-size: 11px; margin-bottom: 18px; }
  .lead { font-size: 16px; }
  .sec { padding: 72px 0; }
  .stack { padding-bottom: 56px; }
  .feature-split { gap: 40px; }
  .seg-wrap { top: 70px; justify-content: flex-start; margin-inline: -20px; padding-inline: 20px; }
  .seg button { padding: 9px 15px; font-size: 13px; }
  .panel-cap { padding: 28px 2px 18px; }
  .panel-cap h3 { font-size: 19px; }
  .panel-cap p { font-size: 14px; }
  .tour-count { display: none; }
  .tour-footer { flex-direction: column; align-items: start; gap: 12px; }
  .card, .mini-card { padding: 26px 22px; border-radius: 20px; }
  .terminal-card pre.code code { font-size: 11px; }
  .terminal-card .code { padding: 16px; }
  .terminal-bar > span:last-child { display: none; }
  .card h3 { font-size: 21px; }
  .price-card { padding: 26px 22px; border-radius: 24px; }
  .amount b { font-size: 64px; }
  .existing-customer { flex-direction: column; align-items: start; gap: 14px; padding: 22px; }
  .faq summary { font-size: 16px; padding: 20px 0; }
  .faq details p { padding-right: 12px; font-size: 15px; }
  .foot { padding-top: 56px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-base { flex-direction: column; margin-top: 40px; }
  .doc { padding-top: 64px; }
  .rel li { font-size: 15px; }
}

/* Motion is decoration only. Animations run only when the visitor has no
   reduced-motion preference, and the scroll-driven ones only where scroll
   timelines are supported; otherwise content shows in place. @property
   registers --spin as an angle so the note's border light can animate it
   (unregistered custom properties do not interpolate). */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* On load, the hero copy rises in one item after another, then the
     product screenshot. */
  .hero-copy > * { animation: arrive .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-copy > :nth-child(6) { animation-delay: .3s; }
  .hero-product { animation: arrive 1s .3s var(--ease) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  /* A light runs around the "New in 2.2" note's border: a spinning conic
     gradient, masked to a 1px ring that sits over the border. */
  .note::before { content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--spin), transparent 0 72%, #2563eb 82%, #0ea5e9 88%, transparent 96%); -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 exclude, linear-gradient(#000 0 0); animation: spin 5s linear infinite; pointer-events: none; }
  @keyframes spin { to { --spin: 360deg; } }
  /* Smaller animations: the CLI cursor blinks, a newly selected tour panel
     rises in, the shield's outer ring pulses, and the next scheduler run
     sends out a fading ring. */
  .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .panel.on { animation: panel .5s var(--ease); }
  @keyframes panel { from { opacity: 0; transform: translateY(8px); } }
  .shield-viz i:nth-child(1) { animation: pulse 3.2s var(--ease) infinite; }
  @keyframes pulse { 0% { transform: scale(.7); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.08); opacity: 0; } }
  .ticks li:last-child::before { animation: due 2.4s var(--ease) infinite; }
  @keyframes due { from { box-shadow: 0 0 0 3px var(--surface), 0 0 0 3px rgb(1 67 214 / 45%); } to { box-shadow: 0 0 0 3px var(--surface), 0 0 0 12px rgb(1 67 214 / 0%); } }

  /* Scroll-driven effects, only where animation-timeline: view() works. */
  @supports (animation-timeline: view()) {
    /* The hero screenshot starts tilted back and settles flat as it
       scrolls into view; .hero-product supplies the perspective. */
    .hero-product .frame { transform-origin: 50% 0; animation: settle linear both; animation-timeline: view(); animation-range: cover 0% cover 42%; }
    @keyframes settle { from { transform: rotateX(16deg) scale(.94); } to { transform: none; } }
    /* .reveal blocks fade and rise in as they enter the viewport. */
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(32px); } }
  }
}
/* Reduced motion: also stop transitions and smooth scrolling on every
   element and its ::before and ::after. The animations above already
   need no-preference; animation: none is a backstop. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
