.td-story {
  position: relative;
  padding: 28px 0 64px;
  overflow: hidden;
}

.td-story-alt {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 0, 0.08), transparent 58%);
}

.td-story h2,
.td-story h3 {
  color: #fff;
  letter-spacing: -0.03em;
}

.td-story h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.td-story-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 12px;
  border: 1px solid rgba(253, 120, 5, 0.55);
  border-radius: 999px;
  color: #fd7805;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-story-lead,
.td-story-note {
  max-width: 62ch;
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.55;
}

.td-story-note {
  font-size: 13px;
}

.td-story-points,
.td-int-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
  max-width: 920px;
}

.td-story-points li,
.td-int-row a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.td-int-row a:hover,
.td-story-points li:hover {
  border-color: rgba(253, 120, 5, 0.7);
}

.td-story-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.td-assist-ui,
.td-workflow-detail,
.td-metrics article,
.td-cost-panel,
.td-cost-summary {
  border: 1px solid rgba(253, 120, 5, 0.28);
  border-radius: 18px;
  background: #141414;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.td-assist-ui {
  position: relative;
  padding: 18px;
  overflow: hidden;
  color: #fff;
}

.td-assist-top b {
  color: #fff;
}

.td-assist-ui::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.18);
  filter: blur(18px);
  animation: td-story-glow 10s ease-in-out infinite;
  pointer-events: none;
}

.td-assist-top,
.td-assist-actions,
.td-assist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.td-assist-top b,
.td-assist-panel p,
.td-workflow-detail h3,
.td-workflow-detail p,
.td-cost-summary strong {
  position: relative;
}

.td-assist-top span,
.td-assist-meta span,
.td-assist-actions span {
  border-radius: 999px;
  background: #fff4ea;
  color: #9a4b00;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.td-assist-in,
.td-assist-panel {
  position: relative;
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
}

.td-assist-in {
  max-width: 80%;
  background: #f3f4f6;
  color: #1c1c1c;
}

.td-assist-panel {
  margin-left: 12%;
  background: #fff8f2;
  color: #1c1c1c;
  border: 1px solid rgba(253, 120, 5, 0.35);
}

.td-assist-label {
  margin: 0 0 6px;
  color: #c45c00;
  font-size: 12px;
  font-weight: 800;
}

.td-assist-panel p:last-of-type,
.td-assist-in {
  margin-bottom: 0;
}

.td-feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.td-feature-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.td-feature-list strong {
  color: #fff;
}

.td-feature-list span,
.td-lead-path span,
.td-workflow-steps span {
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.4;
}

.td-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 28px;
}

.td-workflow-steps {
  display: grid;
  gap: 8px;
}

.td-workflow-steps button {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121212;
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.td-workflow-steps button.is-on {
  border-color: #fd7805;
  box-shadow: 0 0 0 1px rgba(253, 120, 5, 0.35);
  transform: translateY(-2px);
}

.td-workflow-detail {
  padding: 22px;
}

.td-workflow-detail h3 {
  margin: 8px 0;
  font-size: 28px;
}

.td-lead-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.td-lead-path li {
  min-height: 150px;
  padding: 16px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.td-lead-path b {
  color: #fd7805;
  font-size: 12px;
}

.td-lead-path strong {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
  font-size: 18px;
}

.td-metrics {
  display: grid;
  gap: 10px;
}

.td-metrics article {
  padding: 12px 14px;
}

.td-metrics span {
  color: #b9b9b9;
  font-size: 13px;
}

.td-metrics strong {
  display: block;
  margin: 4px 0 8px;
  color: #fff;
  font-size: 28px;
}

.td-metrics i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fd7805 var(--w), rgba(255, 255, 255, 0.08) var(--w));
}

.td-cost-intro {
  max-width: 720px;
  margin-bottom: 22px;
}

.td-cost,
.td-cost * {
  box-sizing: border-box;
}

.td-cost {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
  color-scheme: dark;
}

.td-cost-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.td-cost-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #121212;
  color: #fff;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.td-cost-channel.is-on {
  border-color: #fd7805;
  background: rgba(253, 120, 5, 0.08);
  box-shadow: 0 0 0 1px rgba(253, 120, 5, 0.35);
}

.td-cost-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.td-cost-channel.is-on .td-cost-mark {
  border-color: #fd7805;
  background: #fd7805;
}

.td-cost-channel.is-on .td-cost-mark::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: rotate(-45deg) translateY(-1px);
}

.td-cost-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #fd7805;
}

.td-cost-ico svg {
  width: 18px;
  height: 18px;
}

.td-cost-name {
  min-width: 0;
}

.td-cost-panel,
.td-cost-summary {
  padding: 16px;
}

.td-cost-panel {
  margin-top: 10px;
}

.td-cost-panel[hidden],
.td-cost-body[hidden],
.td-cost [hidden] {
  display: none !important;
}

.td-cost-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.td-cost-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #fd7805;
  border-bottom: 2px solid #fd7805;
  transform: rotate(45deg);
}

.td-cost-toggle[aria-expanded="false"]::after {
  transform: rotate(-45deg);
}

.td-cost-body {
  padding-top: 8px;
}

.td-cost-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.td-cost-span {
  grid-column: 1 / -1;
}

.td-cost-fields label,
.td-cost-team {
  display: grid;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.td-cost-team {
  margin-top: 14px;
}

.td-cost-field-label {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.td-cost select,
.td-cost input[type="number"] {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e0e0e;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
}

.td-cost-rate {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e0e0e;
  color: #fd7805;
  font-weight: 800;
}

.td-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-seg label {
  position: relative;
  display: inline-flex;
}

.td-seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.td-seg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.td-seg input:checked + span {
  border-color: #fd7805;
  background: rgba(253, 120, 5, 0.14);
  box-shadow: 0 0 0 1px rgba(253, 120, 5, 0.35);
}

.td-seg input:focus-visible + span,
.td-cost-channel:focus-visible,
.td-cost-toggle:focus-visible {
  outline: 2px solid #fd7805;
  outline-offset: 2px;
}

.td-cost-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}

.td-cost-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fd7805;
}

.td-cost-line {
  margin: 10px 0 0;
  color: #fff;
  font-weight: 700;
}

.td-cost-quiet {
  margin: 6px 0 0;
  color: #b9b9b9;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.td-cost-summary {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.td-cost-summary > strong {
  display: block;
  margin: 6px 0 8px;
  color: #fd7805;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
}

.td-cost-kicker,
.td-cost-split-label {
  margin: 0;
  color: #fd7805;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.td-cost-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  margin-top: 12px;
}

.td-cost-bar-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.td-cost-bar i {
  grid-column: 1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.td-cost-bar i span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.34s ease;
}

.td-cost-pct {
  grid-column: 2;
  grid-row: 2;
  color: #b9b9b9;
  font-size: 12px;
  font-weight: 700;
}

.td-cost-included,
.td-cost-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
}

.td-cost-included b,
.td-cost-split strong {
  color: #fd7805;
  font-weight: 800;
  text-align: right;
}

.td-cost-sub,
.td-cost-setup,
.td-cost-plan {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.td-cost-combined {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
  color: #fff;
}

.td-cost-combined strong {
  color: #fff;
  font-size: 22px;
}

.td-cost-setup h3,
.td-cost-plan h3 {
  margin: 4px 0;
  font-size: 22px;
}

.td-cost-setup ul,
.td-cost-features {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.td-cost-setup li,
.td-cost-features li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d7d7d7;
  font-size: 14px;
}

.td-cost-setup li span {
  color: #b9b9b9;
  text-align: right;
}

.td-cost-plan-price {
  margin: 0;
  color: #fd7805;
  font-size: 20px;
  font-weight: 800;
}

.td-cost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
}

@keyframes td-story-glow {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.7; }
  50% { transform: translate3d(-12px, 10px, 0); opacity: 1; }
}

@media (max-width: 991.98px) {
  .td-story-split,
  .td-workflow,
  .td-cost,
  .td-lead-path {
    grid-template-columns: 1fr;
  }
  .td-cost-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .td-workflow-steps button.is-on {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .td-story {
    padding-bottom: 42px;
  }
  .td-assist-ui::before {
    width: 120px;
    height: 120px;
    filter: blur(12px);
    animation: none;
  }
  .td-story-lead,
  .td-story-note {
    font-size: 15px;
  }
  .td-cost-channels {
    grid-template-columns: 1fr 1fr;
  }
  .td-cost-channel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .td-cost-fields {
    grid-template-columns: 1fr;
  }
  .td-cost-fields .td-cost-span {
    grid-column: 1 / -1;
  }
}

.td-journey {
  margin-top: 34px;
}

.td-journey-path {
  position: relative;
  padding: 8px 0 6px;
}

.td-journey ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.td-journey li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  text-align: center;
}

.td-journey li strong {
  color: #fff;
  font-size: 16px;
}

.td-journey li > span:not(.td-journey-node) {
  max-width: 18ch;
  color: #b9b9b9;
  font-size: 13px;
  line-height: 1.4;
}

.td-journey-node {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(253, 120, 5, 0.5);
  border-radius: 50%;
  background: #121212;
  color: #fd7805;
  box-shadow: 0 0 22px rgba(253, 120, 5, 0.14);
}

.td-journey-node svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-journey-core {
  width: 112px;
  height: 112px;
  margin-top: -20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(253, 120, 5, 0.2), #141414 68%);
}

.td-journey-logo {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 50%;
}

.td-journey-logo img {
  position: absolute;
  top: -3.8px;
  left: 4.2px;
  width: auto;
  max-width: none;
  height: 100px;
}

.td-journey-node .td-meta-logo {
  width: 48px;
  height: 26px;
  overflow: visible;
  stroke: none;
  animation: td-meta-glow 2.6s ease-in-out infinite;
}

.td-meta-logo path {
  fill: none;
  stroke: url(#tdMetaGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-meta-light {
  stroke: #fff;
  stroke-dasharray: 12 78;
  animation: td-meta-dash 1.6s linear infinite;
}

.td-journey-core::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(253, 120, 5, 0.75);
  border-radius: 50%;
  animation: td-journey-spin 16s linear infinite;
}

.td-journey-node,
.td-journey-core {
  position: relative;
}

.td-journey-line {
  position: absolute;
  z-index: 0;
  left: 9%;
  right: 9%;
  top: 44px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(253, 120, 5, 0.7) 0 8px, transparent 8px 16px);
  background-size: 32px 2px;
  animation: td-journey-dash 1.1s linear infinite;
}

.td-journey-line i {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fd7805;
  box-shadow: 0 0 14px rgba(253, 120, 5, 0.9);
  animation: td-journey-run 6.5s linear infinite;
}

.td-journey-line i:nth-child(2) { animation-delay: -1.6s; }
.td-journey-line i:nth-child(3) { animation-delay: -3.2s; }
.td-journey-line i:nth-child(4) { animation-delay: -4.8s; }

.td-journey-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.td-journey-points li {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-top: 1px solid rgba(253, 120, 5, 0.28);
  text-align: center;
}

.td-journey-points strong {
  color: #fd7805;
  font-size: 16px;
}

.td-journey-points span {
  color: #b9b9b9;
  font-size: 13px;
  line-height: 1.4;
}

@keyframes td-journey-run {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 12px); opacity: 0; }
}

@keyframes td-journey-run-y {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 12px); opacity: 0; }
}

@keyframes td-journey-dash {
  to { background-position: 32px 0; }
}

@keyframes td-journey-dash-y {
  to { background-position: 0 32px; }
}

@keyframes td-journey-spin {
  to { transform: rotate(360deg); }
}

@keyframes td-meta-dash {
  to { stroke-dashoffset: -108; }
}

@keyframes td-meta-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(0, 100, 224, 0.45)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 45, 138, 0.75)); transform: scale(1.08); }
}

@media (max-width: 767.98px) {
  .td-journey ol {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .td-journey li {
    grid-template-columns: 72px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
    column-gap: 14px;
  }

  .td-journey li > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .td-journey li > span:not(.td-journey-node) {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }

  .td-journey-node,
  .td-journey-core {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
    margin-top: 0;
  }

  .td-journey-logo {
    width: 52px;
    height: 52px;
  }

  .td-journey-logo img {
    top: -2.1px;
    left: 2.4px;
    height: 56.5px;
  }

  .td-journey-line {
    left: 39px;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, rgba(253, 120, 5, 0.7) 0 8px, transparent 8px 16px);
    background-size: 2px 32px;
    animation-name: td-journey-dash-y;
  }

  .td-journey-line i {
    left: -5px;
    top: 0;
    animation-name: td-journey-run-y;
  }

  .td-journey-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-assist-ui::before,
  .td-workflow-steps button,
  .td-cost-bar i span,
  .td-journey-line,
  .td-journey-line i,
  .td-journey-core::before,
  .td-meta-logo,
  .td-meta-logo path {
    animation: none !important;
    transition: none !important;
  }
  .td-workflow-steps button.is-on {
    transform: none;
  }
  .td-journey-line i:nth-child(1) { left: 12%; top: auto; opacity: 1; }
  .td-journey-line i:nth-child(2) { left: 36%; top: auto; opacity: 1; }
  .td-journey-line i:nth-child(3) { left: 60%; top: auto; opacity: 1; }
  .td-journey-line i:nth-child(4) { left: 84%; top: auto; opacity: 1; }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .td-journey-line i:nth-child(1) { left: -5px; top: 12%; }
  .td-journey-line i:nth-child(2) { left: -5px; top: 36%; }
  .td-journey-line i:nth-child(3) { left: -5px; top: 60%; }
  .td-journey-line i:nth-child(4) { left: -5px; top: 84%; }
}
