/* ==========================================================================
   Home page in Keynote Lagoon (toned). Light only. PS-GCP-PRESENT-001 (Pete, 2026-10-28) replaced the fan of
   screens with the live-page picture, three live cards, the invite card and the founder card (the .gx-* rules at the end);
   PS-HOMEPAGE-TRIM-001 (Pete, 2026-10-30) removed the live-page picture and the three live cards again.
   PS-HOMEPAGE-LAGOON-S1-001. Locked authority: HOMEPAGE_BUILD_NOTE.md in
   X:\PeerSlate\Claude\design\homepage-directions-2026-10-22\ and the mock-up
   https://claude.ai/artifact/4cCL3jbQvDfV2fAdDQGdUQ (option 1). Colour and type
   follow THEME_LAGOON.md v2: names, headlines and numbers are solid; gradient
   only on the primary button, the selected state and the logo.

   Scope: body.ps-home-page only. The page root carries home-v3-page as well
   because scripts/verify_deployment_smoke.py asserts that marker on "/".

   Colour values read the shared Lagoon layer (--lg-*, static/css/peerslate-lagoon.css, loaded by
   site-header.css on every page): PS-HOMEPAGE-LAGOON-S2-001 retired this page's own copy of them. The top bar and
   footer skin is the shared shell (site-header.css); this file only scales them to the big-screen unit below.

   Big screens: one unit --hp-u (about 1px at 1440x900) grows with the window
   but never beyond the window's height, so type, the live-page picture and the top bar scale
   together on 27 and 32 inch monitors and the footer stays at the bottom edge.
   ========================================================================== */

body.ps-home-page.home-v3-page[data-theme] {
    --hp-ink: var(--lg-ink);
    --hp-ink2: var(--lg-ink2);
    --hp-quiet: var(--lg-quiet);
    --hp-line: var(--lg-line);
    --hp-lagoon: var(--lg-lagoon);
    --hp-lagoon-deep: var(--lg-lagoon-deep);
    --hp-amber: #7a4e00;
    --hp-amber-bg: #fff4e0;
    --hp-btn: var(--lg-btn);
    --hp-btn-glow: rgba(10, 86, 200, .28);
    --hp-nav-on: var(--lg-nav-on);
    --hp-sans: var(--lg-sans);
    --hp-u: calc(max(.82px, min(calc(100vw / 1440), calc(100vh / 1046))) * var(--ps-scale-base));

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--lg-page-bg);   /* the glass theme's plain near-white page: no washes (PS-GLASS-CORE-1-001) */
    color: var(--hp-ink);
    font-family: var(--hp-sans);
    font-size: calc(15px * var(--ps-scale-base));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    color-scheme: light;
}

/* The site-wide blue-white backdrop and page wrappers stand down here. */
body.ps-home-page .site-sky { display: none; }
body.ps-home-page .main-content {
    position: static;
    isolation: auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
}
body.ps-home-page .main-content::before,
body.ps-home-page .main-content::after { content: none; }

.ps-home { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; }
.ps-home a { color: inherit; }
.ps-home :focus-visible { outline: 2px solid var(--hp-lagoon); outline-offset: 3px; border-radius: calc(6px * var(--ps-scale-base)); }

/* Hero */
.ps-home__hero {
    max-width: calc(1160 * var(--hp-u)); margin: 0 auto;
    padding: calc(10 * var(--hp-u)) 24px calc(2 * var(--hp-u)); text-align: center;
}
body.ps-home-page .ps-home__title {
    font-family: var(--hp-sans); font-weight: 800; font-size: min(calc(70 * var(--hp-u)), calc((100vw - 48px) / 15.8)); letter-spacing: -.055em;
    line-height: 1; margin: 0 0 calc(10 * var(--hp-u)); color: var(--hp-ink); text-align: center; text-transform: none;
    background: none; -webkit-text-fill-color: currentColor; text-shadow: none; white-space: nowrap;
}
.ps-home__title span { display: inline; }
body.ps-home-page .ps-home__title span:last-child { color: var(--hp-lagoon-deep); }
body.ps-home-page .ps-home__lede {
    font-family: var(--hp-sans); font-size: calc(23 * var(--hp-u)); line-height: 1.35; margin: 0 0 calc(18 * var(--hp-u));
    color: var(--hp-ink2);
}
.ps-home__cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px calc(24 * var(--hp-u)); margin-bottom: calc(10 * var(--hp-u)); }
body.ps-home-page .ps-home__gold {
    min-height: var(--ps-tap-min);
    display: inline-flex; align-items: center; justify-content: center; gap: calc(10px * var(--ps-scale-base)); height: calc(52 * var(--hp-u)); padding: 0 calc(30 * var(--hp-u)); border-radius: calc(999px * var(--ps-scale-base));
    background: var(--hp-btn); border: 0; color: #fff; font: 700 calc(17.5 * var(--hp-u)) var(--hp-sans); line-height: normal;
    text-decoration: none; white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 30px var(--hp-btn-glow);
}
body.ps-home-page .ps-home__gold:hover { filter: brightness(1.06); }
body.ps-home-page .ps-home__gold:active { filter: brightness(.96); box-shadow: inset 0 1px 3px rgba(5,40,110,.35); }
body.ps-home-page .ps-home__textlink {
    font: 600 calc(17.5 * var(--hp-u)) var(--hp-sans); line-height: normal; color: var(--hp-lagoon-deep); text-decoration: underline;
    text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}


/* Footer (home only). Privacy / Terms render only when the pages exist. */
.ps-home-foot {
    position: relative; z-index: 1; display: flex; justify-content: center; gap: calc(22px * var(--ps-scale-base));
    padding: calc(10 * var(--hp-u)) 16px calc(16 * var(--hp-u)); font-size: max(13.5px, calc(15 * var(--hp-u))); line-height: 1.5; color: var(--hp-ink2);
    font-family: var(--hp-sans); background: none; border: 0;
}
.ps-home-foot p { margin: 0; }
.ps-home-foot a { color: var(--hp-ink2); text-decoration: underline; text-underline-offset: 4px; }
.ps-home-foot .ps-company-links,
.ps-home-foot .ps-policy-links { display: contents; } /* the links sit in the footer row */
.ps-home-foot__mark { display: inline-flex; align-items: center; gap: calc(8px * var(--ps-scale-base)); }
.ps-home-foot__stones { width: calc(18 * var(--hp-u)); height: calc(18 * var(--hp-u)); fill: url(#ps-lagoon-stones); }

/* ---- Top bar on this page: only the big-screen scale; the Lagoon skin is the shared shell (site-header.css) ---- */
@media (min-width: 1001px) {
    body.ps-home-page #site-header .ps-top {
        height: calc(64 * var(--hp-u)); gap: calc(28 * var(--hp-u));
        padding: 0 max(24px, calc((100vw - 1560 * var(--hp-u)) / 2 + 56 * var(--hp-u)));
    }
}
@media (min-width: 761px) {
    body.ps-home-page #site-header .ps-top__lockup { gap: calc(10 * var(--hp-u)); }
    body.ps-home-page #site-header .ps-top__stones { width: calc(30 * var(--hp-u)); height: calc(30 * var(--hp-u)); }
    body.ps-home-page #site-header .ps-top__word { font-size: max(20px, calc(24 * var(--hp-u))); }
    body.ps-home-page #site-header .ps-top__nav { gap: calc(20 * var(--hp-u)); }
    body.ps-home-page #site-header .ps-top__nav a { font-size: max(13px, calc(13.5 * var(--hp-u))); padding: calc(22 * var(--hp-u)) 0 calc(20 * var(--hp-u)); }
    body.ps-home-page #site-header .ps-top__signin { font-size: max(13px, calc(13 * var(--hp-u))); padding: calc(10 * var(--hp-u)) calc(18 * var(--hp-u)); }
    body.ps-home-page #site-header .ps-top__menu { font-size: calc(13.5 * var(--hp-u)); height: calc(38 * var(--hp-u)); }
}

/* ---- Phone ---- */
@media (max-width: 760px) {
    body.ps-home-page.home-v3-page[data-theme] { --hp-u: 1px; }
    .ps-home__hero { padding: calc(20px * var(--ps-scale-base)) calc(16px * var(--ps-scale-base)) calc(4px * var(--ps-scale-base)); }
    body.ps-home-page .ps-home__title { font-size: clamp(calc(34px * var(--ps-scale-base)), 10vw, calc(44px * var(--ps-scale-base))); white-space: normal; line-height: 1.02; }
    body.ps-home-page .ps-home__lede { font-size: calc(18px * var(--ps-scale-base)); }
    body.ps-home-page .ps-home__gold { width: 100%; height: calc(54px * var(--ps-scale-base)); font-size: calc(17px * var(--ps-scale-base)); }
    body.ps-home-page .ps-home__gold { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 10px rgba(10, 86, 200, .16); }
    .ps-home__cta { flex-direction: column; gap: calc(12px * var(--ps-scale-base)); width: 100%; }
    body.ps-home-page .ps-home__textlink { font-size: calc(17px * var(--ps-scale-base)); }
        .ps-home-foot { font-size: max(var(--ps-text-min), calc(14px * var(--ps-scale-base))); padding: calc(8px * var(--ps-scale-base)) calc(16px * var(--ps-scale-base)) calc(20px * var(--ps-scale-base)); flex-wrap: wrap; gap: calc(6px * var(--ps-scale-base)) calc(18px * var(--ps-scale-base)); }
    .ps-home-foot__stones { width: calc(18px * var(--ps-scale-base)); height: calc(18px * var(--ps-scale-base)); }
}

/* the secondary link keeps a 24px target after the scale (it was 19px tall on main) */
body.ps-home-page .ps-home__textlink { display: inline-flex; align-items: center; min-height: 24px; }

/* ==== PS-GCP-PRESENT-001: invite card (mockups P-0094 / P-0095); PS-HOMEPAGE-TRIM-001 removed the live-page picture, the three live cards and the founder card ==== */
body.ps-home-page .gx-home { padding-bottom: 24px; }
body.ps-home-page .ps-home__hero { padding-top: calc(72 * var(--hp-u)); }   /* PS-HOMEPAGE-TRIM-001: the pill that used to open the hero is gone, so the headline gets its air from the bar */
body.ps-home-page .gx-today-line { max-width: 800px; margin: 0 auto calc(26 * var(--hp-u)); font-size: max(16px, calc(18.5 * var(--hp-u))); line-height: 1.55; color: var(--hp-ink2); }
.gx-kicker { margin: 0 0 8px; font: 700 max(12px, calc(13px * var(--ps-scale-base, .85))) var(--lg-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lg-lagoon-text); }
.gx-arrowlink { color: var(--lg-lagoon-text) !important; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }


.gx-sec { width: min(1080px, calc(100% - 48px)); margin: calc(72 * var(--hp-u)) auto 0; }

.gx-membercard { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; padding: 34px 40px; }
body.ps-home-page .gx-membercard h2 { margin: 0 0 10px; font: 800 max(24px, calc(30 * var(--hp-u))) var(--hp-sans); letter-spacing: -.03em; color: var(--hp-ink); }
.gx-membercard p { margin: 0; font-size: max(15px, calc(17 * var(--hp-u))); line-height: 1.55; color: var(--hp-ink2); }
.gx-member-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
body.ps-home-page .gx-ghost {
    min-height: var(--ps-tap-min, 44px); display: inline-flex; align-items: center; justify-content: center; height: calc(52 * var(--hp-u)); padding: 0 calc(30 * var(--hp-u));
    border-radius: 999px; background: transparent; color: var(--hp-lagoon-deep); border: 1.5px solid rgba(10, 87, 141, .55); box-shadow: var(--lg-glass-rim-btn);
    font: 700 calc(17.5 * var(--hp-u)) var(--hp-sans); text-decoration: none; white-space: nowrap;
}
.gx-member-actions .gx-arrowlink { justify-content: center; }

@media (max-width: 760px) {
    body.ps-home-page .ps-home__hero { padding-top: calc(28 * var(--hp-u)); }
    body.ps-home-page .gx-today-line { font-size: calc(16px * var(--ps-scale-base)); margin-bottom: 20px; }
    body.ps-home-page .gx-ghost { width: 100%; height: calc(54px * var(--ps-scale-base)); font-size: calc(17px * var(--ps-scale-base)); }
    .gx-sec { width: calc(100% - 32px); }
    .gx-sec { margin-top: 48px; }
    .gx-membercard { grid-template-columns: 1fr; padding: 26px 20px; gap: 18px; }
}

/* ==== PS-HOMEPAGE-CARDS-001 (Pete, 2026-10-30, mockup G): "What PeerSlate does", three white page cards between the hero and Membership ====
   Desktop display sizes are 272x400, 592x456 and 272x400 with a 28px gap (the columns shrink in that ratio below 1240px, the pictures keep
   their aspect ratio); the side cards sit centered against the middle one by a top margin of (456 - 400) / 2 = 28px at full size, written as a
   percentage of the column so it scales with it. Text and links read the shared --lg-* tokens (the arrow links are the shared .gx-arrowlink, --lg-lagoon-text) so a dark theme can restyle them; the
   deliberately fixed colors are the white card frame and the shadow under it, because the pictures stay light. */
.hc-sec { width: min(1192px, calc(100% - 48px)); margin-top: calc(100 * var(--hp-u)); margin-bottom: calc(36 * var(--hp-u)); }
body.ps-home-page .hc-h2 {
    margin: 0 0 calc(60 * var(--hp-u)); text-align: center; font: 800 max(28px, calc(48 * var(--hp-u))) var(--hp-sans);
    letter-spacing: -.035em; line-height: 1.1; color: var(--lg-ink);
}
.hc-cards { display: grid; grid-template-columns: minmax(0, 272fr) minmax(0, 592fr) minmax(0, 272fr); column-gap: 28px; align-items: start; }
.hc-item { min-width: 0; }
.hc-item--story, .hc-item--ask { margin-top: 10.2941%; }   /* 28 / 272 of the column: centers the 400 tall cards on the 456 tall one */
.hc-shot {
    display: block; border-radius: 22px; overflow: hidden; background: #fff;
    box-shadow: 0 1px 3px rgba(16, 44, 84, .1), 0 18px 40px rgba(16, 44, 84, .14);
}
.ps-home .hc-shot:focus-visible { border-radius: 22px; }
.hc-shot picture, .hc-shot img { display: block; }
.hc-shot img { width: 100%; height: auto; }
body.ps-home-page .hc-label { margin: 22px 0 8px; text-align: center; font: 700 20px/1.25 var(--hp-sans); letter-spacing: -.01em; color: var(--lg-ink); }
body.ps-home-page .hc-text { margin: 0 0 4px; font-size: max(15px, calc(17 * var(--hp-u))); line-height: 1.55; color: var(--lg-ink2); }

@media (max-width: 760px) {
    body.ps-home-page .hc-h2 { margin-bottom: 28px; font-size: clamp(28px, 10.7vw, 44px); }
    .hc-cards { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
    .hc-item--story, .hc-item--ask { margin-top: 0; }
    .hc-sec { width: calc(100% - 32px); margin-top: 48px; margin-bottom: 0; }
}


/* ==== PS-HOME-GOOGLE-001 (Pete, 2026-11-01): "What PeerSlate will do", a fan of three glass cards (coming soon) ====
   The middle card sits in front, larger and level; the outer two tuck behind it, turned a few degrees. Each card is a picture of the
   approved design in a glass frame (the shared glass edge and rim, plus a soft sheen over the picture); the name, the Coming soon tag and
   a line sit under it, level and readable. On a phone the fan is one column. In dark a twin picture is laid over the light one
   (theme-graphite-dark.css), as for What PeerSlate does. */
.hs-sec { width: min(1280px, calc(100% - 48px)); margin-top: calc(100 * var(--hp-u)); margin-bottom: calc(36 * var(--hp-u)); }
body.ps-home-page .hs-h2 { margin: 0 0 calc(60 * var(--hp-u)); text-align: center; font: 800 max(28px, calc(48 * var(--hp-u))) var(--hp-sans); letter-spacing: -.035em; line-height: 1.1; color: var(--lg-ink); }
.hs-fan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr); column-gap: 0; align-items: start; padding: 0 0 8px; }
.hs-card { position: relative; min-width: 0; padding: 0 3%; }
.hs-card--interview { z-index: 2; }
.hs-shot { position: relative; display: block; border-radius: var(--lg-r2); overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--lg-glass-rim), 0 14px 26px -20px rgba(16, 44, 84, .4);   /* short, so the shadow never darkens the page behind the Coming soon tag */ transform-origin: 50% 100%; }
.hs-shot::after { z-index: 1; content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 38%), linear-gradient(0deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .22) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .8); }
.hs-card--opps .hs-shot { transform: translateX(6%) translateY(16px) rotate(-5deg); }
.hs-card--talent .hs-shot { transform: translateX(-6%) translateY(16px) rotate(5deg); }
.hs-card--interview .hs-shot { transform: scale(1.04); }
.hs-shot picture, .hs-shot img { display: block; }
.hs-shot img { width: 100%; height: auto; }
body.ps-home-page .hs-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: calc(50 * var(--hp-u)) 0 8px; text-align: center; font: 700 20px/1.25 var(--hp-sans); letter-spacing: -.01em; color: var(--lg-ink); }
.hs-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font: 700 12.5px/1.5 var(--hp-sans); letter-spacing: .02em; color: var(--lg-amber-text); background: var(--hp-amber-bg); box-shadow: 0 0 0 1px rgba(122, 78, 0, .28); }
body.ps-home-page .hs-text { margin: 0 auto; max-width: 340px; text-align: center; font-size: max(15px, calc(16 * var(--hp-u))); line-height: 1.55; color: var(--lg-ink2); }

@media (max-width: 760px) {
    body.ps-home-page .hs-h2 { margin-bottom: 28px; font-size: clamp(28px, 10.7vw, 44px); }
    .hs-sec { width: calc(100% - 32px); margin-top: 48px; margin-bottom: 0; }
    .hs-fan { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
    .hs-card { padding: 0; }
    .hs-card .hs-shot, .hs-card--opps .hs-shot, .hs-card--talent .hs-shot, .hs-card--interview .hs-shot { transform: none; }
    body.ps-home-page .hs-label { margin-top: 20px; }
}
