/* pain-pages.css (2026-09-26): switching block, before/after proposal,
   pricing terms and book-demo layout. Page-scoped class names only; uses
   the design tokens from styles.css, no raw colours except the neutral
   "plain document" look of the illustrative before/after mockup. */

/* ---- Homepage hero switch strip ---------------------------------------- */
.switch-strip {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
}
.switch-strip a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
@media (max-width: 1023px) { .switch-strip { margin-left: auto; margin-right: auto; } }

/* ---- Switching block (comparison page, /quoting, /pricing) -------------- */
.switch-section { padding: 56px 0; }
.switch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.switch-card h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 10px 0 12px; }
.switch-card p { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.switch-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding: 0; list-style: none; }
.switch-tools li {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-wash);
}
.switch-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.switch-actions .switch-textlink { color: var(--accent-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.switch-quote {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--tint-brand-06);
  border: 1px solid var(--border);
}
.switch-quote blockquote { margin: 0 0 12px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.switch-quote cite { font-style: normal; font-size: 13px; color: var(--text-dim); }
.switch-card--compact { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 32px; }
.switch-card--compact h2 { font-size: clamp(20px, 2.4vw, 26px); }
.switch-card--compact p { margin-bottom: 0; }
@media (max-width: 860px) {
  .switch-card, .switch-card--compact { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .switch-section { padding: 40px 0; }
}

/* ---- /quoting hero: PSA line ------------------------------------------- */
.psa-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 18px; font-size: 14px; color: var(--text-muted);
}
.psa-line strong { color: var(--text); font-weight: 600; }
.psa-line .psa-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.psa-line img { height: 18px; width: auto; opacity: .85; }
.quote-switch-line { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.quote-switch-line a { color: var(--accent-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .psa-line { justify-content: center; } }

/* ---- /quoting before / after ------------------------------------------- */
.ba-section { padding: 64px 0; }
.ba-section .section-head { text-align: center; margin-bottom: 28px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.ba-col { display: flex; flex-direction: column; gap: 12px; }
.ba-tag {
  align-self: flex-start;
  font-family: "Fragment Mono", "Inter", monospace; font-size: 11px; letter-spacing: .08em;
  padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
}
.ba-tag--after { color: var(--accent-blue); border-color: var(--accent-blue); }
.ba-caption { font-size: 15px; color: var(--text-muted); margin: 0; }
.ba-note { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 16px; }
/* "Before": a plain, invoice-looking document. Neutral greys on purpose. */
.ba-doc {
  flex: 1; border-radius: 6px; padding: 26px 26px 22px; min-height: 380px;
  background: #fff; color: #222; border: 1px solid #d4d4d4;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  font-family: "Times New Roman", Times, serif; font-size: 13px;
}
.ba-doc .d-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ba-doc .d-title { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.ba-doc .d-meta { text-align: right; font-size: 12px; line-height: 1.5; }
.ba-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ba-doc th, .ba-doc td { border: 1px solid #bdbdbd; padding: 5px 6px; text-align: left; }
.ba-doc th { background: #efefef; font-weight: 700; }
.ba-doc td.n { text-align: right; white-space: nowrap; }
.ba-doc .d-total { margin-top: 10px; text-align: right; font-weight: 700; }
.ba-doc .d-foot { margin-top: 18px; font-size: 11px; color: #555; line-height: 1.5; }
/* "After": a branded proposal, drawn with site tokens. */
.ba-prop {
  flex: 1; border-radius: var(--radius-md); overflow: hidden; min-height: 380px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.ba-prop .p-cover {
  background: var(--brand-gradient); color: var(--on-accent); padding: 22px 24px;
}
.ba-prop .p-logo {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 8px; border: 1px dashed currentColor; border-radius: 6px; opacity: .9;
}
.ba-prop .p-cover h3 { margin: 14px 0 4px; font-size: 20px; line-height: 1.25; color: inherit; }
.ba-prop .p-cover p { margin: 0; font-size: 13px; opacity: .9; }
.ba-prop .p-body { padding: 18px 24px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ba-prop .p-label { font-family: "Fragment Mono", "Inter", monospace; font-size: 11px; letter-spacing: .08em; color: var(--text-dim); }
.ba-prop .p-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-prop .p-opt { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.ba-prop .p-opt.sel { border-color: var(--accent-blue); background: var(--tint-brand-06); }
.ba-prop .p-opt b { display: block; font-size: 14px; margin-bottom: 2px; }
.ba-prop .p-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.ba-prop .p-line span:last-child { white-space: nowrap; }
.ba-prop .p-toggle { display: inline-block; width: 26px; height: 14px; border-radius: 10px; background: var(--accent-blue); vertical-align: middle; margin-right: 6px; position: relative; }
.ba-prop .p-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); }
.ba-prop .p-accept { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.ba-prop .p-accept strong { font-size: 15px; }
.ba-prop .p-btn { background: var(--accent-blue); color: var(--on-accent); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: var(--radius-pill); }
@media (max-width: 860px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-doc, .ba-prop { min-height: 0; }
  .ba-section { padding: 44px 0; }
}
/* A4 portrait pages (2026-09-26): both mockups at 1 : 1.414 so they read as
   real A4/letter pages. Side by side on desktop, stacked on mobile. */
.ba-grid { max-width: 860px; margin: 0 auto; align-items: start; }
.ba-doc, .ba-prop {
  flex: none; width: 100%; min-height: 0; aspect-ratio: 1 / 1.414;
  overflow: hidden; box-sizing: border-box;
}
.ba-doc { display: flex; flex-direction: column; }
.ba-doc .d-foot { margin-top: auto; padding-top: 18px; }
.ba-prop--cover { background: #0b0d10; }
.ba-prop--cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 860px) {
  .ba-col { max-width: 440px; width: 100%; margin: 0 auto; }
}
@media (max-width: 420px) {
  .ba-doc { padding: 20px 16px 16px; }
  .ba-doc .d-title { font-size: 18px; }
  .ba-doc .d-meta { font-size: 11px; }
  .ba-doc table { font-size: 11px; }
  .ba-doc th, .ba-doc td { padding: 4px 5px; }
}

/* ---- /pricing: terms under the plan cards, switch link ---------------- */
.plan-terms {
  margin: 28px auto 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.plan-term {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; font-size: 14px; line-height: 1.55; color: var(--text-muted);
}
.plan-term h3 { font-size: 15px; margin: 0 0 6px; color: var(--text); }
.plan-term ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-term li { display: flex; gap: 8px; align-items: flex-start; }
.plan-term li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent-green); }
.plan-term strong { color: var(--text); }
@media (max-width: 860px) { .plan-terms { grid-template-columns: 1fr; } }

/* ---- /book-demo: calendar in the first screen ------------------------- */
.bd-hero { padding: 24px 0 8px; text-align: center; }
.bd-hero h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 8px 0 8px; }
.bd-hero p.lead { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: 17px; line-height: 1.55; }
.bd-section { padding: 16px 0 72px; }
.bd-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1200px; margin: 0 auto; }
.bd-answers {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 24px; position: sticky; top: 88px;
}
.bd-answers h2 { font-size: 17px; margin: 0 0 14px; }
.bd-answers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bd-answers li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.bd-answers li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent-green); }
.bd-answers li strong { color: var(--text); }
.bd-answers a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; }
.bd-cal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 16px; min-width: 0; }
.bd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bd-tab {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-wash); color: var(--text); font: inherit;
}
.bd-tab img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.bd-tab .region { display: block; font-family: "Fragment Mono", "Inter", monospace; font-size: 10px; letter-spacing: .06em; color: var(--text-dim); }
.bd-tab .name { display: block; font-weight: 600; font-size: 14px; }
.bd-tab[aria-selected="true"] { border-color: var(--accent-blue); background: var(--tint-brand-06); box-shadow: inset 0 0 0 1px var(--accent-blue); }
.bd-panel[hidden] { display: none; }
.bd-panel .calendly-embed-shell { min-height: 1100px; }
.bd-panel .calendly-inline-widget { height: 1100px; }
.bd-hint { font-size: 13px; color: var(--text-dim); margin: 0 0 10px; text-align: center; }
@media (max-width: 960px) {
  .bd-grid { grid-template-columns: 1fr; }
  .bd-answers { position: static; order: 2; }
  .bd-cal { order: 1; padding: 12px; }
}
@media (max-width: 640px) {
  .bd-hero { padding: 20px 0 6px; }
  .bd-hero p.lead { font-size: 15px; }
  .bd-tabs { gap: 6px; }
  .bd-tab { padding: 8px; gap: 8px; }
  .bd-tab img { width: 28px; height: 28px; }
  .bd-tab .region { font-size: 9px; }
  .bd-panel .calendly-embed-shell { min-height: 970px; }
  .bd-panel .calendly-inline-widget { height: 970px; }
}

/* ---- Sound familiar? PSA pain block (2026-09-26) ----------------------- */
.pain-block { padding: 64px 0; }
.pain-block .section-head { text-align: center; margin-bottom: 28px; }
.pain-block .section-head p { max-width: 640px; margin: 10px auto 0; color: var(--text-muted); }
.pain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pain-item, .pain-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 22px 24px; min-width: 0;
}
.pain-item { border-left: 3px solid var(--status-red-soft, #e5484d); }
.pain-item h3, .pain-card h3 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; color: var(--text); }
.pain-item p, .pain-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.pain-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pain-card--switch { border-color: var(--accent-blue); }
.pain-card--switch .eyebrow { margin-bottom: 10px; }
.pain-card--switch .switch-textlink { display: inline-block; margin-top: 12px; color: var(--accent-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .pain-list, .pain-extra { grid-template-columns: 1fr; }
  .pain-block { padding: 44px 0; }
  .pain-item, .pain-card { padding: 18px 18px; }
}
