/* =========================================================================
   Landing page — interactive Feature Showcase
   -------------------------------------------------------------------------
   Replaces the four static feature cards with a tabbed showcase: a copy
   column plus a stylised, theme-aware mock of the real module.

   Same contract as maintenance.css and dataHub.css — this sheet defines NO
   colours of its own. Every value is a var() from app.css's :root, so dark
   mode needs zero overrides here, and every offset uses logical properties
   (margin-inline, inset-inline-start, border-inline-*) so Arabic and Kurdish
   mirror on their own.

   Loaded after app.css so those variables exist.
   ========================================================================= */

/* The sticky nav (78px) would otherwise cover the heading the anchor
   jumps to. Mirrors the rule app.css already applies to #lp-pricing. */
#features { scroll-margin-top: 78px; }

.fs {
  --fs-cycle: 5s;
  position: relative;
}

/* ---------------------------------------------------------------- Tabs -- */

.fs-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
}

.fs-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease,
              box-shadow .18s ease, transform .18s ease;
}

.fs-tab:hover {
  color: var(--ink);
  border-color: var(--brand-1);
  transform: translateY(-1px);
}

.fs-tab:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.fs-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  box-shadow: 0 10px 24px -12px var(--brand-glow);
  transform: none;
}

.fs-tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: .85;
}

.fs-tab.is-active .fs-tab-ico { opacity: 1; }

/* Auto-play countdown, drawn inside the active tab so it reads as
   "this one is currently playing" rather than as a page-level widget.
   Only animates while .fs-autoplay is on the container. */
.fs-tab-prog {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .72);
  pointer-events: none;
}

/* .fs-running, not .fs-autoplay: the bar must stop when hover, focus or a
   backgrounded tab suspends the timer, not only when the visitor presses
   pause. landingShowcase.js keeps the two flags distinct. */
.fs.fs-running .fs-tab.is-active .fs-tab-prog {
  animation: fsTabProgress var(--fs-cycle) linear forwards;
}

@keyframes fsTabProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ------------------------------------------------------- Auto-play bar -- */

.fs-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}

.fs-autoplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.fs-autoplay-btn:hover {
  color: var(--ink);
  border-color: var(--brand-1);
  background: var(--surface-hover);
}

.fs-autoplay-btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.fs-autoplay-btn .fs-ico-pause { display: inline-flex; }
.fs-autoplay-btn .fs-ico-play  { display: none; }
.fs:not(.fs-autoplay) .fs-autoplay-btn .fs-ico-pause { display: none; }
.fs:not(.fs-autoplay) .fs-autoplay-btn .fs-ico-play  { display: inline-flex; }

/* --------------------------------------------------------------- Stage -- */

/* All five panels share one grid cell. The stage is therefore always as
   tall as the tallest panel, so switching tabs never reflows the page —
   no jump, no scroll drift. */
.fs-stage { display: grid; }

.fs-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.3fr);
  gap: 30px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.fs-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* ---------------------------------------------------------- Copy column - */

.fs-copy { min-width: 0; }

.fs-copy-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  box-shadow: 0 10px 22px -10px var(--brand-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.fs-copy h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}

.fs-copy > p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.fs-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fs-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.fs-points svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand-2);
}

/* -------------------------------------------------------- Browser frame - */

.fs-frame {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.fs-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--panel-edge);
}

.fs-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.fs-dot:nth-child(1) { background: #F0655C; }
.fs-dot:nth-child(2) { background: #F5BE4F; }
.fs-dot:nth-child(3) { background: #4FBE72; }

.fs-frame-url {
  margin-inline-start: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
}

.fs-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--patina);
}

.fs-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--patina);
  animation: fsPulse 2.2s ease-in-out infinite;
}

@keyframes fsPulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .4; transform: scale(.78); }
}

.fs-frame-body {
  background: var(--bg);
  padding: 14px;
  min-height: 306px;
}

/* ----------------------------------------------- Shared preview atoms --- */

.fs-code {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 5px;
  padding: 2px 6px;
}

.fs-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.fs-pill.pill-green  { background: var(--pill-green-bg);  color: var(--pill-green-text);  border-color: var(--pill-green-border); }
.fs-pill.pill-red    { background: var(--pill-red-bg);    color: var(--pill-red-text);    border-color: var(--pill-red-border); }
.fs-pill.pill-yellow { background: var(--pill-yellow-bg); color: var(--pill-yellow-text); border-color: var(--pill-yellow-border); }
.fs-pill.pill-blue   { background: var(--pill-blue-bg);   color: var(--pill-blue-text);   border-color: var(--pill-blue-border); }
.fs-pill.pill-gray   { background: var(--pill-gray-bg);   color: var(--pill-gray-text);   border-color: var(--pill-gray-border); }

.fs-meta {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  color: var(--ink-soft);
}

.fs-prog {
  height: 4px;
  border-radius: 3px;
  background: var(--panel-edge);
  overflow: hidden;
}

.fs-prog > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
}

.fs-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}

.fs-avatar.av-1 { background: linear-gradient(140deg, var(--brand-1), var(--brand-2)); }
.fs-avatar.av-2 { background: linear-gradient(140deg, var(--patina), var(--brand-3)); }
.fs-avatar.av-3 { background: linear-gradient(140deg, var(--rust), var(--rust-dark)); }
.fs-avatar.av-4 { background: linear-gradient(140deg, var(--steel), var(--brand-1)); }
.fs-avatar.av-lg { width: 40px; height: 40px; font-size: 13px; }

/* ------------------------------------------------------ 1. Kanban ------- */

.fs-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fs-kan-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.fs-kan-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.fs-kan-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-kan-head b { margin-inline-start: auto; font-size: 9px; font-weight: 700; }

.fs-kan-pip { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.fs-kan-pip.pip-todo { background: var(--slate); }
.fs-kan-pip.pip-prog { background: var(--brand-3); }
.fs-kan-pip.pip-done { background: var(--patina); }

.fs-kan-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 9px;
  padding: 9px;
  box-shadow: var(--shadow);
}

.fs-kan-top { display: flex; align-items: center; gap: 6px; }
.fs-kan-top .fs-pill { margin-inline-start: auto; }

.fs-kan-title {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.fs-kan-foot { display: flex; align-items: center; gap: 6px; }
.fs-kan-foot .fs-meta { margin-inline-start: auto; }

.fs-kan-card.is-live {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 1px var(--brand-3), 0 8px 20px -10px var(--brand-glow);
}

.fs-kan-card.is-done { opacity: .72; }
.fs-kan-card.is-done .fs-kan-title { text-decoration: line-through; text-decoration-thickness: 1px; }

/* ------------------------------------------------------ 2. Inventory ---- */

.fs-inv { display: flex; flex-direction: column; gap: 10px; }

.fs-inv-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.fs-chip {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  color: var(--ink-soft);
}

.fs-chip.is-on {
  border-color: var(--brand-1);
  color: var(--brand-1);
  background: var(--pill-blue-soft-bg);
}

.fs-inv-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--amber-note-text);
  background: var(--amber-note);
  border: 1px solid var(--amber-note-edge);
  border-radius: 999px;
  padding: 4px 9px;
}

.fs-table {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  overflow: hidden;
}

.fs-tr {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr) minmax(0, .7fr) minmax(0, .85fr);
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--panel-edge);
}

.fs-tr:last-child { border-bottom: 0; }

.fs-th {
  background: var(--surface-soft);
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
}

.fs-td-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.fs-td-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fs-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: 0 0 auto;
  background: var(--surface-soft);
  border: 1px solid var(--panel-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.fs-td-sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-td-stock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.fs-td-stock.is-low { color: var(--rust); }
.fs-td-stock small { font-weight: 400; font-size: 8.5px; color: var(--ink-soft); }

.fs-td-status { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------ 3. Team chat ---- */

.fs-chat { display: flex; flex-direction: column; gap: 10px; }

.fs-chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 9px 11px;
}

.fs-chat-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.fs-chat-head-text strong {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.fs-chat-head .fs-live { margin-inline-start: auto; }

.fs-chat-feed { display: flex; flex-direction: column; gap: 8px; }

.fs-msg { display: flex; align-items: flex-start; gap: 8px; }

.fs-bubble {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  border-start-start-radius: 3px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.fs-msg-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 3px;
}

.fs-msg-top b {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}

.fs-msg-top .fs-meta { margin-inline-start: auto; }

.fs-bubble p {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* Automated machine alert: uses the amber-note trio, which is already
   defined per theme, so it stays legible in dark mode. */
.fs-msg-alert .fs-bubble {
  background: var(--amber-note);
  border-color: var(--amber-note-edge);
  border-start-start-radius: 10px;
}

.fs-msg-alert .fs-bubble p,
.fs-msg-alert .fs-msg-top b { color: var(--amber-note-text); }

.fs-alert-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-note);
  border: 1px solid var(--amber-note-edge);
  color: var(--amber-note-text);
}

.fs-msg-me { flex-direction: row-reverse; }

.fs-msg-me .fs-bubble {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
  border-start-start-radius: 10px;
  border-start-end-radius: 3px;
}

.fs-msg-me .fs-bubble p,
.fs-msg-me .fs-msg-top b { color: #fff; }
.fs-msg-me .fs-msg-top .fs-meta { color: rgba(255, 255, 255, .72); }

.fs-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline-start: 34px;
}

.fs-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: fsTyping 1.3s ease-in-out infinite;
}

.fs-typing i:nth-child(2) { animation-delay: .18s; }
.fs-typing i:nth-child(3) { animation-delay: .36s; }

@keyframes fsTyping {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-2px); }
}

/* ------------------------------------------------------ 4. HR & roles --- */

.fs-hr { display: flex; flex-direction: column; gap: 10px; }

.fs-hr-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.fs-hr-top .fs-meta { margin-inline-start: auto; text-transform: none; letter-spacing: 0; }
.fs-hr-top .fs-meta b { color: var(--ink); font-size: 10.5px; }

.fs-hr-grid { display: flex; flex-direction: column; gap: 7px; }

.fs-staff {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 8px 11px;
  box-shadow: var(--shadow);
}

.fs-staff-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.fs-staff-body strong {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-staff-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fs-shift {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.fs-shift i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panel-edge);
  flex: 0 0 auto;
}

.fs-shift.is-on { color: var(--patina); }
.fs-shift.is-on i { background: var(--patina); }

/* --------------------------------------------- 5. Profile & backups ----- */

.fs-sys { display: flex; flex-direction: column; gap: 10px; }

.fs-sys-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 10px;
}

.fs-card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.fs-profile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.fs-profile strong {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
}

.fs-perm-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.fs-perm-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  color: var(--ink-soft);
}

.fs-perm-list svg { flex: 0 0 auto; color: var(--patina); }

.fs-backup { display: flex; flex-direction: column; gap: 9px; }

.fs-backup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.fs-backup-head .fs-pill { margin-inline-start: auto; }

.fs-backup-auto {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--amber-note-text);
  background: var(--amber-note);
  border: 1px solid var(--amber-note-edge);
  border-radius: 8px;
  padding: 7px 9px;
  margin: 0;
}

.fs-backup-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  color: var(--ink-soft);
}

.fs-backup-row b {
  margin-inline-start: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ink);
}

.fs-backup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 60%, var(--brand-3));
  box-shadow: 0 10px 22px -12px var(--brand-glow);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  cursor: default;
}

.fs-settings-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fs-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 9px;
  padding: 8px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  color: var(--ink-soft);
  min-width: 0;
}

.fs-setting > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-setting b {
  margin-inline-start: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: var(--ink);
  white-space: nowrap;
}

.fs-sw {
  margin-inline-start: auto;
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 13px;
  border-radius: 999px;
  background: var(--panel-edge);
}

.fs-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: inset-inline-start .18s ease;
}

.fs-sw.is-on { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.fs-sw.is-on::after { inset-inline-start: 13px; }

/* ------------------------------------------------------- Responsive ----- */

@media (max-width: 980px) {
  .fs-panel { grid-template-columns: 1fr; gap: 22px; }
  .fs-copy { text-align: center; }
  .fs-copy-icon { margin-inline: auto; }
  .fs-points { text-align: start; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 720px) {
  /* Tabs become a single scrollable strip rather than wrapping to three
     ragged rows. Scrollbar hidden — the partial next pill is the affordance. */
  .fs-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
    /* Bleed to the section edge so a half-visible next pill reads as
       "there is more". Must match .lp-section-inner's padding, which
       app.css steps from 32px down to 20px at 640px. */
    margin-inline: -32px;
    padding-inline: 32px;
  }
  .fs-tabs::-webkit-scrollbar { display: none; }
  .fs-tab { scroll-snap-align: center; font-size: 11.5px; padding: 8px 13px; }
  .fs-tab:hover { transform: none; }

  .fs-frame-body { padding: 10px; min-height: 0; }
  .fs-kanban { gap: 7px; }
  .fs-kan-card { padding: 7px; }
  .fs-kan-title { font-size: 9.5px; }
  .fs-code { font-size: 8px; padding: 2px 5px; }
  .fs-pill { font-size: 8.5px; padding: 3px 6px; }

  .fs-tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr); padding: 8px 9px; }
  .fs-tr > .fs-td-sku { display: none; }

  .fs-sys-grid { grid-template-columns: 1fr; }
  .fs-settings-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fs-tabs { margin-inline: -20px; padding-inline: 20px; }
  .fs-copy h3 { font-size: 19px; }
  .fs-controls { margin-bottom: 18px; }
  /* Comfortable thumb target on the one control the visitor is meant to press. */
  .fs-autoplay-btn { padding: 9px 15px; }
}

@media (max-width: 420px) {
  /* Three Kanban columns stop being readable well before this; drop the
     Done column and keep the two that carry the story. */
  .fs-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-kan-col:nth-child(3) { display: none; }
}

/* --------------------------------------------------- Reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
  .fs-panel { transition: opacity .01ms linear; transform: none; }
  .fs-panel.is-active { transform: none; }
  .fs-tab-prog,
  .fs-live i,
  .fs-typing i { animation: none !important; }
  .fs-tab-prog { width: 0; }
  .fs-tab:hover { transform: none; }
}
