/*
   Landing page
   ------------
   Sits on top of theme.css, which holds the palette and the shared controls.
   Everything here is prefixed .lp- so it cannot collide with the application
   screens. No framework, same as the rest of the project.
*/

.lp { background: var(--cream); }

.lp .ic {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.18em;
}

/* ---------- Marquee of current offers ---------- */

.lp-marquee {
    --loop: 25s;
    overflow: hidden;
    background: var(--green-700);
    color: var(--gold-100);
    font-size: .85rem;
}

.lp-marquee-track {
    display: flex;
    width: max-content;
    animation: lp-scroll var(--loop) linear infinite;
}

.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }

.lp-marquee-run {
    display: flex;
    gap: 2.5rem;
    padding: .5rem 1.25rem;
}

.lp-offer { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.lp-offer a { color: var(--gold); text-decoration: none; }
.lp-offer a:hover { text-decoration: underline; }
.lp-offer .ic { color: var(--gold); }

@keyframes lp-scroll {
    to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--green);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.lp-nav .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}

.lp .brand-name {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.1rem;
    font-weight: 650;
    white-space: nowrap;
}

.lp-nav .brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; }
.lp-nav .brand small { letter-spacing: .02em; text-transform: none; }

.lp-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.lp-links > a:not(.btn) {
    padding: .4rem .7rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .84);
    font-size: .9rem;
    text-decoration: none;
}

.lp-links > a:not(.btn):hover { background: rgba(255, 255, 255, .1); color: #fff; }

.lp-links .lp-signin { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.lp-links .lp-signin:hover { border-color: var(--gold); color: var(--gold); }

.lp-burger {
    display: none;
    margin-left: auto;
    padding: .4rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lp-burger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: #fff;
    transition: transform .15s, opacity .15s;
}

.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.lp-hero {
    padding-block: 3.5rem 3rem;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(201, 162, 39, .18), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
}

.lp-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    grid-template-columns: 1.05fr .95fr;
}

.lp-kick {
    margin-bottom: .5rem;
    color: var(--gold-600);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lp-hero h1 {
    margin-bottom: .75rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}

.lp-lede {
    max-width: 34rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.lp-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }

.btn-lg { padding: .7rem 1.35rem; font-size: .98rem; }

.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--green); }
.btn-ghost:hover:not([disabled]) { border-color: var(--green); background: #fff; }

.lp-note { margin-top: 1.25rem; max-width: 34rem; color: var(--ink-faint); font-size: .88rem; }

.lp-hero-art { position: relative; min-height: 260px; }

.lp-slide {
    margin: 0;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}

.lp-slide.on { opacity: 1; pointer-events: auto; position: relative; }

.lp-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lp-slide figcaption {
    margin-top: .5rem;
    color: var(--ink-faint);
    font-size: .82rem;
    text-align: center;
}

/* ---------- Sections ---------- */

.lp-section { padding-block: 3.25rem; }
.lp-band { background: #fff; border-block: 1px solid var(--line); }

.lp-head { margin-bottom: 1.75rem; text-align: center; }
.lp-head-left { text-align: left; }

.lp-eyebrow {
    margin-bottom: .35rem;
    color: var(--gold-600);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lp-head h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); letter-spacing: -.01em; }

.lp-sub {
    margin: 2rem 0 .9rem;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Clients ---------- */

.lp-clients { padding-block: 1.5rem; border-block: 1px solid var(--line); background: #fff; }
.lp-clients .lp-eyebrow { text-align: center; }

.lp-logos {
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.lp-logos img { max-height: 34px; width: auto; opacity: .75; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.lp-logos li:hover img { opacity: 1; filter: none; }
.lp-logos span { color: var(--ink-faint); font-weight: 650; }

/* ---------- Feature cards ---------- */

.lp-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.lp-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.lp-card:hover { transform: translateY(-2px); border-color: var(--green-300); box-shadow: var(--shadow); }
.lp-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.lp-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.lp-card.is-soon { background: #fbf9f3; border-style: dashed; }

.lp-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: .7rem;
    border-radius: 9px;
    background: var(--green);
    color: var(--gold);
}

.lp-ico .ic { width: 1.3rem; height: 1.3rem; }

.lp-tag {
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--warn);
    font-size: .66rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Modules ---------- */

.lp-modules {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lp-module {
    display: flex;
    gap: .85rem;
    padding: .95rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
}

.lp-module .lp-ico { margin-bottom: 0; width: 2.1rem; height: 2.1rem; }
.lp-module h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .95rem; margin-bottom: .15rem; }
.lp-module p { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.lp-module.is-soon .lp-ico { background: var(--line-strong); color: #fff; }

/* ---------- Plans ---------- */

.lp-plans {
    display: grid;
    gap: 1.1rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.lp-plan.is-popular {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .16), var(--shadow);
}

.lp-ribbon {
    position: absolute;
    top: -.7rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .18rem .7rem;
    border-radius: 999px;
    background: var(--gold);
    color: #22200f;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-plan h3 { font-size: 1.1rem; }
.lp-plan-tag { color: var(--ink-faint); font-size: .85rem; }

.lp-price { display: flex; align-items: baseline; gap: .15rem; margin: .6rem 0 .2rem; color: var(--green); }
.lp-price .cur { font-size: 1.1rem; font-weight: 650; }
.lp-price .amt { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.lp-price .per { margin-left: .2rem; color: var(--ink-faint); font-size: .82rem; font-weight: 500; }

.lp-trial { margin: 0 0 .5rem; color: var(--ok); font-size: .82rem; font-weight: 600; }

.lp-plan-lines {
    flex: 1;
    margin: .85rem 0 1.1rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .4rem;
}

.lp-plan-lines li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .88rem;
}

.lp-plan-lines .ic { margin-top: .12rem; color: var(--ok); }
.lp-plan-lines .is-out { color: var(--ink-faint); text-decoration: line-through; }
.lp-plan-lines .is-out .ic { color: var(--line-strong); text-decoration: none; }

/* ---------- Posters ---------- */

.lp-posters { padding-block: 2rem; }

.lp-poster-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lp-poster { margin: 0; }

.lp-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.lp-poster figcaption { margin-top: .4rem; color: var(--ink-faint); font-size: .82rem; }

/* ---------- Reviews ---------- */

.lp-reviews {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lp-review {
    margin: 0;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
}

.lp-stars { color: var(--line-strong); font-size: 1rem; letter-spacing: .1em; }
.lp-stars .on { color: var(--gold); }

.lp-review blockquote { margin: .5rem 0 .9rem; color: var(--ink); font-size: .93rem; line-height: 1.6; }

.lp-review figcaption { display: flex; align-items: center; gap: .6rem; }
.lp-review figcaption img { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; }
.lp-review figcaption b { display: block; font-size: .88rem; }
.lp-review figcaption small { color: var(--ink-faint); font-size: .78rem; }

.lp-leave { margin-top: 1.5rem; }

.lp-leave > summary {
    display: inline-block;
    padding: .45rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: .88rem;
}

.lp-leave[open] > summary { margin-bottom: .9rem; }

.lp-leave form {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.lp-fields {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---------- FAQ ---------- */

.lp-faq-wrap { max-width: 46rem; }

.lp-q {
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.lp-q > summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem .2rem;
    color: var(--green);
    font-size: .96rem;
    font-weight: 600;
    list-style: none;
}

.lp-q > summary::-webkit-details-marker { display: none; }
.lp-q > summary .ic { margin-left: auto; color: var(--ink-faint); transition: transform .15s; }
.lp-q[open] > summary .ic { transform: rotate(180deg); }
.lp-q > summary:hover { color: var(--gold-600); }

.lp-a { padding: 0 .2rem 1rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }

/* ---------- Contact ---------- */

.lp-contact {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: 1fr 1fr;
}

.lp-contact-list { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: .7rem; }
.lp-contact-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; }
.lp-contact-list .ic { margin-top: .15rem; color: var(--gold-600); }
.lp-contact-list a { color: var(--green); text-decoration: none; }
.lp-contact-list a:hover { color: var(--gold-600); text-decoration: underline; }

.lp-map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.lp-map iframe { display: block; width: 100%; height: 240px; border: 0; }

.lp-form { margin: 0; }
.lp-form h3 { margin-bottom: .9rem; }

/* ---------- Footer ---------- */

.lp-foot { background: var(--green); color: rgba(255, 255, 255, .78); }

.lp-foot .brand { color: #fff; }

.lp-foot-grid {
    display: grid;
    gap: 2rem;
    padding-block: 2.5rem 1.75rem;
    grid-template-columns: 2fr 1fr 1fr;
}

.lp-foot-note { margin-top: .5rem; color: rgba(255, 255, 255, .55); font-size: .85rem; }

.lp-foot-links h4 {
    margin-bottom: .6rem;
    color: var(--gold);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lp-foot-links a {
    display: block;
    padding: .2rem 0;
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
    text-decoration: none;
}

.lp-foot-links a:hover { color: var(--gold); }

.lp-social { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }

.lp-social a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-size: .78rem;
    text-decoration: none;
}

.lp-social a:hover { border-color: var(--gold); color: var(--gold); }

.lp-foot-base {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding-block: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}

.lp-foot-base .spacer { margin-left: auto; }
.lp-foot-base a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.lp-foot-base a:hover { color: var(--gold); }

/* ---------- WhatsApp button ---------- */

.lp-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .95rem;
    border-radius: 999px;
    background: #1f8a4c;
    color: #fff;
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.lp-whatsapp:hover { background: #19703d; color: #fff; }
.lp-whatsapp .ic { width: 1.3rem; height: 1.3rem; }

/* Toasts share the bottom-right corner, so lift them clear. */
.lp .toasts { bottom: 4.5rem; }

/* ---------- Vastra on Android ---------- */

/*  Four real phone screenshots in frames. They scroll sideways on a narrow
    screen rather than shrinking to stamps - a dashboard at 90px wide tells a
    visitor nothing, and this band exists to be READ.  */
.lp-android { background: var(--green); color: #fff; }
.lp-android .lp-eyebrow { color: var(--gold); }
.lp-android h2 { color: #fff; }
.lp-android .lp-lede { color: rgba(255, 255, 255, .82); max-width: 46rem; }

.lp-phones {
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}

.lp-phone { margin: 0; text-align: center; }

/*  The frame: a dark bezel with a rounded screen, so a screenshot with a pale
    background does not float loose on the green.  */
.lp-phone img {
    display: block;
    width: 200px;
    height: auto;
    border-radius: 18px;
    border: 7px solid #0b241b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    background: #0b241b;
}

.lp-phone figcaption {
    margin-top: .7rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
}

.lp-android-note {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-size: .92rem;
}

.lp-android-note strong { color: var(--gold); font-weight: 650; }

@media (max-width: 700px) {
    /*  One row that slides, not four stamps.  */
    .lp-phones {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: .75rem;
        scroll-snap-type: x mandatory;
    }
    .lp-phone { flex: 0 0 auto; scroll-snap-align: center; }
    .lp-phone img { width: 168px; }
}

/* ---------- Legal pages ---------- */

.lp-prose { max-width: 46rem; }
.lp-prose h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lp-doc-meta { color: var(--ink-faint); font-size: .85rem; }
.lp-doc { margin-top: 1.5rem; line-height: 1.75; }
.lp-doc h2 { margin-top: 2rem; font-size: 1.15rem; }
.lp-doc h3 { margin-top: 1.5rem; font-size: 1rem; }
.lp-doc ul, .lp-doc ol { padding-left: 1.25rem; }
.lp-doc li { margin-bottom: .4rem; }

/*  The data-safety table. Google Play asks what is collected, what is shared
    and why, and a table is how a reviewer expects to read it - but .lp-doc had
    no table rule at all, so it came out as unruled text (20-09).  */
.lp-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.lp-doc th, .lp-doc td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.lp-doc thead th { background: var(--cream); font-weight: 650; }
.lp-doc td small { color: var(--ink-faint); }

/*  How to reach us - the same panel on all three legal pages
    (Views/Landing/_LegalContact.cshtml).  */
.lp-doc-contact { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.lp-doc-contact h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.lp-doc-contact-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.lp-doc-contact-list li { margin-bottom: .3rem; color: var(--ink-soft); }

/*  The deletion request form, under the document that explains it.  */
.lp-delete-form { margin-top: 2rem; }
.lp-delete-form h2 { margin-top: 0; font-size: 1.1rem; }
.lp-check { display: flex; align-items: flex-start; gap: .55rem; margin: .9rem 0; line-height: 1.5; }
.lp-check input { margin-top: .25rem; }
.hint-inline { color: var(--ink-faint); font-weight: 400; }


/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero-art { order: -1; min-height: 0; }
    .lp-contact { grid-template-columns: 1fr; }
    .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .lp-burger { display: block; }

    .lp-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        margin: 0;
        padding: .75rem 1.25rem 1rem;
        background: var(--green-700);
        box-shadow: var(--shadow);
    }

    .lp-links.is-open { display: flex; }
    .lp-links .btn { justify-content: center; }

    .lp-nav .wrap { position: relative; }
    .lp-hero { padding-block: 2.25rem; }
    .lp-section { padding-block: 2.25rem; }
    .lp-foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .lp-whatsapp span { display: none; }
    .lp-whatsapp { padding: .8rem; }
}

/* ================================================================== auth === */

/*
    Sign in, sign up, set a new password, and the "not allowed" page. All four
    are the same shape: one card, centred, on its own. The class was in the
    markup from the start; the rules were not, which is why the card sat flush
    against the left edge under the header.

    The card is narrow on purpose. A sign-in form that stretches to 1080px makes
    two short fields look like a mistake, and a measure this tight keeps the eye
    on one thing.
*/

.lp-auth {
    display: grid;
    place-items: center;
    padding: clamp(2rem, 7vh, 4.5rem) 1.25rem;

    /* Fills the space between the sticky header and the one-line footer, so the
       card sits optically centred rather than clinging to the top. */
    min-height: min(720px, calc(100vh - 124px));

    /* A faint warm lift behind the card. Cream on cream leaves the card looking
       like a box drawn on the page rather than one resting on it. */
    background:
        radial-gradient(60rem 30rem at 50% -10%, rgba(201, 162, 39, .10), transparent 70%),
        var(--cream);
}

.lp-auth-card {
    width: 100%;
    max-width: 27rem;
    margin: 0;
    padding: 1.9rem 1.85rem 1.75rem;
    border-radius: 14px;
    box-shadow: var(--shadow);

    /* The same gold edge that marks the current page in the admin sidebar and an
       unread message in the inbox. One accent, used consistently. */
    border-top: 3px solid var(--gold);
}

.lp-auth-card h1 {
    margin: 0 0 .3rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.lp-auth-card .lede {
    margin: 0 0 1.4rem;
    font-size: .92rem;
    line-height: 1.55;
}

.lp-auth-card .field { margin-bottom: 1rem; }

.lp-auth-card .field > label {
    font-size: .85rem;
    font-weight: 600;
}

.lp-auth-card input {
    width: 100%;
    padding: .62rem .75rem;
    font-size: .97rem;
}

/* The one action on the page, so it takes the full width and says so. */
.lp-auth-card button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: .4rem;
}

/* Alt+S. Quiet on the button rather than competing with the label. */
.lp-auth-card button[type="submit"] kbd { opacity: .62; font-size: .72rem; }

/* Password and repeat-password sit side by side when there is room, and stack
   when there is not - the card is narrow enough that this is usually stacked. */
.lp-auth-card .lp-fields { gap: 0 .85rem; }

.lp-auth-card .note { margin-bottom: 1.25rem; }

.lp-auth-card > .hint:last-child {
    margin: 1.15rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .88rem;
}

.lp-auth-card > .hint:last-child a { font-weight: 600; }

/* Denied gives two ways out rather than one action. */
.lp-auth-card .row { gap: .6rem; flex-wrap: wrap; }
.lp-auth-card .row form { margin: 0; }

@media (max-width: 480px) {
    .lp-auth { padding: 1.5rem .9rem; min-height: 0; }
    .lp-auth-card { padding: 1.5rem 1.25rem 1.4rem; border-radius: 12px; }
    .lp-auth-card h1 { font-size: 1.32rem; }
}

/* ============================================== wrappers the markup uses === */

/*
    Three containers that were in Index.cshtml from the start with no rules
    behind them. Each one is a wrapper, so the effect of their absence was
    spacing and measure rather than anything visibly broken - the hero text
    running the full grid column, the FAQ list with no top edge, and "On the way"
    sitting flush against the features above it.
*/

/* The text half of the hero. min-width:0 stops a long unbroken heading from
   pushing the artwork column out of the grid. */
.lp-hero-copy {
    min-width: 0;
    max-width: 34rem;
    align-self: center;
}

/* Shipped features, then a rule, then the ones still coming. */
.lp-upcoming {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.lp-upcoming .lp-sub { margin-top: 0; }

/* .lp-q already draws a line under each question, so the list only needs one
   above the first to close the box. */
.lp-faq { border-top: 1px solid var(--line); }
.lp-faq .lp-sub:first-child { margin-top: 1.25rem; }

/* ================================================================= brand === */

/*
    The wordmark replaces the text lockup in every dark-green header. It is the
    cream-and-gold variant, because the supplied logo is dark green on white and
    dark green on dark green is nothing at all.

    Height, not width: the header is a fixed 64px band, and sizing by height is
    what keeps the mark the same size next to a one-line tagline and a two-line
    one. width:auto stops the flex container stretching it.
*/

.brand-logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 100%;
}

.lp-foot .brand-logo { height: 26px; }

@media (max-width: 720px) {
    .brand-logo { height: 24px; }
}

/* The full-colour lockup, above the heading on the four account pages. It sits
   on a white card, so this one is the original artwork rather than the variant. */
.lp-auth-card .brand-mark {
    display: block;
    width: min(240px, 68%);
    height: auto;
    margin: 0 auto 1.35rem;
}

/* ============================================ the promotional banner ===

   Owner, 03-09: a Vyapar-style promo, "use Vastra theme colour".

   The reference is red on white with black type. This is the same LAYOUT in
   the Vastra palette instead: deep green ground, brass gold for the one word
   that matters and for the button, cream for the type. The shape was worth
   copying; the colours were not, and a promotion in somebody else's brand
   colours is a promotion for somebody else.

   It is a <dialog>, so ::backdrop dims the page and Esc closes it without a
   line of script.                                                        */

.pb {
    width: min(920px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: none;
    border-radius: 16px;
    background: var(--green);
    color: var(--cream);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

.pb::backdrop { background: rgba(9, 26, 20, .62); }

/*  Words left, artwork right, and the artwork is what collapses on a narrow
    screen - never the words. A promotion nobody can read is not smaller, it
    is gone.  */
.pb-body {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2.25rem 2.5rem;
}

.pb-words > * { margin: 0 0 .85rem; }
.pb-words > :last-child { margin-bottom: 0; }

.pb-head {
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
}

/*  "Switch to Vastra" - the second half in gold, at the same size, so the
    product name is the thing the eye lands on.  */
.pb-lead {
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    line-height: 1.2;
    font-weight: 600;
    color: rgba(247, 241, 228, .92);
}
.pb-lead b { color: var(--gold); font-weight: 800; }

.pb-body-text {
    font-size: .98rem;
    line-height: 1.5;
    color: rgba(247, 241, 228, .78);
}
.pb-body-text b {
    color: var(--gold);
    font-size: 1.25em;
    font-weight: 800;
    margin-right: .15em;
}

/*  The figures. auto-fit rather than a fixed three columns, because one stat
    should fill the row it is given instead of sitting in a third of it.  */
.pb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
}
.pb-stats dt {
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.pb-stats dd {
    margin: .2rem 0 0;
    font-size: .82rem;
    line-height: 1.35;
    color: rgba(247, 241, 228, .72);
}

.pb-cta {
    display: inline-block;
    margin-top: 1.4rem;
    padding: .85rem 2.1rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--green);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: background .12s, transform .12s;
}
.pb-cta:hover { background: #dcb43a; color: var(--green); transform: translateY(-1px); }
.pb-cta:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

.pb-art { display: flex; justify-content: center; }
.pb-art img { max-width: 100%; height: auto; border-radius: 10px; }

/*  Small, quiet, and in the corner. A close button that competes with the
    offer makes the offer look like something to escape from.  */
.pb-close { position: absolute; top: .5rem; right: .75rem; }
.pb-close button {
    width: 2rem; height: 2rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(247, 241, 228, .12);
    color: var(--cream);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.pb-close button:hover { background: rgba(247, 241, 228, .24); }
.pb-close button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 720px) {
    /*  One column, and the ARTWORK is what goes - see the note above. The
        padding comes in too: on a phone the dialog is nearly the whole screen
        and 2.5rem of it would be margin.  */
    .pb-body { grid-template-columns: 1fr; padding: 1.75rem 1.35rem; gap: 1.1rem; }
    .pb-art { display: none; }
}

/*  ROOM FOR THE CLOSE BUTTON. The × sits top-right inside the dialog, and on
    a narrow screen the headline's first line ran underneath it - "Still making
    paper bills?" lost its last word behind the button. Reserving the corner is
    the fix; shrinking the headline would have been solving the wrong thing.  */
.pb-head { padding-right: 2.75rem; }

/*  app.js appends a keyboard chip to a dialog's close button. Useful on the
    company screens, where that button is a labelled "Close" - here it is a
    2rem circle with a × in it and an "Esc" chip does not fit in one. The key
    still works; it is only the badge that is hidden.  */
.pb-close kbd { display: none; }

/*  A grid item's default min-width is auto, which means it refuses to shrink
    below its longest unbreakable word - and the whole dialog then grew a
    horizontal scrollbar. min-width: 0 lets the columns actually take the width
    they are given, which is what the grid was asked for in the first place.

    The dialog scrolls VERTICALLY only. It is a fixed-width panel; anything
    that needs to move sideways in it is a bug, and a scrollbar would hide the
    bug rather than show it.  */
.pb-words, .pb-art { min-width: 0; }
.pb { overflow: hidden auto; }
