/* ============================================================
   Audit Desk public page — international institutional system
   Brand green #28A745, deep green ink and green-tinted paper.
   Separate from the legacy admin style sheet. No glass, no glow,
   no floating blobs.
   ============================================================ */

body.landing-page {
    --paper: #F7FBF7;
    --paper-2: #FFFFFF;
    --sheet: #FFFFFF;
    --ink: #0B2414;
    --ink-soft: #274332;
    --muted: #53685A;
    --line: #DCE8DE;
    --line-strong: #A9C4AF;
    --brand: #28A745;
    --brand-deep: #1E7E34;
    --brand-ink: #176527;
    --brand-soft: #E8F5EB;
    --on-brand: #071B0E;
    --on-dark: #EAF4EC;
    --on-dark-muted: #BFD5C4;
    --accent: #1F7A45;
    --accent-soft: #E6F4EA;
    --accent-on-dark: #8EDBA4;
    --warning: #5D6B1A;
    --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;

    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.landing-page *,
body.landing-page *::before,
body.landing-page *::after {
    box-sizing: border-box;
}

body.landing-page a { color: inherit; text-decoration: none; }
body.landing-page button { font: inherit; color: inherit; }
body.landing-page img { max-width: 100%; }
body.landing-page [hidden] { display: none !important; }

body.landing-page :focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 26px;
}

.landing-main section[id] { scroll-margin-top: 132px; }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 251, 247, 0.97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}

.site-nav.is-scrolled { box-shadow: 0 4px 18px rgba(11, 36, 20, .10); }

.site-nav__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand img { height: 40px; width: auto; object-fit: contain; }

.brand__divider { width: 1px; height: 26px; background: var(--line-strong); }

.brand__text {
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: -.02em;
    line-height: 1;
}

.brand__text span { color: var(--brand-ink); font-style: italic; }

.nav-panel { display: flex; align-items: center; gap: 30px; }

body.landing-page .nav-panel__link {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 8px 0;
}

.nav-panel__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 1px;
    background: var(--brand);
    transition: right .2s ease;
}

.nav-panel__link:hover::after,
.nav-panel__link.is-current::after { right: 0; }

body.landing-page .nav-panel__link.is-current { color: var(--brand-ink); }

body.landing-page .nav-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ink);
    color: var(--on-dark);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--ink);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

body.landing-page .nav-panel__cta .ico { width: 16px; height: 16px; }
body.landing-page .nav-panel__cta:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-strong);
    padding: 8px;
    cursor: pointer;
}

/* ------------------------------------------------------------
   Shared buttons, labels, type
   ------------------------------------------------------------ */

.btn-solid,
.btn-outline,
.btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    cursor: pointer;
}

body.landing-page .btn-solid { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
body.landing-page .btn-solid:hover { background: var(--brand-deep); color: var(--on-dark); transform: translateY(-1px); }

body.landing-page .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
body.landing-page .btn-outline:hover { background: var(--ink); color: var(--on-dark); }

body.landing-page .btn-quiet { background: transparent; color: var(--brand-ink); padding-left: 0; padding-right: 0; }
body.landing-page .btn-quiet:hover { color: var(--accent); }

.btn-solid .ico,
.btn-outline .ico,
.btn-quiet .ico { width: 17px; height: 17px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-ink);
}

.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.eyebrow--accent { color: var(--accent); }

.display-title,
.section-title,
.page-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.028em;
    color: var(--ink);
}

.display-title {
    font-size: clamp(42px, 5.1vw, 68px);
    line-height: 1.04;
    margin: 18px 0 20px;
}

.display-title em { color: var(--brand); font-style: italic; }

.page-title {
    font-size: clamp(40px, 4.6vw, 60px);
    line-height: 1.06;
    margin: 14px 0 18px;
}

.section-title {
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.12;
    margin: 14px 0 14px;
}

.lede {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 610px;
}

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

.small-caps {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ------------------------------------------------------------
   Home hero
   ------------------------------------------------------------ */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 102px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(11, 36, 20, .05) 48px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}

.home-hero .wrap { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 76px;
    align-items: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    max-width: 500px;
}

.hero-note .ico { width: 16px; height: 16px; color: var(--accent); }

.file-stack { position: relative; padding: 18px 22px 26px 10px; }

.file-sheet {
    background: var(--sheet);
    border: 1px solid var(--line-strong);
    box-shadow: 12px 12px 0 rgba(11, 36, 20, .12);
    padding: 24px 26px 26px;
    transform: rotate(.8deg);
}

.file-sheet__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}

.file-sheet__top .small-caps { color: var(--brand-ink); }

.file-sheet h2 {
    font-family: var(--font-display);
    font-size: 23px;
    line-height: 1.25;
    margin-top: 8px;
}

.file-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 20px 0;
}

.file-meta > div { background: var(--sheet); padding: 13px 15px; }
.file-meta strong { display: block; font-size: 16px; margin-top: 3px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 9px;
    border: 1px solid currentColor;
    white-space: nowrap;
}

.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.is-progress { color: var(--brand-ink); }
.status-pill.is-overdue { color: var(--accent); }
.status-pill.is-closed { color: var(--muted); }
.status-pill.is-review { color: var(--warning); }

.mini-timeline { list-style: none; padding: 0; margin: 0; }
.mini-timeline li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12px;
}
.mini-timeline li:last-child { border-bottom: 0; }
.mini-timeline strong { font-weight: 600; }
.mini-timeline span { color: var(--muted); }

.stamp {
    position: absolute;
    top: 0;
    right: 0;
    transform: rotate(-8deg);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 6px 13px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(247, 251, 247, .94);
}

.file-tag {
    position: absolute;
    left: 0;
    bottom: 4px;
    background: var(--ink);
    color: var(--on-dark);
    padding: 9px 15px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   Fact strip + sections
   ------------------------------------------------------------ */

.fact-strip {
    position: relative;
    overflow: hidden;
    padding: 34px 0 38px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}
.fact-strip::before {
    content: "";
    position: absolute;
    inset: -6%;
    pointer-events: none;
    background: url("../svg/audit-trail.svg") center center / cover no-repeat;
    animation: auditTrailDrift 24s ease-in-out infinite alternate;
}

.fact-strip__inner { position: relative; z-index: 1; display: grid; gap: 22px; }

.fact-strip__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.fact-strip__head .eyebrow { margin: 0; }
.fact-strip__head p { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 520px; }

.fact-strip__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 11px;
    font-weight: 700;
}
.fact-strip__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.fact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 194px;
    padding: 22px 20px 20px;
    background: var(--sheet);
    overflow: hidden;
    transition: background .2s ease;
}
.fact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand) no-repeat left top / 28% 100%;
    transition: background-size .25s ease;
}
.fact-card:nth-child(2)::before { background-color: var(--brand-deep); }
.fact-card:nth-child(3)::before { background-color: var(--accent); }
.fact-card:hover { background: var(--paper); }
.fact-card:hover::before { background-size: 100% 100%; }
.fact-card.is-visible::before { animation: factAccentDraw .8s ease-out; }
.fact-card:nth-child(2).is-visible::before { animation-delay: .08s; }
.fact-card:nth-child(3).is-visible::before { animation-delay: .16s; }
.fact-card:nth-child(4).is-visible::before { animation-delay: .24s; }

.fact-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fact-card__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    color: var(--brand-ink);
    transition: background .2s ease, color .2s ease;
}
.fact-card:hover .fact-card__icon { background: var(--brand-soft); color: var(--brand); }
.fact-card.is-visible .fact-card__icon { animation: factIconSettle .55s ease both; }
.fact-card:nth-child(2).is-visible .fact-card__icon { animation-delay: .08s; }
.fact-card:nth-child(3).is-visible .fact-card__icon { animation-delay: .16s; }
.fact-card:nth-child(4).is-visible .fact-card__icon { animation-delay: .24s; }

.fact-card__icon .ico { width: 18px; height: 18px; }
.fact-card__index { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }

.fact-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--brand);
    margin-bottom: 10px;
}
.fact-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 8px;
}
.fact-card p { margin: 0 0 16px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.fact-card__meta {
    margin-top: auto;
    align-self: flex-start;
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--brand-ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section { padding: 88px 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 42px;
}
.section-head p { color: var(--muted); font-size: 15px; max-width: 540px; }

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

.feature-card {
    background: var(--sheet);
    border: 1px solid var(--line);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}
.feature-card--accent { border-left: 3px solid var(--accent); }

.feature-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    color: var(--brand);
    background: var(--paper-2);
    margin-bottom: 22px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p { color: var(--muted); font-size: 14px; }
.feature-card__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--brand-ink);
}

/* ------------------------------------------------------------
   Home demo preview
   ------------------------------------------------------------ */

.preview-shell { border: 1px solid var(--line-strong); background: var(--sheet); }

.preview-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}

.preview-tabs button {
    flex: 1;
    min-width: 150px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 2px solid transparent;
    padding: 15px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.preview-tabs button:last-child { border-right: 0; }
.preview-tabs button.is-active { background: var(--sheet); border-bottom-color: var(--brand); color: var(--brand-ink); }

.preview-panel { padding: 30px; }

.preview-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 36px;
}

.paper-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 3px;
    margin-bottom: 16px;
}

.preview-panel h3 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 8px;
}

.field-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}
.field-row span { color: var(--muted); }
.field-row strong { text-align: right; font-weight: 600; }

.preview-note {
    background: var(--paper);
    border-left: 3px solid var(--brand);
    padding: 18px 20px;
}
.preview-note p { font-size: 14px; color: var(--ink-soft); }
.preview-note .small-caps { display: block; margin-bottom: 8px; color: var(--brand-ink); }

/* ------------------------------------------------------------
   Roles + modules
   ------------------------------------------------------------ */

.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.role-card {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    padding: 24px 22px;
}
.role-card:nth-child(3) { border-top-color: var(--accent); }
.role-card:nth-child(4) { border-top-color: var(--warning); }

.role-card__num {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--muted);
}
.role-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 6px 0 12px; }
.role-card p { font-size: 13px; color: var(--muted); }

.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.module-card {
    display: flex;
    flex-direction: column;
    background: var(--sheet);
    border: 1px solid var(--line);
    padding: 28px;
    min-height: 100%;
}
.module-card--feature { border-left: 3px solid var(--accent); background: var(--accent-soft); }

.module-card__top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.module-card__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    color: var(--brand);
    background: var(--paper-2);
    flex: none;
}
.module-card__icon i { font-size: 19px; }
.module-card__icon img { width: 26px; height: 26px; object-fit: contain; }

.module-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.25; }

.module-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 7px;
    margin-left: auto;
    white-space: nowrap;
}

.module-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.module-card li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 7px;
    line-height: 1.5;
}
.module-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 1px;
    background: var(--brand);
}

body.landing-page .module-card__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--brand);
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-ink);
}
body.landing-page .module-card__link .ico { width: 16px; height: 16px; }
body.landing-page .module-card__link:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------
   Dark close band
   ------------------------------------------------------------ */

.cta-band { background: var(--ink); color: var(--on-dark); padding: 74px 0; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 60px; align-items: center; }
.cta-band .eyebrow { color: var(--accent-on-dark); }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; line-height: 1.12; margin: 14px 0; }
.cta-band p { color: var(--on-dark-muted); max-width: 560px; }
.cta-band__side { border-left: 1px solid rgba(220,235,223,.22); padding-left: 34px; }
.cta-band__side strong { display: block; font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.cta-band__side span { display: block; font-size: 13px; color: var(--on-dark-muted); margin-bottom: 22px; }
body.landing-page .cta-band .btn-outline { border-color: rgba(220,235,223,.65); color: var(--on-dark); }
body.landing-page .cta-band .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ------------------------------------------------------------
   Audit page hero + section nav
   ------------------------------------------------------------ */

.page-hero { padding: 72px 0 64px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; }

.crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.crumb a:hover { color: var(--brand-ink); }
.crumb span { color: var(--muted); }

.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 70px; align-items: end; margin-top: 30px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-meta { border: 1px solid var(--line-strong); background: var(--sheet); }
.hero-meta__head { background: var(--ink); color: var(--on-dark); padding: 12px 18px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-meta dl { margin: 0; padding: 6px 18px 14px; }
.hero-meta dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hero-meta dl > div:last-child { border-bottom: 0; }
.hero-meta dt { font-size: 12px; color: var(--muted); }
.hero-meta dd { margin: 0; font-size: 13px; font-weight: 700; text-align: right; }

.section-nav {
    position: sticky;
    top: 71px;
    z-index: 90;
    background: rgba(247, 251, 247, .97);
    border-bottom: 1px solid var(--line);
}
.section-nav__inner { display: flex; gap: 26px; overflow-x: auto; min-height: 50px; align-items: center; }
body.landing-page .section-nav a { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; padding: 14px 0; border-bottom: 2px solid transparent; }
body.landing-page .section-nav a:hover { color: var(--brand-ink); border-color: var(--brand); }

.prose-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.prose-grid h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.25; margin-bottom: 16px; }
.prose-grid p { color: var(--ink-soft); margin-bottom: 16px; }

.callout { background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 26px 28px; }
.callout__label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.callout p { font-family: var(--font-display); font-size: 20px; line-height: 1.5; margin: 10px 0 0; color: var(--ink); }

.definition-list { margin-top: 26px; border-top: 1px solid var(--line); }
.definition-list__row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.definition-list__row dt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.definition-list__row dd { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------
   Workflow
   ------------------------------------------------------------ */

.workflow-track {
    display: flex;
    border: 1px solid var(--line-strong);
    background: var(--paper-2);
    overflow-x: auto;
}

.workflow-track button {
    flex: 1 0 145px;
    min-width: 145px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 3px solid transparent;
    padding: 18px 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.workflow-track button:last-child { border-right: 0; }
.workflow-track button:hover { background: var(--sheet); }
.workflow-track button.is-active { background: var(--sheet); border-bottom-color: var(--brand); }

.workflow-track .step-num { display: block; font-family: var(--font-display); font-size: 13px; color: var(--accent); }
.workflow-track .step-name { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; margin-top: 8px; }
.workflow-track .step-actor { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

.workflow-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
    gap: 30px;
    background: var(--sheet);
    border: 1px solid var(--line-strong);
    border-top: 0;
    padding: 30px 32px;
}
.workflow-detail h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.workflow-detail p { color: var(--ink-soft); max-width: 640px; }
.workflow-detail__meta { border-left: 1px solid var(--line); padding-left: 28px; }
.workflow-detail__meta .small-caps { display: block; margin-bottom: 6px; color: var(--brand-ink); }
.workflow-detail__meta p { font-size: 14px; margin-bottom: 18px; }

/* ------------------------------------------------------------
   Interactive demo workspace
   ------------------------------------------------------------ */

.workspace { border: 1px solid var(--line-strong); background: var(--sheet); }

.workspace__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}
.workspace__title { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace__title .ico { width: 16px; height: 16px; color: var(--brand); }

.role-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.role-switch button {
    background: transparent;
    border: 1px solid var(--line-strong);
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.role-switch button.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

.workspace__grid { display: grid; grid-template-columns: 208px minmax(0, 1fr) 300px; }

.filter-rail { border-right: 1px solid var(--line); padding: 18px 14px; }
.filter-rail .small-caps { display: block; padding: 0 8px 10px; }
.filter-chip {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    padding: 10px 8px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}
.filter-chip:hover { background: var(--paper-2); }
.filter-chip.is-active { border-left-color: var(--brand); background: var(--paper-2); color: var(--brand-ink); font-weight: 700; }
.filter-chip span { color: var(--muted); font-size: 11px; }

.obj-list { min-width: 0; }
.obj-row {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    padding: 15px 18px;
    text-align: left;
    cursor: pointer;
}
.obj-row:hover { background: var(--paper-2); }
.obj-row.is-active { background: var(--accent-soft); border-left-color: var(--brand); }
.obj-row__title { display: block; font-size: 13px; font-weight: 700; line-height: 1.4; }
.obj-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.obj-row__meta .status-pill { font-size: 9px; padding: 3px 6px; }

.detail-pane { border-left: 1px solid var(--line); padding: 22px 22px 26px; min-width: 0; }
.detail-pane__id { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.detail-pane h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; margin: 7px 0 14px; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.detail-grid > div { background: var(--sheet); padding: 10px 12px; }
.detail-grid span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.detail-grid strong { font-size: 13px; }

.recovery { margin-bottom: 18px; }
.recovery__head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.recovery__bar { height: 6px; background: var(--line); }
.recovery__bar > i { display: block; height: 100%; background: var(--brand); }

.detail-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin: 16px 0 7px; }
.detail-pane p { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }

.mini-history { list-style: none; padding: 0; margin: 0; }
.mini-history li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 11px; }
.mini-history li span { color: var(--muted); }

.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; }
.attachment-list span { border: 1px solid var(--line); background: var(--paper-2); padding: 4px 7px; font-size: 10px; color: var(--ink-soft); }

.role-note { margin-top: 18px; border-left: 3px solid var(--accent); background: var(--paper); padding: 12px 14px; }
.role-note p { margin: 0; font-size: 12px; }

.action-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.action-list span { font-size: 10px; font-weight: 700; padding: 4px 7px; border: 1px solid var(--brand); color: var(--brand-ink); }

.workspace__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------
   Capabilities + reports + matrix + FAQ
   ------------------------------------------------------------ */

.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cap-card { background: var(--sheet); border: 1px solid var(--line); padding: 24px 24px 22px; }
.cap-card .feature-card__icon { margin-bottom: 18px; }
.cap-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { font-size: 13px; color: var(--muted); }

.report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.report-item { background: var(--sheet); padding: 20px 22px; min-height: 104px; }
.report-item .small-caps { color: var(--accent); font-size: 9px; }
.report-item h3 { font-size: 15px; font-weight: 700; margin: 7px 0 5px; }
.report-item p { font-size: 12px; color: var(--muted); margin: 0; }

.report-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.report-foot .ico { width: 16px; height: 16px; color: var(--brand); }

.matrix-wrap { border: 1px solid var(--line-strong); overflow-x: auto; background: var(--sheet); }
.matrix { width: 100%; border-collapse: collapse; min-width: 720px; }
.matrix th, .matrix td { padding: 14px 16px; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.matrix thead th { background: var(--ink); color: var(--on-dark); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.matrix tbody th { font-weight: 700; background: var(--paper-2); width: 170px; }
.matrix td { color: var(--ink-soft); }
.matrix .tick { color: var(--brand-ink); font-weight: 700; }
.matrix .dash { color: var(--muted); }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); background: var(--sheet); }
.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 46px 20px 20px;
    position: relative;
    font-size: 15px;
    font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { padding: 0 46px 20px 20px; color: var(--muted); font-size: 14px; max-width: 800px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 58px 0 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 44px; padding-bottom: 42px; border-bottom: 1px solid rgba(220,235,223,.16); }
.site-footer__brand img { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.site-footer__brand p { font-size: 13px; max-width: 300px; color: var(--on-dark-muted); }
.site-footer__col h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.site-footer__col a { display: block; font-size: 13px; padding: 5px 0; color: var(--on-dark-muted); }
.site-footer__col a:hover { color: var(--on-dark); }
.site-footer__col--contact a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__col--contact .ico { width: 16px; height: 16px; }
.site-footer__note { display: block; margin-top: 12px; font-size: 11px; color: var(--on-dark-muted); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: 11px; color: var(--on-dark-muted); }
.site-footer__credit { text-align: right; }
.site-footer__credit strong { color: var(--on-dark); font-weight: 700; }

/* ------------------------------------------------------------
   Reveal animation (quiet, opt-in)
   ------------------------------------------------------------ */

@keyframes fieldworkReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes auditTrailDrift {
    from { transform: translate3d(-1.5%, 0, 0) scale(1); }
    to { transform: translate3d(1.5%, -2%, 0) scale(1.03); }
}
@keyframes factAccentDraw {
    from { background-size: 0 100%; }
    to { background-size: 28% 100%; }
}
@keyframes factIconSettle {
    from { opacity: .45; transform: translateY(7px) scale(.94); }
    to { opacity: 1; transform: none; }
}

[data-reveal].is-visible { animation: fieldworkReveal .45s ease both; }
.fact-card:nth-child(1).is-visible { animation-delay: .06s; }
.fact-card:nth-child(2).is-visible { animation-delay: .14s; }
.fact-card:nth-child(3).is-visible { animation-delay: .22s; }
.fact-card:nth-child(4).is-visible { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    body.landing-page *,
    body.landing-page *::before,
    body.landing-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; animation-delay: 0ms !important; }
    .fact-strip::before { animation: none !important; }
    .fact-card.is-visible::before,
    .fact-card.is-visible .fact-card__icon { animation: none !important; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
    .hero-grid, .page-hero__grid, .section-head, .cta-band__grid { gap: 42px; }
    .hero-grid, .page-hero__grid { grid-template-columns: 1fr; }
    .file-stack { max-width: 600px; }
    .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact-strip__head p { text-align: left; }
    .feature-grid, .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prose-grid { grid-template-columns: 1fr; gap: 30px; }
    .workspace__grid { grid-template-columns: 190px minmax(0, 1fr); }
    .detail-pane { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 760px) {
    .wrap { padding: 0 18px; }
    .site-nav__inner { min-height: 64px; }
    .nav-toggle { display: inline-flex; }
    .nav-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line-strong);
        padding: 8px 18px 18px;
    }
    .nav-panel.is-open { display: flex; }
    .nav-panel__link { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-panel__link::after { display: none; }
    .nav-panel__cta { margin-top: 14px; justify-content: center; }
    .section-nav { top: 63px; }
    .home-hero { padding: 62px 0 70px; }
    .page-hero { padding: 48px 0 46px; }
    .section { padding: 64px 0; }
    .fact-strip__head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .fact-strip__tag { align-self: flex-start; }
    .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .preview-panel__grid, .workflow-detail { grid-template-columns: 1fr; gap: 24px; }
    .workflow-detail__meta { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
    .preview-panel { padding: 22px 18px; }
    .preview-tabs button { flex: 1 0 50%; }
    .module-grid, .feature-grid, .cap-grid { grid-template-columns: 1fr; }
    .cta-band__grid { grid-template-columns: 1fr; gap: 26px; }
    .cta-band__side { border-left: 0; border-top: 1px solid rgba(220,235,223,.22); padding-left: 0; padding-top: 24px; }
    .workspace__grid { grid-template-columns: 1fr; }
    .filter-rail { border-right: 0; border-bottom: 1px solid var(--line); }
    .obj-list { max-height: 330px; overflow-y: auto; }
    .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__bottom { flex-direction: column; gap: 6px; }
    .site-footer__credit { text-align: left; }
}

@media (max-width: 520px) {
    .display-title { font-size: 38px; }
    .page-title { font-size: 36px; }
    .lede { font-size: 15px; }
    .brand__text { font-size: 18px; }
    .brand img { height: 34px; }
    .fact-grid { grid-template-columns: 1fr; }
    .fact-card { min-height: 0; }
    .role-grid { grid-template-columns: 1fr; }
    .file-meta { grid-template-columns: 1fr; }
    .stamp { position: static; display: inline-block; transform: rotate(-3deg); margin-bottom: 12px; }
    .file-tag { position: static; display: inline-block; margin-top: 16px; }
    .report-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}
