/* Public home page (Landing.razor). Same colors and fonts as the app (app.css :root). */

.lp {
    background: var(--msc-ground);
    color: #e8edf5;
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.lp a { color: var(--msc-amber); }
.lp a:hover { color: #ffc94d; }
.lp :focus-visible { outline: 2px solid var(--msc-amber); outline-offset: 3px; }

.lp-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.lp-band { background: var(--msc-panel-deep); border-block: 1px solid var(--msc-line); }
.lp-section { padding-block: 88px; display: flex; flex-direction: column; gap: 36px; }

.lp-eyebrow {
    margin: 0;
    color: var(--msc-amber);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lp-display {
    margin: 0;
    font-family: var(--msc-display);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}

.lp h1.lp-display { font-size: clamp(50px, 7vw, 76px); line-height: 0.95; }
.lp h2.lp-display { font-size: clamp(34px, 4.5vw, 52px); }
.lp-display em { font-style: normal; color: var(--msc-amber); }
.lp-heading { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.lp-lead { margin: 0; font-size: 19px; color: #c9d2e0; max-width: 540px; }
.lp-muted { color: var(--msc-muted); }
.lp-note { margin: 0; font-size: 14px; color: var(--msc-muted); }

/* Buttons */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.lp .lp-btn--primary { background: var(--msc-amber); color: var(--msc-ground); }
.lp .lp-btn--primary:hover { background: #ffc94d; color: var(--msc-ground); }
.lp .lp-btn--ghost { border-color: #3a4762; color: #fff; background: transparent; }
.lp .lp-btn--ghost:hover { border-color: var(--msc-amber); color: #fff; }
.lp .lp-btn--outline { border-color: var(--msc-amber); color: var(--msc-amber); background: transparent; }
.lp-btn--small { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.lp-top { background: #070b13; border-bottom: 1px solid var(--msc-line); }
.lp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 12px; }
.lp-brand { display: flex; align-items: center; text-decoration: none; }
.lp-links { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1 1 auto; justify-content: center; font-size: 15px; font-weight: 500; }
.lp .lp-links a { color: #c9d2e0; text-decoration: none; padding-block: 8px; }
.lp .lp-links a:hover { color: #fff; }
.lp-signin { display: flex; gap: 6px; align-items: center; }
.lp .lp-signin > a:first-child { color: #e8edf5; text-decoration: none; font-weight: 600; padding: 10px 12px; }

/* Hero */
.lp-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px 80px; }
.lp-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lp-hero__media { flex: 1 1 520px; min-width: 0; position: relative; padding-bottom: 40px; }

/* Video slots: a real <video> once its file is in wwwroot/media, a labelled placeholder until then. */
.lp-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--msc-line);
    background: linear-gradient(160deg, #1b2a44 0%, var(--msc-panel-deep) 70%);
}

.lp-video video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.lp-video--hero { aspect-ratio: 16 / 10; border-radius: 18px; }
.lp-video__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
/* Keep the hero placeholder's caption clear of the score phone that overlaps its right edge. */
.lp-video--hero .lp-video__soon { padding-right: 190px; }
.lp-video__soon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

.lp-video__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed var(--msc-amber);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(7, 11, 19, 0.85);
    color: var(--msc-amber);
    border: 1px solid var(--msc-amber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 9px;
    border-radius: 999px;
    text-transform: uppercase;
}

.lp-score-phone {
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 190px;
    border-radius: 26px;
    border: 6px solid #1c2638;
    background: var(--msc-ground);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* How it works */
.lp-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.lp-card { background: var(--msc-panel); border: 1px solid var(--msc-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.lp-card h3 { margin: 0; font-size: 22px; color: #fff; }
.lp-card p { margin: 0; color: #c9d2e0; }
.lp-step-num { font-family: var(--msc-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--msc-amber); }

/* Screenshots: phone frames */
.lp-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 24px; }
.lp-shot { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lp-shot figcaption { text-align: center; display: flex; flex-direction: column; gap: 4px; max-width: 260px; }
.lp-shot figcaption strong { color: #fff; }
.lp-shot figcaption span { color: var(--msc-muted); font-size: 14px; }

.lp-phone {
    width: 236px;
    height: 480px;
    border-radius: 34px;
    border: 8px solid #1c2638;
    background: var(--msc-ground);
    box-sizing: border-box;
    overflow: hidden;
}

.lp-phone > img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lp-mock { height: 100%; padding: 18px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.lp-mock__label { font-size: 10px; letter-spacing: 0.14em; color: var(--msc-muted); }
.lp-mock__label--amber { color: var(--msc-amber); }
.lp-mock__name { font-family: var(--msc-display); font-weight: 800; font-size: 26px; line-height: 1; color: #fff; }
.lp-mock__score { font-family: var(--msc-display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--msc-amber); }
.lp-mock__panel { background: var(--msc-panel); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.lp-mock__bar { height: 6px; border-radius: 3px; background: var(--msc-line); }
.lp-mock__bar > span { display: block; height: 6px; border-radius: 3px; background: var(--msc-amber); }
.lp-mock__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-mock__chips span { font-size: 10px; background: var(--msc-line); color: #e8edf5; padding: 4px 8px; border-radius: 999px; }
.lp-mock__row { display: flex; gap: 10px; background: var(--msc-panel); border-radius: 8px; padding: 8px 10px; }
.lp-mock__row b { color: var(--msc-amber); }
.lp-mock__row span { flex: 1; color: #fff; }
.lp-mock__row i { font-style: normal; color: var(--msc-up); font-weight: 600; }
.lp-mock__thumb { position: relative; height: 120px; border-radius: 12px; background: linear-gradient(160deg, #1b2a44, var(--msc-panel-deep)); }
.lp-mock__frame { position: relative; height: 250px; border-radius: 12px; background: #142036; overflow: hidden; }
.lp-mock__tag { position: absolute; top: 8px; right: 8px; background: var(--msc-amber); color: var(--msc-ground); font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.lp-mock__light { color: #c9d2e0; }
.lp-mock__strong { color: #fff; font-weight: 600; }

.lp-placeholder-note { font-size: 13px; color: var(--msc-muted); border: 1px dashed #3a4762; border-radius: 8px; padding: 6px 10px; }
.lp-row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* Example swings */
.lp-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.lp-video-card { background: var(--msc-panel); border: 1px solid var(--msc-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.lp-video-card .lp-video { border: none; border-radius: 0; }
.lp-video-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.lp-video-card__body h3 { margin: 0; font-size: 19px; color: #fff; }
.lp-video-card__body p { margin: 0; color: var(--msc-muted); font-size: 14px; }

/* Parents and coaches */
.lp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.lp-two .lp-card { padding: 36px; gap: 16px; border-radius: 18px; }
.lp-two h2.lp-display { font-size: 40px; }
.lp-list { margin: 0; padding-left: 20px; color: #c9d2e0; display: flex; flex-direction: column; gap: 8px; }
.lp-two .lp-btn { align-self: flex-start; }

/* Privacy */
.lp-privacy { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 72px; }
.lp-privacy__title { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.lp-privacy__list { flex: 2 1 520px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.lp-privacy__list li { display: flex; flex-direction: column; gap: 4px; }
.lp-privacy__list strong { color: #fff; }
.lp-privacy__list span { color: #c9d2e0; font-size: 15px; }

/* Install */
.lp-install { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 88px; }
.lp-install__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lp-install__art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.lp-install__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.lp-install__ways .lp-card { padding: 18px; gap: 8px; border-radius: 14px; }
.lp-install__ways ol { margin: 0; padding-left: 20px; color: #c9d2e0; font-size: 15px; }
.lp-install__ways p { font-size: 15px; }
.lp-install__status { margin: 0; color: var(--msc-up); font-weight: 600; }
.lp-homescreen {
    width: 220px;
    height: 440px;
    border-radius: 34px;
    border: 8px solid #1c2638;
    background: linear-gradient(170deg, #1b2a44, #070b13);
    padding: 34px 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
    align-content: start;
}

.lp-homescreen > span { aspect-ratio: 1; border-radius: 14px; background: var(--msc-line); }
.lp-homescreen__app { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #fff; }
.lp-homescreen__app img { width: 100%; aspect-ratio: 1; border-radius: 14px; display: block; }

/* Installed (opened from the home screen): no install prompts. */
html.lp-installed .lp-install-only { display: none !important; }

/* Install help dialog (iPhone, or browsers without a one-tap install) */
.lp-dialog {
    margin: auto;  /* centered; the app's CSS reset removes the browser's default */
    max-width: min(420px, calc(100vw - 32px));
    border: 1px solid #3a4762;
    border-radius: 20px;
    padding: 24px;
    background: var(--msc-panel);
    color: #e8edf5;
    font-family: Inter, system-ui, sans-serif;
}

.lp-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.lp-dialog h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.lp-dialog p { margin: 0 0 14px; color: var(--msc-muted); font-size: 14px; }
.lp-dialog ol { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.lp-dialog li { display: flex; gap: 12px; align-items: center; counter-increment: step; }
.lp-dialog li::before {
    content: counter(step);
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--msc-amber);
    color: var(--msc-ground);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-dialog .lp-btn { width: 100%; }

/* Questions */
.lp-faq { max-width: 900px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 16px; }
.lp-faq details { background: var(--msc-panel); border: 1px solid var(--msc-line); border-radius: 12px; padding: 16px 20px; }
.lp-faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.lp-faq details p { margin: 10px 0 0; color: #c9d2e0; }

/* Footer */
.lp-footer { background: #070b13; border-top: 1px solid var(--msc-line); }
.lp-footer .lp-wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--msc-muted); }
.lp .lp-footer a { color: #c9d2e0; }

@media (max-width: 640px) {
    .lp-section { padding-block: 56px; gap: 24px; }
    .lp-hero { padding-block: 32px 40px; gap: 28px; }
    .lp-links { display: none; }
    .lp-nav { gap: 10px; }
    .lp-brand { flex: 1; }
    .lp-hero__text .lp-btn { flex: 1 1 100%; }
    .lp-score-phone { display: none; }
    .lp-video--hero .lp-video__soon { padding-right: 16px; }
    .lp-hero__media { padding-bottom: 0; }
    .lp-two .lp-card { padding: 24px; }
    .lp-privacy, .lp-install { padding-block: 56px; }
    /* Screenshots swipe sideways on a phone. */
    .lp-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; margin-inline: -24px; padding-inline: 24px; }
    .lp-shot { flex: 0 0 236px; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
    .lp-shots { scroll-behavior: smooth; }
}
