/* ==========================================================================
   Small Business AI CRM page only (src/small-business-ai-crm.html).
   Layout for the calculator, interface tour, offers, comparison table and the
   sticky price bar. Uses site.css tokens and variables only; no new colours or fonts.
   The abs-* hooks are the same ids and classes that crm.js reads.
   ========================================================================== */

/* Offers: the featured build sits beside the care plan and the review ----------- */
.abs-offers { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.abs-offers .abs-featured { grid-row: 1 / span 2; }
.abs-featured .abs-also-list { margin-top: 0; }
.abs-featured .abs-cols { display: block; columns: 2; column-gap: 32px; }
.abs-featured .abs-cols li { break-inside: avoid; margin-bottom: 14px; }
.abs-featured .offer-price s { color: var(--on-dark-3); }
.abs-offer-meta { font: 400 13px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--text-3); }
@media (max-width: 900px) {
  .abs-offers { grid-template-columns: 1fr; }
  .abs-offers .abs-featured { grid-row: auto; }
  .abs-featured .abs-cols { columns: 1; }
}

/* Calculator ------------------------------------------------------------------- */
.abs-calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.abs-calc-left { min-width: 0; }
.abs-calc-list { list-style: none; display: grid; gap: 10px; max-height: 540px; overflow-y: auto; padding: 2px 8px 2px 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; border-bottom: 1px solid var(--line); }
.abs-calc-list label { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--white); cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.abs-calc-list label:hover { border-color: var(--accent); }
.abs-calc-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.abs-calc-list input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.abs-calc-tool { flex: 1; font-weight: 600; line-height: 1.3; color: var(--ink); }
.abs-calc-plan { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.abs-calc-cost { font-weight: 600; white-space: nowrap; color: var(--ink); }
.abs-calc-group { font: 400 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-top: 14px; padding-left: 2px; }
.abs-calc-group:first-child { margin-top: 0; }
.abs-calc-hint { font: 400 12px/1.4 var(--f-mono); color: var(--text-3); margin-top: 8px; }
.abs-calc-other { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.abs-calc-other label { font-size: 14px; font-weight: 600; color: var(--ink); }
.abs-calc-other input { padding: 11px 14px; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; font: 400 16px/1.4 var(--f-sans); color: var(--ink); background: var(--white); max-width: 220px; }
.abs-calc-other input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.abs-calc-result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.abs-calc-result .stat-num { font-size: clamp(36px, 3.6vw, 48px); color: var(--ink); }
.abs-calc-result .stat-label { color: var(--text-2); font-size: 15px; }
.abs-calc-result .btn-primary { justify-content: center; }
.abs-calc-sub { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.abs-calc-saving { background: var(--mint-wash); border: 1px solid var(--mint-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.abs-calc-saving .stat-num { color: var(--mint-ink); }
.abs-calc-saving[hidden] { display: none; }
.abs-calc-payback { border-top: 1px solid var(--line); padding-top: 18px; font-size: 15px; color: var(--text-2); line-height: 1.65; }
.abs-calc-payback strong { color: var(--ink); }
.abs-footnote { font-size: 13px; color: var(--text-3); line-height: 1.7; margin-top: 24px; max-width: 900px; }
.abs-footnote a { color: var(--text-2); }
.abs-footnote sup { font-size: .7em; }
@media (max-width: 900px) {
  .abs-calc { grid-template-columns: 1fr; }
  .abs-calc-result { position: static; }
}

/* Interface tour carousel -------------------------------------------------------- */
.abs-carousel { position: relative; margin-top: 48px; }
.abs-carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.abs-carousel-track::-webkit-scrollbar { display: none; }
.abs-carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.abs-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
@media (min-width: 900px) { .abs-slide { flex-basis: calc(88% - 12px); } }
.abs-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(11,18,32,.35); }
.abs-frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.abs-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.abs-frame-url { flex: 1; margin-left: 10px; height: 18px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.abs-frame img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.abs-frame figcaption { padding: 16px 20px 20px; font-size: 15px; color: var(--text-2); line-height: 1.65; }
.abs-frame figcaption strong { color: var(--ink); }
.abs-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; }
.abs-carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .15s, color .15s; }
.abs-carousel-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.abs-carousel-side { display: none; position: absolute; top: 38%; z-index: 2; }
.abs-carousel-prev { left: -22px; }
.abs-carousel-next { right: -22px; }
@media (min-width: 900px) {
  .abs-carousel-side { display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 40px -18px rgba(11,18,32,.5); }
  .abs-carousel-inline { display: none; }
}
.abs-carousel-dots { display: flex; gap: 0; }
/* 24px tap target (WCAG 2.5.8) around the same 10px dot, drawn by ::before */
.abs-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: none; background: none; cursor: pointer; }
.abs-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background .15s, transform .15s; }
.abs-dot.active::before { background: var(--accent); transform: scale(1.25); }
.abs-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.abs-carousel-count { text-align: center; font-size: 14px; color: var(--text-3); margin-top: 12px; }
.abs-carousel-count span:first-child { font-weight: 600; color: var(--ink); }

/* Side by side comparison table ----------------------------------------------------- */
.abs-compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.abs-compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.abs-compare th, .abs-compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--text-2); }
.abs-compare thead th { font: 400 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--paper); }
.abs-compare tbody th { font-weight: 600; color: var(--ink); width: 17%; }
.abs-compare td.abs-this { background: var(--accent-wash); color: var(--ink); }
.abs-compare thead th.abs-this { background: var(--accent); color: #fff; }
.abs-compare tbody tr:last-child th, .abs-compare tbody tr:last-child td { border-bottom: none; }
.abs-compare sup { font-size: .7em; color: var(--text-3); margin-left: 1px; }

/* Sticky price bar (desktop only, shown after the hero, hidden at the booking panel) */
.abs-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .25s; }
.abs-sticky.visible { transform: translateY(0); }
.abs-sticky-inner { max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.abs-sticky-price { font-family: var(--f-disp); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.abs-sticky-price .was { font-size: 14px; font-weight: 500; color: var(--text-3); text-decoration: line-through; margin-left: 6px; }
.abs-sticky-note { font-size: 13px; color: var(--text-2); }
@media (max-width: 767px) { .abs-sticky { display: none !important; } }
@media print { .abs-sticky { display: none !important; } }

/* Small screens: keep the calculator and cards at 16px gutters, no horizontal page scroll */
@media (max-width: 560px) {
  .abs-calc { padding: 20px; }
  .abs-frame figcaption { padding: 14px 16px 18px; }
  .abs-calc-list label { padding: 12px; }
}
