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

:root {
  /* Brand colours sampled from the BiggSky logo */
  --orange:      #ef6c1f;
  --orange-dark: #cf5710;
  --orange-soft: #fdf1e8;
  --blue:        #1a8fce;
  --blue-dark:   #0f6c9e;
  --blue-soft:   #ecf6fc;

  /* Neutrals */
  --ink:      #101720;
  --ink-2:    #47566a;
  --ink-3:    #6b7a8d;
  --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-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); }

.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; }

.slideshow { position: relative; overflow: hidden; }

.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: .55rem;
}
.slide-dot {
  width: 10px; height: 10px; padding: 0;
  border-radius: 50%; cursor: pointer;
  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"] { 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) {
  .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)); }

.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; }
.dl-mirrors .mirror-label { font-size: .82rem; color: var(--ink-3); margin-right: .1rem; }

.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%; }

/* Licence terms: a two-column definition table that collapses to stacked
   rows on phones rather than scrolling sideways. */
.table-wrap { overflow-x: auto; }

.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 h4 {
  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; }

.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. */
.founders-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1000px) { .founders-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .founders-grid { grid-template-columns: 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 */
}

.deck-caption {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.1rem;
}
.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: 1.1rem;
}

.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: .4rem; flex-wrap: wrap; margin: 0 auto; }
.deck-dot {
  width: 9px; height: 9px; padding: 0;
  border-radius: 50%; cursor: pointer;
  background: var(--line-2); border: 0;
  transition: background-color .15s ease, width .2s ease;
}
.deck-dot:hover { background: var(--ink-3); }
.deck-dot[aria-current="true"] { background: var(--orange); width: 24px; 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 maths 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; }
