/* Marketing landing page — a more editorial register than the app itself: a serif
   display face, a civic-green accent, and mono eyebrows. Scoped under .landing so none
   of it leaks into the application UI. Colours derive from the app's theme tokens so
   light/dark still follow the resident's preference. */

.landing {
    --l-accent: #1E6F5C;
    --l-accent-deep: #14503F;
    --l-accent-wash: rgba(30, 111, 92, 0.08);
    --l-brass: #9A7433;
    --l-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --l-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

    color: var(--ti-text);
    font-size: 1.0625rem;
    line-height: 1.65;
}

:root[data-bs-theme="dark"] .landing {
    --l-accent: #52B79A;
    --l-accent-deep: #83D2BB;
    --l-accent-wash: rgba(82, 183, 154, 0.10);
    --l-brass: #CDA061;
}

.landing h1,
.landing h2,
.landing h3 {
    font-family: var(--l-display);
    font-weight: 600;
    text-wrap: balance;
    letter-spacing: -0.012em;
}

.landing .eyebrow {
    font-family: var(--l-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--l-accent);
    margin: 0 0 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.landing .eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--l-accent);
    opacity: 0.6;
}

.landing .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 1.2rem;
}
.landing .hero h1 .em {
    color: var(--l-accent);
    font-style: italic;
}
.landing .hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ti-muted);
    max-width: 62ch;
}

/* The record-graph canvas that carries the "connected" idea. */
.landing .canvas-card {
    position: relative;
    aspect-ratio: 1 / 0.85;
    background:
        linear-gradient(var(--ti-border) 1px, transparent 1px) 0 0 / 100% 34px,
        linear-gradient(90deg, var(--ti-border) 1px, transparent 1px) 0 0 / 34px 100%,
        var(--ti-surface);
    border: 1px solid var(--ti-border);
    border-radius: 12px;
    overflow: hidden;
}
.landing .canvas-card::after {
    content: "PLAT · PUBLIC RECORD";
    position: absolute;
    bottom: 0.7rem;
    right: 0.85rem;
    font-family: var(--l-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--ti-muted);
    opacity: 0.6;
}
.landing canvas { display: block; width: 100%; height: 100%; }

.landing section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--ti-border);
}
.landing .section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.landing .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.8rem; }
.landing .section-head p { color: var(--ti-muted); margin: 0; }

.landing .tinted { background: var(--ti-surface-2); }

/* The "scattered files" illustration of the problem. */
.landing .scatter { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.landing .scatter span {
    font-family: var(--l-mono);
    font-size: 0.78rem;
    color: var(--ti-muted);
    background: var(--ti-surface);
    border: 1px dashed var(--ti-border);
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
}

.landing .feature {
    background: var(--ti-surface);
    border: 1px solid var(--ti-border);
    border-radius: 10px;
    padding: 1.4rem 1.3rem;
    height: 100%;
}
.landing .feature .idx {
    font-family: var(--l-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--l-accent);
}
.landing .feature h3 { font-size: 1.18rem; margin: 0.3rem 0 0.4rem; }
.landing .feature p { font-size: 0.96rem; color: var(--ti-muted); margin: 0; }

/* The interconnection trail. */
.landing .flow-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.landing .node {
    font-family: var(--l-mono);
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
    background: var(--ti-surface);
    border: 1px solid var(--ti-border);
    border-radius: 8px;
}
.landing .node.k-accent {
    border-color: color-mix(in srgb, var(--l-accent) 45%, transparent);
    color: var(--l-accent-deep);
    background: var(--l-accent-wash);
}
.landing .arrow { color: var(--ti-muted); font-family: var(--l-mono); font-size: 0.85rem; }
.landing .arrow small { display: block; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }

.landing blockquote {
    margin: 2rem 0 0;
    padding-left: 1.2rem;
    border-left: 3px solid var(--l-accent);
    font-family: var(--l-display);
    font-style: italic;
    font-size: 1.18rem;
    max-width: 60ch;
}

.landing .step .num {
    font-family: var(--l-mono);
    font-size: 0.8rem;
    color: var(--l-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--l-accent) 40%, transparent);
    background: var(--l-accent-wash);
    margin-bottom: 0.7rem;
}

.landing .stat .n {
    font-family: var(--l-display);
    font-size: 2rem;
    color: var(--l-accent);
    line-height: 1;
}
.landing .stat .l {
    font-family: var(--l-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ti-muted);
    margin-top: 0.35rem;
}

/* CTAs use the landing's own green rather than the app accent, so the marketing page
   keeps one confident voice regardless of the theme a visitor has chosen. */
.landing .btn-civic {
    background: var(--l-accent);
    border: 1px solid var(--l-accent);
    color: #fff;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.landing .btn-civic:hover { background: var(--l-accent-deep); border-color: var(--l-accent-deep); color: #fff; }
.landing .btn-civic-outline {
    border: 1px solid var(--ti-border);
    color: var(--ti-text);
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}
.landing .btn-civic-outline:hover { border-color: var(--l-accent); color: var(--l-accent); }
