/* ==========================================================================
   zoomLaw landing page
   Draws every colour from site-tokens.css (--zl-*). Serif for display type,
   Inter for everything else. Two families of "specimen" components imitate
   the real reader and case pages so the page shows the product rather than
   describing it.
   ========================================================================== */

:root {
    --zl-serif: var(--zl-font-serif, "Source Serif 4", Georgia, "Times New Roman", serif);
    --zl-max: 1180px;
}

/* Neutralise the generic page chrome the base template wraps around every page. */
body.zl-landing > header {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
}
body.zl-landing > header > .container,
body.zl-landing > main > .container {
    max-width: none;
    padding: 0;
}
body.zl-landing > main {
    padding-top: 0 !important;
}

.zl-wrap {
    max-width: var(--zl-max);
    margin: 0 auto;
    padding-inline: 1.25rem;
}
.zl-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ---------- type ---------- */
.zl-eyebrow {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--zl-muted);
    margin: 0 0 .75rem;
}
.zl-landing h2 {
    font-family: var(--zl-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--zl-ink);
    margin: 0 0 .75rem;
}
.zl-landing h3 {
    font-family: var(--zl-serif);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
    line-height: 1.2;
    color: var(--zl-ink);
    margin: 0 0 .75rem;
}
.zl-section-head {
    max-width: 44rem;
    margin: 0 0 2.5rem;
}
.zl-section-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--zl-muted);
    margin: 0;
}
.zl-muted { color: var(--zl-muted); }

/* ---------- hero ---------- */
.zl-hero {
    background:
        radial-gradient(60rem 30rem at 85% -10%, var(--zl-accent-soft), transparent 60%),
        var(--zl-surface);
    border-bottom: 1px solid var(--zl-border);
}
.zl-hero-grid {
    max-width: var(--zl-max);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
@media (min-width: 992px) {
    .zl-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 4rem; }
}
.zl-hero-title {
    font-family: var(--zl-serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.015em;
    color: var(--zl-ink);
    margin: 0 0 1.1rem;
    text-wrap: balance;
}
.zl-hero-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--zl-muted);
    max-width: 36rem;
    margin: 0 0 1.75rem;
}
.zl-hero-search {
    display: flex;
    max-width: 36rem;
    border: 1px solid var(--zl-border);
    border-radius: 10px;
    background: var(--zl-surface);
    box-shadow: 0 1px 2px rgb(23 32 51 / 6%);
    overflow: hidden;
}
.zl-hero-search:focus-within {
    border-color: var(--zl-accent);
    box-shadow: 0 0 0 3px var(--zl-accent-soft);
}
.zl-hero-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--zl-ink);
    font: inherit;
    font-size: 1rem;
    padding: .85rem 1rem;
    outline: 0;
}
.zl-hero-search input::placeholder { color: var(--zl-muted); opacity: .8; }
.zl-hero-search button {
    border: 0;
    background: var(--zl-accent);
    color: var(--zl-on-accent);
    font: inherit;
    font-weight: 600;
    padding: 0 1.4rem;
    cursor: pointer;
}
.zl-hero-search button:hover { background: var(--zl-accent-hover); }
.zl-hero-try {
    margin: .85rem 0 0;
    font-size: .85rem;
    color: var(--zl-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
}
.zl-hero-try a { color: var(--zl-ink); text-decoration: none; border-bottom: 1px solid var(--zl-border); }
.zl-hero-try a:hover { color: var(--zl-accent); border-color: var(--zl-accent); }
.zl-hero-links {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.zl-hero-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--zl-ink);
    text-decoration: none;
    border: 1px solid var(--zl-border);
    border-radius: 999px;
    padding: .4rem .95rem;
    background: var(--zl-surface);
}
.zl-hero-links a:hover { border-color: var(--zl-accent); color: var(--zl-accent); }

/* ---------- specimen: a section of an Act ---------- */
.zl-specimen {
    position: relative;
    margin: 0;
    padding-bottom: 4.5rem;
}
.zl-specimen figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: .78rem;
    color: var(--zl-muted);
}
.zl-spec-card {
    background: var(--zl-surface);
    border: 1px solid var(--zl-border);
    border-radius: 12px;
    padding: 1.25rem 1.4rem 4.25rem;
    box-shadow: 0 12px 32px rgb(23 32 51 / 8%);
    font-size: .93rem;
    line-height: 1.6;
    color: var(--zl-ink);
}
.zl-spec-chips {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .9rem;
}
.zl-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 4px;
    background: var(--zl-soft);
    border: 1px solid var(--zl-border);
    border-left-width: 3px;
    line-height: 1.5;
}
.zl-chip b { font-weight: 700; letter-spacing: 0; }
.zl-chip-case { color: var(--zl-marker-case, #1f4e8c); border-left-color: var(--zl-marker-case, #1f4e8c); }
.zl-chip-si   { color: var(--zl-marker-si, #8a2a2a);   border-left-color: var(--zl-marker-si, #8a2a2a); }
.zl-chip-note { color: var(--zl-marker-note, #2e6b3a); border-left-color: var(--zl-marker-note, #2e6b3a); }
.zl-chip.is-on { background: var(--zl-accent-soft); }
.zl-spec-status {
    margin-left: auto;
    font-size: .74rem;
    color: var(--zl-positive, #1f7a4d);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.zl-spec-status i {
    width: .5rem; height: .5rem; border-radius: 50%;
    background: var(--zl-positive, #1f7a4d);
}
.zl-spec-heading {
    font-weight: 700;
    margin: 0 0 .5rem;
}
.zl-spec-num { display: inline-block; min-width: 1.4rem; }
.zl-spec-sub { font-weight: 600; margin-right: .25rem; }
.zl-spec-text { margin: 0 0 .5rem; }
.zl-spec-text:last-child { margin-bottom: 0; }
.zl-landing dfn {
    font-style: italic;
    color: var(--zl-defined-ink, #244c40);
    text-decoration: underline dotted var(--zl-defined-underline, rgba(25,87,68,.55));
    text-underline-offset: .18em;
    cursor: help;
}
.zl-landing dfn.is-hover {
    background: var(--zl-defined-wash, rgba(36,143,111,.18));
    border-radius: 2px;
}
.zl-spec-def {
    position: absolute;
    right: -.75rem;
    bottom: 2.25rem;
    width: min(78%, 22rem);
    background: var(--zl-surface);
    border: 1px solid var(--zl-border);
    border-left: 3px solid var(--zl-defined-ink, #244c40);
    border-radius: 8px;
    padding: .8rem .95rem;
    box-shadow: 0 16px 40px rgb(23 32 51 / 16%);
    font-size: .82rem;
    line-height: 1.5;
}
.zl-spec-def-head {
    margin: 0 0 .3rem;
    color: var(--zl-defined-ink, #244c40);
    font-weight: 600;
}
.zl-spec-def-body { margin: 0; color: var(--zl-ink); }
@media (max-width: 575.98px) {
    .zl-spec-def { position: static; width: auto; margin-top: .75rem; }
    .zl-spec-card { padding-bottom: 1.4rem; }
    .zl-specimen { padding-bottom: 2rem; }
}

/* ---------- stats ---------- */
.zl-stats {
    border-bottom: 1px solid var(--zl-border);
    background: var(--zl-surface);
}
.zl-stats dl {
    max-width: var(--zl-max);
    margin: 0 auto;
    padding: 1.25rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
}
@media (min-width: 768px) { .zl-stats dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zl-stats dt {
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--zl-muted);
    font-weight: 600;
    margin-bottom: .15rem;
}
.zl-stats dd {
    font-family: var(--zl-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--zl-ink);
    margin: 0;
    letter-spacing: -.01em;
}

/* ---------- features ---------- */
.zl-features {
    max-width: var(--zl-max);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5.5rem) 1.25rem 2rem;
}
.zl-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--zl-border);
}
@media (min-width: 900px) {
    .zl-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; padding: 3.5rem 0; }
    .zl-feature-flip .zl-feature-copy { order: 2; }
}
.zl-feature-kicker {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--zl-accent);
    margin: 0 0 .6rem;
}
.zl-feature-copy p { color: var(--zl-muted); line-height: 1.65; font-size: 1rem; }
.zl-feature-points {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.zl-feature-points li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: .45rem;
    color: var(--zl-ink);
    font-size: .95rem;
    line-height: 1.5;
}
.zl-feature-points li::before {
    content: "";
    position: absolute;
    left: 0; top: .6rem;
    width: .45rem; height: .45rem;
    border-radius: 50%;
    background: var(--zl-accent);
}

/* mini specimens used in feature rows */
.zl-mini {
    background: var(--zl-surface);
    border: 1px solid var(--zl-border);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 8px 24px rgb(23 32 51 / 6%);
    font-size: .9rem;
    color: var(--zl-ink);
}
.zl-mini-title {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--zl-muted);
    margin: 0 0 .6rem;
}
.zl-mini-table { width: 100%; border-collapse: collapse; }
.zl-mini-table td { padding: .5rem 0; border-top: 1px solid var(--zl-border); }
.zl-mini-table tr:first-child td { border-top: 0; }
.zl-mini-table td:nth-child(2) { font-weight: 600; text-align: right; padding-right: 1rem; }
.zl-mini-table td:nth-child(3) { text-align: right; font-size: .82rem; }

.zl-mini-case-name { font-family: var(--zl-serif); font-size: 1.05rem; font-weight: 600; margin: 0 0 .15rem; line-height: 1.3; }
.zl-mini-case-cite { color: var(--zl-muted); font-size: .85rem; margin: 0 0 .8rem; }
.zl-pills { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1.1rem; }
.zl-pill-total { font-weight: 600; font-size: .9rem; margin-right: .2rem; }
.zl-pill {
    font-size: .74rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.zl-pill-positive { color: var(--zl-positive, #1f7a4d); background: var(--zl-positive-soft, #e6f4ec); }
.zl-pill-caution  { color: var(--zl-caution, #a66a00);  background: var(--zl-caution-soft, #fbf1dc); }
.zl-pill-negative { color: var(--zl-negative, #b3261e); background: var(--zl-negative-soft, #fbe9e7); }
.zl-props { margin: 0; padding-left: 1.2rem; }
.zl-props li { margin-bottom: .75rem; line-height: 1.45; }
.zl-props li span { display: block; }
.zl-props li small { display: block; color: var(--zl-muted); margin-top: .2rem; font-size: .78rem; }
.zl-pos { color: var(--zl-positive, #1f7a4d); }
.zl-cau { color: var(--zl-caution, #a66a00); }
.zl-neg { color: var(--zl-negative, #b3261e); }
.zl-mini-foot { margin: .75rem 0 0; font-size: .74rem; color: var(--zl-muted); }
/* Treatment of an earlier case, proposition by proposition */
.zl-ctr-source { font-size: .82rem; color: var(--zl-muted); margin: -.35rem 0 .5rem; }
.zl-ctr-source b { color: var(--zl-ink); font-weight: 600; }
.zl-ctr-source span { white-space: nowrap; }
.zl-ctr { list-style: none; margin: 0; padding: 0; }
.zl-ctr li {
    display: grid;
    grid-template-columns: 6.2rem 1fr;
    column-gap: .75rem;
    padding: .6rem 0;
    border-top: 1px solid var(--zl-border);
    font-size: .88rem;
    line-height: 1.42;
}
.zl-ctr li:first-child { border-top: 0; }
.zl-ctr-t { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding-top: .15rem; }
.zl-ctr li span { grid-column: 2; }
.zl-ctr li small { grid-column: 2; display: block; color: var(--zl-muted); margin-top: .2rem; font-size: .76rem; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
    .zl-ctr li { grid-template-columns: 1fr; row-gap: .15rem; }
    .zl-ctr li span, .zl-ctr li small { grid-column: 1; }
}
.zl-mini-list { list-style: none; margin: 0; padding: 0; }
.zl-mini-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-top: 1px solid var(--zl-border);
    font-size: .88rem;
    line-height: 1.4;
}
.zl-mini-list li:first-child { border-top: 0; }
.zl-mini-list a { color: var(--zl-accent); }
.zl-mini-list span { color: var(--zl-muted); white-space: nowrap; font-size: .8rem; }

/* ---------- comparison ---------- */
.zl-compare {
    background: var(--zl-soft);
    border-top: 1px solid var(--zl-border);
    border-bottom: 1px solid var(--zl-border);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.zl-table-wrap { overflow-x: auto; }
.zl-compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--zl-surface);
    border: 1px solid var(--zl-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: .93rem;
}
.zl-compare-table th, .zl-compare-table td {
    padding: .8rem 1rem;
    border-top: 1px solid var(--zl-border);
    text-align: left;
    vertical-align: middle;
}
.zl-compare-table thead th {
    border-top: 0;
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--zl-muted);
    background: var(--zl-surface);
}
.zl-compare-table thead th:nth-child(2) { color: var(--zl-accent); }
.zl-compare-table tbody th { font-weight: 500; color: var(--zl-ink); width: 52%; }
.zl-compare-table td { width: 16%; font-weight: 600; }
.zl-compare-table td.y { color: var(--zl-positive, #1f7a4d); }
.zl-compare-table td.n { color: var(--zl-muted); font-weight: 400; }
.zl-compare-table td.p { color: var(--zl-caution, #a66a00); font-weight: 500; }
.zl-compare-table td:nth-child(2) { background: var(--zl-accent-soft); }
.zl-compare-note { margin: 1rem 0 0; font-size: .8rem; color: var(--zl-muted); }
.zl-compare-note a { color: inherit; }

/* ---------- access ---------- */
.zl-access {
    max-width: var(--zl-max);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) 1.25rem 1rem;
}
.zl-access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}
@media (min-width: 768px) { .zl-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.zl-access-col {
    border: 1px solid var(--zl-border);
    border-radius: 12px;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--zl-surface);
    display: flex;
    flex-direction: column;
}
.zl-access-col-account { border-color: var(--zl-accent); box-shadow: 0 0 0 3px var(--zl-accent-soft); }
.zl-access-col h3 { font-family: Inter, system-ui, sans-serif; font-size: 1.05rem; margin-bottom: .75rem; }
.zl-access-col ul { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--zl-ink); line-height: 1.5; font-size: .93rem; }
.zl-access-col li { margin-bottom: .4rem; }
.zl-access-note { margin: .85rem 0 0; font-size: .82rem; color: var(--zl-muted); }
.zl-btn {
    align-self: flex-start;
    margin-top: auto;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: .93rem;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
}
.zl-btn-primary { background: var(--zl-accent); color: var(--zl-on-accent); }
.zl-btn-primary:hover { background: var(--zl-accent-hover); color: var(--zl-on-accent); }
.zl-btn-secondary { border-color: var(--zl-border); color: var(--zl-ink); background: var(--zl-surface); }
.zl-btn-secondary:hover { border-color: var(--zl-accent); color: var(--zl-accent); }

/* ---------- provenance ---------- */
.zl-provenance {
    max-width: var(--zl-max);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 1.25rem 1rem;
}
.zl-prov-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--zl-border);
    padding-top: 2.5rem;
}
@media (min-width: 900px) { .zl-prov-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.zl-prov-copy p { color: var(--zl-muted); line-height: 1.65; margin: 0 0 1rem; }
.zl-prov-copy p:last-child { margin-bottom: 0; }

/* ---------- dark theme adjustments ---------- */
[data-bs-theme="dark"] .zl-spec-card,
[data-bs-theme="dark"] .zl-mini,
[data-bs-theme="dark"] .zl-spec-def { box-shadow: 0 12px 32px rgb(0 0 0 / 35%); }
[data-bs-theme="dark"] .zl-hero {
    background:
        radial-gradient(60rem 30rem at 85% -10%, var(--zl-accent-soft), transparent 60%),
        var(--zl-surface);
}
