/* Aurora stays behind the existing Launch hero copy and illustration. */
body.home main > .hero {
  --tdvp-glow-x: 77%;
  --tdvp-glow-y: 68%;
  position: relative;
  isolation: isolate;
}
body.home main > .hero::before,
body.home main > .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.home main > .hero::before {
  background:
    radial-gradient(ellipse at 75% 72%, #267cff52, transparent 54%),
    radial-gradient(ellipse at 94% 82%, #8551ff59, transparent 37%),
    radial-gradient(ellipse at 40% 112%, #5546e047, transparent 57%);
}
body.home main > .hero::after {
  opacity: 0;
  background: radial-gradient(ellipse 310px 210px at var(--tdvp-glow-x) var(--tdvp-glow-y), #68bfff42, #7b58f920 53%, transparent 100%);
}
body.home main > .hero .hero-grid { position: relative; z-index: 1; }
body.home main > .hero .actions .btn:focus-visible {
  outline: 3px solid #ffbf5c;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.home main > .hero::before { animation: tdvp-aurora 4.8s ease-in-out both; }
  body.home main > .hero::after { transition: opacity .32s ease-out; }
  body.home main > .hero.tdvp-hero-tracking::after { opacity: 1; }
  body.home main > .hero .actions .btn { transition: background .2s, box-shadow .2s, transform .2s; }
  body.home main > .hero .actions .btn:hover {
    box-shadow: 0 4px 22px #4d9bff6e;
  }
}
@keyframes tdvp-aurora {
  from { opacity: .68; }
  45% { opacity: .98; }
  to { opacity: .84; }
}

body.home .tdvp-home-tools { display: grid; gap: 14px; }
body.home .tdvp-savings {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(18px, 2.8vw, 34px);
  border-radius: 20px;
  border: 1px solid #284777;
  background: radial-gradient(ellipse at 100% 115%, #382772, transparent 66%), linear-gradient(113deg, #081831, #132f60);
  color: #fff;
}
body.home .tdvp-savings h2,
body.home .tdvp-spotlight h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.08rem);
  line-height: 1.12;
  margin: 0 0 8px;
}
body.home .tdvp-savings-intro p { color: #d7e4f9; max-width: 43ch; font-size: .91rem; }
body.home .tdvp-savings-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #6e89bc;
  border-radius: 10px;
  background: #294b7e;
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
}
body.home .tdvp-savings-link:hover { background: #385d97; text-decoration: underline; }
body.home .tdvp-savings-demo { min-width: 0; }
body.home .tdvp-sample-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-inline-size: 0;
  gap: 5px 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
body.home .tdvp-sample-price { min-width: 0; }
body.home .tdvp-sample-price label { display: block; font-size: .8rem; font-weight: 700; }
body.home .tdvp-sample-price > span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 10px 6px;
  margin-top: 3px;
  border: 1px solid #adc6ef;
  border-radius: 9px;
  background: #f6f9ff;
  color: #233e69;
}
body.home .tdvp-sample-price input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 3px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #101f40;
  font-weight: 730;
  font-variant-numeric: tabular-nums;
}
body.home .tdvp-sample-price:has(input[aria-invalid="true"]) > span { border-color: #ffb4ad; box-shadow: inset 0 0 0 1px #ffb4ad; }
body.home .tdvp-sample-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  font-size: .86rem;
  cursor: pointer;
}
body.home .tdvp-sample-toggle input { width: 18px; height: 18px; margin: 0 0 0 3px; accent-color: #69bcff; }
body.home .tdvp-sample-hint { min-height: 1.45em; margin: 0 0 9px; color: #d7e4f9; font-size: .74rem; }
body.home .tdvp-sample-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
body.home .tdvp-sample-results > div {
  min-width: 0;
  padding: clamp(6px, 1.35vw, 13px);
  border: 1px solid #536c9c;
  border-radius: 10px;
  background: #15294f;
}
body.home .tdvp-sample-results dt { color: #dbe9ff; font-size: .74rem; line-height: 1.25; }
body.home .tdvp-sample-results dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(.83rem, 1.28vw, 1.19rem);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
body.home .tdvp-sample-results > div:last-child { background: #22365b; border-color: #6086b7; }
body.home .tdvp-sample-results [data-result="saved"] { color: #9edaff; }

body.home .tdvp-spotlight {
  border: 1px solid #d7e3f4;
  border-radius: 20px;
  padding: clamp(17px, 2.8vw, 30px);
  background: linear-gradient(120deg, #f0f6ff, #fbfcff 54%, #f3efff);
  color: #101f40;
}
body.home .tdvp-spotlight h2 em { color: #0857d9; }
body.home .tdvp-spotlight-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 15px;
}
body.home .tdvp-spotlight-head p { margin: 0; color: #485975; font-size: .91rem; }
body.home .tdvp-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 6px;
  color: #0857d9;
  font-weight: 730;
  font-size: .86rem;
}
body.home .tdvp-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.home .tdvp-tool-card {
  --tdvp-card-accent: #174f9f;
  --tdvp-card-tint: #e0eeff;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #cfdef1;
  border-radius: 14px;
  background: linear-gradient(145deg, white 56%, var(--tdvp-card-tint));
  color: #101f40;
  text-decoration: none;
}
body.home .tdvp-violet { --tdvp-card-accent: #633ba2; --tdvp-card-tint: #eee7ff; }
body.home .tdvp-green { --tdvp-card-accent: #196a4b; --tdvp-card-tint: #e3f5eb; }
body.home .tdvp-orange { --tdvp-card-accent: #904819; --tdvp-card-tint: #fff0df; }
body.home .tdvp-tool-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: var(--tdvp-card-tint);
  color: var(--tdvp-card-accent);
}
body.home .tdvp-card-copy { grid-row: 2; grid-column: 1 / -1; display: grid; gap: 4px; }
body.home .tdvp-card-copy strong { font-size: .94rem; line-height: 1.28; }
body.home .tdvp-card-copy span { color: #485975; font-size: .8rem; line-height: 1.43; }
body.home .tdvp-card-arrow { color: var(--tdvp-card-accent); font-size: 1.1rem; }
body.home .tdvp-tool-card:hover { border-color: #83acdf; }
body.home .tdvp-tool-card:hover strong { text-decoration: underline; }

/* If the homepage already embeds the Tools landing, polish those same cards. */
body.home .home-body .tdi[data-tool="landing"] .tdi-panel {
  background: linear-gradient(145deg, #fff 54%, #e3eefe);
  border-color: #cfdef1;
}
body.home .home-body .tdi[data-tool="landing"] .tdi-panel:nth-child(even) {
  background: linear-gradient(145deg, #fff 54%, #eee7ff);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.home .tdvp-tool-card { transition: transform .2s, box-shadow .2s; }
  body.home .tdvp-tool-card:hover { transform: translateY(-3px); box-shadow: 0 7px 18px #1334671c; }
}
@media (max-width: 900px) {
  body.home .tdvp-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  body.home .tdvp-savings { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 420px) {
  body.home .tdvp-tool-grid { grid-template-columns: 1fr; }
  body.home .tdvp-tool-card { grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; }
  body.home .tdvp-card-copy { grid-row: auto; grid-column: auto; }
}
