/* Klantflow-only size refinement, explicitly requested on 21 September 2026.
   Keep the Xenid fonts and a 16px rem basis; never scale down touch targets.
   Load after the reference and feature styles so every screen uses this scale. */
:root {
  --xenid-public-h1: clamp(1.75rem, 2.25vw, 2rem);
  --xenid-public-h2: clamp(1.625rem, 2.4vw, 2.125rem);
  --kf-text: .875rem;
  --kf-small: .75rem;
  --kf-caption: .6875rem;
  --sidebar-width: 260px;
}
body { font-size: var(--kf-text); line-height: 1.6; }
p { line-height: 1.65; }
h1, h2, h3, h4 { word-spacing: .04em; }
h1, .page-head h1, .client-intro h1, .success-card h1 { line-height: 1.15; }
h2, .hero h2 { line-height: 1.18; letter-spacing: -.025em; }
h3 { font-size: .8125rem; line-height: 1.5; }
.page-head { margin-bottom: 24px; }
.page-head p, .client-intro p { font-size: var(--kf-text); line-height: 1.65; }
.hero { min-height: 245px; padding: 28px; }
.hero p { font-size: var(--kf-text); line-height: 1.65; margin: 14px 0 18px; max-width: 395px; }
.hero .eyebrow { margin-bottom: 14px; }
.eyebrow, .hero .eyebrow, .next-card .eyebrow, .message-preview .eyebrow { font-size: var(--kf-caption); letter-spacing: .11em; }

/* Navigation and controls: smaller type, unchanged usable target sizes. */
.nav a, .nav a.active { font-size: .875rem; line-height: 1.5; font-weight: 600; padding: 11px 12px; }
/* Keep one- and two-line menu labels on the same evenly spaced row grid. */
.sidebar .nav { flex-shrink: 0; gap: 5px; }
.sidebar .nav a { height: 2.75rem; flex-shrink: 0; padding-block: 0; line-height: 1.4; }
.brand-word { font-size: 1.3125rem; }
.brand-by { font-size: .6rem; letter-spacing: .12em; }
.workspace strong, .profile strong, .sidebar-tip strong { font-size: .8125rem; }
.workspace small, .profile small, .sidebar-tip p { font-size: var(--kf-caption); line-height: 1.6; }
.nav-label { font-size: .625rem; }
.breadcrumb { font-size: var(--kf-small); }
.nav-count, .demo-pill, .tab span, .badge { font-size: var(--kf-caption); }
.btn, .hero .btn, .btn-small, .page-head > .actions .btn { font-size: .75rem; letter-spacing: .015em; min-height: 44px; }
.text-link, .panel-head .text-link, .back-link, .sidebar-tip a, .panel-foot, .tab { font-size: var(--kf-small); }
.request-avatar { font-size: var(--kf-caption); }
.toast { font-size: var(--kf-small); }

/* Shared panels, request cards, customer tables and agenda. */
.panel-head h2, .flow-intro h2, .form-section h2, .client-form h2,
.request-card h2, .calendar-title, .assistant-workspace .panel-head h2,
.assistant-teaser h2 { font-size: .875rem; line-height: 1.5; }
.panel-head p, .flow-intro p, .row-info p, .appointment-mini p,
.row-end small, .flow-step small, .card-top small, .card-meta,
.card-bottom, .photo-button span { font-size: var(--kf-caption); line-height: 1.6; }
.row-info strong, .appointment-mini h3, .flow-step strong,
.table .customer-cell strong, .toggle-line strong, .message-preview h3,
.appointment-large h3 { font-size: .8125rem; }
.stat-name { font-size: .8125rem; }
.stat-number { font-size: 1.75rem; }
.stat-note { font-size: var(--kf-caption); line-height: 1.6; }
.description, .request-card p, .next-card p, .success-card p,
.message-preview p, .empty p, .detail-sub, .client-form .detail-sub,
.toggle-line p, .appointment-large p { font-size: var(--kf-text); line-height: 1.65; }
.next-card h2, .empty h2, .assistant-empty h2 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.25; }
.data-label { font-size: var(--kf-caption); }
.data-value, .timeline li { font-size: var(--kf-small); line-height: 1.65; }
.timeline small, .appointment-mini .badge { font-size: var(--kf-caption); }
.day { font-size: var(--kf-caption); }
.day strong, .appointment-time { font-size: .8125rem; }
.agenda-day { font-size: var(--kf-caption); }
.agenda-day strong { font-size: 1.125rem; }
.agenda-day .count-dot { font-size: .625rem; }
.table td, .table td:first-child { font-size: var(--kf-text); }
.table td:nth-child(2), .table td small { font-size: var(--kf-caption); }

/* Forms and customer-facing quotation pages. */
.note, .quote-note, .quote-paper .quote-ref, .message-preview small,
.form-error, .field small, .field-label small, .photo-upload small {
  font-size: var(--kf-caption); line-height: 1.65;
}
.field label, .field-label, .line-mobile-label, .quote-line-labels,
.quote-table th, .table th, .check-row { font-size: var(--kf-caption); line-height: 1.55; }
.field input, .field select, .field textarea, .search input,
.slot-row input, .quote-line input, .quote-line select { font-size: var(--kf-text); line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { font-size: inherit; }
.photo-upload strong { font-size: .8125rem; }
.quote-totals .total-row, .quote-address { font-size: .8125rem; line-height: 1.65; }
.quote-totals .total-row.grand { font-size: 1.25rem; }
.quote-paper h2 { font-size: 1.5rem; line-height: 1.2; }
.quote-paper h3, .accept-box h3, .slot strong { font-size: .8125rem; }
.quote-table td, .quote-paper .quote-table td { font-size: var(--kf-text); line-height: 1.65; }
.quote-table td small, .slot small { font-size: var(--kf-caption); }
.modal-head h2 { font-size: 1.125rem; line-height: 1.3; }
.modal > p, .help-list li, .help-list span, .slot { font-size: var(--kf-text); line-height: 1.65; }
.client-header .trust, .client-demo, .client-demo a { font-size: var(--kf-caption); }
.client-brand strong { font-size: 1.0625rem; }
.client-brand small { font-size: .625rem; }
.footer-note, .client-footer { font-size: var(--kf-caption); line-height: 1.65; }
.footer-note a, .client-footer a { font-size: var(--kf-small); }

/* Feature panels share the same compact scale. */
.assistant-intro, .assistant-context, .assistant-empty ol,
.assistant-teaser p { font-size: var(--kf-small); line-height: 1.65; }
.assistant-context strong { font-size: .8125rem; }
.assistant-context small, .assistant-result-note, .assistant-facts dt,
.assistant-workspace .panel-head .eyebrow, .assistant-empty .eyebrow { font-size: var(--kf-caption); }
.assistant-facts dd { font-size: var(--kf-small); line-height: 1.65; }
.assistant-questions ul, .assistant-questions p, .assistant-card .panel-body > p { font-size: .8125rem; line-height: 1.65; }
.assistant-empty > p:not(.eyebrow) { font-size: var(--kf-text); line-height: 1.65; }
.weather-rule strong { font-size: 1.125rem; }
.weather-rule span, .weather-status, .weather-metric span { font-size: var(--kf-small); }
.weather-metric strong { font-size: 1.25rem; }
.weather-card .note, .weather-checks small, .weather-live small { font-size: var(--kf-caption); }
.weather-checks li, .weather-mail { font-size: var(--kf-text); line-height: 1.65; }

@media (max-width: 760px) {
  :root { --xenid-public-h1: 1.625rem; --xenid-public-h2: 1.75rem; --sidebar-width: 260px; }
  .hero { padding: 24px 20px; min-height: 0; }
  .nav a, .nav a.active { font-size: .875rem; }
  .mobile-nav a { font-size: .625rem; }
  .topbar .demo-pill { font-size: .625rem; }
  .stat-number { font-size: 1.5rem; }
  .quote-paper h2 { font-size: 1.25rem; }
  .quote-totals .total-row.grand { font-size: 1.125rem; }
  .client-brand strong { font-size: 1rem; }
  /* Keep actual mobile inputs legible while reducing the surrounding copy. */
  .field input, .field select, .field textarea, .search input,
  .slot-row input, .quote-line input, .quote-line select { font-size: 1rem; }
}
@media (max-width: 560px) {
  .weather-rule strong { font-size: .9375rem; }
  .weather-rule span { font-size: var(--kf-caption); }
}
@media print {
  .quote-paper h2 { font-size: 1.25rem; }
}
