/* AI-Generated */
/*
 * Landing page (home.html) only.
 *
 * The app's design system owns every color, size and radius here - this file
 * adds composition the app screens have no need for, and borrows components
 * (.mc-meter, .btn, .mc-panel) rather than restyling them.
 *
 * Light is the default deliberately: the use scene is a golfer on a phone,
 * outdoors, often in sunlight. Dark follows the viewer's preference through the
 * same tokens as the rest of the app.
 */

/* ==========================================================================
   Hero
   ========================================================================== */

.lp-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mc-space-10);
    align-items: center;
    padding-block: var(--mc-space-10) var(--mc-space-12);
}

@media (min-width: 900px) {
    .lp-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
        gap: var(--mc-space-16);
        padding-block: var(--mc-space-16) var(--mc-space-20);
    }
}

.lp-hero__title {
    margin: 0 0 var(--mc-space-4);
    font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
    font-weight: var(--mc-weight-bold);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

/* The second sentence is the turn: it carries the claim, so it separates from
   the line above.

   It used the accent directly, which worked while the accent was green. With a
   navy accent the accent and the body ink are both near-black, so the two-line
   headline collapsed into one flat colour.

   --mc-accent-display is the semantic token for that job: a navy step that stays
   distinct from body ink, and which goes LIGHTER in dark mode rather than
   darker. Referencing the navy-500 primitive directly (as this did first) gave
   a dark navy on a near-black ground at 1.9:1. */
.lp-hero__turn { color: var(--mc-accent-display); }

.lp-hero__sub {
    max-width: 46ch;
    margin: 0 0 var(--mc-space-8);
    color: var(--mc-text-muted);
    font-size: var(--mc-text-lg);
    line-height: var(--mc-leading-normal);
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--mc-space-4);
}

.lp-cta__aside {
    color: var(--mc-text-muted);
    font-size: var(--mc-text-base);
}

/* ==========================================================================
   The invitation demo - the page's one authored moment
   ========================================================================== */

.lp-invite {
    position: relative;
    padding: var(--mc-space-6);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-xl);
    background-color: var(--mc-surface);
    box-shadow: var(--mc-shadow-lg);
}

/* Says plainly that this is a demonstration. A landing page must not present a
   simulated artifact as a real message from a real person. */
.lp-invite__tag {
    position: absolute;
    top: calc(var(--mc-space-3) * -1);
    left: var(--mc-space-6);
    padding: 2px var(--mc-space-3);
    border-radius: var(--mc-radius-pill);
    background-color: var(--mc-text);
    color: var(--mc-surface);
    font-size: var(--mc-text-2xs);
    font-weight: var(--mc-weight-semibold);
    letter-spacing: var(--mc-tracking-caps);
    text-transform: uppercase;
}

.lp-invite__course {
    margin: var(--mc-space-2) 0 var(--mc-space-1);
    font-size: var(--mc-text-xl);
    font-weight: var(--mc-weight-semibold);
    letter-spacing: var(--mc-tracking-tight);
}

.lp-invite__when {
    margin: 0 0 var(--mc-space-5);
    color: var(--mc-text-muted);
    font-size: var(--mc-text-md);
}

.lp-invite__players {
    display: flex;
    align-items: center;
    gap: var(--mc-space-2);
    margin-bottom: var(--mc-space-3);
}

/* Initials, not stock avatars: no invented faces, no emoji standing in for an
   icon system. */
.lp-player {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--mc-radius-pill);
    background-color: var(--mc-surface-sunken);
    color: var(--mc-text-muted);
    font-size: var(--mc-text-sm);
    font-weight: var(--mc-weight-semibold);
    letter-spacing: 0.02em;
}

.lp-player--empty {
    background-color: transparent;
    border: 1px dashed var(--mc-border-strong);
    color: var(--mc-text-subtle);
}

/* The seat the visitor takes. Starts empty; fills on accept. */
.lp-player--you {
    background-color: var(--mc-accent);
    color: var(--mc-text-on-accent);
    border: 0;
    transform: scale(0.6);
    opacity: 0;
    transition: transform var(--mc-duration-slow) var(--mc-ease-out),
                opacity var(--mc-duration-base) var(--mc-ease-out);
}

.lp-invite.is-accepted .lp-player--you { transform: scale(1); opacity: 1; }
.lp-invite.is-accepted .lp-player--empty { display: none; }

.lp-invite__count {
    margin: 0 0 var(--mc-space-5);
    color: var(--mc-text-muted);
    font-size: var(--mc-text-sm);
}

.lp-invite__actions { display: flex; gap: var(--mc-space-3); }
.lp-invite__actions .btn { flex: 1 1 auto; }

.lp-invite__done {
    display: none;
    align-items: center;
    gap: var(--mc-space-2);
    color: var(--mc-accent-soft-text);
    font-weight: var(--mc-weight-semibold);
}

.lp-invite.is-accepted .lp-invite__actions { display: none; }
.lp-invite.is-accepted .lp-invite__done { display: flex; }

.lp-invite__replay {
    margin-top: var(--mc-space-2);
    color: var(--mc-text-subtle);
    font-size: var(--mc-text-sm);
}

/* Two classes deliberately: `.btn-link` sets `min-height: auto` at the same
   specificity as a lone class and is declared later in app.css, so a single
   selector here would set a height that is immediately discarded. */
.lp-invite__replay .btn {
    min-height: var(--mc-touch-min);
    padding-inline: 0;
}

/* The meter animates from its filled state rather than from zero, so the page
   never renders a misleading empty roster before scripting runs. */
.lp-invite .mc-meter { background-color: var(--mc-surface-sunken); }
.lp-invite .mc-meter__fill { background-color: var(--mc-accent); }

@media (prefers-reduced-motion: reduce) {
    .lp-player--you { transition: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.lp-section { padding-block: var(--mc-space-12); border-top: 1px solid var(--mc-border); }

.lp-section__title {
    max-width: 20ch;
    margin: 0 0 var(--mc-space-4);
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
    font-weight: var(--mc-weight-bold);
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

/* Reading measure held inside the recommended band. */
.lp-prose {
    max-width: 68ch;
    color: var(--mc-text-muted);
    font-size: var(--mc-text-md);
    line-height: var(--mc-leading-relaxed);
}

.lp-prose + .lp-prose { margin-top: var(--mc-space-4); }

/*
 * Alternating feature rows rather than a grid of identical icon-heading-text
 * cards: same-size cards as page structure is the category default this page is
 * built to avoid, and each of these has genuinely different content weight.
 */
.lp-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mc-space-8);
    align-items: center;
}

@media (min-width: 900px) {
    .lp-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--mc-space-12); }
    .lp-feature--flip > :first-child { order: 2; }
}

.lp-shot {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-md);
}

.lp-shot--phone {
    max-width: 300px;
    margin-inline: auto;
    border-radius: var(--mc-radius-xl);
}

/* ==========================================================================
   Reminder email preview
   ==========================================================================
   A depiction of the reminder MatchCaddy actually sends. It is built from
   design tokens rather than copying the email's inline styles, so it survives
   dark mode - the email's hardcoded #f8f9fa panels would stay light-grey on a
   dark page. The words are the email's real words; only the paint is local. */

.lp-mail {
    margin: 0;
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-lg);
    background-color: var(--mc-surface);
    box-shadow: var(--mc-shadow-md);
    overflow: hidden;
}

/* Mail-client chrome. Just enough to place the card as an email without
   imitating a specific client's UI. */
.lp-mail__chrome {
    display: grid;
    gap: 2px;
    padding: var(--mc-space-3) var(--mc-space-4);
    border-bottom: 1px solid var(--mc-border-subtle);
    background-color: var(--mc-surface-sunken);
}

.lp-mail__from {
    color: var(--mc-text);
    font-size: var(--mc-text-sm);
    font-weight: var(--mc-weight-semibold);
}

.lp-mail__subject {
    color: var(--mc-text-muted);
    font-size: var(--mc-text-sm);
}

.lp-mail__body { padding: var(--mc-space-4); }

/* The email's amber "Don't forget!" strip. Amber is the warning role in both
   systems, so the token carries across unchanged. */
.lp-mail__alert {
    margin: 0 0 var(--mc-space-4);
    padding: var(--mc-space-3);
    border-left: 3px solid var(--mc-warning);
    border-radius: var(--mc-radius-sm);
    background-color: var(--mc-warning-soft);
    color: var(--mc-warning-soft-text);
    font-size: var(--mc-text-sm);
    line-height: var(--mc-leading-normal);
}

.lp-mail__rows {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--mc-space-2) var(--mc-space-4);
    margin: 0 0 var(--mc-space-4);
    font-size: var(--mc-text-sm);
}

.lp-mail__rows dt { color: var(--mc-text-muted); font-weight: var(--mc-weight-semibold); }
.lp-mail__rows dd { margin: 0; color: var(--mc-text); line-height: var(--mc-leading-normal); }

.lp-mail__weather {
    padding: var(--mc-space-3);
    border: 1px solid var(--mc-border-subtle);
    border-radius: var(--mc-radius-md);
    background-color: var(--mc-surface-sunken);
}

.lp-mail__temp {
    display: flex;
    align-items: center;
    gap: var(--mc-space-2);
    margin: 0;
    color: var(--mc-text);
    font-size: var(--mc-text-sm);
}

.lp-mail__temp .fas { color: var(--mc-text-muted); }
.lp-mail__temp strong { font-size: var(--mc-text-md); }
.lp-mail__feels { color: var(--mc-text-muted); }

.lp-mail__summary {
    margin: var(--mc-space-2) 0 0;
    color: var(--mc-text-muted);
    font-size: var(--mc-text-sm);
    line-height: var(--mc-leading-normal);
}

.lp-mail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mc-space-2);
    margin: var(--mc-space-3) 0 0;
}

/* Rain likelihood. Both badges pair their color with a number and a phrase, so
   neither depends on hue alone to be understood. */
.lp-badge {
    padding: 2px var(--mc-space-2);
    border-radius: var(--mc-radius-pill);
    font-size: var(--mc-text-2xs);
    font-weight: var(--mc-weight-semibold);
    white-space: nowrap;
}

.lp-badge--rain { background-color: var(--mc-info-soft); color: var(--mc-info-soft-text); }
.lp-badge--warn { background-color: var(--mc-warning-soft); color: var(--mc-warning-soft-text); }

/* Depicts the email's button without being interactive. */
.lp-mail__cta {
    display: block;
    margin-top: var(--mc-space-4);
    padding: var(--mc-space-3);
    border-radius: var(--mc-radius-md);
    background-color: var(--mc-accent);
    color: var(--mc-text-on-accent);
    font-size: var(--mc-text-sm);
    font-weight: var(--mc-weight-semibold);
    text-align: center;
}

.lp-mail__foot {
    margin: var(--mc-space-3) 0 0;
    color: var(--mc-text-subtle);
    font-size: var(--mc-text-xs);
}

/* Says outright that this is an example, and where the forecast comes from.
   Sits outside the card body so it reads as the page's voice, not the email's. */
.lp-mail__caption {
    padding: var(--mc-space-3) var(--mc-space-4);
    border-top: 1px solid var(--mc-border-subtle);
    color: var(--mc-text-subtle);
    font-size: var(--mc-text-xs);
    line-height: var(--mc-leading-normal);
}

/* ==========================================================================
   Close
   ========================================================================== */

.lp-close {
    padding-block: var(--mc-space-16);
    border-top: 1px solid var(--mc-border);
    text-align: center;
}

.lp-close .lp-cta { justify-content: center; }

/* The Google Contacts disclosure. A real OAuth obligation, kept truthful and
   reachable, but demoted out of the closing-argument position it used to hold -
   a data-permissions notice was the last thing a deciding visitor read. */
.lp-disclosure {
    max-width: 68ch;
    margin: var(--mc-space-12) auto 0;
    padding-top: var(--mc-space-6);
    border-top: 1px solid var(--mc-border-subtle);
    color: var(--mc-text-subtle);
    font-size: var(--mc-text-sm);
    line-height: var(--mc-leading-normal);
    text-align: left;
}

.lp-disclosure h2 {
    margin: 0 0 var(--mc-space-2);
    color: var(--mc-text-muted);
    font-size: var(--mc-text-sm);
    font-weight: var(--mc-weight-semibold);
}
/* End AI-Generated */
