/* kaitech.sa layout. Tokens come from tokens.css, components from components.css
   (the design system's own stylesheet). Logical properties only, so every rule
   mirrors under dir="rtl". Light and structured: hairlines first, tight corners,
   no gradients, glows or blinking motion. */

/* ------------------------------------------------------------- base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: inherit; }
a.hs-btn, a.chip, a.hs-card, .site-brand { text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.skip { position: absolute; inset-inline-start: var(--space-4); top: -60px; z-index: 50; background: var(--action); color: var(--on-action); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); text-decoration: none; }
.skip:focus { top: var(--space-2); }
[dir="ltr"] .num, .num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Accent per composition: the group (saffron), advisory (clay), labs (teal) or operations (olive). */
body { --accent: var(--saffron); --accent-text: var(--saffron-text); --accent-soft: var(--saffron-soft); }
body.accent-advisory { --accent: var(--clay); --accent-text: var(--clay-text); --accent-soft: var(--clay-soft); }
body.accent-labs { --accent: var(--teal); --accent-text: var(--teal-text); --accent-soft: var(--teal-soft); }
body.accent-operations { --accent: var(--olive); --accent-text: var(--olive-text); --accent-soft: var(--olive-soft); }

/* -------------------------------------------------------- typography --- */
.display { font-size: 56px; line-height: 64px; letter-spacing: -0.02em; font-weight: 600; }
.h-page { font-size: 40px; line-height: 48px; letter-spacing: -0.015em; }
.h1 { font-size: 30px; line-height: 38px; letter-spacing: -0.01em; }
.h2 { font-size: 23px; line-height: 31px; letter-spacing: -0.005em; }
.h3 { font-size: 18px; line-height: 26px; }
.lead { font-size: 18px; line-height: 30px; font-weight: 300; color: var(--muted); max-width: var(--container-text); }
.body { font-size: 15px; line-height: 25px; font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 20px; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }

[dir="rtl"] .display { font-size: 48px; line-height: 76px; letter-spacing: 0; }
[dir="rtl"] .h-page { font-size: 40px; line-height: 64px; letter-spacing: 0; }
[dir="rtl"] .h1 { font-size: 32px; line-height: 52px; letter-spacing: 0; }
[dir="rtl"] .h2 { font-size: 25px; line-height: 40px; letter-spacing: 0; }
[dir="rtl"] .h3 { font-size: 20px; line-height: 32px; }
[dir="rtl"] .lead { font-size: 19px; line-height: 34px; }
[dir="rtl"] .body, [dir="rtl"] body { font-size: 17px; line-height: 30px; }
[dir="rtl"] .small { font-size: 15px; line-height: 26px; }
[dir="rtl"] .eyebrow { font-size: 13px; line-height: 20px; letter-spacing: 0; }
[dir="rtl"] * { letter-spacing: normal; }

.prose { max-width: var(--container-text); }
.prose > * + * { margin-block-start: var(--space-4); }
.prose h2 { margin-block-start: var(--space-6); }
.prose ul, .prose ol { padding-inline-start: var(--space-5); margin: 0; }
.prose li + li { margin-block-start: var(--space-2); }
.prose a { color: var(--ink); text-underline-offset: 3px; }

/* ------------------------------------------------------------ layout --- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--space-6)); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-8); }
.section + .section { border-block-start: 1px solid var(--line); }
.section-sunken { background: var(--sunken); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-block-end: var(--space-6); max-width: var(--container-text); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ------------------------------------------------------------ header --- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-block-end: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-height); max-width: calc(var(--container) + 2 * var(--space-6)); margin-inline: auto; padding-inline: var(--space-6); }
.site-brand { display: flex; align-items: center; flex: none; }
.site-brand img { height: 36px; width: auto; }
[dir="ltr"] .site-brand img { height: 26px; }
.site-brand-lockup img, [dir="ltr"] .site-brand-lockup img { height: 48px; }
.site-nav { display: flex; gap: var(--space-5); flex: 1; }
.site-nav-link { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: var(--space-1); border-block-end: 2px solid transparent; }
[dir="rtl"] .site-nav-link { font-size: 16px; }
.site-nav-link:hover { color: var(--ink); }
.site-nav-link.is-active { color: var(--ink); border-block-end-color: var(--ink); }
.site-nav-mobile-only { display: none; }
.site-actions { display: flex; align-items: center; gap: var(--space-4); }
.site-lang { color: var(--ink); font-size: 14px; text-decoration: none; }
.site-lang[lang="ar"] { font-family: var(--font-arabic); font-size: 15px; }
.site-lang[lang="en"] { font-family: var(--font-sans); }
.site-menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: var(--space-2); margin-inline-end: calc(-1 * var(--space-2)); cursor: pointer; border-radius: var(--radius-md); }

/* -------------------------------------------------------------- hero --- */
.hero { padding-block: var(--space-9) var(--space-8); }
.hero .display { max-width: 900px; }
.hero .lead { margin-block-start: var(--space-5); }
.hero-actions { margin-block-start: var(--space-6); }
.page-hero { padding-block: var(--space-8) var(--space-7); border-block-end: 1px solid var(--line); }
.page-hero .lead { margin-block-start: var(--space-4); }

/* ------------------------------------------------------------- cards --- */
a.hs-card { text-decoration: none; color: inherit; transition: border-color .12s ease; }
a.hs-card:hover { border-color: var(--line-strong); }
.card-link { margin-block-start: auto; padding-block-start: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; font-size: 15px; color: var(--ink); }
.card-link svg { width: 18px; height: 18px; }
[dir="rtl"] .card-link svg, [dir="rtl"] .flip { transform: scaleX(-1); }
.door { padding: var(--space-6); gap: var(--space-3); min-height: 220px; }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 400; }
.chip:hover { background: var(--sunken); }
[dir="rtl"] .chip { font-size: 16px; }

/* Proof: one real figure per card, large, in ink; the accent marks the one saving. */
.proof { gap: var(--space-3); }
.proof-figure { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); font-variant-numeric: tabular-nums; }
[dir="rtl"] .proof-figure { font-size: 40px; line-height: 60px; letter-spacing: 0; }
.proof-figure .unit { font-size: 18px; font-weight: 500; color: var(--muted); }
.proof-bar { height: 6px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.proof-bar span { display: block; height: 100%; background: var(--accent); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-block-start: var(--space-6); border-block-start: 2px solid var(--ink); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: var(--space-3); inset-inline-start: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.step h3 { margin-block-end: var(--space-2); }

/* Founder */

/* Article list */

/* CTA band */
.cta-band { background: var(--brand-night); color: var(--brand-linen); }
.cta-band h2 { color: var(--brand-linen); }
.cta-band .lead { color: var(--night-muted); }
.cta-band .hs-btn-primary { background: var(--brand-linen); color: var(--brand-night); }
.cta-band .hs-btn-primary:hover { background: var(--brand-white); }
.cta-band .hs-btn-quiet { color: var(--brand-linen); }
.cta-band .hs-btn-quiet:hover { background: var(--night-line); }
.cta-band .hs-btn:focus-visible { box-shadow: 0 0 0 2px var(--brand-night), 0 0 0 4px var(--brand-linen); }

/* ------------------------------------------------------- price menu --- */
.menu-group { margin-block-start: var(--space-7); }
.menu-group:first-child { margin-block-start: 0; }
.menu-group > h2 { margin-block-end: var(--space-4); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-6); padding-block: var(--space-5); border-block-start: 1px solid var(--line); align-items: start; }
.service:last-child { border-block-end: 1px solid var(--line); }
.service h3 { grid-column: 1; }
.service p { grid-column: 1; color: var(--muted); max-width: var(--container-text); }
.service-price { grid-column: 2; grid-row: 1 / span 2; text-align: end; display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-end; }
.price { font-size: 20px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-note { font-size: 13px; color: var(--muted); white-space: nowrap; }
[dir="rtl"] .price-note { font-size: 14px; }
.service.is-target { background: var(--accent-soft); margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); border-radius: var(--radius-md); }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.rule h3 { margin-block-end: var(--space-2); }

.areas { list-style: none; padding: 0; margin: 0; }
.area { display: flex; gap: var(--space-4); padding-block: var(--space-4); border-block-start: 1px solid var(--line); }
.area-num { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 24px; padding-block-start: 4px; }

/* ------------------------------------------------------------ forms --- */
.form { display: flex; flex-direction: column; gap: var(--space-5); max-width: 640px; }
.form-step { display: flex; flex-direction: column; gap: var(--space-5); }
.form-step[hidden] { display: none; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.form legend { font-size: 14px; line-height: 20px; font-weight: 500; margin-block-end: var(--space-2); padding: 0; }
[dir="rtl"] .form legend, [dir="rtl"] .hs-field-label { font-size: 15px; line-height: 24px; }
.choice { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { accent-color: var(--brand-night); width: 18px; height: 18px; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status { padding: var(--space-4); border-radius: var(--radius-md); }
.form-status[hidden] { display: none; }
.form-status.is-ok { background: var(--positive-soft); color: var(--positive); }
.form-status.is-error { background: var(--negative-soft); color: var(--negative); }
.steps-indicator { display: flex; gap: var(--space-2); font-size: 13px; color: var(--muted); }
.steps-indicator span { padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--sunken); }
.steps-indicator span.is-on { background: var(--action); color: var(--on-action); }

/* Slot picker */
.days { display: flex; gap: var(--space-2); overflow-x: auto; padding-block-end: var(--space-2); }
.day { flex: none; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.day small { color: var(--muted); font-size: 12px; }
.day[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.day[aria-pressed="true"] small { color: inherit; }
.day:disabled { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); margin-block-start: var(--space-4); }
.slot { height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }
/* The manage page (book/manage/): its parts are shown and hidden with the
   hidden attribute, which .hs-form-actions' display would override. */
.manage { display: flex; flex-direction: column; gap: var(--space-5); }
.manage [hidden] { display: none; }
/* Khalid's owner page (book/owner/), as the canvas boards (v27): a dark
   bar with the reversed logo and an accent rule, the booking card, one
   form card, the states as white cards with wells. Its parts are shown
   and hidden with the hidden attribute, which the flex and grid
   displays would override. */
.owner [hidden], .owner-actions[hidden], .owner [data-messages]:empty { display: none !important; }
.owner-bar { background: var(--brand-night); }
.owner-bar-inner { max-width: 640px; margin-inline: auto; padding: 18px var(--space-6); display: flex; align-items: center; }
.owner-bar-inner img { display: block; height: 26px; width: auto; }
.owner-edge { height: 4px; background: var(--accent); }
.owner-wrap { padding-block: var(--space-6) 0; }
.owner { max-width: 640px; margin-inline: auto; padding-inline: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.owner-head { display: flex; flex-direction: column; gap: var(--space-1); }
.owner-ref { margin: 0; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.owner-title { margin: 0; font-size: 26px; line-height: 38px; font-weight: 600; outline: none; }
.owner-title:focus-visible, .owner-panel:focus-visible, .owner-warn-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.owner-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.owner-card-top { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 20px; border-inline-start: 4px solid var(--accent); }
.owner-card p { margin: 0; }
.owner-date { font-size: 22px; line-height: 34px; font-weight: 700; }
.owner-time { font-size: 18px; line-height: 30px; font-variant-numeric: tabular-nums; }
.owner-card.is-cancelled .owner-date, .owner-card.is-cancelled .owner-time { text-decoration: line-through; color: var(--muted); }
.owner-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: 10px; }
.owner-chip { font-size: 14px; line-height: 22px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); }
.owner-details { margin: 0; padding: 4px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.owner-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 12px; padding-block: 9px; font-size: 15px; line-height: 24px; }
.owner-row + .owner-row { border-top: 1px solid var(--sunken); }
.owner-row dt { color: var(--muted); }
.owner-row dd { margin: 0; overflow-wrap: anywhere; unicode-bidi: isolate; }
.owner-row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.owner-card-note { padding: 0 18px 14px; }
.owner-small { margin: 0; font-size: 14px; line-height: 22px; }
.owner-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.owner-actions .hs-btn, .owner-form-actions .hs-btn, .owner-panel .hs-btn, .owner-panel-actions .hs-btn { white-space: normal; height: auto; min-height: 48px; padding-block: 8px; text-align: center; }
.owner-teams { min-height: 50px !important; font-size: 17px; font-weight: 600; text-decoration: none; }
.owner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.owner-btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.owner-btn-outline:hover { background: var(--sunken); }
.owner-btn-danger { background: var(--surface); color: var(--negative); border-color: var(--negative); }
.owner-btn-danger:hover { background: var(--negative-soft); }
.owner-pair > :only-child { grid-column: 1 / -1; }
.owner-wide { width: 100%; }
.owner-form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px; display: flex; flex-direction: column; gap: 22px; }
.owner-form fieldset { border: 0; padding: 0; margin: 0; }
.owner-confirm { margin: 0; padding: var(--space-3) var(--space-4); background: var(--sunken); border-radius: var(--radius-md); font-weight: 600; overflow-wrap: anywhere; }
.owner-form-actions { display: flex; flex-direction: column; gap: 10px; }
.owner-btn-warn { background: var(--negative); border-color: var(--negative); color: #ffffff; }
.owner-btn-warn:hover { background: var(--negative); filter: brightness(.92); }
.owner-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; outline: none; }
.owner-panel p { margin: 0; }
.owner-panel-title { font-size: 20px; line-height: 32px; font-weight: 600; }
.owner-panel-text { font-size: 16px; line-height: 28px; color: var(--muted); }
.owner-well { display: block; padding: 10px 12px; border-radius: 6px; border-inline-start: 4px solid; font-size: 15px; line-height: 25px; }
.owner-well-ok { background: var(--positive-soft); border-color: var(--positive); }
.owner-well-ok b { color: var(--positive); }
.owner-well-todo { background: var(--negative-soft); border-color: var(--negative); }
.owner-well-todo b { color: var(--negative); }
.owner-warn-wrap { display: flex; flex-direction: column; gap: 16px; outline: none; }
.owner-warn { padding: 16px 16px 18px; border-radius: 10px; }
.owner-warn p { margin: 0; font-size: 16px; line-height: 28px; }
.owner-warn .owner-warn-title { font-size: 17px; font-weight: 600; color: var(--negative); }
.owner-fail { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border-radius: 10px; }
.owner-fail svg { flex: none; margin-top: 5px; color: var(--negative); }
.owner-fail p { margin: 0; font-size: 16px; line-height: 28px; }
.owner-fail .owner-warn-title { font-size: 17px; font-weight: 600; color: var(--negative); }
.owner-lead { margin: 0; font-size: 17px; line-height: 30px; font-weight: 300; }
.owner-time-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.owner-time-card p { margin: 0; }
.owner-time-label { font-size: 14px; line-height: 22px; font-weight: 500; color: var(--muted); }
.owner-time-value { font-size: 18px; line-height: 30px; font-weight: 600; }
.owner-panel-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.owner-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.owner-line { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 24px; }
.owner-line svg, .owner-spin { flex: none; }
.owner-line-ok svg { color: var(--positive); }
.owner-line-wait { color: var(--muted); }
.owner-spin { width: 14px; height: 14px; margin: 0 2px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); box-sizing: border-box; animation: owner-spin 1s linear infinite; }
@keyframes owner-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .owner-spin { animation: none; } }
.owner-foot { margin: 0; padding-block: 28px; font-size: 14px; line-height: 22px; color: var(--muted); }
@media (max-width: 640px) {
  .owner, .owner-bar-inner { padding-inline: 20px; }
}
/* Booking summary (step 3, and inside the confirmation) */
.summary-inner { display: flex; flex-direction: column; gap: var(--space-5); }
.summary-when { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: var(--radius-lg); }
.summary-when p { margin: 0; }
.summary-label { margin: 0; font-size: 13px; color: var(--muted); }
[dir="rtl"] .summary-label { font-size: 14px; }
.summary-date { font-size: 20px; line-height: 28px; font-weight: 600; }
.summary-time { font-size: 17px; line-height: 26px; font-variant-numeric: tabular-nums; }
.summary-note { font-size: 15px; }
.summary-when .book-calendar { margin-block-start: 16px; }
.summary-edit { align-self: flex-start; margin-block-start: var(--space-2); }
.summary-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); }
.summary-head .h3 { margin: 0; }
.summary-head .summary-edit { margin: 0; }
.summary-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.summary-item { min-width: 0; padding-block-end: var(--space-3); border-block-end: 1px solid var(--line); }
.summary-value { margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .summary-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer --- */
.site-footer { border-block-start: 1px solid var(--line); background: var(--paper); padding-block: var(--space-8) var(--space-6); margin-block-start: 0; }
.footer-social { display: flex; gap: var(--space-4); margin-block-start: var(--space-2); }
.footer-social a { display: inline-flex; padding: var(--space-1); margin-inline-start: calc(-1 * var(--space-1)); }
.footer-social svg { width: 22px; height: 22px; stroke: currentColor; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-6); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-title { font-size: 14px; line-height: 20px; font-weight: 600; margin-block-end: var(--space-2); }
[dir="rtl"] .footer-title { font-size: 15px; line-height: 24px; }
.footer-logo { height: 64px; width: auto; }
.footer-tagline { margin-block-start: var(--space-3); font-weight: 500; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-block-start: var(--space-7); padding-block-start: var(--space-4); border-block-start: 1px solid var(--line); font-size: 13px; color: var(--muted); }
[dir="rtl"] .footer-legal { font-size: 14px; }
.footer-legal p { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-legal a { color: var(--muted); }

/* -------------------------------------------------------- responsive --- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: var(--space-4); }
}
@media (max-width: 860px) {
  .site-header-inner { height: 56px; gap: var(--space-3); padding-inline: var(--space-4); justify-content: space-between; }
  .site-brand img { height: 30px; }
  [dir="ltr"] .site-brand img { height: 22px; }
  .site-brand-lockup img, [dir="ltr"] .site-brand-lockup img { height: 40px; }
  .site-nav { display: none; position: absolute; top: 56px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--paper); border-block-end: 1px solid var(--line); padding: var(--space-2) var(--space-4) var(--space-4); box-shadow: var(--shadow-md); }
  .site-nav.is-open { display: flex; }
  .site-nav-link { padding-block: var(--space-3); border-block-end: 1px solid var(--line); }
  .site-nav-link.is-active { border-block-end-color: var(--line); font-weight: 600; }
  .site-nav-mobile-only { display: block; }
  .site-menu-btn { display: inline-flex; }
  .site-cta { display: none; }
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-7); }
  .hero { padding-block: var(--space-8) var(--space-7); }
  .display { font-size: 38px; line-height: 46px; }
  [dir="rtl"] .display { font-size: 34px; line-height: 56px; }
  .h-page { font-size: 32px; line-height: 40px; }
  [dir="rtl"] .h-page { font-size: 30px; line-height: 50px; }
  .grid-2, .grid-3, .grid-4, .rules, .choice-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service-price { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Text for screen readers only. */
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Which unit is speaking: a bar in its colour across the top of every page,
   and its soft tint behind the hero of the unit's home page. Fills only. */
.site-header { border-block-start: 4px solid var(--accent); }
.hero-unit { background: var(--accent-soft); }

/* Steps in a long form: "Step 2 of 3" above the step's heading (08-forms). */
.step-count { font-size: 14px; line-height: 20px; color: var(--muted); margin: 0 0 calc(-1 * var(--space-4)); }
.form-step[hidden] { display: none; }

/* A short bulleted list inside a card (for example "Before you send your idea"). */
.prose-list { margin: 0; padding-inline-start: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink-2, var(--ink)); }

/* Consent banner (consent.js shows it until the visitor chooses). */
.consent { position: fixed; inset-inline: var(--space-4); inset-block-end: var(--space-4); z-index: 50; max-width: 640px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.consent[hidden] { display: none; }
.consent-text { flex: 1 1 280px; margin: 0; font-size: 15px; }
.consent-actions { display: flex; gap: var(--space-2); }
/* Keep the last lines of the page clear of the fixed banner; consent.js
   sets --consent-h to the banner's height while it is showing. */
body.has-consent { padding-block-end: calc(var(--consent-h, 120px) + var(--space-8, 32px)); }
@media (max-width: 640px) { body.has-consent { padding-block-end: calc(var(--consent-h, 200px) + var(--space-8, 32px)); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* -------------------------------------------- budget calculator (advisory) --- */
.budget-privacy { margin-block-start: var(--space-4); max-width: var(--container-text); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-inline-start: 2px solid var(--accent); border-radius: var(--radius-md); background: var(--surface); color: var(--muted); }
.budget-privacy strong { color: var(--ink); font-weight: 500; }
.budget-bar { position: sticky; top: var(--header-height); z-index: 10; background: var(--surface); border-block: 1px solid var(--line); }
.budget-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); padding-block: var(--space-3); }
.budget-metric { display: flex; flex-direction: column; }
.budget-metric span { font-size: 12px; line-height: 16px; color: var(--muted); }
[dir="rtl"] .budget-metric span { font-size: 13px; line-height: 20px; }
.budget-metric b { font-weight: 500; font-size: 17px; line-height: 24px; }
.budget-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-inline-start: auto; }
.budget-assume { gap: var(--space-3); }
.budget-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-2) var(--space-5); }
.budget-dept { display: flex; align-items: center; gap: var(--space-2); }
.budget-dept .hs-input { min-width: 0; }
.budget-dept .budget-count { flex: 0 0 5rem; }
.budget-remove { min-height: 48px; flex: none; padding-inline: var(--space-3); }
.budget-assume-foot, .budget-rev { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4) var(--space-6); }
.budget-assume-foot .hs-field, .budget-rev .hs-field { flex: 0 1 16rem; }
.budget-total { display: flex; flex-direction: column; }
.budget-total b { font-size: 23px; line-height: 31px; font-weight: 500; }
.budget-groups { display: flex; flex-direction: column; gap: var(--space-6); }
.budget-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); margin-block-end: var(--space-3); }
.budget-group-head .h3 { margin: 0; }
.budget-table { min-width: 760px; }
.budget-table td { vertical-align: top; }
.budget-line { display: block; font-weight: 500; }
.budget-guide { display: block; max-width: 34ch; }
.budget-amt { display: flex; align-items: center; gap: var(--space-2); min-width: 12rem; }
.budget-amt .hs-affix { flex: 1 1 auto; }
.budget-derived { flex: 1 1 auto; text-align: end; }
.budget-grow { width: 5rem; }
.budget-next { white-space: nowrap; }
.budget-next.is-zero { color: var(--muted); }
.budget-cls { min-width: 9rem; }
.budget-basis { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block-start: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: var(--sunken); }
#budget [hidden] { display: none; }
.budget-basis .hs-select-wrap { flex: 1 1 10rem; }
.budget-basis .budget-rate { flex: 0 0 6rem; }
.budget-eq { margin: 0; }
.budget-warn { flex: 1 1 100%; margin: 0; color: var(--negative); }
.budget-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.budget-split div { display: flex; flex-direction: column; border-block-start: 1px solid var(--line); padding-block-start: var(--space-3); }
.budget-split b { font-size: 20px; line-height: 28px; font-weight: 500; }
@media (max-width: 720px) {
  .budget-bar { position: static; }
  .budget-actions { margin-inline-start: 0; }
  .budget-split { grid-template-columns: 1fr; }
}
/* budget: phone cards */
@media (max-width: 640px) {
  .hs-table-wrap.budget-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .budget-table { min-width: 0; border-collapse: separate; }
  .budget-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .budget-table, .budget-table tbody, .budget-table tfoot { display: block; }
  .budget-table tr { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); margin-block-end: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .budget-table td { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; text-align: start; }
  .budget-table td[data-label]::before { content: attr(data-label); font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ink); }
  .budget-table td.budget-next { flex-direction: row; justify-content: space-between; align-items: baseline; padding-block-start: var(--space-3); border-block-start: 1px solid var(--line); font-weight: 600; }
  .budget-table .hs-input, .budget-table .hs-affix, .budget-table .hs-btn { min-height: 48px; }
  .budget-amt { min-width: 0; }
  .budget-grow, .budget-cls { width: 100%; min-width: 0; }
  .budget-guide { max-width: none; }
  .budget-table tfoot tr { flex-direction: row; justify-content: space-between; align-items: baseline; background: var(--sunken); border-color: transparent; }
  .budget-table tfoot td:empty { display: none; }
  .budget-actions .hs-btn { min-height: 48px; flex: 1 1 0; }
  .budget-actions { width: 100%; }
}
@media print {
  .site-header, .site-footer, .cta-band, .budget-actions, .budget-privacy, .budget-fx, #budget-add, .budget-dept button, #kt-consent { display: none !important; }
  .budget-bar { position: static; }
  .budget-table { min-width: 0; }
  .hs-table-wrap { overflow: visible; }
}

/* WhatsApp follow (canvas board): a secondary button under the opening lines,
   a helper line under it. */
.whatsapp-follow { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin-block-start: var(--space-5); }
.whatsapp-follow .hs-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; }
.whatsapp-follow svg, .whatsapp-follow img { flex: none; }
.whatsapp-follow .whatsapp-out { opacity: .7; }
.whatsapp-help { margin: 0; }
.or-line { display: flex; align-items: center; gap: 12px; margin-block-start: var(--space-6); color: var(--muted); font-size: 14px; }
.or-line span { flex: 1; height: 1px; background: var(--line); }
.whatsapp-chat { margin-block-start: var(--space-4); align-items: stretch; }
.whatsapp-chat .hs-btn { justify-content: center; }

/* The confirmation's copy of what was sent (contact and ideas, forms.js
   sentCard): a quiet card of label and value, text wrapped with its line
   breaks (each line in its own direction: unicode-bidi plaintext), Copy
   and Print under it. Printing while it is on the page
   prints the card only. */
.kt-sent { max-width: 560px; margin-block-start: var(--space-6); }
.kt-sent-ref { margin: 0 0 var(--space-4); font-weight: 600; }
.kt-sent-title { margin: 0 0 var(--space-3); font-size: 18px; line-height: 1.4; }
.kt-sent-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sunken); padding: var(--space-4) var(--space-5); }
.kt-sent-rows { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.kt-sent-row dt { color: var(--muted); font-size: 14px; }
.kt-sent-row dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; unicode-bidi: plaintext; }
.kt-sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-block-start: var(--space-4); }
.kt-sent-status { margin: 0; flex-basis: 100%; color: var(--muted); font-size: 14px; }
.kt-sent-status:empty { display: none; }
.kt-sent-copy { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px; padding: 0; border: 0; opacity: 0; resize: none; }
/* Print: the card in normal flow, so a long message runs across pages;
   everything not on the way to it is left out (the confirmation, the
   buttons, the header, footer and consent banner, the rest of the page),
   and the boxes around it lose their columns and padding. */
@media print {
  body.kt-has-sent .site-header, body.kt-has-sent .site-footer, body.kt-has-sent #kt-consent,
  body.kt-has-sent .kt-done > :not(.kt-sent), body.kt-has-sent .kt-sent-actions,
  body.kt-has-sent :not(:has(.kt-sent), .kt-sent, .kt-sent *) { display: none !important; }
  body.kt-has-sent :has(.kt-sent) { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; inline-size: auto !important; border: 0 !important; background: none !important; }
  body.kt-has-sent { background: none; }
  body.kt-has-sent .kt-sent { margin: 0; max-width: none; }
  body.kt-has-sent .kt-sent-card { background: none; }
  body.kt-has-sent .kt-sent-row dt { break-after: avoid; }
  body.kt-has-sent .kt-sent-row dd { orphans: 3; widows: 3; }
}
