/* Island Legal Technologies — site styles.
   Design tokens are lifted from the JurisLit landing page (staging.jurislit.com/home.html)
   so the company site and the product read as one family. Change them here, not inline. */
:root {
    --bg: #0f172a;
    --panel: #1e293b;
    --line: #334155;
    --line-soft: #1e293b;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --faint: #64748b;
    --white: #fff;
    --accent: #2EA3F2;
    --accent-hover: #1e8fd8;
    --trial: #ff9f40;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
/* Full-bleed header bar: company far left, nav right. JurisLit sits below it (.product-banner). */
.site-header .wrap {
    max-width: none; padding: 12px 28px;
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px;
}
.site-header .brand { justify-self: start; }
/* Company name in the header bar: smaller than the footer's, so JurisLit below carries the weight. */
.site-header .brand .name { font-size: 14px; }
.site-header .brand .name small { font-size: 9px; margin-top: 4px; }
.site-header .ilt-logo { width: 38px; height: 38px; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
/* JurisLit, centred on its own row just under the header bar, ahead of the page content. */
.product-banner { display: flex; justify-content: center; padding-top: 64px; }
.product-brand { display: flex; align-items: center; gap: 16px; color: var(--white); }
.product-brand .mark {
    width: 76px; height: 76px; border-radius: 17px;
    font-weight: 800; color: var(--white); letter-spacing: 1px; font-size: 33px;
}
.product-brand .name { font-size: 46px; font-weight: 800; letter-spacing: -0.01em; }
.product-brand:hover .mark { background: var(--accent-hover); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.mark {
    width: 38px; height: 38px; background: var(--accent); border-radius: 9px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* The scales from the existing ILT favicon, knocked out to white. */
.mark img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.brand .name { font-size: 17px; font-weight: 700; line-height: 1.15; }
.brand .name small { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
/* Island Scales mark: drawn for dark backgrounds, so no tile behind it. */
.ilt-logo { width: 46px; height: 46px; flex-shrink: 0; }
footer .ilt-logo { width: 40px; height: 40px; }
.foot-grid a.brand { display: flex; margin-bottom: 0; }
.spacer { flex: 1; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
    color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a.active { color: var(--white); background: var(--panel); }
.menu-btn {
    display: none; background: transparent; border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; width: 40px; height: 40px; cursor: pointer; font-size: 18px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block; padding: 10px 22px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #475569;
    color: var(--text); background: transparent; font-family: inherit; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { text-align: center; padding: 44px 0 40px; }
.eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
    font-size: 44px; font-weight: 800; color: var(--white); line-height: 1.12;
    max-width: 780px; margin: 0 auto 18px;
}
.hero h1 span, .section-head h2 span { color: var(--accent); }
/* A section label promoted to a title: shown as typed, not in small caps. */
.eyebrow-lg { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; text-transform: none; margin-bottom: 10px; }
.hero p.sub { font-size: 17px; color: var(--muted); max-width: 650px; margin: 0 auto 32px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 12px; color: var(--faint); }
/* Option B: no hero, so the trial/demo buttons sit under the product cards. */
.products-cta { margin-top: 38px; text-align: center; }
/* Option B opens on the products, so they sit closer under the JurisLit banner. */
section.block.products-first { padding-top: 68px; }
.products-cta .note { margin-top: 14px; font-size: 12px; color: var(--faint); }

.hero-shot {
    margin: 48px auto 0; max-width: 920px;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--panel); padding: 10px;
    box-shadow: 0 30px 80px -30px rgba(46, 163, 242, 0.35);
}
.hero-shot img { border-radius: 6px; }

/* ── Sections ───────────────────────────────────────────── */
section.block { padding: 72px 0 0; }
.section-head { margin-bottom: 26px; }
.section-head.center { text-align: center; }
.section-head h2 { color: var(--white); font-size: 28px; line-height: 1.2; margin-bottom: 10px; }
.section-head p { font-size: 15px; color: var(--muted); max-width: 700px; }
.section-head.center p { margin: 0 auto; }

/* Product doors — modelled on the JurisLit product picker: tall navy cards, blue badges for
   the browser products, orange for the native/trial side, purple for JurisAdmin, which sits
   centred on its own row beneath. */
.picker {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.pdoor {
    display: flex; flex-direction: column; text-align: left; min-height: 300px;
    font: inherit; color: var(--text); cursor: pointer;
    background: #16213e; border: 1px solid #0f3460; border-radius: 8px; padding: 28px 22px 22px;
    transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.pdoor:hover, .pdoor:focus-visible {
    border-color: #4da6ff; transform: translateY(-2px); outline: none;
    box-shadow: 0 16px 34px -18px rgba(77, 166, 255, 0.55);
}
.pdoor .badge, .pdialog .badge {
    font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    color: #4da6ff; margin-bottom: 14px;
}
.pdoor .h { font-size: 19px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.pdoor .p { font-size: 13.5px; color: #aab4c5; line-height: 1.6; flex: 1; }
.pdoor .more { margin-top: 18px; font-size: 12.5px; font-weight: 600; color: #4da6ff; opacity: 0.75; }
.pdoor:hover .more { opacity: 1; }
.pdoor .sold-sep {
    align-self: flex-start; margin-top: 12px; padding: 2px 8px; border-radius: 4px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--trial); background: rgba(255, 159, 64, 0.12);
}
.pd-body .sold-sep-note { margin-top: 12px; font-size: 13.5px; color: var(--text); }
.pd-body .sold-sep-note b { color: var(--trial); }
.pd-actions [hidden] { display: none; }
.pdoor-native { border-color: rgba(255, 159, 64, 0.3); }
.pdoor-native:hover, .pdoor-native:focus-visible { border-color: rgba(255, 159, 64, 0.7); box-shadow: 0 16px 34px -18px rgba(255, 159, 64, 0.5); }
.pdoor-native .badge, .pdoor-native .more, .pdialog.native .badge { color: var(--trial); }
.pdoor-admin {
    grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 380px; min-height: 0;
    border-color: rgba(168, 85, 247, 0.35);
}
.pdoor-admin:hover, .pdoor-admin:focus-visible { border-color: rgba(168, 85, 247, 0.75); box-shadow: 0 16px 34px -18px rgba(168, 85, 247, 0.5); }
.pdoor-admin .badge, .pdoor-admin .more, .pdialog.admin .badge { color: #c084fc; }

/* Product detail popout. */
.pdialog {
    width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
    margin: auto; padding: 0; overflow: hidden;
    background: var(--panel); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}
.pdialog[open] { display: flex; flex-direction: column; animation: pd-in 0.18s ease-out; }
.pdialog::backdrop { background: rgba(8, 12, 24, 0.75); backdrop-filter: blur(3px); }
@keyframes pd-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.pd-body { padding: 30px 32px 8px; overflow-y: auto; }
.pd-body h2 { color: var(--white); font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.pd-body .lead { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.pd-body h3 { color: var(--white); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 18px 0 10px; }
.pd-body .checks li { font-size: 14px; }
.pd-body .checks li b { color: var(--white); font-weight: 600; }
.pd-body .fine { margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.pd-shot { width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 6px; }
.pdialog.native .checks li::before { border-color: var(--trial); }
.pdialog.admin .checks li::before { border-color: #c084fc; }
.pd-actions {
    display: flex; gap: 12px; flex-wrap: wrap; padding: 18px 32px 24px;
    border-top: 1px solid var(--line); background: rgba(15, 23, 42, 0.4);
}
.pd-close {
    position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 8px;
    font-size: 24px; line-height: 1; color: var(--muted); background: transparent; border: 0; cursor: pointer;
}
.pd-close:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 640px) {
    .pd-body { padding: 26px 20px 6px; }
    .pd-actions { padding: 16px 20px 20px; }
    .pd-body h2 { font-size: 22px; }
    .pdoor { min-height: 0; }
}

.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px;
}
.tag {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.trial-accent .tag { color: var(--trial); }
.card h3 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--muted); }
.doors-foot { text-align: center; margin-top: 26px; }

/* Feature rows — screenshot beside copy, alternating sides. */
.feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
    padding: 36px 0; border-top: 1px solid var(--line-soft);
}
.feature:first-of-type { border-top: 0; }
.feature.flip .shot { order: 2; }
.shot {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; overflow: hidden;
}
.shot img { border-radius: 6px; }
.shot.bare { background: transparent; border: 0; padding: 0; }
/* The feature rows break out of the 1040px column so the screenshots render larger —
   they are ~1920px captures, and at half of 1040 their interface text turned to grain. */
.features-wide, .wide {
    width: min(1240px, calc(100vw - 48px));
    margin-left: calc(50% - min(620px, 50vw - 24px));
}
.features-wide .feature { grid-template-columns: 3fr 2fr; gap: 40px; }
.features-wide .feature.flip { grid-template-columns: 2fr 3fr; }
.zoomable { cursor: zoom-in; }

/* Lightbox for full-resolution screenshots. */
.lightbox {
    position: fixed; inset: 0; z-index: 100; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(8, 12, 24, 0.92); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox .close {
    position: absolute; top: 16px; right: 20px; font-size: 30px; line-height: 1;
    color: var(--muted); background: none; border: 0; cursor: pointer;
}
.lightbox .close:hover { color: var(--white); }

/* Two screenshots stacked one above the other, no overlap. */
.shot-stack { display: grid; gap: 14px; }
.feature h3 { color: var(--white); font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.feature .fine { font-size: 12px; color: var(--faint); }
.checks { list-style: none; display: grid; gap: 7px; margin-bottom: 4px; }
.checks li { font-size: 13.5px; color: var(--text); padding-left: 24px; position: relative; }
.checks li::before {
    content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.trial-accent .checks li::before { border-color: var(--trial); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.service { display: flex; flex-direction: column; gap: 8px; }
.service .num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.service h3 { margin: 0; }

/* Stats */
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--panel);
}
.stat { padding: 28px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font-size: 40px; font-weight: 800; color: var(--white); line-height: 1; }
.stat .n span { color: var(--accent); }
.stat .l { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Founder */
.founder { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.founder blockquote {
    font-size: 17px; line-height: 1.7; color: var(--text);
    border-left: 2px solid var(--accent); padding: 4px 0 4px 22px;
}
.signature { width: 190px; margin: 18px 0 2px 22px; filter: invert(1) brightness(1.6); opacity: 0.9; }
.byline { margin-left: 22px; font-size: 13px; color: var(--muted); }
.byline b { color: var(--white); font-weight: 600; }

/* Contact band */
.contact {
    margin-top: 80px; text-align: center; padding: 48px 28px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact h2 { color: var(--white); font-size: 28px; margin-bottom: 10px; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.contact-lines { display: flex; gap: 10px 28px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 14px; }
.contact-lines a { color: var(--text); }
.contact-lines a:hover { color: var(--accent); }
.contact-lines span { color: var(--faint); margin-right: 6px; }

/* ── Knowledge base ─────────────────────────────────────── */
.kb-hero { padding-top: 44px; padding-bottom: 34px; }
.kb-search {
    position: relative; max-width: 520px; margin: 0 auto;
}
.kb-search svg { position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); }
.kb-search input {
    width: 100%; padding: 13px 16px 13px 44px; font: inherit; font-size: 15px;
    color: var(--white); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.kb-search input:focus { border-color: var(--accent); }
.kb-search input::placeholder { color: var(--faint); }
.kb-empty { margin-top: 18px; color: var(--muted); font-size: 14px; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px auto 0; max-width: 900px; }
.kb-chip {
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    padding: 7px 14px; border-radius: 999px;
    color: var(--muted); background: transparent; border: 1px solid var(--line);
}
.kb-chip span { margin-left: 4px; font-size: 11px; color: var(--faint); }
.kb-chip:hover { color: var(--white); border-color: #475569; }
.kb-chip.active { color: var(--white); background: rgba(46, 163, 242, 0.14); border-color: var(--accent); }
.kb-chip.active span { color: var(--accent); }
.kb-group { margin-bottom: 30px; }
/* A product with a single category shouldn't sit in half the width with nothing beside it. */
.kb-grid:has(> .kb-cat:only-child) { columns: 1; }
.kb-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.kb-group-head h2 { color: var(--white); font-size: 20px; }
.kb-group-head p { font-size: 13px; color: var(--faint); }
.kb-grid { columns: 2 420px; column-gap: 18px; }
.kb-cat { break-inside: avoid; margin-bottom: 18px; padding: 20px 20px 10px; }
.kb-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.kb-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    background: rgba(46, 163, 242, 0.12); display: flex; align-items: center; justify-content: center;
}
.kb-icon svg { width: 18px; height: 18px; fill: var(--accent); }
.kb-head h2 { color: var(--white); font-size: 16px; line-height: 1.2; }
.kb-head .count { font-size: 11px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.article { border-top: 1px solid var(--line); }
.article summary {
    list-style: none; cursor: pointer; padding: 12px 4px 12px 26px; position: relative;
    color: var(--text); font-size: 14px; font-weight: 600;
}
.article summary::-webkit-details-marker { display: none; }
.article summary::before {
    content: ''; position: absolute; left: 6px; top: 19px; width: 7px; height: 7px;
    border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
    transform: rotate(-45deg); transition: transform 0.15s ease;
}
.article[open] summary::before { transform: rotate(45deg); top: 16px; border-color: var(--accent); }
.article summary:hover, .article[open] summary { color: var(--white); }
.article-body { padding: 0 4px 18px 26px; font-size: 13.5px; color: var(--muted); }
.article-body h4 { color: var(--white); font-size: 14px; margin: 16px 0 6px; }
.article-body p { margin-bottom: 8px; }
.article-body ol, .article-body ul { margin: 0 0 10px 20px; }
.article-body li { margin-bottom: 4px; }
.article-body strong { color: var(--text); }
.article-body .step-label {
    display: inline-block; margin-top: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--accent); background: rgba(46, 163, 242, 0.12); padding: 2px 8px; border-radius: 4px;
}
.article-body .step-label + h4 { margin-top: 6px; }
.shots-label { margin: 14px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.shots a { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.shots a:hover { border-color: var(--accent); }
.shots img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--line-soft); margin-top: 70px; padding: 30px 0 40px;
    font-size: 12px; color: var(--faint);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.foot-grid h4 { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.foot-grid a { display: block; color: var(--muted); margin-bottom: 6px; font-size: 13px; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .about { font-size: 13px; color: var(--faint); max-width: 300px; margin-top: 12px; }
.copyright { text-align: center; border-top: 1px solid var(--line-soft); padding-top: 20px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px; }
    .menu-btn { display: block; }
    .site-header .wrap { position: relative; }
}
@media (max-width: 860px) {
    .feature, .founder,
    .features-wide .feature, .features-wide .feature.flip { grid-template-columns: 1fr; gap: 24px; }
    .feature.flip .shot { order: 0; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .stats { grid-template-columns: 1fr; }
    .stat { border-left: 0; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: 0; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero { padding-top: 32px; }
    .hero h1 { font-size: 31px; }
    .brand .name small { display: none; }
    .header-cta { display: none; }
    .site-header .wrap { padding: 10px 16px; gap: 10px; }
    .product-banner { padding-top: 38px; }
    .product-brand .mark { width: 48px; height: 48px; font-size: 21px; border-radius: 11px; }
    .product-brand .name { font-size: 29px; }
}

