/*
 * Why-first industry layout (templates/trade-why.php). Loaded only on verticals with 'layout' => 'why'.
 * Plain CSS on the app.css tokens: ink #121212, coral only on CTAs, #c42f35 small labels, no pink.
 */
.vertical-why .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: niche H1 + one CTA, cited stats beside it. Left-aligned. */
.why-hero { text-align: left; padding: 2rem 0 2.5rem; }
.why-hero-grid { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 1024px) {
  .why-hero { padding: 3.25rem 0 4rem; }
  .why-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3.5rem; }
}
.why-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1.1rem; max-width: 18ch; }
@media (min-width: 1024px) { .why-hero h1 { max-width: none; } }
.why-hero .sub { max-width: 40rem; font-size: 1.12rem; line-height: 1.6; margin: 0; }
.why-hero .actions { margin-top: 1.5rem; align-items: center; gap: 1.25rem; }
@media (max-width: 719px) {
  .why-hero { padding-top: 1.25rem; }
  .why-hero h1 { font-size: 2.2rem; }
  .why-hero .sub { font-size: 1.05rem; }
  .why-hero .actions { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .why-hero .actions .btn { width: 100%; justify-content: center; }
  .why-hero .actions .why-text-link { align-self: flex-start; }
}
.why-text-link { font-weight: 600; color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.why-text-link:hover { color: var(--color-accent-text); }

.why-hero-stats { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: 0 1px 2px rgba(18,18,18,.04), 0 8px 24px rgba(18,18,18,.05); }
.why-hero-stats ul { list-style: none; margin: 0; padding: 0; }
.why-hero-stats li { display: grid; grid-template-columns: 7.6rem 1fr; gap: 0.9rem; align-items: baseline; padding: 0.85rem 0; border-top: 1px solid var(--color-border); }
.why-hero-stats li:first-child { border-top: 0; padding-top: 0.35rem; }
.why-hero-stats li span { color: var(--color-secondary); font-size: 0.98rem; line-height: 1.45; }
.why-figure { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--color-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 719px) {
  .why-hero-stats { padding: 1rem 1.1rem; }
  .why-hero-stats li { grid-template-columns: 6.4rem 1fr; padding: 0.7rem 0; }
  .why-figure { font-size: 1.25rem; }
}

.why-label, .why-side {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent-text); margin: 0 0 0.6rem;
}
.why-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-muted); margin: 0 0 0.6rem; font-variant-numeric: tabular-nums; }

/* Shared section rhythm on this layout. */
.vertical-why .section h2 { max-width: 46rem; }
.vertical-why .section .lede { margin-bottom: 2rem; }
.vertical-why .why-problems { border-top: 1px solid var(--color-border); }
.vertical-why #scorecard { background: var(--color-paper-warm); }

/* Costly problems */
.why-problem-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .why-problem-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-problem-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.why-problem { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 1.35rem 1.4rem 1.4rem; }
.why-problem h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.55rem; }
.why-problem p:last-child { margin: 0; color: var(--color-secondary); line-height: 1.55; }

.why-math { margin-top: 1.5rem; display: grid; gap: 0.75rem 1.75rem; align-items: center; background: var(--color-ink); color: var(--color-paper); border-radius: 16px; padding: 1.5rem 1.5rem 1.6rem; }
@media (min-width: 720px) { .why-math { grid-template-columns: auto 1fr; padding: 1.75rem 2rem; } }
.why-math-figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; margin: 0; color: var(--color-paper); font-variant-numeric: tabular-nums; }
.why-math-label { font-size: 1.15rem; line-height: 1.45; margin: 0 0 0.4rem; color: var(--color-paper); }
.why-math .footnote { color: rgba(250,250,247,.74); margin: 0 0 0.6rem; }
.why-math .why-text-link { color: var(--color-paper); }
.why-math .why-text-link:hover { color: #fff; }
.why-math sup.cite a { color: rgba(250,250,247,.85); }

/* Why AI agents: comparison */
.why-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; font-size: 0.98rem; }
.why-compare th, .why-compare td { text-align: left; padding: 0.95rem 1.1rem; border-top: 1px solid var(--color-border); vertical-align: top; }
.why-compare thead th { border-top: 0; font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); background: var(--color-paper); }
.why-compare thead th.is-us { color: var(--color-ink); }
.why-compare tbody th { font-weight: 600; color: var(--color-ink); width: 34%; }
.why-compare td { color: var(--color-muted); }
.why-compare td.is-us { color: var(--color-ink); font-weight: 600; background: rgba(18,18,18,.035); }
.why-compare thead th.is-us { background: #ecebe6; }
@media (max-width: 719px) {
  .why-compare, .why-compare tbody, .why-compare tr, .why-compare th, .why-compare td { display: block; width: 100%; }
  .why-compare { border: 0; background: transparent; border-radius: 0; }
  .why-compare thead { display: none; }
  .why-compare tbody tr { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; margin-bottom: 0.75rem; overflow: hidden; }
  .why-compare tbody th { width: 100%; border-top: 0; padding: 0.9rem 1rem 0.5rem; font-size: 1rem; }
  .why-compare td { display: grid; grid-template-columns: 9.6rem 1fr; gap: 0.75rem; padding: 0.55rem 1rem; font-size: 0.95rem; }
  .why-compare td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); padding-top: 0.15rem; font-weight: 500; }
  .why-compare td.is-us { padding-bottom: 0.8rem; }
}

/* Before / after day */
.why-day { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; background: #fff; }
.why-day-head { display: none; }
.why-day-row { display: grid; gap: 0.6rem; padding: 1.1rem 1.15rem; border-top: 1px solid var(--color-border); }
.why-day-row:first-of-type { border-top: 0; }
.why-day-row p { margin: 0; line-height: 1.5; }
.why-day-time { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.why-day-time strong { font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.why-day-time span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-text); }
.why-day-before { color: var(--color-muted); }
.why-day-after { color: var(--color-ink); font-weight: 500; }
.why-day-tag { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.2rem; font-weight: 500; }
.why-day-after .why-day-tag { color: var(--color-ink); }
@media (min-width: 900px) {
  .why-day-head, .why-day-row { display: grid; grid-template-columns: 11rem 1fr 1fr; gap: 1.5rem; padding: 1rem 1.5rem; }
  .why-day-head { border-bottom: 1px solid var(--color-border); background: var(--color-paper); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
  .why-day-head span:last-child { color: var(--color-ink); }
  .why-day-row { border-top: 1px solid var(--color-border); }
  .why-day-head + .why-day-row { border-top: 0; }
  .why-day-time { flex-direction: column; gap: 0.2rem; }
  .why-day-tag { display: none; }
  .why-day-after { position: relative; padding-left: 1.5rem; border-left: 1px solid var(--color-border); }
}
.why-day + .footnote { margin-top: 1rem; }

/* What the agents do */
.why-jobs { display: grid; gap: 1rem; }
@media (min-width: 720px) { .why-jobs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-jobs { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.why-job { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 1.35rem 1.4rem; }
.why-job h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.why-job p:last-child { margin: 0; color: var(--color-secondary); line-height: 1.55; }
.why-tools { margin: 1.5rem 0 0.4rem; color: var(--color-secondary); max-width: 46rem; }

/* Benefits */
.why-benefits { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .why-benefits { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 1100px) { .why-benefits { grid-template-columns: repeat(4, 1fr); } }
.why-benefit { border-top: 2px solid var(--color-ink); padding: 1.1rem 0.25rem 0; }
.why-benefit h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.why-benefit p:last-child { margin: 0; color: var(--color-secondary); line-height: 1.55; }

/* How it starts */
.why-steps { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .why-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.why-step { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 1.35rem 1.4rem; }
.why-step .why-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--color-ink); color: var(--color-paper); font-size: 0.85rem; }
.why-step h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.why-step p:last-child { margin: 0; color: var(--color-secondary); line-height: 1.55; }
.why-start-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.why-start-foot .actions { margin-top: 0; }
.why-price-pointer { margin: 0; color: var(--color-secondary); }
.why-price-pointer a { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.why-proof-line { margin-top: 1.25rem; }
.why-proof-line a { color: var(--color-ink); }
@media (max-width: 719px) {
  .why-start-foot { flex-direction: column; align-items: stretch; }
  .why-start-foot .btn { width: 100%; justify-content: center; }
}

/* Run your numbers: calculator first on this layout. */
.vertical-why .scorecard-layout .calc-form { order: -1; }

@media (max-width: 719px) {
  .why-problem, .why-job, .why-step { padding: 1.1rem 1.1rem 1.15rem; }
  .why-problem h3, .why-job h3, .why-step h3 { font-size: 1.05rem; }
  .why-problem-grid, .why-jobs { gap: 0.75rem; }
  .vertical-why .section .lede { margin-bottom: 1.5rem; }
}

/* Visible breadcrumb (matches the Breadcrumb schema). */
.why-crumbs { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 1rem; }
.why-crumbs a { color: var(--color-accent-text); text-decoration: none; }
.why-crumbs a:hover { text-decoration: underline; }
.why-crumbs [aria-current] { color: var(--color-ink); }

/* Related industries + hub link. */
.why-related { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--color-border); font-size: 0.98rem; }
.why-related-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.why-related a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.why-related a:hover { color: var(--color-accent-text); }

/* Optional SMS consent under mobile. */
.vertical-why .field-sms { font-size: 0.9rem; line-height: 1.45; color: var(--color-secondary); }
.vertical-why .field-sms input { flex: 0 0 auto; margin-top: 0.2rem; }

/* Industries hub cards. */
.hub-subgroup { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-text); margin: 2rem 0 0.9rem; }
.hub-cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.hub-subgroup + .hub-cards { margin-top: 0; }
@media (min-width: 720px) { .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-card { display: flex; flex-direction: column; gap: 0.55rem; height: 100%; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 1.2rem 1.25rem; color: var(--color-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.hub-card:hover, .hub-card:focus-visible { border-color: var(--color-ink); box-shadow: 0 8px 24px rgba(18,18,18,.06); }
.hub-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.hub-card-line { color: var(--color-secondary); font-size: 0.98rem; line-height: 1.5; }
.hub-card-more { margin-top: auto; font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
