:root {
    --ink: #162027;
    --muted: #5f6b72;
    --line: rgba(22, 32, 39, 0.14);
    --paper: #f8f4ec;
    --paper-deep: #eee6d8;
    --panel: rgba(255, 255, 255, 0.82);
    --teal: #0c7c78;
    --teal-dark: #075d5a;
    --rust: #b8542d;
    --navy: #13232c;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Public Sans", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(22, 32, 39, 0.025) 1px, transparent 1px) 0 0 / 34px 34px,
        radial-gradient(circle at 0 0, rgba(184, 84, 45, 0.11), transparent 25rem),
        radial-gradient(circle at 100% 9rem, rgba(12, 124, 120, 0.12), transparent 28rem),
        linear-gradient(180deg, var(--paper) 0%, #f6f1e8 52%, #f8faf9 100%);
}

.display-font { font-family: "Newsreader", serif; }
.section-line { border-color: var(--line); }
.eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.paper-panel {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 26px 70px rgba(22, 32, 39, 0.11);
    backdrop-filter: blur(18px);
}

.ink-panel {
    color: white;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.035), transparent 45%),
        var(--navy);
    box-shadow: 0 28px 80px rgba(19, 35, 44, 0.18);
}

.tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(22, 32, 39, 0.12);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    color: #425059;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #d99042;
    content: "";
    box-shadow: 0 0 0 4px rgba(217, 144, 66, 0.14);
}

.status-complete::before {
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(12, 124, 120, 0.14);
}

.ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.ledger-row:last-child { border-bottom: 0; }

.ledger-label {
    color: #9de7df;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.case-card {
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.case-card::after {
    position: absolute;
    right: -3.2rem;
    bottom: -4.2rem;
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(12, 124, 120, 0.15);
    border-radius: 999px;
    content: "";
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(12, 124, 120, 0.32);
    box-shadow: 0 24px 55px rgba(22, 32, 39, 0.12);
}

.timeline {
    position: relative;
}

.timeline::before {
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 1.15rem;
    width: 1px;
    background: rgba(12, 124, 120, 0.22);
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 1.25rem;
}

.timeline-number {
    position: relative;
    z-index: 1;
    display: flex;
    width: 2.3rem;
    height: 2.3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 124, 120, 0.28);
    border-radius: 999px;
    background: var(--paper);
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.evidence {
    position: relative;
    background: #efe9dd;
    border: 1px solid rgba(22, 32, 39, 0.12);
}

.evidence::before {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(22,32,39,0.14) 0.65px, transparent 0.65px);
    background-size: 8px 8px;
    pointer-events: none;
    content: "";
}

.message {
    position: relative;
    z-index: 1;
    max-width: 92%;
    border-radius: 0.45rem 1rem 1rem 1rem;
    background: white;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 18px rgba(22, 32, 39, 0.08);
}

.message-out {
    margin-left: auto;
    border-radius: 1rem 0.45rem 1rem 1rem;
    background: #dff5ea;
}

.message-meta {
    margin-top: 0.55rem;
    color: #68757c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.evidence-shot {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(22, 32, 39, 0.15);
    border-radius: 1.35rem;
    background: #e5dfd4;
    box-shadow: 0 16px 34px rgba(22, 32, 39, 0.12);
}

.evidence-shot img {
    display: block;
    width: 100%;
    max-width: 358px;
    height: auto;
    margin: 0 auto;
    background: #efeae3;
}

.evidence-shot figcaption {
    border-top: 1px solid rgba(22, 32, 39, 0.12);
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 1.1rem 1.1rem;
    color: #526069;
    font-size: 0.78rem;
    line-height: 1.7;
}

.metric {
    border-left: 3px solid var(--teal);
    padding-left: 1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    color: #526069;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.comparison-table tr:last-child td { border-bottom: 0; }

main .grid > * { min-width: 0; }
.comparison-scroll { max-width: 100%; }

.cta-main {
    color: white;
    background: linear-gradient(135deg, var(--teal), #15938d);
}

.cta-main:hover { filter: brightness(1.04); }

.text-rust { color: var(--rust); }
.text-teal-deep { color: var(--teal-dark); }

@media (max-width: 700px) {
    .ledger-row { grid-template-columns: 1fr; gap: 0.35rem; }
    .comparison-scroll { overflow-x: auto; }
    .comparison-table { min-width: 660px; }
    .site-ui-whatsapp-float { display: none !important; }
}
