/* ============================================================
   TradieCue — content pages (hubs, features, guides, trades…)
   Extends marketing.css design tokens. Loaded on every generated
   page after marketing.css.
   ============================================================ */

.content-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 32px) 40px;
}

/* ----- breadcrumbs ----- */
.breadcrumbs { margin: 6px 0 18px; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-cool); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ----- page hero ----- */
.page-hero { max-width: 780px; margin: 0 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; margin: 6px 0 14px; }
.page-lede { font-size: clamp(1.02rem, 2.4vw, 1.18rem); color: var(--ink-soft); line-height: 1.55; margin: 0 0 10px; }
.page-updated { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ----- body typography ----- */
.page-band { max-width: 780px; margin: 0 0 clamp(28px, 4.5vw, 44px); }
.page-band h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); line-height: 1.18; margin: 0 0 14px; letter-spacing: -0.015em; }
.page-band h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.page-band p, .page-band li { font-size: 0.98rem; line-height: 1.62; color: #23384a; }
.page-band ul, .page-band ol { padding-left: 22px; }
.page-band li { margin-bottom: 6px; }
.page-band a { font-weight: 600; }
.page-band a:hover { text-decoration: underline; }

/* ----- answer-first box ----- */
.answer-box {
  background: var(--soft);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 18px;
}
.answer-box p { margin: 0; font-size: 1rem; }

/* ----- callouts ----- */
.callout {
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin: 16px 0;
}
.callout p { margin: 0; font-size: 0.92rem; }
.callout.callout-info { border-left-color: var(--primary); background: var(--soft-2); }

/* ----- rough note → draft example ----- */
.example-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  margin: 20px 0;
  align-items: start;
}
.example-in, .example-out {
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.example-in {
  background: var(--dark-soft);
  color: var(--on-dark);
  border: 1px solid rgba(130, 190, 225, 0.25);
}
.example-in p { color: var(--on-dark); font-size: 0.95rem; margin: 8px 0 0; line-height: 1.5; }
.example-out { background: var(--card); border: 1px solid var(--line); }
.example-out p, .example-out li { font-size: 0.93rem; margin: 8px 0 0; }
.example-out ul { margin: 8px 0 0; padding-left: 18px; }
.example-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
}
.example-in .example-label { background: rgba(91, 200, 245, 0.18); color: var(--cyan); }
.example-in .example-label::before { content: "\1F399\FE0F\00a0" / "Spoken note: "; }
.example-out .example-label { background: var(--soft-3); color: var(--primary); }
.example-out.example-pdf { padding: 12px; background: var(--soft-2); margin: 0; }
.example-out.example-pdf img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; box-shadow: var(--shadow-soft); }
.pdf-shot img { width: min(480px, 100%); }
.example-caption { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; grid-column: 1 / -1; }
.example-out .doc-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 7px 0; font-size: 0.92rem; }
.example-out .doc-line:last-of-type { border-bottom: 0; }
.example-out .doc-line strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.example-out .doc-title { font-weight: 800; color: var(--ink); margin: 8px 0 2px; font-size: 0.98rem; }
@media (max-width: 720px) {
  .example-block { grid-template-columns: 1fr; }
}

/* ----- tables ----- */
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.table-scroll th { background: var(--soft-2); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.table-scroll tr:last-child td { border-bottom: 0; }

/* ----- FAQ ----- */
.page-faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.page-faq summary { font-weight: 700; cursor: pointer; font-size: 0.98rem; }
.page-faq .faq-answer p { margin: 10px 0 0; font-size: 0.94rem; }

/* ----- hub grids ----- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 8px 0 8px; }
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hub-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.hub-card strong { font-size: 1.03rem; color: var(--primary-dark); }
.hub-card span { font-size: 0.9rem; color: var(--muted); line-height: 1.5; font-weight: 400; }

/* ----- related ----- */
.related-band, .cta-band, .page-band-wide { max-width: none; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--ink);
}
.related-card:hover { border-color: var(--primary); }
.related-card strong { color: var(--primary-dark); font-size: 0.97rem; }
.related-card span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; font-weight: 400; }

/* ----- CTA band ----- */
.cta-card {
  background: linear-gradient(140deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-dark);
}
.cta-card h2 { color: var(--on-dark); margin: 0 0 10px; font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.cta-card > p { color: var(--on-dark-muted); max-width: 620px; margin: 0 auto 18px; line-height: 1.6; }
.cta-card .install-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-card .button.ghost { background: transparent; color: var(--on-dark); border-color: rgba(234, 246, 253, 0.4); }
.cta-card .button.ghost:hover { background: rgba(234, 246, 253, 0.08); border-color: var(--cyan); }
.cta-fineprint { font-size: 0.8rem; color: var(--on-dark-faint); margin: 14px 0 0 !important; }

/* ----- footer ----- */
.page-footer { border-top: 1px solid var(--line); margin-top: 10px; }
.footer-columns {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px) clamp(18px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.footer-col a { font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--primary); }
.footer-col-brand .footer-line { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0; }
.footer-col-brand .footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
@media (max-width: 900px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .footer-col-brand { grid-column: 1 / -1; }
}

/* ----- inline screenshots ----- */
.page-shot { margin: 20px 0; }
.page-shot img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card); width: min(320px, 100%); height: auto; }
.page-shot figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ----- 404 ----- */
.notfound { text-align: center; padding: clamp(48px, 10vw, 110px) 20px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 12px; }
.notfound p { color: var(--muted); margin: 0 0 22px; }
.notfound .install-actions { justify-content: center; }

/* ----- lost-variation calculator ----- */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-soft); }
.calc-field { margin-bottom: 18px; }
.calc-field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.calc-row { display: flex; align-items: center; gap: 14px; }
.calc-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.calc-row output { min-width: 84px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary-dark); }
.calc-results { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.calc-stat { display: flex; justify-content: space-between; align-items: baseline; }
.calc-stat span { color: var(--muted); font-size: 0.92rem; }
.calc-stat strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.calc-stat-hero strong { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--primary); }
.calc-compare { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.calc-note { font-size: 0.83rem; color: var(--muted); margin-top: 12px; }

/* ----- email capture ----- */
.capture-card { background: var(--soft); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 26px); }
.capture-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.capture-card > p { margin: 0 0 14px; font-size: 0.92rem; }
.capture-form { display: flex; flex-wrap: wrap; gap: 10px; }
.capture-form input[type="email"] { flex: 1; min-width: 220px; border: 1px solid var(--line-cool); border-radius: 999px; padding: 12px 18px; font-size: 0.95rem; font-family: var(--font); }
.capture-form input[type="email"]:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.hp-field { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; opacity: 0; }
.capture-status { margin: 10px 0 0; font-size: 0.9rem; color: #a33; }
.capture-status.is-ok { color: var(--success); }
.capture-status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----- zh footer ----- */
.footer-columns-zh { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 900px) { .footer-columns-zh { grid-template-columns: 1fr 1fr; } }
