/* Trade pages (/for/plumbers, electricians, builders, painters, roofers). Loaded after style.css and
   scoped to body.trade. Colours come from the style.css tokens, so light and dark both work. */

body.trade section { padding: 0; }
body.trade .nav { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); }

/* ---------- hero ---------- */
body.trade .hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(900px 460px at 90% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(600px 340px at -4% 0%, color-mix(in srgb, var(--highlight) 13%, transparent), transparent 70%);
}
.trade-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center; }
.th-copy { min-width: 0; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.hero-pill b { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
body.trade .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; margin: 20px 0 20px; }
body.trade .hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--highlight) 55%, transparent) 64% 93%, transparent 93%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; margin: 0 -.06em;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.trade .hero h1 em { background: none; } }
:root[data-theme="dark"] body.trade .hero h1 em { background: none; }
body.trade .hero-sub { font-size: 17.5px; line-height: 1.6; max-width: 34em; margin-bottom: 24px; }
.th-signup { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); max-width: 560px; }
.th-signup .hero-signup { margin: 0; max-width: none; }
.th-signup .hero-signup .btn { flex: 1 1 100%; justify-content: center; }
.th-signup .modal-error { margin-top: 10px; }
.th-alt { margin: 10px 2px 0; font-size: 14px; color: var(--text-muted); }
.th-alt a { color: var(--accent-strong); font-weight: 700; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 18px 0 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.hero-proof svg { color: var(--green); flex: none; }

.th-visual { min-width: 0; }
.th-card {
  background: #FFFFFF; color: #0E1F18; border: 1px solid #E5E2D8; border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow-lg); --text: #0E1F18; --text-muted: #4A5B54; --border: #E5E2D8;
}
.th-card-tag { display: inline-flex; margin: 0 0 14px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #E3F3EB; color: #085C41; }
.th-card .inv-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #E5E2D8; margin-bottom: 8px; }
.th-card .inv-biz { font-weight: 800; font-size: 15.5px; }
.th-card .inv-biz-sub { color: #4A5B54; font-size: 13px; margin-top: 3px; }
.th-card .inv-label { font-weight: 800; font-size: 12.5px; letter-spacing: .12em; color: #0B7A55; text-align: right; }
.th-card .inv-meta { color: #4A5B54; font-size: 13px; text-align: right; margin-top: 3px; }
.th-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.th-card th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #4A5B54; padding: 8px 0; border-bottom: 1px solid #E5E2D8; }
.th-card td { padding: 9px 0; border-bottom: 1px solid #EFEDE4; color: #0E1F18; }
.th-card .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.th-card .th-totals { margin: 12px 0 0 auto; max-width: 250px; font-size: 14px; }
.th-card .th-totals div { display: flex; justify-content: space-between; padding: 3px 0; color: #4A5B54; }
.th-card .th-totals .th-total { color: #0E1F18; font-weight: 800; font-size: 17px; border-top: 3px solid var(--highlight); margin-top: 8px; padding-top: 9px; }
.th-card .th-foot { margin: 16px 0 0; font-size: 12.5px; color: #4A5B54; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.th-card .th-foot b { background: #E3F3EB; color: #085C41; border-radius: 999px; padding: 4px 11px; font-size: 12px; }
.th-visual figcaption, .th-note { margin: 12px 4px 0; font-size: 12.5px; color: var(--text-muted); text-align: center; }

@media (max-width: 940px) {
  body.trade .hero { padding: 32px 0 44px; }
  .trade-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 520px) { body.trade .hero h1 { font-size: 2.15rem; } .th-card { padding: 18px; } }

/* ---------- try it ---------- */
body.trade .try { padding: 64px 0; background: var(--bg-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
body.trade .try-wrap { max-width: 820px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
body.trade .try-wrap h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.03em; font-weight: 800; }
body.trade .try-form textarea { background: var(--bg); border-color: var(--border-strong); }
body.trade .try-chip { background: var(--bg); border-color: var(--border-strong); font-weight: 600; }
body.trade .try-chip:hover { background: var(--accent-soft); border-color: var(--accent); }
body.trade .try-result .try-cta { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 16px; padding: 18px; }
@media (max-width: 640px) { body.trade .try { padding: 36px 0; } body.trade .try-wrap { padding: 18px; border-radius: 18px; margin: 0 14px; } }

/* ---------- content sections ---------- */
body.trade .trade-points { max-width: 1160px; padding: 72px 28px 8px; }
body.trade .trade-points h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 16px; }
body.trade .trade-points > p { font-size: 16.5px; color: var(--text-muted); max-width: 46em; }
body.trade .trade-points a { color: var(--accent-strong); text-underline-offset: 3px; }
body.trade .trade-depth { max-width: 1160px; }
body.trade .trade-depth h3 { font-size: 19px; letter-spacing: -0.02em; }

/* pain points as cards */
.trade-pain ul { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.trade-pain li {
  margin: 0; padding: 18px 18px 18px 50px; position: relative; border-radius: 16px; background: var(--bg-elevated);
  border: 1px solid var(--border); font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--text);
}
.trade-pain li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M7.5 7.5l7 7M14.5 7.5l-7 7' stroke='%238A5300' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* quote -> paid */
body.trade .trade-points.trade-paid { max-width: 1160px; }
body.trade .trade-paid .fb-points { list-style: none; padding: 0; gap: 12px; }
body.trade .trade-paid .fb-points li { position: relative; padding-left: 52px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
body.trade .trade-paid .fb-points li strong { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 3px; }
body.trade .trade-paid .shot-phone { margin: 0; background: var(--text); padding: 9px; border-radius: 32px; border: 0; box-shadow: var(--shadow-lg); }
body.trade .trade-paid .shot-phone img { border-radius: 24px; background: #fff; }
body.trade .trade-paid .shot-phone figcaption { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.trade .trade-paid .shot-phone { background: #2a3d35; } }
:root[data-theme="dark"] body.trade .trade-paid .shot-phone { background: #2a3d35; }
body.trade .trade-paid-grid { gap: 40px; margin-top: 26px; }

/* what a good quote includes: tick list + example sheet */
body.trade #what-to-include > ul { list-style: none; padding: 0; margin: 18px 0 8px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 22px; }
body.trade #what-to-include > ul li { position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px; }
body.trade #what-to-include > ul li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.4 8.6 13.3 14.5 7' stroke='%230B7A55' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
body.trade .trade-example-wrap { background: #FFFFFF; border: 1px solid #E5E2D8; border-radius: 18px; box-shadow: var(--shadow); max-width: 760px; --text: #0E1F18; --text-muted: #4A5B54; --border: #E5E2D8; }
body.trade .trade-example th { font-family: var(--font-body); font-weight: 700; color: #4A5B54; }
body.trade .trade-example td { color: #0E1F18; }
body.trade .trade-example tfoot td { color: #4A5B54; }
body.trade .trade-example tfoot .trade-example-total td { color: #0E1F18; border-top-color: var(--highlight); }
body.trade .trade-example-note { font-family: var(--font-body); font-weight: 600; }

/* how it works: numbered cards */
body.trade .trade-steps { list-style: none; counter-reset: ts; padding: 0; margin: 22px 0 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
body.trade .trade-steps li { counter-increment: ts; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 20px; font-size: 15px; line-height: 1.55; }
body.trade .trade-steps li::before {
  content: counter(ts); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 15px;
}
body.trade .trade-steps li strong { display: block; font-size: 16.5px; margin-bottom: 4px; }

/* questions as cards */
.qa { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 0 0 12px; max-width: 820px; }
.qa h3 { margin: 0 0 6px !important; font-size: 17px; letter-spacing: -0.015em; }
.qa p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
body.trade .trade-related { margin-top: 18px; max-width: 820px; }

/* ---------- closing call to action ---------- */
.trade-final { max-width: 1160px; margin: 72px auto 0; padding: 0 24px 72px; }
body.trade .final-cta {
  background: radial-gradient(700px 300px at 85% 0%, color-mix(in srgb, var(--highlight) 22%, transparent), transparent 70%), #075C42;
  color: #FFFFFF; border-radius: 28px; padding: 64px 28px; text-align: center;
}
body.trade .final-cta h2 { color: #FFFFFF; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 14px; }
body.trade .final-cta p { color: rgba(255,255,255,0.86); font-size: 17px; margin: 0 0 26px; }
body.trade .final-cta .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
body.trade .final-cta .btn-primary { background: #FFFFFF; color: #085C41; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5); }
body.trade .final-cta .btn-primary:hover { background: #F2F0E9; }
body.trade .final-cta .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.55); }
body.trade .final-cta .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #FFFFFF; }
@media (max-width: 640px) { .trade-final { margin-top: 48px; padding: 0 16px 56px; } body.trade .final-cta { padding: 44px 20px; border-radius: 22px; } }

body.trade footer { background: var(--bg-sunken); }
body.trade .sticky-cta { background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); backdrop-filter: blur(12px); }

body.trade .trade-paid .fb-points li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; margin: 0; transform: none;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.4 8.6 13.3 14.5 7' stroke='%230B7A55' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; border: 0; font-size: 0;
}
body.trade .trade-points .blog-disclaimer { max-width: 820px; }
body.trade .trade-related { max-width: 820px; }
body.trade .trade-paid .fb-points li { padding-left: 52px; }
@media (max-width: 520px) {
  .th-card th:nth-child(3), .th-card td:nth-child(3) { display: none; }
  .th-card .inv-top { flex-direction: column; gap: 10px; }
  .th-card .inv-label, .th-card .inv-meta { text-align: left; }
}
