.tm-ai-page {
  --tm-ink: #0d0d0d;
  --tm-muted: #5d5d5d;
  --tm-faint: #858585;
  --tm-line: #dededb;
  --tm-soft: #f5fbf9;
  --tm-paper: #fff;
  --tm-accent: #14cfa6;
  --tm-accent-dark: #0aaa88;
  --tm-blue: #3574cb;
  --tm-max: 1200px;
  margin-top: 60px;
  color: var(--tm-ink);
  background: var(--tm-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tm-ai-page,
.tm-ai-page * {
  box-sizing: border-box;
}

.tm-ai-page a {
  color: inherit;
  text-decoration: none;
}

.tm-ai-page button,
.tm-ai-page input {
  font: inherit;
}

.tm-ai-page button {
  border: 0;
}

.tm-ai-container {
  width: min(calc(100% - 48px), var(--tm-max));
  margin: 0 auto;
}

.tm-ai-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--tm-accent) !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--tm-accent);
  color: #fff !important;
  font-weight: 650;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.tm-ai-button:hover,
.tm-ai-button:focus-visible {
  background: var(--tm-accent-dark);
  color: #fff !important;
}

.tm-ai-button.tm-ai-secondary {
  background: transparent;
  border-color: currentColor !important;
  color: #fff !important;
}

.tm-ai-button.tm-ai-secondary:hover,
.tm-ai-button.tm-ai-secondary:focus-visible {
  background: rgba(255, 255, 255, .12);
}

.tm-ai-hero {
  height: 615px;
  min-height: 0;
  max-height: 615px;
  padding: 40px 0 0;
  display: flex;
  overflow: hidden;
  background: linear-gradient(135deg, #f3fbf8 0%, #eef8fb 56%, #fff8f3 100%);
}

.tm-ai-hero > .tm-ai-container {
  display: flex;
  flex-direction: column;
}

.tm-ai-breadcrumb {
  margin: 0 0 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tm-faint);
  font-size: 14px;
  line-height: 1.5;
}

.tm-ai-breadcrumb a:hover,
.tm-ai-breadcrumb a:focus-visible {
  color: var(--tm-accent-dark);
}

.tm-ai-hero-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
  align-items: center;
  gap: 42px;
  flex: 1 1 auto;
}

.tm-ai-hero-content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.tm-ai-hero-copy {
  max-width: 700px;
}

.tm-ai-page h1,
.tm-ai-page h2,
.tm-ai-page h3,
.tm-ai-page p,
.tm-ai-page figure {
  margin-top: 0;
}

.tm-ai-page h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -.055em;
  font-weight: 680;
}

.tm-ai-hero-subtitle {
  margin-bottom: 24px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.3;
  font-weight: 620;
}

.tm-ai-hero-lead {
  margin-bottom: 34px;
  color: #444;
  font-size: 16px;
  line-height: 1.75;
}

.tm-ai-query-form {
  max-width: 700px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  border: 1px solid rgba(20, 207, 166, .26);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(17, 84, 74, .12);
}

.tm-ai-field {
  min-width: 0;
  padding: 8px 16px;
  border-radius: 13px;
  background: #f4f9f8;
}

.tm-ai-field label {
  margin-bottom: 2px;
  display: block;
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.tm-ai-field input {
  width: 100%;
  height: 31px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tm-ink);
  font-size: 18px;
}

.tm-ai-field input::placeholder {
  color: #aaa;
}

.tm-ai-query-form .tm-ai-button {
  min-width: 150px;
  border-radius: 14px;
}

.tm-ai-hero-art {
  min-width: 0;
  margin: -44px -96px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: start;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.tm-ai-hero-art img {
  width: min(112%, 400px);
  max-height: 380px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(16, 91, 130, .16));
}

.tm-ai-trust-grid {
  margin-top: auto;
  margin-bottom: 40px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.tm-ai-trust-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: start;
}

.tm-ai-trust-icon {
  width: 28px;
  height: 28px;
  grid-row: 1 / span 2;
  fill: none;
  stroke: var(--tm-accent-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-ai-trust-item h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
}

.tm-ai-trust-item p {
  margin-bottom: 0;
  color: var(--tm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tm-ai-section {
  padding: 96px 0;
  border-top: 1px solid var(--tm-line);
}

.tm-ai-section-heading {
  max-width: 920px;
  margin-bottom: 46px;
}

.tm-ai-section-label {
  margin-bottom: 14px;
  color: var(--tm-accent-dark);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: .02em;
}

.tm-ai-page h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.13;
  letter-spacing: -.045em;
  font-weight: 660;
}

.tm-ai-section-intro {
  margin-bottom: 0;
  color: var(--tm-muted);
  font-size: 18px;
  line-height: 1.7;
}

.tm-ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--tm-line);
  border-left: 1px solid var(--tm-line);
}

.tm-ai-quick-grid {
  grid-template-columns: repeat(2, 1fr);
}

#tm-ai-quick,
#tm-ai-deep {
  padding: 36px 0;
}

#tm-ai-quick .tm-ai-section-heading,
#tm-ai-deep .tm-ai-section-heading {
  margin-bottom: 22px;
}

#tm-ai-quick .tm-ai-section-label,
#tm-ai-deep .tm-ai-section-label {
  margin-bottom: 10px;
}

#tm-ai-quick h2,
#tm-ai-deep h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 3.6vw, 48px);
}

#tm-ai-quick .tm-ai-section-intro,
#tm-ai-deep .tm-ai-section-intro {
  font-size: 16px;
  line-height: 1.55;
}

.tm-ai-feature {
  min-height: 300px;
  padding: 34px 32px;
  border-right: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
}

#tm-ai-quick .tm-ai-feature,
#tm-ai-deep .tm-ai-feature {
  min-height: 190px;
  padding: 22px 28px;
}

.tm-ai-feature-number {
  margin-bottom: 66px;
  display: block;
  color: var(--tm-faint);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#tm-ai-quick .tm-ai-feature-number,
#tm-ai-deep .tm-ai-feature-number {
  margin-bottom: 24px;
  font-size: 16px;
}

.tm-ai-feature h3 {
  margin-bottom: 16px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 620;
}

#tm-ai-quick .tm-ai-feature h3,
#tm-ai-deep .tm-ai-feature h3 {
  margin-bottom: 9px;
  font-size: 22px;
}

.tm-ai-feature p {
  margin-bottom: 0;
  color: var(--tm-muted);
  font-size: 16px;
  line-height: 1.75;
}

#tm-ai-quick .tm-ai-feature p,
#tm-ai-deep .tm-ai-feature p {
  font-size: 15px;
  line-height: 1.55;
}

.tm-ai-data-section {
  background: var(--tm-blue);
  color: #fff;
  border-top-color: var(--tm-blue);
}

.tm-ai-data-section .tm-ai-section-label,
.tm-ai-data-section .tm-ai-section-intro {
  color: rgba(255, 255, 255, .76);
}

.tm-ai-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-left: 1px solid rgba(255, 255, 255, .24);
}

.tm-ai-data-item {
  min-height: 240px;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.tm-ai-data-value {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.tm-ai-data-name {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.tm-ai-data-detail {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  line-height: 1.65;
}

.tm-ai-data-footnote {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.7;
}

.tm-ai-testimonials {
  background: #f2fbf8;
}

.tm-ai-quotes-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #9bcfc0 transparent;
}

.tm-ai-quotes-grid::-webkit-scrollbar {
  height: 6px;
}

.tm-ai-quotes-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9bcfc0;
}

.tm-ai-quotes-grid::-webkit-scrollbar-track {
  background: transparent;
}

.tm-ai-quote {
  height: 320px;
  padding: 34px;
  border: 1px solid var(--tm-line);
  display: flex;
  flex-direction: column;
  background: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.tm-ai-quote-text {
  min-height: 0;
  margin-bottom: 24px;
  padding-right: 10px;
  flex: 1 1 auto;
  overflow-y: auto;
  color: var(--tm-ink);
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: -.01em;
  scrollbar-width: thin;
  scrollbar-color: #c4dcd5 transparent;
}

.tm-ai-quote-role {
  margin-bottom: 6px;
  font-weight: 600;
}

.tm-ai-quote-scene {
  margin-bottom: 0;
  color: var(--tm-faint);
  font-size: 14px;
  line-height: 1.6;
}

.tm-ai-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--tm-line);
  border-left: 1px solid var(--tm-line);
}

.tm-ai-step {
  min-height: 210px;
  padding: 28px 24px;
  border-right: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
}

.tm-ai-step-number {
  margin-bottom: 54px;
  display: block;
  color: var(--tm-faint);
  font-size: 16px;
  line-height: 1;
}

.tm-ai-step h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.tm-ai-step p {
  margin-bottom: 0;
  color: var(--tm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tm-ai-path-actions,
.tm-ai-final-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-ai-path-actions .tm-ai-secondary {
  color: var(--tm-accent-dark) !important;
}

.tm-ai-path-actions .tm-ai-secondary:hover,
.tm-ai-path-actions .tm-ai-secondary:focus-visible {
  background: var(--tm-soft);
}

.tm-ai-faq-list {
  border-top: 1px solid var(--tm-line);
}

.tm-ai-faq-list details {
  border-bottom: 1px solid var(--tm-line);
}

.tm-ai-faq-list summary {
  padding: 26px 52px 26px 0;
  position: relative;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 620;
}

.tm-ai-faq-list summary::-webkit-details-marker {
  display: none;
}

.tm-ai-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 21px;
  right: 4px;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.tm-ai-faq-list details[open] summary::after {
  content: "−";
}

.tm-ai-faq-list details p {
  max-width: 920px;
  margin-bottom: 0;
  padding: 0 0 28px;
  color: var(--tm-muted);
  font-size: 16px;
  line-height: 1.8;
}

.tm-ai-final-cta {
  padding: 100px 0;
  background: var(--tm-blue);
  color: #fff;
}

/* Keep the shared footer component, but use the homepage's current green treatment on /tm. */
.tm-ai-page ~ .browser_collection {
  background: linear-gradient(94deg, #10c2bc 0%, rgba(127, 255, 121, .15) 102%);
}

.tm-ai-page ~ .browser_collection .container p {
  color: #6e6e6e;
}

.tm-ai-final-cta h2 {
  max-width: 1000px;
  margin-bottom: 0;
}

.tm-ai-final-cta .tm-ai-button:first-child {
  background: #fff;
  border-color: #fff !important;
  color: #111 !important;
}

.tm-ai-final-cta .tm-ai-button:first-child:hover,
.tm-ai-final-cta .tm-ai-button:first-child:focus-visible {
  background: #f4f4f4;
}

@media (min-width: 981px) {
  #tm-ai-data,
  #tm-ai-testimonials {
    padding: 32px 0;
  }

  #tm-ai-testimonials {
    padding: 30px 0;
  }

  #tm-ai-data .tm-ai-section-heading,
  #tm-ai-testimonials .tm-ai-section-heading {
    margin-bottom: 22px;
  }

  #tm-ai-data .tm-ai-section-label,
  #tm-ai-testimonials .tm-ai-section-label {
    margin-bottom: 10px;
  }

  #tm-ai-data h2,
  #tm-ai-testimonials h2 {
    margin-bottom: 14px;
    font-size: clamp(34px, 3.6vw, 48px);
  }

  #tm-ai-data .tm-ai-section-intro,
  #tm-ai-testimonials .tm-ai-section-intro {
    font-size: 16px;
    line-height: 1.55;
  }

  #tm-ai-data .tm-ai-data-item {
    min-height: 178px;
    padding: 22px 28px;
  }

  #tm-ai-data .tm-ai-data-value {
    margin-bottom: 14px;
    font-size: clamp(32px, 3vw, 44px);
  }

  #tm-ai-data .tm-ai-data-name {
    margin-bottom: 7px;
    font-size: 17px;
  }

  #tm-ai-data .tm-ai-data-detail {
    font-size: 14px;
    line-height: 1.5;
  }

  #tm-ai-data .tm-ai-data-footnote {
    margin-top: 14px;
    line-height: 1.5;
  }

  #tm-ai-testimonials .tm-ai-quote {
    height: 300px;
    padding: 22px 24px;
  }

  #tm-ai-testimonials .tm-ai-quote-text {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.55;
  }

  #tm-ai-testimonials .tm-ai-quote-role {
    margin-bottom: 2px;
    font-size: 14px;
  }

  #tm-ai-testimonials .tm-ai-quote-scene {
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (max-width: 980px) {
  .tm-ai-features-grid,
  .tm-ai-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-ai-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .tm-ai-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-ai-quotes-grid {
    grid-auto-columns: calc((100% - 16px) / 2);
  }

  .tm-ai-hero-main {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
    gap: 24px;
  }

  .tm-ai-hero-art img {
    width: min(108%, 350px);
    max-height: 340px;
  }
}

@media (max-width: 900px) {
  .tm-ai-hero {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .tm-ai-hero-main {
    grid-template-columns: 1fr;
  }

  .tm-ai-hero-art {
    display: none;
  }
}

@media (max-width: 720px) {
  .tm-ai-container {
    width: min(calc(100% - 32px), var(--tm-max));
  }

  .tm-ai-hero {
    min-height: auto;
    padding: 54px 0 40px;
  }

  .tm-ai-breadcrumb {
    margin-bottom: 34px;
  }

  .tm-ai-page h1 {
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1.16;
  }

  .tm-ai-hero-subtitle {
    margin-bottom: 28px;
    font-size: 20px;
  }

  .tm-ai-hero-lead {
    margin-bottom: 34px;
    font-size: 16px;
    line-height: 1.65;
  }

  .tm-ai-query-form {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .tm-ai-query-form .tm-ai-button {
    min-height: 52px;
  }

  .tm-ai-trust-grid {
    margin-top: 34px;
    margin-bottom: 0;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tm-ai-section {
    padding: 72px 0;
  }

  .tm-ai-section-heading {
    margin-bottom: 34px;
  }

  .tm-ai-page h2,
  #tm-ai-quick h2,
  #tm-ai-deep h2 {
    font-size: 36px;
  }

  .tm-ai-section-intro {
    font-size: 17px;
  }

  .tm-ai-features-grid,
  .tm-ai-quick-grid,
  .tm-ai-data-grid,
  .tm-ai-steps {
    grid-template-columns: 1fr;
  }

  .tm-ai-quotes-grid {
    grid-auto-columns: minmax(280px, calc(100% - 24px));
  }

  .tm-ai-testimonials .tm-ai-container {
    width: min(calc(100% - 40px), var(--tm-max));
  }

  .tm-ai-feature,
  #tm-ai-quick .tm-ai-feature,
  #tm-ai-deep .tm-ai-feature,
  .tm-ai-data-item,
  .tm-ai-step {
    min-height: auto;
  }

  .tm-ai-feature-number,
  #tm-ai-quick .tm-ai-feature-number,
  #tm-ai-deep .tm-ai-feature-number,
  .tm-ai-step-number {
    margin-bottom: 30px;
  }

  .tm-ai-quote {
    height: 340px;
    padding: 28px 24px;
  }

  .tm-ai-final-cta {
    padding: 76px 0;
  }

  .tm-ai-path-actions,
  .tm-ai-final-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .tm-ai-hero-lead {
    display: none;
  }
}
