/* OPABID Limited. Brand tokens: confirm exact codes against the approved logo artwork. */
:root {
    --blue: #047857;          /* emerald, primary (variable name kept for brevity) */
    --blue-deep: #064e3b;
    --blue-soft: #e3f5ec;
    --green: #1b3f94;         /* royal blue, supporting */
    --green-bright: #4a74d9;
    --gold: #c9a24a;          /* accent, used sparingly */
    --gold-dark: #8a6a1c;
    --ink: #1a2233;
    --grey-700: #4a5468;
    --grey-100: #f4f6fa;
    --grey-200: #e4e8f0;
    --radius: 14px;
    --font: "Inter", "Segoe UI", Aptos, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-primary: var(--blue);
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-link-color: var(--blue);
    --bs-link-hover-color: var(--blue-deep);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--blue-deep); }
a { text-underline-offset: 3px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--blue-deep); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; z-index: 2000; }
.skip-link:focus { top: 0; color: #fff; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.icon { width: 1.4em; height: 1.4em; flex: none; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; padding: .6rem 1.2rem; }
.btn-lg { padding: .8rem 1.6rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-deep); --bs-btn-hover-border-color: var(--blue-deep); --bs-btn-active-bg: var(--blue-deep); }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue); }
.btn-gold { background: var(--gold); border: 1px solid var(--gold); color: #1a1405; }
.btn-gold:hover { background: #d8b45f; border-color: #d8b45f; color: #1a1405; }

/* Header */
.topbar { background: var(--blue-deep); color: #d5f0e4; font-size: .85rem; padding: .4rem 0; }
.topbar a { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--grey-200); position: sticky; top: 0; z-index: 1030; }
.navbar-brand { padding: .25rem 0; }
.navbar-brand img { height: 120px; width: 120px; display: block; }
.site-header { box-shadow: 0 2px 12px rgba(6, 78, 59, .08); }
@media (max-width: 575.98px) { .navbar-brand img { height: 88px; width: 88px; } }
.nav-link { color: var(--ink); font-weight: 500; padding: .6rem .8rem !important; }
.nav-link:hover, .nav-link.active, .nav-link[aria-current="page"] { color: var(--blue); }
.nav-link.active, .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.nav-search .icon { width: 1.2em; height: 1.2em; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 60%, #0f766e 100%); color: #fff; padding: 5rem 0 4.5rem; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; opacity: .12;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px;
    mask-image: radial-gradient(circle at 75% 40%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 75% 40%, #000, transparent 70%); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lead { color: #d5f0e4; font-size: 1.2rem; max-width: 40rem; margin-top: 1.25rem; }
.text-gold { color: var(--gold); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green); }
.hero .eyebrow, .page-header .eyebrow { color: #7fe3c9; }
.hero-points { margin-top: 2rem; display: grid; gap: .4rem; color: #e9f7f0; }
.hero-points li { display: flex; gap: .5rem; align-items: center; }
.hero-points .icon { color: var(--gold); }
.btn-outline-light { border-width: 2px; }

.arch { margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 1rem; }
.arch svg { width: 100%; height: auto; display: block; }
.arch-lines path { stroke: #7fe3c9; stroke-dasharray: 5 6; }
.arch-lines path.gold { stroke: var(--gold); }
.arch-node rect { fill: rgba(255,255,255,.12); stroke: #7fe3c9; }
.arch-node.out rect { stroke: var(--gold); }
.arch-node text { fill: #fff; font: 600 12px var(--font); text-anchor: middle; }
.arch-core { fill: #fff; }
.arch-core-t { fill: var(--blue-deep); font: 700 11px var(--font); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) { .arch-lines path { animation: dash 14s linear infinite; } @keyframes dash { to { stroke-dashoffset: -220; } } }

/* Stats */
.stats { background: var(--grey-100); border-bottom: 1px solid var(--grey-200); padding: 2.5rem 0; }
.stat-n { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat-l { color: var(--grey-700); font-size: .92rem; max-width: 15rem; margin: .25rem auto 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--grey-100); }
.section-head { max-width: 46rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-head p { color: var(--grey-700); font-size: 1.05rem; }
.narrow { max-width: 46rem; margin-inline: auto; }

.page-header { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 3.5rem 0 3rem; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 48rem; }
.page-header .lead { color: #d5f0e4; max-width: 42rem; margin: 1rem 0 0; }

/* Cards */
.card-link { display: block; height: 100%; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.6rem; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card-link:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(6, 78, 59, .12); transform: translateY(-2px); color: var(--ink); }
.card-link.static:hover { transform: none; box-shadow: none; border-color: var(--grey-200); }
.card-link h3, .card-link h2 { font-size: 1.1rem; }
.card-link p { color: var(--grey-700); font-size: .95rem; }
.row-card { display: flex; gap: 1rem; align-items: flex-start; }
.icon-badge { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 1rem; }
.icon-badge.sm { width: 44px; height: 44px; margin: 0; flex: none; }
.more, .more-lg { color: var(--blue); font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; text-decoration: none; }
.more .icon { width: 1.1em; height: 1.1em; }
.card-link:hover .more .icon { transform: translateX(3px); }
.benefit { background: #fff; border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--green); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.benefit h3 { font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--grey-700); }
.industry-tile { display: flex; gap: .75rem; align-items: center; border: 1px solid var(--grey-200); border-radius: 12px; padding: 1rem; height: 100%; color: var(--ink); text-decoration: none; font-weight: 600; background: #fff; }
.industry-tile .icon { color: var(--green); }
.industry-tile:hover { border-color: var(--green); color: var(--blue-deep); }

.panel { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.75rem; }
.section-tint .panel { border-color: transparent; }
.tick-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.tick-list li { padding-left: 1.9rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; }
.metric { font-size: 3rem; font-weight: 800; color: var(--blue); line-height: 1; }
.metric-l { color: var(--green); font-weight: 600; }
.chip { display: inline-block; border: 1px solid var(--grey-200); border-radius: 99px; padding: .25rem .85rem; font-size: .85rem; color: var(--ink); text-decoration: none; background: #fff; }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.result { padding: 1rem 0; border-bottom: 1px solid var(--grey-200); }
.result a { font-weight: 600; margin-left: .4rem; }

.cta-band { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; padding: 4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5f0e4; font-size: 1.1rem; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 2rem; }
.form-label { font-weight: 600; }
.form-control, .form-select { border-radius: 10px; border-color: #9aa5b8; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(4, 120, 87, .25); }
.field-error { color: #b42318; font-size: .875rem; display: block; margin-top: .25rem; }
.input-validation-error { border-color: #b42318 !important; }
.search-hero { display: flex; gap: .75rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .icon { color: var(--green); margin-top: .2rem; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #c4e6d5; padding: 4rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-logo { background: #fff; border-radius: 20px; padding: 6px; width: 180px; height: 180px; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 1rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.25rem; font-size: .88rem; }
.newsletter-form .form-control { border-color: transparent; }

/* Cookie notice */
.cookie-notice { position: fixed; left: 16px; bottom: 16px; max-width: 360px; background: #fff; border: 1px solid var(--grey-200); box-shadow: 0 10px 40px rgba(0,0,0,.18); border-radius: var(--radius); padding: 1rem 1.1rem; z-index: 1040; font-size: .9rem; }
.cookie-notice[hidden] { display: none; }

/* Chat */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 1050; }
.chat-toggle { display: flex; gap: .5rem; align-items: center; background: var(--blue); color: #fff; border: 0; border-radius: 99px; padding: .8rem 1.2rem; font-weight: 600; box-shadow: 0 8px 24px rgba(6,78,59,.35); }
.chat-toggle:hover { background: var(--blue-deep); }
.chat-panel { position: absolute; right: 0; bottom: 60px; width: min(370px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; background: var(--blue-deep); color: #fff; padding: .8rem 1rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; }
.chat-log { height: 280px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--grey-100); }
.msg { max-width: 88%; padding: .55rem .8rem; border-radius: 12px; font-size: .92rem; background: #fff; border: 1px solid var(--grey-200); }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.msg a { font-weight: 600; display: inline-block; margin-top: .35rem; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--grey-200); }
.chat-human { width: 100%; background: none; border: 0; border-top: 1px solid var(--grey-200); padding: .6rem; color: var(--blue); font-weight: 600; font-size: .9rem; }
.chat-leave { padding: .9rem; border-top: 1px solid var(--grey-200); }
.chat-leave[hidden] { display: none; }

@media (max-width: 575.98px) {
    .section { padding: 3rem 0; }
    .hero { padding: 3rem 0; }
    .search-hero { flex-direction: column; }
    .chat-toggle span { display: none; }
    .chat-toggle { padding: .9rem; }
    .cookie-notice { right: 16px; max-width: none; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
    .topbar, .site-header .navbar-toggler, .chat, .cookie-notice, .newsletter-form, .cta-band, .hero-grid { display: none !important; }
    .site-header { position: static; border: 0; }
    .hero, .page-header, .site-footer { background: none !important; color: #000 !important; }
    .hero h1, .page-header h1, .hero .lead, .page-header .lead { color: #000 !important; }
    .site-footer a { color: #000; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
.login-card { max-width: 26rem; margin: auto; }

/* Product pages */
.product-hero { padding: 4rem 0; }
.lead-sm { font-size: 1.05rem !important; margin-top: .75rem !important; }
.mock { padding: 0; overflow: hidden; background: #fff; border-color: transparent; }
.mock-bar { background: var(--blue-deep); padding: .6rem .9rem; display: flex; gap: .4rem; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.mock-body { padding: 1.5rem; color: var(--ink); text-align: center; }
.mock-time { font-size: 3rem; font-weight: 800; color: var(--blue); line-height: 1; }
.mock-btn { margin: 1rem auto; background: var(--blue); color: #fff; font-weight: 700; border-radius: 10px; padding: .7rem; max-width: 12rem; }
.mock-row { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--grey-200); padding: .7rem 0; font-size: .92rem; text-align: left; }
.mock-row span { color: var(--grey-700); }

/* Kloktoba brand theme (colours and logo from app.kloktoba.com) */
.kl-theme {
    --blue: #0f6f73; --blue-deep: #001f4d; --blue-soft: #e3f4f4;
    --green: #0f6f73; --gold: #ffc107; --grey-100: #f7f9fc;
    --bs-primary: #0f6f73; --bs-link-color: #0f6f73; --bs-link-hover-color: #0b5c60;
    font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.kl-theme h1, .kl-theme h2, .kl-theme h3 { color: #0b1a2e; }
.kl-theme .hero h1, .kl-theme .cta-band h2 { color: #fff; }
.kl-theme .hero, .kl-theme .cta-band { background: linear-gradient(135deg, #001f4d 0%, #0f6f73 62%, #16c6c8 100%); }
.kl-theme .hero .eyebrow { color: #7ff0f1; }
.kl-theme .btn-primary { --bs-btn-bg: #0f6f73; --bs-btn-border-color: #0f6f73; --bs-btn-hover-bg: #0b5c60; --bs-btn-hover-border-color: #0b5c60; --bs-btn-active-bg: #094a4d; }
.kl-theme .btn-outline-primary { --bs-btn-color: #0f6f73; --bs-btn-border-color: #0f6f73; --bs-btn-hover-bg: #0f6f73; --bs-btn-hover-border-color: #0f6f73; }
.kl-theme .btn-gold { background: #ffc107; border-color: #ffc107; color: #1a1405; }
.kl-theme .btn-gold:hover { background: #ffd04a; border-color: #ffd04a; }
.kl-theme .benefit { border-top-color: #16c6c8; }
.kl-theme .tick-list li::before { background-color: #0f6f73; }
.kl-theme .chip.on { background: #0f6f73; border-color: #0f6f73; }
.kl-theme .mock-bar { background: #0b1a2e; }
.kl-theme .mock-time, .kl-theme .stat-n { color: #0f6f73; }
.kl-theme :focus-visible { outline-color: #ffc107; }
.kl-logo-hero { display: block; width: min(100%, 420px); height: auto; border-radius: 14px; margin-bottom: 1.5rem; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); }
.kl-logo-light { display: block; width: min(100%, 300px); height: auto; margin: 0 auto 1.25rem; }
.kl-logo-card { display: block; width: min(100%, 260px); height: auto; margin-bottom: 1rem; }
/* The OPABID logo is square, so it is shown smaller than the wide product wordmarks. */
.kl-logo-card[src*="opabid-logo"] { width: 96px; }
.kl-logo-light[src*="opabid-logo"] { width: min(100%, 140px); }

/* Amebo brand theme (palette and font from the Amebo application) */
.am-theme {
    --blue: #4f46e5; --blue-deep: #3730a3; --blue-soft: #eef2ff;
    --green: #4338ca; --gold: #14b8a6; --grey-100: #f8fafc;
    --bs-primary: #4f46e5; --bs-link-color: #4338ca; --bs-link-hover-color: #3730a3;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.am-theme h1, .am-theme h2, .am-theme h3 { color: #111827; }
.am-theme .hero h1, .am-theme .cta-band h2 { color: #fff; }
.am-theme .hero, .am-theme .cta-band { background: linear-gradient(135deg, #3730a3 0%, #4f46e5 58%, #14b8a6 100%); }
.am-theme .hero .eyebrow { color: #c7f5ef; }
.am-theme .btn-primary { --bs-btn-bg: #4f46e5; --bs-btn-border-color: #4f46e5; --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; }
.am-theme .btn-gold { background: #14b8a6; border-color: #14b8a6; color: #04201f; }
.am-theme .btn-gold:hover { background: #2dd4bf; border-color: #2dd4bf; color: #04201f; }
.am-theme .benefit { border-top-color: #14b8a6; }
.am-theme .tick-list li::before { background-color: #4f46e5; }
.am-theme .chip.on { background: #4f46e5; border-color: #4f46e5; }
.am-theme .icon-badge { background: #eef2ff; color: #4f46e5; }
.am-theme .mock-bar { background: #3730a3; }
.am-theme :focus-visible { outline-color: #14b8a6; }
.am-theme .kl-logo-hero { box-shadow: none; border-radius: 0; width: min(100%, 300px); }
.mock-left { text-align: left; }
.mock-title { font-weight: 700; color: #111827; margin-bottom: .75rem; }
.mock-field { border: 1px solid var(--grey-200); border-radius: 8px; padding: .55rem .75rem; color: var(--grey-700); font-size: .92rem; }
.mock-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin: .85rem 0; }
.mock-pills span { border: 1px solid var(--grey-200); border-radius: 99px; padding: .15rem .7rem; font-size: .8rem; color: var(--grey-700); }
.mock-pills span.on { background: #f97316; border-color: #f97316; color: #fff; font-weight: 600; }

/* ============================================================
   Responsive refinements (phones, tablets, laptops, wide screens, touch, notches, short screens)
   ============================================================ */

/* Wide row gutters (g-5) are larger than the container padding on small screens and cause sideways scrolling */
@media (max-width: 991.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.25rem; }
}
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { max-width: 100%; }
.contact-item a, .site-footer address, .prose, .card-link p, h1, h2, h3 { overflow-wrap: anywhere; }

/* Header and menu */
.navbar-brand img { height: 120px; width: 120px; }
@media (max-width: 1199.98px) {
    .navbar-brand img { height: 80px; width: 80px; }
    .navbar-collapse { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; padding-bottom: 1rem; }
    .navbar-nav .nav-link { padding: .85rem .25rem !important; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--grey-200); box-shadow: none !important; }
    .navbar-nav .nav-link.active, .navbar-nav .nav-link[aria-current="page"] { color: var(--blue); font-weight: 700; }
    .nav-item .btn-gold { display: block; width: 100%; text-align: center; padding: .85rem 1rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-link { padding: .6rem .55rem !important; font-size: .95rem; }
}
.navbar-toggler { min-width: 48px; min-height: 48px; }
.nav-search { display: flex; align-items: center; min-width: 44px; min-height: 44px; }
/* Short screens (landscape phones, small laptops): do not let a tall sticky header eat the page */
@media (max-height: 760px) { .site-header { position: static; } }
@media (max-width: 575.98px) { .navbar-brand img { height: 72px; width: 72px; } }

/* Larger, easier targets */
.site-footer li a, .footer-bottom a { display: inline-block; padding: .4rem .1rem; }
.footer-bottom a { padding: .5rem .35rem; }
.more, .more-lg { min-height: 44px; }
.contact-item a { display: inline-block; padding: .35rem 0; }
.prose p a, .form-check-label a { padding: .15rem 0; }
.form-check { display: flex; gap: .65rem; align-items: flex-start; padding-left: 0; }
.form-check .form-check-input { float: none; margin: .15rem 0 0; width: 1.5rem; height: 1.5rem; flex: none; }
.chat-close { min-width: 44px; min-height: 44px; }
.chip { padding: .45rem 1rem; }
.btn { min-height: 44px; }
.btn-sm { min-height: 38px; }

/* Hover lift only where there is a real hover (not on touch screens) */
@media (hover: none) { a.card-link:hover { transform: none; box-shadow: none; } }

/* Phones */
@media (max-width: 575.98px) {
    .hero .btn-lg, .cta-band .btn-lg, .product-hero .btn-lg { width: 100%; }
    .hero .d-flex, .cta-band .d-flex { flex-direction: column; }
    .hero-points { font-size: .95rem; }
    .section-head { margin-bottom: 2rem; }
    .form-card, .panel { padding: 1.25rem; }
    .page-header { padding: 2.5rem 0 2rem; }
    .stat-l { font-size: .85rem; }
    .metric { font-size: 2.4rem; }
    .kl-logo-hero { width: min(100%, 300px); }
    .footer-logo { width: 130px; height: 130px; }
    .site-footer { padding-top: 3rem; }
    .input-group { flex-wrap: nowrap; }
}
@media (max-width: 359.98px) { .btn-lg { font-size: 1rem; padding: .7rem 1rem; } .navbar-brand img { height: 64px; width: 64px; } }

/* Chat and cookie notice: respect notches and keep within short screens */
.chat { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.cookie-notice { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
.chat-panel { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); display: flex; flex-direction: column; }
.chat-panel[hidden] { display: none; }
.chat-log { height: min(280px, 38vh); min-height: 120px; flex: 1 1 auto; }
.chat-leave { overflow-y: auto; max-height: 45vh; }
@media (max-width: 575.98px) {
    .chat-panel { position: fixed; left: 12px; right: 12px; bottom: 84px; width: auto; }
    .cookie-notice { left: 12px; right: 12px; max-width: none; bottom: 84px; }
    .cookie-notice:not([hidden]) ~ .chat .chat-toggle { }
}

/* Wide screens */
@media (min-width: 1600px) { .container { max-width: 1440px; } .hero { padding: 6rem 0 5.5rem; } }
@media (min-width: 1200px) { .section { padding: 5.5rem 0; } }

/* Text links that are short on their own: give them a comfortable touch height */
.site-footer address a, .cta-band a.text-white, .result a, .prose a:not(.btn), .tick-list a, .section a.more-link { display: inline-block; padding: .35rem 0; }
.result a { margin-left: .4rem; }

/* Chat: the message list gives way first, so the form and its send button always stay visible */
.chat-log { flex: 1 1 220px; height: auto; min-height: 90px; }
.chat-form, .chat-human { flex: 0 0 auto; }
.chat-leave { flex: 0 0 auto; overflow-y: auto; max-height: 55vh; }

/* Domain registration & web hosting showcase (home) */
.domain-band { background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%); }
.domain-band .lead-text { font-size: 1.1rem; color: var(--grey-700); }
.domain-card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.4rem; height: 100%; box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05)); }
.domain-card h3 { font-size: 1.05rem; }
.domain-card p { margin: 0; color: var(--grey-700); font-size: .95rem; }
@media (max-width: 575.98px) { .domain-band .btn-lg { width: 100%; } .domain-card { padding: 1.1rem; } }
