/* Landing page, sign-up and invitation pages. Uses the same colour tokens as the app. */

body.fh-public {
	--card: #fff; --line: var(--line); --surface-2: var(--surface-2); --soft: var(--soft);
	margin: 0; background: var(--bg, var(--surface-2)); color: var(--ink);
}
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.fh-public .btn { text-decoration: none; }

/* Header */
.lp-top { position: sticky; top: 0; z-index: 20; background: var(--top-bg, rgba(255,255,255,.88)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-top .lp-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-top .brand img { height: 36px; display: block; }
.lp-wordmark { font-weight: 800; font-size: 20px; color: var(--link); }
.lp-top nav { display: flex; align-items: center; gap: 18px; }
.lp-top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-top nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 640px) { .lp-hide-sm { display: none; } .lp-top nav { gap: 12px; } .lp-top .brand img { height: 30px; } }

/* Hero */
.lp-hero { padding: 64px 0 56px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lp-eyebrow { display: inline-block; background: var(--soft); color: var(--link); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; margin: 0 0 18px; }
.lp h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.lp-lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lp-big { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.btn.lp-full { width: 100%; justify-content: center; }
.lp-small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.lp-small.center { text-align: center; }
@media (max-width: 860px) { .lp-hero-grid { grid-template-columns: 1fr; } .lp-hero { padding-top: 36px; } }

/* Mock week card */
.lp-mock { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.12); transform: rotate(1.2deg); }
.lp-mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lp-mock-head span { font-size: 13px; color: var(--bad); font-weight: 700; }
.lp-mock-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); margin-bottom: 6px; border-left: 4px solid transparent; }
.lp-mock-row.gap { border-left-color: var(--bad); }
.lp-mock-row .d { font-weight: 700; font-size: 14px; }
.lp-mock-alert { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); font-size: 14px; font-weight: 600; }

/* Sections */
.lp-sec { padding: 64px 0; }
.lp-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-sec h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 28px; letter-spacing: -.01em; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.lp-alt .lp-card { background: var(--surface-2); }
.lp-card h3 { margin: 10px 0 6px; font-size: 18px; }
.lp-card p, .lp-two p, .lp-steps p { color: var(--muted); line-height: 1.55; margin: 0; }
.lp-ico { font-size: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 14px; }
@media (max-width: 900px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lp-grid { grid-template-columns: 1fr; } }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-steps li span { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; align-items: center; justify-content: center; }
.lp-steps h3 { margin: 12px 0 6px; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.lp-two h2 { margin-bottom: 12px; font-size: 26px; }
@media (max-width: 760px) { .lp-two { grid-template-columns: 1fr; } }

.lp-band { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: var(--on-brand); padding: 56px 0; text-align: center; }
.lp-band h2 { color: inherit; margin: 0 0 20px; font-size: 30px; }
.btn.lp-white { background: var(--card) !important; color: var(--brand) !important; }

.lp-foot { padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.lp-foot .lp-wrap { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); }

/* Auth pages */
.lp-narrow { padding: 40px 16px 30px; }
.lp-auth { max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; box-shadow: 0 12px 40px rgba(15,23,42,.08); }
.lp-auth h1 { font-size: 28px; margin-bottom: 8px; }
.lp-auth .muted { margin: 0 0 22px; line-height: 1.5; }
.lp-prose { max-width: 760px; line-height: 1.65; }
.lp-form .field input { font-size: 16px; padding: 12px 14px; }
.lp-pw { display: flex; position: relative; }
.lp-pw input { padding-right: 64px !important; }
.lp-pw .link { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.lp-consent { align-items: flex-start !important; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin: 6px 0 18px; }
.lp-consent input { margin-top: 3px; flex: none; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-error { background: var(--bad-soft); color: var(--bad-ink); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.lp-warn { background: var(--warn-soft); color: var(--warn-ink); }

.lp-progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: s; }
.lp-progress li { flex: 1; font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); counter-increment: s; }
.lp-progress li::before { content: counter(s) ". "; }
.lp-progress li.on { color: var(--brand); border-color: var(--brand); }

.lp-match { display: block; font-size: 13px; margin-top: 4px; min-height: 18px; }
.lp-match.ok { color: var(--ok-ink); }
.lp-match.bad { color: #b91c1c; }
.fh-captcha { margin: 4px 0 16px; }
.fh-captcha-note { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.grecaptcha-badge { visibility: hidden; }
