/* ============================================================
   TradeWorks AI — #why-different audience tabs
   (Homeowners / Property Managers / Contractors)
   Ported from docs/TradeWorks_Homepage-Audience-Section_REVIEW_v1.2_2026-08-05.html
   + its paired developer guide. Class names are prefixed `wd-` (scoped to
   #why-different) to avoid colliding with the site's existing `.tw-stat`
   etc. used in the hero. Colors below match the guide's Brand Kit v1.0
   values for this section specifically.
   ============================================================ */

#why-different {
  --wd-navy: #0B1F3A;
  --wd-teal: #00B4D8;
  --wd-teal-dark: #007C97;
  --wd-green: #16A34A;
  --wd-green-dark: #137C39;
  --wd-green-soft: #F0FDF4;
  --wd-muted: #6B7280;
  --wd-border: #E5E7EB;
  --wd-light: #F5F7FA;
  --wd-error: #DC2626;
  --wd-focus: 0 0 0 4px rgba(0,180,216,0.22);
}

/* ---------- Header ---------- */
#why-different .wd-head { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; }
#why-different .wd-head .home-light-h2 { margin: 0 0 14px; }

/* ---------- Tabs ---------- */
#why-different .wd-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  max-width: 760px; margin: 0 auto 28px;
  border: 1px solid var(--wd-border); border-radius: 12px;
  background: #FFFFFF; overflow: hidden;
}
#why-different .wd-tab {
  position: relative; min-height: 56px; border: 0;
  border-right: 1px solid var(--wd-border);
  padding: 12px 16px; background: #FFFFFF; color: var(--wd-muted);
  font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
#why-different .wd-tab:last-child { border-right: 0; }
#why-different .wd-tab::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: transparent;
}
#why-different .wd-tab:hover { color: var(--wd-navy); background: var(--wd-light); }
#why-different .wd-tab:focus-visible { outline: 0; box-shadow: inset var(--wd-focus); }
#why-different .wd-tab[aria-selected="true"] { color: var(--wd-navy); background: #FFFFFF; }
#why-different .wd-tab[aria-selected="true"]::after { background: var(--wd-teal); }
#why-different .wd-tab[data-tab="homeowners"][aria-selected="true"]::after { background: var(--wd-green); }

/* ---------- Panels ---------- */
#why-different .wd-panel {
  border: 1px solid var(--wd-border); border-radius: 16px; background: #FFFFFF;
  box-shadow: 0 12px 34px rgba(11,31,58,0.08); overflow: hidden;
}
#why-different .wd-panel[hidden] { display: none; }
#why-different .wd-panel-grid { display: grid; grid-template-columns: minmax(0,0.82fr) minmax(0,1.18fr); min-height: 560px; }
#why-different .wd-panel-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--wd-border);
}
#why-different .wd-panel-kicker {
  display: inline-flex; width: fit-content; margin: 0 0 16px; border-radius: 999px;
  padding: 7px 11px; color: var(--wd-green-dark); background: var(--wd-green-soft);
  font-size: 13px; font-weight: 700;
}
#why-different .wd-panel[data-panel="managers"] .wd-panel-kicker,
#why-different .wd-panel[data-panel="contractors"] .wd-panel-kicker {
  color: var(--wd-teal-dark); background: #ECFEFF;
}
#why-different .wd-panel-copy h3 {
  margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2;
  letter-spacing: -0.01em; color: var(--wd-navy); font-weight: 800;
}
#why-different .wd-panel-copy > p:not(.wd-panel-kicker) { margin: 16px 0 0; color: var(--wd-muted); font-size: 1.02rem; line-height: 1.55; }
#why-different .wd-checks { display: grid; gap: 12px; margin: 22px 0 26px; padding: 0; list-style: none; }
#why-different .wd-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #374151; }
#why-different .wd-checks li::before {
  content: "\2713"; display: grid; width: 22px; height: 22px; margin-top: 2px;
  place-items: center; border-radius: 999px; color: #FFFFFF; background: var(--wd-green);
  font-size: 12px; font-weight: 700;
}
#why-different .wd-panel[data-panel="managers"] .wd-checks li::before,
#why-different .wd-panel[data-panel="contractors"] .wd-checks li::before { background: var(--wd-teal-dark); }
#why-different .wd-actions { margin-top: auto; }
#why-different .wd-primary-action {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  border-radius: 8px; padding: 13px 24px; color: #FFFFFF; background: var(--wd-teal-dark);
  text-decoration: none; font-weight: 700; transition: background 0.15s ease, transform 0.15s ease;
}
#why-different .wd-primary-action--green { background: var(--wd-green); }
#why-different .wd-primary-action:hover { background: #00697F; transform: translateY(-1px); }
#why-different .wd-primary-action--green:hover { background: var(--wd-green-dark); }
#why-different .wd-primary-action:focus-visible { outline: 0; box-shadow: var(--wd-focus); }
#why-different .wd-action-note { display: block; max-width: 460px; margin-top: 10px; color: var(--wd-muted); font-size: 13px; line-height: 1.45; }

#why-different .wd-panel-visual { display: flex; align-items: center; padding: clamp(20px, 3.5vw, 40px); background: var(--wd-light); }
#why-different .wd-card { width: 100%; border: 1px solid var(--wd-border); border-radius: 16px; padding: clamp(20px, 3vw, 30px); background: #FFFFFF; }
#why-different .wd-card-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
#why-different .wd-card-title { margin: 0; font-size: 1.25rem; line-height: 1.25; color: var(--wd-navy); font-weight: 800; }
#why-different .wd-card-head p { margin: 5px 0 0; color: var(--wd-muted); font-size: 0.88rem; }
#why-different .wd-reward-max { text-align: right; flex: 0 0 auto; }
#why-different .wd-reward-max span { display: block; color: var(--wd-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
#why-different .wd-reward-max strong { display: block; color: var(--wd-green-dark); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; }

/* ---------- Homeowner rewards bands ---------- */
#why-different .wd-reward-bands { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
#why-different .wd-reward-band {
  min-height: 140px; border: 1px solid var(--wd-border); border-radius: 12px; padding: 14px 10px;
  background: #FFFFFF; text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
#why-different .wd-reward-band:hover { border-color: #86D99F; transform: translateY(-1px); }
#why-different .wd-reward-band:focus-visible { outline: 0; box-shadow: var(--wd-focus); }
#why-different .wd-reward-band[aria-pressed="true"] { border-color: var(--wd-green); background: var(--wd-green-soft); }
#why-different .wd-reward-band .rate { display: block; color: var(--wd-green-dark); font-size: 26px; font-weight: 800; line-height: 1; }
#why-different .wd-reward-band .range { display: block; margin-top: 8px; color: var(--wd-navy); font-size: 12px; font-weight: 700; line-height: 1.35; }
#why-different .wd-reward-band .bonus { display: block; margin-top: 8px; color: var(--wd-muted); font-size: 12px; line-height: 1.35; }

#why-different .wd-reward-detail { margin-top: 16px; border-left: 4px solid var(--wd-green); border-radius: 0 12px 12px 0; padding: 16px 18px; background: var(--wd-light); }
#why-different .wd-reward-detail h4 { margin: 0; font-size: 1.05rem; color: var(--wd-navy); }
#why-different .wd-reward-detail p { margin: 7px 0 0; color: var(--wd-muted); font-size: 0.9rem; }
#why-different .wd-reward-total-line { margin-top: 10px; color: var(--wd-navy); font-weight: 600; }
#why-different .wd-reward-total-line strong { color: var(--wd-green-dark); font-size: 1.15rem; }
#why-different .wd-terms { margin: 14px 0 0; color: var(--wd-muted); font-size: 12px; line-height: 1.5; }

/* ---------- Property-manager flow + stats ---------- */
#why-different .wd-flow { display: grid; gap: 10px; }
#why-different .wd-flow-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  border: 1px solid var(--wd-border); border-radius: 12px; padding: 14px; background: #FFFFFF;
}
#why-different .wd-flow-step > span {
  display: grid; width: 44px; height: 44px; place-items: center; border-radius: 999px;
  color: #FFFFFF; background: var(--wd-teal-dark); font-weight: 700;
}
#why-different .wd-flow-step strong { display: block; color: var(--wd-navy); }
#why-different .wd-flow-step small { display: block; color: var(--wd-muted); }
#why-different .wd-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
#why-different .wd-stat { border: 1px solid var(--wd-border); border-radius: 12px; padding: 14px; text-align: center; background: var(--wd-light); }
#why-different .wd-stat strong { display: block; color: var(--wd-navy); font-size: 1.3rem; }
#why-different .wd-stat span { display: block; color: var(--wd-muted); font-size: 12px; }

/* ---------- Contractor ZIP lookup ---------- */
#why-different .wd-lookup-form { margin: 0; }
#why-different .wd-field { display: grid; gap: 8px; }
#why-different .wd-field label { color: var(--wd-navy); font-size: 14px; font-weight: 700; }
#why-different .wd-lookup-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; }
#why-different .wd-zip-input {
  width: 100%; min-height: 50px; border: 1px solid #64748B; border-radius: 8px;
  padding: 12px 14px; color: var(--wd-navy); background: #FFFFFF; font-size: 16px; font-family: inherit;
}
#why-different .wd-zip-input:focus-visible { outline: 0; border-color: var(--wd-teal-dark); box-shadow: var(--wd-focus); }
#why-different .wd-zip-input[aria-invalid="true"] { border-color: var(--wd-error); }
#why-different .wd-lookup-button {
  min-height: 50px; border: 0; border-radius: 8px; padding: 12px 20px; color: #FFFFFF;
  background: var(--wd-teal-dark); font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
#why-different .wd-lookup-button:hover { background: #00697F; transform: translateY(-1px); }
#why-different .wd-lookup-button:disabled { cursor: wait; opacity: 0.72; transform: none; }
#why-different .wd-field-help, #why-different .wd-field-error { margin: 0; font-size: 12px; line-height: 1.45; }
#why-different .wd-field-help { color: var(--wd-muted); }
#why-different .wd-field-error { color: var(--wd-error); font-weight: 700; }
#why-different .wd-field-error[hidden] { display: none; }
#why-different .wd-lookup-output { margin-top: 18px; }
#why-different .wd-lookup-empty,
#why-different .wd-lookup-loading,
#why-different .wd-lookup-waitlist,
#why-different .wd-lookup-errorstate {
  border: 1px solid var(--wd-border); border-radius: 12px; padding: 16px;
  color: var(--wd-muted); background: var(--wd-light); font-size: 14px;
}
#why-different .wd-lookup-loading { color: var(--wd-navy); }
#why-different .wd-lookup-waitlist { border-color: #F1C47A; background: #FFF7ED; color: #7C4A03; }
#why-different .wd-lookup-errorstate { border-color: #FCA5A5; background: #FEF2F2; color: #991B1B; }
#why-different .wd-lookup-errorstate .wd-retry-btn {
  display: inline-flex; margin-top: 10px; border: 1px solid #991B1B; border-radius: 8px;
  padding: 8px 14px; background: #FFFFFF; color: #991B1B; font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
#why-different .wd-lookup-result { border: 1px solid var(--wd-border); border-left: 4px solid var(--wd-teal-dark); border-radius: 12px; padding: 16px; background: #FFFFFF; }
#why-different .wd-lookup-result h4 { margin: 0; font-size: 1.05rem; color: var(--wd-navy); }
#why-different .wd-market-line { margin: 4px 0 0; color: var(--wd-muted); font-size: 13px; }
#why-different .wd-market-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
#why-different .wd-market-stats div { border: 1px solid var(--wd-border); border-radius: 8px; padding: 10px; background: var(--wd-light); }
#why-different .wd-market-stats strong { display: block; color: var(--wd-navy); font-size: 16px; }
#why-different .wd-market-stats span { display: block; margin-top: 2px; color: var(--wd-muted); font-size: 11px; }
#why-different .wd-result-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; }
#why-different .wd-result-table th { padding: 9px 8px; color: #FFFFFF; background: var(--wd-navy); text-align: left; font-size: 12px; }
#why-different .wd-result-table td { padding: 9px 8px; border-bottom: 1px solid var(--wd-border); vertical-align: top; }
#why-different .wd-result-table td:first-child { color: var(--wd-navy); font-weight: 700; }
#why-different .wd-result-table td:last-child { color: var(--wd-navy); font-weight: 700; white-space: nowrap; }
#why-different .wd-scope { display: block; margin-top: 2px; color: var(--wd-muted); font-size: 11px; }
#why-different .wd-availability { display: inline-flex; margin-top: 5px; border-radius: 999px; padding: 3px 7px; color: var(--wd-green-dark); background: var(--wd-green-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; }
#why-different .wd-result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
#why-different .wd-claim-link {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--wd-teal-dark); border-radius: 8px; padding: 10px 18px;
  color: var(--wd-teal-dark); background: #FFFFFF; text-decoration: none; font-weight: 700;
}
#why-different .wd-claim-link:hover { background: #ECFEFF; }
#why-different .wd-result-note { margin: 0; color: var(--wd-muted); font-size: 11px; }

/* ---------- Model statement strip ---------- */
#why-different .wd-difference-note {
  display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0,1fr)); gap: 12px;
  margin-top: 24px; border: 1px solid var(--wd-border); border-radius: 12px; padding: 18px; background: #FFFFFF;
}
#why-different .wd-difference-note div { padding: 8px; }
#why-different .wd-difference-note .intro { color: var(--wd-navy); font-weight: 800; }
#why-different .wd-difference-note strong { display: block; color: var(--wd-navy); font-size: 14px; }
#why-different .wd-difference-note span { display: block; margin-top: 3px; color: var(--wd-muted); font-size: 12px; }

/* ---------- Responsive (breakpoints per the reviewed mockup) ---------- */
@media (max-width: 980px) {
  #why-different .wd-panel-grid { grid-template-columns: 1fr; min-height: 0; }
  #why-different .wd-panel-copy { border-right: 0; border-bottom: 1px solid var(--wd-border); }
  #why-different .wd-reward-bands { grid-template-columns: repeat(3, minmax(0,1fr)); }
  #why-different .wd-difference-note { grid-template-columns: 1fr 1fr; }
  #why-different .wd-difference-note .intro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  #why-different .wd-head { text-align: left; margin-left: 0; margin-right: 0; }
  #why-different .wd-head .home-light-sub { margin-left: 0 !important; margin-right: 0 !important; }
  #why-different .wd-tabs { margin-bottom: 16px; }
  #why-different .wd-tab { min-height: 60px; padding: 9px 6px; font-size: 13px; line-height: 1.25; }
  #why-different .wd-tab::after { left: 8px; right: 8px; }
  #why-different .wd-panel-copy, #why-different .wd-panel-visual { padding: 22px 18px; }
  #why-different .wd-primary-action { width: 100%; }
  #why-different .wd-card { padding: 18px; }
  #why-different .wd-card-head { display: block; }
  #why-different .wd-reward-max { margin-top: 12px; text-align: left; }
  #why-different .wd-reward-bands { grid-template-columns: 1fr 1fr; }
  #why-different .wd-reward-band:last-child { grid-column: 1 / -1; }
  #why-different .wd-reward-band { min-height: 124px; }
  #why-different .wd-stat-row, #why-different .wd-market-stats { grid-template-columns: 1fr; }
  #why-different .wd-lookup-row { grid-template-columns: 1fr; }
  #why-different .wd-lookup-button { width: 100%; }
  #why-different .wd-result-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  #why-different .wd-result-table, #why-different .wd-result-table tbody, #why-different .wd-result-table tr, #why-different .wd-result-table td { display: block; width: 100%; }
  #why-different .wd-result-table tr { margin-top: 10px; border: 1px solid var(--wd-border); border-radius: 8px; padding: 8px; }
  #why-different .wd-result-table td { display: grid; grid-template-columns: 108px 1fr; gap: 8px; border: 0; padding: 6px; white-space: normal; }
  #why-different .wd-result-table td::before { content: attr(data-label); color: var(--wd-muted); font-size: 11px; font-weight: 700; }
  #why-different .wd-difference-note { grid-template-columns: 1fr; }
  #why-different .wd-difference-note .intro { grid-column: auto; }
}
@media (max-width: 340px) {
  #why-different .wd-reward-bands { grid-template-columns: 1fr; }
  #why-different .wd-reward-band:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #why-different .wd-tab, #why-different .wd-reward-band, #why-different .wd-primary-action, #why-different .wd-lookup-button { transition-duration: 0.01ms !important; }
}
