/* The public landing page (Components/Pages/Landing.razor). One set of tokens, light and dark like the app: the
   device decides unless the visitor chose (data-theme on <html>, set by landing-theme.js). The base accent is the
   app's default look (Ledger navy). Five designs take turns per
   visit (.lv1 … .lv5); each sets its own type and accent on the shared tokens. No web fonts: the page loads fast. */

:root {
    color-scheme: light;
    --bg: #ffffff; --bg-2: #f4f6fa; --surface: #ffffff; --ink: #0f172a; --muted: #526072; --line: #e2e7ef;
    --accent: #12355b; --accent-ink: #ffffff; --accent-soft: #e8eef6;
    --high: #c0262d; --high-soft: #fde8e9; --warn: #a15c00; --warn-soft: #fff3dc; --ok: #0d7a55; --ok-soft: #e1f5ec;
    --shadow: 0 24px 60px -32px rgba(15, 23, 42, .35);
    --sans: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans Arabic", "Noto Sans", sans-serif;
    --serif: Georgia, Cambria, "Times New Roman", "Noto Naskh Arabic", serif;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0f19; --bg-2: #0e1424; --surface: #111827; --ink: #e5e7eb; --muted: #9aa5b5; --line: #1f2937;
    --accent: #9dbde6; --accent-ink: #0a1322; --accent-soft: rgba(157, 189, 230, .14);
    --high: #ff7c83; --high-soft: rgba(242, 84, 91, .16); --warn: #fbbf4b; --warn-soft: rgba(245, 158, 11, .16); --ok: #5fe0a2; --ok-soft: rgba(52, 199, 123, .15);
    --shadow: 0 30px 80px -40px #000;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0b0f19; --bg-2: #0e1424; --surface: #111827; --ink: #e5e7eb; --muted: #9aa5b5; --line: #1f2937;
        --accent: #9dbde6; --accent-ink: #0a1322; --accent-soft: rgba(157, 189, 230, .14);
        --high: #ff7c83; --high-soft: rgba(242, 84, 91, .16); --warn: #fbbf4b; --warn-soft: rgba(245, 158, 11, .16); --ok: #5fe0a2; --ok-soft: rgba(52, 199, 123, .15);
        --shadow: 0 30px 80px -40px #000;
    }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { fill: currentColor; }

.lp .skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.lp .skip:focus { inset-inline-start: 16px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.brand .shield { fill: var(--accent); } .brand .tick { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.links { display: flex; gap: 20px; list-style: none; padding: 0; }
.links a { display: inline-block; padding: 10px 2px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px;
    font: 600 15px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; cursor: pointer; }
.btn.lg { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--muted); }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 15px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); background: var(--bg-2); }
.lang summary svg { width: 20px; height: 20px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 180px; list-style: none; padding: 6px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang li a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.lang li a:hover { background: var(--bg-2); }
.lang li a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.theme:hover { color: var(--ink); background: var(--bg-2); }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 750; }
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 32em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
figure { margin: 0; }
.src { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Sections */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 720; max-width: 22em; }
h3 { font-size: 18px; line-height: 1.3; }
.sub { color: var(--muted); margin-top: 12px; max-width: 40em; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.steps .num { display: block; font: 600 34px/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.steps p, .finds p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.finds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.finds > div { background: var(--bg); padding: 26px 26px 28px; }
.cov { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.big { font: 750 88px/1 var(--sans); letter-spacing: -0.03em; margin-top: 36px; color: var(--accent); }
.biglabel { color: var(--muted); margin-top: 6px; }
.laws { list-style: none; padding: 0; margin-top: 14px; }
.laws li { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.laws li span { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.main { border-color: var(--accent); }
.plan h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan .v { font-size: 24px; font-weight: 700; margin: 8px 0 10px; line-height: 1.2; }
.plan p:not(.v) { color: var(--muted); flex: 1; }
.plan .btn { margin-top: 22px; align-self: flex-start; }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.final .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lp-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
.lp-footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.lp-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-footer a { display: inline-block; padding: 10px 2px; }
.lp-footer a[aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: none; }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.chip.high { background: var(--high-soft); color: var(--high); } .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.ok { background: var(--ok-soft); color: var(--ok); }

/* 1 · The marked-up tender: editorial, serif, a reviewer's margin notes. */
.lv1 { --accent: #b4371c; --accent-soft: #f8e3dc; }
:root[data-theme="dark"] .lv1 { --accent: #ff8a66; --accent-ink: #1a0f0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv1 { --accent: #ff8a66; --accent-ink: #1a0f0b; } }
.lv1 h1, .lv1 h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.lv1 .doc { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 30px 30px 22px; box-shadow: var(--shadow); }
.lv1 .doc .vol { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.lv1 .doc h2 { font-size: 22px; margin: 6px 0 12px; }
.lv1 .cl { display: grid; grid-template-columns: 1fr 190px; gap: 22px; padding: 8px 0 12px; }
.lv1 .cl + .cl { border-top: 1px dashed var(--line); }
.lv1 .cl > p { font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.lv1 mark { background: linear-gradient(transparent 58%, var(--high-soft) 58%); color: inherit; padding: 0 2px; }
.lv1 mark.ok { background: linear-gradient(transparent 58%, var(--ok-soft) 58%); }
.lv1 .note { font-size: 13.5px; line-height: 1.45; padding-inline-start: 14px; border-inline-start: 2px solid var(--high); }
.lv1 .note b { display: block; color: var(--high); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.lv1 .note.ok { border-color: var(--ok); } .lv1 .note.ok b { color: var(--ok); }

/* 2 · Bid desk: dense and product-first, the audit report as the hero. */
.lv2 .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.lv2 .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 13px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.lv2 .bar .muted { color: var(--muted); } .lv2 .bar .chip { margin-inline-start: auto; }
.lv2 .counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 18px 6px; }
.lv2 .counts > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.lv2 .counts .n { display: block; font: 600 24px/1.2 var(--mono); } .lv2 .counts .n.hi { color: var(--high); } .lv2 .counts .n.warn { color: var(--warn); }
.lv2 .counts .l { font-size: 12.5px; color: var(--muted); }
.lv2 .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.lv2 .acts { display: flex; gap: 6px; } .lv2 .acts span { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--muted); }
.lv2 .panel .fine { padding: 0 18px 16px; }
.lv2 .pipe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 72px; }
.lv2 .pipe li { padding: 18px; background: var(--bg-2); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.lv2 .pipe li:last-child { border-inline-end: 0; }
.lv2 .pipe .k { font: 600 12px var(--mono); color: var(--ok); } .lv2 .pipe li > span:last-child { color: var(--muted); }

/* 3 · Every country: a deep band and the chain from place to law. */
.lv3 .band { background: #0b1f3a; color: #e8eef7; --muted: #a9b8cf; --line: #24395c; --accent: #ffffff; --accent-ink: #0c1b33; }
.lv3 .band .btn.ghost { border-color: #35507a; color: #e8eef7; }
.lv3 .spine { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lv3 .spine li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lv3 .spine li:last-child { border-bottom: 0; }
.lv3 .spine li span { color: var(--muted); text-align: end; }
.lv3 .spine li.on { background: rgba(15, 138, 95, .25); } .lv3 .spine li.on span { color: #bfe9d6; }
.lv3 .xb { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.lv3 .route { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lv3 .route b { display: block; } .lv3 .route div span { color: var(--muted); font-size: 14px; }
.lv3 .route .line { grid-column: 1 / -1; height: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 12px); }
.lv3 .code { min-width: 52px; height: 40px; padding: 0 12px; border-radius: 8px; white-space: nowrap; font-size: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 750; display: inline-flex; align-items: center; justify-content: center; }
.lv3 .checks { list-style: none; padding: 0; margin-top: 10px; }
.lv3 .checks li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.lv3 .checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--high); }
[dir="rtl"] .lv3 .checks li { padding: 14px 22px 14px 0; }

/* 4 · Ask the tender: a conversation with sources. */
.lv4 { --accent: #0f766e; --accent-ink: #ffffff; }
:root[data-theme="dark"] .lv4 { --accent: #2dd4bf; --accent-ink: #062a27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv4 { --accent: #2dd4bf; --accent-ink: #062a27; } }
.lv4 .chat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.lv4 .q { align-self: flex-end; max-width: 80%; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-weight: 600; }
[dir="rtl"] .lv4 .q { border-radius: 18px 18px 18px 4px; }
.lv4 .a { align-self: flex-start; max-width: 88%; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; border-radius: 18px 18px 18px 4px; }
[dir="rtl"] .lv4 .a { border-radius: 18px 18px 4px 18px; }
.lv4 .ask { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); }
.lv4 .ask b { background: var(--accent); color: var(--accent-ink); padding: 8px 16px; border-radius: 10px; }
.lv4 h1 { letter-spacing: -0.025em; }

/* 5 · Seven volumes in, one page out. */
.lv5 { --accent: #b45309; --accent-ink: #ffffff; }
:root[data-theme="dark"] .lv5 { --accent: #f6ad55; --accent-ink: #231303; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv5 { --accent: #f6ad55; --accent-ink: #231303; } }
.lv5 .brief { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: start; }
.lv5 .brief > .fine { grid-column: 1 / -1; margin-top: 0; }
.lv5 .pile { padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.lv5 .pile ol { list-style: none; padding: 0; margin-top: 10px; }
.lv5 .pile li { padding: 9px 10px; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.lv5 .sheet { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); font-size: 15px; }
.lv5 .sheet .kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lv5 .sheet h2 { font-size: 21px; margin: 6px 0 14px; }
.lv5 .sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-bottom: 14px; }
.lv5 .sheet dt { color: var(--muted); } .lv5 .sheet dd { margin: 0; font-weight: 600; }
.lv5 .sheet > b { display: block; margin-top: 10px; }
.lv5 .sheet ul { padding-inline-start: 20px; margin: 6px 0 4px; color: var(--muted); }

/* Narrow screens */
@media (max-width: 1080px) {
    .links { display: none; }
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
    .cov, .faq, .lv3 .xb { grid-template-columns: 1fr; gap: 32px; }
    .lv2 .pipe { grid-template-columns: 1fr 1fr; } .lv2 .pipe li { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .hide-sm { display: none; }
    .nav { gap: 8px; }
    .brand { font-size: 16px; gap: 8px; }
    .end { gap: 2px; }
    .end .btn { padding: 8px 12px; font-size: 14px; }
    .lang summary span { display: none; }
    .steps, .finds, .plans { grid-template-columns: 1fr; }
    .laws li { grid-template-columns: 1fr; gap: 2px; }
    .lv1 .cl { grid-template-columns: 1fr; gap: 6px; }
    .lv2 .counts { grid-template-columns: 1fr 1fr; } .lv2 .row { grid-template-columns: 1fr; } .lv2 .acts { display: none; }
    .lv2 .pipe { grid-template-columns: 1fr; }
    .lv5 .brief { grid-template-columns: 1fr; }
    .sec { padding: 64px 0; }
    .big { font-size: 68px; }
}
