/* ============================================================
   FoXpert Web — product page
   Tokens come from mindfox-redesign.css. No new colours.
   Prefixed fw-* so it cannot collide with the fp-* page.
   ============================================================ */

/* ── Reveal (matches the other product pages) ── */
.mf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.mf-reveal.is-visible { opacity: 1; transform: translateY(0); }
.mf-reveal-delay-1 { transition-delay: 0.12s; }
.mf-reveal-delay-2 { transition-delay: 0.24s; }

/* ── Eyebrow. No 01/02/03 here: these sections are categories, not a
      sequence, and numbering them would claim an order that isn't real. ── */
.fw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.fw-eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--orange);
  opacity: 0.8;
}
.fw-eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 123, 28, 0.14);
  animation: pulse-dot 2s ease-in-out infinite;
}
.fw-eyebrow--dotted::before { display: none; }

.fw-rule {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

/* ══ HERO ══════════════════════════════════════════════════ */
.fw-hero {
  position: relative;
  padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
  overflow: hidden;
  background: var(--bg-primary);
}
.fw-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 16%, rgba(255, 123, 28, 0.13) 0%, transparent 66%),
    radial-gradient(ellipse 45% 40% at 88% 84%, rgba(255, 123, 28, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.fw-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);   /* same split as every product hero */
  gap: 54px;
  align-items: center;
}
.fw-hero__content { max-width: 620px; }
.fw-hero__content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
/* Same specificity trap the sibling pages document: `.fw-hero__content p` is
   (0,1,1), so a bare `.fw-hero__sub` (0,1,0) would lose and render as body copy. */
.fw-hero__content .fw-hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 18px;
}
.fw-hero__content p {
  font-size: clamp(0.97rem, 2vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 26px;
}
.fw-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══ THE RIG — a FoX Viewer session, rebuilt in the page ═══
   The plate is a capture of the viewer's own canvas rendering a 6166 × 2570
   TIFF. The Cloud/Offline control is the page's signature: the application
   really does switch workspaces mid-inspection, so the control here rewires
   the panel around it rather than just restyling a pill.
   ────────────────────────────────────────────────────────── */
.fw-rig {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}
.fw-rig__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.fw-rig__app {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.fw-rig__app b { color: var(--orange); font-weight: 800; }
.fw-rig__url {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;          /* nowrap flex child needs this or it props the panel open */
}

/* Workspace switch */
.fw-switch {
  margin-left: auto;
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.fw-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  border-radius: 30px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.fw-switch__btn[aria-pressed="true"] {
  background: var(--orange);
  color: #0A0A0C;
}
.fw-switch__btn svg { width: 13px; height: 13px; }

.fw-rig__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.fw-rig__side {
  padding: 12px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
}
.fw-side__head {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 9px;
}
.fw-side__files { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.fw-side__file {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.fw-side__file.is-open { border-color: rgba(255, 123, 28, 0.5); background: var(--orange-glow); }
.fw-side__name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.fw-side__dim {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 9px;
  color: var(--text-secondary);
}
.fw-side__note {
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.fw-side__note b { color: var(--orange); font-weight: 700; }

/* The stage stacks the film over its profile strip. Centring still matters: when
   the file rail is taller than the pair, the leftover black splits above and
   below instead of pooling underneath — which is how the viewer sits a wide film
   in a tall canvas too. */
.fw-stage {
  position: relative;
  line-height: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fw-stage img { width: 100%; height: auto; display: block; }

/* ── The scrubber: drag a line profile across the film ───────
   Percentages everywhere, driven by --x, so the marker tracks the same film
   pixel at any rendered width. */
.fw-scan { position: relative; cursor: col-resize; touch-action: pan-y; }
.fw-scan:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

.fw-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* The film is clean: the candidates' outlines are drawn here, in the viewer's yellow. */
.fw-shape__line {
  fill: rgba(255, 123, 28, 0);
  stroke: #F2C744;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  transition: stroke var(--transition), fill var(--transition), filter var(--transition);
}
.fw-shape.is-on .fw-shape__line {
  stroke: #fff;
  stroke-width: 2.2;
  fill: rgba(255, 123, 28, 0.30);
  filter: drop-shadow(0 0 5px rgba(255, 123, 28, 0.95));
}

.fw-scan__line { position: absolute; top: 0; bottom: 0; left: var(--x, 53%); width: 0; pointer-events: none; }
.fw-scan__line i {
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 123, 28, 0.85);
}
/* Caps sit inside the film, not straddling its edge — the stage clips overflow,
   so a cap centred on the boundary would lose its top half. */
.fw-scan__line::before,
.fw-scan__line::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.fw-scan__line::before { top: 0; }
.fw-scan__line::after { bottom: 0; }

.fw-scan__chip {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--cy, 40%);
  transform: translate(-50%, -100%);
  margin-top: -11px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 12, 0.9);
  border: 1px solid rgba(255, 123, 28, 0.55);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--text-primary);
  pointer-events: none;
}
.fw-scan__chip b { color: var(--orange); font-weight: 700; }

/* ── The plot the scrubber feeds ── */
.fw-prof {
  /* Docked to the bottom of the canvas: when the file rail runs taller than the
     film, the leftover black falls between film and plot, where it reads as
     canvas, instead of hanging below the strip like a gap. The zero bottom is
     load-bearing — Bootstrap gives <figure> a 1rem bottom margin, which showed
     up as exactly 16px of black under the plot. */
  margin: auto 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 9px 12px 10px;
  /* .fw-stage sets line-height:0 for the image; text in here has to restate it. */
  line-height: 1.4;
}
.fw-prof__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fw-prof__ttl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.fw-prof__vals {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 9.5px;
  color: var(--text-muted);
}
.fw-prof__vals b { color: var(--text-primary); font-weight: 700; }
.fw-prof__svg { display: block; width: 100%; height: 84px; }
.fw-prof__grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fw-prof__band { fill: rgba(255, 255, 255, 0.07); }
.fw-prof__path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linejoin: round;
  /* preserveAspectRatio is none so the plot stretches to the rig; without this
     the stroke would stretch with it and read as a fat smear. */
  vector-effect: non-scaling-stroke;
}
.fw-prof__note { margin-top: 6px; font-size: 9.5px; line-height: 1.5; color: var(--text-muted); }
.fw-stage__meta {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 9.5px;
  color: var(--text-secondary);
  text-align: right;
  /* Must be restated: .fw-stage sets line-height:0 to kill the inline-image gap
     under the <img>, and this box inherits it — every row of the readout
     collapsed onto the same baseline and was unreadable. */
  line-height: 1.45;
}
.fw-stage__meta b { color: var(--orange); font-weight: 700; }

.fw-rig__status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 9px 14px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10px;
  color: var(--text-muted);
}
.fw-rig__status b { color: var(--orange); font-weight: 700; }
.fw-rig__status .fw-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28c840;
  align-self: center;
  animation: live-pulse 1.4s ease-in-out infinite;
}

/* The line that makes the point: where the pixels actually went. */
.fw-path {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.fw-path__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--orange-glow);
  border: 1px solid rgba(255, 123, 28, 0.22);
  color: var(--orange);
}
.fw-path__icon svg { width: 14px; height: 14px; }
.fw-path__txt { font-size: 11.5px; line-height: 1.55; color: var(--text-secondary); }
.fw-path__txt b { color: var(--text-primary); font-weight: 600; }

.fw-rig__hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ══ SECTION SHELL ═════════════════════════════════════════ */
.fw-section { padding: var(--section-padding) 0; }
.fw-section--alt { background: var(--bg-secondary); }
.fw-head { max-width: 860px; margin: 0 auto 52px; text-align: center; }
.fw-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.fw-head p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ══ SCREEN TABS ═══════════════════════════════════════════ */
.fw-tabs__list {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  justify-content: center;
  flex-wrap: wrap;
}
.fw-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.fw-tab:hover { color: var(--text-primary); border-color: var(--border-hover); }
/* Near-black on orange (7.6:1); white was 2.6:1. */
.fw-tab[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg-primary);
  box-shadow: 0 6px 22px -8px rgba(255, 123, 28, 0.7);
}
.fw-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.fw-tabs__panels {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}
.fw-panel { display: none; }
.fw-panel.is-active { display: block; }
.fw-panel img { width: 100%; height: auto; display: block; }
.fw-panel__cap {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.fw-panel__cap b { color: var(--text-primary); font-weight: 600; }

/* ══ TOOLSET ═══════════════════════════════════════════════ */
.fw-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fw-tool {
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.fw-tool:hover { border-color: var(--border-hover); }
.fw-tool:hover .fw-rule { opacity: 1; }
.fw-tool h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.fw-tool h3 span {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
}
.fw-tool > p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.fw-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-pills li {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
/* `.fw-tool > p` is (0,1,1), so a bare `.fw-tool__note` (0,1,0) would lose the
   margin and colour to it — the override has to carry the parent too. */
.fw-tool > p.fw-tool__note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.fw-tool > p.fw-tool__note b { color: var(--orange); font-weight: 700; }

/* ══ CLOUD / OFFLINE COMPARISON ════════════════════════════ */
.fw-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fw-mode {
  position: relative;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fw-mode__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--orange-glow);
  border: 1px solid rgba(255, 123, 28, 0.2);
  color: var(--orange);
  margin-bottom: 16px;
}
.fw-mode__icon svg { width: 21px; height: 21px; }
.fw-mode h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.fw-mode > p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.fw-mode ul { display: flex; flex-direction: column; gap: 8px; }
.fw-mode li {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.fw-mode li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.fw-mode__quote {
  margin-top: 18px;
  padding: 11px 13px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

/* ══ PLATFORM ══════════════════════════════════════════════ */
.fw-plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fw-plat__card {
  position: relative;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.fw-plat__card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.fw-plat__card:hover .fw-rule { opacity: 1; }
.fw-plat__num {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.fw-plat__card h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.fw-plat__card p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

/* ══ CTA ═══════════════════════════════════════════════════ */
.fw-cta { position: relative; padding: var(--section-padding) 0; overflow: hidden; }
.fw-cta__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(255, 123, 28, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.fw-cta__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.fw-cta__inner h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}
.fw-cta__inner p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; margin-bottom: 30px; }
.fw-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* minmax(0, …) not a bare 1fr: a 1fr track's automatic minimum is min-content,
     and the rig's nowrap URL would otherwise prop the column past the viewport. */
  .fw-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .fw-hero__content { max-width: 100%; }
  .fw-plat  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .fw-plat  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-tools { grid-template-columns: minmax(0, 1fr); }
  .fw-modes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .fw-hero { padding: calc(var(--section-padding) + 58px) 0 var(--section-padding); }
  .fw-tabs__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .fw-tab { padding: 9px 14px; font-size: 12px; }
  /* The file rail costs more than it says at this width; the workspace note
     below the plate already carries the same information. */
  .fw-rig__body { grid-template-columns: minmax(0, 1fr); }
  .fw-rig__side { display: none; }
  .fw-rig__bar { flex-wrap: wrap; }
  .fw-rig__url { display: none; }
  .fw-switch { margin-left: 0; }
  .fw-rig__status { font-size: 9.5px; gap: 3px 12px; }
  .fw-hero__actions .mf-btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .fw-plat { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .fw-stage__meta { font-size: 8.5px; padding: 5px 7px; }
  .fw-prof__svg { height: 74px; }
  .fw-scan__chip { font-size: 9px; padding: 4px 7px; }
  .fw-plat__num { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .fw-eyebrow__dot,
  .fw-rig__status .fw-dot { animation: none; }
  .fw-plat__card:hover { transform: none; }
  .mf-reveal { transition: none; }
}
