/* TJ OS unified shell: shared visual system for the commerce flow pages. */
:root {
  --tj-bg: #f6fbff;
  --tj-surface: rgba(255, 255, 255, 0.9);
  --tj-surface-strong: #ffffff;
  --tj-ink: #102033;
  --tj-muted: #60748a;
  --tj-line: rgba(44, 80, 118, 0.14);
  --tj-blue: #2563eb;
  --tj-cyan: #18a7c8;
  --tj-mint: #12a976;
  --tj-amber: #d58b24;
  --tj-red: #d95662;
  --tj-radius: 8px;
  --tj-shadow: 0 24px 80px rgba(40, 79, 118, 0.14);
  --tj-soft-shadow: 0 14px 44px rgba(40, 79, 118, 0.1);
  --tj-font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tj-os-page {
  color-scheme: light;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbff 34%, #ffffff 100%) !important;
  color: var(--tj-ink);
  font-family: var(--tj-font);
}

.tj-os-page::before {
  display: none !important;
}

.tj-os-nav {
  position: sticky;
  top: 12px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  width: min(1400px, calc(100% - 32px));
  min-height: 74px;
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--tj-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--tj-soft-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.tj-os-brand,
.tj-os-support,
.tj-os-buy,
.tj-os-tools > summary,
.tj-os-tool-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tj-os-brand {
  gap: 10px;
  min-width: 210px;
  color: var(--tj-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.tj-os-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.12);
}

.tj-os-primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.tj-os-primary-nav a,
.tj-os-tools > summary,
.tj-os-support {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--tj-muted);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tj-os-primary-nav a:hover,
.tj-os-tools > summary:hover,
.tj-os-support:hover {
  color: var(--tj-ink);
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(238, 247, 255, 0.9);
  transform: translateY(-1px);
}

.tj-os-tools {
  position: relative;
}

.tj-os-tools > summary {
  cursor: pointer;
  list-style: none;
  border-color: var(--tj-line);
  background: rgba(255, 255, 255, 0.72);
}

.tj-os-tools > summary::-webkit-details-marker {
  display: none;
}

.tj-os-tool-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(620px, calc(100vw - 40px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--tj-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--tj-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.tj-os-tool-menu a {
  justify-content: flex-start;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(44, 80, 118, 0.1);
  border-radius: 10px;
  color: var(--tj-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 820;
}

.tj-os-support {
  color: var(--tj-ink);
  border-color: var(--tj-line);
  background: rgba(255, 255, 255, 0.74);
}

.tj-os-buy {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tj-cyan), var(--tj-blue));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.2);
  white-space: nowrap;
}

.system-dock.tj-os-journey {
  position: sticky;
  top: 96px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  width: min(1400px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 10px;
  border: 1px solid rgba(64, 104, 140, 0.13);
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.88);
  box-shadow: 0 14px 42px rgba(40, 79, 118, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.system-dock.tj-os-journey a {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(64, 104, 140, 0.14);
  border-radius: 10px;
  color: var(--tj-ink);
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.system-dock.tj-os-journey a:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.system-dock.tj-os-journey small {
  color: var(--tj-cyan);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-dock.tj-os-journey b {
  color: var(--tj-ink);
  font-size: 13px;
  line-height: 1.15;
}

.system-dock.tj-os-journey span {
  color: var(--tj-muted);
  font-size: 11px;
  line-height: 1.35;
}

.tj-os-hero {
  position: relative;
  isolation: isolate;
  width: min(1440px, calc(100% - 32px));
  margin: clamp(26px, 5vw, 62px) auto 0;
  min-height: calc(100vh - 210px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(16px, 3vw, 32px) 0 clamp(32px, 5vw, 70px);
}

.tj-os-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(18, 169, 118, 0.2);
  border-radius: 999px;
  background: rgba(232, 250, 246, 0.86);
  color: #087553;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tj-os-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--tj-ink);
  font-size: clamp(48px, 6vw, 94px);
  font-weight: 920;
  line-height: 0.96;
  letter-spacing: 0;
}

.tj-os-hero h1 span {
  color: var(--tj-blue);
}

.tj-os-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--tj-muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.75;
}

.tj-os-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tj-os-actions a,
.tj-os-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--tj-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--tj-ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.tj-os-actions .primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tj-cyan), var(--tj-blue));
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.2);
}

.tj-os-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.tj-os-trust span {
  min-height: 58px;
  display: grid;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid var(--tj-line);
  border-radius: var(--tj-radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--tj-muted);
  font-size: 12px;
  font-weight: 800;
}

.tj-os-trust b {
  color: var(--tj-ink);
  font-size: 15px;
}

.tj-os-visual {
  position: relative;
  min-height: 650px;
  border: 1px solid var(--tj-line);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(241, 247, 252, 0.92)),
    #ffffff;
  box-shadow: var(--tj-shadow);
  perspective: 1200px;
}

.tj-os-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(232, 242, 247, 0.9)),
    repeating-linear-gradient(90deg, rgba(16, 32, 51, 0.045) 0 1px, transparent 1px 58px);
  pointer-events: none;
}

.tj-os-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.05) contrast(1.02);
}

.tj-os-scene-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#tjOsScene {
  width: 100%;
  height: 100%;
  display: block;
}

.tj-os-command-card {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.14);
  backdrop-filter: blur(22px);
}

.tj-os-command-card h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
}

.tj-os-command-card p {
  margin: 0;
  color: var(--tj-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tj-os-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(94px, 1fr));
  gap: 8px;
  min-width: 250px;
}

.tj-os-health span {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--tj-line);
  border-radius: 10px;
  background: rgba(247, 251, 255, 0.88);
  color: var(--tj-muted);
  font-size: 11px;
  font-weight: 820;
}

.tj-os-health b {
  color: var(--tj-ink);
  font-size: 13px;
}

.tj-os-pillars {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tj-os-pillar {
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--tj-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--tj-soft-shadow);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tj-os-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.12);
}

.tj-os-pillar small {
  color: var(--tj-cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tj-os-pillar h3 {
  margin: 12px 0 8px;
  color: var(--tj-ink);
  font-size: 19px;
  line-height: 1.15;
}

.tj-os-pillar p {
  margin: 0;
  color: var(--tj-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tj-os-page .siteos-flow-suite {
  padding-top: clamp(34px, 5vw, 70px);
}

.tj-os-page .siteos-copy h1 {
  font-family: var(--tj-font) !important;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 920;
  line-height: 1.02;
}

.tj-os-page .hero#paydesk {
  margin-top: 18px;
  padding-top: 64px;
  border-top: 1px solid var(--tj-line);
}

.tj-os-page .hero#paydesk .display {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
}

.tj-os-page .product-card {
  min-height: 100%;
}

.tj-os-page .product-card:nth-child(n+6) {
  display: none;
}

.support-os-page .topbar {
  display: none;
}

.tj-os-page .pg-nav,
.tj-os-page .gp-nav,
.tj-os-page .traffic-nav,
.tj-os-page .kg-topbar,
.tj-os-page .geo-nav,
.tj-os-page .geo-os-nav,
.tj-os-page .geo-os-topbar {
  display: none !important;
}

.siteos-growth-os {
  width: min(1280px, calc(100% - 32px));
  margin: clamp(34px, 6vw, 82px) auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
}

.siteos-growth-os,
.siteos-growth-os * {
  box-sizing: border-box;
}

.siteos-growth-copy,
.siteos-growth-board {
  border: 1px solid var(--tj-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--tj-soft-shadow);
}

.siteos-growth-copy {
  padding: clamp(20px, 3vw, 34px);
}

.siteos-growth-copy h2 {
  margin: 0;
  color: var(--tj-ink);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.siteos-growth-copy p {
  color: var(--tj-muted);
  line-height: 1.7;
}

.siteos-growth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.siteos-growth-actions a,
.siteos-growth-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--tj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tj-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.siteos-growth-actions .primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--tj-cyan), var(--tj-blue));
}

.siteos-growth-board {
  padding: clamp(16px, 2.6vw, 26px);
}

.siteos-growth-board h3 {
  margin: 0 0 16px;
  color: var(--tj-ink);
  font-size: clamp(20px, 2.4vw, 30px);
}

.siteos-growth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.siteos-growth-grid article {
  min-height: 152px;
  padding: 14px;
  border: 1px solid rgba(44, 80, 118, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.78));
}

.siteos-growth-grid small {
  color: var(--tj-cyan);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.siteos-growth-grid b {
  display: block;
  margin-top: 8px;
  color: var(--tj-ink);
  font-size: 16px;
}

.siteos-growth-grid span {
  display: block;
  margin-top: 8px;
  color: var(--tj-muted);
  font-size: 13px;
  line-height: 1.55;
}

.siteos-growth-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 169, 118, 0.18);
  border-radius: 12px;
  background: rgba(232, 250, 246, 0.82);
  color: #087553;
  font-size: 13px;
  font-weight: 850;
}

.tj-os-page:not(.premium-commerce-page) {
  padding-top: 1px;
}

.support-os-page .checkout-grid,
.support-os-page .section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.support-os-page .checkout-grid {
  padding-top: 44px;
}

.tj-os-section-intro {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: 26px;
  border: 1px solid var(--tj-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--tj-soft-shadow);
}

.tj-os-section-intro h1,
.tj-os-section-intro h2 {
  margin: 0;
  color: var(--tj-ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.tj-os-section-intro p {
  max-width: 82ch;
  color: var(--tj-muted);
}

@media (max-width: 1180px) {
  .tj-os-nav {
    grid-template-columns: auto 1fr auto;
  }

  .tj-os-primary-nav {
    order: 5;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .tj-os-hero {
    grid-template-columns: 1fr;
  }

  .tj-os-visual {
    min-height: 560px;
  }

  .tj-os-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .siteos-growth-os {
    grid-template-columns: 1fr;
  }

  .system-dock.tj-os-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tj-os-nav {
    top: 8px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr auto;
    border-radius: 22px;
  }

  .tj-os-brand {
    min-width: 0;
    font-size: 16px;
  }

  .tj-os-primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tj-os-primary-nav a {
    min-height: 34px;
    padding: 0 8px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .tj-os-tools,
  .tj-os-support,
  .tj-os-buy {
    width: 100%;
  }

  .tj-os-tools {
    grid-column: 1 / -1;
  }

  .tj-os-support,
  .tj-os-buy {
    grid-column: span 1;
  }

  .tj-os-tool-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .system-dock.tj-os-journey {
    position: static;
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-dock.tj-os-journey span {
    display: none;
  }

  .tj-os-hero {
    width: calc(100% - 20px);
    min-height: auto;
    margin-top: 28px;
  }

  .tj-os-hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .tj-os-trust,
  .tj-os-pillars {
    grid-template-columns: 1fr;
  }

  .tj-os-pillars {
    width: calc(100% - 20px);
  }

  .tj-os-visual {
    min-height: 520px;
    border-radius: 18px;
  }

  .tj-os-command-card {
    grid-template-columns: 1fr;
  }

  .tj-os-health {
    min-width: 0;
  }

  .siteos-growth-os {
    width: calc(100% - 20px);
    margin-top: 34px;
  }

  .siteos-growth-grid {
    grid-template-columns: 1fr;
  }
}
