/* =================================================================================================
   Task 619 - the two public pages: the home page a newcomer sees at "/" and /demo.

   Loaded AFTER site.css and only by Pages/Shared/_Public.cshtml, so nothing here can reach the app.
   Every colour is one of site.css's tokens (--plane, --surface, --ink, --s1 ...), which is what keeps
   the step from this page into the product from feeling like a different site - and what gives these
   pages the same dark-mode answer the board has.
   ================================================================================================= */

body.public {
    margin: 0;
    background: var(--plane);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.pub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .9rem clamp(1rem, 4vw, 3rem);
    background: #0f1f3d;
    color: #fff;
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.pub-brand small {
    display: block;
    font-weight: 400;
    font-size: .75rem;
    opacity: .75;
}

.pub-brand .dot {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: var(--s1);
    color: #fff;
}

.pub-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.pub-nav a {
    color: #dbe4f5;
    text-decoration: none;
}

.pub-nav a:hover,
.pub-nav a:focus-visible,
.pub-nav a[aria-current="page"] {
    color: #fff;
    text-decoration: underline;
}

.pub-nav .pub-login {
    border: 1px solid #5b77ad;
    border-radius: .5rem;
    padding: .35rem .9rem;
}

.pub-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
}

.pub-main h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.pub-main h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.pub-main section {
    margin-top: 3rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.5rem;
    align-items: center;
    margin-top: 2.5rem;
}

.hero-lede {
    font-size: 1.15rem;
    color: var(--ink-2);
    margin: 0 0 1.5rem;
}

.hero-note {
    color: var(--muted);
    font-size: .95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0 0 1rem;
}

.btn {
    display: inline-block;
    padding: .7rem 1.2rem;
    border-radius: .6rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    border-color: var(--s1);
}

.btn-primary {
    background: var(--s1);
    border-color: var(--s1);
    color: var(--s1-ink);
}

.btn-quiet {
    background: transparent;
}

.btn[disabled] {
    opacity: .6;
    cursor: progress;
}

.hero-shot,
.shots figure {
    margin: 0;
}

.hero-shot img,
.shots img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.cards,
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: var(--shadow);
    padding: 1.25rem 1.4rem;
}

.card h3 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--ink-2);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: .9rem 2rem;
}

.feature-list li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--ink-2);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--s1);
    font-weight: 700;
}

.feature-list strong {
    color: var(--ink);
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.shot-grid .shot-phone img {
    max-width: 16rem;
    margin: 0 auto;
}

.shots figcaption {
    margin-top: .5rem;
    color: var(--muted);
    font-size: .95rem;
}

.closing {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: 1.75rem;
    text-align: center;
}

.closing .hero-actions {
    justify-content: center;
}

/* ---- /demo ---------------------------------------------------------------------------------- */

.demo-head {
    margin-top: 2.5rem;
}

.demo-card h2 {
    margin: 0 0 .5rem;
}

.demo-card h3 {
    margin: 1rem 0 .4rem;
    font-size: 1rem;
}

.demo-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--ink-2);
}

.demo-creds {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .3rem .9rem;
    margin: 1.1rem 0;
    padding: .8rem 1rem;
    background: var(--wash);
    border-radius: .5rem;
}

.demo-creds dt {
    color: var(--muted);
}

.demo-creds dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.demo-creds code {
    font-size: .95rem;
    user-select: all;
}

.demo-status {
    min-height: 1.5rem;
    margin: 1rem 0 0;
    font-weight: 600;
}

.demo-notes ul {
    padding-left: 1.2rem;
    color: var(--ink-2);
}

.demo-notes li {
    margin-bottom: .5rem;
}

.pub-foot {
    border-top: 1px solid var(--border);
    padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

.pub-foot a {
    color: inherit;
}

@media (max-width: 60rem) {
    .hero {
        grid-template-columns: 1fr;
    }

    .shot-grid {
        grid-template-columns: 1fr;
    }
}
