/* Pilot outreach sheet — pulls up over the landing stage. */
#pilotSheet {
  --ink: #102226;
  --ink-soft: #3d5559;
  --muted: #6b8185;
  --line: rgba(16, 34, 38, 0.1);
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --gold: #c4a35a;
  --gold-deep: #9a7429;
  --gold-rich: #b8893d;
  --champagne: #f7f1e4;
  --paper: #faf8f4;
  --body: #1a1a1a;
  --font: Figtree, "PingFang SC", "Noto Sans SC", Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "PingFang SC", "Noto Sans SC", sans-serif;
  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.22vw, 0.9rem);
  --text-body: clamp(0.9rem, 0.84rem + 0.28vw, 1rem);
  --text-h: clamp(1.05rem, 0.95rem + 0.45vw, 1.22rem);
  --text-stat: clamp(0.95rem, 0.88rem + 0.35vw, 1.08rem);
  --measure: min(68ch, 100%);
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sheet-dur: 0.64s;
  position: fixed;
  inset: 0;
  z-index: 12100;
  pointer-events: none;
  visibility: hidden;
}

#pilotSheet.is-ready {
  visibility: visible;
}

#pilotSheet.is-open {
  pointer-events: auto;
}

#pilotSheet[hidden] {
  display: none !important;
}

#pilotSheet .pilot-sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 38, 0.18);
  opacity: 0;
  transition: opacity 0.48s ease;
  pointer-events: none;
}

#pilotSheet.is-open .pilot-sheet-scrim {
  opacity: 1;
  pointer-events: auto;
}

#pilotSheet .pilot-sheet-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1040px, 100%);
  /* Keep a small top peek of the landing; track the live viewport height
     instead of a fixed 960px / 92vh cap that parked the pull handle at a
     constant offset from the bottom on tall screens. */
  --pilot-top-gap: max(28px, calc(env(safe-area-inset-top, 0px) + 12px));
  height: calc(100vh - var(--pilot-top-gap));
  height: calc(100svh - var(--pilot-top-gap));
  height: calc(100dvh - var(--pilot-top-gap));
  max-height: none;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 248, 244, 0.98) 42%, #f7f4ec 100%);
  border: 1px solid rgba(16, 34, 38, 0.08);
  border-bottom: none;
  box-shadow:
    0 -18px 48px -20px rgba(16, 34, 38, 0.28),
    0 -2px 0 rgba(255, 255, 255, 0.65) inset;
  transform: translate3d(-50%, 108%, 0);
  transition: transform var(--sheet-dur) var(--sheet-ease);
  will-change: transform;
  overflow: hidden;
  font-family: var(--font);
  color: var(--body);
}

#pilotSheet.is-open .pilot-sheet-card {
  transform: translate3d(-50%, 0, 0);
}

#pilotSheet.is-dragging .pilot-sheet-card {
  transition: none;
}

#pilotSheet .pilot-sheet-chrome {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 52px 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#pilotSheet.is-dragging .pilot-sheet-chrome {
  cursor: grabbing;
}

/* Pin to the true sheet center so the lang/close cluster does not shift it. */
#pilotSheet .pilot-sheet-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(16, 34, 38, 0.18);
  pointer-events: none;
}

#pilotSheet .pilot-sheet-chrome:hover .pilot-sheet-handle {
  background: rgba(16, 34, 38, 0.28);
}

#pilotSheet .pilot-sheet-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

#pilotSheet .pilot-sheet-lang {
  display: flex;
  align-items: center;
}

#pilotSheet .pilot-sheet-lang.i18n-bar {
  padding: 0;
}

#pilotSheet .pilot-sheet-lang .i18n-switcher {
  font: 500 0.78rem var(--font);
  color: var(--ink);
  border: 1px solid rgba(16, 34, 38, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 7px 8px;
  min-height: 36px;
  max-width: 7.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#pilotSheet .pilot-sheet-lang .i18n-switcher:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  outline-offset: 1px;
}

#pilotSheet .pilot-sheet-close {
  position: static;
  transform: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(16, 34, 38, 0.06);
  color: var(--ink-soft);
  font: 600 1.15rem/1 var(--font);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
  touch-action: manipulation;
}

#pilotSheet .pilot-sheet-close:hover {
  background: rgba(16, 34, 38, 0.1);
  color: var(--ink);
}

html.dir-rtl #pilotSheet .pilot-sheet-actions {
  right: auto;
  left: 10px;
}

#pilotSheet .pilot-sheet-scroll {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding:
    4px
    clamp(18px, 4vw, 36px)
    calc(28px + env(safe-area-inset-bottom, 0px));
  scroll-behavior: smooth;
}

#pilotSheet .pilot-sheet-wrap {
  width: 100%;
  max-width: min(880px, 100%);
  margin: 0 auto;
}

/* Dim / tuck the landing welcome while the sheet is up. */
body.pilot-sheet-open #landingStage .landing-welcome {
  transform: scale(0.94) translateY(-18px);
  opacity: 0.42;
  filter: blur(0.4px);
  pointer-events: none;
  transition:
    transform var(--sheet-dur, 0.64s) cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.48s ease,
    filter 0.48s ease;
}

body:not(.pilot-sheet-open) #landingStage .landing-welcome {
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.4s ease,
    filter 0.4s ease;
}

body.pilot-sheet-open #landingStage .landing-lang {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* —— Sheet body content —— */

#pilotSheet .pilot-firm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 34, 38, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: clamp(14px, 2.5vw, 20px);
  max-width: 100%;
}

#pilotSheet .pilot-firm-pill[hidden] {
  display: none !important;
}

#pilotSheet .pilot-firm-pill em {
  font-style: normal;
  color: var(--teal-deep);
}

/* Chinese reads more naturally as “Harbour Migration 专属邀请”. */
html[lang="zh-CN"] #pilotSheet .pilot-firm-pill {
  flex-direction: row-reverse;
}

#pilotSheet .pilot-intro {
  margin: 0 0 clamp(28px, 4vw, 36px);
}

#pilotSheet .pilot-lede {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 1.95rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 clamp(16px, 3vw, 24px);
  max-width: var(--measure);
  text-wrap: balance;
  /* Near-horizontal sweep so wrapped English lines still read ink → teal.
     Earlier teal stops keep long EN copy from looking almost solid black. */
  background: linear-gradient(
    92deg,
    var(--ink) 0%,
    var(--ink) 22%,
    #163d3a 42%,
    #1a5c56 58%,
    var(--teal) 78%,
    var(--teal-deep) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#pilotSheet .pilot-intro-body {
  margin: 0 0 12px;
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--body);
}

#pilotSheet .pilot-intro-body strong,
#pilotSheet .pilot-features-lead p strong,
#pilotSheet .pilot-features-lead h2 strong,
#pilotSheet .pilot-showcase .pilot-desc strong,
#pilotSheet .pilot-evidence p strong,
#pilotSheet .pilot-closing p strong,
#pilotSheet .pilot-closing h2 strong,
#pilotSheet .pilot-launch-note h2 strong,
#pilotSheet .pilot-footnote strong {
  font-weight: 800;
}

#pilotSheet .pilot-intro-heading,
#pilotSheet .pilot-features-lead h2,
#pilotSheet .pilot-evidence h2,
#pilotSheet .pilot-closing h2,
#pilotSheet .pilot-panel h2,
#pilotSheet .pilot-showcase .pilot-tagline {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

#pilotSheet .pilot-intro-heading {
  font-size: var(--text-h);
  margin: clamp(20px, 3.5vw, 26px) 0 12px;
}

/* —— Launch note: the free-Pro promise, sitting right above the first CTA —— */

#pilotSheet .pilot-launch-note {
  margin: clamp(18px, 3vw, 24px) 0 0;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9) 0%, rgba(236, 247, 244, 0.94) 58%, rgba(222, 240, 236, 0.96) 100%);
  box-shadow:
    0 16px 32px -26px rgba(15, 118, 110, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#pilotSheet .pilot-launch-note h2 {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: var(--text-h);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
  color: var(--teal-deep);
}

#pilotSheet .pilot-launch-note p {
  margin: 0 0 10px;
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--body);
}

#pilotSheet .pilot-launch-note p:last-child {
  margin-bottom: 0;
}

#pilotSheet .pilot-launch-note strong {
  font-weight: 700;
}

#pilotSheet .pilot-intro-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 16px);
  margin: clamp(20px, 3.5vw, 26px) 0 0;
  padding: 0;
}

#pilotSheet .pilot-intro-stat {
  margin: 0;
  padding: clamp(14px, 2.8vw, 18px);
  border-radius: 14px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(236, 247, 244, 0.92) 55%, rgba(222, 240, 236, 0.95) 100%);
  box-shadow:
    0 14px 28px -22px rgba(15, 118, 110, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#pilotSheet .pilot-intro-stat dt {
  font-weight: 700;
  font-size: var(--text-stat);
  letter-spacing: -0.015em;
  color: var(--teal-deep);
  margin: 0 0 6px;
}

#pilotSheet .pilot-intro-stat dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-soft);
}

#pilotSheet .pilot-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(100%, 29rem);
  margin: 0 auto clamp(36px, 5.5vw, 48px);
  border-radius: 18px;
  padding: clamp(26px, 3.6vw, 34px) clamp(22px, 3.2vw, 30px) clamp(22px, 3vw, 28px);
  text-align: center;
}

#pilotSheet .pilot-panel > * {
  position: relative;
  z-index: 1;
}

#pilotSheet .pilot-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 clamp(16px, 2.6vw, 20px);
  text-wrap: balance;
  color: var(--ink);
}

#pilotSheet .pilot-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(15rem, 100%);
  background: linear-gradient(160deg, #d8b978 0%, var(--gold) 38%, var(--gold-rich) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-body);
  font-family: var(--font);
  letter-spacing: 0.005em;
  padding: clamp(13px, 2vw, 15px) clamp(22px, 3vw, 30px);
  border-radius: 999px;
  border: none;
  box-shadow:
    0 10px 24px -12px rgba(154, 116, 41, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Sheen sweeps across on hover only, so the card stays calm at rest. */
#pilotSheet .pilot-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.3) 50%, transparent 68%);
  transform: translateX(-120%);
  pointer-events: none;
}

#pilotSheet .pilot-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px -12px rgba(154, 116, 41, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#pilotSheet .pilot-cta:hover::after {
  animation: pilotCtaSheen 0.85s ease-out;
}

#pilotSheet .pilot-cta:active {
  transform: translateY(0);
}

@keyframes pilotCtaSheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

#pilotSheet .pilot-panel-note {
  margin: 14px 0 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted);
}

/* —— Early CTA: quiet ivory card —— */

#pilotSheet .pilot-panel--early {
  border: 1px solid rgba(16, 34, 38, 0.08);
  background: linear-gradient(168deg, #fffdf9 0%, #fdfaf3 55%, #f9f4e9 100%);
  box-shadow:
    0 18px 38px -30px rgba(16, 34, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#pilotSheet .pilot-panel--early h2 strong {
  color: var(--teal);
  font-weight: 800;
}

/* Early CTA keeps the shared filled gold pill (same as late panel / outreach). */

/* —— Late CTA: dark ink card, gold as the accent —— */

#pilotSheet .pilot-panel--late {
  border: 1px solid rgba(196, 163, 90, 0.3);
  background:
    radial-gradient(ellipse 78% 62% at 50% -10%, rgba(196, 163, 90, 0.22), transparent 62%),
    linear-gradient(165deg, #16292d 0%, #102226 52%, #0c1a1d 100%);
  box-shadow:
    0 30px 60px -34px rgba(12, 26, 29, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#pilotSheet .pilot-panel--late h2 {
  color: var(--champagne);
}

#pilotSheet .pilot-panel--late .pilot-panel-note {
  color: rgba(247, 241, 228, 0.6);
}

#pilotSheet .pilot-panel--late .pilot-share-code {
  border-top-color: rgba(196, 163, 90, 0.22);
}

#pilotSheet .pilot-panel--late .pilot-share-code-label {
  color: rgba(247, 241, 228, 0.68);
}

#pilotSheet .pilot-panel--late .pilot-share-code-val {
  color: var(--gold);
}

#pilotSheet .pilot-features-lead {
  margin: 0 0 clamp(20px, 3.5vw, 26px);
}

#pilotSheet .pilot-features-lead h2 {
  font-size: var(--text-h);
  margin: 0 0 10px;
}

#pilotSheet .pilot-features-lead p {
  margin: 0;
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--body);
}

#pilotSheet .pilot-showcases {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 44px);
  margin: 0 0 clamp(36px, 6vw, 48px);
}

#pilotSheet .pilot-showcase {
  scroll-margin-top: 12px;
}

#pilotSheet .pilot-showcase h2 {
  font-family: var(--font);
  font-size: var(--text-h);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--teal-deep);
  margin: 0 0 8px;
}

#pilotSheet .pilot-showcase .pilot-tagline {
  margin: 0 0 10px;
  font-size: clamp(0.95rem, 0.88rem + 0.28vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

#pilotSheet .pilot-showcase .pilot-desc {
  margin: 0 0 10px;
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--body);
}

#pilotSheet .pilot-showcase .pilot-desc:last-of-type {
  margin-bottom: 14px;
}

#pilotSheet .pilot-showcase figure {
  margin: 0;
  border-radius: clamp(12px, 2.5vw, 16px);
  overflow: hidden;
  background: #0e1b1e;
  border: 1px solid rgba(16, 34, 38, 0.08);
  box-shadow: 0 20px 40px -28px rgba(16, 34, 38, 0.35);
}

#pilotSheet .pilot-showcase.is-target figure {
  outline: 2px solid rgba(13, 148, 136, 0.55);
  outline-offset: 3px;
}

#pilotSheet .pilot-showcase video {
  display: block;
  width: 100%;
  height: auto;
  background: #0e1b1e;
}

#pilotSheet .pilot-evidence {
  margin: 0 0 clamp(28px, 4.5vw, 40px);
}

#pilotSheet .pilot-evidence h2,
#pilotSheet .pilot-closing h2 {
  font-size: var(--text-h);
  margin: 0 0 12px;
  text-wrap: balance;
}

#pilotSheet .pilot-evidence p,
#pilotSheet .pilot-closing p {
  margin: 0 0 12px;
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--body);
}

#pilotSheet .pilot-closing p:last-child {
  margin-bottom: 0;
}

#pilotSheet .pilot-share-code {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 137, 61, 0.24);
}

#pilotSheet .pilot-share-code[hidden] {
  display: none !important;
}

#pilotSheet .pilot-share-code-label {
  margin: 0 0 4px;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink-soft);
}

#pilotSheet .pilot-share-code-val {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: 600 var(--text-xs) var(--font);
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  cursor: pointer;
}

#pilotSheet .pilot-share-code-val:hover {
  text-decoration: underline;
}

#pilotSheet .pilot-footnote {
  font-family: Helvetica, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--muted);
  margin: clamp(48px, 8vw, 72px) 0 0;
}

#pilotSheet .pilot-legal {
  margin: clamp(24px, 4vw, 32px) 0 0;
  padding-top: 8px;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

#pilotSheet .pilot-legal a {
  color: inherit;
  text-decoration: underline;
}

#pilotSheet .pilot-foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(18px, 3.5vw, 24px);
}

#pilotSheet .pilot-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px -10px rgba(13, 148, 136, 0.55);
}

#pilotSheet .pilot-brand-name {
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.015em;
  color: var(--ink);
}

@media (max-width: 520px) {
  #pilotSheet .pilot-intro-stats {
    grid-template-columns: 1fr;
  }

  #pilotSheet .pilot-cta {
    width: 100%;
  }

  #pilotSheet .pilot-sheet-card {
    width: 100%;
    border-radius: 18px 18px 0 0;
    --pilot-top-gap: max(12px, calc(env(safe-area-inset-top, 0px) + 8px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #pilotSheet,
  #pilotSheet .pilot-sheet-card,
  #pilotSheet .pilot-sheet-scrim,
  #pilotSheet .pilot-cta,
  body.pilot-sheet-open #landingStage .landing-welcome,
  body:not(.pilot-sheet-open) #landingStage .landing-welcome {
    transition: none !important;
  }

  #pilotSheet .pilot-cta:hover::after {
    animation: none;
  }
}
