:root {
  color-scheme: light;
  --rehab-paper: #f6f4ef;
  --rehab-ink: #182625;
  --rehab-muted: #6d6a61;
  --rehab-card: rgba(255, 255, 255, 0.86);
  --rehab-line: rgba(24, 38, 37, 0.13);
  --rehab-focus: rgba(0, 143, 140, 0.42);
  --rehab-pt-accent: #24211a;
  --rehab-ot-accent: #a65f37;
  --rehab-st-accent: #496a93;
  --rehab-spine-shadow: 0 14px 36px rgba(24, 38, 37, 0.16);
  --rehab-radius-card: 22px;
  --rehab-radius-control: 999px;
  --rehab-space-1: 6px;
  --rehab-space-2: 10px;
  --rehab-space-3: 16px;
  --rehab-space-4: 24px;
  --rehab-space-5: 36px;
  --rehab-shadow-card: 0 22px 54px rgba(24, 38, 37, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.platform-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 78px) 0;
}

.platform-header {
  min-height: 22vh;
}

.rehab-brand-hero {
  display: grid;
  gap: var(--rehab-space-2);
  place-items: center;
  text-align: center;
}

.rehab-brand-hero::after {
  content: "";
  display: block;
  width: min(420px, 58vw);
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--rehab-pt-accent) 0 31%,
      transparent 31% 35%,
      var(--rehab-ot-accent) 35% 66%,
      transparent 66% 70%,
      var(--rehab-st-accent) 70% 100%
    );
  box-shadow: var(--rehab-spine-shadow);
  opacity: 0.88;
}

.rehab-brand-hero h1,
.rehab-brand-hero h2 {
  margin: 0;
  color: var(--rehab-ink);
  letter-spacing: 0.035em;
  line-height: 1.14;
}

.rehab-brand-hero p {
  margin: 0;
  max-width: 44rem;
  color: var(--rehab-muted);
  font: 600 clamp(0.98rem, 1.6vw, 1.15rem) ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.rehab-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.rehab-lane-card {
  position: relative;
  display: grid;
  gap: var(--rehab-space-3);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--rehab-line);
  border-radius: var(--rehab-radius-card);
  background: var(--rehab-card);
  box-shadow: var(--rehab-shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rehab-lane-card::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--rehab-lane-accent, var(--rehab-st-accent));
  opacity: 0.82;
}

.rehab-lane-card[data-rehab-lane="pt"] {
  --rehab-lane-accent: var(--rehab-pt-accent);
}

.rehab-lane-card[data-rehab-lane="ot"] {
  --rehab-lane-accent: var(--rehab-ot-accent);
}

.rehab-lane-card[data-rehab-lane="st"] {
  --rehab-lane-accent: var(--rehab-st-accent);
}

.rehab-lane-card:hover {
  border-color: color-mix(in srgb, var(--rehab-lane-accent) 36%, var(--rehab-line));
  box-shadow: var(--rehab-spine-shadow);
  transform: translateY(-3px);
}

.rehab-flow-stepper {
  display: grid;
  gap: 10px;
}

.rehab-flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rehab-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rehab-ink);
}

.rehab-flow-step strong,
.rehab-flow-step span {
  min-width: 0;
}

.pt-sidebar-mode-nav.rehab-flow-stepper {
  align-content: start;
}

.pt-sidebar-mode-nav .rehab-flow-step {
  padding: 12px;
  text-align: left;
}

.pt-sidebar-mode-nav .rehab-flow-step > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(24, 38, 37, 0.08);
  color: #4d554f;
  font-weight: 850;
  font-size: 0.8rem;
}

.pt-sidebar-mode-nav .rehab-flow-step > span:last-child {
  display: grid;
  gap: 3px;
}

.pt-sidebar-mode-nav .rehab-flow-step strong {
  font-size: 0.94rem;
}

.pt-sidebar-mode-nav .rehab-flow-step span span {
  color: var(--rehab-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rehab-primary-action {
  min-height: 44px;
  border-radius: var(--rehab-radius-control);
}

.rehab-safety-disclosure {
  border: 1px solid var(--rehab-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.rehab-lane-card :focus-visible,
.rehab-flow-step:focus-visible,
.rehab-primary-action:focus-visible {
  outline: 3px solid var(--rehab-focus);
  outline-offset: 3px;
}

body:has(.platform-shell) {
  min-height: 100vh;
  margin: 0;
  font-family: ui-serif, "Noto Serif TC", "Songti TC", "Times New Roman", serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(191, 169, 116, 0.18), transparent 30%),
    linear-gradient(180deg, #f4f1e9 0%, #fbfaf7 58%, #edf2f1 100%);
  color: var(--rehab-ink);
}

.lane-grid {
  margin-top: clamp(18px, 4vw, 42px);
}

.brand-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--rehab-paper);
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.lane-card-link {
  display: block;
}

.brand-link:focus-visible {
  outline: 3px solid rgba(35, 52, 49, 0.52);
  outline-offset: 4px;
}

.brand-link .brand-portrait {
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-link:hover .brand-portrait {
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.012);
}

.brand-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.brand-caption {
  margin: 0;
  color: #263936;
  font: 800 clamp(1rem, 1.4vw, 1.18rem) ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
}

.rehab-trust-card {
  display: grid;
  gap: 6px;
  margin-top: clamp(16px, 2.5vw, 24px);
  padding: 14px 16px;
  border: 1px solid rgba(35, 72, 63, 0.14);
  border-left: 5px solid rgba(39, 100, 86, 0.72);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 247, 242, 0.7));
  box-shadow: 0 12px 26px rgba(34, 54, 50, 0.07);
}

.rehab-trust-card span {
  color: #243b38;
  font: 900 0.78rem ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.rehab-trust-card p,
.rehab-trust-card small {
  margin: 0;
  color: var(--rehab-muted);
  font: 650 0.9rem/1.62 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rehab-trust-card small {
  color: #667872;
  font-size: 0.82rem;
}

.trust-subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(18px, 3.5vw, 34px);
}

.trust-subscription-grid article {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--rehab-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.trust-subscription-grid span {
  display: block;
  margin-bottom: 7px;
  color: #243b38;
  font: 850 0.92rem ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
}

.trust-subscription-grid p {
  margin: 0;
  color: var(--rehab-muted);
  font: 600 0.92rem/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(135, 184, 174, 0.16), transparent 30rem),
    linear-gradient(180deg, #f8fbfa 0%, #eef5f3 100%);
  color: #17322f;
}

.pilot-shell {
  width: min(1080px, calc(100% - 48px));
  padding-top: clamp(28px, 4.5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.pilot-hero {
  display: grid;
  justify-items: center;
  min-height: 0;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4.5vw, 48px);
  border: 1px solid rgba(25, 72, 66, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 70px rgba(31, 72, 66, 0.12);
  text-align: center;
}

.pilot-kicker {
  margin: 0 0 18px;
  color: #315f59;
  font: 850 0.78rem/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.pilot-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #17322f;
  font: 900 clamp(2.05rem, 4vw, 3.45rem)/1.16 ui-serif, "Noto Serif TC", "Songti TC", serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.pilot-hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  color: #526864;
  font: 650 clamp(1rem, 1.5vw, 1.1rem)/1.68 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pilot-primary-link,
.pilot-secondary-link,
.pilot-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--rehab-radius-control);
  font: 850 0.93rem ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.pilot-primary-link,
.pilot-secondary-link {
  padding: 0 20px;
}

.pilot-primary-link {
  border: 1px solid #173f3a;
  background: #173f3a;
  color: #fff;
  box-shadow: 0 10px 26px rgba(23, 63, 58, 0.2);
}

.pilot-secondary-link {
  border: 1px solid rgba(23, 63, 58, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #173f3a;
}

.pilot-text-link {
  padding: 0 10px;
  color: #dcece8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pilot-primary-link:focus-visible,
.pilot-secondary-link:focus-visible,
.pilot-text-link:focus-visible {
  outline: 3px solid var(--rehab-focus);
  outline-offset: 3px;
}

.pilot-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin-top: 28px;
  border-top: 1px solid rgba(23, 63, 58, 0.12);
}

.pilot-proof-strip span {
  display: grid;
  gap: 4px;
  padding: 18px 12px 0;
  color: #657773;
  font: 700 0.82rem/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-proof-strip b {
  color: #214943;
  font-size: 1rem;
}

.pilot-path-section,
.pilot-fit-grid,
.pilot-trust-strip,
.pilot-final-cta {
  margin-top: clamp(30px, 4.5vw, 52px);
}

.pilot-section-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.pilot-section-heading > span,
.pilot-fit-card > span,
.pilot-outcome-card > span,
.pilot-trust-strip span,
.pilot-final-cta > span {
  color: #3f6b65;
  font: 850 0.78rem/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.pilot-section-heading h2,
.pilot-fit-card h2,
.pilot-outcome-card h2,
.pilot-trust-strip h2,
.pilot-final-cta h2 {
  margin: 0;
  color: #17322f;
  font: 900 clamp(1.45rem, 3vw, 2.15rem)/1.3 ui-serif, "Noto Serif TC", "Songti TC", serif;
  text-wrap: balance;
}

.pilot-section-heading p,
.pilot-path p,
.pilot-trust-strip p,
.pilot-final-cta p {
  margin: 0;
  color: #5a6f6b;
  font: 650 0.96rem/1.72 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
}

.pilot-path::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: linear-gradient(90deg, #7aa9a1, #1f5750, #c89565);
}

.pilot-path li {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(23, 63, 58, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.pilot-path li::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #f5faf8;
  border-radius: 50%;
  background: #245d55;
  box-shadow: 0 0 0 1px #245d55;
  transform: translateX(-50%);
}

.pilot-path li:nth-child(2) {
  border-color: rgba(31, 87, 80, 0.28);
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 87, 80, 0.1);
}

.pilot-day {
  display: inline-flex;
  margin-bottom: 12px;
  color: #2e625b;
  font: 900 0.82rem ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-path h3 {
  margin: 0 0 10px;
  color: #17322f;
  font: 900 1.15rem/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pilot-fit-card,
.pilot-outcome-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(23, 63, 58, 0.12);
  border-radius: 26px;
}

.pilot-fit-card {
  background: rgba(255, 255, 255, 0.72);
}

.pilot-outcome-card {
  background: #dfece8;
}

.pilot-fit-card h2,
.pilot-outcome-card h2 {
  margin-top: 8px;
}

.pilot-fit-card ul,
.pilot-outcome-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 1.2rem;
  color: #435a56;
  font: 650 0.95rem/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pilot-trust-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(20px, 5vw, 54px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-top: 1px solid rgba(23, 63, 58, 0.18);
  border-bottom: 1px solid rgba(23, 63, 58, 0.18);
}

.pilot-trust-strip h2 {
  margin-top: 7px;
}

.pilot-final-cta {
  display: grid;
  justify-items: center;
  padding: clamp(30px, 6vw, 56px) 20px;
  border-radius: 30px;
  background: #173f3a;
  color: #fff;
  text-align: center;
}

.pilot-final-cta > span,
.pilot-final-cta h2,
.pilot-final-cta p {
  color: #fff;
}

.pilot-final-cta p {
  max-width: 620px;
  margin-top: 12px;
  color: #c9dcd8;
}

.pilot-final-cta .pilot-primary-link {
  border-color: #fff;
  background: #fff;
  color: #173f3a;
  box-shadow: none;
}

@media (max-width: 860px) {
  .rehab-lane-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-subscription-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pilot-path,
  .pilot-fit-grid,
  .pilot-trust-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .pilot-path {
    gap: 14px;
    padding: 0 0 0 28px;
  }

  .pilot-path::before {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 6px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #7aa9a1, #1f5750, #c89565);
  }

  .pilot-path li::before {
    top: 26px;
    left: -28px;
    transform: none;
  }

  .pilot-trust-strip {
    gap: 14px;
  }

  .rehab-flow-stepper {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 72vw);
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .rehab-flow-step {
    scroll-snap-align: start;
  }

  .platform-shell,
  .lane-grid,
  .lane-card,
  .trust-subscription-grid,
  .trust-subscription-grid article,
  .brand-frame,
  .brand-portrait {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .platform-header {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .pilot-shell {
    width: min(calc(100% - 28px), 1040px);
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .pilot-hero {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .pilot-kicker {
    margin-bottom: 14px;
    letter-spacing: 0.06em;
  }

  .pilot-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
    line-height: 1.24;
  }

  .pilot-hero-copy {
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .pilot-hero-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
  }

  .pilot-hero-actions,
  .pilot-primary-link,
  .pilot-secondary-link {
    width: 100%;
  }

  .pilot-primary-link,
  .pilot-secondary-link {
    min-height: 48px;
  }

  .pilot-proof-strip {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 22px;
  }

  .pilot-proof-strip span {
    grid-template-columns: minmax(126px, 0.8fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(23, 63, 58, 0.1);
    text-align: left;
  }

  .pilot-proof-strip span:last-child {
    border-bottom: 0;
  }

  .pilot-fit-card,
  .pilot-outcome-card,
  .pilot-final-cta {
    border-radius: 20px;
  }

  .pilot-path-section,
  .pilot-fit-grid,
  .pilot-trust-strip,
  .pilot-final-cta {
    margin-top: 32px;
  }

  .pilot-section-heading {
    gap: 6px;
    margin-bottom: 20px;
  }

  .pilot-path {
    gap: 12px;
    padding-left: 22px;
  }

  .pilot-path::before {
    left: 5px;
  }

  .pilot-path li {
    padding: 18px;
    border-radius: 18px;
  }

  .pilot-path li::before {
    left: -22px;
  }

  .pilot-fit-grid {
    gap: 12px;
  }

  .pilot-fit-card,
  .pilot-outcome-card {
    padding: 20px;
  }

  .pilot-trust-strip {
    gap: 8px;
    padding: 22px 4px;
  }

  .pilot-final-cta {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rehab-lane-card,
  .rehab-lane-card *,
  .rehab-flow-step,
  .brand-link .brand-portrait {
    transition: none !important;
    animation: none !important;
  }
}
