/* The install dialog and its panes for the pages other than the landing (agents and editors, pricing, supported software): a copy of the landing's rules in next.css
   (the [data-on] platform switch, .get-* panes, the macOS waitlist, the dialog), so the Install buttons open the dialog on the page you are on. Keep it in step with
   next.css; the script is install.js, shared. Copied 2026-11-05. */
/* ---- per platform (owner, 2026-11-05): html[data-os] is set in <head>; a [data-on] element shows only for the platforms it names.
   Without the attribute (the head script failed) the Windows wording shows. ---- */
html[data-os="windows"] [data-on]:not([data-on~="windows"]),
html[data-os="linux"] [data-on]:not([data-on~="linux"]),
html[data-os="macos"] [data-on]:not([data-on~="macos"]),
html[data-os="mobile"] [data-on]:not([data-on~="mobile"]),
html:not([data-os]) [data-on]:not([data-on~="windows"]) { display: none !important; }
/* getting antitheft (hero and dialog): Windows a download button, Linux the command, macOS the waitlist form, a phone two links */
.get { scroll-margin-top: calc(var(--nav-h) + 24px); width: min(640px, 100%); }
.get-pane { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.get-dl {
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 22px 0 18px; border-radius: 999px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--ink);
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.get-dl:hover { background: color-mix(in srgb, var(--accent) 12%, var(--lg-tint)); }
.get-dl:active { transform: scale(0.98); }
.get-dl img { width: 20px; height: 20px; object-fit: contain; }
.get-dl-arrow { font-size: 16px; margin-left: 4px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.2s ease; }
.get-dl:hover .get-dl-arrow { color: var(--ink); transform: translateY(2px); }
.get-dl--small .get-dl-arrow { display: none; }
.get-dl--small { height: 42px; padding: 0 18px; font-size: 15px; }
.get-links { display: flex; flex-wrap: wrap; gap: 10px; }
.get-cmd { width: 100%; }
.get-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.get-note a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.get-note a:hover { color: var(--ink); }
.get-note--lead { font-size: 16px; color: var(--ink); }
.get-ver { opacity: 0.8; }
/* the macOS waitlist (hero and dialog, next.js): one liquid-glass row (.glass.lg, refracted by liquid-glass.js like the
   bar) with the email and the send button. .glass.lg draws its edge as an inset ring, not a border, so focus brightens that ring. */
.waitlist {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.waitlist .seg { flex-wrap: wrap; }
.wl-row { width: 100%; padding: 0 6px 0 18px; transition: box-shadow 0.2s ease; }
.wl-row:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 10px 30px -12px var(--lg-drop); }
.wl-email { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; outline: none; color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.wl-email::placeholder { color: var(--muted); }
.wl-go {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: calc(var(--r-card) - 6px);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s var(--ease);
}
.wl-go:hover { filter: brightness(1.1); }
.wl-go:active { transform: scale(0.97); }
.wl-go:disabled { opacity: 0.6; cursor: progress; }
.wl-note, .wl-msg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.wl-msg:empty { display: none; }
.wl-msg.is-err { color: var(--critical); }
.wl-done { display: none; margin: 0; align-items: center; gap: 10px; font-size: 16px; line-height: 1.45; }
.wl-done .ui-pic { flex: none; font-size: 20px; color: var(--good); }
.waitlist.is-done > :not(.wl-done) { display: none; }
.waitlist.is-done .wl-done { display: flex; }
.wl-bot:empty { display: none; }
/* ---- the waitlist dialog (next.js opens it from every "Join the waitlist" link) ---- */
.idlg {
  --idlg-opacity: 0.5;     /* how much of the page colour the pane carries: 0 clear glass .. 1 solid. The blur below does the rest. */
  --idlg-blur: 26px;       /* how far the page under the pane is blurred */
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  overscroll-behavior: contain;
}
/* frosted glass: a see-through tint of the page colour under the app's glass sheen, with what is behind it blurred and a touch more vivid.
   It is a layer BEHIND the content, not the dialog's own background: Chromium lets glass see only what is inside the nearest ancestor that has a
   backdrop-filter, so with the blur on the dialog the download button's edge refraction (liquid-glass.js) saw nothing but the pane and drew a flat pill. */
.idlg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: calc(var(--r-card) - 1px);
  background: linear-gradient(180deg, var(--panel), var(--panel-hi)), color-mix(in srgb, var(--canvas) calc(var(--idlg-opacity) * 100%), transparent);
  -webkit-backdrop-filter: blur(var(--idlg-blur)) saturate(170%);
  backdrop-filter: blur(var(--idlg-blur)) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  pointer-events: none;
}
/* the dimming behind the pane is light and barely blurred, so the page stays recognisable through the glass */
.idlg::backdrop { background: rgba(4, 9, 22, 0.32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.idlg[open] { animation: idlg-in 0.28s var(--ease); }
.idlg[open]::backdrop { animation: idlg-fade 0.28s ease; }
@keyframes idlg-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes idlg-fade { from { opacity: 0; } }
.idlg-box { position: relative; overflow: hidden; border-radius: var(--r-card); display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 30px); }
.idlg-box > :not(.idlg-emblem) { position: relative; z-index: 1; }
/* the dialog's emblem: an engraved sun behind clouds on the right, one ink colour through an alpha mask (the engraving's lines are the alpha, so it
   follows the theme) and faint enough to sit behind the words */
.idlg-emblem {
  position: absolute;
  top: 50%;
  right: -56px;
  width: 340px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: var(--ink);
  opacity: 0.3;
  -webkit-mask: url(img/app/dialog-emblem-mask-a.png) center / contain no-repeat;
  mask: url(img/app/dialog-emblem-mask-a.png) center / contain no-repeat;
  pointer-events: none;
}
/* the download in the dialog is a line of text, underlined */
.get-dl--text {
  display: inline; height: auto; padding: 0; border-radius: 0;
  font-size: 22px; letter-spacing: -0.01em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.get-dl--text:hover { background: none; color: var(--accent-2); text-decoration-color: currentColor; }
.idlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.idlg-head .idlg-title { flex: 1 1 auto; min-width: 0; }
.idlg-logo { flex: none; width: 40px; height: 40px; border-radius: 10px; }
   /* the "a." tile, the site's own favicon, in the top-left corner */
.idlg-title { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.idlg .waitlist, .idlg .get { width: 100%; }
.idlg-how { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
/* macOS and Linux: the line that only Windows is out, the Windows download, then the waitlist for their own system, set apart by a hairline */
.get--dlg .idlg-soon { margin-bottom: 4px; color: var(--ink); }
.get--dlg .get-pane + .waitlist { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
/* the fine print: the smallest, faintest text in the dialog, no box and no icon; it is there for whoever goes looking */
.idlg-fine { margin: -4px 0 0; font-size: 12px; line-height: 1.4; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.idlg-fine a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; transition: color 0.15s ease; }
.idlg-fine a:hover { color: var(--ink); }
.idlg .iconbtn .ui-pic { font-size: 16px; }
