/* ==========================================================================
   LinguisTriks marketing site - design system
   Brand: logo red #C62227, gold #F6B917, blue #547DBE on deep navy.
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;

    --navy-950: #070f26;
    --navy-900: #0a1633;
    --navy-800: #0f1f45;
    --navy-700: #172b5c;
    --ink: #0e1a33;
    --text: #33415c;
    --muted: #64728c;
    --line: #e4e9f2;
    --line-strong: #cfd8e8;
    --bg: #ffffff;
    --bg-soft: #f5f7fc;
    --bg-tint: #eef3fb;

    --blue: #547dbe;
    --blue-600: #3e67ad;
    --blue-700: #2d5292;
    --blue-50: #eef3fb;
    --blue-100: #dce6f6;
    --gold: #f6b917;
    --gold-600: #e0a500;
    --gold-50: #fff6dc;
    --red: #c62227;
    --red-50: #fdecec;
    --green: #148f5e;
    --green-50: #e6f6ee;

    --ai-grad-light: linear-gradient(100deg, #d98300 0%, #d6452c 45%, #3e67ad 100%);
    --ai-grad-dark: linear-gradient(100deg, #ffd35c 0%, #ff9a62 45%, #9dbcff 100%);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(14, 26, 51, .05), 0 2px 6px rgba(14, 26, 51, .05);
    --shadow: 0 12px 32px -14px rgba(14, 26, 51, .28);
    --shadow-lg: 0 34px 70px -28px rgba(7, 15, 38, .55);
    --container: 1200px;
    --header-h: 72px;
}

/* ---------- base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;   /* safety net: never a sideways scroll on phones (clip keeps the sticky header working) */
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 1.45rem + 3.1vw, 3.7rem); font-weight: 800; line-height: 1.07; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.55rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; }
h1:focus, main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-xs);
}
.skip-link:focus { top: 12px; color: #fff; }

.muted { color: var(--muted); }
.center { text-align: center; }
.center .hero-ctas, .hero-ctas.is-centered { justify-content: center; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow, .narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- buttons ------------------------------------------------------- */
.btn {
    --btn-h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: var(--btn-h); padding: 0 1.25em;
    font: inherit; font-size: .98rem; font-weight: 700; line-height: 1.1; letter-spacing: -.005em;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(224, 165, 0, .9); }
.btn-primary:hover { background: #ffc633; color: var(--ink); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-700); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-sm { --btn-h: 38px; font-size: .9rem; padding: 0 1em; border-radius: 10px; }
.btn-lg { --btn-h: 54px; font-size: 1.05rem; padding: 0 1.6em; }
.btn-xs { --btn-h: 28px; font-size: .78rem; padding: 0 .8em; border-radius: 8px; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .7; pointer-events: none; }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .35em;
    font-weight: 700; color: var(--blue-700); text-decoration: none;
}
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon, .card-link:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- chips, eyebrows ------------------------------------------------ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .45em;
    margin: 0 0 .9em; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue-700);
}
.eyebrow--light, .section--dark .eyebrow, .hero .eyebrow { color: #ffd35c; }

.ai-chip {
    display: inline-flex; align-items: center; gap: .35em;
    padding: .25em .7em; border-radius: 999px;
    font-size: .76rem; font-weight: 800; letter-spacing: .01em; color: #7a3d00;
    background: linear-gradient(#fff, #fff) padding-box, var(--ai-grad-light) border-box;
    border: 1.5px solid transparent;
}

.badge-new {
    display: inline-block; margin-left: .35em; padding: .1em .5em; border-radius: 999px;
    font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    color: var(--ink); background: var(--gold);
}

.tag {
    display: inline-flex; align-items: center; padding: .12em .6em; border-radius: 999px;
    font-size: .74rem; font-weight: 700; background: var(--bg-tint); color: var(--blue-700); white-space: nowrap;
}
.tag.ok { background: var(--green-50); color: var(--green); }
.tag.no { background: var(--red-50); color: var(--red); }
.tag.ai { background: var(--gold-50); color: #8a5a00; }

.ai-text { background: var(--ai-grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .ai-text, .section--dark .ai-text { background-image: var(--ai-grad-dark); }

/* ---------- icon tiles ---------------------------------------------------- */
.icon { flex: none; display: inline-block; vertical-align: middle; }
.icon-tile {
    display: inline-grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 14px;
    color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100);
}
.icon-tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-tile--lg { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 18px; }
.icon-tile--ok { color: var(--green); background: var(--green-50); border-color: #c7ebd9; }
.icon-tile--ai {
    color: #ffd35c; background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 211, 92, .35); box-shadow: inset 0 0 24px rgba(255, 154, 98, .12);
}

/* ---------- header / navigation ------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 26, 51, .35); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 176px; height: auto; }

.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link, .nav-drop > summary {
    display: inline-flex; align-items: center; gap: .3em;
    padding: 8px 12px; border-radius: 10px;
    font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
    list-style: none; user-select: none; white-space: nowrap;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-drop > summary:hover, .nav-drop[open] > summary { background: var(--bg-soft); color: var(--blue-700); }
.nav-drop .chev { transition: transform .2s ease; opacity: .7; }
.nav-drop[open] .chev { transform: rotate(180deg); }

.nav-panel {
    position: absolute; top: calc(100% + 10px); left: 0; z-index: 10;
    min-width: 260px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: grid; gap: 2px;
}
.panel-link {
    display: flex; align-items: center; gap: .65em; padding: 10px 12px; border-radius: 10px;
    color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.panel-link .icon { color: var(--blue-600); }
.panel-link:hover { background: var(--bg-soft); color: var(--blue-700); }

.nav-panel--mega { width: min(860px, 92vw); grid-template-columns: 1fr 250px; gap: 12px; padding: 14px; left: -12px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-link {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px;
    color: var(--ink); text-decoration: none;
}
.mega-link:hover { background: var(--bg-soft); }
.mega-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--blue-50); color: var(--blue-700); }
.mega-text { display: grid; line-height: 1.3; }
.mega-text strong { font-size: .93rem; }
.mega-text small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.mega-side { display: grid; gap: 10px; align-content: start; }
.mega-ai {
    display: grid; gap: 8px; padding: 18px; border-radius: 14px; text-decoration: none;
    background: radial-gradient(120% 90% at 100% 0%, rgba(246, 185, 23, .28), transparent 60%),
                radial-gradient(110% 80% at 0% 100%, rgba(84, 125, 190, .45), transparent 60%), var(--navy-900);
    color: #d7e0f2; font-size: .86rem; line-height: 1.45;
}
.mega-ai strong { color: #fff; font-size: 1rem; }
.mega-ai .ai-chip { justify-self: start; }
.mega-ai .link-arrow { color: #ffd35c; font-size: .88rem; }
.mega-all { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin { color: var(--muted); }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; place-items: center; cursor: pointer; color: var(--ink); }
.nav-burger-close { display: none; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1100px) {
    /* No backdrop-filter here: it would make the header the containing block of the fixed menu below and
       squash the menu to the header's height. */
    .site-header { backdrop-filter: none; background: #fff; }
    .nav-burger { display: grid; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px;
        padding: 18px 20px 32px; background: #fff; overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
    }
    .nav-toggle:checked ~ .site-nav { transform: none; opacity: 1; visibility: visible; }
    .nav-toggle:checked + .nav-burger .nav-burger-open { display: none; }
    .nav-toggle:checked + .nav-burger .nav-burger-close { display: inline; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link, .nav-drop > summary { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 1.02rem; }
    .nav-panel, .nav-panel--mega { position: static; width: auto; min-width: 0; box-shadow: none; border: 0; padding: 4px 0 8px 8px; grid-template-columns: 1fr; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-side { display: none; }
    .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .nav-actions .btn { width: 100%; }
    .nav-signin { justify-content: center; }
    body:has(.nav-toggle:checked) { overflow: hidden; }
}

/* ---------- sections ------------------------------------------------------ */
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #c9d3e8; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #b8c4dc; }
.section-glow, .hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(40% 55% at 88% 8%, rgba(198, 34, 39, .32), transparent 70%),
        radial-gradient(38% 50% at 96% 88%, rgba(84, 125, 190, .42), transparent 70%),
        radial-gradient(35% 45% at 6% 100%, rgba(246, 185, 23, .18), transparent 70%);
}
.section > .container { position: relative; }

.section-header { max-width: 760px; margin-bottom: 48px; }
.section-header.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header .lead { margin-bottom: 0; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.lead--light { color: #b8c4dc; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split.is-reversed > .split-copy { order: 2; }
.split-copy > .section-header { margin-bottom: 24px; }
.split-copy > p { color: var(--text); }
.split-visual { min-width: 0; }
@media (max-width: 980px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split.is-reversed > .split-copy { order: 0; }
}

.center > .link-arrow, .section .center { margin-top: 36px; }

/* ---------- cards --------------------------------------------------------- */
.card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
}
.card > .icon-tile { margin-bottom: 18px; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text); font-size: .98rem; }
.card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); color: inherit; }
.card-link .link-arrow { margin-top: auto; padding-top: 14px; }
.card-tagline { font-weight: 700; color: #ffd35c !important; margin-bottom: .4em; }

.card-dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border-color: rgba(255, 255, 255, .1); box-shadow: none; color: #c9d3e8;
}
.card-dark p { color: #b8c4dc; }
.card-dark h3 { color: #fff; }
.card-dark.card-link:hover { border-color: rgba(255, 211, 92, .4); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8); }
.card-dark .link-arrow { color: #ffd35c; }

.mini-card { padding: 24px; }
.mini-card h3 { font-size: 1.02rem; }
.mini-card p { font-size: .93rem; color: var(--muted); }

.quote-card blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); }
.quote-card figcaption { display: grid; font-size: .9rem; color: var(--muted); }
.quote-card figcaption strong { color: var(--ink); }

/* checklists */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.5; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 50%;
    background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23148f5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--compact { gap: 8px; font-size: .95rem; }
.checklist--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .checklist--columns { grid-template-columns: 1fr; } }
.checklist-card { padding: 28px; margin: 0; }
.section--dark .checklist li::before { background-color: rgba(255, 255, 255, .08); }

.safeguard {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 14px 16px;
    border-radius: var(--radius-sm); background: var(--green-50); border: 1px solid #c7ebd9; color: #0c5c3c; font-size: .95rem;
}
.safeguard .icon { color: var(--green); margin-top: 2px; }

/* ---------- hero ---------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; color: #c9d3e8;
    background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
    padding: 88px 0 104px;
}
.hero h1 { color: #fff; }
.hero--compact { padding: 72px 0 88px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.45rem + 2.7vw, 3.45rem); }
.hero-lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); color: #c3cde3; max-width: 36em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; font-size: .93rem; color: #aebad4; }
.hero-points li { display: inline-flex; align-items: center; gap: .4em; }
.hero-points .icon { color: #ffd35c; }
.hero-visual { position: relative; }
.hero-visual .mock { margin-left: auto; }
@media (max-width: 980px) {
    .hero { padding: 64px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual .mock { margin: 0 auto; }
}

.pill {
    display: inline-flex; align-items: center; gap: .55em; margin-bottom: 22px; padding: 6px 14px 6px 6px;
    border-radius: 999px; font-size: .88rem; font-weight: 600; color: #e6ecf8; text-decoration: none;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.pill:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.pill-badge { padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); color: var(--ink);
    font-size: .84rem; line-height: 1.3; max-width: 250px;
}
.float-card strong { display: block; font-size: .88rem; }
.float-card small { color: var(--muted); }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); flex: none; }
.fc-icon.ok { background: var(--green-50); color: var(--green); }
.fc-1 { left: -34px; bottom: 90px; animation: floaty 6s ease-in-out infinite; }
.fc-2 { right: -18px; top: -22px; animation: floaty 7s ease-in-out -2s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1180px) { .fc-1 { left: 0; } .fc-2 { right: 0; } }
@media (max-width: 560px) { .float-card { display: none; } }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump-links a {
    display: inline-flex; align-items: center; gap: .4em; padding: 6px 12px; border-radius: 999px;
    font-size: .85rem; font-weight: 600; color: #dfe6f5; text-decoration: none;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.jump-links a:hover { background: rgba(255, 255, 255, .13); color: #fff; }

/* page hero (inner pages) */
.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-tint), #fff); }
.page-hero.is-centered { text-align: center; }
.page-hero.is-centered .section-header { margin-left: auto; margin-right: auto; }
.page-hero .section-header { margin-bottom: 28px; }
.page-hero--split { padding: 56px 0 72px; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.page-hero .lead { max-width: 40em; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.page-hero.is-centered .breadcrumbs ol { justify-content: center; }

/* ---------- home: trust + lifecycle ---------------------------------------- */
.trust-section { border-bottom: 1px solid var(--line); }
.integrations { text-align: center; }
.integrations-label { margin: 0 0 16px; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.integrations ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; padding: 0; margin: 0; }
.integrations li {
    display: inline-flex; align-items: center; gap: .45em; padding: 8px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink);
}
.integrations li .icon { color: var(--blue-600); }

.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: step; position: relative; }
.lifecycle::before { content: ""; position: absolute; left: 6%; right: 6%; top: 49px; height: 2px; background: linear-gradient(90deg, var(--red), var(--gold), var(--blue)); opacity: .35; }
.lifecycle li a {
    position: relative; display: grid; justify-items: center; gap: 8px; height: 100%; padding: 24px 12px;
    text-align: center; text-decoration: none; color: var(--text); border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease;
}
.lifecycle li a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lifecycle li strong { color: var(--ink); font-size: 1.02rem; }
.lifecycle li span:last-child { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.lifecycle .icon-tile { background: #fff; }
@media (max-width: 1000px) { .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lifecycle::before { display: none; } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.principle-strip { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle-strip li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #b8c4dc; padding: 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.principle-strip li strong { color: #fff; }
.principle-strip li > span { min-width: 0; }
.principle-strip .icon { color: #ffd35c; margin-top: 2px; }
@media (max-width: 900px) { .principle-strip { grid-template-columns: 1fr; } }

.audience-card { display: flex; flex-direction: column; }
.audience-card .link-arrow { margin-top: auto; }

/* ---------- features ------------------------------------------------------ */
.module-card p { color: var(--muted); }
.module-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-detail { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.module-detail header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.module-detail header h3 { margin: 0; }
.module-detail header a { color: var(--ink); text-decoration: none; }
.module-detail header a:hover { color: var(--blue-700); }
@media (max-width: 800px) { .module-detail-list { grid-template-columns: 1fr; } }

.highlight { display: flex; gap: 18px; align-items: flex-start; }
.highlight .icon-tile { margin: 0; }
.highlight p { color: var(--muted); }

.ai-touch-card { padding: 28px; background: linear-gradient(180deg, #fffaf0, #fff); border-color: #f6dfa6; }
.ai-touch-card ul { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 12px; }
.ai-touch-card li { padding-left: 22px; position: relative; color: var(--ink); font-weight: 500; }
.ai-touch-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--ai-grad-light); }

/* pain points + steps */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain { display: grid; gap: 14px; align-content: start; }
.pain-problem { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 700; color: var(--ink); }
.pain-problem .icon { color: var(--red); margin-top: 3px; }
.pain-answer { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--text); font-size: .96rem; }
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pain-grid { grid-template-columns: 1fr; } }

.flow-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.flow-steps li { position: relative; display: grid; gap: 6px; padding: 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.flow-steps strong { color: var(--ink); line-height: 1.3; }
.flow-steps li > span:last-child { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.step-no {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 6px;
    background: var(--ink); color: #ffd35c; font-weight: 800; font-size: .85rem;
}

/* ---------- pricing ------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 26px; }
.plan.is-popular { border: 2px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(224, 165, 0, .55); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.plan-name { font-size: 1.35rem; margin-bottom: .25em; }
.plan-summary { color: var(--muted); font-size: .94rem; min-height: 2.9em; }
.plan-price { display: flex; align-items: flex-start; gap: 4px; margin: 6px 0 4px; color: var(--ink); }
.plan-price .currency { font-size: 1.4rem; font-weight: 700; margin-top: 6px; }
.plan-price .amount { font-size: 3.1rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.plan-price .amount--text { font-size: 2.2rem; }
.plan-price .per { font-size: .78rem; line-height: 1.25; color: var(--muted); margin: 8px 0 0 6px; }
.plan-after { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.plan-users { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-weight: 700; font-size: .92rem; color: var(--ink); }
.plan .checklist { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }
.fine-print { margin-top: 24px; font-size: .88rem; color: var(--muted); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 800; }
.compare-table tbody th { color: var(--ink); font-weight: 600; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--green); }

/* calculators (interactive) */
.calc { padding: 30px; box-shadow: var(--shadow); }
.calc-head h3 { font-size: 1.25rem; margin-bottom: .2em; }
.calc-head p { color: var(--muted); font-size: .93rem; }
.calc-label, .est-field label { display: block; margin: 18px 0 10px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.calc-label strong, .est-field strong { color: var(--blue-700); }
.range { width: 100%; accent-color: var(--blue-600); height: 28px; cursor: pointer; }
.calc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 14px; }
.calc-result.is-single { grid-template-columns: 1fr; }
.calc-result > div { padding: 14px; border-radius: 12px; background: var(--bg-soft); display: grid; gap: 2px; }
.calc-result small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.calc-result strong { font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.calc-result strong span { font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.calc-note { font-size: .86rem; color: var(--muted); }
.est-result { display: grid; gap: 2px; margin: 24px 0 12px; padding: 20px; border-radius: 14px; background: var(--navy-900); color: #c9d3e8; }
.est-big { font-size: 2.4rem; font-weight: 800; color: #ffd35c; letter-spacing: -.02em; line-height: 1.1; }
@media (max-width: 520px) { .calc-result { grid-template-columns: 1fr; } }

/* ---------- FAQ ----------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--muted); }
.faq[open] summary .chev { transform: rotate(180deg); }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--text); }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; padding: 88px 0; background: var(--navy-900); color: #c9d3e8; }
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(45% 80% at 90% 10%, rgba(246, 185, 23, .22), transparent 70%),
                radial-gradient(40% 90% at 10% 100%, rgba(84, 125, 190, .35), transparent 70%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #b8c4dc; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 900px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- forms --------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.form-layout > .form { order: 2; }
.form-side { display: grid; gap: 20px; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } .form-layout > .form { order: -1; } }

.form { padding: 32px; box-shadow: var(--shadow); }
.form-title { font-size: 1.4rem; margin-bottom: 20px; }
.side-title { font-size: 1.15rem; }
.side-alt { display: grid; gap: 4px; background: var(--bg-soft); }
.side-alt p { margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.field .optional { font-weight: 500; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form { padding: 24px 20px; } }

.input {
    width: 100%; min-height: 48px; padding: 11px 14px;
    font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364728c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(84, 125, 190, .18); }
.input.invalid { border-color: var(--red); }
.input.invalid:focus { box-shadow: 0 0 0 4px rgba(198, 34, 39, .15); }
.validation-message { color: var(--red); font-size: .86rem; font-weight: 600; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }

.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.input-group:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(84, 125, 190, .18); }
.input-group .input { border: 0; border-radius: 0; min-width: 0; flex: 1; box-shadow: none; }
.input-group .input:focus { box-shadow: none; }
.input-prefix, .input-suffix { display: grid; place-items: center; padding: 0 12px; background: var(--bg-soft); color: var(--muted); font-size: .92rem; white-space: nowrap; }
@media (max-width: 480px) { .input-prefix { display: none; } .input-suffix { font-size: .82rem; padding: 0 8px; } }

.form-error { padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-sm); background: var(--red-50); color: #8f1519; font-weight: 600; font-size: .95rem; border: 1px solid #f3c2c3; }
.form-note { margin: 14px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.quick-links { display: grid; gap: 4px; padding: 10px; }
.quick-links a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.quick-links a:hover { background: var(--bg-soft); }
.quick-links a .icon { color: var(--blue-600); margin-top: 3px; }
.quick-links span { display: grid; line-height: 1.35; }
.quick-links small { color: var(--muted); }
.office-line { display: grid; gap: 2px; padding: 0 6px; font-size: .95rem; }
.office-line a { text-decoration: none; }

.signin-form { max-width: 560px; margin: 0 auto; text-align: left; }
.signin-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .signin-choices { grid-template-columns: 1fr; } }
.signin-foot { margin-top: 22px; }

.thank-you { padding: 80px 0 32px; }
.next-card { margin-top: 32px; }
.contact-card { display: grid; gap: 6px; }
.contact-card p { display: flex; gap: 10px; align-items: center; margin: 0; }
.contact-card .icon { color: var(--blue-600); }
.office-card p { margin: 0 0 4px; }
.values { gap: 16px; }

.empty-state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 48px 28px; color: var(--muted); }
.empty-state h2 { font-size: 1.4rem; margin: 8px 0 0; }

/* ---------- what's new / blog / prose -------------------------------------- */
.group-heading { font-size: 1.3rem; margin-bottom: 18px; }
.release-list { display: grid; gap: 14px; }
.release { flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; }
.release .icon-tile { margin: 0; }
.release h3 { margin-bottom: .2em; }
.release p { color: var(--muted); margin: 0; }
.release > div { flex: 1; }
.release-chev { color: var(--line-strong); }

.post-card { padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.post-card h2 { font-size: 1.15rem; margin-bottom: .35em; }
.post-banner { width: 100%; border-radius: var(--radius); margin: 8px 0 32px; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-body { padding-bottom: 80px; }
.not-found-links { margin-top: 28px; text-align: left; }
.not-found-links .card-link { flex-direction: row; align-items: center; gap: 14px; }
.not-found-links span { display: grid; }
.not-found-links small { color: var(--muted); }
.not-found-links .icon { color: var(--blue-600); }

/* ---------- footer -------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #9fadc9; padding: 72px 0 28px; font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 36px; }
.footer-brand img { width: 176px; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 6px; }
.footer-col a:not(.btn) { color: #b6c2da; text-decoration: none; }
.footer-col a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-contact .tel { display: grid; line-height: 1.35; }
.footer-contact .tel .muted { color: #7f8db0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #dfe6f5; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.social a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a, .footer-legal .linklike { color: #9fadc9; text-decoration: none; }
.footer-legal a:hover, .footer-legal .linklike:hover { color: #fff; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- cookie banner ------------------------------------------------- */
.cookie-banner {
    position: fixed; z-index: 150; left: 20px; bottom: 20px; max-width: 460px;
    padding: 20px; border-radius: var(--radius); background: #fff; color: var(--text);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .92rem;
}
.cookie-banner p { margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- reveal on scroll (only when JS runs; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Product mock-ups (illustrations built in HTML/CSS)
   ========================================================================== */
.mock {
    width: 100%; max-width: 560px; background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(14, 26, 51, .08); box-shadow: var(--shadow-lg); color: var(--text);
    font-size: .84rem; line-height: 1.45; text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f3f6fb; border-bottom: 1px solid var(--line); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d7deea; }
.mock-bar .dot:nth-child(1) { background: #f2b6b7; }
.mock-bar .dot:nth-child(2) { background: #f7dc95; }
.mock-bar .dot:nth-child(3) { background: #b8cdea; }
.mock-title { margin-left: 8px; font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock .muted { color: var(--muted); }
.mock .btn { box-shadow: none; }
.mock .btn-block { justify-content: center; }
.avatar {
    display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--blue-100); color: var(--blue-700); font-size: .7rem; font-weight: 800;
}
.avatar.ai { background: var(--ink); color: #ffd35c; }
.avatar.sm { width: 24px; height: 24px; font-size: .62rem; }

/* chat */
.chat-demo { display: grid; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg p { margin: 0; padding: 9px 12px; border-radius: 14px; }
.msg.bot p { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg.user { justify-self: end; }
.msg.user p { background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
.msg > div { display: grid; gap: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 10px; border-radius: 10px; background: var(--green-50); color: var(--green); font-weight: 700; font-size: .78rem; border: 1px dashed #9fd6bd; }
.confirm-card { margin-left: 38px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-sm); }
.confirm-head { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--green); margin-bottom: 8px; font-size: .82rem; }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: .8rem; }
.confirm-card dt { color: var(--muted); }
.confirm-card dd { margin: 0; color: var(--ink); font-weight: 600; }
.js .chat-demo[data-animate] > * { opacity: 0; transform: translateY(8px); }
.js .chat-demo[data-animate].is-visible > * { animation: msg-in .45s ease forwards; animation-delay: calc(var(--i, 0) * .75s + .2s); }
@keyframes msg-in { to { opacity: 1; transform: none; } }

/* inbox -> enquiry */
.flow-mock { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.flow-mock .mock { max-width: none; }
.flow-arrow { display: grid; justify-items: center; gap: 8px; color: #ffd35c; }
.section:not(.section--dark) .flow-arrow { color: var(--blue-600); }
.email-item { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); display: grid; gap: 3px; }
.email-item.is-unread { border-color: var(--blue-100); background: var(--blue-50); }
.email-item p { margin: 0; color: var(--muted); font-size: .78rem; }
.email-top { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.email-top strong { color: var(--ink); }
.email-subject { font-weight: 700; color: var(--ink); }
.email-item .tag { justify-self: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) {
    .flow-mock { grid-template-columns: 1fr; }
    .flow-arrow { grid-auto-flow: column; }
    .flow-arrow-icon { transform: rotate(90deg); }
}

/* ask ai */
.ask-row { display: flex; gap: 8px; align-items: flex-start; }
.ask-row.user { justify-content: flex-end; }
.ask-row.user p { margin: 0; padding: 9px 12px; border-radius: 14px; border-bottom-right-radius: 4px; background: var(--blue-600); color: #fff; max-width: 88%; }
.ask-row.bot > div { flex: 1; min-width: 0; }
.ask-row.bot p { margin: 0 0 6px; color: var(--ink); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mini-list li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--bg-soft); font-weight: 600; color: var(--ink); flex-wrap: wrap; }
.mini-list .muted { font-weight: 500; font-size: .76rem; }
.pending-card { display: grid; gap: 4px; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--gold-600); background: var(--gold-50); }
.pending-label { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; color: #8a5a00; text-transform: uppercase; letter-spacing: .03em; }
.pending-card strong { color: var(--ink); }
.pending-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

/* ai translation: bilingual editor */
.mt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-head .file-chip { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.mt-progress-row { display: flex; align-items: center; gap: 10px; font-size: .76rem; }
.mt-progress { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mt-progress span { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.seg-list { display: grid; gap: 6px; }
.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 8px 10px;
       border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .78rem; }
.seg .src { color: var(--muted); }
.seg .tgt { color: var(--ink); font-weight: 600; }
.seg .tm { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); font-size: .62rem; font-weight: 800; vertical-align: 1px; }
.seg-st { display: inline-grid; place-items: center; color: var(--muted); }
.seg-st.ok { color: var(--green); }
.seg.is-active { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); }
.seg .caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; background: var(--blue-600); vertical-align: -2px; animation: mt-blink 1s steps(1) infinite; }
@keyframes mt-blink { 50% { opacity: 0; } }
.mt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .76rem; }
.mt-foot .muted { display: inline-flex; align-items: center; gap: 5px; }
.ai-touch-card .fine-print { margin: 12px 0 8px; font-size: .82rem; }
@media (max-width: 520px) {
    .seg { grid-template-columns: minmax(0, 1fr) 20px; }
    .seg .src { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .seg .caret { animation: none; } }

/* job post */
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-head > div { display: grid; }
.job-head strong { color: var(--ink); font-size: .95rem; }
.job-stats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }
.job-stats > span:not(.tag) { display: inline-flex; align-items: center; gap: 4px; }
.reply-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.reply-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.reply-list li > span:nth-child(2) { flex: 1; min-width: 0; color: var(--text); }
.reply-list strong { color: var(--ink); margin-right: 4px; }
.ai-summary { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #fffaf0; border: 1px solid #f6dfa6; }
.ai-summary .ai-chip { justify-self: start; }
.ai-summary p { margin: 0; color: var(--ink); }

/* bank + payouts */
.bank-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.bank-line > div { display: grid; }
.bank-line strong { color: var(--ink); }
.bank-line .amount { font-size: 1.15rem; color: var(--green); }
.match-card { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); }
.match-card .ai-chip { justify-self: start; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mini-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 8px 8px; }
.mini-table td { padding: 8px; border-top: 1px solid var(--line); color: var(--ink); }
.mini-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-table tr.total td { font-weight: 800; color: var(--green); }
.payouts td:nth-child(3) { color: var(--muted); }
.payouts td:last-child { text-align: right; }
.guard-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--green-50); color: #0c5c3c; font-weight: 600; font-size: .8rem; }
@media (max-width: 520px) { .payouts td:nth-child(3), .payouts th:nth-child(3) { display: none; } }

/* meeting */
.mock-dark { background: #0d1530; border-color: rgba(255, 255, 255, .08); color: #c9d3e8; }
.mock-dark .mock-bar { background: #111c3c; border-color: rgba(255, 255, 255, .07); }
.mock-dark .mock-bar .dot { opacity: .8; }
.mock-dark .mock-title { color: #9fadc9; }
.meet-top { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; }
.rec { display: inline-flex; align-items: center; gap: 6px; color: #ff9d9f; font-weight: 700; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d53; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.waiting { color: #c9d3e8; }
.waiting strong { color: #ffd35c; }
.meet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; aspect-ratio: 4 / 3.4; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, #1c2a55, #121c3d); border: 2px solid transparent; }
.tile.is-speaking { border-color: #ffd35c; box-shadow: 0 0 0 4px rgba(255, 211, 92, .15); }
.tile-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; }
.tile-name { position: absolute; left: 6px; bottom: 6px; right: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: #fff; font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-controls { display: flex; justify-content: center; gap: 8px; }
.ctl { display: grid; place-items: center; min-width: 36px; height: 34px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: .78rem; }
.ctl.end { background: #d63b40; }

/* postal pack */
.pack-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); gap: 12px; align-items: center; }
.doc-stack { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink); flex-wrap: wrap; }
.doc .icon { color: var(--blue-600); }
.doc .tag, .doc .muted { margin-left: auto; font-size: .72rem; }
.doc-pack { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 12px; border: 1.5px solid var(--gold); background: var(--gold-50); }
.doc-pack .icon { color: #8a5a00; }
.pack-arrow { color: var(--blue-600); }
.mock-pack .btn { justify-self: start; }
@media (max-width: 520px) { .pack-flow { grid-template-columns: 1fr; } .pack-arrow { transform: rotate(90deg); justify-self: center; } }

/* client portal / campaign / reports */
.portal-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg-soft); font-size: .78rem; font-weight: 700; color: var(--muted); overflow-x: auto; }
.portal-tabs span { padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.portal-tabs .is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.kpi small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.kpi strong { font-size: 1.2rem; color: var(--ink); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); }
.list-row strong { color: var(--ink); margin-right: 4px; }
.funnel-legend { display: flex; gap: 14px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg.e::before, .bar.e { background: var(--blue-100); }
.lg.q::before, .bar.q { background: #9dbcff; }
.lg.o::before, .bar.o { background: var(--gold); }
.funnel-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.who { font-weight: 700; color: var(--ink); }
.bars { display: grid; gap: 4px; }
.bar { display: block; height: 18px; border-radius: 5px; font-size: .68rem; font-weight: 800; color: var(--ink); padding-left: 6px; line-height: 18px; min-width: 26px; }

/* security + templates */
.btn-ms { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); gap: .6em; }
.ms-logo { display: inline-grid; grid-template-columns: 8px 8px; gap: 2px; }
.ms-logo i { width: 8px; height: 8px; display: block; }
.ms-logo i:nth-child(1) { background: #f25022; }
.ms-logo i:nth-child(2) { background: #7fba00; }
.ms-logo i:nth-child(3) { background: #00a4ef; }
.ms-logo i:nth-child(4) { background: #ffb900; }
.device-check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--green-50); color: var(--green); font-weight: 700; }
.audit-list { display: grid; gap: 6px; }
.audit-list > div { padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); color: var(--ink); font-size: .79rem; }
.audit-list .muted { margin-right: 6px; font-variant-numeric: tabular-nums; }
.tpl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-code { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 10px; background: #0f1a36; }
.tpl-code code { color: #c9d3e8; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-code b { color: #9dbcff; font-weight: 600; }
.tpl-code .warn b { color: #ff9d9f; text-decoration: wavy underline #ff6b70; }
.tpl-code .warn span { color: #ff9d9f; font-size: .68rem; margin-left: 4px; }
.tpl-preview { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.tpl-preview strong { color: var(--ink); }
.tpl-preview p { margin: 0; font-size: .78rem; }
.tpl-preview .btn { justify-self: start; }
.ai-prompt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #fffaf0; border: 1px solid #f6dfa6; color: var(--ink); font-size: .8rem; }
@media (max-width: 520px) { .tpl-split { grid-template-columns: 1fr; } }

/* ---------- reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal, .js .chat-demo[data-animate] > * { opacity: 1 !important; transform: none !important; }
}

/* anchors land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
