/* MMT premium design layer. Design only: loaded after every other stylesheet, changes no markup, script, route or text.
   Brand: navy #021F56, indigo #0368F7, accent #6BA6FF, Inter. Dark and light themes, mobile first, RTL safe (logical properties only). */
:root {
  --bg: #0b0c11; --bg-alt: #101218; --surface: #161920; --surface-2: #1c2029;
  --ink: #f5f7fa; --muted: #bdc4d1; --subtle: #9ea6b6;
  --line: #272c37; --line-strong: #394151;
  --green: #4d9dff; --green-hover: #7ab6ff; --green-ink: #021233; --green-soft: #1a2537;
  --forest: var(--surface); --forest-ink: var(--ink); --forest-muted: var(--muted); --forest-accent: #6ba6ff; --forest-line: var(--line);
  --lime: #1a2537; --lime-ink: #dbe8ff; --lime-hover: #22304a;
  --pm-link: #6ba6ff; --pm-link-hover: #9cc4ff;
  --shadow-2: 0 24px 60px -20px rgba(0, 8, 32, .8), 0 2px 8px rgba(0, 8, 32, .4);
  --pm-glow: radial-gradient(60% 60% at 50% 0%, rgba(3, 104, 247, .12), transparent 70%);
  --pm-card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -22px rgba(0, 8, 32, .9);
  --pm-hl: linear-gradient(100deg, #6ba6ff 0%, #a9ccff 100%);
  --pm-head-bg: rgba(11, 12, 16, .9);
  --pm-focus: #9cc4ff;
  --r: 12px; --r-lg: 18px; --r-xl: 22px;
}
:root[data-theme="light"] {
  --bg: #f5f8fc; --bg-alt: #eaf0fb; --surface: #ffffff; --surface-2: #eff2f8;
  --ink: #0a183e; --muted: #475571; --subtle: #566180;
  --line: #dbe0eb; --line-strong: #b9c2d4;
  --green: #035edd; --green-hover: #0256cc; --green-ink: #ffffff; --green-soft: #e2eefd;
  --forest: var(--surface); --forest-ink: var(--ink); --forest-muted: var(--muted); --forest-accent: #035edd; --forest-line: var(--line);
  --pm-link: #035edd; --pm-link-hover: #02419a;
  --lime: #e2eefd; --lime-ink: #0b2f75; --lime-hover: #d2e3ff;
  --shadow-2: 0 24px 60px -24px rgba(2, 31, 86, .28), 0 2px 8px rgba(2, 31, 86, .08);
  --pm-glow: radial-gradient(60% 60% at 50% 0%, rgba(3, 104, 247, .16), transparent 70%);
  --pm-card-shadow: 0 1px 2px rgba(2, 31, 86, .05), 0 18px 40px -24px rgba(2, 31, 86, .25);
  --pm-hl: linear-gradient(100deg, #035edd 0%, #3a8bff 100%);
  --pm-head-bg: rgba(246, 248, 252, .92);
  --pm-focus: #0368f7;
}
/* Home page palette (.rh) re-pointed to brand tokens */
:root .rh {
  --r-row: var(--surface-2); --r-head: var(--ink); --r-h1: var(--ink); --r-lead: var(--muted); --r-dim: var(--subtle); --r-dim0: var(--subtle);
  --r-kick: #6ba6ff; --r-acc: #6ba6ff; --r-num: #6ba6ff; --r-live: #8fbcff; --r-hov: #7ab6ff;
  --r-ico-bg: #1a2537; --r-ico-fg: #a9ccff; --r-tag-bg: #1a2537; --r-tag-fg: #c4dcff;
  --r-btn: #0368f7; --r-btn-fg: #fff; --r-dk: #0368f7; --r-dk-fg: #fff;
  --r-out-bg: transparent; --r-out-fg: var(--ink); --r-out-bd: var(--line-strong);
  --r-tabs: #0e1015; --r-tab: #bdc4d1; --r-tab-on: #243a63; --r-tab-on-fg: #fff;
  --r-main: #12151b; --r-notice: #171b23; --r-time: #a4acbb; --r-pip: #394151; --r-bar: #272c37; --r-note: #171b23;
  --r-card: var(--surface); --r-card2: var(--surface-2); --r-line: var(--line); --r-sec: var(--bg); --r-soft: var(--bg-alt);
  --r-picon: #1a2537; --r-picon-fg: #cfe1ff; --r-check: #1a2537; --r-check-fg: #c4dcff; --r-ichip: #bcd6ff;
  --r-mig: var(--surface); --r-mig-bd: var(--line-strong); --r-ul: #c6ccd8; --r-trust: var(--subtle);
  --r-shadow: var(--pm-card-shadow); --r-pshadow: var(--shadow-2);
}
:root[data-theme="light"] .rh {
  --r-row: #eff2f8; --r-kick: #0256cc; --r-acc: #035edd; --r-num: #0256cc; --r-live: #0256cc; --r-hov: #0256cc;
  --r-ico-bg: #e2eefd; --r-ico-fg: #0b4db8; --r-tag-bg: #e2eefd; --r-tag-fg: #0b3f96;
  --r-btn: #035edd; --r-dk: #035edd; --r-out-bg: #fff; --r-out-fg: #0a183e; --r-out-bd: #b9c2d4;
  --r-tabs: #e6edf9; --r-tab: #475571; --r-tab-on: #fff; --r-tab-on-fg: #0a183e; --r-main: #f5f8fc; --r-notice: #fff; --r-time: #566180;
  --r-pip: #b9c2d4; --r-bar: #dbe0eb; --r-note: #eff2f8; --r-picon: #e2eefd; --r-picon-fg: #0b4db8; --r-check: #e2eefd; --r-check-fg: #0b4db8;
  --r-ichip: #0b4db8; --r-ul: #475571; --r-mig: #fff; --r-mig-bd: #b9c2d4; --r-trust: #566180;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background: var(--bg); }
:focus-visible { outline: 3px solid var(--pm-focus) !important; outline-offset: 3px !important; border-radius: 6px; }

/* Top strip + glass header */
.topbar { background: var(--bg); color: var(--muted); font-size: 12.5px; letter-spacing: .01em; border-block-end: 1px solid var(--line); }
.topbar strong { letter-spacing: .14em; color: var(--ink); }
.topbar a { color: var(--ink); }
.site-head { background: var(--pm-head-bg); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-block-end: 1px solid var(--line); box-shadow: 0 8px 30px -22px rgba(2, 31, 86, .6); }
.site-nav a { border-radius: 999px; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.site-nav a:hover { background: var(--green-soft); }
.pill, .pill.solid { border-radius: 999px; font-weight: 600; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease); }
.pill.solid { background: linear-gradient(180deg, #2a84ff, #0368f7); color: #fff; box-shadow: 0 8px 22px -8px rgba(3, 104, 247, .7), 0 1px 0 rgba(255,255,255,.25) inset; }
.pill.solid:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(3, 104, 247, .85), 0 1px 0 rgba(255,255,255,.25) inset; }

/* Home: hero with brand glow */
.rh .r-hero { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px); background: var(--pm-glow), var(--bg); overflow: hidden; }
.rh .r-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .35; -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%); }
.rh .r-eyebrow, .rh .r-kicker { letter-spacing: .14em; font-weight: 700; text-transform: uppercase; font-size: 12.5px; }
.rh h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.rh h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; }
.rh h3 { letter-spacing: -.015em; font-weight: 700; line-height: 1.3; }
.rh .r-hl { background: var(--pm-hl); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rh .r-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; }
.rh .r-section { padding-block: clamp(56px, 8vw, 110px); }
.rh .r-soft { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-block: 1px solid var(--line); }

/* Buttons */
.rh .r-btn { border-radius: 999px; font-weight: 600; padding-inline: 1.4em; min-height: 46px; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.rh .r-btn:hover { transform: translateY(-2px); }
.rh .r-primary { background: linear-gradient(180deg, #2a84ff, #0368f7); color: #fff; border-color: transparent; box-shadow: 0 12px 28px -10px rgba(3, 104, 247, .75), 0 1px 0 rgba(255,255,255,.28) inset; }
:root[data-theme="light"] .rh .r-primary { background: linear-gradient(180deg, #0a6ff0, #035edd); }
.rh .r-outline { background: transparent; border: 1px solid var(--line-strong); }
.rh .r-outline:hover { border-color: var(--r-acc); background: var(--green-soft); }

/* Cards and panels: layered depth, softer radii, hairline highlight */
.rh .r-heroPanel, .rh .r-portal, .rh .r-valueCard, .rh .r-progressCard, .rh .r-integration, .rh .r-hvCard, .rh .r-contactForm, .rh .r-migration, .rh .r-aiBand, .rh .r-demoShell, .rh .r-feature, .rh .r-step, .rh .r-cmpWrap {
  border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--pm-card-shadow);
}
.rh .r-heroPanel { border-radius: var(--r-xl); box-shadow: var(--shadow-2), 0 0 0 1px rgba(107, 166, 255, .12); }
.rh .r-portal, .rh .r-valueCard, .rh .r-integration, .rh .r-hvCard, .rh .r-feature, .rh .r-step { transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease), border-color var(--mid) var(--ease); }
.rh .r-portal:hover, .rh .r-valueCard:hover, .rh .r-integration:hover, .rh .r-hvCard:hover, .rh .r-feature:hover, .rh .r-step:hover { transform: translateY(-4px); border-color: var(--r-acc); box-shadow: var(--shadow-2); }
.rh .r-ico, .rh .r-portalIcon, .rh .r-integrationIcon, .rh .r-stepNo { border-radius: 12px; }
.rh .r-tag, .rh .r-progressPill, .rh .r-aiChip { border-radius: 999px; font-weight: 600; }
.rh .r-cta { background: var(--bg-alt); border-block-start: 1px solid var(--line); }

/* Forms */
.rh input, .rh select, .rh textarea { border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); min-height: 44px; transition: border-color var(--fast), box-shadow var(--fast); }
.rh input:focus, .rh select:focus, .rh textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(3, 104, 247, .2); }

/* Footer */
.site-foot { background: var(--bg); color: var(--muted); border-block-start: 1px solid var(--line); }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.site-foot h2, .site-foot h3, .site-foot strong { color: var(--ink); }

/* Inner pages share the same language */
.card, .panel, .plan, .tile, .faq details, table { border-radius: var(--r-lg); }
.card, .plan, .tile { border: 1px solid var(--line); box-shadow: var(--pm-card-shadow); }
h1, h2 { letter-spacing: -.028em; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .rh .r-hero { padding-block: 44px 36px; }
  .rh .r-btn { width: 100%; justify-content: center; }
  .rh .r-heroBtns { flex-direction: column; gap: 10px; }
  .topbar .top-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.site-head .pill.solid, .site-head .head-trial { background: linear-gradient(180deg, #2a84ff, #0368f7) !important; color: #fff !important; }
:root[data-theme="light"] .site-head .pill.solid { background: linear-gradient(180deg, #0a6ff0, #035edd) !important; }
:root .rh .r-cta h2 { color: var(--ink); } :root .rh .r-cta p, :root .rh .r-cta .r-note, :root .rh .r-cta .r-dur, :root .rh .r-cta span { color: var(--muted); } :root .rh .r-cta .r-kicker { color: var(--r-kick); }

/* One link colour everywhere (buttons and the logo keep their own look) */
a:not(.pill):not(.r-btn):not(.brand):not(.head-trial):not(.skip):not(.si-opt):not([class*="btn"]) { color: var(--pm-link); text-decoration-color: color-mix(in srgb, var(--pm-link) 45%, transparent); text-underline-offset: 3px; }
a:not(.pill):not(.r-btn):not(.brand):not(.head-trial):not(.skip):not(.si-opt):not([class*="btn"]):hover { color: var(--pm-link-hover); }
.topbar a, .site-nav a, .site-foot a, .site-foot a:hover, .topbar a:hover { color: var(--pm-link); }
.site-nav a:hover, .site-foot a:hover { color: var(--pm-link-hover); }
/* Dark bands follow the page: no navy blocks */
.close, .board, .proof, .vbox, .hh-msg, .rh .r-cta .r-ctaBox, .r-heroVids { color: var(--ink); }
.vbox h1, .vbox h2, .vbox h3, .vbox strong { color: var(--ink); }
.vbox p, .vbox small, .vbox span, .vbox label { color: var(--muted); }
a.kb-nav-all.kb-nav-all.kb-nav-all, a.kb-nav-all.kb-nav-all.kb-nav-all:hover { color: #fff !important; }
select, .rh select { background: var(--surface); color: var(--ink); }

/* Workflow steps sit inside the dark aside panel: keep them flat, not light cards */
.rh .r-demoAside .r-step { background: transparent; border: 0; box-shadow: none; border-radius: 0; transform: none; }
.rh .r-demoAside .r-step:hover { transform: none; box-shadow: none; border-color: transparent; }

/* ===== Forms: one premium look for every public-site form (enquiry cards, demo/pricing/contact, modals, KB search) =====
   Design only: no markup or behaviour change. Tokens come from the sets above, so light, dark and RTL follow. */
form.enquiry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--pm-card-shadow); }
.quote-card form.enquiry { border: 0; box-shadow: none; background: transparent; }
.field > label, .field > .label, .modal .field label { color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.field .hint, .modal .field .hint { color: var(--subtle); font-weight: 500; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select,
.modal input:not([type="checkbox"]):not([type="radio"]), .modal textarea, .modal select,
.kb-search input, .kb-search select {
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; min-height: 46px; padding: 11px 13px; width: 100%; box-sizing: border-box;
  transition: border-color var(--fast, 120ms) ease, box-shadow var(--fast, 120ms) ease, background-color var(--fast, 120ms) ease;
}
.field textarea, .modal textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .modal input::placeholder, .modal textarea::placeholder, .kb-search input::placeholder { color: var(--subtle); opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover, .modal input:hover, .modal textarea:hover, .modal select:hover, .kb-search input:hover { border-color: var(--green); }
.field input:focus, .field textarea:focus, .field select:focus, .modal input:focus, .modal textarea:focus, .modal select:focus, .kb-search input:focus {
  outline: none; border-color: var(--green); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 24%, transparent);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible, .modal input:focus-visible, .modal textarea:focus-visible, .modal select:focus-visible, .kb-search input:focus-visible { outline: 2px solid var(--pm-focus); outline-offset: 1px; }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: .6; cursor: not-allowed; background: var(--surface-2); }
/* Errors: after the field was touched (never on first paint), or when the page marks it */
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid, .modal input:user-invalid, .modal textarea:user-invalid,
.field [aria-invalid="true"], .modal [aria-invalid="true"] { border-color: var(--bad); }
.field input:user-invalid:focus, .field textarea:user-invalid:focus, .field select:user-invalid:focus, .field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 24%, transparent); }
.status, .modal .status { color: var(--muted); }
.status.error, .modal .status.error, .attach-error { color: var(--bad); font-weight: 600; }
.status.ok, .status.success { color: var(--ok); font-weight: 600; }
/* Select arrow that follows the theme and flips in RTL */
.field select, .modal select, .kb-search select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select, [dir="rtl"] .modal select { background-position: 20px 50%, 15px 50%; }
/* Checkboxes (consent, WhatsApp opt-in) and the time-slot radios */
.consent { color: var(--muted); }
.consent input[type="checkbox"], .field input[type="checkbox"] { accent-color: var(--green); width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 5px; }
.consent input:focus-visible, .slot-time input:focus-visible + span, .slot-none input:focus-visible + span { outline: 2px solid var(--pm-focus); outline-offset: 2px; }
.slot-time span, .slot-none span { border-radius: 10px; }
.slot-time input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--ink); }
/* Submit and modal buttons */
form.enquiry button[type="submit"], .modal button[type="submit"], .form-actions .pill.solid {
  min-height: 50px; border-radius: 10px; border: 0; font-weight: 600; letter-spacing: .005em; color: #fff;
  background: linear-gradient(180deg, #2a84ff, #0368f7); box-shadow: 0 8px 20px -10px rgba(3, 104, 247, .7);
}
:root[data-theme="light"] form.enquiry button[type="submit"], :root[data-theme="light"] .modal button[type="submit"], :root[data-theme="light"] .form-actions .pill.solid { background: linear-gradient(180deg, #0a6ff0, #035edd); }
form.enquiry button[type="submit"]:hover, .modal button[type="submit"]:hover { filter: brightness(1.08); }
form.enquiry button[type="submit"]:focus-visible, .modal button[type="submit"]:focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }
form.enquiry button[type="submit"]:disabled, .modal button[type="submit"]:disabled { opacity: .6; filter: none; box-shadow: none; }
.modal-x { border-radius: 10px; color: var(--ink); border-color: var(--line-strong); }
.modal-x:hover { border-color: var(--green); }
.modal-x:focus-visible { outline: 2px solid var(--pm-focus); outline-offset: 2px; }
/* Success state */
.done, .modal-ok { background: var(--surface); border: 1px solid var(--green); border-radius: var(--r-xl); }
.modal-ok { border: 0; }
.ok-tick { background: var(--green-soft); color: var(--ok); }
.privacy, .form-note { color: var(--subtle); }
/* Narrow screens: fields stay one column, tap targets stay 44px+ and the card never forces sideways scroll */
@media (max-width: 520px) {
  form.enquiry { padding: 20px 16px; border-radius: var(--r-lg); }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .pill, .form-actions button { width: 100%; }
}
/* Knowledge-base hero search follows the same field look (it used a white pill on a navy band) */
.v-kb.kb-pg .kb-hero-search .kb-q { min-height: 54px; font-size: 17px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding-inline: 18px; }
.v-kb.kb-pg .kb-hero-search .kb-q::placeholder { color: var(--subtle); }
.v-kb.kb-pg .kb-hero-search .kb-q:focus, .v-kb.kb-pg .kb-hero-search .kb-q:focus-visible { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 24%, transparent); }
