/* ==========================================================
   HOMEPAGE 1.78 — everything below the hero (hp2-* classes).
   The hero and top bar keep their styles in home.css.
   Colours come from brand.css; night mode works through the same variables.
   ========================================================== */
.hp { --hp2-tint: color-mix(in srgb, var(--pine) 5%, var(--paper)); --hp2-card: var(--white); --hp2-radius: 24px; }
[data-theme="dark"] .hp { --hp2-tint: color-mix(in srgb, #ffffff 3%, var(--paper, #0e1615)); }

/* ---------- section frame ---------- */
.hp2-sec { padding: 88px 0; }
.hp2-sec--tint { background: var(--hp2-tint); }
.hp2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.hp2-head--center { justify-content: center; text-align: center; }
.hp2-head h2, .hp2-how-intro h2, .hp2-safe-intro h2, .hp2-faq-intro h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -0.035em; max-width: 680px; }
.hp2-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 800 12.5px/1 "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--pine); }
.hp2-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--sun); }
[data-theme="dark"] .hp2-kicker { color: var(--sun); }
.hp2-link { font-weight: 800; color: var(--pine); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.hp2-link:hover { color: var(--pine-deep); }
[data-theme="dark"] .hp2-link { color: var(--ink); }

/* ---------- numbers + trust card (sits on the hero's bottom edge) ---------- */
.hp2-proof { position: relative; z-index: 2; margin-top: -46px; }
.hp2-proof-card { background: var(--hp2-card); border: 1px solid var(--line); border-radius: var(--hp2-radius); box-shadow: 0 24px 60px -30px rgba(12, 46, 43, .45); padding: 22px 26px; margin-bottom: 18px; display: grid; gap: 18px; }
.hp2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.hp2-stats div { display: flex; flex-direction: column; gap: 2px; }
.hp2-stats b { font: 800 clamp(28px, 3.4vw, 40px)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.04em; color: var(--pine); }
[data-theme="dark"] .hp2-stats b { color: var(--sun); }
.hp2-stats span { font-size: 14px; color: var(--muted); font-weight: 600; }
.hp2-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp2-trust li { display: flex; gap: 12px; align-items: flex-start; }
.hp2-ti { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 22%, transparent); color: var(--pine); }
[data-theme="dark"] .hp2-ti { color: var(--sun); }
.hp2-trust span { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.hp2-trust b { color: var(--ink); font-size: 14.5px; }

/* ---------- members mosaic ---------- */
.hp2-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 14px; }
.hp2-face { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--pine); color: #fff; text-decoration: none; isolation: isolate; }
.hp2-face.is-big { grid-column: span 2; grid-row: span 2; }
.hp2-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; z-index: -2; }
.hp2-face::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(8, 28, 26, .88)); }
.hp2-face:hover img { transform: scale(1.05); }
.hp2-face-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.hp2-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.hp2-pill--on { background: rgba(255, 255, 255, .94); color: #172624; }
.hp2-pill--on i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.hp2-pill--ver { background: #2563eb; color: #fff; }
.hp2-face-info { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.hp2-face-info b { font: 800 19px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.hp2-face.is-big .hp2-face-info b { font-size: 30px; }
.hp2-face-info small { font-size: 13px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp2-face--cta { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; background: radial-gradient(120% 90% at 100% 0, #2f6660 0, var(--pine) 45%, var(--pine-deep) 100%); }
.hp2-face--cta::after { display: none; }
.hp2-face--cta b { font: 800 21px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.hp2-face--cta > span:last-child { font-weight: 800; color: var(--sun); font-size: 14.5px; }
.hp2-cta-faces { display: flex; margin-bottom: auto; }
.hp2-cta-faces img { position: static; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--pine); margin-right: -12px; object-fit: cover; z-index: auto; }

/* ---------- how it works ---------- */
.hp2-how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.hp2-how-intro { position: sticky; top: 100px; }
.hp2-how-intro p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 16px 0 24px; max-width: 420px; }
.hp2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.hp2-steps::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
.hp2-steps li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px 20px 0; background: var(--hp2-card); border: 1px solid var(--line); border-radius: 22px; }
.hp2-num { justify-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--pine); color: var(--sun); font: 800 18px/1 "Bricolage Grotesque", sans-serif; position: relative; z-index: 1; }
.hp2-steps h3 { font-size: 20px; margin-bottom: 4px; }
.hp2-steps p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.hp2-steps em { font-style: normal; font-size: 30px; opacity: .9; }

/* ---------- map (partial keeps its own markup) ---------- */
.hp2-map { padding: 30px 0 0; }
.hp2-map .ld-section { padding-top: 40px; padding-bottom: 40px; }
.hp2-map .ld-wrap { max-width: 1180px; }
.hp2-map .ld-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; }

/* ---------- more than dating: bento ---------- */
.hp2-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp2-bento.has-events { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.hp2-bento.has-events .hp2-tile--events { grid-row: span 2; }
.hp2-tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--hp2-radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--hp2-card); transition: transform .18s ease, box-shadow .18s ease; min-height: 220px; }
.hp2-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(12, 46, 43, .5); color: var(--ink); }
.hp2-tile h3 { font-size: 25px; letter-spacing: -0.025em; }
.hp2-tile p { margin: 0; color: var(--muted); line-height: 1.55; }
.hp2-tile-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 27px; background: var(--hp2-tint); }
.hp2-go { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--pine); }
.hp2-tile--events { background: radial-gradient(120% 80% at 100% 0, #2f6660 0, var(--pine) 50%, var(--pine-deep) 100%); color: #fff; border-color: transparent; }
.hp2-tile--events:hover { color: #fff; }
.hp2-tile--events p { color: #cfe1dd; }
.hp2-tile--events .hp2-tile-ic { background: rgba(255, 255, 255, .12); }
.hp2-tile--events .hp2-go { color: var(--sun); }
.hp2-tile--rooms { background: color-mix(in srgb, var(--sun) 16%, var(--hp2-card)); border-color: color-mix(in srgb, var(--sun) 40%, var(--line)); }
.hp2-tile--rooms .hp2-tile-ic { background: var(--sun); }
.hp2-stat { color: var(--ink) !important; }
.hp2-stat b { font-size: 20px; }
.hp2-events { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hp2-events li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.hp2-date { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sun); color: var(--pine-deep); font-size: 11px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.hp2-date b { font: 800 20px/1 "Bricolage Grotesque", sans-serif; }
.hp2-events li > span:last-child { display: flex; flex-direction: column; font-weight: 700; min-width: 0; }
.hp2-events small { font-weight: 500; color: #a9c7c0; font-size: 12.5px; }

/* ---------- community features (home-extras) ---------- */
.hp2-inside { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hp2-feat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--hp2-card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.hp2-feat:hover { transform: translateY(-2px); border-color: var(--pine); color: var(--ink); }
.hp2-feat em { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; font-style: normal; font-size: 25px; background: var(--hp2-tint); }
.hp2-feat--1 em { background: color-mix(in srgb, var(--sun) 22%, transparent); }
.hp2-feat--2 em { background: color-mix(in srgb, #2563eb 12%, transparent); }
.hp2-feat--3 em { background: color-mix(in srgb, #e11d48 10%, transparent); }
.hp2-feat span { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hp2-feat b { color: var(--ink); font: 800 17px/1.2 "Bricolage Grotesque", sans-serif; }
.hp2-sec--app { padding-top: 0; }

/* ---------- safety ---------- */
.hp2-safe { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hp2-shield { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 32px; background: var(--pine); margin-bottom: 18px; box-shadow: 0 14px 30px -14px rgba(12, 46, 43, .7); }
.hp2-safe-intro p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 16px 0 22px; max-width: 470px; }
.hp2-safe-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp2-safe-list li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--hp2-card); border: 1px solid var(--line); }
.hp2-safe-list em { font-style: normal; font-size: 26px; }
.hp2-safe-list b { font-size: 16.5px; }
.hp2-safe-list span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- plans ---------- */
.hp2-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
.hp2-plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 26px; background: var(--hp2-card); border: 1.5px solid var(--line); }
.hp2-plan h3 { font-size: 22px; }
.hp2-price { margin: 6px 0 0; font: 800 46px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.04em; }
.hp2-price small { font: 600 15px/1 "DM Sans", sans-serif; letter-spacing: 0; color: var(--muted); }
.hp2-plan-sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.hp2-plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 11px; }
.hp2-plan li { position: relative; padding-left: 30px; line-height: 1.45; }
.hp2-plan li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--hp2-tint); color: var(--pine); }
.hp2-plan .hp-btn { margin-top: auto; }
.hp2-plan--premium { background: radial-gradient(120% 70% at 100% 0, #2f6660 0, var(--pine) 50%, var(--pine-deep) 100%); color: #fff; border-color: var(--sun); box-shadow: 0 30px 60px -30px rgba(12, 46, 43, .7); }
.hp2-plan--premium .hp2-price small, .hp2-plan--premium .hp2-plan-sub { color: #cfe1dd; }
.hp2-plan--premium ul { border-color: rgba(255, 255, 255, .18); }
.hp2-plan--premium li::before { background: var(--sun); color: var(--pine-deep); }
.hp2-ribbon { position: absolute; top: 20px; right: -1px; padding: 6px 14px 6px 16px; border-radius: 999px 0 0 999px; background: var(--sun); color: var(--pine-deep); font-size: 12.5px; font-weight: 800; }
.hp2-note { text-align: center; color: var(--muted); margin: 22px 0 0; }

/* ---------- FAQ ---------- */
.hp2-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.hp2-faq-intro { position: sticky; top: 100px; }
.hp2-faq-intro p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.hp2-faq-intro a { color: var(--pine); font-weight: 800; }
[data-theme="dark"] .hp2-faq-intro a { color: var(--sun); }
.hp2-faq-list { display: flex; flex-direction: column; gap: 10px; }
.hp2-faq-list details { background: var(--hp2-card); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; transition: border-color .15s; }
.hp2-faq-list details[open] { border-color: var(--pine); }
.hp2-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 800; font-size: 16.5px; }
.hp2-faq-list summary::-webkit-details-marker { display: none; }
.hp2-faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hp2-tint); color: var(--pine); font-size: 20px; font-weight: 700; transition: transform .2s; }
.hp2-faq-list details[open] summary::after { transform: rotate(45deg); background: var(--sun); color: var(--pine-deep); }
.hp2-faq-list p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

/* ---------- final call ---------- */
.hp2-final { padding: 0 0 80px; background: var(--hp2-tint); }
.hp2-final-card { position: relative; overflow: hidden; text-align: center; padding: 64px 28px; border-radius: 32px; color: #fff; background: radial-gradient(70% 90% at 50% 0, #2f6660 0, var(--pine) 45%, var(--pine-deep) 100%); }
.hp2-final-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); pointer-events: none; }
.hp2-final-card > * { position: relative; }
.hp2-final-faces { display: flex; justify-content: center; margin-bottom: 22px; }
.hp2-final-faces img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pine); margin: 0 -9px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.hp2-final-card h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.04em; color: #fff; }
.hp2-final-card p { color: #cfe1dd; font-size: 18px; margin: 12px 0 28px; }

/* landing.css sets ".ld a { color: inherit }" — keep the light text on photos and dark tiles */
.hp a.hp2-face, .hp a.hp2-face:hover, .hp .hp2-face b, .hp .hp2-face small { color: #fff; }
.hp a.hp2-tile--events, .hp a.hp2-tile--events:hover, .hp .hp2-tile--events h3 { color: #fff; }
.hp a.hp2-tile, .hp a.hp2-feat { color: var(--ink); }
.hp a.hp2-tile.hp2-tile--events { color: #fff; }

/* ---------- phones & tablets ---------- */
@media (max-width: 980px) {
    .hp2-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp2-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; }
    .hp2-how, .hp2-safe, .hp2-faq { grid-template-columns: 1fr; gap: 28px; }
    .hp2-how-intro, .hp2-faq-intro { position: static; }
    .hp2-bento, .hp2-bento.has-events { grid-template-columns: 1fr 1fr; }
    .hp2-bento.has-events .hp2-tile--events { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 640px) {
    .hp2-sec { padding: 60px 0; }
    .hp2-proof { margin-top: -30px; }
    .hp2-proof-card { padding: 18px; }
    .hp2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp2-trust { grid-template-columns: 1fr; gap: 12px; }
    .hp2-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; }
    .hp2-face.is-big { grid-row: span 2; }
    .hp2-face.is-big .hp2-face-info b { font-size: 24px; }
    .hp2-steps::before { left: 31px; }
    .hp2-steps li { grid-template-columns: 62px minmax(0, 1fr); padding-right: 16px; }
    .hp2-steps em { display: none; }
    .hp2-num { width: 44px; height: 44px; font-size: 16px; }
    .hp2-bento, .hp2-bento.has-events { grid-template-columns: 1fr; }
    .hp2-bento.has-events .hp2-tile--events { grid-column: auto; }
    .hp2-tile { padding: 22px; min-height: 0; }
    .hp2-safe-list, .hp2-plans { grid-template-columns: 1fr; }
    .hp2-final-card { padding: 46px 20px; border-radius: 26px; }
}
