.td-features {
  --td-canvas: #fbfaf8;
  --td-card: #ffffff;
  --td-text: #312d37;
  --td-muted: #8d8f98;
  --td-line: rgba(24, 24, 27, 0.07);
  --td-orange: #ff5a18;
  --td-blue: #1473e6;
  --td-green: #0d6a3f;
  --td-yellow: #956400;
  --td-radius: 30px;
  --td-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 18px clamp(80px, 9vw, 120px);
  background: var(--td-canvas);
  color: var(--td-text);
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: 0;
}

.td-features::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.td-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.td-section-head {
  max-width: 820px;
  margin: 0 auto clamp(34px, 6vw, 64px);
  text-align: center;
}

.td-section-head h2 {
  margin: 0;
  color: var(--td-text);
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 700;
}

.td-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.td-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 3vw, 34px);
  min-height: 520px;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: var(--td-card);
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.045);
  overflow: hidden;
}

.td-card.privacy,
.td-card.accuracy {
  grid-column: span 5;
}

.td-card.accuracy .td-visual {
  align-self: center;
}

.td-card.formatting,
.td-card.shortcuts {
  grid-column: span 7;
}

.td-card.search {
  grid-column: span 12;
}

.td-copy {
  max-width: 700px;
}

.td-card h3 {
  margin: 0;
  color: var(--td-text);
  font-size: clamp(14px, 1.45vw, 19px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 600;
}

.td-card p {
  margin: 10px 0 0;
  max-width: 690px;
  color: var(--td-muted);
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.48;
  letter-spacing: -0.008em;
  font-weight: 400;
}

.td-visual {
  min-width: 0;
  align-self: end;
}

.td-features .surface {
  position: relative;
  width: 100%;
  border: 1px solid var(--td-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.04);
  overflow: hidden;
}

.td-wave {
  --wave-width: 64px;
  --wave-height: 28px;
  --wave-color: var(--td-orange);
  --wave-bar-width: calc(var(--wave-width) / 11);
  --duration: 0.29s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wave-bar-width);
  width: var(--wave-width);
  height: var(--wave-height);
  color: var(--wave-color);
  flex: 0 0 auto;
}

.td-wave span {
  display: block;
  width: var(--wave-bar-width);
  border-radius: 999px;
  background: currentColor;
  animation: tdWave var(--duration) ease-in-out infinite;
}

.td-wave span:nth-child(1) {
  height: 46%;
  animation-delay: -0.36s;
  opacity: 0.94;
}

.td-wave span:nth-child(2) {
  height: 70%;
  animation-delay: -0.3s;
}

.td-wave span:nth-child(3) {
  height: 94%;
  animation-delay: -0.24s;
}

.td-wave span:nth-child(4) {
  height: 120%;
  animation-delay: -0.18s;
}

.td-wave span:nth-child(5) {
  height: 98%;
  animation-delay: -0.12s;
}

.td-wave span:nth-child(6) {
  height: 70%;
  animation-delay: -0.06s;
}

@keyframes tdWave {
  0%,
  100% {
    transform: scaleY(0.42);
  }

  50% {
    transform: scaleY(1);
  }
}

.privacy-surface {
  min-height: 310px;
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 14px;
  align-content: center;
}

.privacy-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--td-line);
  border-radius: 20px;
  background: #ffffff;
}

.privacy-row svg {
  width: 29px;
  height: 29px;
  color: #606761;
  justify-self: center;
}

.privacy-row strong {
  display: block;
  color: var(--td-text);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.privacy-row span {
  display: block;
  margin-top: 6px;
  color: var(--td-muted);
  font-size: 15px;
  line-height: 1.35;
}

.email-surface-clean {
  width: 100%;
  min-height: 340px;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 4px 0 0;
  background: transparent;
}

.email-bubble-clean {
  position: relative;
  width: min(560px, 94%);
  justify-self: center;
  min-height: 70px;
  padding: 16px 22px 16px 88px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--td-line);
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.05);
  color: var(--td-text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.email-bubble-clean .td-wave {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  --wave-width: 52px;
  --wave-height: 16px;
}

.formatted-email {
  width: min(600px, 100%);
  justify-self: center;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--td-line);
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.045);
  overflow: hidden;
}

.email-meta {
  display: grid;
  gap: 8px;
  padding: 17px 22px;
  background: #f6f8ff;
  border-bottom: 1px solid var(--td-line);
  color: #667086;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 500;
}

.email-body-clean {
  padding: 26px 28px 28px;
  color: var(--td-text);
  font-size: 19px;
  line-height: 1.62;
}

.email-body-clean p {
  margin: 0 0 18px;
}

.email-body-clean p:last-child {
  margin-bottom: 0;
}

.search-surface {
  min-height: 560px;
  padding: clamp(16px, 2.2vw, 24px);
  display: grid;
  align-content: stretch;
}

.search-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 510px;
  overflow: hidden;
  padding-bottom: 54px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.search-track {
  height: 100%;
  display: flex;
  transition: transform 0.48s var(--td-ease);
  will-change: transform;
}

.search-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 0 2px;
  min-width: 0;
}

.search-input-bubble {
  position: relative;
  min-height: 76px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--td-line);
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.045);
  padding: 15px 20px 15px 112px;
  color: var(--td-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.search-input-bubble .td-wave {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  --wave-width: 58px;
  --wave-height: 18px;
}

.search-results {
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--td-line);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(24, 24, 27, 0.04);
  padding: 16px 20px;
  display: grid;
  align-content: start;
  gap: 0;
}

.sr-item {
  padding: 10px 0 12px;
  border-bottom: 1px solid #f0f1f4;
}

.sr-item:first-child {
  padding-top: 0;
}

.sr-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sr-title {
  color: var(--td-blue);
  font-size: 19px;
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 600;
}

.sr-desc {
  margin-top: 5px;
  color: #525764;
  font-size: 14px;
  line-height: 1.42;
}

.search-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--td-line);
  box-shadow: 0 6px 14px rgba(24, 24, 27, 0.045);
}

.search-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #d8dbe2;
  padding: 0;
  cursor: pointer;
}

.search-dot.active {
  background: var(--td-orange);
}

.shortcuts-surface {
  min-height: 360px;
  padding: clamp(22px, 2.6vw, 30px);
  display: block;
}

.shortcut-head h4 {
  margin: 0 0 22px;
  color: var(--td-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 600;
}

.shortcut-list {
  display: grid;
  gap: 14px;
}

.shortcut-item {
  padding: 16px 20px;
  border-radius: 17px;
  border: 1px solid var(--td-line);
  background: #ffffff;
}

.shortcut-item strong {
  display: block;
  color: var(--td-text);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

.shortcut-item span {
  display: block;
  margin-top: 6px;
  color: #9698a2;
  font-size: 15px;
  line-height: 1.2;
  font-family: var(--font-main);
  letter-spacing: 0.02em;
}

.accuracy-surface {
  width: 100%;
  min-height: 350px;
  padding: 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.accuracy-number {
  color: var(--td-green);
  font-size: clamp(110px, 13vw, 176px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.accuracy-label {
  color: var(--td-green);
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 600;
}

.accuracy-sub {
  margin-top: 12px;
  color: #a8b5ad;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .td-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .td-card.privacy,
  .td-card.formatting,
  .td-card.search,
  .td-card.shortcuts,
  .td-card.accuracy {
    grid-column: auto;
  }

  .td-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .td-features {
    padding: 44px 14px 72px;
  }

  .td-section-head {
    text-align: left;
    margin-bottom: 28px;
  }

  .td-section-head h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .td-card {
    padding: 26px 22px;
    border-radius: 28px;
    gap: 26px;
  }

  .td-card h3 {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.14;
  }

  .td-card p {
    font-size: 11px;
    line-height: 1.48;
  }

  .privacy-surface {
    padding: 16px;
    gap: 12px;
  }

  .privacy-row {
    grid-template-columns: 42px 1fr;
    padding: 16px 14px;
    gap: 12px;
  }

  .privacy-row strong {
    font-size: 17px;
  }

  .privacy-row span {
    font-size: 14px;
  }

  .email-surface-clean {
    min-height: auto;
    gap: 18px;
  }

  .email-bubble-clean {
    width: 100%;
    min-height: 74px;
    padding: 15px 16px 15px 80px;
    font-size: 14px;
  }

  .email-bubble-clean .td-wave {
    left: 18px;
    --wave-width: 46px;
    --wave-height: 14px;
  }

  .email-meta {
    font-size: 14px;
    padding: 15px 18px;
  }

  .email-body-clean {
    padding: 24px 22px;
    font-size: 18px;
  }

  .search-surface {
    min-height: 560px;
    padding: 16px;
  }

  .search-carousel {
    min-height: 520px;
    padding-bottom: 60px;
  }

  .search-slide {
    gap: 15px;
  }

  .search-input-bubble {
    min-height: 78px;
    padding: 14px 14px 14px 98px;
    font-size: 14px;
  }

  .search-input-bubble .td-wave {
    left: 18px;
    --wave-width: 56px;
    --wave-height: 18px;
  }

  .search-results {
    padding: 15px 18px;
  }

  .sr-item {
    padding: 10px 0;
  }

  .sr-title {
    font-size: 19px;
  }

  .sr-desc {
    font-size: 14px;
  }

  .shortcuts-surface {
    padding: 18px;
  }

  .shortcut-head h4 {
    font-size: 40px;
  }

  .shortcut-item {
    padding: 16px 18px;
  }

  .shortcut-item strong {
    font-size: 19px;
  }

  .shortcut-item span {
    font-size: 14px;
  }

  .accuracy-surface {
    min-height: 310px;
    padding: 12px 0 0;
  }

  .accuracy-number {
    font-size: clamp(108px, 30vw, 138px);
  }

  .accuracy-label {
    font-size: clamp(40px, 11vw, 52px);
  }
}
