/**
 * Trip Desk — B2B advisors marketing (black / white / grey).
 */
:root {
  --td-ink: #0e0e0e;
  --td-ink-soft: #2a2a2a;
  --td-muted: #6a6a6a;
  --td-line: rgba(14, 14, 14, 0.14);
  --td-paper: #f0f0ee;
  --td-white: #ffffff;
  --td-max: 1180px;
  --td-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.td-b2b {
  margin: 0;
  min-height: 100vh;
  color: var(--td-ink);
  background: #ebebe8;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.td-b2b a {
  color: inherit;
}

.td-skip {
  position: absolute;
  left: -9999px;
}
.td-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  background: #111;
  color: #fff;
  padding: 8px 12px;
}

.td-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 40px);
  backdrop-filter: blur(14px);
  background: rgba(235, 235, 232, 0.9);
  border-bottom: 1px solid var(--td-line);
}

.td-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-family: "Syne", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.td-brand span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-muted);
  font-family: "IBM Plex Sans", sans-serif;
}

.td-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.td-nav-links a {
  text-decoration: none;
  color: var(--td-ink-soft);
  font-size: 0.95rem;
}

.td-nav-links a:hover {
  color: var(--td-ink);
}

.td-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--td-ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.td-btn:hover {
  transform: translateY(-1px);
}

.td-btn-primary {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.td-btn-primary:hover {
  background: #000 !important;
}

.td-btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.22);
  color: #111;
}

.td-btn-ghost:hover {
  background: #fff;
}

/* —— Hero: one composition, product as dominant plane —— */
.td-hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 4vw, 40px) clamp(36px, 6vh, 64px);
  border-bottom: 1px solid var(--td-line);
  background:
    radial-gradient(900px 520px at 78% 28%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(165deg, #f4f4f1 0%, #e4e4e0 48%, #cfcfc9 100%);
}

.td-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: tdCopyIn 0.85s var(--td-ease) both;
}

@keyframes tdCopyIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.td-kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--td-muted);
}

.td-hero-brand {
  margin: 0 0 14px;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.td-hero-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--td-muted);
}

.td-panel-note {
  margin: 18px 0 16px !important;
}

.td-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(235, 235, 232, 0.94);
  border-top: 1px solid var(--td-line);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 0.35s var(--td-ease);
  display: none;
}

.td-sticky-cta.is-show {
  transform: translateY(0);
}

.td-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  border-radius: 3px;
}

@media (max-width: 820px) {
  .td-sticky-cta {
    display: block;
  }
  .td-nav-cta {
    display: none;
  }
}

.td-hero-brand em {
  font-style: normal;
  color: var(--td-muted);
  font-weight: 650;
}

.td-hero h1 {
  margin: 0 0 12px;
  max-width: 16ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.td-hero-lead {
  margin: 0 0 26px;
  max-width: 38ch;
  color: var(--td-muted);
  font-size: 1.05rem;
}

.td-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Product visual — Agent Desk preview */
.td-hero-visual {
  position: relative;
  z-index: 1;
  min-height: 420px;
  animation: tdDeskIn 1s 0.08s var(--td-ease) both;
}

@keyframes tdDeskIn {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.td-desk {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 460px;
  height: min(62vh, 560px);
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #f7f7f5;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
}

.td-desk-rail {
  background: #111;
  color: #f3f3f1;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-desk-rail .td-desk-logo {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin: 0 0 18px 6px;
}

.td-desk-rail button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #bdbdbd;
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.86rem;
  cursor: default;
}

.td-desk-rail button.is-on {
  background: #2a2a2a;
  color: #fff;
}

.td-desk-main {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    linear-gradient(180deg, #fafaf8 0%, #f3f3f0 100%);
}

.td-desk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.td-desk-head h3 {
  margin: 0 0 2px;
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.td-desk-head p {
  margin: 0;
  color: var(--td-muted);
  font-size: 0.88rem;
}

.td-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--td-line);
  background: #fff;
  font-size: 0.78rem;
  color: var(--td-muted);
  white-space: nowrap;
}

.td-desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.td-desk-card {
  border: 1px solid var(--td-line);
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-desk-card h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-muted);
  font-weight: 600;
}

.td-desk-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.td-desk-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.td-desk-row span {
  color: var(--td-muted);
  font-size: 0.82rem;
}

.td-inject {
  margin-top: auto;
  border: 1px solid #111;
  background: #111;
  color: #f3f3f1;
  padding: 14px;
}

.td-inject label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 8px;
}

.td-inject code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  word-break: break-all;
}

.td-desk-live {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--td-line);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-muted);
  animation: tdPulse 2.4s ease-in-out infinite;
}

.td-desk-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
  display: block;
}

@keyframes tdPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.td-band {
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  background: #e4e4e0;
}

.td-band-inner {
  width: min(100%, var(--td-max));
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) clamp(20px, 4vw, 40px);
}

.td-band-inner h2 {
  margin: 0 0 12px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.td-pain {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--td-line);
  margin-top: 28px;
}

.td-pain article {
  padding: 22px 0;
  border-bottom: 1px solid var(--td-line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--td-ease), transform 0.55s var(--td-ease);
}

.td-pain article.is-in {
  opacity: 1;
  transform: none;
}

.td-pain strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.td-pain p {
  margin: 0;
  max-width: 52ch;
  color: var(--td-muted);
}

.td-audience {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--td-line);
}

.td-audience > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--td-line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--td-ease), transform 0.55s var(--td-ease);
}

.td-audience > div.is-in {
  opacity: 1;
  transform: none;
}

.td-audience strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Syne", sans-serif;
  letter-spacing: -0.02em;
}

.td-audience p {
  margin: 0;
  color: var(--td-muted);
  max-width: 48ch;
}

@media (min-width: 880px) {
  .td-pain,
  .td-audience {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 28px;
    border-top: 0;
  }

  .td-pain article,
  .td-audience > div {
    border-top: 1px solid var(--td-line);
    border-bottom: 0;
    padding-top: 28px;
  }
}

.td-about {
  position: relative;
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  overflow: hidden;
  background: #e8e8e4;
}

.td-about-media {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
}

.td-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.td-about-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--td-max));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) clamp(20px, 4vw, 40px);
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .td-about-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.td-about-copy h2 {
  margin: 0 0 14px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
}

.td-about-body {
  margin: 0 0 16px;
  max-width: 48ch;
  color: var(--td-muted);
}

.td-about-close {
  margin-top: 8px;
}

.td-studio-list {
  list-style: none;
  margin: 20px 0 8px;
  padding: 0;
  border-top: 1px solid var(--td-line);
}

.td-studio-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--td-line);
  font-size: 0.98rem;
}

.td-studio-list strong {
  font-weight: 650;
  color: var(--td-ink);
}

.td-about-figure {
  margin: 0;
}

.td-about-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.18);
  filter: grayscale(0.35);
}

.td-about-figure figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--td-muted);
}

.td-section {
  width: min(100%, var(--td-max));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) clamp(20px, 4vw, 40px);
}

.td-step em,
.td-list em,
.td-section-lead em {
  font-style: normal;
  font-weight: 650;
  color: var(--td-ink);
}

.td-section h2 {
  margin: 0 0 12px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.td-section-lead {
  margin: 0 0 36px;
  max-width: 42ch;
  color: var(--td-muted);
}

.td-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--td-line);
}

.td-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--td-line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--td-ease), transform 0.55s var(--td-ease);
}

.td-step.is-in {
  opacity: 1;
  transform: none;
}

.td-step b {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.td-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.td-step p {
  margin: 0;
  color: var(--td-muted);
  max-width: 48ch;
}

.td-split {
  display: grid;
  gap: 40px;
}

@media (min-width: 880px) {
  .td-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.td-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--td-line);
}

.td-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--td-line);
}

.td-list strong {
  display: block;
  margin-bottom: 4px;
}

.td-list span {
  color: var(--td-muted);
}

.td-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--td-line);
}

.td-panel h3 {
  margin: 0 0 8px;
  font-family: "Syne", sans-serif;
  letter-spacing: -0.02em;
}

.td-panel p {
  margin: 0 0 18px;
  color: var(--td-muted);
}

.td-code {
  display: block;
  padding: 14px 16px;
  background: #111;
  color: #f3f3f1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  word-break: break-all;
}

.td-faq details {
  border-bottom: 1px solid var(--td-line);
  padding: 18px 0;
}

.td-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.td-faq summary::-webkit-details-marker {
  display: none;
}

.td-faq details p {
  margin: 10px 0 0;
  color: var(--td-muted);
  max-width: 60ch;
}

.td-cta {
  text-align: left;
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent);
}

.td-footer {
  padding: 36px clamp(20px, 4vw, 40px) 48px;
  color: var(--td-muted);
  font-size: 0.92rem;
  background: #e4e4e0;
}

.td-footer-inner {
  width: min(100%, var(--td-max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}

.td-footer a {
  color: var(--td-ink-soft);
  text-decoration: none;
}

.td-footer a:hover {
  text-decoration: underline;
}

.td-nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--td-line);
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .td-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .td-hero-visual {
    order: -1;
    min-height: 0;
  }

  .td-desk {
    height: auto;
    min-height: 380px;
  }
}

@media (max-width: 820px) {
  .td-nav-links {
    display: none;
  }
  .td-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .td-nav.is-open .td-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 16px 20px 24px;
    background: #ebebe8;
    border-bottom: 1px solid var(--td-line);
  }
  .td-desk {
    grid-template-columns: 1fr;
  }
  .td-desk-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .td-desk-rail .td-desk-logo {
    width: 100%;
    margin-bottom: 6px;
  }
  .td-desk-grid {
    grid-template-columns: 1fr;
  }
}
