.tax-tool-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding-top: 54px;
  padding-bottom: 0;
}

.tax-tool-visual {
  min-height: clamp(260px, 34vw, 430px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 52px rgba(18, 37, 74, 0.1);
}

.tax-tool-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tax-tool-intro {
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 254, 0.96)),
    var(--white);
  box-shadow: 0 18px 44px rgba(18, 37, 74, 0.07);
}

.tax-tool-intro h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.tax-tool-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.tax-tool-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tax-tool-benefits li {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid rgba(37, 169, 216, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: var(--sky);
}

.tax-tool-benefits strong {
  color: var(--blue);
  line-height: 1.2;
}

.tax-tool-benefits span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.tax-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.tax-tool-box,
.tax-tool-note,
.tool-output {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(18, 37, 74, 0.06);
}

.tax-tool-box,
.tax-tool-note {
  padding: clamp(20px, 3vw, 30px);
}

.tax-tool-form {
  display: grid;
  gap: 16px;
}

.tax-tool-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.tax-tool-form input,
.tax-tool-form select,
.tax-tool-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #f8fcfe;
  font: inherit;
}

.tax-tool-form textarea {
  min-height: 170px;
  resize: vertical;
}

.tax-tool-form input:focus,
.tax-tool-form select:focus,
.tax-tool-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37, 169, 216, 0.13);
  outline: 0;
}

.tax-tool-actions,
.tool-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-output {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 24px);
}

.tool-output pre {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: #1c2a3d;
  background: #f8fcfe;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.compact-tool-heading {
  margin-bottom: 22px;
}

.compact-tool-heading h2 {
  max-width: 940px;
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
  line-height: 1.08;
}

.bulk-ter-section .tax-tool-box {
  overflow: hidden;
}

.bulk-ter-section {
  align-items: start;
}

.bulk-ter-section .tax-tool-form {
  gap: 18px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid rgba(37, 169, 216, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(248, 252, 254, 0.98), rgba(255, 255, 255, 0.96));
}

.bulk-ter-section .tax-tool-form label {
  gap: 10px;
}

.bulk-ter-section .tax-tool-form input[type="file"] {
  min-height: auto;
  padding: 14px;
  border-style: dashed;
  background: var(--white);
}

.bulk-ter-section .tax-tool-form textarea {
  min-height: 150px;
  line-height: 1.6;
}

.bulk-ter-section .tax-tool-actions {
  gap: 12px;
  padding-top: 2px;
}

.bulk-ter-section .tool-output {
  gap: 18px;
  margin-top: 22px;
  padding: clamp(18px, 2.6vw, 26px);
  background: rgba(255, 255, 255, 0.82);
}

.bulk-ter-section .tool-output > .eyebrow {
  margin-bottom: -4px;
}

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

.bulk-summary-grid .tool-result-card {
  min-height: 112px;
  align-content: center;
  border-left-color: var(--cyan);
  background: linear-gradient(135deg, rgba(224, 246, 251, 0.78), rgba(255, 255, 255, 0.95));
}

.bulk-summary-grid .tool-result-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bulk-summary-grid .tool-result-card strong {
  overflow-wrap: anywhere;
}

.bulk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bulk-result-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bulk-result-table th,
.bulk-result-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(13, 30, 78, 0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.bulk-result-table thead th {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  font-size: 0.75rem;
  text-transform: uppercase;
}

.bulk-result-table tbody tr:last-child td {
  border-bottom: 0;
}

.bulk-result-table tbody tr:nth-child(even) {
  background: rgba(224, 246, 251, 0.46);
}

.bulk-result-table td:nth-child(3),
.bulk-result-table td:nth-child(5) {
  color: var(--blue);
  font-weight: 900;
}

.bulk-ter-section .tool-check-list {
  gap: 10px;
}

.bulk-ter-section .tool-output-actions {
  gap: 12px;
  padding-top: 2px;
}

.bulk-ter-section .tool-output pre {
  max-height: 300px;
  border-radius: 12px;
  background: #f4f8fb;
}

.bulk-ter-section .tax-tool-note h2 {
  font-size: clamp(1.35rem, 1.75vw, 1.85rem);
  line-height: 1.16;
}

.bulk-ter-section .tax-tool-note ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bulk-ter-section .tax-tool-note li {
  line-height: 1.6;
}

.bulk-ter-section .tax-tool-note li strong {
  display: inline-block;
  min-width: 76px;
  color: var(--blue);
}

.bulk-ter-section .tax-tool-note p:last-child {
  margin-top: 18px;
}

.tool-result-card {
  display: grid;
  gap: 8px;
  border-left: 5px solid var(--gold);
  padding: 14px 16px;
  background: var(--sky);
}

.tool-result-card strong {
  color: var(--blue);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.tool-pill-list,
.tool-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-pill-list li,
.tool-check-list li {
  border: 1px solid rgba(37, 169, 216, 0.3);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--blue);
  background: var(--sky);
  font-size: 0.86rem;
  font-weight: 900;
}

.tool-check-list {
  display: grid;
}

.tool-check-list li {
  border-radius: 8px;
  color: var(--ink);
  background: #f8fcfe;
}

.tax-tool-note {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
}

.tax-tool-note p,
.tax-tool-note li,
.tool-output p {
  color: var(--muted);
}

.tax-tool-note ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.tool-status-ok {
  color: #176b45;
}

.tool-status-warn {
  color: #a15c00;
}

.tool-status-bad {
  color: #b3261e;
}

.tools-cluster-section {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.tools-cluster-header {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.tools-cluster-header h2 {
  max-width: 940px;
  font-size: clamp(2.1rem, 4.2vw, 4.1rem);
  line-height: 1.03;
}

.bulk-ter-section .compact-tool-heading h2 {
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
  line-height: 1.08;
}

.tools-cluster-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.tools-hub-grid,
.tools-faq-grid,
.tools-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.tools-hub-grid article,
.tools-faq-grid article,
.tools-related-grid a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 37, 74, 0.055);
}

.tools-hub-grid article {
  display: grid;
  gap: 10px;
}

.tools-hub-grid strong,
.tools-faq-grid strong,
.tools-related-grid strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.tools-hub-grid p,
.tools-faq-grid p,
.tools-related-grid span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tools-related-grid a {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.tools-related-grid a:hover,
.tools-related-grid a:focus-visible {
  border-color: rgba(37, 169, 216, 0.56);
  transform: translateY(-2px);
}

.tools-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(37, 169, 216, 0.24);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(244, 251, 254, 0.98), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.tools-cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.12;
}

.tools-cta-band p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .tax-tool-showcase,
  .tax-tool-grid,
  .tools-cta-band {
    grid-template-columns: 1fr;
  }

  .tax-tool-note {
    position: static;
  }
}

@media (max-width: 560px) {
  .tax-tool-showcase {
    padding-top: 38px;
  }

  .tax-tool-benefits {
    grid-template-columns: 1fr;
  }

  .tax-tool-actions .button,
  .tool-output-actions .button {
    width: 100%;
  }

  .bulk-summary-grid {
    grid-template-columns: 1fr;
  }

  .bulk-ter-section .tax-tool-form,
  .bulk-ter-section .tool-output {
    padding: 16px;
  }

  .bulk-summary-grid .tool-result-card {
    min-height: 92px;
  }

  .bulk-result-table {
    min-width: 680px;
    font-size: 0.88rem;
  }

  .bulk-result-table th,
  .bulk-result-table td {
    padding: 12px 13px;
  }
}
