/* ============================================================
   合同会社CRima — POP × シック
   ============================================================ */

:root {
  --navy: #0f2d4a;
  --navy-mid: #1a4a7a;
  --navy-light: #2d5f8f;
  --blue: #3d8fd4;
  --sky: #5eb3e8;
  --sky-pale: #d4ecfa;
  --yellow: #f5e6a3;
  --yellow-pale: #fdf8e4;
  --green: #7ec8a0;
  --green-pale: #e4f5ec;
  --red-yahoo: #ff0033;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #d8e0ea;
  --gray-500: #6b7d92;
  --gray-700: #3d5068;
  --text: #1a2e42;
  --shadow-sm: 0 2px 12px rgba(15, 45, 74, 0.08);
  --shadow-md: 0 8px 28px rgba(15, 45, 74, 0.12);
  --shadow-lg: 0 16px 48px rgba(15, 45, 74, 0.14);
  --radius-pill: 999px;
  --radius-blob: 20px;
  --font: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
video, iframe, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* ---- Header ---- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease);
}

.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.header__logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.25s;
}

.header__nav a:hover { color: var(--blue); }

.header__cta {
  padding: 8px 18px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  transition: background 0.25s, transform 0.25s var(--ease);
}

.header__cta:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.25s;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(15, 45, 74, 0.2);
}

.btn--primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 45, 74, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn--ghost:hover {
  border-color: var(--sky);
  background: var(--sky-pale);
  transform: translateY(-2px);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 48px) 24px 64px;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(94, 179, 232, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(126, 200, 160, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, var(--off-white) 0%, var(--white) 45%, var(--sky-pale) 100%);
  display: flex;
  align-items: center;
}

.hero__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: center;
  width: min(1140px, 100%);
  margin-inline: auto;
}

.hero__company {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}

.hero__lead {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Orbit diagram ---- */
.orbit {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ringSpin 80s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--white) 0%, var(--sky-pale) 100%);
  border-radius: 50%;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 2;
  opacity: 0;
  animation: coreIn 0.8s var(--ease) 0.3s forwards;
}

@keyframes coreIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.orbit__pulse {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 179, 232, 0.35) 0%, transparent 70%);
  animation: breathe 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.orbit__core-logo {
  width: 200px;
  max-width: 86%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.orbit__node-name--wrap {
  white-space: normal;
  max-width: 7em;
  line-height: 1.35;
  text-align: left;
}

.orbit__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: 10px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.orbit__node.is-visible {
  animation: nodeIn 0.6s var(--ease) calc(0.5s + var(--i) * 0.12s) forwards;
}

@keyframes nodeIn {
  to { opacity: 1; transform: scale(1); }
}

.orbit__node:hover {
  transform: scale(1.05) !important;
  box-shadow: var(--shadow-lg);
}

.orbit__node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.orbit__node-dot--green { background: var(--green); }
.orbit__node-dot--blue { background: var(--sky); }
.orbit__node-dot--yellow { background: #e8c547; }
.orbit__node-dot--red { background: var(--red-yahoo); }

/* Orbit node positions (540px box, center 270,270, ring r=204) */
.orbit__node--1 { top: 0; left: 50%; transform: translateX(-50%) scale(0.8); }
.orbit__node--2 { top: 18%; right: -1%; }
.orbit__node--3 { bottom: 8%; right: 0; }
.orbit__node--4 { bottom: 8%; left: 0; }
.orbit__node--5 { top: 18%; left: -1%; }

.orbit__node--1.is-visible { animation-name: nodeIn1; }
.orbit__node--2.is-visible { animation-name: nodeIn2; }
.orbit__node--3.is-visible { animation-name: nodeIn3; }
.orbit__node--4.is-visible { animation-name: nodeIn4; }
.orbit__node--5.is-visible { animation-name: nodeIn5; }

@keyframes nodeIn1 {
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes nodeIn2 { to { opacity: 1; transform: scale(1); } }
@keyframes nodeIn3 { to { opacity: 1; transform: scale(1); } }
@keyframes nodeIn4 { to { opacity: 1; transform: scale(1); } }
@keyframes nodeIn5 { to { opacity: 1; transform: scale(1); } }

.orbit__node--1:hover { transform: translateX(-50%) scale(1.05) !important; }

/* ---- Yahoo logo ---- */
.logo-yahoo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; }
.logo-yahoo__brand { color: var(--red-yahoo); font-size: 1em; }
.logo-yahoo__shop { color: var(--navy); font-size: 0.85em; font-weight: 600; }
.logo-yahoo--xs { font-size: 10px; }
.logo-yahoo--sm { font-size: 14px; }

/* ---- Logo images ---- */
.logo-img { object-fit: contain; }
.logo-img--osoujiya { width: 140px; }
.logo-img--teikibin { width: 120px; }
.logo-img--lg { width: 200px; }

/* ---- Sections ---- */
.section {
  padding: 88px 0;
}

.section__head {
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section__lead {
  font-size: 15px;
  color: var(--gray-700);
}

.section--services {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.section--services::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--sky));
  opacity: 0.4;
}

.section--services .container {
  width: min(1140px, 100% - 48px);
}

.section--services .biz-flow {
  width: 100%;
}

.section--services .service-list {
  max-width: none;
  width: 100%;
}

/* ---- Business flow (connected to orbit) ---- */
.biz-flow {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px 64px;
  align-items: start;
}

.biz-flow__center {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  text-align: center;
  padding: 32px 24px;
}

.biz-flow__center::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -32px;
  width: 64px;
  height: 2px;
  background: linear-gradient(to right, var(--sky), transparent);
  opacity: 0.5;
}

.biz-flow__spokes {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
  border-left: 2px dashed rgba(94, 179, 232, 0.35);
}

.biz-flow__spoke {
  position: relative;
  padding: 28px 0 28px 32px;
  border-bottom: 1px solid var(--gray-200);
}

.biz-flow__spoke:last-child { border-bottom: none; }

.biz-flow__spoke::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 36px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--sky);
  box-shadow: 0 0 0 4px var(--off-white);
}

.biz-flow__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s var(--ease);
}

.biz-flow__link:hover { transform: translateX(6px); }

.biz-flow__link strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Service section ---- */
.section--service {
  background: linear-gradient(180deg, var(--white) 0%, var(--sky-pale) 100%);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.service__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px;
}

.service__body p {
  margin-bottom: 16px;
  color: var(--gray-700);
}

.service__body .btn { margin-top: 8px; }

/* ---- Service list ---- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 64px;
}

.service-list__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.3s;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-list__item:hover {
  background: linear-gradient(90deg, var(--sky-pale) 0%, transparent 40%);
  margin-inline: -16px;
  padding-inline: 16px;
  border-radius: var(--radius-blob);
}

.service-list__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
  opacity: 0.7;
}

.service-list__item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.service-list__item p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

/* ---- Payment logos ---- */
.pay-logos {
  margin-top: 14px;
}

.pay-logos__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.pay-logos__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.pay-logos__item {
  display: block;
  height: 22px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
}

.pay-logos__item--wide {
  max-width: 72px;
}

/* ---- Company ---- */
.section--company {
  background: var(--navy);
  color: var(--white);
}

.section--company .section__title { color: var(--white); }

.company-table { margin-top: 32px; }

.company-table__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.company-table__row dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
}

.company-table__row dd {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.company-table__row a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-table__row a:hover { color: var(--white); }

.company-table__address {
  font-style: normal;
  line-height: 1.75;
}

.company-table__zip {
  display: block;
  margin-bottom: 4px;
}

.company-table__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-table__list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  line-height: 1.65;
}

.company-table__list li:last-child { margin-bottom: 0; }

.company-table__list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.company-table__sites {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-table__sites li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.company-table__sites li:last-child { margin-bottom: 0; }

.company-table__sites strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 2px;
}

.company-table__tel {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 0;
}

.company-table__tel-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 4px;
}

/* ---- Company intro (top) ---- */
.company-intro {
  max-width: 640px;
}

.company-intro__text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.section--company .btn--light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.section--company .btn--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ---- Company page ---- */
.page-company {
  padding-top: var(--header-h);
}

.co-hero {
  padding: clamp(56px, 8vw, 80px) 0 clamp(48px, 6vw, 64px);
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
}

.co-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 16px;
}

.co-hero__lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-700);
  max-width: 720px;
}

.co-section {
  padding: clamp(56px, 8vw, 80px) 0;
}

.co-section--alt {
  background: var(--off-white);
}

.co-heading {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.45;
}

.co-message {
  max-width: 720px;
}

.co-message p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.co-message p:last-of-type {
  margin-bottom: 0;
}

.co-message__list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.co-message__list li {
  position: relative;
  padding-left: 1em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.co-message__list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.co-message__list li:last-child {
  margin-bottom: 0;
}

.co-message__list + p {
  margin-top: 18px;
}

.co-timeline {
  max-width: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--gray-200);
}

.co-timeline__item {
  position: relative;
  padding: 0 0 28px 28px;
}

.co-timeline__item:last-child {
  padding-bottom: 0;
}

.co-timeline__item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200);
}

.co-section--alt .co-timeline__item::before {
  border-color: var(--off-white);
}

.co-timeline__date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
  line-height: 1.5;
}

.co-timeline__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  margin: 0;
}

.co-timeline__text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.co-timeline__text a:hover {
  color: var(--navy-mid);
}

.co-award {
  max-width: 640px;
}

.co-award__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.co-award__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 14px;
}

.co-award__link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.co-award__link:hover {
  color: var(--navy-mid);
}

.co-trademark-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-trademark-card {
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-sm);
}

.co-section--alt .co-trademark-card {
  background: var(--white);
}

.co-trademark-card__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.co-trademark-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
}

.co-trademark-card__num {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}

.co-trademark__owner {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 24px;
  margin-bottom: 0;
}

.co-section--table {
  padding-top: clamp(56px, 8vw, 80px);
  padding-bottom: clamp(56px, 8vw, 80px);
}

.co-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 640px;
}

.co-related__list li {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.co-related__list li:last-child {
  margin-bottom: 0;
}

.co-related__list a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.co-related__list a:hover {
  color: var(--navy-mid);
}

.co-related__url {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .co-trademark-cards {
    grid-template-columns: 1fr;
  }

  .company-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---- Footer ---- */
.footer {
  padding: 40px 24px;
  text-align: center;
  background: #0a2238;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer__name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__copy { font-size: 11px; opacity: 0.6; margin-top: 8px; }

/* ---- Scroll reveal ---- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }

  .orbit { max-width: 460px; }

  .orbit__core {
    width: 240px;
    height: 240px;
  }

  .orbit__core-logo { width: 168px; }

  .biz-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .biz-flow__center {
    position: static;
  }

  .biz-flow__center::after { display: none; }

  .biz-flow__spokes {
    padding-left: 16px;
    border-left-width: 1px;
  }

  .service {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service__visual { padding: 24px; }
}

@media (max-width: 768px) {
  .header__menu { display: flex; }

  .header__inner {
    width: min(1200px, 100% - 32px);
  }

  .header__logo {
    font-size: 13px;
    max-width: calc(100% - 52px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__nav li { border-bottom: 1px solid var(--gray-100); }
  .header__nav a { display: block; padding: 14px 0; }

  .header__menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__menu.is-open span:nth-child(2) { opacity: 0; }
  .header__menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .container,
  .section--services .container {
    width: min(1080px, 100% - 32px);
  }

  .container--narrow {
    width: min(640px, 100% - 32px);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 28px) 16px 48px;
    align-items: flex-start;
  }

  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .orbit {
    overflow: hidden;
    max-width: min(360px, 100%);
  }

  .orbit__node {
    white-space: normal;
    max-width: 46%;
    line-height: 1.3;
  }

  .orbit__node--2 { right: 0; top: 14%; }
  .orbit__node--5 { left: 0; top: 14%; }
  .orbit__node--3 { right: 0; bottom: 6%; }
  .orbit__node--4 { left: 0; bottom: 6%; }

  .orbit__core {
    width: 200px;
    height: 200px;
  }

  .orbit__core-logo { width: 138px; }

  .service-list__item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .service-list__item:hover {
    margin-inline: 0;
    padding-inline: 0;
  }

  .company-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section { padding: 64px 0; }

  .fc-hero {
    padding: calc(var(--header-h) + 32px) 16px 48px;
  }

  .fc-hero__title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .fc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-hero__actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .fc-subnav {
    padding: 16px 0;
  }

  .fc-form__group input,
  .fc-form__group select,
  .fc-form__group textarea {
    font-size: 16px;
  }

  .footer {
    padding: 32px 16px;
  }
}

@media (max-width: 430px) {
  .header__inner,
  .container,
  .section--services .container {
    width: min(1080px, 100% - 24px);
  }

  .container--narrow {
    width: min(640px, 100% - 24px);
  }

  .hero {
    padding-inline: 12px;
  }

  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .orbit {
    max-width: min(320px, 100%);
  }

  .orbit__core {
    width: 170px;
    height: 170px;
  }

  .orbit__core-logo { width: 120px; }

  .orbit__node {
    font-size: 7px;
    padding: 6px 8px;
    max-width: 48%;
  }

  .pay-logos__list li {
    height: 36px;
    padding: 0 8px;
  }

  .fc-flow {
    grid-template-columns: 1fr !important;
  }

  .fc-cards,
  .fc-cards--4,
  .fc-cards--6 {
    grid-template-columns: 1fr !important;
  }

  .fc-ready-grid,
  .fc-hub-cards {
    grid-template-columns: 1fr;
  }

  .fc-workday__track {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orbit__ring { animation: none; }
  .orbit__pulse { animation: none; }
}

/* ============================================================
   Franchise page
   ============================================================ */

.page-franchise .section {
  padding: 80px 0;
}

.fc-hero {
  padding: calc(var(--header-h) + 56px) 24px 72px;
  background:
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(94, 179, 232, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(126, 200, 160, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, var(--off-white) 0%, var(--white) 48%, var(--sky-pale) 100%);
}

.fc-hero__wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px 56px;
  align-items: center;
}

.fc-hero__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.fc-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.fc-hero__catch {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  font-weight: 600;
  color: var(--navy-mid);
  margin-bottom: 20px;
  line-height: 1.55;
}

.fc-hero__lead {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 28px;
  line-height: 1.85;
}

.fc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.fc-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-hero__tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-mid);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.fc-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.fc-heading {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.fc-heading--light {
  color: var(--white);
}

.fc-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.fc-lead {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 28px;
}

.fc-note,
.fc-disclaimer {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-top: 20px;
}

.section--fc { background: var(--white); }
.section--fc-alt { background: var(--off-white); }

.fc-problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.fc-problem-list li {
  position: relative;
  padding: 16px 18px 16px 36px;
  background: var(--off-white);
  border-radius: var(--radius-blob);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}

.section--fc .fc-problem-list li {
  background: var(--off-white);
}

.section--fc-alt .fc-problem-list li {
  background: var(--white);
}

.fc-problem-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
}

.fc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.fc-cards--6 {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.fc-cards li {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.55;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.section--fc-alt .fc-cards li {
  background: var(--white);
}

.fc-cards li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.fc-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.fc-table th,
.fc-table td {
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.fc-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
}

.fc-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

.fc-table__yes {
  color: var(--blue);
  font-weight: 600;
}

.fc-table__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 2px;
}

.fc-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.fc-job-grid li {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
}

.fc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.fc-stats__item {
  text-align: center;
  padding: 24px 16px;
  background: var(--off-white);
  border-radius: var(--radius-blob);
  border: 1px solid var(--gray-200);
}

.fc-stats__value {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.fc-stats__label {
  font-size: 13px;
  color: var(--gray-500);
}

.fc-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
}

.fc-steps__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}

.fc-steps__item:first-child {
  border-top: 1px solid var(--gray-200);
}

.fc-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky-pale);
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.fc-steps__item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.fc-steps__item p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

.fc-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fc-fit__col {
  padding: 28px;
  border-radius: var(--radius-blob);
  border: 1px solid var(--gray-200);
}

.fc-fit__col--ok {
  background: var(--green-pale);
  border-color: rgba(126, 200, 160, 0.4);
}

.fc-fit__col--ng {
  background: var(--off-white);
}

.fc-fit__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.fc-fit__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-fit__col li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
}

.fc-fit__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.fc-fit__col--ng li::before {
  background: var(--gray-500);
}

.fc-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.fc-flow li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--off-white);
  border-radius: var(--radius-blob);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

.fc-flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.fc-merit {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fc-merit li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}

.fc-merit li:first-child {
  border-top: 1px solid var(--gray-200);
}

.fc-merit__label {
  font-size: 20px;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}

.fc-merit h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.fc-merit p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

.fc-faq {
  max-width: 800px;
}

.fc-faq__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.fc-faq__item:first-child {
  border-top: 1px solid var(--gray-200);
}

.fc-faq__item dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.fc-faq__item dd {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
}

.section--fc-cta {
  background: var(--navy);
  color: var(--white);
}

.fc-cta {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.fc-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  margin-bottom: 28px;
}

.fc-cta .btn--primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.fc-cta .btn--primary:hover {
  background: var(--sky-pale);
}

.service-list__item h3 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-list__item h3 a:hover {
  color: var(--blue);
}

.fc-cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- Franchise subnav & hub ---- */
.fc-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.fc-subnav__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fc-subnav__desc {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

.fc-subnav__desc strong {
  color: var(--navy);
  font-weight: 600;
}

.fc-subnav__desc a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-subnav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-subnav__menu a,
.fc-subnav__current {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.fc-subnav__menu a {
  color: var(--navy-mid);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  transition: background 0.2s, border-color 0.2s;
}

.fc-subnav__menu a:hover {
  background: var(--sky-pale);
  border-color: var(--sky);
  color: var(--navy);
}

.fc-subnav__current {
  color: var(--white);
  background: var(--navy);
}

.fc-hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fc-hub-card {
  display: block;
  padding: 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.fc-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.fc-hub-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
}

.fc-hub-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 16px;
}

.fc-hub-card__arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* ---- Franchise work page (franchise.html) ---- */
.page-franchise-work .fc-work-hero {
  padding: calc(var(--header-h) + 48px) 0 72px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(94, 179, 232, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.fc-work-hero__inner {
  text-align: center;
  max-width: 960px;
  margin-inline: auto;
}

.fc-work-hero__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

.fc-work-hero__title {
  font-size: clamp(1.75rem, 4.5vw, 2.625rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.fc-work-hero__catch {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Pipeline diagram */
.fc-pipeline {
  margin: 0;
}

.fc-pipeline__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 32px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-pipeline__node {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}

.fc-pipeline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--off-white);
}

.fc-pipeline__glyph {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.fc-pipeline__node--hq .fc-pipeline__icon {
  background: var(--navy);
  border-color: var(--navy);
}

.fc-pipeline__node--hq .fc-pipeline__glyph { color: var(--white); }

.fc-pipeline__node--case .fc-pipeline__icon { background: var(--sky-pale); border-color: var(--sky); }
.fc-pipeline__node--partner .fc-pipeline__icon { background: var(--green-pale); border-color: var(--green); }
.fc-pipeline__node--work .fc-pipeline__icon { background: var(--yellow-pale); border-color: var(--yellow); }

.fc-pipeline__node--done .fc-pipeline__icon {
  background: var(--blue);
  border-color: var(--blue);
}

.fc-pipeline__node--done .fc-pipeline__glyph { color: var(--white); }

.fc-pipeline__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.fc-pipeline__line {
  flex-shrink: 0;
  width: clamp(20px, 4vw, 40px);
  height: 3px;
  border-radius: 2px;
  position: relative;
}

.fc-pipeline__line--hq { background: var(--sky); }
.fc-pipeline__line--partner { background: var(--green); }

.fc-pipeline__line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: inherit;
}

.fc-pipeline__line--hq::after { border-left-color: var(--sky); }
.fc-pipeline__line--partner::after { border-left-color: var(--green); }

.fc-pipeline__legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
}

.fc-pipeline__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
}

.fc-pipeline__legend-item::before {
  content: '';
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.fc-pipeline__legend-item--hq::before { background: var(--sky); }
.fc-pipeline__legend-item--partner::before { background: var(--green); }

/* Workday flow */
.fc-workday {
  padding: 80px 0;
  background: var(--white);
}

.fc-workday__heading {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.45;
}

.fc-workday__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  padding-top: 36px;
}

.fc-workday__track::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--sky) 50%, var(--green) 50%, var(--green) 100%);
  border-radius: 2px;
  z-index: 0;
}

.fc-workday__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 8px;
}

.fc-workday__num {
  order: -1;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

.fc-workday__lane {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.fc-workday__step--hq .fc-workday__lane {
  background: var(--sky-pale);
  color: var(--blue);
}

.fc-workday__step--partner .fc-workday__lane {
  background: var(--green-pale);
  color: var(--navy-mid);
}

.fc-workday__step::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--sky);
  background: var(--sky);
  margin-bottom: 8px;
}

.fc-workday__step--partner::after {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.fc-workday__task {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

/* Split comparison */
.fc-split {
  padding: 80px 0;
  background: var(--off-white);
}

.fc-split__heading {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.45;
}

.fc-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}

.fc-split__panel {
  padding: 32px 28px;
  border-radius: var(--radius-blob);
  border: 1px solid var(--gray-200);
}

.fc-split__panel--solo {
  background: var(--white);
}

.fc-split__panel--fc {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.fc-split__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.fc-split__panel--fc .fc-split__label {
  border-bottom-color: var(--navy);
}

.fc-split__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fc-split__stack span {
  position: relative;
  padding: 12px 16px 12px 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-left: 3px solid var(--gray-200);
  margin-left: 8px;
}

.fc-split__stack span::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-500);
}

.fc-split__stack span:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -6px;
  top: calc(50% + 6px);
  width: 2px;
  height: calc(100% + 4px);
  background: var(--gray-200);
}

.fc-split__note {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-align: center;
}

.fc-split__bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fc-split__band {
  padding: 20px;
  border-radius: 12px;
}

.fc-split__band--hq {
  background: var(--navy);
  color: var(--white);
}

.fc-split__band--partner {
  background: var(--green-pale);
  border: 2px solid var(--green);
}

.fc-split__band-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  opacity: 0.85;
}

.fc-split__band-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-split__band-items span {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
}

.fc-split__band--partner .fc-split__band-items span {
  background: var(--white);
  color: var(--navy);
}

.fc-split__handoff {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  padding: 4px 0;
}

/* System map */
.fc-system-map {
  padding: 80px 0;
  background: var(--white);
}

.fc-system-map__heading {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.45;
}

.fc-system-map__diagram {
  max-width: 900px;
  margin-inline: auto;
  padding: 36px 24px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
}

.fc-system-map__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-system-map__item {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-align: center;
  line-height: 1.4;
}

.fc-system-map__item--wip {
  border-style: dashed;
  border-color: var(--sky);
  background: var(--sky-pale);
}

.fc-system-map__badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 4px;
}

.fc-system-map__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: var(--sky);
  position: relative;
}

.fc-system-map__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--sky);
}

.fc-system-map__connector {
  width: 2px;
  height: 24px;
  background: var(--gray-200);
  margin: 12px auto;
}

.fc-system-map__caption {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.7;
}

/* Learn more links */
.fc-more {
  padding: 72px 0 96px;
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
}

.fc-more__heading {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 32px;
}

.fc-more__nav {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  overflow: hidden;
  background: var(--white);
}

.fc-more__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s;
}

.fc-more__link:last-child {
  border-bottom: none;
}

.fc-more__link:hover {
  background: var(--sky-pale);
}

.fc-more__link--cta {
  background: var(--navy);
  color: var(--white);
}

.fc-more__link--cta:hover {
  background: var(--navy-mid);
}

.fc-more__link-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--sky);
}

.fc-more__link--cta .fc-more__link-arrow {
  color: var(--white);
}

@media (max-width: 960px) {
  .fc-hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fc-hero__actions {
    justify-content: center;
  }

  .fc-hero__tags {
    justify-content: center;
  }

  .fc-stats {
    grid-template-columns: 1fr;
  }

  .fc-fit {
    grid-template-columns: 1fr;
  }

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

  .fc-hub-cards {
    grid-template-columns: 1fr;
  }

  .fc-hub-cards--3 {
    grid-template-columns: 1fr;
  }

  .fc-workday__track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
    padding-top: 0;
  }

  .fc-workday__track::before {
    display: none;
  }

  .fc-split__grid {
    grid-template-columns: 1fr;
  }

  .fc-cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-franchise .section {
    padding: 64px 0;
  }

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

  .fc-problem-list {
    grid-template-columns: 1fr;
  }

  .fc-cards--4 {
    grid-template-columns: 1fr;
  }

  .fc-workday__track {
    grid-template-columns: 1fr 1fr;
  }

  .fc-subnav__menu a,
  .fc-subnav__current {
    font-size: 12px;
    padding: 7px 12px;
  }
}

/* ---- Franchise why page ---- */
.fc-hero__sub {
  font-size: 14px;
  margin-bottom: 20px;
}

.fc-hero__sub a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-hero__sub a:hover {
  color: var(--navy-mid);
}

.fc-ready-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fc-ready-card {
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
}

.fc-ready-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.fc-ready-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

.fc-note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-next-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fc-next-card {
  display: block;
  padding: 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.fc-next-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fc-next-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.fc-next-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

.fc-hero__actions--center {
  justify-content: center;
}

.fc-btn--light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.fc-btn--light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

@media (max-width: 960px) {
  .fc-ready-grid,
  .fc-next-links {
    grid-template-columns: 1fr;
  }

  .fc-split {
    grid-template-columns: 1fr;
  }

  .fc-sys-flow {
    flex-direction: column;
  }

  .fc-sys-flow__arrow {
    transform: rotate(90deg);
  }
}

/* ---- Franchise: split, system flow, form ---- */
.fc-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.fc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fc-split__box {
  padding: 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
}

.section--fc-alt .fc-split__box {
  background: var(--white);
}

.fc-split__box--accent {
  border-color: var(--sky);
  background: var(--sky-pale);
}

.fc-split__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.fc-split__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-split__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
}

.fc-split__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.fc-sys-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.fc-sys-flow__item {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 24px 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
}

.fc-sys-flow__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fc-sys-flow__item p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

.fc-sys-flow__arrow {
  font-size: 20px;
  color: var(--sky);
  flex-shrink: 0;
}

.fc-hero--contact {
  padding-bottom: 48px;
  text-align: center;
}

.fc-hero--contact .fc-hero__title {
  margin-bottom: 16px;
}

.fc-hero--contact .fc-hero__lead {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 0;
}

.container--narrow {
  width: min(640px, 100% - 48px);
  margin-inline: auto;
}

.fc-source-display {
  font-size: 13px;
  color: var(--gray-500);
  background: var(--sky-pale);
  border: 1px solid var(--gray-200);
  padding: 10px 16px;
  border-radius: var(--radius-blob);
  margin-bottom: 28px;
}

.fc-form__group {
  margin-bottom: 22px;
}

.fc-form__group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.fc-form__req {
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
}

.fc-form__group input,
.fc-form__group select,
.fc-form__group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.fc-form__group input:focus,
.fc-form__group select:focus,
.fc-form__group textarea:focus {
  outline: none;
  border-color: var(--sky);
}

.fc-form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.fc-form__note {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.fc-form__submit {
  width: 100%;
}

.fc-form__back {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
}

.fc-form__back a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-lead a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-lead--tail {
  margin-top: 28px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .fc-cards--3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Franchise LP (franchise.html)
   ============================================================ */

.page-franchise-lp {
  --flp-section-pad: clamp(72px, 10vw, 100px);
}

/* ---- Hero ---- */
.flp-hero {
  padding: calc(var(--header-h) + 40px) 0 var(--flp-section-pad);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(94, 179, 232, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(126, 200, 160, 0.12) 0%, transparent 50%),
    linear-gradient(175deg, var(--off-white) 0%, var(--white) 55%, var(--sky-pale) 100%);
  overflow: hidden;
}

.flp-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px 56px;
  align-items: center;
}

.flp-hero__brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

.flp-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.flp-hero__accent {
  color: var(--blue);
  position: relative;
}

.flp-hero__sub {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 12px;
}

.flp-hero__note {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-mid);
  margin-bottom: 28px;
}

.flp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flp-hero__board {
  padding: 32px 28px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.flp-hero__board::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--navy), var(--sky), var(--green));
}

.flp-hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.flp-hero__logo-wrap .logo-img {
  max-width: 200px;
}

.flp-hero__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.flp-hero__flow-node {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 68px;
  padding: 10px;
  border-radius: 14px;
  text-align: center;
}

.flp-hero__flow-node--hq { background: var(--navy); color: var(--white); }
.flp-hero__flow-node--sys { background: var(--sky-pale); border: 2px solid var(--sky); color: var(--navy); }
.flp-hero__flow-node--partner { background: var(--green-pale); border: 2px solid var(--green); color: var(--navy); }
.flp-hero__flow-node--work { background: var(--yellow-pale); border: 2px solid var(--yellow); color: var(--navy); }

.flp-hero__flow-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.flp-hero__flow-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: var(--sky);
  position: relative;
}

.flp-hero__flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--sky);
}

.flp-hero__flow-arrow--green { background: var(--green); }
.flp-hero__flow-arrow--green::after { border-left-color: var(--green); }

.flp-hero__hq-zone {
  padding: 16px 18px;
  background: var(--off-white);
  border-radius: 12px;
  border: 1px dashed var(--gray-200);
  margin-bottom: 16px;
}

.flp-hero__hq-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.flp-hero__hq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flp-hero__hq-tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.flp-hero__partner-role {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-mid);
  padding: 10px;
  background: var(--green-pale);
  border-radius: 10px;
}

/* ---- Sections shared ---- */
.flp-section {
  padding: var(--flp-section-pad) 0;
}

.flp-section--alt {
  background: var(--off-white);
}

.flp-section__head {
  margin-bottom: 40px;
}

.flp-section__head--center {
  text-align: center;
}

.flp-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 12px;
}

.flp-section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.flp-section__lead {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 640px;
}

/* ---- Market ---- */
.flp-market__body {
  max-width: 760px;
}

.flp-market__lead,
.flp-market__text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 24px;
}

.flp-market__pains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.flp-market__pains li {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky-pale);
  border: 1px solid rgba(94, 179, 232, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.flp-market__points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px;
  background: var(--white);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius-blob) var(--radius-blob) 0;
  box-shadow: var(--shadow-sm);
}

.flp-section--alt .flp-market__points {
  background: var(--white);
}

.flp-market__points li {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

.flp-market__points strong {
  color: var(--navy);
  font-weight: 700;
}

/* ---- Versus ---- */
.flp-versus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.flp-versus__col {
  border-radius: var(--radius-blob);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
}

.flp-versus__col--solo {
  background: var(--white);
}

.flp-versus__col--fc {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
}

.flp-versus__label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}

.flp-versus__col--fc .flp-versus__label {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.flp-versus__stack {
  counter-reset: solo;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flp-versus__stack li {
  counter-increment: solo;
  position: relative;
  padding: 11px 0 11px 28px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.flp-versus__stack li::before {
  content: counter(solo);
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  width: 18px;
  text-align: center;
}

.flp-versus__solo-note {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-align: center;
}

.flp-versus__hq-block,
.flp-versus__partner-block {
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.flp-versus__hq-block {
  background: rgba(255, 255, 255, 0.1);
}

.flp-versus__partner-block {
  background: rgba(126, 200, 160, 0.2);
  border: 1px solid rgba(126, 200, 160, 0.4);
}

.flp-versus__block-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.flp-versus__partner-block .flp-versus__block-tag {
  background: var(--green);
  color: var(--navy);
}

.flp-versus__hq-block ul,
.flp-versus__partner-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flp-versus__hq-block li,
.flp-versus__partner-block li {
  font-size: 14px;
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.flp-versus__hq-block li::before,
.flp-versus__partner-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

.flp-versus__partner-block li::before {
  background: var(--green);
}

.flp-versus__handoff {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
  padding: 8px 0;
  letter-spacing: 0.04em;
}

/* ---- Ecosystem ---- */
.flp-ecosystem__map {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.flp-ecosystem__cluster {
  padding: 28px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
}

.flp-ecosystem__cluster--channels {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: var(--navy);
  color: var(--white);
}

.flp-ecosystem__cluster-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.flp-ecosystem__cluster--channels .flp-ecosystem__cluster-title {
  color: rgba(255, 255, 255, 0.7);
}

.flp-ecosystem__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.flp-ecosystem__chain--sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
}

.flp-ecosystem__chain span:not(.flp-ecosystem__chain-dot) {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 14px;
  border-radius: 8px;
}

.flp-ecosystem__chain-dot {
  width: 16px;
  height: 2px;
  background: var(--sky);
  flex-shrink: 0;
}

.flp-ecosystem__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flp-ecosystem__channel {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.flp-ecosystem__channel--yahoo {
  background: rgba(255, 0, 51, 0.15);
  border-color: rgba(255, 0, 51, 0.35);
}

.flp-ecosystem__sys {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.85;
  padding: 20px 24px;
  background: var(--sky-pale);
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

/* ---- Journey ---- */
.flp-journey__path {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  padding-left: 48px;
}

.flp-journey__path::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 42%, var(--green) 42%, var(--green) 100%);
  border-radius: 2px;
}

.flp-journey__step {
  position: relative;
  padding: 0 0 32px 24px;
}

.flp-journey__step:last-child {
  padding-bottom: 0;
}

.flp-journey__step::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--sky);
  background: var(--sky);
}

.flp-journey__step--partner::before {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.flp-journey__step--customer::before {
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow);
}

.flp-journey__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.flp-journey__step p {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
}

/* ---- Different ---- */
.flp-different__text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 16px;
  max-width: 720px;
}

.flp-different__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.flp-different__tags li {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}

/* ---- Timing ---- */
.flp-timing__wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.flp-timing__text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
  margin-top: 16px;
}

.flp-timing__merits {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  overflow: hidden;
  background: var(--white);
}

.flp-timing__merits li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-200);
}

.flp-timing__merits li:last-child {
  border-bottom: none;
}

.flp-timing__merit-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

/* ---- Fit ---- */
.flp-fit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.flp-fit__col {
  padding: 32px 28px;
  border-radius: var(--radius-blob);
  border: 1px solid var(--gray-200);
}

.flp-fit__col--ok {
  background: var(--green-pale);
  border-color: rgba(126, 200, 160, 0.45);
}

.flp-fit__col--ng {
  background: var(--white);
}

.flp-fit__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.flp-fit__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flp-fit__col li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
}

.flp-fit__col--ok li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.flp-fit__col--ng li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---- Revenue ---- */
.flp-revenue__formula {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.flp-revenue__formula-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 32px 24px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-md);
}

.flp-revenue__item {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky-pale);
  padding: 12px 18px;
  border-radius: 10px;
}

.flp-revenue__op,
.flp-revenue__eq {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-500);
}

.flp-revenue__result {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 12px 20px;
  border-radius: 10px;
}

.flp-revenue__vars {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 14px;
}

.flp-revenue__note {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.85;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

/* ---- Onboard ---- */
.flp-onboard__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  counter-reset: onboard;
}

.flp-onboard__steps li {
  flex: 1 1 120px;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.flp-onboard__steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 36px;
  width: 16px;
  height: 2px;
  background: var(--sky);
}

.flp-onboard__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* ---- Final CTA ---- */
.flp-cta {
  padding: var(--flp-section-pad) 0;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.flp-cta__inner {
  text-align: center;
  max-width: 640px;
}

.flp-cta__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.flp-cta__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  margin-bottom: 32px;
}

.flp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.flp-cta__btn.btn--primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.flp-cta__btn.btn--primary:hover {
  background: var(--sky-pale);
}

.flp-cta__btn--light.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.flp-cta__btn--light.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* ---- Hero loop & stats ---- */
.flp-hero__loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 20px;
}

.flp-hero__loop-hq {
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
}

.flp-hero__loop-partner {
  padding: 16px;
  background: var(--green-pale);
  border: 2px solid var(--green);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.flp-hero__loop-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.85;
}

.flp-hero__loop-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flp-hero__loop-items li {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

.flp-hero__loop-partner p {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.flp-hero__loop-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flp-hero__loop-arrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--sky);
}

.flp-hero__loop-app {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  padding: 8px 4px;
  background: var(--sky-pale);
  border-radius: 8px;
}

.flp-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.flp-hero__stats li {
  text-align: center;
}

.flp-hero__stats strong {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.flp-hero__stats span {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
}

/* ---- Strength ---- */
.flp-strength__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.flp-strength__group {
  padding: 22px 20px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  border-top: 3px solid var(--sky);
}

.flp-strength__group:nth-child(2) { border-top-color: var(--blue); }
.flp-strength__group:nth-child(3) { border-top-color: var(--green); }
.flp-strength__group:nth-child(4) { border-top-color: var(--navy); }

.flp-strength__group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 14px;
}

.flp-strength__group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flp-strength__group li {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}

.flp-strength__group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
}

.flp-strength__summary {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.85;
  padding: 20px 24px;
  background: var(--sky-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

/* ---- System flow (8 steps) ---- */
.flp-sysflow__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.flp-sysflow__step {
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  position: relative;
}

.flp-sysflow__step--hq {
  border-top: 3px solid var(--sky);
}

.flp-sysflow__step--partner {
  border-top: 3px solid var(--green);
  background: var(--green-pale);
}

.flp-sysflow__step--customer {
  border-top: 3px solid var(--yellow);
}

.flp-sysflow__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.flp-sysflow__step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.flp-sysflow__step p {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.6;
}

.flp-sysflow__note {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.85;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.flp-section--alt .flp-sysflow__note {
  background: var(--white);
}

/* ---- Channels ---- */
.flp-channels__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.flp-channels__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.flp-section--alt .flp-channels__item {
  background: var(--white);
}

.flp-channels__item:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
}

.flp-channels__item--yahoo {
  border-left: 4px solid var(--red-yahoo);
}

.flp-channels__item--sponsor {
  border-left: 4px solid var(--navy);
}

.flp-channels__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.flp-channels__desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.55;
}

/* ---- Sponsor ad cycle ---- */
.flp-sponsor {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.flp-sponsor__title {
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 14px;
}

.flp-sponsor__lead {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 10px;
  max-width: 720px;
}

.flp-sponsor__tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 28px;
  padding: 10px 16px;
  background: var(--sky-pale);
  border-radius: var(--radius-pill);
  display: inline-block;
}

.flp-sponsor-cycle {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-sm);
}

.flp-section--alt .flp-sponsor-cycle {
  background: var(--white);
}

.flp-sponsor-cycle__diagram {
  position: relative;
  padding-left: 28px;
}

.flp-sponsor-cycle__return {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flp-sponsor-cycle__return-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, var(--sky), var(--green), var(--sky));
  border-radius: 2px;
}

.flp-sponsor-cycle__return-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  margin-top: 8px;
  white-space: nowrap;
}

.flp-sponsor-cycle__row--forward {
  margin-bottom: 8px;
}

.flp-sponsor-cycle__turn {
  text-align: right;
  padding-right: 12%;
  margin: 4px 0 8px;
}

.flp-sponsor-cycle__turn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-pale);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.flp-sponsor-cycle__track {
  display: flex;
  gap: 0;
  list-style: none;
}

.flp-sponsor-cycle__track--reverse {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.flp-sponsor-cycle__step {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  position: relative;
  margin-right: 20px;
}

.flp-sponsor-cycle__track--reverse .flp-sponsor-cycle__step {
  margin-right: 0;
  margin-left: 20px;
}

.flp-sponsor-cycle__step:last-child {
  margin-right: 0;
  margin-left: 0;
}

.flp-sponsor-cycle__step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--sky);
  z-index: 1;
}

.flp-sponsor-cycle__track--reverse .flp-sponsor-cycle__step::after {
  content: '←';
  right: auto;
  left: -18px;
}

.flp-sponsor-cycle__step:last-child::after {
  display: none;
}

.flp-sponsor-cycle__step--sponsor {
  border-top: 3px solid var(--navy);
}

.flp-sponsor-cycle__step--hq {
  border-top: 3px solid var(--sky);
}

.flp-sponsor-cycle__step--user {
  border-top: 3px solid var(--yellow);
}

.flp-sponsor-cycle__step--partner {
  background: var(--green-pale);
  border: 2px solid var(--green);
  border-top: 3px solid var(--green);
}

.flp-sponsor-cycle__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flp-sponsor-cycle__step--partner .flp-sponsor-cycle__num {
  background: var(--green);
  color: var(--navy);
}

.flp-sponsor-cycle__role {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.flp-sponsor-cycle__heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 5px;
}

.flp-sponsor-cycle__step p {
  font-size: 11px;
  color: var(--gray-700);
  line-height: 1.5;
}

.flp-sponsor-cycle__chain {
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  background: var(--off-white);
  border: 1px dashed var(--sky);
  border-radius: 10px;
  line-height: 1.5;
}

/* ---- Day work ---- */
.flp-daywork__timeline {
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  padding-left: 100px;
}

.flp-daywork__timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--sky), var(--green));
  border-radius: 2px;
}

.flp-daywork__timeline li {
  position: relative;
  padding: 0 0 28px 24px;
}

.flp-daywork__timeline li:last-child {
  padding-bottom: 0;
}

.flp-daywork__timeline li::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
}

.flp-daywork__time {
  position: absolute;
  left: -100px;
  top: 0;
  width: 72px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-align: right;
}

.flp-daywork__timeline p {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
}

/* ---- Cost & revenue ---- */
.flp-cost__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.flp-cost__highlights li {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-blob);
}

.flp-cost__highlight-value {
  display: block;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.flp-cost__highlight-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.flp-cost__tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.flp-cost__table-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-blob);
  padding: 28px 24px;
}

.flp-cost__table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.flp-cost__table-lead {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.flp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

.flp-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 13px;
}

.flp-table th,
.flp-table td {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.flp-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
}

.flp-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

.flp-table__price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.flp-table__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 2px;
}

.flp-cost__table-note,
.flp-cost__formula {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
}

.flp-cost__formula {
  font-weight: 600;
  color: var(--navy-mid);
  text-align: center;
  padding: 10px;
  background: var(--sky-pale);
  border-radius: 8px;
}

.flp-cost__disclaimer {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.85;
  padding: 20px 24px;
  background: var(--yellow-pale);
  border-radius: 12px;
  border: 1px solid var(--yellow);
  max-width: 800px;
  margin-inline: auto;
}

.flp-onboard__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---- LP Responsive ---- */
@media (max-width: 960px) {
  .flp-hero__grid {
    grid-template-columns: 1fr;
  }

  .flp-hero__copy {
    text-align: center;
  }

  .flp-hero__cta {
    justify-content: center;
  }

  .flp-versus__grid,
  .flp-timing__wrap,
  .flp-fit__grid {
    grid-template-columns: 1fr;
  }

  .flp-onboard__steps li:not(:last-child)::after {
    display: none;
  }

  .flp-onboard__steps {
    gap: 8px;
  }

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

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

  .flp-channels__list {
    grid-template-columns: 1fr;
  }

  .flp-sponsor-cycle__track,
  .flp-sponsor-cycle__track--reverse {
    flex-direction: column;
  }

  .flp-sponsor-cycle__track--reverse {
    flex-direction: column-reverse;
  }

  .flp-sponsor-cycle__step,
  .flp-sponsor-cycle__track--reverse .flp-sponsor-cycle__step {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .flp-sponsor-cycle__step::after,
  .flp-sponsor-cycle__track--reverse .flp-sponsor-cycle__step::after {
    content: '↓' !important;
    right: auto !important;
    left: 50% !important;
    top: auto !important;
    bottom: -18px !important;
    transform: translateX(-50%) !important;
  }

  .flp-sponsor-cycle__step:last-child::after {
    display: none;
  }

  .flp-sponsor-cycle__turn {
    text-align: center;
    padding-right: 0;
  }

  .flp-sponsor-cycle__diagram {
    padding-left: 0;
  }

  .flp-sponsor-cycle__return {
    position: static;
    flex-direction: row;
    width: auto;
    margin-top: 12px;
    gap: 8px;
  }

  .flp-sponsor-cycle__return-line {
    flex: 1;
    height: 3px;
    width: auto;
  }

  .flp-sponsor-cycle__return-label {
    writing-mode: horizontal-tb;
    margin-top: 0;
  }

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

  .flp-cost__tables {
    grid-template-columns: 1fr;
  }

  .flp-hero__loop {
    grid-template-columns: 1fr;
  }

  .flp-hero__loop-bridge {
    flex-direction: row;
    padding: 8px 0;
  }

  .flp-hero__loop-app {
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 600px) {
  .flp-hero__flow-node {
    min-width: 56px;
    min-height: 56px;
  }

  .flp-revenue__formula-inner {
    flex-direction: column;
  }

  .flp-onboard__steps li {
    flex: 1 1 45%;
    max-width: none;
  }

  .flp-strength__grid,
  .flp-sysflow__track {
    grid-template-columns: 1fr;
  }

  .flp-cost__highlights {
    grid-template-columns: 1fr;
  }

  .flp-hero__stats {
    grid-template-columns: 1fr;
  }

  .flp-daywork__timeline {
    padding-left: 0;
  }

  .flp-daywork__timeline::before {
    left: 6px;
  }

  .flp-daywork__time {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    margin-bottom: 4px;
  }

  .flp-daywork__timeline li {
    padding-left: 28px;
  }

  .flp-daywork__timeline li::before {
    left: 0;
  }

  .flp-xp__layout {
    grid-template-columns: 1fr;
  }

  .flp-xp__rail {
    position: static;
    margin-bottom: 24px;
  }

  .flp-xp__rail-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .flp-xp__rail-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .flp-xp__rail-fill {
    display: none;
  }
}

/* ============================================================
   Franchise LP — experiential flow (flp-xp)
   ============================================================ */

.flp-hero__scroll {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flp-xp {
  padding: clamp(72px, 10vw, 100px) 0;
  background: var(--off-white);
}

.flp-xp__intro {
  margin-bottom: 48px;
  max-width: 640px;
}

.flp-xp__title {
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 14px;
}

.flp-xp__sub {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.flp-xp__flow-title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--blue);
  padding-left: 16px;
  border-left: 4px solid var(--sky);
}

.flp-xp__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.flp-xp__rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.flp-xp__rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-left: 4px;
}

.flp-xp__rail-list::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--gray-200);
  border-radius: 1px;
}

.flp-xp__rail-fill {
  position: absolute;
  left: 15px;
  top: 12px;
  width: 2px;
  height: 0;
  background: var(--sky);
  border-radius: 1px;
  transition: height 0.35s var(--ease);
  z-index: 1;
}

.flp-xp__rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  z-index: 2;
}

.flp-xp__rail-item span:first-child {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.flp-xp__rail-item.is-done span:first-child {
  background: var(--sky-pale);
  border-color: var(--sky);
  color: var(--blue);
}

.flp-xp__rail-item.is-active {
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.flp-xp__rail-item.is-active span:first-child {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.flp-xp__scenes {
  display: flex;
  flex-direction: column;
  gap: 48vh;
  padding-bottom: 20vh;
}

.flp-xp__scene {
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.flp-xp__scene.is-active {
  opacity: 1;
  transform: translateY(0);
}

.flp-xp__scene-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 16px;
}

/* ---- Mock UI components ---- */
.flp-mock {
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.flp-mock__chrome {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
}

.flp-mock__panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flp-mock__field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.flp-mock__input {
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  border: 2px solid var(--sky);
  border-radius: 8px;
  letter-spacing: 0.06em;
}

.flp-mock__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--off-white);
  color: var(--gray-700);
  align-self: flex-start;
}

.flp-mock__badge--ok {
  background: var(--green-pale);
  color: var(--navy);
}

.flp-mock__badge--soft {
  background: var(--sky-pale);
  color: var(--blue);
}

.flp-mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flp-mock__chips span {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.flp-mock__chips span.is-on {
  background: var(--sky-pale);
  border-color: var(--sky);
  color: var(--navy);
}

.flp-mock__result {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.flp-mock__slots {
  display: flex;
  gap: 10px;
}

.flp-mock__slots span {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.flp-mock__slots span.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 45, 74, 0.2);
}

.flp-mock--dash {
  max-width: 480px;
  padding: 0;
}

.flp-mock__dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.flp-mock__pill {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
}

.flp-mock__dash-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.flp-mock__dash-row.is-highlight {
  background: var(--sky-pale);
  color: var(--navy);
}

.flp-mock__dash-status {
  font-size: 10px;
  padding: 4px 8px;
  background: var(--green-pale);
  color: var(--navy);
  border-radius: var(--radius-pill);
}

.flp-mock--app {
  background: transparent;
  border: none;
  box-shadow: none;
}

.flp-mock__phone {
  width: 240px;
  padding: 12px;
  background: var(--navy);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.flp-mock__phone-notch {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin: 0 auto 12px;
}

.flp-mock__phone-screen {
  background: var(--off-white);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flp-mock__app-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
}

.flp-mock__app-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 12px;
}

.flp-mock__app-card strong {
  font-size: 16px;
  color: var(--navy);
}

.flp-mock__app-card span {
  font-size: 12px;
  color: var(--gray-700);
}

.flp-mock__app-time {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
}

.flp-mock__app-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  align-self: stretch;
}

.flp-mock__app-btn--done {
  background: var(--green);
  color: var(--navy);
}

.flp-mock--field {
  max-width: 320px;
  padding: 24px;
}

.flp-mock__field-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}

.flp-mock__field-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: flp-pulse 1.5s ease infinite;
}

@keyframes flp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.flp-mock__field-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flp-mock__field-loc {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.flp-mock__field-work {
  font-size: 13px;
  color: var(--gray-700);
}

.flp-mock--done {
  max-width: 280px;
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flp-mock__done-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.flp-mock__done-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.flp-mock__done-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--gray-700);
}

.flp-mock__done-row strong {
  font-size: 20px;
  color: var(--navy);
}

.flp-mock__stars {
  font-size: 18px;
  color: var(--yellow);
  letter-spacing: 4px;
}

.flp-mock__after-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 960px) {
  .flp-xp__layout {
    grid-template-columns: 1fr;
  }

  .flp-xp__rail {
    position: static;
  }

  .flp-xp__scenes {
    gap: 32px;
    padding-bottom: 0;
  }

  .flp-xp__scene {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Franchise Experience LP (page-franchise-xp)
   ============================================================ */

.page-franchise-xp {
  background: var(--off-white);
}

.page-franchise-xp .header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

/* Hero */
.fx-hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(94, 179, 232, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(245, 230, 163, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  overflow: hidden;
}

.fx-hero__inner {
  text-align: center;
  max-width: 720px;
}

.fx-hero__brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.fx-hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 20px;
}

.fx-hero__accent {
  background: linear-gradient(120deg, var(--blue), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-hero__sub {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.fx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.fx-hero__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-md);
  max-width: 420px;
  margin: 0 auto;
}

.fx-hero__lane {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.fx-hero__lane--c { background: var(--sky-pale); color: var(--navy-mid); }
.fx-hero__lane--h { background: var(--navy); color: var(--white); }
.fx-hero__lane--p { background: var(--green-pale); color: #2a7a52; }

.fx-hero__pulse {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--green));
  position: relative;
  animation: fx-pulse-line 1.6s ease-in-out infinite;
}

@keyframes fx-pulse-line {
  0%, 100% { opacity: 0.4; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Demo section */
.fx-demo {
  padding: 80px 0 100px;
  background: var(--white);
}

.fx-demo__head {
  text-align: center;
  margin-bottom: 40px;
}

.fx-demo__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.fx-demo__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fx-demo__progress {
  width: min(480px, 100%);
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.fx-demo__progress-bar {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease);
}

.fx-demo__steps {
  display: flex;
  gap: 6px;
  list-style: none;
}

.fx-demo__steps button {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.fx-demo__steps button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}

.fx-demo__steps button:hover:not(.is-active) {
  border-color: var(--sky);
  color: var(--navy);
}

.fx-demo__play {
  margin-top: 4px;
  padding: 6px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--off-white);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
}

.fx-demo__stage {
  position: relative;
  padding: 24px;
  background: linear-gradient(145deg, #f0f6fc 0%, #e8f4fa 50%, #f5f9fd 100%);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.fx-demo__lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.fx-lane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-lane__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gray-500);
}

.fx-lane--customer .fx-lane__tag { color: var(--navy-mid); }
.fx-lane--hq .fx-lane__tag { color: var(--navy); }
.fx-lane--partner .fx-lane__tag { color: #2a7a52; }

/* UI shells */
.fx-ui {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 45, 74, 0.15);
  min-height: 280px;
  position: relative;
}

.fx-ui--phone {
  background: var(--white);
  border: 3px solid var(--gray-200);
}

.fx-ui--desk {
  background: #1a2e42;
  border: 3px solid #0f2d4a;
}

.fx-ui--app {
  background: #111;
  border: 3px solid #333;
  border-radius: 24px;
  padding-top: 8px;
}

.fx-ui__notch {
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: var(--radius-pill);
  margin: 0 auto 8px;
}

.fx-ui__bar {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: var(--sky-pale);
  color: var(--navy);
  border-bottom: 1px solid var(--gray-200);
}

.fx-ui__bar--dark {
  background: #0f2d4a;
  color: var(--sky-pale);
  border-bottom-color: #2d5f8f;
}

.fx-ui__body {
  padding: 16px;
  position: relative;
  min-height: 220px;
}

.fx-ui__body--dark {
  background: #243548;
}

/* Panes — step visibility */
.fx-pane {
  position: absolute;
  inset: 16px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.fx-demo__stage[data-step="1"] .fx-pane[data-step="1"],
.fx-demo__stage[data-step="2"] .fx-pane[data-step="2"],
.fx-demo__stage[data-step="3"] .fx-pane[data-step="3"],
.fx-demo__stage[data-step="4"] .fx-pane[data-step="4"],
.fx-demo__stage[data-step="5"] .fx-pane[data-step="5"],
.fx-demo__stage[data-step="6"] .fx-pane[data-step="6"],
.fx-demo__stage[data-step="7"] .fx-pane[data-step="7"],
.fx-demo__stage[data-step="8"] .fx-pane[data-step="8"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fx-pane--idle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-pane__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-ui__body--dark .fx-pane__label { color: rgba(255,255,255,0.5); }

.fx-input {
  padding: 12px 14px;
  background: var(--gray-100);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.fx-input--typing::after {
  content: '|';
  animation: fx-blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes fx-blink {
  50% { opacity: 0; }
}

.fx-loader {
  display: block;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.fx-dots::after {
  content: '';
  animation: fx-dots 1.2s steps(4) infinite;
}

@keyframes fx-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

.fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fx-chips span {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.fx-chips span.on {
  background: var(--sky-pale);
  border-color: var(--blue);
  color: var(--navy);
  animation: fx-chip-pop 0.4s var(--ease);
}

@keyframes fx-chip-pop {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.fx-cal {
  text-align: center;
}

.fx-cal__day {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fx-slots {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.fx-slots span {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-700);
}

.fx-slots span.pick {
  background: var(--blue);
  color: var(--white);
  animation: fx-slot-pick 0.5s var(--ease);
}

@keyframes fx-slot-pick {
  0% { box-shadow: 0 0 0 0 rgba(61, 143, 212, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(61, 143, 212, 0); }
  100% { box-shadow: none; }
}

.fx-slots--desk span {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.fx-slots--desk span.pick {
  background: var(--green);
  color: var(--white);
}

.fx-confirm {
  text-align: center;
  padding: 24px 0;
}

.fx-confirm__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 28px;
  animation: fx-pop-in 0.5s var(--ease);
}

@keyframes fx-pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.fx-confirm strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}

.fx-confirm span:last-child {
  font-size: 13px;
  color: var(--gray-500);
}

.fx-idle {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

.fx-ui__body--dark .fx-idle { color: rgba(255,255,255,0.4); }

.fx-map-pin {
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13px;
  color: var(--sky-pale);
  animation: fx-slide-in 0.4s var(--ease);
}

@keyframes fx-slide-in {
  from { transform: translateX(-8px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fx-list {
  list-style: none;
  font-size: 13px;
  color: var(--sky-pale);
}

.fx-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fx-list li::before {
  content: '▸ ';
  color: var(--green);
}

.fx-card-new {
  padding: 14px;
  background: rgba(126, 200, 160, 0.15);
  border: 2px solid var(--green);
  border-radius: 12px;
  animation: fx-card-flash 0.6s var(--ease);
}

@keyframes fx-card-flash {
  0% { box-shadow: 0 0 0 0 rgba(126, 200, 160, 0.6); transform: scale(0.95); }
  50% { box-shadow: 0 0 20px rgba(126, 200, 160, 0.4); }
  100% { box-shadow: none; transform: scale(1); }
}

.fx-card-new span:first-child {
  display: inline-block;
  padding: 2px 8px;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.fx-card-new strong {
  display: block;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
}

.fx-card-new span:last-child {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.fx-sync {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  animation: fx-sync-pulse 1s ease-in-out infinite;
}

@keyframes fx-sync-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.fx-status {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: var(--sky-pale);
}

.fx-status--live {
  background: var(--green);
  color: var(--white);
  animation: fx-live 1.2s ease-in-out infinite;
}

@keyframes fx-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 200, 160, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(126, 200, 160, 0); }
}

.fx-revenue {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  animation: fx-revenue-up 0.5s var(--ease);
}

@keyframes fx-revenue-up {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fx-notify {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
  animation: fx-notify-shake 0.4s var(--ease);
}

@keyframes fx-notify-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.fx-job {
  background: #1e1e1e;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.fx-job strong {
  font-size: 15px;
  color: var(--white);
}

.fx-note {
  font-size: 11px;
  color: var(--yellow);
  margin-top: 4px;
}

.fx-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px;
  text-align: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.fx-btn--green { background: var(--green); }

.fx-flow-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 40px;
}

.fx-flow-btns span {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: #333;
  color: rgba(255,255,255,0.4);
}

.fx-flow-btns span.done {
  background: #2a5a3a;
  color: var(--green);
}

.fx-flow-btns span.active {
  background: var(--green);
  color: var(--white);
  animation: fx-active-pulse 1s ease-in-out infinite;
}

@keyframes fx-active-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fx-done-app {
  text-align: center;
  padding: 20px 0;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.fx-done-app strong {
  display: block;
  font-size: 32px;
  color: var(--white);
  margin: 8px 0 12px;
}

.fx-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--gray-700);
}

.fx-stars {
  font-size: 22px;
  color: #f5c518;
  letter-spacing: 3px;
}

.fx-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}

/* Beams between lanes */
.fx-demo__beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fx-beam {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  opacity: 0;
}

.fx-demo__stage[data-step="4"] .fx-beam--1,
.fx-demo__stage[data-step="5"] .fx-beam--1,
.fx-demo__stage[data-step="6"] .fx-beam--2 {
  opacity: 1;
  animation: fx-beam-travel 1.2s ease-in-out infinite;
}

.fx-beam--1 {
  top: 45%;
  left: 28%;
  width: 22%;
}

.fx-beam--2 {
  top: 55%;
  left: 50%;
  width: 22%;
}

@keyframes fx-beam-travel {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); transform-origin: right; }
}

/* Dual timeline */
.fx-dual {
  padding: 100px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 143, 212, 0.08) 0%, transparent 50%),
    var(--off-white);
}

.fx-dual__title {
  text-align: center;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 48px;
}

.fx-dual__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

.fx-dual__col h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 3px solid;
}

.fx-dual__col--hq h3 {
  color: var(--navy);
  border-color: var(--navy);
  text-align: right;
}

.fx-dual__col--partner h3 {
  color: #2a7a52;
  border-color: var(--green);
}

.fx-dual__timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fx-dual__timeline li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--gray-200);
  animation: fx-timeline-in 0.6s var(--ease) both;
}

.fx-dual__col--hq .fx-dual__timeline li {
  flex-direction: row-reverse;
  text-align: right;
}

.fx-dual__timeline li:nth-child(1) { animation-delay: 0.1s; }
.fx-dual__timeline li:nth-child(2) { animation-delay: 0.2s; }
.fx-dual__timeline li:nth-child(3) { animation-delay: 0.3s; }
.fx-dual__timeline li:nth-child(4) { animation-delay: 0.4s; }
.fx-dual__timeline li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fx-timeline-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fx-dual__timeline time {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  min-width: 72px;
}

.fx-dual__timeline p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-700);
}

.fx-dual__sync {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
}

.fx-dual__line {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--gray-200), var(--blue), var(--gray-200));
}

.fx-dual__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 143, 212, 0.2);
  animation: fx-node-pulse 2s ease-in-out infinite;
}

.fx-dual__node:nth-child(even) {
  animation-delay: 0.5s;
}

@keyframes fx-node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Mesh / connections */
.fx-mesh {
  padding: 100px 0;
  background: var(--white);
}

.fx-mesh__title {
  text-align: center;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 56px;
}

.fx-mesh__map {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 320px;
}

.fx-mesh__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fx-mesh__path {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  animation: fx-path-flow 20s linear infinite;
}

.fx-mesh__path--2 {
  stroke: var(--green);
  animation-duration: 25s;
  animation-direction: reverse;
}

@keyframes fx-path-flow {
  to { stroke-dashoffset: -200; }
}

.fx-mesh__nodes {
  position: relative;
  list-style: none;
  width: 100%;
  height: 320px;
}

.fx-mesh__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: fx-node-float 4s ease-in-out infinite;
}

.fx-mesh__node:nth-child(odd) { animation-delay: -1s; }
.fx-mesh__node:nth-child(even) { animation-delay: -2s; }

.fx-mesh__node:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  z-index: 2;
}

.fx-mesh__node--core {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-size: 13px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(15, 45, 74, 0.25);
}

@keyframes fx-node-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-4px); }
}

/* CTA */
.fx-cta {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.fx-cta__inner {
  text-align: center;
}

.fx-cta__title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.fx-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.fx-cta__btn--light {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.fx-cta__btn--light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Responsive */
@media (max-width: 960px) {
  .fx-demo__lanes {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fx-demo__beams { display: none; }

  .fx-ui { min-height: 240px; }

  .fx-dual__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fx-dual__sync { display: none; }

  .fx-dual__col--hq h3,
  .fx-dual__col--hq .fx-dual__timeline li {
    flex-direction: row;
    text-align: left;
  }

  .fx-mesh__map {
    min-height: 480px;
  }

  .fx-mesh__nodes {
    height: 480px;
  }

  .fx-mesh__node {
    font-size: 11px;
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  .fx-hero { padding-top: calc(var(--header-h) + 32px); }

  .fx-demo__steps button {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .fx-mesh__svg { opacity: 0.4; }
}

/* Interactive live demo */
.fx-demo--live .fx-demo__hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-top: -8px;
  transition: color 0.3s;
}

.fx-live {
  position: relative;
}

.fx-live__phone {
  position: relative;
}

.fx-live__cust,
.fx-live__hq,
.fx-live__staff {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

/* Customer panels */
.fx-live__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fx-live-in 0.4s var(--ease);
}

.fx-live__panel[hidden] {
  display: none !important;
}

@keyframes fx-live-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.fx-live__step {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}

.fx-live__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.fx-live__input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--navy);
  transition: border-color 0.2s;
}

.fx-live__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 143, 212, 0.15);
}

.fx-live__err {
  font-size: 11px;
  color: #e04545;
  font-weight: 600;
}

.fx-live__loader {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  animation: fx-live-pulse 1s ease-in-out infinite;
}

@keyframes fx-live-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.fx-live__addr {
  padding: 12px 14px;
  background: var(--gray-100);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.fx-live__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--green-pale);
  color: #2a7a52;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.fx-live__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fx-live__chip {
  padding: 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.fx-live__chip:hover {
  border-color: var(--sky);
}

.fx-live__chip.is-on {
  border-color: var(--blue);
  background: var(--sky-pale);
  color: var(--navy);
  transform: scale(1.02);
}

.fx-live__dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-live__date {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.fx-live__date:hover {
  border-color: var(--sky);
}

.fx-live__date.is-on {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61, 143, 212, 0.35);
}

.fx-live__btn {
  margin-top: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.fx-live__btn:hover:not(:disabled) {
  background: var(--gray-200);
}

.fx-live__btn--primary {
  background: var(--blue);
  color: var(--white);
}

.fx-live__btn--primary:hover:not(:disabled) {
  background: var(--navy-mid);
}

.fx-live__btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fx-live__btn--approve {
  width: 100%;
  background: var(--green);
  color: var(--white);
  margin-top: 12px;
  animation: fx-live-approve-glow 2s ease-in-out infinite;
}

@keyframes fx-live-approve-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 200, 160, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(126, 200, 160, 0); }
}

.fx-live__btn--approve:hover {
  background: #5ab882;
}

.fx-live__panel--wait,
.fx-live__panel--done {
  align-items: center;
  text-align: center;
  padding: 16px 0;
}

.fx-live__wait-icon {
  font-size: 36px;
  animation: fx-live-spin 2s linear infinite;
}

@keyframes fx-live-spin {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.fx-live__done-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  animation: fx-pop-in 0.5s var(--ease);
}

.fx-live__done-icon--sm {
  width: 40px;
  height: 40px;
  font-size: 20px;
  margin: 0 auto 8px;
}

.fx-live__panel--wait strong,
.fx-live__panel--done strong {
  font-size: 16px;
  color: var(--navy);
}

.fx-live__panel--wait p,
.fx-live__panel--done p {
  font-size: 12px;
  color: var(--gray-500);
}

.fx-live__summary {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: var(--gray-100);
  border-radius: 12px;
  font-size: 12px;
  text-align: left;
}

.fx-live__summary dt {
  font-weight: 700;
  color: var(--gray-500);
  margin-top: 6px;
}

.fx-live__summary dt:first-child { margin-top: 0; }

.fx-live__summary dd {
  color: var(--navy);
  font-weight: 600;
}

/* SMS toast */
.fx-live__sms {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.fx-live__sms.is-show {
  opacity: 1;
  transform: translateY(0);
}

.fx-live__sms-bubble {
  background: rgba(30, 30, 30, 0.92);
  color: var(--white);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: fx-live-sms-slide 0.5s var(--ease);
}

@keyframes fx-live-sms-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fx-live__sms-from {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 4px;
}

.fx-live__sms-bubble p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

/* HQ monitor */
.fx-live__hq-idle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.fx-live__hq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: fx-live-dot 2s ease-in-out infinite;
}

@keyframes fx-live-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.fx-live__hq-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 230, 163, 0.15);
  border: 2px solid var(--yellow);
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 13px;
}

.fx-live__hq-alert.is-shake {
  animation: fx-live-shake 0.5s var(--ease);
}

@keyframes fx-live-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.fx-live__hq-alert-icon {
  font-size: 20px;
}

.fx-live__hq-board {
  flex: 1;
}

.fx-live__hq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-live__hq-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: all 0.5s var(--ease);
}

.fx-live__hq-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fx-live__hq-card.is-new {
  border-color: var(--green);
  background: rgba(126, 200, 160, 0.12);
  box-shadow: 0 0 20px rgba(126, 200, 160, 0.2);
}

.fx-live__hq-card.is-updated {
  animation: fx-live-card-flash 0.6s var(--ease);
}

@keyframes fx-live-card-flash {
  0% { box-shadow: 0 0 0 0 rgba(126, 200, 160, 0.6); }
  100% { box-shadow: 0 0 20px rgba(126, 200, 160, 0.2); }
}

.fx-live__hq-card--ghost {
  opacity: 0.4;
  text-align: center;
  transform: none;
}

.fx-live__hq-card strong {
  font-size: 14px;
  color: var(--white);
}

.fx-live__hq-card-tag {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

.fx-live__hq-status {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
}

.fx-live__hq-status--wait {
  background: rgba(245, 230, 163, 0.2);
  color: var(--yellow);
}

.fx-live__hq-status--ok {
  background: var(--green);
  color: var(--white);
}

/* Staff app */
.fx-live__staff-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  text-align: center;
}

.fx-live__staff-idle span:first-child {
  font-size: 32px;
  opacity: 0.5;
}

.fx-live__staff-notify,
.fx-live__staff-done {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-live__staff-notify.is-pop,
.fx-live__staff-done.is-pop {
  animation: fx-live-in 0.5s var(--ease);
}

.fx-live__staff-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: #e04545;
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  animation: fx-live-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes fx-live-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fx-live__staff-card {
  background: #1e1e1e;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.fx-live__staff-card strong {
  font-size: 15px;
  color: var(--white);
}

.fx-live__staff-time {
  color: var(--sky);
  font-weight: 700;
}

.fx-live__staff-done {
  align-items: center;
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.fx-live__staff-done strong {
  color: var(--green);
  font-size: 15px;
}

/* Sync beams */
.fx-live__sync {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.fx-live__sync-beam {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--green), transparent);
  opacity: 0;
  border-radius: var(--radius-pill);
}

.fx-live__sync-beam--c-h {
  top: 42%;
  left: 30%;
  width: 18%;
}

.fx-live__sync-beam--h-s {
  top: 52%;
  left: 52%;
  width: 18%;
}

.fx-live__sync.is-pulse .fx-live__sync-beam {
  animation: fx-live-beam 0.8s var(--ease) forwards;
}

@keyframes fx-live-beam {
  0% { opacity: 0; transform: scaleX(0); }
  30% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

.fx-live[data-phase="booked"] .fx-lane--hq .fx-ui,
.fx-live[data-phase="booked"] .fx-lane--partner .fx-ui {
  box-shadow: 0 0 0 2px rgba(61, 143, 212, 0.4), 0 12px 32px rgba(15, 45, 74, 0.2);
}

.fx-live[data-phase="approved"] .fx-lane--customer .fx-ui {
  box-shadow: 0 0 0 2px rgba(126, 200, 160, 0.5), 0 12px 32px rgba(15, 45, 74, 0.2);
}

.fx-live__reset {
  display: block;
  margin: 20px auto 0;
  padding: 8px 20px;
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.fx-live__reset:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 960px) {
  .fx-live__sync { display: none; }
  .fx-live__cust, .fx-live__hq, .fx-live__staff { min-height: 280px; }
}

/* Extended live demo — business flow */
.fx-live__cue {
  animation: fx-cue-glow 2.2s ease-in-out infinite;
}

@keyframes fx-cue-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 143, 212, 0); }
  50% { box-shadow: 0 0 0 3px rgba(61, 143, 212, 0.35), 0 0 12px rgba(61, 143, 212, 0.15); }
}

.fx-live__btn--field.fx-live__cue {
  animation-name: fx-cue-glow-green;
}

@keyframes fx-cue-glow-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 200, 160, 0); }
  50% { box-shadow: 0 0 0 3px rgba(126, 200, 160, 0.4), 0 0 12px rgba(126, 200, 160, 0.15); }
}

.fx-live__status-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fx-live__status-pill--wait {
  background: rgba(245, 230, 163, 0.5);
  color: #8a7020;
}

.fx-live__status-pill--ok {
  background: var(--green-pale);
  color: #2a7a52;
}

.fx-live__progress-note {
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--sky-pale);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-mid);
  width: 100%;
  text-align: center;
  animation: fx-live-pulse 1.5s ease-in-out infinite;
}

.fx-live__panel--after {
  gap: 8px;
}

.fx-live__after-lead {
  font-size: 13px;
  color: var(--gray-700);
}

.fx-live__after-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.fx-live__after-btn {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: default;
}

.fx-live__after-link {
  padding: 8px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--blue);
  cursor: default;
  text-align: center;
}

.fx-hq-clock {
  float: right;
  font-weight: 400;
  opacity: 0.7;
}

.fx-hq-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.fx-hq-stat {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-align: center;
}

.fx-hq-stat span {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.fx-hq-stat strong {
  font-size: 15px;
  color: var(--white);
}

.fx-hq-card-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fx-hq-card-row em {
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
  flex-shrink: 0;
}

.fx-hq-card-row strong,
.fx-hq-card-row span:last-child {
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.fx-live__hq-status--transit {
  background: rgba(94, 179, 232, 0.25);
  color: var(--sky);
}

.fx-live__hq-status--live {
  background: var(--green);
  color: var(--white);
  animation: fx-live 1.2s ease-in-out infinite;
}

.fx-live__hq-status--done {
  background: rgba(255, 255, 255, 0.15);
  color: var(--sky-pale);
}

.fx-hq-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fx-hq-footer__item {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.fx-staff-app-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.fx-staff-app-empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.fx-staff-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-staff-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  margin-top: 6px;
}

.fx-staff-row em {
  font-style: normal;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.fx-staff-note span {
  color: var(--yellow);
}

.fx-staff-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fx-staff-field.is-pop {
  animation: fx-live-in 0.5s var(--ease);
}

.fx-staff-field__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fx-staff-field__status {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  background: rgba(126, 200, 160, 0.2);
  color: var(--green);
}

.fx-staff-flow {
  display: flex;
  gap: 4px;
}

.fx-staff-flow span {
  flex: 1;
  padding: 6px 2px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  background: #222;
  color: rgba(255, 255, 255, 0.3);
}

.fx-staff-flow span.is-done {
  background: #2a5a3a;
  color: var(--green);
}

.fx-staff-flow span.is-active {
  background: var(--blue);
  color: var(--white);
}

.fx-staff-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-live__btn--field {
  width: 100%;
  background: #2a5a3a;
  color: var(--green);
  border: 2px solid var(--green);
}

.fx-live__btn--field:hover {
  background: var(--green);
  color: var(--white);
}

.fx-staff-report {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-staff-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #1e1e1e;
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.fx-staff-account strong {
  font-size: 20px;
  color: var(--white);
}

.fx-staff-complete {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.fx-staff-complete strong {
  display: block;
  color: var(--green);
  font-size: 15px;
  margin: 8px 0 4px;
}

.fx-live[data-stage="pending"] .fx-lane--hq .fx-ui,
.fx-live[data-stage="pending"] .fx-lane--partner .fx-ui,
.fx-live[data-stage="confirmed"] .fx-lane--customer .fx-ui,
.fx-live[data-stage="depart"] .fx-lane--hq .fx-ui,
.fx-live[data-stage="work"] .fx-lane--hq .fx-ui,
.fx-live[data-stage="aftercare"] .fx-ui {
  box-shadow: 0 0 0 2px rgba(61, 143, 212, 0.25), 0 12px 32px rgba(15, 45, 74, 0.18);
}

.fx-ui__body.fx-live__cust,
.fx-ui__body.fx-live__hq,
.fx-ui__body.fx-live__staff {
  min-height: 360px;
}

/* Focus layout — main + sub screens */
.fx-demo--focus {
  padding-bottom: 100px;
}

.fx-demo__lead {
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 520px;
  margin: -12px auto 28px;
}

.fx-stepnav {
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fx-stepnav::-webkit-scrollbar { display: none; }

.fx-stepnav__list {
  display: flex;
  gap: 6px;
  list-style: none;
  min-width: max-content;
  padding: 4px 2px 8px;
  justify-content: center;
}

.fx-stepnav__list li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.fx-stepnav__list li span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
}

.fx-stepnav__list li.is-done {
  color: var(--navy-mid);
  background: var(--sky-pale);
}

.fx-stepnav__list li.is-done span {
  background: var(--green);
  color: var(--white);
}

.fx-stepnav__list li.is-current {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 4px 16px rgba(61, 143, 212, 0.35);
  transform: scale(1.04);
}

.fx-stepnav__list li.is-current span {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.fx-focus .fx-demo__stage {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.fx-focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 480px;
  position: relative;
  z-index: 1;
}

.fx-focus .fx-lane {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.fx-focus .fx-lane--hq { grid-column: 1; grid-row: 1; justify-self: end; }
.fx-focus .fx-lane--customer { grid-column: 2; grid-row: 1; justify-self: center; }
.fx-focus .fx-lane--partner { grid-column: 3; grid-row: 1; justify-self: start; }

.fx-focus[data-focus="hq"] .fx-lane--hq { grid-column: 2; justify-self: center; }
.fx-focus[data-focus="hq"] .fx-lane--customer { grid-column: 1; justify-self: end; }
.fx-focus[data-focus="hq"] .fx-lane--partner { grid-column: 3; justify-self: start; }

.fx-focus[data-focus="staff"] .fx-lane--partner { grid-column: 2; justify-self: center; }
.fx-focus[data-focus="staff"] .fx-lane--customer { grid-column: 1; justify-self: end; }
.fx-focus[data-focus="staff"] .fx-lane--hq { grid-column: 3; justify-self: start; }

.fx-focus .fx-lane.is-sub {
  opacity: 0.35;
  transform: scale(0.68);
  pointer-events: none;
  filter: saturate(0.5) brightness(0.95);
  max-width: 160px;
}

.fx-focus .fx-lane.is-sub .fx-lane__tag {
  font-size: 9px;
}

.fx-focus .fx-lane.is-main {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  filter: none;
  max-width: 440px;
  width: 100%;
  z-index: 2;
}

.fx-focus .fx-lane.is-main .fx-ui {
  box-shadow: 0 20px 56px rgba(15, 45, 74, 0.16), 0 0 0 2px rgba(61, 143, 212, 0.12);
}

.fx-focus .fx-lane.is-main .fx-ui__body {
  min-height: 400px;
}

.fx-focus .fx-lane.is-sub .fx-ui__body {
  min-height: 200px;
  overflow: hidden;
}

.fx-focus .fx-lane.is-sub .fx-ui {
  font-size: 0.85em;
}

/* Action cue */
.fx-action-wrap {
  position: relative;
  margin-top: 12px;
}

.fx-next-label {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.fx-next-arrow {
  display: inline-block;
  animation: fx-next-bounce 1.2s ease-in-out infinite;
}

@keyframes fx-next-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.fx-action-wrap.is-cue .fx-next-label {
  display: flex;
}

.fx-action-wrap.is-cue .fx-live__btn {
  animation: fx-cue-glow 2.2s ease-in-out infinite;
}

.fx-lane.is-main .fx-ui__body.is-dim .fx-live__step,
.fx-lane.is-main .fx-ui__body.is-dim .fx-live__label,
.fx-lane.is-main .fx-ui__body.is-dim .fx-live__addr,
.fx-lane.is-main .fx-ui__body.is-dim .fx-live__badge,
.fx-lane.is-main .fx-ui__body.is-dim .fx-live__summary,
.fx-lane.is-main .fx-ui__body.is-dim .fx-hq-stats,
.fx-lane.is-main .fx-ui__body.is-dim .fx-live__hq-board,
.fx-lane.is-main .fx-ui__body.is-dim .fx-live__staff-card,
.fx-lane.is-main .fx-ui__body.is-dim .fx-staff-flow,
.fx-lane.is-main .fx-ui__body.is-dim .fx-staff-field__head {
  opacity: 0.4;
  transition: opacity 0.3s;
}

.fx-lane.is-main .fx-ui__body.is-dim .fx-action-wrap.is-cue,
.fx-lane.is-main .fx-ui__body.is-dim .fx-action-wrap.is-cue * {
  opacity: 1;
}

.fx-focus .fx-live__sync-beam {
  top: 50%;
  left: 20%;
  width: 60%;
}

@media (max-width: 768px) {
  .fx-focus-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }

  .fx-focus .fx-lane.is-sub {
    display: none;
  }

  .fx-focus .fx-lane.is-main,
  .fx-focus[data-focus="hq"] .fx-lane--hq,
  .fx-focus[data-focus="staff"] .fx-lane--partner,
  .fx-focus[data-focus="customer"] .fx-lane--customer {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
  }

  .fx-focus .fx-lane.is-main .fx-ui__body {
    min-height: 360px;
  }

  .fx-stepnav__list li {
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* ── Experience Demo (xd) ── */
@keyframes xd-cue-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55); transform: translateY(0); }
  50% { box-shadow: 0 0 24px 6px rgba(255, 107, 53, 0.45); transform: translateY(-2px); }
}

@keyframes xd-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 200, 80, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 200, 80, 0.7); }
}

@keyframes xd-beam {
  0% { transform: scaleX(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes xd-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xd-pop {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.xd {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.xd__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.xd__title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 12px;
  color: #1a2332;
}

.xd__lead {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5a6578;
  margin: 0;
}

.xd__progress-wrap {
  max-width: 560px;
  margin: 0 auto 20px;
}

.xd__progress {
  height: 4px;
  background: #dde3ec;
  border-radius: 999px;
  overflow: hidden;
}

.xd__progress-bar {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #ff6b35, #ff9f43);
  border-radius: 999px;
  transition: width 0.45s ease;
}

.xd__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.xd__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5cdd8;
  transition: background 0.3s, transform 0.3s;
}

.xd__dots span.is-done { background: #ffb088; }
.xd__dots span.is-current {
  background: #ff6b35;
  transform: scale(1.35);
}

/* Inline tutorial: focus + tooltip */
@keyframes xd-tip-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.xd-focus {
  position: relative;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.xd-focus[hidden] { display: none !important; }

.xd-step.is-tutorial .xd-focus:not(.is-hot) {
  opacity: 0.32;
  filter: grayscale(0.25);
  pointer-events: none;
}

.xd-step.is-tutorial .xd-focus.is-hot {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 4;
}

.xd-step.is-tutorial .xd-focus.is-hot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 107, 53, 0.75);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.25);
  pointer-events: none;
  animation: xd-cue-pulse 2.2s ease-in-out infinite;
}

.xd-tip {
  display: none;
  position: absolute;
  z-index: 12;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  background: #1a2332;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: min(240px, 88vw);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.xd-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a2332;
}

.xd-tip--bottom {
  bottom: auto;
  top: calc(100% + 10px);
}

.xd-tip--bottom::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1a2332;
}

.xd-tip--dark {
  background: #f0f6fc;
  color: #1a2332;
}

.xd-tip--dark::after { border-top-color: #f0f6fc; }
.xd-tip--dark.xd-tip--bottom::after {
  border-top-color: transparent;
  border-bottom-color: #f0f6fc;
}

.xd-focus.is-hot > .xd-tip {
  display: block;
  animation: xd-tip-pop 0.35s ease;
}

.xd-split__pane.is-pane-dim {
  opacity: 0.4;
  filter: grayscale(0.2);
  transition: opacity 0.35s;
}

.xd-split__pane:not(.is-pane-dim) {
  transition: opacity 0.35s;
}

.xd-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.xd-tabs[hidden] { display: none !important; }

.xd-tabs__btn {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid #dde3ec;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.xd-tabs__btn.is-active {
  border-color: #ff6b35;
  background: #fff5f0;
  color: #c2410c;
}

.xd__stage {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  min-height: 460px;
}

.xd__stage[data-layout="dual"] {
  max-width: 920px;
}

.xd-step {
  animation: xd-fade-up 0.4s ease;
}

.xd-step[hidden] {
  display: none !important;
}

.xd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.xd-panel--assign {
  background: #0d1117;
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border: 1px solid #21262d;
}

/* Customer phone */
.xd-phone {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.12);
  overflow: hidden;
  border: 1px solid #e8ecf2;
}

.xd-phone__bar {
  background: #1a2332;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 16px;
  letter-spacing: 0.02em;
}

.xd-booking-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2332;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
}

.xd-phone__body {
  padding: 20px 18px 24px;
}

.xd-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 6px;
}

.xd-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  font-family: inherit;
}

.xd-input:focus {
  outline: none;
  border-color: #ff6b35;
}

.xd-addr {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2332;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
}

.xd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.xd-chip {
  padding: 8px 12px;
  font-size: 0.78rem;
  border: 1.5px solid #dde3ec;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.xd-chip.is-on {
  border-color: #ff6b35;
  background: #fff5f0;
  color: #c2410c;
  font-weight: 600;
}

.xd-estimate {
  font-size: 0.9rem;
  margin: 12px 0;
  color: #374151;
}

.xd-estimate strong {
  font-size: 1.15rem;
  color: #1a2332;
}

.xd-dates, .xd-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.xd-date, .xd-time {
  padding: 10px 16px;
  border: 1.5px solid #dde3ec;
  border-radius: 10px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.xd-date.is-on, .xd-time.is-on {
  border-color: #ff6b35;
  background: #fff5f0;
  font-weight: 600;
}

.xd-err {
  font-size: 0.78rem;
  color: #dc2626;
  margin: 4px 0 8px;
}

.xd-load {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 4px 0;
}

/* HQ Monitor */
.xd-monitor {
  background: #0d1117;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid #21262d;
  color: #c9d1d9;
}

.xd-monitor__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b949e;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #21262d;
}

.xd-monitor__clock {
  font-variant-numeric: tabular-nums;
  color: #58a6ff;
}

.xd-monitor__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.xd-monitor__stats--sm {
  grid-template-columns: repeat(2, 1fr);
  max-width: 200px;
}

.xd-monitor__stats > div {
  background: #161b22;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid #21262d;
}

.xd-monitor__stats span {
  display: block;
  font-size: 0.62rem;
  color: #8b949e;
  margin-bottom: 2px;
}

.xd-monitor__stats strong {
  font-size: 0.85rem;
  color: #f0f6fc;
  font-variant-numeric: tabular-nums;
}

.xd-monitor__board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  min-height: 120px;
}

.xd-monitor__board--single {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.xd-mcol__title {
  display: block;
  font-size: 0.65rem;
  color: #8b949e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.xd-mcards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xd-mcard {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.68rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xd-mcard.is-glow {
  animation: xd-glow 1.8s ease-in-out infinite;
  border-color: #f0883e;
}

.xd-mcard__time { color: #8b949e; }
.xd-mcard strong { color: #f0f6fc; font-size: 0.72rem; }
.xd-mcard__st {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #21262d;
  color: #ffa657;
  font-size: 0.62rem;
}

.xd-mcard__eta {
  color: #58a6ff;
  font-size: 0.65rem;
  margin-top: 2px;
}

.xd-mcard__staff {
  font-size: 0.62rem;
  color: #8b949e;
}

.xd-mcard__ok {
  display: inline-block;
  font-size: 0.62rem;
  color: #3fb950;
  margin-top: 2px;
}

.xd-monitor__sync {
  font-size: 0.78rem;
  color: #3fb950;
  text-align: center;
  margin: 0 0 8px;
}

.xd-monitor__note {
  font-size: 0.75rem;
  color: #3fb950;
  text-align: center;
  margin: 0 0 12px;
}

/* Assign animation */
.xd-screen--assign .xd-monitor {
  min-height: 380px;
  position: relative;
}

.xd-assign {
  position: relative;
  min-height: 280px;
  padding: 12px 0;
}

.xd-assign__labels {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.xd-assign__lbl {
  font-size: 0.72rem;
  color: #484f58;
  padding: 4px 10px;
  border-radius: 999px;
  background: #161b22;
  border: 1px solid #21262d;
  opacity: 0.35;
  transition: opacity 0.4s, color 0.4s, border-color 0.4s;
}

.xd-assign.is-run .xd-assign__lbl:nth-child(1) { animation: xd-lbl-1 2.8s forwards; }
.xd-assign.is-run .xd-assign__lbl:nth-child(2) { animation: xd-lbl-2 2.8s forwards; }
.xd-assign.is-run .xd-assign__lbl:nth-child(3) { animation: xd-lbl-3 2.8s forwards; }

@keyframes xd-lbl-1 {
  0%, 15% { opacity: 1; color: #58a6ff; border-color: #58a6ff; }
  16%, 100% { opacity: 0.5; color: #8b949e; }
}
@keyframes xd-lbl-2 {
  0%, 35% { opacity: 0.35; }
  36%, 55% { opacity: 1; color: #ffa657; border-color: #ffa657; }
  56%, 100% { opacity: 0.5; }
}
@keyframes xd-lbl-3 {
  0%, 65% { opacity: 0.35; }
  66%, 100% { opacity: 1; color: #3fb950; border-color: #3fb950; }
}

.xd-assign__card {
  max-width: 200px;
  margin: 0 auto 16px;
}

.xd-assign__beam {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, #f0883e, #58a6ff);
  transform-origin: top center;
  opacity: 0;
  margin-left: -1px;
}

.xd-assign.is-run .xd-assign__beam {
  animation: xd-beam-v 0.6s 0.4s ease forwards;
}

@keyframes xd-beam-v {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

.xd-assign__area {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #484f58;
  padding: 10px;
  border-radius: 8px;
  margin: 0 auto 12px;
  max-width: 240px;
  transition: all 0.5s;
}

.xd-assign.is-run .xd-assign__area {
  animation: xd-area-glow 0.8s 0.8s forwards;
}

@keyframes xd-area-glow {
  to {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.12);
    box-shadow: 0 0 16px rgba(88, 166, 255, 0.4);
  }
}

.xd-assign__cands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  opacity: 0;
}

.xd-assign__cands li {
  padding: 8px 14px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  font-size: 0.8rem;
}

.xd-assign.is-run .xd-assign__cands {
  animation: xd-fade-up 0.5s 1.2s forwards;
}

.xd-assign__pick {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #3fb950;
  margin-top: 12px;
  opacity: 0;
}

.xd-assign.is-run .xd-assign__pick {
  animation: xd-fade-up 0.4s 2s forwards;
}

.xd-assign__done {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #3fb950;
  margin-top: 8px;
  opacity: 0;
}

.xd-assign.is-run .xd-assign__done {
  animation: xd-fade-up 0.4s 2.4s forwards;
}

.xd-assign.is-run .xd-assign__cands li:not(:first-child) {
  animation: xd-cand-dim 0.4s 1.8s forwards;
}

@keyframes xd-cand-dim {
  to { opacity: 0.25; transform: scale(0.95); }
}

.xd-assign.is-run .xd-assign__cands li:first-child {
  animation: xd-cand-pick 0.4s 1.8s forwards;
}

@keyframes xd-cand-pick {
  to {
    border-color: #3fb950;
    box-shadow: 0 0 12px rgba(63, 185, 80, 0.5);
    transform: scale(1.05);
  }
}

/* Staff screen */
.xd-staff {
  background: #f4f6f9;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.08);
}

.xd-staff__section {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 10px;
}

.xd-staff__card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf2;
  margin-bottom: 12px;
}

.xd-staff__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #ff6b35;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.xd-staff__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

.xd-staff__dl dt { color: #9ca3af; font-weight: 500; }
.xd-staff__dl dd { margin: 0; color: #1a2332; font-weight: 500; }

.xd-staff__actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.xd-staff__map, .xd-staff__copy {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #374151;
  font-weight: 500;
}

.xd-staff__row {
  font-size: 0.8rem;
  margin: 0 0 8px;
  color: #374151;
}

.xd-staff__row em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: #9ca3af;
  margin-bottom: 2px;
}

.xd-staff__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.xd-staff__tags span {
  font-size: 0.68rem;
  padding: 3px 8px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 4px;
}

.xd-staff__price {
  font-size: 0.85rem;
  margin: 0;
}

.xd-staff__price strong {
  font-size: 1.1rem;
  color: #1a2332;
}

.xd-staff__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.xd-staff__eta {
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.xd-staff__timer {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 10px 0 0;
}

.xd-staff__timer strong {
  font-size: 1.1rem;
  color: #ffa657;
  font-variant-numeric: tabular-nums;
}

.xd-staff__card--compact p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Payment */
.xd-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.xd-pay {
  padding: 10px;
  font-size: 0.78rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.xd-pay.is-on {
  border-color: #ff6b35;
  background: #fff5f0;
  font-weight: 600;
}

/* Notify */
.xd-notify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.xd-notify__bubble {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8ecf2;
}

.xd-notify__bubble.is-pop {
  animation: xd-pop 0.5s ease;
}

.xd-notify__from {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.xd-notify__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #06c755;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.xd-notify__bubble p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 8px;
  white-space: pre-line;
  color: #1a2332;
}

.xd-notify__url {
  font-size: 0.78rem;
  color: #2563eb !important;
}

/* Mypage */
.xd-mypage {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.12);
  border: 1px solid #e8ecf2;
}

.xd-mypage__bar {
  background: #2563eb;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px;
}

.xd-mypage__body {
  padding: 24px 20px;
  text-align: center;
}

.xd-mypage__open {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 12px;
  animation: xd-fade-up 0.4s ease;
}

.xd-mypage__status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  margin-bottom: 16px;
}

.xd-mypage__eta {
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.xd-mypage__eta strong {
  font-size: 1.5rem;
  color: #1a2332;
}

.xd-mypage__staff {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 16px;
}

.xd-mypage__checked {
  font-size: 0.9rem;
  font-weight: 600;
  color: #059669;
  padding: 10px;
  background: #ecfdf5;
  border-radius: 8px;
  animation: xd-pop 0.4s ease;
}

/* Work card (step 12) */
.xd-work-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.xd-work-card__timer {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffa657;
  margin-bottom: 4px;
}

.xd-work-card__label {
  font-size: 0.8rem;
  color: #8b949e;
}

/* Buttons & cues */
.xd-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s;
}

.xd-btn:active { transform: scale(0.98); }

.xd-btn--primary {
  background: linear-gradient(135deg, #ff6b35, #ff8f4f);
  color: #fff;
}

.xd-btn--hq {
  background: linear-gradient(135deg, #238636, #2ea043);
  color: #fff;
}

.xd-btn--staff {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.xd-btn--review {
  background: #06c755;
  color: #fff;
}

.xd-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #dde3ec;
}

.xd-cue {
  margin-top: 16px;
  text-align: center;
}

.xd-cue[hidden] { display: none !important; }

.xd-cue__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.xd-cue.is-cue .xd-btn {
  animation: xd-cue-pulse 2s ease-in-out infinite;
}

@media (min-width: 769px) {
  .xd-tabs { display: none !important; }

  .xd__stage[data-layout="dual"] {
    max-width: 920px;
  }

  .xd-monitor__stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .xd {
    padding: 48px 0 56px;
  }

  .xd__stage {
    max-width: 100%;
    min-height: 400px;
  }

  .xd__stage[data-layout="dual"] {
    max-width: 100%;
  }

  .xd-split {
    grid-template-columns: 1fr;
  }

  .xd__stage[data-layout="dual"] .xd-split__pane {
    display: none;
  }

  .xd__stage[data-layout="dual"][data-tab="hq"] .xd-split__pane[data-pane="hq"],
  .xd__stage[data-layout="dual"][data-tab="staff"] .xd-split__pane[data-pane="staff"] {
    display: block;
  }

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

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

  .xd-monitor__stats > div:nth-child(n+4) {
    grid-column: span 1;
  }

  .xd-assign__labels {
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* ============================================================
   Site-wide mobile — franchise XP / LP extras
   ============================================================ */

@media (max-width: 768px) {
  .page-franchise-xp .fx-hero,
  .page-franchise-xp .fxp-hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .fx-hero__actions,
  .fxp-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .fx-hero__actions .btn,
  .fxp-hero__cta .btn {
    width: 100%;
    max-width: 100%;
  }

  .flp-xp__grid,
  .flp-xp__compare,
  .fx-mesh__grid {
    grid-template-columns: 1fr !important;
  }

  .fc-table-wrap {
    margin-inline: -8px;
    padding-inline: 8px;
  }
}

@media (max-width: 430px) {
  .page-franchise .section,
  .page-franchise-xp .fxp-section {
    padding: 48px 0;
  }

  .fc-subnav__menu a,
  .fc-subnav__current {
    font-size: 11px;
    padding: 6px 10px;
  }
}
