/* ==========================================================================
   LegalOpine — legalopine.in
   Visual identity, taken from the LegalOpine logo kit: the warm charcoal
   of the scales tile (#1C1917 → #57534E) for text and the few dark bands,
   and the gold of "Opine" and the sprout (#A9741C → #D4A23C, lighter
   #D4A84A → #F2D28B on dark) as the one accent. Headings are set in
   Poppins like the wordmark, body text in Inter. Motion is limited to a
   gentle fade-in as sections scroll into view.

   The "navy" token names are kept from the CodeLipi base stylesheet so
   every rule that reads them follows the brand; they now hold charcoal.
   ========================================================================== */

:root {
    /* Charcoal — the logo tile's stone gradient. */
    --navy: #1c1917;
    --navy-2: #292524;
    --navy-3: #0f0d0c;
    --charcoal-light: #57534e;
    --dark-surface: linear-gradient(135deg, #1c1917 0%, #2c2825 55%, #3d3833 100%);

    /* Gold — "Opine" and the sprout. The bright tones are decorative
       (bars, dots, buttons with charcoal text, large headings); body-size
       text and links use the darker "ink" tone, which meets WCAG AA on
       white. */
    --accent: #b8862b;
    --gold-from: #a9741c;
    --gold-to: #d4a23c;
    --accent-ink: #855a12;
    --accent-hover: #6b480e;
    --accent-soft: #fbf5e8;
    --accent-line: #eedcb3;
    --accent-on-dark: #e9c46a;

    --green: #2f8557;
    --green-soft: #e7f3ec;
    --amber: #9a6b00;
    --amber-soft: #fbf3dc;
    --red: #b3372f;
    --red-soft: #fbeceb;

    --bg: #ffffff;
    --bg-alt: #f8f7f4;
    --card: #ffffff;
    --text: #1b1c24;
    --muted: #5d606d;
    --line: #e8e5df;
    --line-strong: #d5d1c9;

    --on-dark: #f5f5f4;
    --on-dark-muted: #b3b4bf;
    --dark-line: rgba(255,255,255,.12);

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(28,25,23,.05), 0 4px 14px -6px rgba(28,25,23,.10);
    --shadow-lg: 0 2px 4px rgba(28,25,23,.04), 0 24px 48px -20px rgba(28,25,23,.28);

    /* Shared names admin.css (the inline-editing chrome) reads. */
    --background: var(--bg);
    --surface: #ffffff;
    --border: var(--line);
    --primary: var(--accent-ink);
    --primary-dark: var(--accent-hover);
    --secondary: var(--navy);
    --transition: 0.2s ease;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-h: 72px;
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    color: var(--navy);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* **bold** in a heading = the accent colour: the gold gradient of
   "Opine" in the wordmark (large text, so its contrast suffices), with a
   solid fallback where background-clip text isn't supported. */
h1 strong,
h2 strong { font-weight: inherit; color: var(--accent-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    h1 strong,
    h2 strong {
        color: transparent;
        background: linear-gradient(90deg, var(--gold-from), var(--gold-to));
        -webkit-background-clip: text; background-clip: text;
        -webkit-box-decoration-break: clone; box-decoration-break: clone;
    }
}

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }

.sr-only {
    position: absolute; 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(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(184,134,43,.22); }

/* ---------- buttons ---------- */

.btn {
    --pad: 11px 20px;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: var(--pad);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn i { font-size: .85em; transition: transform .2s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(2px); }
.btn-sm { --pad: 8px 16px; font-size: .9rem; }
.btn-lg { --pad: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[hidden] { display: none; }

/* Gold, like "Opine", with charcoal text — white on these golds would
   fail contrast; charcoal on them passes AA. */
.btn-accent {
    color: var(--navy);
    background: linear-gradient(135deg, var(--accent), var(--gold-to));
    box-shadow: 0 1px 2px rgba(28,25,23,.18), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-accent:hover { color: var(--navy); background: linear-gradient(135deg, var(--gold-from), var(--accent)); }

.btn-primary { color: #fff; background: var(--navy); }
.btn-primary:hover { background: var(--navy-2); }

.btn-outline { color: var(--navy); background: #fff; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); }

.btn-ghost-dark { color: var(--navy); background: #fff; border-color: var(--line-strong); }
.btn-ghost-dark:hover { border-color: var(--navy); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.text-link {
    display: inline-flex; align-items: center; gap: .45em;
    font-weight: 600; font-size: .95rem;
    color: var(--accent-ink);
}
.text-link[hidden] { display: none; }
.text-link i { font-size: .75em; }

/* ---------- small labels ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 12px;
    font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
.dark .eyebrow, .eyebrow--light { color: var(--accent-on-dark); }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 20px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
}

.tag {
    display: inline-block; margin: 0 0 10px;
    padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent-ink); background: var(--accent-soft);
}

/* ---------- dark surfaces ---------- */

.dark { background: var(--dark-surface); color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark h1 strong, .dark h2 strong,
.cta-copy h2 strong { color: var(--accent-on-dark); background-image: linear-gradient(90deg, #d4a84a, #f2d28b); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .dark h1 strong, .dark h2 strong,
    .cta-copy h2 strong { color: transparent; }
}

/* ---------- header ---------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(28,25,23,.35); }
.site-header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.site-brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none !important; }
.site-logo { width: 36px; height: 36px; border-radius: 9px; }
.site-title { display: flex; flex-direction: column; line-height: 1.15; }
.site-name { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.site-name b { font-weight: 700; color: var(--accent-ink); }
.site-tagline { font-size: .7rem; color: var(--muted); letter-spacing: .02em; }
.site-logo-wide { display: block; height: 44px; width: auto; }
@media (max-width: 520px) { .site-logo-wide { height: 34px; } }
@media (max-width: 360px) { .site-logo-wide { height: 30px; } }

.mega-nav { margin-left: auto; }
.mega-nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mega-nav-item { position: relative; }
.mega-nav-link {
    position: relative; display: block; padding: 8px 12px; border-radius: 6px;
    font-size: .94rem; font-weight: 500;
    color: var(--text);
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease;
}
.mega-nav-link:hover { color: var(--navy); background: var(--bg-alt); }
.mega-nav-link.active { color: var(--accent-ink); font-weight: 600; }
.mega-nav-link.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; background: var(--accent);
}

.mega-nav-dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
    padding: 6px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: .2s ease;
}
.has-dropdown:hover .mega-nav-dropdown,
.has-dropdown:focus-within .mega-nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.mega-nav-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: .92rem; }
.mega-nav-dropdown a:hover { background: var(--bg-alt); text-decoration: none; }

.site-header-actions { display: flex; align-items: center; gap: 10px; }
.header-login i { font-size: .9em; }
.mega-nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
    color: var(--navy); background: #fff; border: 1px solid var(--line-strong);
    font-size: 1.05rem; cursor: pointer;
}

@media (max-width: 960px) {
    .mega-nav-toggle { display: inline-grid; place-items: center; }
    .site-header-actions { margin-left: auto; }
    .mega-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        padding: 10px 16px 16px;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px -18px rgba(28,25,23,.35);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: .2s ease;
    }
    .mega-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .mega-nav-list { flex-direction: column; }
    .mega-nav-link { padding: 12px 10px; font-size: 1rem; }
    .mega-nav-link.active::after { display: none; }
    .mega-nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}
@media (max-width: 520px) {
    .header-cta { display: none; }
    .site-tagline { display: none; }
}

/* ---------- home hero ---------- */

.hero {
    position: relative;
    padding: calc(var(--header-h) + 72px) 0 88px;
    background:
        linear-gradient(180deg, rgba(246,247,249,0) 60%, #fff 100%),
        radial-gradient(900px 420px at 85% 0%, var(--accent-soft), transparent 70%),
        var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.14rem; max-width: 34em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; }
.hero-ticks li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text); }
.hero-ticks i { color: var(--green); }

@media (max-width: 960px) {
    .hero { padding: calc(var(--header-h) + 44px) 0 64px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) { .hero-lede { font-size: 1.04rem; } }

/* ---------- product illustrations ---------- */

/* Status chips shared by the dashboard and approval illustrations. */
.st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: .72em; font-weight: 600; white-space: nowrap; }
.st--ok { color: var(--green); background: var(--green-soft); }
.st--wait { color: var(--amber); background: var(--amber-soft); }
.st--back { color: var(--red); background: var(--red-soft); }

.browser {
    border-radius: 14px; overflow: hidden;
    background: #fff; border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span {
    margin-left: 10px; flex: 1; max-width: 260px; padding: 3px 12px; border-radius: 6px;
    font-size: .7rem; color: var(--muted); background: #fff; border: 1px solid var(--line);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-view { position: relative; aspect-ratio: 16 / 9.4; }
.browser-view > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.dash { position: absolute; inset: 0; display: grid; grid-template-columns: 30% 1fr; font-size: clamp(.58rem, 1.15vw, .78rem); line-height: 1.3; }
.dash-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--navy); color: var(--on-dark-muted); }
.dash-brand { display: flex; align-items: center; gap: 6px; padding: 2px 8px 12px; color: #fff; font-weight: 600; }
.dash-brand span { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.dash-side > span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.dash-side > span i { width: 12px; text-align: center; font-size: .9em; }
.dash-side > span.is-on { color: #fff; background: rgba(255,255,255,.1); }
.dash-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--bg-alt); min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; }
.dash-head small { display: block; color: var(--muted); }
.dash-head b { color: var(--navy); font-size: 1.25em; }
.dash-bell { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.dash-bell em { position: absolute; top: -4px; right: -5px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; font-style: normal; font-size: .75em; font-weight: 700; line-height: 14px; text-align: center; color: #fff; background: var(--accent-ink); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis div { padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.dash-kpis small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-kpis b { display: block; margin-top: 2px; font-size: 1.5em; color: var(--navy); }
.dash-kpis div:first-child { border-top: 2px solid var(--accent); }
.dash-table { border-radius: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; }
.dash-row + .dash-row { border-top: 1px solid var(--line); }
.dash-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row--head { color: var(--muted); font-weight: 600; background: var(--bg-alt); }

.approval {
    border-radius: 14px; overflow: hidden;
    background: #fff; border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    font-size: .9rem;
}
.approval-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.approval-head small { display: block; color: var(--muted); font-size: .8rem; }
.approval-head b { color: var(--navy); }
.approval-head .st { font-size: .76rem; }
.approval-grid { padding: 6px 18px; }
.approval-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; padding: 9px 0; }
.approval-row + .approval-row { border-top: 1px solid var(--line); }
.approval-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.approval-row--head { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.approval-row--head span:last-child { font-weight: 600; color: var(--muted); }
.approval-chain { list-style: none; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.approval-chain li { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.approval-chain li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: #fff; border: 1px solid var(--line-strong); color: var(--muted); }
.approval-chain b { display: block; color: var(--navy); font-size: .84rem; }
.approval-chain li.is-done i { background: var(--green); border-color: var(--green); color: #fff; }
.approval-chain li.is-now i { background: var(--amber-soft); border-color: #e5c96b; color: var(--amber); }
.approval-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.approval-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font-weight: 600; font-size: .84rem; color: var(--navy); border: 1px solid var(--line-strong); }
.approval-btn--primary { color: #fff; background: var(--green); border-color: var(--green); }
@media (max-width: 520px) {
    .approval-chain { grid-template-columns: 1fr; }
    .approval-head { flex-direction: column; }
}

/* A neutral chip for low-severity findings. */
.st--low { color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line); }

/* The chain of title in the hero's matter screen: deeds in date order,
   joined by a link (consistent) or a break (transferor doesn't match). */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.chain-doc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.chain-doc::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--green); z-index: 0; }
.chain-doc:first-child::before { display: none; }
.chain-doc.is-break::before { background: repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 9px); }
.chain-doc i { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: .9em; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line-strong); }
.chain-doc.is-break i { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.chain-doc b { color: var(--navy); font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chain-doc small { color: var(--muted); }

/* The finding's source text, beside the product_demo section. */
.finding-snippet { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .84rem; color: var(--muted); }
.finding-snippet small { display: block; margin-bottom: 4px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.finding-snippet mark { padding: 0 2px; border-radius: 3px; color: var(--navy); background: var(--red-soft); box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- opinion modules ---------- */

.module-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.module-card {
    grid-column: span 2;
    display: flex; flex-direction: column;
    padding: 26px 24px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
/* Five modules: three, then two centred. */
.module-card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.module-card.is-live { border-top: 3px solid var(--accent); }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.module-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 10px; font-size: 1.1rem; color: var(--accent-ink); background: var(--accent-soft);
}
.module-top .st { font-size: .74rem; }
.module-card h3 { margin-bottom: 6px; }
.module-question { margin: 0 0 10px; font-style: italic; color: var(--navy); font-size: .98rem; }
.module-question::before { content: "\201C"; }
.module-question::after { content: "\201D"; }
.module-card p { color: var(--muted); font-size: .96rem; }
.module-card .text-link { margin-top: auto; }
@media (max-width: 960px) {
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-card, .module-card:nth-child(4):nth-last-child(2) { grid-column: auto; }
}
@media (max-width: 600px) { .module-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- clauses ----------
   A *_clause section reads like a paragraph of an opinion: the clause
   label sits in the margin above a gold rule, the body carries the
   heading and prose, and its items are lettered sub-points (a), (b)… */

.clause-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.clause-margin { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 14px; border-top: 2px solid var(--accent); }
.clause-label {
    margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .8rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.clause-body { max-width: 760px; }
.clause-body h2 { margin-bottom: 18px; }
.clause-points { list-style: none; counter-reset: clause; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.clause-points li {
    counter-increment: clause;
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 4px;
    padding: 16px 0; border-top: 1px solid var(--line);
}
.clause-points li:last-child { border-bottom: 1px solid var(--line); }
.clause-points li::before {
    content: "(" counter(clause, lower-alpha) ")";
    grid-column: 1; grid-row: 1 / span 3;
    font-family: var(--font-display); font-weight: 600; color: var(--accent-ink);
}
.clause-points li > * { grid-column: 2; }
.clause-points strong { font-weight: 600; color: var(--navy); }
.clause-points p { margin: 0; color: var(--muted); font-size: .98rem; }
.clause-points .text-link { justify-self: start; margin-top: 4px; font-size: .94rem; }
/* The arrow comes from CSS, so the inline editor saves the link text alone. */
.clause-points .text-link::after { content: "\2192"; margin-left: 6px; }
@media (max-width: 860px) {
    .clause-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .clause-margin { position: static; max-width: 200px; }
}

/* The footer's "a tool for advocates, not legal advice" line. */
.site-footer .footer-disclaimer { font-size: .82rem; line-height: 1.5; color: var(--on-dark-muted); max-width: 34ch; }

/* ---------- strip ---------- */

.strip { padding: 22px 0; background: #fff; border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 32px; }
.strip-label { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.strip-list li { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--navy); }
.strip-list i { color: var(--accent-ink); }

/* ---------- sections ---------- */

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 40px 0; }
.band:nth-of-type(odd) { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.section-head--row > div { max-width: 680px; }
.section-lede { font-size: 1.08rem; color: var(--muted); }
.dark .section-lede { color: var(--on-dark-muted); }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.section-head--row .section-actions { margin-top: 0; }

@media (max-width: 760px) {
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
}

/* ---------- benefits ---------- */

.benefits { counter-reset: benefit; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.benefit-card {
    counter-increment: benefit; position: relative;
    padding: 28px 26px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.benefit-num::before {
    content: "0" counter(benefit);
    position: absolute; top: 22px; right: 24px;
    font-size: .9rem; font-weight: 700; color: var(--line-strong);
}
.benefit-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px; color: var(--accent-ink); background: var(--accent-soft); }
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { margin: 0; color: var(--muted); }
.benefits-cta { display: flex; justify-content: center; margin-top: 36px; }
.benefits-cta .section-actions { margin-top: 0; }

/* ---------- feature cards ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid--bento { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.feature-card h3 { margin: 16px 0 6px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: grid; place-items: center; font-size: 1.1rem;
    color: var(--accent-ink); background: var(--accent-soft);
}

@media (max-width: 1024px) { .feature-grid--bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid, .feature-grid--bento { grid-template-columns: 1fr; } }

/* ---------- product demo ---------- */

.demo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.ticklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.ticklist i {
    flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    display: grid; place-items: center; font-size: .66rem; color: #fff; background: var(--green);
}
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- steps (navy band) ---------- */

.steps-band { background: var(--dark-surface); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
/* Six steps read better as two rows of three than as four and two. */
@media (min-width: 961px) { .steps:has(> .step:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); } }
.step {
    counter-increment: step;
    position: relative;
    padding: 26px 22px;
    border-radius: var(--radius);
    background: var(--navy-2);
    border: 1px solid var(--dark-line);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-num::before {
    content: "Step " counter(step);
    font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-on-dark);
}
.step-icon {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); color: #fff;
}
.step h3 { color: #fff; font-size: 1.2rem; }
.step p { margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- showcase ---------- */

.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.showcase-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.showcase-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.showcase-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-mock { position: absolute; inset: 0; padding: 20px 26px 0; background: var(--bg-alt); }
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; border-radius: 10px 10px 0 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.shot-body { height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.shot-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-soft); }
.shot-line { height: 8px; width: 55%; border-radius: 4px; background: var(--line); }
.shot-line--lg { height: 14px; width: 75%; background: var(--navy); }
.shot-btn { width: 100px; height: 20px; border-radius: 6px; background: var(--accent-ink); }
.shot-tiles { display: none; }
.showcase-body { padding: 24px 26px 28px; }
.showcase-body h3 { font-size: 1.3rem; }
.showcase-body p { color: var(--muted); }
@media (max-width: 760px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ---------- compare ---------- */

.compare-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.compare { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; align-items: stretch; }
.compare-row > span { padding: 14px 18px; display: flex; align-items: center; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row--head { font-weight: 700; font-size: .84rem; letter-spacing: .02em; background: var(--bg-alt); color: var(--muted); }
.compare-row--head .compare-us { color: #fff; background: var(--navy); }
.compare-row > span:first-child { font-weight: 600; color: var(--navy); }
.compare-them, .compare-us { gap: 10px; font-size: .94rem; }
.compare-them { color: var(--muted); }
.compare-them i { color: var(--line-strong); }
.compare-them.is-no i { color: var(--red); }
.compare-them.is-yes i { color: var(--green); }
.compare-row:not(.compare-row--head) .compare-us { background: var(--green-soft); font-weight: 600; color: var(--text); }
.compare-us.is-yes i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .62rem; background: var(--green); }
@media (max-width: 960px) { .compare-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
    .compare-row { grid-template-columns: 1fr 1fr; }
    .compare-row > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; }
    .compare-row--head > span:first-child { display: none; }
    .compare-row > span { padding: 10px 12px; font-size: .86rem; }
}

/* ---------- split ---------- */

.split-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split + .split .split-media { order: 2; }
.split-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.prose { color: var(--muted); font-size: 1.04rem; white-space: pre-wrap; }
.prose strong { color: var(--navy); }

.split-panel {
    position: relative; height: 100%; min-height: 340px;
    display: grid; place-items: center;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 88px, rgba(28,25,23,.06) 89px 90px, transparent 91px 150px, rgba(28,25,23,.05) 151px 152px, transparent 153px),
        linear-gradient(160deg, #fff, var(--bg-alt));
}
.band:nth-of-type(odd) .split-panel { background:
        radial-gradient(circle at 50% 50%, transparent 0 88px, rgba(28,25,23,.06) 89px 90px, transparent 91px 150px, rgba(28,25,23,.05) 151px 152px, transparent 153px),
        #fff; }
/* .split-media scoping outranks ".split-media img", which would stretch
   the logo to fill the panel like a photo. */
.split-media .split-panel-logo { width: 112px; height: 112px; object-fit: contain; border-radius: 26px; box-shadow: var(--shadow-lg); }
.split-panel-icon {
    width: 112px; height: 112px; border-radius: 26px; display: grid; place-items: center;
    font-size: 2.8rem; color: #fff; background: var(--navy); box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .split-grid { grid-template-columns: 1fr; gap: 36px; }
    .split + .split .split-media { order: 0; }
    .split-panel { min-height: 240px; }
}

/* ---------- checklist, icons, cards ---------- */

.aside-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.aside-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .aside-layout { grid-template-columns: 1fr; gap: 8px; } .aside-layout .section-head { position: static; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line);
}
.check-icon { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--green); }
.checklist strong { display: block; font-weight: 600; color: var(--navy); }
.checklist-note { display: block; color: var(--muted); font-size: .95rem; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
/* A lone card (e.g. a one-item roadmap) stays card-sized and centred. */
.icon-grid > .icon-card:only-child { width: 100%; max-width: 420px; justify-self: center; }
.icon-card {
    padding: 26px 24px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.icon-card-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    border-radius: 10px; font-size: 1.1rem; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line);
}
.icon-card-meta {
    display: inline-block; margin: -2px 0 10px; padding: 2px 9px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-ink); background: var(--accent-soft);
}
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 22px; }
.card-body p { color: var(--muted); }

.notice { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.notice-icon { font-size: 1.2rem; color: var(--accent-ink); }
.notice-title { font-size: 1.12rem; }

.content-block h2 { font-size: 1.4rem; }
.section--prose { padding: 32px 0; }
.section--prose:first-of-type { padding-top: 72px; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 10px; }
.faq { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease; }
.faq[open] { border-color: var(--line-strong); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; cursor: pointer; list-style: none;
    font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
    flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font-size: .72rem; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line);
    transition: transform .2s ease;
}
.faq[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); white-space: pre-wrap; }

/* ---------- CTA banner ---------- */

.cta-banner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: 48px 52px; border-radius: 16px; color: #fff;
    background: var(--dark-surface);
    border-top: 3px solid var(--accent);
}
.cta-copy { max-width: 620px; }
.cta-copy h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-copy p { color: var(--on-dark-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-banner { padding: 34px 24px; } }

/* ---------- enquiry ---------- */

.enquiry { background: var(--dark-surface); }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-list a { color: #fff; font-weight: 600; }
.contact-icon {
    flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); color: #fff;
}

.enquiry-form {
    display: grid; gap: 16px;
    padding: 30px; border-radius: 14px;
    background: #fff; color: var(--text);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquiry-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
    font: inherit; font-size: .96rem; font-weight: 400; color: var(--text);
    background: #fff; border: 1px solid var(--line-strong);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form input::placeholder, .enquiry-form textarea::placeholder { color: #8a93a3; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
    outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(184,134,43,.22);
}
.enquiry-form .form-hint, .enquiry-form .form-note { margin: 0; text-align: center; font-size: .86rem; color: var(--muted) !important; }
.enquiry-form .form-note { color: var(--green) !important; font-weight: 600; }
.enquiry-form .form-note.is-error { color: #b42318 !important; }
.enquiry-form.is-sent > :not(.form-note) { display: none; }
.enquiry-form.is-sent .form-note { padding: 28px 0; font-size: 1.02rem; }
.enquiry-form .form-captcha { min-height: 65px; }
@media (max-width: 900px) { .enquiry-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .enquiry-form { padding: 22px 18px; } }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
    padding: calc(var(--header-h) + 72px) 0 72px;
    background:
        radial-gradient(800px 360px at 90% 0%, var(--accent-soft), transparent 70%),
        var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.page-hero-copy { max-width: 800px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero-lede { font-size: 1.14rem; max-width: 40em; color: var(--muted); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero-lede { margin-inline: auto; }
.page-hero--center .hero-actions { justify-content: center; }
.page-hero--full { min-height: 80vh; display: grid; place-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: .88rem; color: var(--muted); }
.breadcrumb i { font-size: .6rem; }
@media (max-width: 760px) { .page-hero { padding: calc(var(--header-h) + 44px) 0 52px; } }

/* ---------- testimonials ---------- */

.testimonial-slider { position: relative; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; margin: 0; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.testimonial blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.testimonial-name { display: block; font-weight: 600; color: var(--navy); }
.testimonial-role { color: var(--muted); font-size: .9rem; }
.slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); cursor: pointer; }
.slider-btn:hover { border-color: var(--navy); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-3); color: var(--on-dark-muted); padding: 72px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; text-decoration: none !important; }
.footer-brand img { border-radius: 9px; }
.footer-brand .footer-logo-wide { display: block; height: 40px; width: auto; border-radius: 0; }
/* Inline beside their "A product of" / "Powered by" words — every other
   img on the site is a block. An inline image sits on the text baseline
   by its bottom edge, so each is lowered by the depth of its own wordmark
   baseline (measured from the logo artwork: 15% of the Vidyadhari AI
   logo's height, below the "y" descender; 42% of the CodeLipi logo's,
   below its "by Vidyadhari AI" line). That puts the logo's letters on the
   same line as the words beside them. */
.footer-company-logo { display: inline-block; height: 23px; width: auto; margin-left: 6px; vertical-align: -3.5px; }
.footer-product-logo { display: inline-block; height: 24px; width: auto; margin-left: 4px; vertical-align: -10px; }
.footer-brand b { font-weight: 700; color: var(--accent-on-dark); }
.footer-about p { max-width: 360px; }
.footer-company strong { color: #fff; }
.footer-column h3 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-column a { color: var(--on-dark-muted); }
.footer-column a:hover { color: #fff; }
.footer-line { display: flex; align-items: center; gap: 12px; }
.footer-line i { color: var(--accent-on-dark); width: 16px; }
.footer-cta { margin-top: 8px; color: #fff !important; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); }
.footer-social a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid var(--dark-line); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--on-dark-muted); }
.footer-product { width: 100%; text-align: center; opacity: .7; font-size: .78rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: #25d366; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
}
.whatsapp-float:hover { text-decoration: none; }

.empty-state { color: var(--muted); }

/* ---------- scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- admin edit mode ---------- */

body.wp-edit-mode .reveal { opacity: 1 !important; transform: none !important; }
body.wp-edit-mode .site-header { position: absolute; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Grid children default to min-width: auto, so an illustration's
   no-wrap text could stretch a column past a phone's width. */
.hero-grid > *, .demo-grid > *, .split-grid > *, .compare-layout > *,
.enquiry-grid > *, .aside-layout > *, .feature-grid > *, .steps > * { min-width: 0; }
