/*  ═══════════════════════════════════════════════════════════════════════════
    KeyCodeSolar - the landing page only (Views/Home/Index.cshtml)

    Loaded by that page alone, through the layout's Styles section, so the
    sign-in and register pages that share _Layout keep site.css untouched.
    Everything is scoped under .lp.

    The palette is site.css's: navy ink, the sun's amber, the logo's blue.
    Green is added here for the one thing solar sells - energy made - and
    appears only on marks that mean "done" or "saved".

    Light only, like the rest of the public site (see site.css).
    ═══════════════════════════════════════════════════════════════════════════ */

.lp {
    --lp-navy:    #0E2A47;
    --lp-navy-2:  #123559;
    --lp-deep:    #081A2E;
    --lp-sun:     #F59E0B;
    --lp-sun-2:   #FBBF24;
    --lp-blue:    #2563EB;
    --lp-sky:     #7FB3E6;
    --lp-green:   #16A34A;
    --lp-soft:    #F5F8FC;
    --lp-line:    #E3E9F1;
    --lp-muted:   #5B6B80;
    --lp-on-dark: #C9D6E6;
}

.lp .eyebrow { color: var(--lp-blue); }

/* ═══════════════════════════════════════════════════════════════ hero === */

.lp-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 520px at 85% -10%, rgb(245 158 11 / .28), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgb(37 99 235 / .35), transparent 60%),
        linear-gradient(160deg, var(--lp-deep) 0%, var(--lp-navy) 55%, var(--lp-navy-2) 100%);
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem);
}

/*  The sun, rising behind the product.  */
.lp-sun {
    position: absolute;
    width: 540px; height: 540px;
    right: -120px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(251 191 36 / .55) 0%, rgb(245 158 11 / .22) 40%, transparent 70%);
    filter: blur(8px);
    animation: lp-breathe 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes lp-breathe { 50% { transform: scale(1.08); opacity: .85; } }

/*  A faint panel grid across the hero - the solar array as texture.  */
.lp-hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.lp-hero-in {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.lp-hero-copy { display: flex; flex-direction: column; gap: 1.4rem; }

.lp-pill {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .9rem;
    border: 1px solid rgb(255 255 255 / .18);
    border-radius: 999px;
    background: rgb(255 255 255 / .06);
    font-size: .85rem; color: var(--lp-on-dark);
}
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-sun); box-shadow: 0 0 0 4px rgb(245 158 11 / .25); }

.lp-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); }
.lp-glow {
    background: linear-gradient(90deg, var(--lp-sun-2), var(--lp-sun) 60%, #F97316);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.lp-lede { color: var(--lp-on-dark); font-size: 1.12rem; max-width: 36rem; margin: 0; }

.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.lp-btn-ghost { color: #fff; border-color: rgb(255 255 255 / .35); background: transparent; }
.lp-btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .08); }

.lp-trust {
    list-style: none; margin: .3rem 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
    font-size: .9rem; color: var(--lp-on-dark);
}
.lp-trust li { display: flex; align-items: center; gap: .45rem; }
.lp-trust li::before {
    content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
    background: var(--lp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ── the product window ── */

.lp-hero-art { position: relative; }

.lp-window {
    background: #fff;
    color: var(--text);
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .08);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform .5s ease;
}
.lp-hero-art:hover .lp-window { transform: none; }

.lp-window-bar {
    display: flex; align-items: center; gap: .4rem;
    padding: .6rem .9rem;
    background: var(--lp-soft);
    border-bottom: 1px solid var(--lp-line);
    font-size: .8rem;
}
.lp-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.lp-window-bar span:nth-child(1) { background: #F87171; }
.lp-window-bar span:nth-child(2) { background: #FBBF24; }
.lp-window-bar span:nth-child(3) { background: #34D399; }
.lp-window-bar b { margin-left: .6rem; font-weight: 600; }
.lp-window-bar em { margin-left: auto; font-style: normal; color: var(--lp-muted); font-size: .72rem; }

.lp-window-body { padding: 1rem; display: grid; gap: .85rem; }

.lp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.lp-kpis div {
    border: 1px solid var(--lp-line); border-radius: 10px;
    padding: .55rem .65rem;
    display: flex; flex-direction: column;
}
.lp-kpis small { font-size: .68rem; color: var(--lp-muted); }
.lp-kpis strong { font-size: 1.15rem; line-height: 1.3; }
.lp-kpis em { font-style: normal; font-size: .66rem; font-weight: 600; }
.lp-kpis em.up { color: var(--lp-green); }

.lp-chart, .lp-pipe { border: 1px solid var(--lp-line); border-radius: 10px; padding: .7rem .8rem; }
.lp-chart-head, .lp-pipe-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; margin-bottom: .4rem; }
.lp-chart-head span { display: flex; align-items: center; gap: .35rem; color: var(--lp-muted); font-size: .7rem; }
.lp-chart-head i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.lp-chart-head i.a { background: var(--lp-sun); }
.lp-chart-head i.e { background: var(--lp-sky); margin-left: .4rem; }
.lp-chart svg { width: 100%; height: 110px; display: block; }

.lp-pipe-head span { font-weight: 700; }
.lp-pipe-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.lp-pipe-bar i { width: var(--w); background: var(--c); }
.lp-pipe-keys { display: flex; justify-content: space-between; font-size: .64rem; color: var(--lp-muted); margin-top: .35rem; }

/* ── floating chips ── */

.lp-float {
    position: absolute;
    display: flex; align-items: center; gap: .65rem;
    background: #fff; color: var(--text);
    border-radius: 12px;
    padding: .6rem .85rem .6rem .6rem;
    box-shadow: 0 18px 40px -16px rgb(0 0 0 / .5);
    font-size: .82rem;
    animation: lp-float 6s ease-in-out infinite;
}
.lp-float b { display: block; line-height: 1.2; }
.lp-float small { color: var(--lp-muted); font-size: .72rem; }
.lp-float-a { left: -28px; bottom: -26px; }
.lp-float-b { right: -18px; top: -38px; animation-delay: -3s; }
@keyframes lp-float { 50% { transform: translateY(-8px); } }

/* ── icon tiles, shared ── */

.lp-ico {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    border-radius: 11px;
}
.lp-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-ico-sun   { background: #FEF3C7; color: #B45309; }
.lp-ico-blue  { background: #DBEAFE; color: #1D4ED8; }
.lp-ico-green { background: #DCFCE7; color: #15803D; }
.lp-float .lp-ico { width: 36px; height: 36px; border-radius: 9px; }
.lp-float .lp-ico svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════ numbers === */

.lp-band { background: #fff; border-bottom: 1px solid var(--lp-line); }
.lp-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding-block: 1.8rem;
}
.lp-stats div { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: .5rem; }
.lp-stats div + div { border-left: 1px solid var(--lp-line); }
.lp-stats strong {
    font-family: var(--display); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1;
    background: linear-gradient(180deg, var(--lp-sun), #D97706);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-stats span { font-size: .9rem; color: var(--lp-muted); }

/* ═══════════════════════════════════════════════════════════ sections === */

.lp-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.lp-soft { background: var(--lp-soft); }

.lp-head { max-width: 46rem; margin: 0 auto 2.8rem; text-align: center; display: grid; gap: .8rem; }
.lp-head p { margin: 0; color: var(--lp-muted); font-size: 1.05rem; }

/* ── the nine steps ── */

.lp-flow {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(9, 1fr); gap: .6rem;
    position: relative;
}
.lp-flow::before {
    content: ""; position: absolute; left: 5%; right: 5%; top: 22px; height: 3px;
    background: linear-gradient(90deg, var(--lp-sky), var(--lp-blue), var(--lp-sun), var(--lp-green));
    border-radius: 3px;
}
.lp-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.lp-step {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; border: 3px solid var(--lp-blue);
    font-weight: 700; color: var(--lp-navy);
    margin-bottom: .45rem;
    transition: transform .2s ease, background .2s ease;
}
.lp-flow li:nth-child(n+4) .lp-step { border-color: var(--lp-sun); }
.lp-flow li:nth-child(n+7) .lp-step { border-color: var(--lp-green); }
.lp-flow li:hover .lp-step { transform: scale(1.1); background: #FFFBEB; }
.lp-flow b { font-size: .92rem; }
.lp-flow small { font-size: .76rem; color: var(--lp-muted); line-height: 1.35; }

/* ── feature cards ── */

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lp-card {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    padding: 1.4rem;
    display: grid; gap: .6rem; align-content: start;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgb(14 42 71 / .45); border-color: #C9D8EA; }
.lp-card h3 { font-size: 1.12rem; margin-top: .3rem; }
.lp-card p { margin: 0; color: var(--lp-muted); font-size: .94rem; }

/* ── split rows ── */

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-split-copy { display: grid; gap: 1rem; }

.lp-checks { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.lp-checks li { position: relative; padding-left: 2rem; color: var(--lp-muted); }
.lp-checks li b { color: var(--text); }
.lp-checks li::before {
    content: ""; position: absolute; left: 0; top: .2rem;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--lp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── the sample quotation ── */

.lp-quote {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 16px;
    box-shadow: 0 30px 60px -30px rgb(14 42 71 / .45);
    padding: 1.4rem;
    display: grid; gap: 1rem;
    position: relative;
}
.lp-quote::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--lp-sun), var(--lp-blue));
}
.lp-quote small { display: block; font-size: .74rem; color: var(--lp-muted); }
.lp-quote-top { display: flex; justify-content: space-between; align-items: center; }
.lp-quote-top b { font-size: 1.1rem; }
.lp-tag { font-size: .74rem; font-weight: 600; background: #DCFCE7; color: #15803D; padding: .25rem .6rem; border-radius: 999px; }
.lp-quote-sys { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.lp-quote-sys div { background: var(--lp-soft); border-radius: 10px; padding: .6rem .7rem; }
.lp-quote-sys b { font-size: .9rem; }
.lp-quote table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lp-quote td { padding: .5rem 0; border-bottom: 1px dashed var(--lp-line); }
.lp-quote td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lp-quote .lp-minus td { color: var(--lp-green); font-weight: 600; }
.lp-quote .lp-total td { border-bottom: 0; padding-top: .8rem; font-weight: 700; font-size: 1.1rem; }
.lp-quote-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lp-quote-foot div { border-radius: 10px; padding: .7rem .8rem; background: #FFFBEB; border: 1px solid #FDE68A; }
.lp-quote-foot b { font-size: 1.2rem; color: #B45309; }

/* ═══════════════════════════════════════════════════════════ the app === */

.lp-dark {
    background:
        radial-gradient(700px 400px at 100% 0%, rgb(245 158 11 / .16), transparent 60%),
        linear-gradient(180deg, var(--lp-navy), var(--lp-deep));
    color: #fff;
}
.lp-dark h2 { color: #fff; }
.lp-dark .eyebrow { color: var(--lp-sun-2); }
.lp-dim { color: var(--lp-on-dark); margin: 0; font-size: 1.05rem; }
.lp-checks-dark li { color: var(--lp-on-dark); }
.lp-checks-dark li b { color: #fff; }
.lp-split-rev > :first-child { justify-self: center; }

.lp-phone {
    width: 290px;
    border-radius: 38px;
    padding: 12px;
    background: #0B1220;
    box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), inset 0 0 0 2px #26324A;
    position: relative;
}
.lp-phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; border-radius: 12px; background: #0B1220; z-index: 2; }
.lp-phone-screen {
    background: var(--lp-soft);
    color: var(--text);
    border-radius: 28px;
    padding: 2.6rem .9rem 1rem;
    display: grid; gap: .6rem;
    min-height: 480px; align-content: start;
}
.lp-phone-head small { display: block; color: var(--lp-muted); font-size: .75rem; }
.lp-phone-head b { font-size: 1.15rem; }
.lp-phone-check {
    display: flex; align-items: center; gap: .5rem;
    background: #DCFCE7; color: #166534;
    border-radius: 10px; padding: .55rem .7rem; font-size: .8rem; font-weight: 600;
}
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green); box-shadow: 0 0 0 3px rgb(22 163 74 / .25); }
.lp-phone-job {
    background: #fff; border: 1px solid var(--lp-line); border-radius: 12px;
    padding: .65rem .75rem; display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; align-items: center;
}
.lp-phone-job b { font-size: .86rem; }
.lp-phone-job small { grid-column: 1; font-size: .74rem; color: var(--lp-muted); }
.lp-phone-job i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: .68rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: #FEF3C7; color: #B45309; }
.lp-phone-job i.b { background: #DBEAFE; color: #1D4ED8; }
.lp-phone-job i.g { background: #DCFCE7; color: #15803D; }
.lp-phone-scan {
    margin-top: .3rem;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--lp-sun); color: #111827; font-weight: 700; font-size: .86rem;
    border-radius: 12px; padding: .75rem;
}
.lp-phone-scan svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ═══════════════════════════════════════════════════════════ roles === */

.lp-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.lp-roles div {
    border: 1px solid var(--lp-line); border-radius: 12px;
    padding: 1rem 1.1rem;
    display: grid; gap: .15rem;
    background: #fff;
    border-left: 4px solid var(--lp-blue);
}
.lp-roles div:nth-child(3n+2) { border-left-color: var(--lp-sun); }
.lp-roles div:nth-child(3n) { border-left-color: var(--lp-green); }
.lp-roles small { color: var(--lp-muted); font-size: .85rem; }

/* ═══════════════════════════════════════════════════════════ security === */

.lp-secure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.lp-secure-card { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.lp-secure-card h3 { font-size: 1.05rem; }
.lp-secure-card p { margin: 0; color: var(--lp-muted); font-size: .92rem; }

/* ═══════════════════════════════════════════════════════════ final call === */

.lp-final {
    background:
        radial-gradient(600px 300px at 15% 0%, rgb(255 255 255 / .35), transparent 60%),
        linear-gradient(120deg, var(--lp-sun-2), var(--lp-sun) 50%, #F97316);
    color: #111827;
    padding-block: clamp(3rem, 7vw, 5rem);
}
.lp-final-in { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.lp-final h2 { max-width: 40rem; }
.lp-final p { margin: 0; max-width: 38rem; font-size: 1.08rem; color: #3B2A06; }
.lp-final .lp-cta { justify-content: center; margin-top: .4rem; }
.lp-btn-dark { background: var(--lp-navy); color: #fff; border-color: var(--lp-navy); }
.lp-btn-dark:hover { background: var(--lp-navy-2); border-color: var(--lp-navy-2); }
.lp-btn-line { background: transparent; color: #111827; border-color: rgb(17 24 39 / .45); }
.lp-btn-line:hover { border-color: #111827; background: rgb(255 255 255 / .25); }

/* ═══════════════════════════════════════════════════════════ narrower === */

@media (max-width: 1080px) {
    .lp-flow { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
    .lp-flow::before { display: none; }
    .lp-secure { grid-template-columns: repeat(2, 1fr); }
    .lp-roles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .lp-hero-in, .lp-split { grid-template-columns: 1fr; }
    .lp-window { transform: none; }
    .lp-float-a { left: 8px; }
    .lp-float-b { right: 8px; }
    .lp-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-split-rev > :first-child { order: 2; }
}

@media (max-width: 600px) {
    .lp-kpis { grid-template-columns: repeat(2, 1fr); }
    .lp-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
    .lp-stats div:nth-child(3) { border-left: 0; }
    .lp-grid, .lp-secure, .lp-roles { grid-template-columns: 1fr; }
    .lp-flow { grid-template-columns: repeat(2, 1fr); }
    .lp-quote-sys { grid-template-columns: 1fr 1fr; }
    .lp-float { display: none; }
    .lp-phone { width: 260px; }
}
