/* Light corporate theme for the public pages (LandingLayout). Scoped to .landing-light so the
   dark app pages keep their look. The tokens are global so pieces already migrated on the
   signed-in pages (the navbar and its dropdown menus) can use them too; defining them changes nothing.
   Blues: navy-dark (nav, CTA), navy (primary), accent (highlights), tint (icon tiles). */
:root {
    --lt-bg: #f8fafc;
    --lt-surface: #ffffff;
    --lt-text: #0f172a;
    --lt-muted: #475569;
    --lt-navy: #1e3a8a;
    --lt-navy-dark: #172554;
    --lt-gradient: linear-gradient(135deg, var(--lt-navy-dark) 0%, var(--lt-navy) 100%);
    --lt-accent: #2563eb;
    --lt-border: #e2e8f0;
    --lt-tint: #dbeafe;
    --lt-mint: #dcfce7;
}

body:has(.landing-light) {
    --landing-muted: var(--lt-muted);
    --landing-accent: var(--lt-accent);
    --landing-border: var(--lt-border);
    background: var(--lt-bg);
    /* Short pages (e.g. sign in) stretch the content so the footer sits at the bottom of the viewport. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-light {
    flex-grow: 1;
    background: var(--lt-bg);
    color: var(--lt-text);
    padding-top: 88px;
}

/* Signed-in pages (MainLayout, AuthLayout): one container below the navbar. */
.app-page {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.landing-light .bg-gradient-info,
.landing-light .bg-gradient-primary {
    background: linear-gradient(135deg, var(--lt-accent), var(--lt-navy)) !important;
}

.landing-light h1,
.landing-light h2,
.landing-light h3,
.landing-light h4,
.landing-light h5,
.landing-light h6,
.landing-light .text-dark {
    color: var(--lt-text) !important;
}

.landing-light .gradient-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--lt-navy) !important;
}

.landing-light .text-muted {
    color: var(--lt-muted) !important;
}

.landing-light .btn-light {
    background: var(--lt-navy);
    color: white;
}

.landing-light .btn-light:hover {
    background: var(--lt-navy-dark);
    color: white;
}

.landing-light .btn-outline-light {
    color: var(--lt-navy);
    border-color: var(--lt-navy);
}

.landing-light .btn-outline-light:hover {
    background: var(--lt-navy);
    color: white;
}

.landing-light .glass-card {
    background: var(--lt-surface);
    border: 1px solid var(--lt-border);
    color: var(--lt-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    backdrop-filter: none;
}

.landing-light .glass-card p {
    color: var(--lt-muted);
}

.landing-light .glass-card:hover {
    background: var(--lt-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.landing-light .form-control,
.landing-light .form-select {
    background: var(--lt-surface);
    color: var(--lt-text);
    border-color: #cbd5e1;
}

.landing-light .form-floating > .form-control::placeholder {
    color: transparent;
}

.landing-light .form-floating > label {
    color: var(--lt-muted);
}

.landing-light .contact-steps strong {
    color: var(--lt-text);
}

.landing-light .contact-step-number {
    background: var(--lt-tint);
    border-color: var(--lt-accent);
}

.landing-light .contact-section {
    padding-top: var(--space-12);
}

.login-section {
    padding: var(--space-12) 0 var(--space-16);
}

.login-column {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
}

.landing-light .form-check-label {
    color: var(--lt-muted);
}

.landing-light .alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.login-card {
    padding: var(--space-8);
    margin-top: var(--space-6);
}

.landing-light .login-card .form-check-input {
    background-color: var(--lt-surface);
    border-color: #94a3b8;
}

.landing-light .login-card .form-check-input:checked {
    background-color: var(--lt-navy);
    border-color: var(--lt-navy);
}

.login-help {
    margin-top: var(--space-6);
    text-align: center;
    color: var(--lt-muted);
}

.landing-light .contact-details a {
    color: var(--lt-accent);
}

.contact-details {
    margin: 0;
    line-height: 1.8;
}

/* Example figures: three centred tiles in a row. */
.lt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.lt-stat {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--lt-surface);
    border: 1px solid var(--lt-border);
    border-radius: var(--radius-lg);
}

.lt-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--lt-navy);
}

.lt-stat p {
    color: var(--lt-muted);
    margin: 0;
}

.lt-stats-note {
    max-width: 48rem;
    margin: var(--space-8) auto 0;
    text-align: center;
}

.lt-faq {
    max-width: 48rem;
    margin: 0 auto;
}

.lt-faq details {
    border-top: 1px solid var(--lt-border);
    padding: var(--space-4) 0;
}

.lt-faq details:last-child {
    border-bottom: 1px solid var(--lt-border);
}

.lt-faq summary {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
}

.lt-faq p {
    color: var(--lt-muted);
    margin: var(--space-3) 0 0;
}

.lt-hero {
    padding: var(--space-16) 0 var(--space-20);
    background: var(--lt-bg);
}

.lt-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

.lt-accent {
    color: var(--lt-navy);
}

.lt-plan-card {
    background: var(--lt-surface);
    border: 1px solid var(--lt-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: var(--space-6);
}

.lt-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.lt-plan-title {
    font-weight: 700;
}

.lt-plan-sub {
    font-size: 0.8rem;
    color: var(--lt-muted);
}

.lt-plan-chart {
    width: 100%;
    height: auto;
    display: block;
}

.lt-band {
    fill: var(--lt-mint);
}

.lt-measured,
.lt-forecast {
    fill: none;
    stroke: var(--lt-navy);
    stroke-width: 2.5;
}

.lt-forecast {
    stroke-dasharray: 6 5;
}

.lt-heat rect {
    fill: #fdba74;
}

.lt-cool rect {
    fill: color-mix(in srgb, var(--lt-accent) 45%, white);
}

.lt-now {
    stroke: #94a3b8;
    stroke-dasharray: 4 4;
}

.lt-axis {
    font-size: 11px;
    fill: #64748b;
}

.lt-plan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    font-size: 0.78rem;
    color: var(--lt-muted);
    margin: var(--space-3) 0 var(--space-4);
}

.lt-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: var(--space-2);
    vertical-align: -1px;
}

.lt-swatch-band {
    background: var(--lt-mint);
}

.lt-swatch-line {
    background: var(--lt-navy);
    height: 3px;
    vertical-align: 3px;
}

.lt-swatch-heat {
    background: #fdba74;
}

.lt-swatch-cool {
    background: color-mix(in srgb, var(--lt-accent) 45%, white);
}

.lt-log {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.lt-log li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--lt-border);
}

.lt-log-time {
    font-weight: 700;
    color: var(--lt-accent);
    flex-shrink: 0;
}

.lt-pillars {
    background: var(--lt-surface);
    border-top: 1px solid var(--lt-border);
    border-bottom: 1px solid var(--lt-border);
    padding: var(--space-10) 0;
}

.lt-pillar {
    display: flex;
    gap: var(--space-4);
}

.lt-pillar > i {
    font-size: 1.4rem;
    color: var(--lt-accent);
    margin-top: 0.3rem;
}

.lt-pillar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.lt-pillar p {
    color: var(--lt-muted);
    margin: 0;
}

.lt-section {
    padding: var(--space-20) 0;
}

.lt-section-alt {
    background: var(--lt-surface);
    border-top: 1px solid var(--lt-border);
    border-bottom: 1px solid var(--lt-border);
}

.lt-checks {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
}

.lt-checks li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.lt-checks i {
    color: var(--success);
    margin-top: 0.35rem;
}

.lt-asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.lt-asset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-3);
    background: var(--lt-surface);
    border: 1px solid var(--lt-border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
}

.lt-asset i,
.lt-icon-tile {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lt-tint);
    color: var(--lt-navy);
    font-size: 1.2rem;
}

/* Savings analysis: a white document page with a checklist and a sticky sidebar, deliberately
   unlike the landing page's full-width bands. */
body:has(.sa-page) .landing-light {
    background: var(--lt-surface);
}

.sa-page {
    padding: var(--space-12) 0 var(--space-20);
}

.sa-group {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--lt-border);
}

.sa-group:first-of-type {
    margin-top: var(--space-8);
}

.sa-group-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sa-group-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.sa-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--space-12) 0 var(--space-4);
}

.sa-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sa-list li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-1) 0;
}

.sa-list i {
    color: var(--lt-accent);
    margin-top: 0.3rem;
}

.sa-request {
    margin-top: var(--space-12);
}

.sa-aside {
    position: sticky;
    top: 110px;
    padding: var(--space-6);
    background: var(--lt-bg);
    border: 1px solid var(--lt-border);
    border-radius: var(--radius-lg);
}

.sa-aside h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.sa-aside .lt-checks {
    margin: 0 0 var(--space-6);
    font-size: 0.95rem;
}

.sa-steps {
    padding-left: 1.25rem;
    margin-bottom: var(--space-6);
    color: var(--lt-muted);
    font-size: 0.95rem;
}

.sa-steps li {
    padding: var(--space-1) 0;
}

.sa-steps strong {
    color: var(--lt-text);
}

@media (max-width: 767.98px) {
    .sa-group {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
}

.lt-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
}

.lt-timeline::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: 12%;
    right: 12%;
    border-top: 2px dashed #cbd5e1;
}

.lt-timeline li {
    position: relative;
    text-align: center;
}

.lt-step {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lt-navy);
    color: white;
    font-weight: 700;
    margin-bottom: var(--space-4);
    position: relative;
}

.lt-timeline h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.lt-timeline a,
.sa-request a,
.login-help a {
    color: var(--lt-accent);
}

.lt-timeline p {
    color: var(--lt-muted);
}

.lt-cta {
    background: var(--lt-gradient);
    padding: var(--space-20) 0;
}

.landing-light .lt-cta .cta-title {
    color: white !important;
}

.lt-cta .cta-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.landing-light .lt-cta .btn-light {
    background: white;
    color: var(--lt-navy);
}

.landing-light .lt-cta .btn-outline-light {
    color: white;
    border-color: white;
}

.landing-light .lt-cta .btn-outline-light:hover {
    background: white;
    color: var(--lt-navy);
}

.lt-footnote-mark {
    color: inherit;
    text-decoration: none;
    vertical-align: super;
    font-size: 0.6em;
}

.lt-footnote {
    padding: var(--space-6) 0;
    background: var(--lt-bg);
}

/* Slate-500: the lightest grey that still meets WCAG AA on the page background. */
.lt-footnote p {
    font-size: 0.68rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

@media (max-width: 991.98px) {
    .lt-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .lt-timeline::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .lt-title {
        font-size: 2.25rem;
    }

    .lt-stats {
        grid-template-columns: 1fr;
    }

    .lt-asset-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lt-timeline {
        grid-template-columns: 1fr;
    }
}
