/* ═══════════════════════════════════════════════════════════════════════════
   Codiate — Clean design system
   White pages, soft blue gradients for showcase panels, one blue accent,
   generous space and rounded cards. Poppins throughout.
   Shared by every public page (including /apps) and the admin panel.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    color-scheme: light;

    --bg:          #ffffff;
    --bg-soft:     #f5f8fc;
    --tile:        #ffffff;
    --tile-2:      #f4f7fb;
    --tile-3:      #e9eff7;
    --tile-border: #e6ebf2;
    --solid:       #ffffff;
    --panel:       #ffffff;
    --nav-bg:      rgba(255,255,255,.86);
    --glass-a:     #ffffff;   /* kept for admin.css */
    --glass-b:     #ffffff;

    --ink:         #0f172a;
    --ink-2:       #334155;
    --muted:       #64748b;
    --faint:       #94a3b8;
    --line:        #e6ebf2;
    --line-2:      #d3dbe6;

    --accent:      #1f7ae6;
    --accent-2:    #1767c7;
    --accent-rgb:  31,122,230;
    --accent-soft: rgba(31,122,230,.08);
    --accent-ink:  #1767c7;
    --on-accent:   #ffffff;
    --cyan:        #22b5e8;
    --ok:          #16a34a;
    --danger:      #dc2626;
    --warn:        #b45309;

    --btn-bg:      #0f172a;
    --btn-ink:     #ffffff;
    --btn-hover:   #1e293b;

    --dark:        #f5f8fc;
    --dark-2:      #0f172a;
    --dark-line:   #e6ebf2;
    --dark-muted:  #64748b;

    --grad-panel:  linear-gradient(180deg, #4f97ee 0%, #6bb3e6 55%, #84c6d6 100%);
    --grad-soft:   radial-gradient(60% 80% at 15% 20%, #e3fbf7 0%, transparent 60%),
                   radial-gradient(60% 70% at 85% 30%, #e6f0ff 0%, transparent 60%),
                   radial-gradient(70% 60% at 50% 100%, #f1ecff 0%, transparent 65%);

    --r-tile:  24px;
    --r-inner: 16px;
    --gap:     16px;
    --shadow:  0 1px 2px rgba(15,23,42,.04), 0 14px 34px -18px rgba(15,23,42,.14);
    --blur:    blur(14px) saturate(150%);

    --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;   /* soft gradients may extend past the edges */
    font-family: var(--font); font-size: 15.5px; line-height: 1.7;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: rgba(var(--accent-rgb),.18); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.shell        { width: min(100% - 32px, 1200px); margin-inline: auto; }
.shell-narrow { width: min(100% - 32px, 820px);  margin-inline: auto; }
.bento        { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento > *    { min-width: 0; }
@media (min-width: 768px) { :root { --gap: 22px; } }

.section      { padding-top: 88px; scroll-margin-top: 90px; }
@media (min-width: 768px) { .section { padding-top: 128px; } }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head .lede { max-width: 520px; }
.section-head.center { align-items: center; text-align: center; flex-direction: column; justify-content: center; }
.section-head.center .lede { max-width: 620px; }
.cards        { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* The soft colour behind page headers fades out instead of ending in an edge */
.hero::before, .page-head::before, .doc-head::before {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
            mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* Page header used by inner pages */
.page-head { position: relative; isolation: isolate; padding: 72px 0 8px; text-align: center; }
.page-head .lede { max-width: 640px; margin-inline: auto; }
.page-head::before {
    content: ''; position: absolute; inset: -120px -50vw -40px; z-index: -1; pointer-events: none; background: var(--grad-soft);
}

/* Title block on document pages (policies, support) */
.doc-head { position: relative; isolation: isolate; padding: 40px 0 16px; }
.doc-head::before { content: ''; position: absolute; inset: -120px -50vw -30px; z-index: -1; pointer-events: none; background: var(--grad-soft); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.tile {
    position: relative; overflow: hidden;
    background: var(--tile); border: 1px solid var(--tile-border); border-radius: var(--r-tile);
    padding: 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .tile { padding: 28px; } }
.tile-lg { padding: 26px; }
@media (min-width: 768px) { .tile-lg { padding: 44px; } }
.tile-soft   { background: var(--bg-soft); box-shadow: none; }
.tile-flush  { padding: 0; }
.tile-dark   { background: linear-gradient(135deg, #eef6ff, #f4f1ff); border-color: #e3ebf8; box-shadow: none; }
.tile-accent { background: linear-gradient(135deg, #2f86ec, #38b2e6); color: #fff; border-color: transparent; }

a.tile, .tile-link { transition: border-color .25s, transform .25s, box-shadow .25s; cursor: pointer; }
a.tile:hover, .tile-link:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),.3); box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 24px 44px -22px rgba(15,23,42,.22); }

.tile-arrow {
    position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; background: var(--tile-2); color: var(--ink);
    transition: transform .3s, background .2s, color .2s;
}
.tile-arrow svg { width: 16px; height: 16px; }
.tile-accent .tile-arrow { background: rgba(255,255,255,.2); color: #fff; }
a.tile:hover .tile-arrow, .tile-link:hover .tile-arrow { transform: rotate(-45deg); background: var(--accent); color: #fff; }
a.tile-accent:hover .tile-arrow { background: #fff; color: var(--accent); }

/* ── Type ───────────────────────────────────────────────────────────────── */
.eyebrow { font: 500 13px/1.5 var(--font); color: var(--muted); margin: 0; }
.tile-accent .eyebrow { color: rgba(255,255,255,.85); }
.kicker {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 99px;
    font: 500 13px/1.3 var(--font); color: var(--accent-ink); background: var(--accent-soft);
}
.display  { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; margin: 0; }
.h1       { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 600; margin: 0; }
.h2       { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 600; margin: 0; }
.h3       { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; margin: 0; }
.h4       { font-size: 1.02rem; line-height: 1.45; font-weight: 600; margin: 0; }
.lede     { font-size: 1.06rem; line-height: 1.75; color: var(--muted); margin: 0; }
.small    { font-size: .93rem; line-height: 1.7; color: var(--muted); margin: 0; }
.tile-accent .lede, .tile-accent .small { color: rgba(255,255,255,.88); }
.mark     { background: linear-gradient(90deg, #1f7ae6, #22b5e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-accent .mark { background: none; color: #fff; }
.mono     { font-family: var(--mono); }
.clamp-2  { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3  { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.stat      { font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 1; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.stat-unit { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

/* ── Icons, chips, lists ────────────────────────────────────────────────── */
.icon-box {
    width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none;
    color: var(--accent); background: var(--accent-soft);
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box.cyan { color: #0e94c4; background: rgba(34,181,232,.1); }

.chip {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
    padding: 5px 12px; border-radius: 99px; background: var(--tile-2); color: var(--ink-2);
    white-space: nowrap; line-height: 1.4; text-decoration: none; transition: background .2s, color .2s;
}
a.chip:hover { background: var(--tile-3); color: var(--ink); }
.tile-accent .chip { background: rgba(255,255,255,.2); color: #fff; }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
a.chip-accent:hover { background: var(--accent); color: #fff; }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ok); opacity: .4; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.5); opacity: 0; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ticks li::before {
    content: ''; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; flex: none; background-color: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231f7ae6' stroke-width='3.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
    background-size: 12px; background-repeat: no-repeat; background-position: center;
}

.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.more svg { width: 15px; height: 15px; transition: transform .2s; }
a:hover .more svg, .tile-link:hover .more svg, .more:hover svg { transform: translateX(3px); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 24px; border-radius: 99px; border: 1px solid var(--btn-bg);
    background: var(--btn-bg); color: var(--btn-ink); font: 500 15px/1 var(--font);
    text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover   { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active  { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-accent       { background: #3a9cf5; border-color: #3a9cf5; color: #fff; box-shadow: 0 10px 24px -12px rgba(31,122,230,.6); }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); }
.btn-light        { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover  { background: #f1f5f9; border-color: #f1f5f9; }
.btn-ghost        { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover  { background: var(--tile-2); border-color: var(--line-2); }
.tile-accent .btn-ghost       { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }
.tile-accent .btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* Round arrow buttons (slider prev/next) */
.round-btn {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, color .2s;
}
.round-btn:hover { color: var(--accent); transform: translateY(-1px); }
.round-btn svg { width: 18px; height: 18px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.01em; font-size: 1.12rem; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 32px; height: 32px; display: block; }
.brand small { font: 500 11.5px/1 var(--font); color: var(--accent-ink); padding: 5px 9px; border-radius: 99px; background: var(--accent-soft); }
.nav-links { display: none; align-items: center; gap: 2px; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
    display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
    text-decoration: none; padding: 8px 14px; border-radius: 99px; transition: background .2s, color .2s;
}
.nav-link:hover     { color: var(--ink); background: var(--tile-2); }
.nav-link.is-active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 8px; }
@media (max-width: 479px) { .nav-right > .btn { display: none; } .brand small { display: none; } }

/* Dropdown submenus: open on hover or keyboard focus */
.nav-item { position: relative; }
.nav-link .chev { width: 14px; height: 14px; opacity: .55; transition: transform .25s; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }
.nav-drop {
    position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; min-width: 300px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px;
    box-shadow: 0 30px 60px -24px rgba(15,23,42,.25);
    opacity: 0; visibility: hidden; pointer-events: none; translate: -50% 8px;
    transition: opacity .2s, translate .2s, visibility .2s;
}
.nav-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* hover bridge */
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0; }
.nav-drop-wide { width: 580px; }
.nav-drop-wide .drop-grid { grid-template-columns: 1fr 1fr; }
.drop-grid { display: grid; gap: 2px; }
.drop-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .2s; }
.drop-link:hover { background: var(--tile-2); }
.drop-link .icon-box { width: 38px; height: 38px; border-radius: 11px; }
.drop-link .icon-box svg { width: 19px; height: 19px; }
.drop-link .app-icon-sm { width: 38px; height: 38px; border-radius: 11px; }
.drop-link b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.drop-link small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.drop-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 12px 14px;
    border-top: 2px dotted var(--line); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.drop-foot svg { width: 15px; height: 15px; transition: transform .2s; }
.drop-foot:hover svg { transform: translateX(3px); }

/* Phone menu */
.nav-menu { position: relative; }
@media (min-width: 960px) { .nav-menu { display: none; } }
.nav-menu > summary {
    list-style: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--tile-2); cursor: pointer;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary svg { width: 18px; height: 18px; }
.nav-panel {
    position: absolute; right: 0; top: calc(100% + 12px); width: min(84vw, 290px); max-height: calc(100vh - 100px); overflow-y: auto;
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px;
    box-shadow: 0 30px 60px -20px rgba(15,23,42,.3); display: grid; gap: 2px;
}
.nav-panel a { padding: 11px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav-panel a:hover { background: var(--tile-2); }
.nav-panel a.is-active { color: var(--accent); }
.nav-sub > summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    padding: 11px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-2);
}
.nav-sub > summary::-webkit-details-marker { display: none; }
.nav-sub > summary:hover { background: var(--tile-2); }
.nav-sub > summary.is-active { color: var(--accent); }
.nav-sub > summary .chev { width: 16px; height: 16px; opacity: .55; transition: transform .25s; }
.nav-sub[open] > summary .chev { transform: rotate(180deg); }
.nav-sub-links { display: grid; gap: 1px; margin: 0 0 6px 14px; padding-left: 10px; border-left: 2px dotted var(--line-2); }
.nav-panel .nav-sub-links a { padding: 8px 12px; font-size: 14px; color: var(--muted); }
.nav-panel .nav-sub-links a:hover { color: var(--ink); }
.nav-panel a.nav-cta { margin-top: 6px; background: #3a9cf5; color: #fff; text-align: center; }
.nav-panel a.nav-cta:hover { background: var(--accent); }

/* ── Get started (before the footer) ────────────────────────────────────── */
.cta { position: relative; isolation: isolate; margin-top: 96px; padding: 150px 16px 160px; text-align: center; overflow: hidden; }
/* The colour lives on its own layer that fades out at the top and bottom,
   so the band melts into the white page and the footer instead of ending in a line. */
.cta::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(45% 55% at 18% 35%, #e1fbf6 0%, transparent 70%),
        radial-gradient(50% 55% at 80% 50%, #e3eeff 0%, transparent 70%),
        radial-gradient(55% 50% at 45% 75%, #efeaff 0%, transparent 70%),
        linear-gradient(180deg, #f6faff, #f8f7ff);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 68%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 68%, transparent 100%);
}
.cta-logo { width: 150px; height: 150px; margin: 0 auto 36px; filter: drop-shadow(0 18px 30px rgba(31,122,230,.28)); }
.cta-logo svg { width: 100%; height: 100%; }
.cta .lede { max-width: 520px; margin: 14px auto 0; color: var(--ink-2); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 64px 0 32px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-col-title { font: 600 14px/1 var(--font); color: var(--ink); margin: 0 0 18px; }
.dotted { border: 0; border-top: 2px dotted var(--line-2); margin: 0; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field       { display: grid; gap: 7px; }
.field-label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field-label span { color: var(--faint); font-weight: 400; }
.field-input {
    width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
    border: 1px solid var(--line-2); background: #fff; color: var(--ink);
    font: 400 15px/1.45 var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.field-input::placeholder { color: var(--faint); }
.field-input:hover { border-color: #b9c5d6; }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.field-input { resize: vertical; min-height: 130px; }
select.field-input, .cs-btn {
    padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
}
select.field-input option { background: #fff; color: var(--ink); }

/* Themed dropdowns (assets/select.js puts a button + list in front of each select) */
.cs { position: relative; }
.cs-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cs-btn { display: block; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-btn:disabled { opacity: .55; cursor: not-allowed; }
.cs.open .cs-btn { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cs-list {
    position: fixed; z-index: 300; display: none; margin: 0; padding: 6px; list-style: none;
    max-height: 300px; overflow-y: auto; max-width: calc(100vw - 16px);
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(15,23,42,.28);
}
.cs-list.open { display: block; }
.cs-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 10px; font: 400 14.5px/1.4 var(--font); color: var(--ink-2); cursor: pointer;
}
.cs-opt.active { background: var(--tile-2); color: var(--ink); }
.cs-opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.cs-opt[aria-selected="true"]::after {
    content: ''; width: 16px; height: 16px; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cs-opt[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin-top: 4px; flex: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 14px; font-weight: 500; color: var(--muted); min-height: 1.2em; margin: 0; }
.form-status.error   { color: var(--danger); }
.form-status.success { color: var(--ok); }

/* ── Media ──────────────────────────────────────────────────────────────── */
.cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--tile-2); border-radius: var(--r-inner); }
.cover-ph {
    width: 100%; aspect-ratio: 16/10; border-radius: var(--r-inner); display: grid; place-items: center; color: #fff;
    background: var(--grad-panel);
}
.cover-ph svg { width: 36px; height: 36px; }

.app-icon { width: 60px; height: 60px; border-radius: 18px; object-fit: cover; background: var(--tile-2); flex: none; border: 1px solid var(--line); }
.app-icon-lg { width: 92px; height: 92px; border-radius: 26px; }
.app-icon-sm { width: 44px; height: 44px; border-radius: 13px; }
.app-icon-placeholder { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.5rem; border-color: transparent; background: linear-gradient(135deg, #2f86ec, #38b2e6); }

.shot-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.shot-rail > * { scroll-snap-align: start; }
.shot { width: 210px; flex: 0 0 auto; border-radius: 20px; background: var(--tile-2); cursor: zoom-in; border: 1px solid var(--line); }

#lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.82); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 92vh; border-radius: 18px; }
#lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 22px; cursor: pointer; border: 0; }

/* ── Key/value list, link rows ──────────────────────────────────────────── */
.kv { display: grid; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dotted var(--line-2); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-size: 14px; color: var(--muted); }
.kv dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; word-break: break-word; }

.link-list { display: grid; gap: 8px; }
.link-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px 13px 16px;
    border-radius: 14px; background: var(--tile-2); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14.5px;
    transition: background .2s;
}
.link-row:hover { background: var(--tile-3); }
.link-row > svg { width: 18px; height: 18px; color: var(--accent); flex: none; transition: transform .2s; }
.link-row:hover > svg { transform: translateX(3px); }
.link-row small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }

/* ── Filter tabs ────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: none; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line);
    background: #fff; color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer; transition: all .2s;
}
.tab:hover  { color: var(--ink); border-color: var(--line-2); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Long-form text ─────────────────────────────────────────────────────── */
.prose { font-size: 1.02rem; line-height: 1.85; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child  { margin-bottom: 0; }
.prose p  { margin: 1.05em 0; }
.prose h2 { font-size: 1.45rem; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 600; color: var(--ink); margin: 1.7em 0 .5em; }
.prose h4 { font: 600 12.5px/1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-radius: 14px; background: var(--bg-soft); border-left: 3px solid var(--accent); color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .84em; background: var(--tile-2); color: var(--accent-2); border-radius: 6px; padding: .15em .45em; }
.prose pre { background: var(--dark-2); color: #e2e8f0; border-radius: 16px; padding: 18px 20px; overflow-x: auto; font-size: .85rem; line-height: 1.65; margin: 1.4em 0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: 16px; margin: 1.5em 0; height: auto; }
.prose figure { margin: 1.5em 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6em; }
.prose hr { border: 0; border-top: 2px dotted var(--line-2); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font: 600 12.5px/1.3 var(--font); color: var(--muted); white-space: nowrap; }
.prose section { scroll-margin-top: 100px; }

.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

.toc { display: grid; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.toc a:hover { color: var(--accent); }
.toc a span { font-size: 12.5px; font-weight: 600; color: var(--accent); padding-top: 2px; min-width: 22px; }

.step-n {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    font: 600 13.5px/1 var(--font); color: #fff; background: linear-gradient(135deg, #2f86ec, #38b2e6);
}

/* ── Home: hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; text-align: center; padding: 96px 0 24px; }
@media (min-width: 768px) { .hero { padding: 128px 0 32px; } }
.hero::before { content: ''; position: absolute; inset: -80px -50vw -60px; z-index: -1; background: var(--grad-soft); pointer-events: none; }
.hero .display { max-width: 900px; margin-inline: auto; }
.hero .lede { max-width: 620px; margin: 22px auto 0; }

/* ── Home: showcase panel with tabs ─────────────────────────────────────── */
.show-panel {
    position: relative; border-radius: 26px; padding: clamp(14px, 4vw, 56px); background: var(--grad-panel);
    box-shadow: 0 30px 60px -36px rgba(31,122,230,.55);
}
.show-screen {
    position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
    background-color: #eef2f7; border: 3px solid rgba(255,255,255,.95);
    background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px);
    background-size: 28px 28px;
}
@media (max-width: 640px) { .show-screen { aspect-ratio: 4 / 5; } }
.show-pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.show-pane.active { opacity: 1; visibility: visible; }
.show-pane > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.show-caption {
    position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.95); box-shadow: var(--shadow);
    font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.show-caption svg { width: 14px; height: 14px; color: var(--accent); }
.show-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin-top: 30px; }
.show-tab {
    position: relative; padding: 8px 6px; border: 0; background: none; cursor: pointer;
    font: 500 16px/1.2 var(--font); color: var(--faint); transition: color .25s;
}
.show-tab:hover { color: var(--ink-2); }
.show-tab.active { color: var(--ink); }
.show-tab.active::before, .show-tab.active::after {
    content: ''; position: absolute; width: 14px; height: 14px; background: #3a9cf5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.2 5.8 11.4 12 12-6.2.6-11.4 5.8-12 12-.6-6.2-5.8-11.4-12-12C6.2 11.4 11.4 6.2 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.2 5.8 11.4 12 12-6.2.6-11.4 5.8-12 12-.6-6.2-5.8-11.4-12-12C6.2 11.4 11.4 6.2 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.show-tab.active::before { left: -12px; top: -4px; }
.show-tab.active::after  { right: -8px; bottom: -6px; width: 10px; height: 10px; }

/* ── Illustrations inside showcase / service panels ─────────────────────── */
.mk { width: min(100%, 520px); background: #fff; border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(15,23,42,.35); overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--ink); text-align: left; }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.mk-bar i:nth-child(1) { background: #ff8a80; } .mk-bar i:nth-child(2) { background: #ffd166; } .mk-bar i:nth-child(3) { background: #6ee7a8; }
.mk-bar span { margin-left: 10px; flex: 1; height: 24px; border-radius: 99px; background: var(--tile-2); font-size: 11.5px; line-height: 24px; color: var(--muted); padding: 0 12px; }
.mk-body { padding: 22px; display: grid; gap: 14px; }
.mk-line { display: block; height: 9px; border-radius: 99px; background: #e8edf4; }
.mk-line.dark { height: 13px; background: var(--ink); }
.mk-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 99px; background: #3a9cf5; color: #fff; font-size: 12px; font-weight: 500; justify-self: start; }
.mk-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-grid3 span { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #e6f1ff, #eef9fb); }

.mk-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mk-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2f86ec, #38b2e6); color: #fff; font-size: 11px; font-weight: 600; }
.mk-chat-head em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ok); }
.mk-msgs { padding: 18px 16px; display: grid; gap: 10px; }
.mk-msgs p { margin: 0; max-width: 78%; padding: 9px 13px; border-radius: 16px; }
.mk-msgs .in  { background: var(--tile-2); border-bottom-left-radius: 5px; }
.mk-msgs .out { background: #3a9cf5; color: #fff; border-bottom-right-radius: 5px; justify-self: end; }
.mk-msgs .typing { display: inline-flex; gap: 4px; background: var(--tile-2); padding: 12px 14px; }
.mk-msgs .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.mk-msgs .typing i:nth-child(2) { animation-delay: .2s; }
.mk-msgs .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.mk-flow { padding: 22px; display: grid; justify-items: center; }
.mk-node { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 500; }
.mk-node i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tile-2); color: var(--muted); font-style: normal; font-size: 11px; flex: none; }
.mk-node.done i { background: rgba(22,163,74,.12); color: var(--ok); }
.mk-node.now { border-color: #3a9cf5; box-shadow: 0 0 0 4px var(--accent-soft); }
.mk-node.now i { background: #3a9cf5; color: #fff; }
.mk-node small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.mk-link { width: 2px; height: 16px; background: repeating-linear-gradient(var(--line-2) 0 3px, transparent 3px 6px); }

.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-stats div { padding: 12px 14px; border-radius: 12px; background: var(--tile-2); }
.mk-stats small { display: block; color: var(--muted); font-size: 11px; }
.mk-stats b { font-size: 20px; font-weight: 600; }
.mk-stats b.up { color: var(--ok); }
.mk-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 6px; }
.mk-bars i { flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: #dbe8f8; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.mk-bars i.hi { background: linear-gradient(180deg, #38b2e6, #2f86ec); }
@keyframes grow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

.mk-phone { width: 210px; padding: 8px; border-radius: 32px; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(15,23,42,.5); }
.mk-phone-screen { border-radius: 25px; background: #fff; padding: 22px 14px 16px; display: grid; gap: 10px; min-height: 340px; align-content: start; font-size: 12px; }
.mk-app-head { display: flex; align-items: center; justify-content: space-between; }
.mk-app-head b { font-size: 15px; font-weight: 600; }
.mk-app-head span { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #2f86ec, #38b2e6); }
.mk-card { border-radius: 14px; padding: 12px; background: linear-gradient(135deg, #2f86ec, #38b2e6); color: #fff; }
.mk-card small { display: block; opacity: .85; font-size: 10.5px; }
.mk-card b { font-size: 18px; font-weight: 600; }
.mk-row { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; background: var(--tile-2); }
.mk-row i { width: 28px; height: 28px; border-radius: 9px; background: #dbe8f8; flex: none; }
.mk-row span { flex: 1; display: grid; gap: 5px; }
.mk-phone .mk-btn { justify-self: stretch; justify-content: center; height: 36px; }

.mk-goals { padding: 20px; display: grid; gap: 10px; }
.mk-goals .mk-row { background: #fff; border: 1px solid var(--line); font-weight: 500; }
.mk-goals .mk-row i { display: grid; place-items: center; background: rgba(22,163,74,.12); color: var(--ok); font-style: normal; font-size: 12px; }

/* ── Home: featured quote ───────────────────────────────────────────────── */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-mark { width: 54px; height: 54px; margin: 0 auto 26px; color: #3a9cf5; }
.quote blockquote { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.55; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.quote-who { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; text-align: left; }
.quote-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2f86ec, #38b2e6); color: #fff; font-weight: 600; }
.quote-who b { display: block; font-weight: 600; }
.quote-who span { font-size: 14px; color: var(--muted); }

/* ── Home: "how we help" slider ─────────────────────────────────────────── */
.slider { position: relative; overflow: hidden; padding-bottom: 6px; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.22,.7,.2,1); will-change: transform; }
.slide { flex: 0 0 min(76%, 760px); padding: 0 18px; opacity: .3; transition: opacity .5s; cursor: pointer; }
.slide.active { opacity: 1; cursor: default; }
@media (max-width: 640px) { .slide { flex-basis: 88%; padding: 0 8px; } }
.slide-title { display: flex; align-items: center; gap: 12px; }
.slide-title::before, .slide-title::after { content: ''; flex: 1; height: 1.5px; background: #3a9cf5; opacity: .7; border-radius: 2px; }
.slide-title h3 { position: relative; margin: 0; padding: 0 14px; font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.01em; text-align: center; }
.slide-title h3::before, .slide-title h3::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #3a9cf5; }
.slide-title h3::before { left: -4px; }
.slide-title h3::after  { right: -4px; }
.slide .lede { max-width: 560px; margin: 18px auto 0; text-align: center; color: var(--ink-2); }
.slide .chips { justify-content: center; margin-top: 16px; }
.slide-visual { margin-top: 30px; border-radius: 22px; background: var(--grad-panel); aspect-ratio: 16 / 9.5; display: grid; place-items: center; padding: 5%; overflow: hidden; }
@media (max-width: 640px) { .slide-visual { aspect-ratio: 4 / 5; } }
.slider-nav { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line-2); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.active { width: 26px; background: #3a9cf5; }

/* ── Services page ──────────────────────────────────────────────────────── */
.svc-row { display: grid; gap: 40px; align-items: center; padding: 64px 0; border-top: 2px dotted var(--line); scroll-margin-top: 80px; }
.svc-row:first-child { border-top: 0; }
@media (min-width: 900px) { .svc-row { grid-template-columns: 1fr 1.1fr; gap: 72px; } .svc-row:nth-child(even) .svc-visual { order: -1; } }
.svc-visual { border-radius: 24px; background: var(--grad-panel); aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 7%; overflow: hidden; }

/* Small screens: illustration panels grow to fit their drawing instead of clipping it */
@media (max-width: 640px) {
    .svc-visual, .slide-visual { aspect-ratio: auto; padding: 32px 16px; }
    .show-screen .mk-phone { transform: scale(.78); }
    .mk-phone-screen { min-height: 300px; }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(var(--accent-rgb),.45); box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 30px 60px -30px rgba(31,122,230,.45); }
.price-label { font-size: 13px; color: var(--muted); margin: 22px 0 2px; }
.price { font-size: 2.2rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.price-card .ticks { margin: 22px 0 28px; padding-top: 22px; border-top: 2px dotted var(--line); }
.price-card .btn { margin-top: auto; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
/* Uses `translate`, not `transform`, so hover effects still work after the animation ends. */
.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Modal (project detail) ─────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; background: rgba(15,23,42,.45); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 860px; background: #fff; border-radius: 26px; padding: 28px; position: relative; animation: rise .3s ease-out both; box-shadow: 0 40px 80px -30px rgba(15,23,42,.4); }
@media (min-width: 768px) { .modal-box { padding: 44px; margin-top: 30px; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tile-2); display: grid; place-items: center; cursor: pointer; font-size: 20px; color: var(--ink); }
.modal-close:hover { background: var(--tile-3); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.media-image { width: 100%; border-radius: 14px; cursor: zoom-in; border: 1px solid var(--line); }
.media-video { width: 100%; aspect-ratio: 16/9; border-radius: 14px; border: 0; background: #000; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Image-on-top cards ─────────────────────────────────────────────────── */
.tile.tile-card { padding: 10px; display: flex; flex-direction: column; }
.tile-card .card-body { padding: 16px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.tile-card .cover, .tile-card .cover-ph { border-radius: 16px; }
@media (min-width: 768px) { .tile-card .card-body { padding: 20px 14px 14px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Motion (public pages; driven by assets/motion.js)
   Everything here is switched off by the prefers-reduced-motion rule above.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Scroll reveal: .rise waits until it scrolls into view (motion.js adds .in).
   If the script never runs, the head script drops .js-motion and they play on load. */
.js-motion .rise:not(.in) { animation-play-state: paused; }

/* Menu bar gains a soft shadow once the page scrolls */
.topbar { transition: box-shadow .3s, border-color .3s; }
.topbar.scrolled { border-bottom-color: transparent; box-shadow: 0 10px 30px -22px rgba(15,23,42,.35); }

/* Hero: drifting colour, headline appears word by word */
.hero::before { animation: drift 16s ease-in-out infinite alternate; }
.hero::after {
    content: ''; position: absolute; z-index: -1; pointer-events: none; width: 520px; height: 520px; border-radius: 50%;
    left: 58%; top: 10%; background: radial-gradient(circle, rgba(58,156,245,.16), transparent 65%);
    animation: orbit 20s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.08); } }
@keyframes orbit { from { transform: translate(-60%, 0); } 50% { transform: translate(-10%, 18%); } to { transform: translate(-90%, 30%); } }
.word { display: inline-block; opacity: 0; filter: blur(8px); translate: 0 .35em; animation: word-in .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word-in { to { opacity: 1; filter: blur(0); translate: 0 0; } }

/* Endless strip of services under the hero */
.marquee { position: relative; overflow: hidden; margin-top: 56px; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }   /* no gap: each item carries its own spacing so the two halves match */
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-size: 15px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: #3a9cf5; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Shine across blue buttons on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-accent::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s ease;
}
.btn-accent:hover::after { transform: translateX(120%); }

/* Cards: a soft glow follows the cursor (motion.js sets --mx / --my) */
.glow { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(58,156,245,var(--glow, 0)), transparent 45%); }
.glow:hover { --glow: .09; }
.tile-accent.glow:hover { --glow: 0; }

/* Showcase screen tilts a little toward the cursor */
.show-panel { perspective: 1400px; }
.show-screen { transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }

/* Illustrations float gently and build up whenever they "play" */
.play .mk, .play .mk-phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pop   { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes draw  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tick  { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ring  { from { box-shadow: 0 0 0 0 rgba(58,156,245,.45); } to { box-shadow: 0 0 0 12px rgba(58,156,245,0); } }

/* website */
.play .mk-body > .mk-line { transform-origin: left; animation: draw .7s cubic-bezier(.2,.7,.2,1) both; }
.play .mk-body > .mk-line:nth-child(2) { animation-delay: .12s; }
.play .mk-body > .mk-line:nth-child(3) { animation-delay: .24s; }
.play .mk-body > .mk-btn { animation: pop .5s .4s both; }
.play .mk-grid3 span { animation: pop .5s both; }
.play .mk-grid3 span:nth-child(1) { animation-delay: .55s; }
.play .mk-grid3 span:nth-child(2) { animation-delay: .65s; }
.play .mk-grid3 span:nth-child(3) { animation-delay: .75s; }
/* chat */
.play .mk-msgs > p { animation: pop .5s both; }
.play .mk-msgs > p:nth-child(1) { animation-delay: .15s; }
.play .mk-msgs > p:nth-child(2) { animation-delay: .9s; }
.play .mk-msgs > p:nth-child(3) { animation-delay: 1.7s; }
.play .mk-msgs > p:nth-child(4) { animation-delay: 2.4s; }
/* workflow */
.play .mk-flow > .mk-node { animation: slide-in .5s both; }
.play .mk-flow > .mk-node i { animation: tick .45s both; }
.play .mk-flow > :nth-child(1), .play .mk-flow > :nth-child(1) i { animation-delay: .1s; }
.play .mk-flow > :nth-child(3), .play .mk-flow > :nth-child(3) i { animation-delay: .5s; }
.play .mk-flow > :nth-child(5), .play .mk-flow > :nth-child(5) i { animation-delay: .9s; }
.play .mk-flow > :nth-child(7), .play .mk-flow > :nth-child(7) i { animation-delay: 1.3s; }
.play .mk-flow > .mk-link { transform-origin: top; animation: draw .3s both; }
.play .mk-node.now { animation: slide-in .5s 1.3s both, ring 1.6s 1.9s ease-out infinite; }
/* data */
.play .mk-stats > div { animation: pop .5s both; }
.play .mk-stats > div:nth-child(2) { animation-delay: .12s; }
.play .mk-bars i { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.play .mk-bars i:nth-child(2) { animation-delay: .06s; } .play .mk-bars i:nth-child(3) { animation-delay: .12s; }
.play .mk-bars i:nth-child(4) { animation-delay: .18s; } .play .mk-bars i:nth-child(5) { animation-delay: .24s; }
.play .mk-bars i:nth-child(6) { animation-delay: .30s; } .play .mk-bars i:nth-child(7) { animation-delay: .36s; }
/* phone app */
.play .mk-phone-screen > * { animation: pop .5s both; }
.play .mk-phone-screen > :nth-child(2) { animation-delay: .12s; }
.play .mk-phone-screen > :nth-child(3) { animation-delay: .24s; }
.play .mk-phone-screen > :nth-child(4) { animation-delay: .34s; }
.play .mk-phone-screen > :nth-child(5) { animation-delay: .44s; }
.play .mk-phone-screen > :nth-child(6) { animation-delay: .56s; }
/* goals checklist */
.play .mk-goals > .mk-row { animation: slide-in .5s both; }
.play .mk-goals > .mk-row i { animation: tick .45s both; }
.play .mk-goals > :nth-child(1), .play .mk-goals > :nth-child(1) i { animation-delay: .15s; }
.play .mk-goals > :nth-child(2), .play .mk-goals > :nth-child(2) i { animation-delay: .45s; }
.play .mk-goals > :nth-child(3), .play .mk-goals > :nth-child(3) i { animation-delay: .75s; }
.play .mk-goals > :nth-child(4), .play .mk-goals > :nth-child(4) i { animation-delay: 1.05s; }

/* Slider: side slides sit back a little */
.slide { transform: scale(.94); transition: opacity .5s, transform .6s cubic-bezier(.22,.7,.2,1); }
.slide.active { transform: none; }

/* Showcase tab sparkles twinkle */
.show-tab.active::before, .show-tab.active::after { animation: twinkle 2.4s ease-in-out infinite; }
.show-tab.active::after { animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .45; transform: scale(.7) rotate(45deg); } }

/* Get-started logo floats, with a slowly turning glow behind it */
.cta-logo { position: relative; animation: float 6s ease-in-out infinite; }
.cta-logo::before {
    content: ''; position: absolute; inset: -30px; z-index: -1; border-radius: 50%; filter: blur(30px); opacity: .55;
    background: conic-gradient(from 0deg, #8fd3ff, #c7b8ff, #9ff0e0, #8fd3ff);
    animation: spin 12s linear infinite;
}

/* Kicker labels shimmer once as they appear */
.js-motion .kicker.in { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.8) 50%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; animation: rise .6s cubic-bezier(.2,.7,.2,1) both, shimmer 1.4s .3s ease both; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
