/* ------------------------------------------------------------------
   QLMS website styles. Theme settings first: change colours and fonts here.
------------------------------------------------------------------ */
:root {
  /* Logo colours */
  --ink: #0B0F17;
  --navy: #0B2A55;
  --teal: #1FB5B0;
  --white: #FFFFFF;
  --teal-rgb: 31, 181, 176;
  --navy-rgb: 11, 42, 85;

  /* Text, by brightness */
  --text-hi: #FFFFFF;
  --text: #A9B6C6;
  --text-dim: #93A4B8;
  --on-teal: #06211F;

  /* Lines and glass */
  --hair: rgba(255, 255, 255, 0.10);
  --hair-strong: rgba(255, 255, 255, 0.16);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));

  /* Fonts */
  --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Layout */
  --pad: 20px;
  --maxw: 1160px;
  --rail-x: 12px;     /* thread position, from the content's left edge */
  --gutter: 40px;     /* space kept clear for the thread */
  --bar-h: 60px;
  --tabs-h: 0px;
  --header-h: calc(var(--bar-h) + var(--tabs-h));
  --drop-x: 50%;
  --thread-w: 2px;
}
.has-tabs { --tabs-h: 46px; }
@media (min-width: 960px) {
  :root {
    --pad: 40px;
    --rail-x: 18px;
    --gutter: 96px;
    --bar-h: 64px;
    --drop-x: 170px;
  }
  .has-tabs { --tabs-h: 50px; }
}

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.hi { color: var(--text-hi); font-weight: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--teal); color: var(--on-teal); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow, .mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 7.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  text-wrap: balance;
}
.intro { max-width: 36rem; font-size: 1.125rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--teal); color: var(--on-teal);
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(var(--teal-rgb), 0.5), 0 8px 32px -8px rgba(var(--teal-rgb), 0.55);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: #3CCBC6; box-shadow: 0 0 0 1px rgba(var(--teal-rgb), 0.7), 0 8px 40px -6px rgba(var(--teal-rgb), 0.75); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  color: var(--text-hi); font-family: var(--font-head); font-weight: 400;
  text-decoration: underline; text-decoration-color: rgba(var(--teal-rgb), 0.7);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-color: var(--teal); }
.link span { color: var(--teal); }

/* ------------------------------------------------------------------ top bar and journey tabs */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 23, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.bar__row { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar__logo { display: block; margin-left: -7px; border-radius: 6px; }
.bar__logo img { height: 46px; width: auto; }

.tabs { height: var(--tabs-h); border-top: 1px solid var(--hair); }
.tabs ul { display: flex; gap: 2px; height: 100%; margin-inline: -10px; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%; padding: 0 10px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-head); font-size: 0.875rem; white-space: nowrap;
  color: var(--text); text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.tabs a:hover { color: var(--text-hi); }
.tabs a[aria-current] { color: var(--text-hi); border-bottom-color: var(--teal); }
.tabs b { display: none; font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; color: var(--teal); }
@media (min-width: 560px) {
  .tabs a { padding: 0 14px; font-size: 0.9375rem; }
  .tabs b { display: inline; }
}

/* ------------------------------------------------------------------ device frames */
.phone {
  --phone-w: 230px;
  position: relative;
  flex: none;
  width: var(--phone-w);
  aspect-ratio: 300 / 630;
  padding: calc(var(--phone-w) * 0.03);
  border-radius: calc(var(--phone-w) * 0.155);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.09));
  box-shadow:
    0 0 0 1px var(--hair-strong),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 40px 80px -32px rgba(0, 0, 0, 0.9),
    0 0 90px -24px rgba(var(--teal-rgb), 0.35);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 0 2px 2px 0;
  background: rgba(255, 255, 255, 0.2);
}
.phone::before { right: -3px; top: 24%; height: 11%; }
.phone::after  { left: -3px; top: 19%; height: 6%; border-radius: 2px 0 0 2px; }
.phone__screen {
  position: relative;
  height: 100%;
  display: grid; place-items: center;
  border-radius: calc(var(--phone-w) * 0.127);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(120% 70% at 50% 0%, #13233E 0%, #0C1524 55%, #090D15 100%);
  overflow: hidden;
}
.phone__screen::before {
  content: ""; position: absolute; z-index: 3; top: 2.6%; left: 50%;
  width: 30%; height: 3.6%; transform: translateX(-50%);
  border-radius: 999px; background: #04060A; border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.phone__screen::after {
  content: ""; position: absolute; z-index: 3; bottom: 1.8%; left: 50%;
  width: 34%; height: 4px; transform: translateX(-50%);
  border-radius: 4px; background: rgba(255, 255, 255, 0.24);
  pointer-events: none;
}
.frame-label {
  max-width: 78%;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-dim);
}

.browser {
  width: 100%;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.7);
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(var(--teal-rgb), 0.35);
}
.browser__bar {
  display: grid; grid-template-columns: 1fr minmax(0, 2.4fr) 1fr; align-items: center;
  height: 34px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.browser__url { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.browser__body {
  aspect-ratio: 16 / 11;
  display: grid; place-items: center;
  background: radial-gradient(110% 80% at 50% 0%, #11203A 0%, #0B1320 60%, #090D15 100%);
}

/* ------------------------------------------------------------------ screenshots you can page through */
.shots { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shots__track {
  place-self: stretch;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shots__track::-webkit-scrollbar { display: none; }
.shots__track:focus-visible { outline-offset: -4px; border-radius: inherit; }
.shots__slide {
  flex: 0 0 100%;
  display: grid; place-items: center;
  scroll-snap-align: center; scroll-snap-stop: always;
}
.shots .frame-label { max-width: 60%; }
.shots__btn {
  position: absolute; z-index: 2; top: 0; bottom: 0;
  width: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.shots__btn--prev { left: 0; }
.shots__btn--next { right: 0; }
.shots__btn span {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(var(--teal-rgb), 0.7);
  background: rgba(6, 12, 20, 0.85);
  color: var(--text-hi); font-size: 1.125rem; line-height: 1;
  box-shadow: 0 0 18px -4px rgba(var(--teal-rgb), 0.8);
  transition: background-color 0.2s, opacity 0.2s;
}
.shots__btn:hover span { background: var(--teal); color: var(--on-teal); }
.shots__btn:focus-visible { outline-offset: -6px; }
.shots__btn[disabled] { cursor: default; }
.shots__btn[disabled] span { opacity: 0.22; box-shadow: none; }
.shots__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--text-dim);
}
.shots__dots { display: flex; gap: 6px; }
.shots__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: background-color 0.2s, width 0.2s; }
.shots__dots i.is-on { width: 18px; border-radius: 3px; background: var(--teal); }
.shots__hint { color: var(--text-dim); }

/* ------------------------------------------------------------------ opening */
.hero { position: relative; isolation: isolate; padding-top: 44px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.11) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 0%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 74% 70%, rgba(var(--teal-rgb), 0.13), transparent 70%),
    radial-gradient(ellipse 75% 70% at 72% 38%, rgba(var(--navy-rgb), 0.95), transparent 72%);
}
.hero__grid { display: grid; gap: 44px; }
.hero__text { max-width: 46rem; }
.hero h1 {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.375rem, 10.6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--text-hi);
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--teal); }
.hero__lede { margin-top: 24px; max-width: 34rem; font-size: 1.125rem; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.hero__phone { justify-self: center; }

/* Journey page opening: shorter */
.hero--journey h1 { font-size: clamp(2.375rem, 9.4vw, 4.75rem); line-height: 1.04; text-wrap: balance; }

.leadin { position: relative; height: 128px; filter: drop-shadow(0 0 8px rgba(var(--teal-rgb), 0.7)); }
.leadin__a, .leadin__b { position: absolute; border: 0 solid var(--teal); }
.leadin__a {
  top: 0; height: 64px;
  left: calc(var(--rail-x) + 40px);
  right: calc(var(--drop-x) - 1px);
  border-right-width: var(--thread-w); border-bottom-width: var(--thread-w);
  border-bottom-right-radius: 30px;
}
.leadin__a::before {
  content: ""; position: absolute; top: -5px; right: -6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #D8FFFC; box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.35);
}
.leadin__b {
  top: 62px; bottom: 0;
  left: var(--rail-x); width: 44px;
  border-left-width: var(--thread-w); border-top-width: var(--thread-w);
  border-top-left-radius: 30px;
}

@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 64px; align-items: center; }
  .hero__lede { font-size: 1.25rem; }
  .hero__phone { align-self: end; }
  .hero__phone .phone { --phone-w: 290px; }
}

/* ------------------------------------------------------------------ the thread */
/* The line is drawn by thread.js as one SVG path that crosses the page between steps.
   Each item says which side it sits on with data-side="l" or "r". */
.zone { position: relative; isolation: isolate; }
.snake { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.snake path { fill: none; stroke-width: 2; stroke-linecap: round; }
.snake__base { stroke: rgba(var(--teal-rgb), 0.24); }
.snake__lit {
  stroke: var(--teal);
  filter: drop-shadow(0 0 6px rgba(var(--teal-rgb), 0.85));
  transition: stroke-dashoffset 0.5s ease-out;
}

[data-side] { position: relative; }
[data-side="l"] { padding-left: var(--gutter); }
[data-side="r"] { padding-right: var(--gutter); }
/* Without JavaScript: a plain line beside each item */
html:not(.snake-on) [data-side]::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--thread-w);
  background: rgba(var(--teal-rgb), 0.5);
}
html:not(.snake-on) [data-side="l"]::after { left: var(--rail-x); }
html:not(.snake-on) [data-side="r"]::after { right: var(--rail-x); }

.node {
  position: absolute; z-index: 1;
  top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(var(--teal-rgb), 0.14), 0 0 22px 2px rgba(var(--teal-rgb), 0.7);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, color 0.4s;
}
[data-side="l"] > .node { left: calc(var(--rail-x) + 1px); transform: translateX(-50%); }
[data-side="r"] > .node { right: calc(var(--rail-x) + 1px); transform: translateX(50%); }
.node--ring { background: var(--ink); }
.node--num {
  top: -6px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1;
  color: var(--on-teal);
  box-shadow: 0 0 0 6px rgba(var(--teal-rgb), 0.16), 0 0 34px 6px rgba(var(--teal-rgb), 0.75);
}
.thread-live [data-side]:not(.is-on) > .node {
  background: var(--ink);
  border-color: rgba(var(--teal-rgb), 0.4);
  box-shadow: none;
  color: var(--text-dim);
}
@media (min-width: 960px) {
  .node--num { top: -10px; width: 38px; height: 38px; font-size: 0.9375rem; }
}

/* A line from the thread across to a card */
.reach::before {
  content: ""; position: absolute; top: 36px;
  width: calc(var(--gutter) - var(--rail-x) - var(--thread-w));
  height: 1px;
  background: var(--teal);
  transition: opacity 0.4s;
}
.reach[data-side="l"]::before { left: calc(var(--rail-x) + var(--thread-w)); }
.reach[data-side="r"]::before { right: calc(var(--rail-x) + var(--thread-w)); }
.reach--dashed::before { background: repeating-linear-gradient(90deg, var(--teal) 0 5px, transparent 5px 10px); }
.thread-live .reach:not(.is-on)::before { opacity: 0.3; }

/* Items on the right-hand side read from the right */
[data-side="r"].step { text-align: right; }
[data-side="r"].step .step__text { margin-left: auto; }
[data-side="r"].step .step__count,
[data-side="r"].step .tags,
[data-side="r"].step .chips { justify-content: flex-end; }
[data-side="r"].step .chain { align-items: flex-end; }
[data-side="r"].step .chain .chain__link { margin-left: 0; margin-right: 16px; }
@media (min-width: 960px) {
  [data-side="r"].step { grid-template-columns: 380px minmax(0, 1fr); }
  [data-side="r"].step .step__device { order: -1; }
}

/* ------------------------------------------------------------------ sections */
.sec { padding-block: 64px 80px; }
.sec-head > .eyebrow { margin-bottom: 16px; }
.sec-head > .intro { margin-top: 20px; }
@media (min-width: 960px) {
  .sec { padding-block: 96px 120px; }
  .sec-head > .intro { font-size: 1.25rem; margin-top: 24px; }
}

/* ------------------------------------------------------------------ journey picker (home) */
.picker { margin-top: 44px; display: grid; gap: 16px; }
.jcard {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.jcard:hover, .jcard:focus-visible {
  border-color: rgba(var(--teal-rgb), 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -40px rgba(0, 0, 0, 0.9), 0 0 60px -24px rgba(var(--teal-rgb), 0.7);
  transform: translateY(-2px);
}
.jcard__n { display: flex; align-items: center; gap: 12px; }
.ladder { display: flex; flex-direction: column-reverse; gap: 2px; }
.ladder i { display: block; width: 16px; height: 3px; border-radius: 1px; background: rgba(255, 255, 255, 0.16); }
.ladder[data-l="1"] i:nth-child(-n+1),
.ladder[data-l="2"] i:nth-child(-n+2),
.ladder[data-l="3"] i:nth-child(-n+3),
.ladder[data-l="4"] i:nth-child(-n+4) { background: var(--teal); }
.jcard h3 {
  margin-top: 16px;
  font-family: var(--font-head); font-weight: 500; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--text-hi);
}
.jcard__feel { margin-top: 10px; font-size: 1rem; line-height: 1.5; }
.jcard__go {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-head); font-size: 0.9375rem; color: var(--text-hi);
}
.jcard__go span { color: var(--teal); font-size: 1.25rem; transition: transform 0.3s; }
.jcard:hover .jcard__go span { transform: translateX(4px); }
.jcard__note { margin-top: 10px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--text-dim); }
@media (min-width: 640px) { .picker { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .picker { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------ journey steps */
.steps { margin-top: 56px; }
.step { padding-bottom: 72px; }
.step__count {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.step__count b { font-weight: 400; color: var(--teal); }
.step h3 {
  margin: 12px 0 14px;
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.75rem, 6.6vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text-hi);
  text-wrap: balance;
}
.step__text { max-width: 34rem; }
.step__text > p + p { margin-top: 12px; }
.step__device { margin-top: 32px; display: flex; justify-content: center; }
.phone { --phone-w: 236px; }

.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 12px;
  border: 1px solid var(--hair-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.875rem; line-height: 1.3; color: var(--text-hi);
}
.tags small, .chip small {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
}

/* "Done for you": a quiet system entry */
.log {
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.65;
  color: #B7C4D4;
  overflow-wrap: break-word;
}
.log__tag {
  display: inline-block; margin: 0 10px 4px 0; padding: 2px 8px;
  border: 1px solid rgba(var(--teal-rgb), 0.6); border-radius: 4px;
  background: rgba(var(--teal-rgb), 0.08);
  font-size: 0.6875rem; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
  vertical-align: 1px;
}

/* Activity chips that swap the screen */
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 16px;
  border: 1px solid var(--hair-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-head); font-size: 0.9375rem; color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--text-hi); border-color: rgba(var(--teal-rgb), 0.6); }
.chip[aria-pressed="true"] {
  color: var(--text-hi); border-color: var(--teal);
  background: rgba(var(--teal-rgb), 0.12);
  box-shadow: 0 0 24px -6px rgba(var(--teal-rgb), 0.7);
}
html:not(.js) .chips { display: none; }
.swap { width: 100%; display: grid; gap: 32px; justify-items: center; }
.swap__panel { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.js .swap__panel:not(.is-active) { display: none; }
.swap__cap { max-width: 22rem; text-align: center; font-size: 0.9375rem; line-height: 1.5; }
.swap__cap b { display: block; font-family: var(--font-head); font-weight: 500; color: var(--text-hi); }
.swap .browser { max-width: 420px; }

.chain { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.chain li {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--hair-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.03em;
  color: var(--text);
}
.chain li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--teal); }
.chain li:nth-child(3)::before { background: rgba(var(--teal-rgb), 0.45); }
.chain li:last-child { border-color: var(--teal); color: var(--text-hi); background: rgba(var(--teal-rgb), 0.1); box-shadow: 0 0 28px -6px rgba(var(--teal-rgb), 0.7); }
.chain li:last-child::before { background: #D8FFFC; box-shadow: 0 0 8px 2px rgba(var(--teal-rgb), 0.9); }
.chain .chain__link { min-height: 0; padding: 0; border: 0; border-radius: 0; background: var(--teal); box-shadow: none; width: 1px; height: 14px; margin-left: 16px; }
.chain .chain__link::before { display: none; }

@media (min-width: 960px) {
  .steps { margin-top: 96px; }
  .step {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 64px; align-items: center;
    padding-bottom: 136px;
  }
  .step__text > p { font-size: 1.125rem; }
  .step__device { margin-top: 0; }
  .phone { --phone-w: 280px; }
  .hero__phone .phone { --phone-w: 290px; }
}

/* ------------------------------------------------------------------ the offline note */
.offline { padding-bottom: 72px; }
.offline__card {
  position: relative; isolation: isolate;
  padding: 28px 22px 32px;
  border: 1px solid rgba(var(--teal-rgb), 0.5);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(var(--teal-rgb), 0.16), transparent 70%),
    linear-gradient(180deg, rgba(var(--navy-rgb), 0.85), rgba(var(--navy-rgb), 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 90px -30px rgba(var(--teal-rgb), 0.7);
  overflow: hidden;
}
.offline__sig { display: flex; align-items: center; gap: 12px; }
.offline__sig svg { flex: none; width: 34px; height: 34px; }
.offline h3 {
  margin: 18px 0 16px;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.25rem, 9.4vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--text-hi);
}
.offline h3 span { display: block; color: var(--teal); }
.offline__lede { max-width: 32rem; font-size: 1.125rem; color: #C6D1DE; }
.offline__facts { margin-top: 24px; display: grid; gap: 12px; max-width: 34rem; }
.offline__facts li {
  position: relative; padding-left: 30px;
  color: var(--text-hi); font-size: 1rem; line-height: 1.45;
}
.offline__facts li::before {
  content: ""; position: absolute; left: 4px; top: 0.3em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.offline__small { margin-top: 22px; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; letter-spacing: 0.02em; color: #B7C4D4; }
.offline__device { margin-top: 32px; display: flex; justify-content: center; }
@media (min-width: 960px) {
  .offline { padding-bottom: 136px; }
  .offline__card {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px; align-items: center;
    padding: 56px 48px 56px 56px; border-radius: 28px;
  }
  .offline__lede { font-size: 1.25rem; }
  .offline__device { margin-top: 0; }
}

/* ------------------------------------------------------------------ add-on branch */
.branch { padding-bottom: 72px; }
.branch__card {
  padding: 26px 22px 30px;
  border: 1px dashed rgba(var(--teal-rgb), 0.5);
  border-radius: 24px;
  background: var(--glass);
}
.branch h3 {
  margin: 14px 0 14px;
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.75rem, 6.6vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--text-hi);
  text-wrap: balance;
}
.branch__text { max-width: 34rem; }
.branch__text > p + p { margin-top: 12px; }
.branch__device { margin-top: 32px; display: flex; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px;
  border: 1px solid rgba(var(--teal-rgb), 0.6); border-radius: 999px;
  background: rgba(var(--teal-rgb), 0.08);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}
@media (min-width: 960px) {
  .branch { padding-bottom: 136px; }
  .branch__card { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px; align-items: center; padding: 48px 48px 48px 56px; }
  .branch__text > p { font-size: 1.125rem; }
  .branch__device { margin-top: 0; }
}

/* ------------------------------------------------------------------ hand-up to the next journey */
.handup { padding-bottom: 88px; }
.handup__card {
  display: block;
  padding: 28px 22px 30px;
  border: 1px solid rgba(var(--teal-rgb), 0.45);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 100% at 0% 100%, rgba(var(--teal-rgb), 0.14), transparent 70%),
    var(--glass);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.handup__card:hover, .handup__card:focus-visible { border-color: var(--teal); box-shadow: 0 0 80px -26px rgba(var(--teal-rgb), 0.8); }
.handup h2 { margin: 14px 0 14px; }
.handup__feel { max-width: 34rem; font-size: 1.125rem; }
.handup__go {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--teal); color: var(--on-teal);
  font-family: var(--font-head); font-weight: 500;
}
.stairs { margin-top: 32px; max-width: 520px; display: flex; align-items: flex-end; }
.stairs li {
  position: relative; flex: 1 1 0; min-width: 0;
  height: calc(30px + var(--n) * 16px);
  padding: 8px 4px 0 8px;
  border-top: var(--thread-w) solid rgba(var(--teal-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--teal-rgb), 0.05), transparent 92%);
  font-family: var(--font-mono); font-size: 0.625rem; line-height: 1.4; letter-spacing: 0.03em;
  color: var(--text-dim);
}
.stairs li.is-done, .stairs li.is-next { border-top-color: var(--teal); color: var(--text-hi); }
.stairs li.is-next { background: linear-gradient(180deg, rgba(var(--teal-rgb), 0.22), transparent 92%); }
.stairs li + li::before {
  content: ""; position: absolute; left: 0; top: calc(-1 * var(--thread-w));
  width: var(--thread-w); height: calc(16px + var(--thread-w)); background: rgba(var(--teal-rgb), 0.35);
}
.stairs li.is-next::before { background: var(--teal); }
@media (min-width: 560px) { .stairs li { font-size: 0.75rem; padding-left: 12px; } }
@media (min-width: 960px) {
  .handup { padding-bottom: 136px; }
  .handup__card { padding: 52px 56px 56px; }
  .handup__feel { font-size: 1.25rem; }
}

/* ------------------------------------------------------------------ close */
.close {
  position: relative; isolation: isolate;
  padding-block: 88px 104px;
  border-top: 1px solid var(--hair);
  text-align: center;
}
.close::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 50% 100%, rgba(var(--teal-rgb), 0.12), transparent 70%),
    radial-gradient(ellipse 80% 90% at 50% 100%, rgba(var(--navy-rgb), 0.9), transparent 75%);
}
.close .h2 { max-width: 16ch; margin-inline: auto; }
.close .btn { margin-top: 32px; }
@media (min-width: 960px) { .close { padding-block: 140px 160px; } }

.foot { border-top: 1px solid var(--hair); }

/* ------------------------------------------------------------------ less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread__lit::after { display: none; }
}

/* ------------------------------------------------------------------ real screenshots */
.shots__slide, .phone__screen { position: relative; }
.shot { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.zone.hero { padding-top: 56px; }
.zone.hero::before, .zone.hero::after { bottom: auto; height: 900px; }
@media (min-width: 960px) { .zone.hero { padding-top: 96px; } }

/* ==================================================================
   Site parts (not in the mock-up): navigation, content pages, forms
================================================================== */

/* ------------------------------------------------------------------ main navigation */
.bar__end { display: flex; align-items: center; gap: 10px; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-head); font-size: 0.9375rem; color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current] { color: var(--text-hi); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--hair-strong); border-radius: 12px; background: none; cursor: pointer;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text-hi);
}
.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; }
@media (max-width: 1039px) {
  .js .nav-toggle { display: grid; }
  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--bar-h);
    padding: 8px var(--pad) 20px;
    background: rgba(11, 15, 23, 0.98);
    border-bottom: 1px solid var(--hair);
  }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav a { min-height: 52px; padding: 0 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--hair); border-radius: 0; }
  /* Without JavaScript the links sit in a row that scrolls sideways */
  html:not(.js) .bar__row { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html:not(.js) .nav { order: 3; width: 100%; overflow-x: auto; }
}

/* ------------------------------------------------------------------ footer */
.foot { padding-block: 40px 32px; }
.foot .wrap { display: block; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot__top img { width: auto; height: 40px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__links a, .foot__legal a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; color: var(--text); text-decoration: none;
}
.foot__links a:hover, .foot__legal a:hover { color: var(--text-hi); text-decoration: underline; }
.foot__legal {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px;
  font-size: 0.875rem; color: var(--text-dim);
}
.foot__legal p { font-family: var(--font-body); font-size: 0.875rem; letter-spacing: 0; margin-right: auto; }

/* ------------------------------------------------------------------ content pages */
.page-hero { position: relative; isolation: isolate; padding-block: 56px 40px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 60% at 80% 20%, rgba(var(--teal-rgb), 0.10), transparent 70%),
    radial-gradient(ellipse 75% 90% at 72% 10%, rgba(var(--navy-rgb), 0.9), transparent 72%);
}
.page-hero h1 {
  margin-top: 16px; max-width: 18ch;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.375rem, 9.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em;
  color: var(--text-hi); text-wrap: balance;
}
.page-hero .lede { margin-top: 22px; max-width: 36rem; font-size: 1.125rem; }
.page-hero .hero__actions { margin-top: 28px; }
@media (min-width: 960px) {
  .page-hero { padding-block: 96px 64px; }
  .page-hero .lede { font-size: 1.25rem; }
}

.sec--line { border-top: 1px solid var(--hair); }
.sec--tint { background: linear-gradient(180deg, transparent, rgba(var(--navy-rgb), 0.34) 20%, rgba(var(--navy-rgb), 0.34) 80%, transparent); }
.h3 {
  font-family: var(--font-head); font-weight: 500; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--text-hi);
}
.stack > * + * { margin-top: 14px; }
.grid { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 24px 22px 26px;
  border: 1px solid var(--hair); border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.card > .mono { margin-bottom: 12px; }
.card > p + p, .card > .h3 + p { margin-top: 10px; }
a.card { display: block; text-decoration: none; transition: border-color 0.3s, box-shadow 0.3s; }
a.card:hover, a.card:focus-visible { border-color: rgba(var(--teal-rgb), 0.6); box-shadow: 0 0 60px -24px rgba(var(--teal-rgb), 0.7); }

/* Text beside a device frame */
.feature { margin-top: 48px; display: grid; gap: 32px; align-items: center; }
.feature__device { display: flex; justify-content: center; }
.feature__text { max-width: 34rem; }
.feature__text > * + * { margin-top: 14px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 72px; }
  .feature--flip .feature__device { order: -1; }
}

/* Plain ticked list */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-hi); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.35em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.ticks--plain li { color: var(--text); }
.ticks--plain li::before { border: 0; width: 8px; height: 2px; top: 0.75em; left: 6px; background: var(--text-dim); transform: none; }

/* A big step count: "4 steps" */
.count { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); }
.count__n { flex: none; font-family: var(--font-head); font-weight: 300; font-size: 4rem; line-height: 1; letter-spacing: -0.04em; color: var(--text-hi); }
.count__unit { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.count__task { padding-left: 16px; border-left: 1px solid var(--hair-strong); font-size: 1rem; line-height: 1.45; color: var(--text-hi); text-align: left; }
[data-side="r"].step .count { justify-content: flex-end; }

/* The steps of a flow, numbered */
.flow { margin-top: 18px; counter-reset: flow; display: grid; gap: 8px; text-align: left; }
.flow li {
  counter-increment: flow;
  position: relative; padding: 10px 14px 10px 48px;
  border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, 0.025);
  font-size: 0.9375rem; line-height: 1.45; color: var(--text-hi);
}
.flow li::before {
  content: counter(flow);
  position: absolute; left: 12px; top: 9px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(var(--teal-rgb), 0.6);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal);
}

/* Compare table */
.compare { margin-top: 40px; width: 100%; border-collapse: collapse; }
.compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare th, .compare td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); font-size: 0.9375rem; line-height: 1.45; }
.compare thead th { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.compare thead th:last-child { color: var(--teal); }
.compare tbody th { font-weight: 400; color: var(--text-dim); width: 28%; }
.compare td:last-child { color: var(--text-hi); background: rgba(var(--teal-rgb), 0.06); }
@media (min-width: 720px) { .compare th, .compare td { padding: 18px 20px; font-size: 1.0625rem; } }

/* "What QLMS does" beside "What stays with you" */
.split { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 840px) { .split { grid-template-columns: 1fr 1fr; } }
.split .card--us { border-color: rgba(var(--teal-rgb), 0.45); }

/* Long text: privacy, terms */
.prose { max-width: 44rem; }
.prose h2 { margin: 40px 0 12px; font-family: var(--font-head); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--text-hi); }
.prose p + p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--text-hi); }
.notice { margin-top: 24px; padding: 14px 16px; border: 1px dashed rgba(var(--teal-rgb), 0.5); border-radius: 12px; font-size: 0.9375rem; }

/* ------------------------------------------------------------------ forms */
.form { margin-top: 32px; max-width: 36rem; display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; color: var(--text-hi); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--hair-strong); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hi); font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { font-size: 0.875rem; color: var(--text-dim); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-top: 24px; max-width: 36rem; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hair-strong); color: var(--text-hi); }
.alert:empty { display: none; }
.alert--ok { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.1); }
.alert--err { border-color: #F2A0A0; background: rgba(242, 160, 160, 0.08); }
.alert a { color: var(--text-hi); }

/* Staff journeys use a browser frame, which needs more room than a phone */
@media (min-width: 960px) {
  .step--staff { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-side="r"].step--staff { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.step__device .browser { max-width: 520px; }

/* ------------------------------------------------------------------ small helpers */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jcard[aria-current] { border-color: rgba(var(--teal-rgb), 0.55); }
.sec-head:not([data-side]) > .intro { margin-top: 20px; }
.card > .h3 + ul, .card > p + ul { margin-top: 14px; }
.sec-head > .pill { margin-bottom: 16px; }

/* Lists and small labels inside a journey step */
.step__text > .ticks, .step__text > .flow { margin-top: 16px; }
.step__text > ul + p, .step__text > ol + p { margin-top: 18px; }
.step__text > .step__label { margin-top: 20px; }
.step__text > .step__label + .ticks { margin-top: 10px; }
[data-side="r"].step .ticks { justify-items: end; }
[data-side="r"].step .ticks li { padding-left: 0; padding-right: 30px; }
[data-side="r"].step .ticks li::before { left: auto; right: 4px; }

/* A journey step with no screen beside it */
@media (min-width: 960px) {
  .step.step--solo, [data-side="r"].step.step--solo { display: block; }
  .step--solo .step__text { max-width: 40rem; }
}

/* A real screenshot inside a browser frame */
.browser__body--shot { aspect-ratio: auto; display: block; padding: 0; }
.browser__body--shot img { width: 100%; height: auto; }

/* Two screenshots for one step, one above the other */
.shot-stack { width: 100%; max-width: 520px; display: grid; gap: 16px; }

/* ------------------------------------------------------------------ webinar */
.webinar-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 24px; }
.webinar-actions .btn, #webinar .btn, .webinar-list .btn, .sec form > .btn { border: 0; cursor: pointer; }
.webinar-linkbtn { background: none; border: 0; padding: 12px 0; font: inherit; cursor: pointer; }
.webinar-linkbtn[hidden] { display: none; }
#webinar-room { margin-top: 24px; height: 78vh; min-height: 420px; border: 1px solid var(--hair-strong); border-radius: 12px; overflow: hidden; }
#webinar-room[hidden] { display: none; }
#webinar-room iframe { width: 100%; height: 100%; border: 0; }
.webinar-list { margin-top: 12px; display: grid; gap: 12px; list-style: none; padding: 0; }
.webinar-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.prose + .h3, #webinar .h3, .btn + .h3, form + .h3, ul + .h3 { margin-top: 40px; }

/* ------------------------------------------------------------------ demo account */
.btn[hidden] { display: none; }
.btn--ghost { background: transparent; color: var(--text-hi); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), 0.7); }
.btn[disabled] { opacity: 0.7; cursor: wait; white-space: normal; text-align: center; }
.close__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.close__actions .btn { margin-top: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.dialog {
  width: min(34rem, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  margin: auto; padding: 32px 28px 28px;
  border: 1px solid var(--hair-strong); border-radius: 20px;
  background: #111826; color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.dialog::backdrop { background: rgba(5, 8, 13, 0.75); backdrop-filter: blur(4px); }
.dialog .h3 { margin-top: 6px; }
.dialog .form { margin-top: 20px; }
.dialog .alert { margin-top: 0; }
.form--done > :not(.alert) { display: none; } /* after a demo sign-up only the message stays */
.dialog--done > .form-note { display: none; }
.dialog__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-hi);
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.dialog__close:hover { background: rgba(255, 255, 255, 0.08); }
.dialog__close:focus-visible { outline: 2px solid var(--teal); }
#webinar-room:fullscreen { height: 100%; border: 0; border-radius: 0; }
#webinar-room.is-max { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; min-height: 0; margin: 0; border: 0; border-radius: 0; background: var(--ink); }
.webinar-max, .webinar-max body { overflow: hidden; }
.webinar-exit { position: fixed; z-index: 1001; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); border: 0; cursor: pointer; }
.webinar-exit[hidden], #webinar-full[hidden] { display: none; }
.webinar-banner { margin-top: 24px; font-size: 0.9375rem; }
.webinar-banner a { color: var(--text-hi); }
.btn--webinar { background: transparent; color: var(--text-hi); font-weight: 600; box-shadow: inset 0 0 0 2px var(--teal); }
.btn--webinar:hover { background: rgba(var(--teal-rgb), 0.16); box-shadow: inset 0 0 0 2px #3CCBC6, 0 8px 40px -6px rgba(var(--teal-rgb), 0.6); }
