/* ==========================================================================
   BiggSky — site stylesheet
   Light theme, dark image stages. Edit colors in the :root block below.
   ========================================================================== */

:root {
  /* Brand colors sampled from the BiggSky logo */
  --orange:      #c05719;   /* 4.55:1 on white - AA. Was #ef6c1f (3.07:1) */
  --orange-dark: #a84c14;   /* hover, 5.66:1. Was #cf5710 (4.18:1, also failed) */
  --orange-soft: #fdf1e8;
  --blue:        #1a8fce;
  --blue-dark:   #0f6c9e;
  --blue-soft:   #ecf6fc;

  /* Neutrals */
  --ink:      #101720;
  --ink-2:    #47566a;
  --ink-3:    #637083;      /* 5.03:1 white, 4.68:1 on --bg-2. Was #6b7a8d (4.38/4.07) */
  --bg:       #ffffff;
  --bg-2:     #f4f7fa;
  --bg-3:     #eaeff5;
  --line:     #dde5ee;
  --line-2:   #c9d5e2;
  --night:    #0a1018;
  --night-2:  #131c28;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 23, 32, .06), 0 1px 3px rgba(16, 23, 32, .07);
  --shadow-md: 0 2px 4px rgba(16, 23, 32, .05), 0 8px 20px rgba(16, 23, 32, .08);
  --shadow-lg: 0 4px 8px rgba(16, 23, 32, .06), 0 20px 48px rgba(16, 23, 32, .13);

  --container: 1180px;
  --header-h:  68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p  { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

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

code, kbd, samp { font-family: var(--mono); font-size: .88em; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- primitives -- */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 820px; }

.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--alt  { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--night); color: #cfd9e6; border-block: 1px solid var(--night-2); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #7cc6ec; }
/* .section--dark went unused until the home page's Lunar Labels band, and two
   rules had never had to cope with it: the section-head lead stayed var(--ink-2),
   a dark grey that all but vanishes on the night background, and the link colour
   above beat the buttons' own, painting pale blue text onto the orange primary.
   Scoped to the two button kinds that belong on a dark band - .btn--secondary
   keeps a light background, so it must keep its dark text. */
.section--dark .section-head p { color: #cfd9e6; }
.section--dark .btn--primary,
.section--dark .btn--ghost { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-dark);
  margin-bottom: .7rem;
}
.section--dark .eyebrow { color: #6fc0e8; }

.lede { font-size: 1.15rem; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease,
              color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--secondary { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--bg-2); border-color: var(--ink-3); color: var(--ink); }

.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--lg { padding: .95rem 2.1rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--blue-soft); color: var(--blue-dark);
  border: 1px solid #cbe6f6;
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.pill--orange { background: var(--orange-soft); color: var(--orange-dark); border-color: #f7dcc7; }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img.brand-mark { width: 34px; height: 34px; border-radius: 8px; }
/* The wordmark is 5:1, so 34px tall makes it ~172px wide — matched in height
   to the galaxy mark beside it. Scaled back on narrow phones so the header
   still fits the menu button. */
.brand img.brand-word { height: 34px; width: auto; }

@media (max-width: 420px) {
  .brand img.brand-mark { width: 30px; height: 30px; }
  .brand img.brand-word { height: 30px; }
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  display: block; padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
}
.primary-nav a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-soft); }
/* The mobile nav's Download button is an <a> inside .primary-nav, so
   `.primary-nav a` (0,1,1) beat `.btn--primary` (0,1,0) and painted the label
   in --ink-2 on the orange. Only visible below 901px, which is why it survived
   so long. Found during the 2026-08-25 accessibility audit. */
.primary-nav .nav-cta a,
.primary-nav .nav-cta a:hover { color: #fff; }

.header-cta { flex: 0 0 auto; margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; margin-inline: auto; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: .75rem 1.5rem 1.25rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: .8rem .6rem; border-radius: var(--radius-sm); }
  .header-cta { display: none; }
  .primary-nav .nav-cta { display: block; margin-top: .75rem; }
}
@media (min-width: 901px) { .primary-nav .nav-cta { display: none; } }

/* ---------------------------------------------------------- slideshow -- */

.hero { background: var(--night); position: relative; }

/* The height is reserved HERE, on the element that exists in the HTML, not
   only on .slides below - .slides is created by site.js, so before the script
   runs this box was 0px tall and the whole page sat 500px too high. When the
   slideshow appeared it shoved everything down: Lighthouse measured one shift
   of 0.347 on desktop, the entire CLS, attributed to the section below.
   Keep these two in step with .slides; if the deck's shape changes, change
   both or the gap reappears. */
.slideshow {
  position: relative; overflow: hidden;
  width: 100%;          /* pin the width, or min-height below inflates it:
                           with aspect-ratio set and no width, a 340px floor
                           drives the width to 340 x 1200/450 = 907px and the
                           page scrolls sideways on a phone. Same trap .slides
                           already documents below. */
  aspect-ratio: 1200 / 450;
  min-height: 340px;
  background: #000;
}

.slides {
  position: relative;
  width: 100%;          /* pin the width, or min-height below inflates it */
  aspect-ratio: 1200 / 450;
  min-height: 340px;
  background: #000;
}

.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide-img { position: absolute; inset: 0; }
.slide-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* Astro source images are inherently dark. A gentle lift, not a re-grade —
     delete this line to show them exactly as supplied. */
  filter: brightness(1.10) saturate(1.04);
}

/* Scrim keeps caption text legible without dimming the picture.
   Kept light and short: it fades out by the halfway mark so the subject of
   the image stays bright. Text legibility is carried by the text-shadows on
   .slide-title / .slide-sub rather than by darkening the whole frame. */
.slide-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,10,16,.72) 0%, rgba(6,10,16,.44) 26%, rgba(6,10,16,.08) 52%, rgba(6,10,16,0) 68%),
    linear-gradient(0deg,  rgba(6,10,16,.30) 0%, rgba(6,10,16,0) 42%);
}
.slide[data-align="right"] .slide-scrim {
  background:
    linear-gradient(270deg, rgba(6,10,16,.72) 0%, rgba(6,10,16,.44) 26%, rgba(6,10,16,.08) 52%, rgba(6,10,16,0) 68%),
    linear-gradient(0deg,   rgba(6,10,16,.30) 0%, rgba(6,10,16,0) 42%);
}
.slide[data-align="center"] .slide-scrim { background: rgba(6,10,16,.42); }

.slide-body {
  position: relative; height: 100%;
  display: flex; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 4.25rem;
}
.slide[data-align="right"]  .slide-body { justify-content: flex-end; text-align: right; }
.slide[data-align="center"] .slide-body { justify-content: center; text-align: center; }

.slide-text { max-width: 34rem; color: #fff; }
/* With a lighter scrim, the shadows do the legibility work. Two layers each:
   a tight one for edge definition, a wide soft one to separate from busy stars. */
.slide-eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #ffc194; margin-bottom: .6rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 2px 10px rgba(0,0,0,.7);
}
.slide-title {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
  margin: 0 0 .45rem; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 3px 18px rgba(0,0,0,.75);
}
.slide-sub {
  font-size: clamp(.98rem, .9rem + .35vw, 1.15rem);
  color: #e4ebf3; margin: 0 0 1.3rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 2px 14px rgba(0,0,0,.7);
}
.slide-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.slide[data-align="right"]  .slide-actions { justify-content: flex-end; }
.slide[data-align="center"] .slide-actions { justify-content: center; }

/* Arrows */
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; z-index: 5;
  display: grid; place-items: center;
  background: rgba(10,16,24,.5); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%; cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}
.slide-nav:hover { background: rgba(10,16,24,.85); }
.slide-nav--prev { left: .85rem; }
.slide-nav--next { right: .85rem; }
.slide-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Dots + pause */
.slide-controls {
  position: absolute; left: 0; right: 0; bottom: .9rem; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 0;   /* dots are now 24px hit areas; 0 keeps them visually as close as before */
}
/* The visible dot is a pseudo-element so the BUTTON can be a 24x24 hit area
   without the dot itself getting fatter. WCAG 2.2 SC 2.5.8 wants 24x24 minimum;
   these measured 26x10 before 2026-08-25. min-width rather than width, so the
   selected pill (26px) can still widen the button. */
.slide-dot {
  min-width: 24px; height: 24px; padding: 0; flex: 0 0 auto;
  background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.slide-dot::before {
  content: ''; display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.65);
  transition: background-color .15s ease, width .2s ease;
}
.slide-dot[aria-selected="true"]::before { background: var(--orange); border-color: #fff; width: 26px; border-radius: 999px; }


.slide-pause {
  position: absolute; right: 1rem; bottom: .7rem; z-index: 5;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(10,16,24,.5); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 50%; cursor: pointer;
}
.slide-pause:hover { background: rgba(10,16,24,.85); }
.slide-pause svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 720px) {
  /* BOTH boxes, or the frame stays at the landscape shape while the slide
     inside it grows to the portrait one and overflow: hidden cuts the
     bottom off - at 375px that clipped 80px, taking the button with it
     and leaving the dots stranded above the cut. */
  .slideshow,
  .slides { aspect-ratio: 4 / 3.4; min-height: 420px; }
  /* Portrait: text sits at the bottom over the picture, so the fade runs
     upward — strong at the very bottom, gone by the halfway mark. */
  .slide-scrim,
  .slide[data-align="right"] .slide-scrim,
  .slide[data-align="center"] .slide-scrim {
    background: linear-gradient(0deg, rgba(6,10,16,.86) 0%, rgba(6,10,16,.52) 34%, rgba(6,10,16,.10) 62%, rgba(6,10,16,0) 100%);
  }
  .slide-body,
  .slide[data-align="right"] .slide-body,
  .slide[data-align="center"] .slide-body {
    align-items: flex-end; justify-content: flex-start; text-align: left;
    padding: 0 1.25rem 3.4rem;
  }
  .slide-actions,
  .slide[data-align="right"] .slide-actions,
  .slide[data-align="center"] .slide-actions { justify-content: flex-start; }
  .slide-nav { display: none; }
  .slide-pause { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .btn:hover { transform: none; }
}

/* Trust strip directly under the slideshow */
.hero-strip {
  background: var(--night-2);
  border-top: 1px solid rgba(255,255,255,.07);
  color: #aebccc; font-size: .9rem;
}
.hero-strip .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .6rem 2rem; padding-block: .85rem;
}
.hero-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-strip .tick { color: #58c07f; font-weight: 700; }

/* -------------------------------------------------------------- cards -- */

/* min(..., 100%) stops the track minimum from overflowing narrow phones. */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* A card count that is not a multiple of the column count strands the last card
   alone beside empty space. grid--fill lets that lone card span the row instead,
   so the block ends square however many cards it has. Confined to the width where
   grid--3 actually resolves to three columns - below that it is two or one, where
   an index-based rule like nth-child(3n+1) would fire on a card that is not alone. */
@media (min-width: 900px) {
  .grid--fill > .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .4rem; }
.card p  { color: var(--ink-2); font-size: .97rem; margin: 0; }

a.card:hover, .card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
  text-decoration: none;
}
a.card { color: inherit; display: block; }
a.card h3 { color: var(--blue-dark); }

.card-icon {
  width: 42px; height: 42px; margin-bottom: 1rem;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-icon--orange { background: var(--orange-soft); color: var(--orange-dark); }

/* Numbered workflow steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange); color: #fff;
  font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* Feature list with ticks */
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding-left: 1.85rem; margin-bottom: .6rem;
  color: var(--ink-2); font-size: .98rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 1.05rem; height: .55rem;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.tick-list--orange li::before { border-color: var(--orange); }

/* ------------------------------------------------------------ gallery -- */

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-bottom: 2rem;
}
.filter-btn {
  padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { background: var(--bg-2); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr)); }

.gallery-item {
  background: var(--night); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: zoom-in;
  padding: 0; width: 100%; text-align: left; color: inherit;
  display: block; font: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-figure { margin: 0; }
.gallery-thumb { aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover .gallery-thumb img { transform: scale(1.05); }
.gallery-caption { background: var(--bg); padding: .9rem 1.1rem 1rem; }
.gallery-caption h3 { font-size: 1.02rem; margin: 0 0 .15rem; color: var(--ink); }
.gallery-caption p  { margin: 0; font-size: .85rem; color: var(--ink-3); }

.gallery-empty {
  text-align: center; padding: 3rem 1rem;
  background: var(--bg-2); border: 1px dashed var(--line-2);
  border-radius: var(--radius); margin-top: 1.25rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  display: none; place-items: center;
  background: rgba(5,9,14,.94); padding: 2rem 1rem;
}
.lightbox.is-open { display: grid; }
.lightbox-figure { margin: 0; max-width: 1400px; width: 100%; text-align: center; }
.lightbox-figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox-figure figcaption { color: #cfd9e6; margin-top: 1rem; font-size: .95rem; }
.lightbox-figure figcaption strong { color: #fff; display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); cursor: pointer;
  font-size: 1.5rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ----------------------------------------------------------- download -- */

.release-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  background: linear-gradient(135deg, var(--blue-soft), #ffffff 70%);
  border: 1px solid #cbe6f6; border-radius: var(--radius);
  padding: 1.4rem 1.7rem; margin-bottom: 2.5rem;
}
.release-banner .release-version { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.release-banner .release-meta { color: var(--ink-2); font-size: .95rem; }

.platform-card { display: flex; flex-direction: column; }
.platform-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .3rem; }
.platform-head h3 { margin: 0; }
.platform-glyph {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--bg-3); color: var(--ink);
}
.platform-glyph svg { width: 22px; height: 22px; fill: currentColor; }
.platform-req { color: var(--ink-3); font-size: .87rem; margin: 0 0 1.1rem; }

.dl-file { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.dl-file:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.dl-file-label { font-weight: 600; font-size: .97rem; margin-bottom: .15rem; }
.dl-file-note  { color: var(--ink-3); font-size: .85rem; margin: 0 0 .75rem; }
.dl-mirrors { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* The label and its mirror buttons wrap as one unit. As separate flex children
   "Mirror:" stayed on the download button's line while the Dropbox button
   dropped to the next, stranding the word. */
.dl-mirrors .dl-mirror-group { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: .4rem; }
.dl-mirrors .mirror-label { font-size: .82rem; color: var(--ink-3); }

.install-steps { counter-reset: istep; list-style: none; margin: 0; padding: 0; }
.install-steps li {
  position: relative; padding-left: 2.4rem; margin-bottom: 1rem; color: var(--ink-2);
}
.install-steps li::before {
  counter-increment: istep; content: counter(istep);
  position: absolute; left: 0; top: 0;
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  background: var(--bg-3); color: var(--ink); border-radius: 50%;
  font-size: .82rem; font-weight: 700;
}

pre.codeblock {
  background: var(--night); color: #d6e2f0;
  padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  overflow-x: auto; font-family: var(--mono); font-size: .85rem;
  line-height: 1.6; margin: .75rem 0;
}

.changelog { list-style: none; margin: 0; padding: 0; }
.changelog li { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.changelog li:first-child { border-top: 0; padding-top: 0; }
.changelog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-bottom: .35rem; }
.changelog-ver { font-weight: 700; font-size: 1.05rem; }
.changelog-date { color: var(--ink-3); font-size: .87rem; }
.changelog ul { margin: 0; padding-left: 1.15rem; color: var(--ink-2); font-size: .95rem; }
.changelog ul li { border: 0; padding: 0; margin-bottom: .25rem; }

/* ------------------------------------------------------------- pricing -- */

/* Stripe renders the table inside its own iframe and styles it from the
   Stripe dashboard, so there is very little to control from here — just
   give it room and stop it scrolling the page on narrow screens. */
.pricing-table {
  min-height: 320px;
  overflow-x: auto;
}
.pricing-table stripe-pricing-table { display: block; width: 100%; }

/* License terms: a two-column definition table that collapses to stacked
   rows on phones rather than scrolling sideways. */
/* position: relative matters. .visually-hidden is position:absolute, so a
   STATIC wrapper is not its containing block and overflow-x does not clip it:
   the hidden labels inside a side-scrolling table escape and stretch the
   document instead (measured: body.scrollWidth 320, documentElement 497).
   Making the wrapper a containing block keeps them inside the scroll area. */
.table-wrap { overflow-x: auto; position: relative; }

/* Edition matrix. Deliberately NOT .terms-table: that collapses to stacked
   blocks below 620px, which strips a cell of the column it belongs to - fatal
   for a comparison grid, where the column IS the meaning. This keeps its shape
   and scrolls inside .table-wrap on a narrow screen instead. */
.matrix-table {
  width: 100%;
  min-width: 32rem;          /* below this the columns crush; scroll instead */
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .95rem;
}
.matrix-table th,
.matrix-table td { padding: .7rem .9rem; border-top: 1px solid var(--line); text-align: center; }
.matrix-table thead th { background: var(--bg-2); color: var(--ink); font-weight: 600; white-space: nowrap; border-top: 0; }
.matrix-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.matrix-table .yes  { color: var(--blue-dark); font-weight: 700; font-size: 1.05rem; }
.matrix-table .no   { color: var(--ink-3); }
/* text-wrap: balance evens the two lines of a partial cell ("Collimation
   check only"). The text used to carry a hard <br>, but it comes from
   data/editions.js now and the renderer escapes it, so markup would show
   literally. Browsers without balance just wrap normally. */
.matrix-table .part { color: var(--ink-2); font-size: .82rem; line-height: 1.3; text-wrap: balance; }

.terms-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.terms-table th,
.terms-table td {
  text-align: left;
  padding: .95rem 1.25rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: .97rem;
}
.terms-table tr:first-child th,
.terms-table tr:first-child td { border-top: 0; }
.terms-table th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-2);
  white-space: nowrap;
}
.terms-table td { color: var(--ink-2); }

@media (max-width: 620px) {
  .terms-table, .terms-table tbody, .terms-table tr,
  .terms-table th, .terms-table td { display: block; width: 100%; }
  .terms-table th { white-space: normal; border-top: 1px solid var(--line); }
  .terms-table td { padding-top: .5rem; }
  .terms-table tr:first-child th { border-top: 0; }
}

/* ---------------------------------------------------------------- FAQ -- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); margin-bottom: .75rem;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 600; font-size: 1.03rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 1.45rem;
  width: .6rem; height: .6rem;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq .faq-answer { padding: 0 1.3rem 1.3rem; color: var(--ink-2); }

/* --------------------------------------------------------- learn page -- */

.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-list li { border-top: 1px solid var(--line); }
.resource-list li:first-child { border-top: 0; }
.resource-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem .25rem; color: var(--ink);
}
.resource-list a:hover { color: var(--blue-dark); text-decoration: none; }
.resource-list .res-title { font-weight: 600; }
.resource-list .res-desc { color: var(--ink-3); font-size: .9rem; display: block; font-weight: 400; }
.resource-list .res-arrow { margin-left: auto; color: var(--ink-3); flex: 0 0 auto; }
.resource-list a:hover .res-arrow { color: var(--orange); }

.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); background: #000; box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--night); color: #9aabbd;
  padding: 3.5rem 0 2rem; margin-top: 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 2.5rem;
}
/* Grid items default to min-content width; without this a wide child (a long
   link, a row of icons) stretches its track past the viewport. */
.footer-grid > * { min-width: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.footer-brand img { height: 26px; width: auto; margin-bottom: .9rem; }
.footer-brand p { color: #7d8e9f; max-width: 30ch; font-size: .9rem; }

.site-footer h3 {
  color: #fff; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #9aabbd; }
.site-footer a:hover { color: #fff; text-decoration: none; }

/* wrap: six icons will not fit on one line on a 280px-wide screen */
.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(255,255,255,.07); color: #cfd9e6;
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  color: #6f8093; font-size: .85rem;
}

/* ==========================================================================
   Inline video player (click to play)
   --------------------------------------------------------------------------
   preload="metadata" means the browser fetches only the header and paints the
   first frame as a free poster — no separate poster file to keep in step, and
   the body of the file is not downloaded until someone presses play.
   ========================================================================== */

.videoplayer {
  position: relative;
  max-width: 46rem; margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  /* site.js overwrites --vp-ratio from the file's own dimensions once metadata
     loads, so swapping in a differently-shaped clip never letterboxes. The
     value here is only the pre-metadata placeholder. */
  aspect-ratio: var(--vp-ratio, 4 / 3);
}
.videoplayer video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* A portrait clip would otherwise run to 46rem wide and over a metre tall on a
   phone. Used by the turbulence map on features.html. */
.videoplayer--tall { max-width: 23rem; }

.videoplayer-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background: rgba(6,10,16,.35);
  border: 0; cursor: pointer; padding: 0;
  transition: background-color .15s ease, opacity .2s ease;
}
.videoplayer-play:hover { background: rgba(6,10,16,.2); }
.videoplayer.is-playing .videoplayer-play { opacity: 0; pointer-events: none; }

.videoplayer-play span {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: grid; place-items: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  transition: transform .15s ease;
}
.videoplayer-play:hover span { transform: scale(1.07); }
.videoplayer-play svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }

.videoplayer-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem .9rem;
  background: linear-gradient(0deg, rgba(6,10,16,.85), rgba(6,10,16,0));
  color: #fff; font-size: .84rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
  transition: opacity .2s ease;
}
.videoplayer.is-playing .videoplayer-caption { opacity: 0; }

@media (max-width: 620px) {
  .videoplayer-play span { width: 56px; height: 56px; }
  .videoplayer-play svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .videoplayer-play span, .videoplayer-play:hover span { transition: none; }
}

/* ==========================================================================
   Founders launch pricing
   --------------------------------------------------------------------------
   The one place on the site with typed-in prices. Perpetual and annual sit
   side by side in each card so the two can be compared without scrolling.
   ========================================================================== */

/* Explicit breakpoints rather than auto-fit: with exactly four editions,
   auto-fit lands on three-plus-an-orphan at common widths. */
/* The column count must DIVIDE the number of editions in data/founders.js,
   or the last row orphans - one card alone beside empty space, which reads as
   a bug rather than a layout. That is why auto-fit is wrong here: it picked 2
   columns for 3 editions on a tablet and stranded the featured card.
   Three editions: 3 across, then straight to stacked, skipping 2 entirely.
   ADD OR REMOVE AN EDITION AND YOU MUST REVISIT THE 3 BELOW. */
.founders-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .founders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.founder-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.founder-card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow-md);
}

.founder-card h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.founder-card .founder-blurb { color: var(--ink-2); font-size: .92rem; margin: 0 0 1.15rem; }

.founder-badge {
  align-self: flex-start;
  margin-bottom: .6rem;
}

/* --- one price option (perpetual or annual) --- */

.founder-opt { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.founder-opt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.founder-opt-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  display: block; margin-bottom: .35rem;
}

.founder-prices { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }

.founder-was {
  color: var(--ink-3); font-size: 1rem;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.founder-now {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--orange-dark);
  font-variant-numeric: tabular-nums;
}
.founder-per { color: var(--ink-3); font-size: .9rem; }

.founder-save {
  display: inline-block; margin-top: .3rem;
  background: var(--orange-soft); color: var(--orange-dark);
  border: 1px solid #f7dcc7; border-radius: 999px;
  padding: .15rem .65rem;
  font-size: .78rem; font-weight: 700;
}

.founder-code {
  display: inline-block; margin-left: .4rem;
  font-family: var(--mono); font-size: .78rem;
  background: var(--bg-3); color: var(--ink);
  border-radius: 4px; padding: .15rem .5rem;
}

.founder-scarcity {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; flex-wrap: wrap;
  margin-top: 2rem; text-align: center;
  color: var(--ink-2); font-size: .95rem;
}

/* ==========================================================================
   Photo slider (deep sky gallery)
   --------------------------------------------------------------------------
   Twenty-one images, so a thumbnail rail rather than dots — nobody can aim at
   the eleventh dot in a row of twenty-one.
   ========================================================================== */

.photoslider { max-width: 60rem; margin: 0 auto; }

.ps-stage {
  position: relative;
  background: #05080d;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* 4:3 suits this set: most frames are square-ish, one is portrait, and a
     fixed stage means the page does not jump as you page through. */
  aspect-ratio: 4 / 3;
}
.ps-stage img {
  width: 100%; height: 100%;
  object-fit: contain;          /* never crop someone's framing */
  display: block;
}

.ps-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; z-index: 3;
  display: grid; place-items: center;
  background: rgba(10,16,24,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease;
}
.ps-nav:hover:not(:disabled) { background: rgba(10,16,24,.9); }
.ps-nav:disabled { opacity: .25; cursor: default; }
.ps-nav--prev { left: .8rem; }
.ps-nav--next { right: .8rem; }
.ps-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.ps-count {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  background: rgba(10,16,24,.7); color: #fff;
  padding: .25rem .7rem; border-radius: 999px;
  font-family: var(--mono); font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

.ps-caption { padding-top: 1rem; min-height: 4.2rem; }
.ps-caption h3 { margin: 0 0 .1rem; font-size: 1.15rem; }
.ps-cat  { color: var(--ink-3); font-size: .88rem; font-family: var(--mono); }
.ps-note { margin: .35rem 0 0; color: var(--ink-2); font-size: .94rem; }

/* --- thumbnail rail --- */

.ps-rail {
  display: flex; gap: .5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.ps-thumb {
  flex: 0 0 auto;
  width: 74px; height: 56px;
  padding: 0; cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #05080d;
  opacity: .55;
  scroll-snap-align: center;
  transition: opacity .15s ease, border-color .15s ease;
}
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-thumb:hover { opacity: .85; }
.ps-thumb[aria-current="true"] { opacity: 1; border-color: var(--orange); }

@media (max-width: 620px) {
  .ps-thumb { width: 58px; height: 44px; }
  .ps-nav { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-thumb, .ps-nav { transition: none; }
  .ps-rail { scroll-behavior: auto; }
}

/* --- equipment list beside the slider --- */

.rig-list { list-style: none; margin: 0; padding: 0; }
.rig-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: .5rem;
  color: var(--ink-2); font-size: .93rem;
}
.rig-list li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange);
}

/* ==========================================================================
   Overview deck (learn.html)
   --------------------------------------------------------------------------
   A quiet document viewer, deliberately unlike the marketing carousel on the
   home page: no autoplay, no scrim, no full bleed. People read these.
   ========================================================================== */

.deck { max-width: 48rem; margin: 0 auto; }

.deck-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.deck-stage img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #ededed;   /* matches the slide artwork so there is no seam */
}

/* Controls come between the stage and the caption in the markup, so the
   caption's top margin is smaller than the controls' and the group reads as
   one block. */
.deck-caption {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-top: .9rem;
}
.deck-caption h3 { margin: 0; font-size: 1.1rem; }
.deck-count {
  margin-left: auto;
  font-family: var(--mono); font-size: .8rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.deck-note { margin: .3rem 0 0; color: var(--ink-2); font-size: .96rem; }

.deck-controls {
  display: flex; align-items: center; gap: .6rem;
  margin-top: .9rem;
}

.deck-btn {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.deck-btn:hover:not(:disabled) { background: var(--bg-2); border-color: var(--ink-3); }
.deck-btn:disabled { opacity: .35; cursor: default; }
.deck-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.deck-dots { display: flex; gap: 0; flex-wrap: wrap; margin: 0 auto; }

/* 24x24 hit area with a 9 px dot drawn inside it - WCAG 2.2 SC 2.5.8, and the
   difference between paging through eleven slides and missing. Same pattern as
   .slide-dot on the home page. Do not shrink the button back to the dot. */
.deck-dot {
  min-width: 24px; height: 24px; padding: 0; flex: 0 0 auto;
  background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.deck-dot::before {
  content: ''; display: block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2);
  transition: background-color .15s ease, width .2s ease;
}
.deck-dot:hover::before { background: var(--ink-3); }
.deck-dot[aria-current="true"]::before { background: var(--orange); width: 22px; border-radius: 999px; }

@media (max-width: 560px) {
  .deck-dots { display: none; }
  .deck-controls { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-btn, .deck-dot { transition: none; }
}

/* ==========================================================================
   Platform support cards
   ========================================================================== */

.os-card { text-align: center; }

.os-glyph {
  width: 62px; height: 62px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--bg-3); color: var(--ink);
}
.os-glyph svg { width: 32px; height: 32px; fill: currentColor; }

.os-card h3 { margin-bottom: .25rem; }
.os-card p  { color: var(--ink-2); font-size: .95rem; margin: 0; }
.os-card .pill { margin-bottom: .6rem; }

.os-arch {
  display: block; margin-top: .55rem;
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-3); letter-spacing: .02em;
}

/* ==========================================================================
   One-click processing ("Do It All")
   --------------------------------------------------------------------------
   The step chips mirror the buttons in the application"s Process rail. They
   are markup rather than part of the SVG so they stay readable, translatable
   and responsive.
   ========================================================================== */

.oneclick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 860px) {
  .oneclick { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; text-align: center; }
}

/* An <ol>, because this is a real sequence. Reset the UA list defaults —
   margin: 1em 0 and padding-left: 40px would otherwise skew the column. */
.step-stack {
  display: flex; flex-direction: column; gap: .5rem;
  width: 100%; max-width: 15rem;
  list-style: none; margin: 0; padding: 0;
}

.step-chip {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff, var(--bg-2));
  color: var(--ink-2);
  font-size: .92rem; font-weight: 600;
  padding: .55rem .9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}


/* Connector through the flex gap, so the column reads as a pipeline rather
   than a list of options. */
.step-chip + .step-chip::before {
  content: "";
  position: absolute; left: 50%; bottom: 100%;
  width: 2px; height: .5rem;
  margin-left: -1px;
  background: var(--line-2);
}

.oneclick-arrow {
  display: grid; place-items: center;
  color: var(--ink-3);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  gap: .4rem;
}
.oneclick-arrow svg { width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .oneclick-arrow svg { transform: rotate(90deg); } }

.oneclick-button { width: 100%; max-width: 26rem; }
.oneclick-button img { width: 100%; height: auto; }

/* ==========================================================================
   Before / after comparison slider
   --------------------------------------------------------------------------
   The "after" image is the base layer and the "before" is clipped over it
   from the left, so dragging left reveals more of the processed result.
   The control is a real <input type="range"> stretched invisibly across the
   whole figure — that gives keyboard, touch and screen-reader support for
   free, and means there is no custom drag math to get wrong.
   ========================================================================== */

.compare {
  --pos: 50%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  touch-action: pan-y;            /* let the page still scroll vertically */
  user-select: none;
}

.compare-frame { position: relative; display: block; width: 100%; }
.compare-frame img {
  display: block; width: 100%; height: auto;
  -webkit-user-drag: none; user-select: none;
}

/* The processed result sits underneath and fills the frame. */
.compare-after { position: relative; }

/* The original is laid over it and clipped at the handle position. */
.compare-before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* --- divider and handle --- */

.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
  pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  display: grid; place-items: center;
  transition: transform .12s ease;
}
.compare-handle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; }

.compare:hover .compare-handle { transform: translate(-50%, -50%) scale(1.06); }

/* --- the invisible control --- */

.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; opacity: 0; }

.compare-range:focus-visible ~ .compare-divider .compare-handle {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* --- corner labels --- */

.compare-label {
  position: absolute; bottom: .85rem; z-index: 2;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(10,16,24,.72); color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(3px);
}
.compare-label--before { left: .85rem; }
.compare-label--after  { right: .85rem; }

/* --- caption below --- */

.compare-caption { padding-top: 1rem; }
.compare-caption h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.compare-caption p  { margin: 0; color: var(--ink-2); font-size: .94rem; }
.compare-caption .compare-credit { color: var(--ink-3); font-size: .86rem; }

/* <figure> carries a UA default of `margin: 1em 40px`, which silently steals
   80px of width on narrow screens. Zero it explicitly. */
.compare-item { margin: 0 0 3rem; }
.compare-item:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .compare-handle { width: 34px; height: 34px; }
  .compare-handle svg { width: 18px; height: 18px; }
  .compare-label { font-size: .66rem; bottom: .6rem; }
  .compare-label--before { left: .6rem; }
  .compare-label--after  { right: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .compare-handle, .compare:hover .compare-handle { transition: none; }
}

/* ==========================================================================
   Documentation viewer (manual.html)
   --------------------------------------------------------------------------
   Embeds a published Google Doc. The document keeps Google's own typography
   inside the frame — that is expected. Our job is the shell around it.
   ========================================================================== */

.page-head--slim { padding: 2.25rem 0 1.75rem; }

.doc-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}
.doc-layout > * { min-width: 0; }

/* --- the list of documents --- */

.doc-nav { position: sticky; top: calc(var(--header-h) + 1.25rem); }
@media (max-width: 900px) { .doc-nav { position: static; } }

.doc-nav-head {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 1.5rem 0 .6rem;
}
.doc-nav-head:first-child { margin-top: 0; }

.doc-nav ul { list-style: none; margin: 0 0 .25rem; padding: 0; }

.doc-nav a {
  display: block;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  color: var(--ink);
}
.doc-nav a:hover { background: var(--bg-2); text-decoration: none; }
.doc-nav a[aria-current="page"] {
  background: var(--orange-soft);
  border-left-color: var(--orange);
}
.doc-nav-title { display: block; font-weight: 600; font-size: .96rem; }
.doc-nav-desc  { display: block; font-size: .84rem; color: var(--ink-3); margin-top: .12rem; }
.doc-nav a[aria-current="page"] .doc-nav-title { color: var(--orange-dark); }

/* --- toolbar above the frame --- */

.doc-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  margin-bottom: .85rem;
}
.doc-toolbar .doc-hint { margin-left: auto; font-size: .85rem; }
@media (max-width: 620px) { .doc-toolbar .doc-hint { display: none; } }

/* --- the frame itself --- */

.doc-viewer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  height: min(76vh, 1050px);
  min-height: 30rem;
  transition: height .2s ease;
}
.doc-viewer.is-expanded { height: calc(100vh - 5rem); }

.doc-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .doc-viewer { transition: none; }
}

/* ==========================================================================
   Forms and application pages
   --------------------------------------------------------------------------
   These exist for the generated pages under /activate/ (trial signup, seat
   management, offline activation) so they can drop the Tailwind CDN and use
   this stylesheet instead.

   .hidden IS LOAD-BEARING. Those pages switch between the form, loading and
   success panels with classList.add('hidden') / .remove('hidden'). Tailwind
   used to supply that class. Delete this rule and all three panels render at
   once. Do not remove it, and do not rename it.
   ========================================================================== */

.hidden { display: none !important; }

/* --- form layout --- */

.form-panel { display: flex; flex-direction: column; gap: 1.35rem; }

.field { display: flex; flex-direction: column; gap: .42rem; }

.field > label {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
}
.field .req { color: var(--orange); margin-left: .15rem; }

/* NOTE: use font-family, NOT the `font` shorthand. `font: inherit` also resets
   family, weight, style and line-height in one go, and because this selector
   is (0,1,1) it outranks any single-class rule on the control itself — a
   .token-output or .is-mono textarea dropped inside a .field would silently
   render in the body face. Keep this narrow, and give any font-overriding
   class a `.field`-qualified selector so it can win. */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: .72rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa8b6; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 143, 206, .18);
}

.field .hint { font-size: .85rem; color: var(--ink-3); }

/* Qualified with .field so they outrank the control rule above. Both the bare
   and the qualified form are listed so these work in or out of a .field. */
.is-mono,
.field input.is-mono,
.field textarea.is-mono { font-family: var(--mono); letter-spacing: .04em; }

/* --- alerts --- */

.alert {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .95rem; line-height: 1.55;
}
.alert strong { display: block; margin-bottom: .15rem; }
.alert-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .15rem; }

.alert--error   { background: #fdf0ee; border: 1px solid #f3cbc3; color: #8a2e1d; }
.alert--success { background: #ecf7f0; border: 1px solid #c4e5d1; color: #1d6640; }
.alert--info    { background: var(--blue-soft); border: 1px solid #cbe6f6; color: var(--blue-dark); }

/* --- loading --- */

.loading-panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 3rem 1rem; text-align: center;
}
.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--bg-3);
  border-top-color: var(--orange);
  animation: bs-spin .8s linear infinite;
}
@keyframes bs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}
.loading-panel p { color: var(--ink-2); margin: 0; }
.loading-panel .loading-sub { font-size: .88rem; color: var(--ink-3); }

/* --- a narrow single-purpose page panel (signup, seats, activation) --- */

.app-panel {
  max-width: 34rem; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}
.app-panel--wide { max-width: 48rem; }
.app-panel h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.app-panel .app-panel-sub { color: var(--ink-2); margin-bottom: 1.75rem; }

@media (max-width: 520px) { .app-panel { padding: 1.5rem 1.25rem; } }

/* --- ordered "next steps" used on the success panel --- */

.next-steps { counter-reset: nstep; list-style: none; margin: 0; padding: 0; text-align: left; }
.next-steps li {
  position: relative; padding-left: 2.3rem; margin-bottom: .7rem;
  color: var(--ink-2); font-size: .96rem;
}
.next-steps li::before {
  counter-increment: nstep; content: counter(nstep);
  position: absolute; left: 0; top: -.05rem;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #fff;
  font-size: .78rem; font-weight: 700;
}

/* --- seat rows (seats.html) --- */

.seat-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: .6rem; background: var(--bg);
}
.seat-row .seat-name { font-weight: 600; }
.seat-row .seat-meta { font-size: .85rem; color: var(--ink-3); }
.seat-row .seat-action { margin-left: auto; }

/* --- copyable token output (validate.html) --- */

/* .field-qualified as well as bare, so it keeps the mono face when it sits
   inside a .field wrapper — which is the normal case on validate.html. */
.token-output,
.field .token-output {
  width: 100%; min-height: 8rem; resize: vertical;
  font-family: var(--mono); font-size: .82rem; line-height: 1.5;
  color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .85rem .95rem; word-break: break-all;
}

/* --- toast --- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 1600; max-width: min(90vw, 28rem);
  background: var(--night); color: #fff;
  padding: .85rem 1.25rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .93rem;
}

/* --------------------------------------------------------- utilities -- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1.75rem; }
.muted { color: var(--ink-3); font-size: .9rem; }

.callout {
  background: var(--orange-soft); border: 1px solid #f7dcc7;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem; color: var(--ink-2); font-size: .95rem;
}
.callout strong { color: var(--ink); }
.callout--blue { background: var(--blue-soft); border-color: #cbe6f6; border-left-color: var(--blue); }

.page-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.75rem;
}
.page-head h1 { margin-bottom: .5rem; }
.page-head p  { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; margin: 0; }

.breadcrumb { font-size: .85rem; color: var(--ink-3); margin-bottom: .75rem; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--blue-dark); }

.split { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.cta-band {
  background: linear-gradient(135deg, var(--night) 0%, #16273a 100%);
  color: #fff; text-align: center; padding: 4rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b4c3d3; max-width: 55ch; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta-band .btn-row { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
/* Quiet third option under a CTA's buttons - the "not even that" route.
   Overrides .cta-band p's 2rem bottom margin, which is meant for copy that
   sits ABOVE the buttons. */
.cta-band .cta-note {
  margin: 1.6rem auto 0; font-size: .95rem; color: #8fa3b8;
}
.cta-band .cta-note a { color: #cfe0f0; text-decoration: underline; }
.cta-band .cta-note a:hover { color: #fff; }

/* The footer legal links sit in a middot-separated row, so they are arguably
   covered by SC 2.5.8's inline exemption - but they are navigation, not prose,
   and 24px is cheap here. Vertical padding grows the hit area without moving
   anything: the row is a flex line, so the taller boxes just overlap the
   existing leading. Added during the 2026-08-25 accessibility audit. */
.footer-bottom a { display: inline-block; padding-block: 4px; }

/* ==========================================================================
   Application screenshot (sertool.html)
   --------------------------------------------------------------------------
   A Windows dialog dropped onto a light page. The shot already carries its
   own title bar and chrome, so all this adds is a seat: a soft frame that
   stops the near-white dialog dissolving into --bg, and a caption. The image
   is capped at its own pixel width rather than stretched to the container,
   because upscaling a screenshot full of 12px table text is how you make it
   unreadable. Clicking opens the PNG itself - these are dense tables, and a
   reader who wants the frame counts wants them full size.

   Each figure carries its own cap as `--shot-w`, set inline beside the img's
   width/height attributes so all three numbers are updated together when a
   screenshot is re-shot. `fit-content` was tried instead and is wrong here:
   a lazy image that has not arrived yet contributes no intrinsic width, so
   the figure collapsed to its border and then jumped to full height as the
   PNG landed - the very shift the width/height attributes exist to prevent.
   A fixed cap holds the right box in both phases.
   ========================================================================== */

/* +2px for the frame's own border. Everything here is border-box, so without
   it the image renders two pixels under native and the whole dense table gets
   resampled for nothing. --shot-w is the PNG's true pixel width. */
.shot { max-width: calc(var(--shot-w, 1100px) + 2px); margin: 0 auto; }
.shot + .shot { margin-top: 2.75rem; }

.shot a {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow-md);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.shot a:hover,
.shot a:focus-visible { box-shadow: var(--shadow-lg); border-color: var(--blue); }

.shot img { width: 100%; height: auto; }

.shot figcaption {
  margin-top: .9rem;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.55;
}
.shot figcaption strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .shot a { transition: none; }
}

/* The shots are 1066px of dense table. On a phone they land at about a third
   of that, which is a thumbnail - so say out loud that the full-size image is
   one tap away. Only the first figure carries the hint; the pattern is learnt
   by the second. */
.shot-hint { color: var(--ink-3); font-size: .88rem; }

/* A .shot screenshot placed in a .split column must fill it. .shot centers
 * itself with margin:0 auto, which is right in block flow but, as a grid item,
 * shrink-wraps it to its content - and the content is a width:100% image, so
 * the figure collapsed to 0px and the lazy image never loaded. Found adding the
 * sertool block to the home page, 2026-09-13. */
.split > .shot { width: 100%; margin: 0; }

/* A photograph set beside prose rather than a full-width .shot: floated so the
   text wraps round it, and capped so it can never take more than about a third
   of the narrow container. Below 620px a float would leave a column of text a
   few words wide, so it stops floating and sits on its own. */
.portrait {
  float: right;
  width: 19rem;
  max-width: 45%;
  margin: .3rem 0 1.1rem 1.6rem;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.portrait figcaption {
  margin-top: .55rem;
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.5;
}
@media (max-width: 620px) {
  .portrait { float: none; width: 100%; max-width: none; margin: 1.2rem 0; }
}

/* ------------------------------------------------- youtube facade -- */
/* A poster and a play button standing in for the embed until someone asks
   to watch. The iframe costs ~534 KiB of third-party player JavaScript, paid
   by every visitor; this defers all of it to the click. The markup is a plain
   link to YouTube, so with scripts off it still takes you to the video. */
.video-facade a {
  position: absolute; inset: 0; display: block;
  text-decoration: none; background: #000;
}
.video-facade img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85; transition: opacity .18s ease;
}
.video-facade a:hover img,
.video-facade a:focus-visible img { opacity: 1; }

.video-facade-btn {
  position: absolute; top: 50%; left: 50%;
  width: 4.6rem; height: 3.2rem; margin: -1.6rem 0 0 -2.3rem;
  border-radius: .8rem;
  background: rgba(14, 18, 24, .78);
  transition: background .18s ease, transform .18s ease;
}
.video-facade-btn::after {           /* the triangle */
  content: ""; position: absolute; top: 50%; left: 50%;
  margin: -.62rem 0 0 -.38rem;
  border-style: solid; border-width: .62rem 0 .62rem 1.05rem;
  border-color: transparent transparent transparent #fff;
}
.video-facade a:hover .video-facade-btn,
.video-facade a:focus-visible .video-facade-btn {
  background: var(--orange-dark); transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .video-facade img,
  .video-facade-btn { transition: none; }
  .video-facade a:hover .video-facade-btn { transform: none; }
}

/* --------------------------------------------- links in body copy -- */
/* Underlined, not colour alone. Lighthouse flagged "Links rely on color to be
   distinguishable", which matters for colour-blind readers: a blue-on-white
   link with no underline is invisible to them as a link. Scoped to running
   text - nav, buttons, footer, cards and lists set their own treatment and
   are already distinguishable by position and shape. */
.container p > a:not(.btn),
.faq-answer a:not(.btn),
.lede a:not(.btn),
.mm-body p > a:not(.btn),
.notice-text a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: from-font;
}

/* A long web address in running text is one unbreakable word, so at 320px it
   ran out of its paragraph: biggsky.com/activate/unsubscribe.html on
   privacy.html made the whole page scroll sideways, and the EULA's
   biggsky.com/activate/seats.html and the XISF spec URL in the notices painted
   out into the side gutter. break-word breaks only a word that would otherwise
   overflow, and overflow-wrap inherits, so links inside these are covered too
   and ordinary prose is untouched. Table cells are deliberately left out -
   .table-wrap scrolls them sideways instead, which keeps a file path readable
   in one piece. */
.container p, .container li,
.faq-answer p, .faq-answer li,
.notice-text p, .notice-text li,
.mm-body p, .mm-body li {
  overflow-wrap: break-word;
}
