/* ==========================================================================
   The workspace-first pages: the homepage, and the parts of /browser,
   /pricing, /teams and /demo that share its blocks.

   Every class here is prefixed hx- so nothing collides with the older rules
   in each page's own <style>. Every colour is an app.css token: green only
   where the page is about protection, neutrals everywhere else.
   ========================================================================== */

:root {
  --hx-space: clamp(72px, 8.4vw, 120px);
}
@media (max-width: 560px) { :root { --hx-space: 64px; } }

.hx-sec { padding: var(--hx-space) 0; }
a.tx { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--green-line); }
a.tx:hover { border-bottom-color: var(--green-deep); }
a.tx:focus-visible { outline: 2px solid var(--green-text); outline-offset: 2px; border-radius: 2px; }
.hx-sec--tight { padding-top: 0; }
.hx-sec--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hx-head { max-width: 720px; margin-bottom: 48px; }
.hx-head .label { margin-bottom: 16px; }
.hx-head .lede { margin-top: 18px; }

.hx-state {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  background: var(--green-wash); color: var(--green-deep); white-space: nowrap;
}
.hx-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hx-state--early { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1px var(--border); }

/* ---- hero ---- */
.hx-hero { padding: 60px 0 40px; overflow: hidden; }
.hx-hero__copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hx-hero__pill { margin-bottom: 22px; }
.hx-hero h1 {
  font-size: clamp(36px, 4.9vw, 62px); line-height: 1.04; letter-spacing: -.036em; font-weight: 600;
  margin: 0 auto; max-width: 25ch; text-wrap: balance;
}
.hx-hero__sub { margin: 22px auto 0; max-width: 60ch; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--ink-60); }
.hx-hero__ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hx-avail {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin: 22px 0 0;
  font-size: 14px; color: var(--ink-60);
}
.hx-avail b { font-weight: 600; color: var(--ink-80); }

.hx-hero--page { padding-bottom: var(--hx-space); }
/* ---- film section ---- */
.hx-film { max-width: 1080px; margin: 0 auto; }
/* On a short, wide screen the film is narrowed until the stage, caption and
   controls all fit below the navigation at once. */
@media (min-width: 941px) and (orientation: landscape) {
  .hx-film { max-width: min(1080px, calc((100svh - 290px) * 1.78)); }
}

/* ---- the browser strip (used on /browser) ---- */

.hx-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.hx-strip > div:first-child { flex: 1 1 460px; }
.hx-strip p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-80); max-width: 68ch; }
.hx-strip__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- protection flow (teams) ---- */
.hx-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.hx-step { position: relative; padding: 0 18px 0 0; }
.hx-step__dot {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--green-deep); color: var(--green-deep);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
}
.hx-step::before {
  content: ""; position: absolute; left: 34px; right: 0; top: 16.5px; height: 1.5px; background: var(--green-line);
}
.hx-step:last-child::before { display: none; }

.hx-step h3 { font-size: 16.5px; letter-spacing: -.01em; margin: 18px 0 6px; }
.hx-step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-60); }

/* ---- pricing and close ---- */
.hx-pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.hx-pcard .hx-state { align-self: flex-start; }
.hx-pcard h3 { font-size: 22px; letter-spacing: -.02em; margin: 0; }

.hx-pcard p { margin: 0; color: var(--ink-60); font-size: 15px; line-height: 1.6; }
.hx-pcard p.hx-pcard__meta { font-size: 14px; color: var(--ink-80); font-weight: 500; }
.hx-pcard__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

.hx-close { text-align: center; padding: var(--hx-space) 0; }
.hx-close h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.035em; line-height: 1.06; margin: 0 auto; max-width: 20ch; text-wrap: balance; }
.hx-close__alt { margin: 20px 0 0; font-size: 15.5px; }
.hx-close__alt .tx { font-weight: 600; }
.hx-close .hx-hero__ctas { margin-top: 34px; }

/* ---- pricing: the workspace card, then browser protection ---- */
.hx-pw {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 56px; margin: 48px auto 0; max-width: 1040px; text-align: left;
  background: var(--paper); border: 1px solid var(--mint-line); border-radius: var(--r-lg); padding: 40px 44px;
  box-shadow: 0 30px 60px -42px rgba(23,107,87,.35);
}
.hx-pw__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.hx-pw__price { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 14px; }
.hx-pw__for { margin: 0 0 26px; font-size: 16.5px; line-height: 1.6; color: var(--ink-60); max-width: 40ch; }
.hx-pw__side .plan__feats { margin: 0; }
.hx-pw__small { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-60); }
.hx-pb { max-width: 760px; margin: 88px auto 34px; text-align: center; }
.hx-pb__h { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; margin: 14px 0 10px; }
.hx-pb p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-60); }

/* ---- FAQ beside its heading ---- */
.hx-faqwrap { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 28px 64px; align-items: start; }
.hx-faqwrap__head .h2 { margin: 0 0 12px; }
.hx-faqwrap__head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 32ch; }
.hx-faqwrap .faq { max-width: none; }

/* ---- reserved for real customer proof (see the comment in index.html) ---- */
.hx-proof { margin-top: 40px; padding: 24px 28px; border-top: 1px solid var(--border); }

/* ==========================================================================
   The homepage. One idea per section, and whitespace doing the separating:
   the promise and one product window; three benefits; the film; the two
   products; security and company controls (the page's one dark section);
   the commercial call to action; four questions.
   ========================================================================== */

/* a quiet secondary action: a link with an arrow that moves on hover */
.hx-go {
  display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  color: var(--brand); text-decoration: none; border-radius: 6px;
}
.hx-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s var(--nav-ease, ease); }
.hx-go:hover svg { transform: translateX(3px); }
.hx-go:focus-visible { outline: 2px solid var(--green-text); outline-offset: 3px; }

/* a status, in words, with a mark that differs by state (not only colour):
   solid for available, a ring for early access */
.hx-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  color: var(--brand); white-space: nowrap;
}
.hx-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.hx-tag--now { color: var(--green-text); }
.hx-tag--now::before { background: var(--jade); box-shadow: none; }

/* ---- hero ---- */
.hx-hero--split { padding: clamp(40px, 5.6vw, 84px) 0 clamp(56px, 6.4vw, 96px); overflow: visible; }
.hx-hero--split .wrap { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(36px, 4.4vw, 64px); align-items: center; }
.hx-hero--split .hx-hero__copy { max-width: 500px; margin: 0; text-align: left; }
.hx-hero--split h1 {
  font-size: clamp(40px, 4.2vw, 60px); line-height: 1.03; letter-spacing: -.04em; font-weight: 600;
  /* in em, not ch: ch follows the loading font, and the headline must not rewrap when it arrives */
  max-width: 7.45em; margin: 0; text-wrap: balance;
}
.hx-hero--split .hx-hero__sub { margin: 24px 0 0; max-width: 28em; font-size: clamp(17px, 1.25vw, 17.5px); line-height: 1.6; color: var(--text-2); }
.hx-hero--split .hx-hero__ctas { justify-content: flex-start; align-items: center; gap: 14px 28px; margin-top: 36px; }
/* One line where there is room. Beside the window it breaks only at the
   separator, never inside a phrase; on the narrowest phones it wraps freely. */
.hx-hero__avail { margin: 32px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.hx-hero__avail span { white-space: nowrap; }
@media (max-width: 359px) { .hx-hero__avail span { white-space: normal; } }
@media (min-width: 981px) and (max-width: 1180px) {
  .hx-hero--split .wrap { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
}

.hx-demo { margin: 0; min-width: 0; }
.hx-demo__cap { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 30px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.hx-demo__btn {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: border-color .16s ease, color .16s ease;
}
.hx-demo__btn:hover { border-color: #c3d0c9; color: var(--text); }
.hx-demo__btn:focus-visible { outline: 2px solid var(--green-text); outline-offset: 2px; }
.hx-demo__btn svg { width: 11px; height: 11px; fill: currentColor; }
.hx-demo__btn .i-pause, .hx-demo__btn .i-replay { display: none; }
.hx-demo__btn[data-state="playing"] .i-play { display: none; }
.hx-demo__btn[data-state="playing"] .i-pause { display: block; }
.hx-demo__btn[data-state="finished"] .i-play { display: none; }
.hx-demo__btn[data-state="finished"] .i-replay { display: block; }
/* hidden, not removed, so the caption keeps its height when the script arrives */
.hx-demo[data-film-mode="steps"] .hx-demo__btn, .hx-demo:not([data-film-mode]) .hx-demo__btn { visibility: hidden; }

/* ---- three benefits ---- */
.hx-ben { padding: 0 0 clamp(8px, 2vw, 24px); }
.hx-ben__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(28px, 4vw, 64px);
  margin: 0; padding: 30px 0 0; list-style: none; border-top: 1px solid var(--border);
}
.hx-ben__list h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 600; letter-spacing: -.018em; line-height: 1.3; }
.hx-ben__list p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 34ch; }

/* ---- a centred section head ---- */
.hx-head--center { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.hx-head--center .lede { margin: 16px auto 0; max-width: 44ch; font-size: 18px; color: var(--text-2); }

/* ---- the signature transformation: found, stand-in, restored ----
   Told apart by label and edge as well as colour: found has an amber
   underline, stand-ins a dashed blue edge, restored values sit on mint. */
.gx__v {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 8px 13px 9px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); line-height: 1.25;
}
.gx__v small { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.gx__v--found { background: var(--surface); box-shadow: inset 0 -2px 0 var(--amber-mark); }
.gx__v--stand { background: var(--surface); border: 1.5px dashed var(--blue); }
.gx__v--back { background: var(--mint); border-color: var(--mint-line); }

/* ---- security and company controls: the one dark section ---- */
.hx-dark { padding: var(--hx-space) 0; background: var(--text); color: #fff; }
.hx-head--dark { max-width: 760px; margin-bottom: 52px; }
.hx-head--dark .h2 { color: #fff; max-width: 17ch; }
.hx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.hx-steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 32px 0 0; }
.hx-steps li + li { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.1); }
.hx-steps__n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--green-on-dark); }
.hx-steps h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -.018em; color: #fff; }
.hx-steps p { margin: 0 0 24px; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 34ch; }
.hx-steps .gx__v { margin-top: auto; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.hx-steps .gx__v small { color: rgba(255,255,255,.62); }
.hx-steps .gx__v--found { background: rgba(255,255,255,.07); box-shadow: inset 0 -2px 0 var(--amber-mark); }
.hx-steps .gx__v--stand { background: transparent; border: 1.5px dashed var(--green-on-dark); }
.hx-steps .gx__v--back { background: rgba(127,214,169,.16); border-color: rgba(127,214,169,.4); }

.hx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: clamp(88px, 9vw, 128px) 0 0; padding: 0; list-style: none; }
.hx-facts li { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.hx-facts h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; color: #fff; }
.hx-facts p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.68); }
.hx-limitline { margin: 36px 0 0; max-width: 78ch; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.62); }
a.tx.tx--dark { color: #fff; border-bottom-color: rgba(127,214,169,.55); }
a.tx.tx--dark:hover { border-bottom-color: var(--green-on-dark); }
.hx-dark a:focus-visible { outline: 2px solid var(--green-on-dark); outline-offset: 3px; }
.hx-dark .hx-tag { color: #fff; }
.hx-dark .hx-tag--now { color: var(--green-on-dark); }
.hx-dark .hx-tag--now::before { background: var(--green-on-dark); }

/* ---- the commercial call to action ---- */
.hx-cta { text-align: center; }
.hx-cta h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.038em; text-wrap: balance; }
.hx-cta__sub { margin: 22px auto 0; max-width: 50ch; font-size: 17.5px; line-height: 1.6; color: var(--text-2); }
.hx-cta__ctas { display: flex; justify-content: center; align-items: center; gap: 14px 30px; flex-wrap: wrap; margin-top: 34px; }
.hx-cta__alt { margin: 30px 0 0; font-size: 15px; color: var(--text-2); }

/* ---- FAQ ---- */
.hx-sec--faq { border-top: 1px solid var(--border); }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .hx-flow { grid-template-columns: 1fr; gap: 26px; }
  .hx-step { padding: 0 0 0 52px; }
  .hx-step__dot { position: absolute; left: 0; top: 0; }
  .hx-step::before { left: 16.5px; top: 34px; bottom: -26px; right: auto; width: 1.5px; height: auto; }
  .hx-step h3 { margin-top: 4px; }
  .hx-facts { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}
@media (max-width: 980px) {
  .hx-hero--split .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hx-hero--split .hx-hero__copy { max-width: 600px; }
  .hx-demo { max-width: 640px; }
}
@media (max-width: 940px) {
  .hx-pw, .hx-faqwrap { grid-template-columns: 1fr; }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-steps li, .hx-steps li + li { padding: 24px 0 26px; border-left: 0; }
  .hx-steps li + li { border-top: 1px solid rgba(255,255,255,.1); }
  .hx-steps p { margin-bottom: 16px; }
  .hx-pw { padding: 30px 26px; gap: 28px; }
}
@media (max-width: 900px) {
  .hx-ben__list { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .hx-ben__list li { padding: 22px 0; border-top: 1px solid var(--border); }
  .hx-ben__list p { max-width: none; }
}
@media (max-width: 560px) {
  .hx-hero { padding-top: 40px; }
  .hx-hero--split { padding-top: 28px; }
  .hx-hero--split .hx-hero__sub { margin-top: 20px; }
  .hx-hero--split .hx-hero__ctas { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 28px; }
  .hx-hero--split .hx-hero__ctas .btn { width: 100%; }
  .hx-hero--split .hx-hero__ctas .hx-go { justify-content: center; }
  .hx-hero__avail { margin-top: 22px; }
  .hx-hero__ctas .btn { width: 100%; justify-content: center; }
  .hx-avail { flex-direction: column; align-items: center; gap: 6px; }
  .hx-facts { grid-template-columns: 1fr; gap: 22px; }
  .hx-cta__ctas { flex-direction: column; align-items: stretch; }
  .hx-cta__ctas .btn { width: 100%; }
  .hx-cta__ctas .hx-go { justify-content: center; }
  .hx-pcard { padding: 24px 20px; }
  .hx-strip { padding: 20px; }
  .hx-strip__ctas, .hx-strip__ctas .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Evidence and depth (30 Sep 2026): the compatibility band, the explainer's
   frame, the AI setup map, and light behind the hero window and the dark
   section. Accents stay semantic and small: blue for a provider connection
   and for protected details in transit, amber for a detail found, green for
   protected and restored, lavender for AI models. Provider colour appears
   only inside provider marks.
   ========================================================================== */

/* a status in words, with a mark that differs by state as well as colour */
.hx-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.hx-st::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--text-3); }
.hx-st--link { color: var(--blue); }
.hx-st--link::before { background: var(--blue); }
.hx-st--now { color: var(--green-text); }
.hx-st--now::before { background: var(--jade); }
.hx-st--early { color: var(--brand); }
.hx-st--early::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.hx-st--ctrl { color: var(--text); }
.hx-st--ctrl::before { background: var(--brand); border-radius: 2px; }
.hx-tag--link { color: var(--blue); }
.hx-tag--link::before { background: var(--blue); box-shadow: none; }

/* ---- light behind the hero window: felt more than seen ---- */
.hx-hero--split { overflow-x: clip; }
.hx-demo { position: relative; isolation: isolate; }
.hx-demo::before {
  content: ""; position: absolute; z-index: -1; inset: -14% -12% -8% -16%; pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 44%, color-mix(in srgb, var(--jade) 16%, transparent), transparent),
    radial-gradient(closest-side at 30% 78%, color-mix(in srgb, var(--blue) 9%, transparent), transparent);
}
/* the model in the window is an AI model: its chip carries the lavender */
.g4h__model { border-color: var(--lavender-line); background: var(--lavender-bg); }

/* ---- the compatibility band ---- */
.hx-compat {
  margin-top: clamp(56px, 6vw, 88px); padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(20,32,27,.03), 0 30px 60px -52px rgba(20,32,27,.35);
}
.hx-compat__h { margin: 0 0 24px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.hx-compat__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: 20px 0; }
.hx-compat__grp { min-width: 0; }
.hx-compat__grp + .hx-compat__grp { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--border-soft); }
.hx-compat__grp:first-child { padding-right: clamp(24px, 3vw, 40px); }
.hx-compat__k { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.hx-compat__grp p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.hx-marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hx-marks--sites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-marks--ws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-marks--ws .hx-mark { height: 54px; }
.hx-mark span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hx-mark small { font-size: 11.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.hx-mark {
  display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; padding: 0 14px 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
.hx-mark img { display: block; width: 22px; height: 22px; flex: none; }
.hx-go--sm { margin-top: 14px; font-size: 14px; }
/* a single settle as the band arrives, then still */
.hx-compat[data-reveal] .hx-mark { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 45ms); }
.hx-compat[data-reveal].is-in .hx-mark { opacity: 1; transform: none; }

/* ---- the explainer's frame ---- */
.hx-sec--how { padding-top: clamp(64px, 7vw, 104px); }
.hx-explain { margin: 0 auto; max-width: 1080px; }
.hx-explain__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.hx-explain__end { margin: 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.hx-explain__acts { display: inline-flex; align-items: center; gap: 18px; }
.hx-explain[data-film-mode="steps"] .hx-demo__btn, .hx-explain:not([data-film-mode]) .hx-demo__btn { visibility: hidden; }

/* ---- your company's AI setup: what connects to what ---- */
.hx-setup {
  position: relative; isolation: isolate; padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(20,32,27,.04), 0 36px 70px -54px rgba(20,32,27,.4);
}
/* a faint edge of light along the top, from the provider side to the protected side */
.hx-setup::before {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--blue) 45%, transparent), color-mix(in srgb, var(--action) 45%, transparent), transparent);
}
.hx-setup__head { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.hx-setup__head h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.hx-setup__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hx-setup__map { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: start; }
.hx-setup__col h4, .hx-setup__ctrl h4 { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hx-setup__rows { margin: 0; padding: 0; list-style: none; }
.hx-setup__rows li {
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 12px; border-radius: 12px;
  border: 1px solid transparent; transition: background-color .16s ease, border-color .16s ease;
}
.hx-setup__rows li + li { margin-top: 0; }
.hx-setup__rows li:hover { background: var(--surface-2); }
.hx-setup__rows img { width: 22px; height: 22px; flex: none; }
.hx-setup__rows b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.hx-setup__rows small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.hx-setup__ico { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--text-2); }
.hx-setup__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the hub: lines from each provider to Guard4AI and on to each channel,
   blue for each provider connection, jade for each place employees are protected */
.hx-setup__hub { position: relative; align-self: stretch; margin-top: 26px; height: 232px; }
.hx-setup__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-setup__lines path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hx-setup__lines .is-link { stroke: var(--blue); }
.hx-setup__lines .is-now { stroke: var(--jade); }
.hx-setup__lines .is-early { stroke: var(--brand); }
.hx-setup__node {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 12px 10px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid var(--jade);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--jade) 12%, transparent), 0 12px 26px -16px rgba(23,107,87,.5);
}
.hx-setup__node svg { width: 24px; height: 24px; fill: none; stroke: var(--jade); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hx-setup__node b { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.hx-setup__ctrl { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.hx-setup__chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hx-setup__chips li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-soft); }
.hx-setup__chips b { font-size: 14px; font-weight: 600; }
.hx-setup__acts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 22px; }

/* ---- the dark section: light behind the flow, a faint grid, coloured paths ---- */
.hx-dark { position: relative; overflow: hidden; isolation: isolate; }
.hx-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000, transparent 75%);
}
.hx-dark::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 4%; width: min(1100px, 110%); height: 820px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 40%, color-mix(in srgb, var(--lavender-on-dark) 13%, transparent), transparent),
    radial-gradient(closest-side at 72% 46%, color-mix(in srgb, var(--green-on-dark) 12%, transparent), transparent);
}
/* the three stages joined by one path: amber, then blue, then green */
.hx-steps { border-top: 0; }
.hx-steps li { position: relative; border-top: 2px solid var(--st); }
.hx-steps li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 4px var(--text); }
.hx-steps li + li::before { left: 32px; }
.hx-steps li:nth-child(1) { --st: var(--amber-mark); }
.hx-steps li:nth-child(2) { --st: var(--blue-on-dark); }
.hx-steps li:nth-child(3) { --st: var(--green-on-dark); }
.hx-steps .hx-steps__n { color: var(--st); }
.hx-steps .gx__v--found { box-shadow: inset 0 -2px 0 var(--amber-mark); }
.hx-steps .gx__v--stand { border-color: var(--blue-on-dark); }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .hx-setup__map { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); }
  .hx-setup__node b { display: none; }
}
@media (max-width: 940px) {
  .hx-compat__grid { grid-template-columns: 1fr; }
  .hx-compat__grp:first-child { padding-right: 0; }
  .hx-compat__grp + .hx-compat__grp { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--border-soft); }
  .hx-marks--sites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-marks--ws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-marks--ws .hx-mark { height: 54px; }
.hx-mark span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hx-mark small { font-size: 11.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
  /* the hub's lines would not survive the squeeze: two lists side by side */
  .hx-setup__map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
  .hx-setup__hub { display: none; }
  .hx-steps li, .hx-steps li + li { border-left: 0; }
  .hx-steps li + li::before { left: 0; }
}
@media (max-width: 700px) {
  .hx-setup__map { grid-template-columns: 1fr; gap: 18px; }
  .hx-setup__chips { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hx-marks, .hx-marks--sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-mark { height: 44px; font-size: 14px; }
  .hx-compat { padding: 20px 16px; border-radius: 16px; }
  .hx-setup { padding: 18px 14px; border-radius: 16px; }
  .hx-setup__rows li { padding: 0 6px; }
  .hx-setup__legend { display: none; }
  .hx-explain__foot { flex-direction: column; align-items: flex-start; }
}

/* ---- the product preview's frame ---- */
.hx-product .hx-head--center { max-width: 700px; }
.hx-app { margin: 0 auto; max-width: 1180px; }
.hx-app__cap { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--text-3); text-align: center; }
#setup .hx-head { max-width: 900px; }
.hx-product { padding-top: clamp(56px, 6vw, 88px); }
