:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07130d;
  color: #f7f5e9;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

/* Links are gold by default everywhere; never the browser-default blue.
   Buttons, footer, sidebar and footnote refs set their own colors and win
   on specificity. */
a {
  color: #ffbc00;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 6rem;
  position: relative;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(255, 188, 0, 0.14), transparent 65%),
    linear-gradient(180deg, #03100a 0%, #0b1911 100%);
  background-size: auto, auto, auto;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 188, 0, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 80%);
}

.eyebrow {
  display: inline-block;
  margin: 2rem 0 1.25rem;
  padding: 0.3em 0.9em;
  color: #ffbc00;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 188, 0, 0.45);
  border-radius: 999px;
  background: rgba(255, 188, 0, 0.08);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  line-height: 0.98;
}

.subtitle {
  max-width: 54rem;
  margin: 1.25rem 0 2rem;
  font-size: 1.1rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.logo {
  width: 420px;
  height: auto;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 42rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-layout .hero-content {
  max-width: none;
}

.hero-visual {
  margin: 0;
  /* Let the image spill out of its grid column; .hero clips it at the
     viewport's right edge, so it bleeds off the page with no scrollbar. */
  overflow: visible;
}

.hero-visual img {
  display: block;
  /* Wider than the column on purpose – overflows to the right and off-page. */
  width: 60vw;
  max-width: none;
  height: auto;
  border-radius: 0.85rem 0 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 880px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  /* Stacked: no bleed – fit the screenshot within the column. */
  .hero-visual img {
    width: 100%;
    border-radius: 0.85rem;
  }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: #ffbc00;
  color: #07130d;
}

.secondary {
  border: 1px solid rgba(255, 188, 0, 0.35);
  color: #f7f5e9;
}

.tertiary {
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background: #06140d;
}

.section-dark {
  background: #0f2118;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 2rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "What is OpenFollow?" – two columns, video on the left. */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.about-grid .video-embed {
  max-width: none;
  margin: 0;
}

.about-text h2 {
  margin-top: 0;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Operator-Screen simulator (#try) ------------------------------------ */
/* Its own section, darker than the rest of the page. Hidden by default and
   revealed by sim.js only when the browser supports the sim (CSS aspect-ratio
   / inset + the JS APIs it uses) – see isSupported() in sim.js. */
#try {
  background: #020a06;
  display: none;
}

#try.sim-supported {
  display: block;
}

.sim-stage {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #000;
  cursor: crosshair;
  user-select: none;
}

.sim-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.sim-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sim-gridlines line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

#sim-marker .sim-ground {
  fill: none;
  stroke: var(--mc, #ffbc00);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

#sim-marker .sim-zline {
  stroke: var(--mc, #ffbc00);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
}

#sim-marker .sim-ball {
  fill: var(--mc, #ffbc00);
  fill-opacity: 0.85;
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

#sim-marker .sim-crosshair {
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

/* Shared overlay-card chrome (matches OpenFollow's draw_card_background). */
.of-card {
  background: rgba(7, 19, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.sim-msg {
  position: absolute;
  top: 2.5%;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(82%, 30rem);
  overflow: hidden;
  text-align: left;
  transform: scale(0.8);
  transform-origin: top center;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  line-height: 1.4;
}

.sim-msg-title {
  background: var(--mc, #ffbc00);
  color: #07130d;
  font-weight: 700;
  padding: 0.3em 0.85em;
}

.sim-msg-text {
  padding: 0.5em 0.85em 0.15em;
}

.sim-msg-info {
  padding: 0 0.85em 0.6em;
  opacity: 0.7;
}

/* Marker card: OpenFollow paints these opaque + colour-coded (its own chrome). */
.sim-card {
  position: absolute;
  right: 1.5%;
  bottom: 3%;
  transform: scale(0.8);
  transform-origin: bottom right;
  --mc: #ffbc00;
  box-sizing: border-box;
  width: 15.5em; /* fixed (em) – scales with viewport, never reflows on value change */
  padding: 0.5em 0.7em 0.6em;
  color: #f7f5e9;
  background: rgba(7, 19, 13, 0.92);
  border: 2px solid var(--mc);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 188, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.5);
  font-size: clamp(0.62rem, 1.5vw, 0.85rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.sim-card-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 0.4em;
}

.sim-cbadge {
  justify-self: start;
  font-size: 0.78em;
  padding: 0 0.4em;
  color: #7de59f;
  border: 1px solid rgba(125, 229, 159, 0.5);
  border-radius: 4px;
}

.sim-name {
  justify-self: center;
  color: var(--mc);
  font-weight: 700;
  font-size: 1.05em;
}

.sim-dot {
  justify-self: end;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #7de59f;
  box-shadow: 0 0 7px #7de59f;
}

.sim-coords {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 1.05em;
  margin-bottom: 0.35em;
}

.sim-speedrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4em;
}

.sim-fader {
  opacity: 0.8;
}

.sim-speedbar {
  height: 0.45em;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.sim-speedfill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #7de59f;
}

.sim-logo {
  position: absolute;
  top: 2%;
  left: 1.5%;
  width: clamp(1.5rem, 3vw, 2.6rem);
  height: auto;
  opacity: 0.95;
  pointer-events: none;
  transform: scale(0.8);
  transform-origin: top left;
}

.sim-stats {
  position: absolute;
  top: 2%;
  right: 1.5%;
  transform: scale(0.8);
  transform-origin: top right;
  padding: 0.4em 0.85em;
  color: #f7f5e9;
  font-size: clamp(0.58rem, 1.25vw, 0.82rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sim-info {
  position: absolute;
  left: 1.5%;
  bottom: 3%;
  transform: scale(0.8);
  transform-origin: bottom left;
  padding: 0.5em 0.85em;
  color: #f7f5e9;
  font-size: clamp(0.56rem, 1.15vw, 0.78rem);
  line-height: 1.5;
}

.sim-info span {
  display: inline-block;
  min-width: 6.5em;
  color: rgba(247, 245, 233, 0.55);
}

/* Small screens: drop the top-right + bottom-left overlays to ease crowding. */
@media (max-width: 640px) {
  .sim-stats,
  .sim-info {
    display: none;
  }
}

/* Trigger zones: transparency steps up when the marker is inside (as OpenFollow). */
.sim-zone {
  fill-opacity: 0.15;
  stroke-opacity: 0.7;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 0.15s ease, stroke-opacity 0.15s ease;
}

.sim-zone.occupied {
  fill-opacity: 0.35;
  stroke-opacity: 1;
  stroke-width: 2;
}

.sim-zone-label {
  font-family: Inter, sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #000;
  stroke-width: 3;
  stroke-opacity: 0.55;
}

/* OSC command console below the stage. */
.sim-console {
  max-width: 72rem;
  margin: 1rem auto 0;
  padding: 0.7rem 1rem;
  background: #04110b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  line-height: 1.6;
  color: #7de59f;
  height: 7.5em;
  overflow-y: auto;
}

.sim-console-hint {
  color: rgba(247, 245, 233, 0.4);
}

.sim-console-time {
  color: rgba(247, 245, 233, 0.4);
}

/* Z is driven by the scroll wheel (see the operator message); no on-screen slider. */

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

p {
  margin: 0;
  margin-bottom: 1.25rem!important;
}

.footnote-ref {
  font-size: 0.9em;
  line-height: 1;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footnote {
  display: block;
  margin-top: 0.4rem;
  margin-bottom: 0.25rem !important;
  font-size: 50%;
  color: rgba(255, 255, 255, 0.8);
}

.footnote small {
  font-size: 0.85em;
  color: inherit;
}

/* Footer paragraphs sit tight; the global p rule's 1.25rem bottom margin is
   far too much stacked in the footer column. (!important to beat that rule.) */
.footer-main p {
  margin-bottom: 2px !important;
}

/* Footer disclaimers share the footnote design. The first paragraph is the
   brand tagline and keeps its original styling, so skip it. */
.footer-main p:not(:first-of-type) {
  font-size: 50%;
  color: rgba(255, 255, 255, 0.8);
}

/* Links in footnotes and footer disclaimers read as light grey. */
.footnote a,
.footer-main p:not(:first-of-type) a {
  color: rgba(255, 255, 255, 0.7);
}

.footnote a:hover,
.footer-main p:not(:first-of-type) a:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* AI transparency notice. Carries the disclaimer look in its own class so it
   reads the same inside .footer-main and in the static no-JS fallback footer,
   where it sits outside that column. */
.footer-ai {
  font-size: 50%;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px !important;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.feature-cards {
  display: grid;
  gap: 1rem;
}

.feature-intro {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .grid-2,
  .grid-3,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0.85rem 0 0;
}

.card,
.action-card,
.use-case,
.brand-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 1.15rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 6.5rem;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: rgba(247, 245, 233, 0.75);
}

.brand-logo-wrap {
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  max-width: 6rem;
  width: auto;
  height: 2.5rem;
  display: block;
  object-fit: contain;
}

.brand-logo[alt="LightStrike logo"],
.brand-logo[alt="d&b Soundscape logo"] {
  max-width: 8rem;
}

.brand-logo[alt="NDI logo"] {
  height: 2.125rem;
}

.brand-logo[alt="OTP logo"] {
  height: 2.125rem;
}


.brand-logo[alt="MA3 logo"] {
  height: 2.875rem;
}

.brand-logo[alt="PosiStageNet logo"] {
  height: 3.5rem;
}

.brand-logo[alt="OSC logo"] {
  height: 1.7rem;
}

.brand-logo[alt="QLab logo"] {
  height: 3.125rem;
}

.brand-logo[alt="ADM OSC logo"],
.brand-logo[alt="L-Acoustics L-ISA logo"] {
  height: 3.125rem;
}

/* --- Download section (#download) ---------------------------------------- */
[hidden] {
  display: none !important;
}

.download-head {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.download-head a {
  color: #ffbc00;
  text-decoration: none;
}

.download-head a:hover {
  text-decoration: underline;
}

.dl-version {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffbc00;
  border: 1px solid rgba(255, 188, 0, 0.35);
  background: rgba(255, 188, 0, 0.08);
  vertical-align: middle;
}

/* Hardware selector – segmented control */
.dl-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.dl-seg-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(247, 245, 233, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dl-seg-btn:hover {
  color: #f7f5e9;
}

.dl-seg-btn[aria-selected="true"] {
  background: #ffbc00;
  color: #07130d;
}

.dl-seg-btn:focus-visible {
  outline: 2px solid rgba(255, 188, 0, 0.6);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .dl-seg {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 1rem;
  }

  .dl-seg-btn {
    border-radius: 0.75rem;
  }
}

@media (max-width: 760px) {
  .dl-seg {
    grid-template-columns: 1fr;
    border-radius: 1rem;
  }

  .dl-seg-btn {
    border-radius: 0.75rem;
  }
}

/* Single download panel */
.dl-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
}

.dl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  color: #ffbc00;
  background: rgba(255, 188, 0, 0.1);
  border: 1px solid rgba(255, 188, 0, 0.2);
}

.dl-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.dl-panel-body {
  min-width: 0;
}

.dl-panel-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.dl-panel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
}

.dl-panel-title h3 {
  margin: 0;
}

.dl-panel-body p {
  margin: 0 0 0.6rem !important;
  font-size: 0.95rem;
  color: rgba(247, 245, 233, 0.78);
}

.dl-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0 !important;
}

.dl-ext {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: rgba(247, 245, 233, 0.6);
  padding: 0.15em 0.55em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  white-space: nowrap;
}

[data-dl-meta] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: rgba(247, 245, 233, 0.5);
}

.dl-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.dl-btn {
  padding-inline: 2.2rem;
}

.dl-guide {
  color: #ffbc00;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dl-guide:hover {
  text-decoration: underline;
}

.dl-panel code,
.download-secondary code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.08em 0.35em;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  .dl-panel {
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
  }

  .dl-actions {
    grid-column: 1 / -1;
    align-items: stretch;
  }

  .dl-btn {
    width: 100%;
  }
}

/* Secondary – offline update */
.download-secondary {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
}

.download-secondary p {
  margin: 0 !important;
  max-width: 34rem;
  color: rgba(247, 245, 233, 0.78);
}

.download-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.download-foot {
  margin: 1.25rem 0 0 !important;
  font-size: 0.9rem;
  color: rgba(247, 245, 233, 0.6);
}

.download-foot a {
  color: #ffbc00;
  text-decoration: none;
}

.download-foot a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.65rem;
  color: #e7e5d5;
}

.form-field span {
  font-weight: 600;
}

.input,
.textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f7f5e9;
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(255, 188, 0, 0.35);
  outline-offset: 2px;
}

.textarea {
  min-height: 12rem;
  resize: vertical;
}

/* Contact form spam check. The widget ships light-themed defaults, so recolor
   it through its own custom properties to match the inputs above it. */
.altcha {
  --altcha-max-width: 100%;
  --altcha-border-width: 1px;
  --altcha-border-radius: 0.9rem;
  --altcha-color-base: rgba(255, 255, 255, 0.04);
  --altcha-color-border: rgba(255, 255, 255, 0.12);
  --altcha-color-border-focus: rgba(255, 188, 0, 0.55);
  --altcha-color-text: #e7e5d5;
  --altcha-color-footer-bg: rgba(255, 255, 255, 0.02);
  --altcha-color-error-text: #ff9a9a;
}

.altcha input[type="checkbox"] {
  accent-color: #ffbc00;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
}

.form-note a {
  color: #ffbc00;
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

.card h3,
.action-card h3,
.use-case h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card p,
.action-card p,
.use-case p {
  margin: 0.85rem 0 0;
}

ul {
  padding-left: 1.25rem;
  margin: 0;
}

li {
  margin-bottom: 0.8rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 52rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(255, 188, 0, 0.25);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: #ffbc00;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: rgba(247, 245, 233, 0.8);
}

.faq-answer p:last-child {
  margin-bottom: 0 !important;
}

/* Shareable FAQ anchors: a chain-link icon trails each question; clicking it
   copies a direct link to that entry. Faint at rest, brighter on hover. */
.faq-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.4em;
  color: inherit;
  opacity: 0.3;
  text-decoration: none;
  vertical-align: middle;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.faq-question:hover .faq-anchor {
  opacity: 0.6;
}

.faq-anchor:hover,
.faq-anchor:focus-visible {
  opacity: 1;
  color: #ffbc00;
}

.faq-anchor:focus-visible {
  outline: 2px solid #ffbc00;
  outline-offset: 2px;
  border-radius: 3px;
}

.faq-anchor svg {
  width: 0.8em;
  height: 0.8em;
  display: block;
}

/* "Copied" confirmation bubble above the icon. */
.faq-anchor.copied::after {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 0.2rem 0.45rem;
  background: #0a1c12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #f7f5e9;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.footer {
  padding: 2rem 0;
  background: #04120d;
}

.footer-inner {
  align-items: center;
  gap: 1.5rem;
  color: #ffbc00;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: auto;
  height: 5.5rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: hsla(0, 0%, 100%, 0.39);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.status-table {
  width: 100%;
  max-width: 48rem;
  border-collapse: collapse;
  margin-top: 1.75rem;
  font-size: 1rem;
}

.status-table th,
.status-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.status-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 233, 0.5);
}

.status-table tr:last-child td {
  border-bottom: none;
}

.status-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.status-badge {
  display: inline-block;
  padding: 0.2em 0.75em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-ready {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.status-experimental,
.status-recommended {
  background: rgba(255, 188, 0, 0.1);
  color: #ffbc00;
  border: 1px solid rgba(255, 188, 0, 0.3);
}

.status-functional-prototype {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.status-public-preview {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.status-planned {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 245, 233, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
