/* ============================================================================
   Family Hub — public landing page
   Warm editorial "kitchen-table" aesthetic. Entirely self-contained; does NOT
   use the app's dark theme / app.css. Scoped under .lp on <body>.
   Display: Fraunces (soft serif) · Body: Nunito Sans.
   ============================================================================ */

.lp {
    --bg:          #faf3e8;
    --bg-warm:     #f4e7d6;
    --paper:       #fffdf8;
    --ink:         #2c2017;
    --ink-soft:    #6f6253;
    --ink-faint:   #9a8d7c;
    --terra:       #d6593c;
    --terra-dark:  #b8462d;
    --terra-soft:  #fbe6dd;
    --herb:        #5f7d4f;
    --herb-soft:   #e7eede;
    --honey:       #e8a33d;
    --line:        rgba(44, 32, 23, 0.12);
    --line-soft:   rgba(44, 32, 23, 0.07);
    --shadow:      0 24px 60px -28px rgba(74, 42, 22, 0.45);
    --shadow-sm:   0 8px 24px -12px rgba(74, 42, 22, 0.35);
    --radius:      22px;
    --radius-sm:   14px;
    --maxw:        1140px;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Nunito Sans', system-ui, sans-serif;

    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Warm paper grain + glow */
.lp::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 85% -5%, rgba(232, 163, 61, 0.16), transparent 60%),
        radial-gradient(800px 600px at -10% 10%, rgba(214, 89, 60, 0.10), transparent 55%);
}

.lp * { box-sizing: border-box; }

/* Skip link (base.html.twig ships one; app.css isn't loaded here so style it) */
.lp .skip-to-content {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 11px 18px;
    border-radius: 0 0 12px 0; font-weight: 800; font-family: var(--sans);
}
.lp .skip-to-content:focus { left: 0; }

.lp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.lp a { color: inherit; text-decoration: none; }

.lp h1, .lp h2, .lp h3 {
    font-family: var(--serif);
    font-weight: 560;
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 0;
    font-optical-sizing: auto;
}
.lp em { font-style: italic; }

/* ── Eyebrow label ─────────────────────────────────────────────────────────*/
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terra-dark);
}
.lp-eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--terra);
    box-shadow: 0 0 0 4px var(--terra-soft);
}

/* ── Buttons ───────────────────────────────────────────────────────────────*/
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--sans); font-weight: 800; font-size: 16px;
    padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap; text-align: center;
}
.lp-btn--primary {
    background: var(--terra); color: #fff;
    box-shadow: 0 12px 26px -12px rgba(214, 89, 60, 0.8);
}
.lp-btn--primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(214, 89, 60, 0.9); }
.lp-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.lp-btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.lp-btn--lg { font-size: 17px; padding: 17px 30px; }

/* ── Nav ───────────────────────────────────────────────────────────────────*/
.lp-nav {
    position: sticky; top: 0; z-index: 50;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.lp-nav.is-scrolled {
    background: rgba(250, 243, 232, 0.82);
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line-soft);
}
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.lp-brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; white-space: nowrap; }
.lp-mark {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--terra), var(--honey));
    color: #fff; font-size: 19px;
    box-shadow: var(--shadow-sm);
}
.lp-nav-links { display: flex; align-items: center; gap: 30px; }
.lp-nav-links a { font-weight: 700; font-size: 15px; color: var(--ink-soft); transition: color .15s ease; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-cta { display: flex; align-items: center; gap: 18px; }
.lp-nav-login { font-weight: 800; font-size: 15px; }
@media (max-width: 820px) { .lp-nav-links { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────────*/
.lp-hero { padding: 40px 0 90px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }
.lp-hero h1 {
    font-size: clamp(42px, 6.4vw, 78px);
    margin: 22px 0 0;
}
.lp-hero h1 .q { color: var(--terra); font-style: italic; position: relative; white-space: nowrap; }
.lp-hero h1 .q::after {
    content: ""; position: absolute; left: 2%; right: 2%; bottom: 0.06em; height: 0.13em;
    background: var(--honey); border-radius: 4px; opacity: .55; z-index: -1;
}
.lp-hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 24px 0 0; max-width: 30ch; }
.lp-hero-form { margin-top: 32px; }
.lp-hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }

/* Tight phones: drop the nav waitlist button (the hero form is right there)
   and let the headline wrap. Must come after the base hero rules to win. */
@media (max-width: 560px) {
    .lp-nav-inner { height: 66px; }
    .lp-nav-cta .lp-btn { display: none; }
    .lp-hero h1 { font-size: 37px; }
    .lp-hero h1 .q { white-space: normal; }
}

/* Hero visual — browser-framed app screenshot, tilted, floating chip */
.lp-shot {
    position: relative;
    border-radius: 16px;
    background: #1a1d27;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transform: rotate(1.4deg);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.lp-shot:hover { transform: rotate(0deg) translateY(-4px); }
.lp-shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #14161f; }
.lp-shot-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.lp-shot-bar i:nth-child(1) { background: #f5705a; }
.lp-shot-bar i:nth-child(2) { background: #f5bd4f; }
.lp-shot-bar i:nth-child(3) { background: #5fc77e; }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-hero-visual { position: relative; }
.lp-float-chip {
    position: absolute; left: -26px; bottom: 38px; z-index: 3;
    background: var(--paper); border-radius: 16px; padding: 13px 17px;
    box-shadow: var(--shadow); border: 1px solid var(--line-soft);
    display: flex; align-items: center; gap: 12px;
    transform: rotate(-3deg);
    animation: lp-float 5s ease-in-out infinite;
}
.lp-float-chip .tick { width: 30px; height: 30px; border-radius: 9px; background: var(--herb-soft); color: var(--herb); display: grid; place-items: center; flex-shrink: 0; }
.lp-float-chip .l1 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.lp-float-chip .l2 { font-family: var(--serif); font-weight: 600; font-size: 16px; }
@keyframes lp-float { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }

.lp-hero-deco { position: absolute; pointer-events: none; }

@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .lp-hero-sub { max-width: 100%; }
    .lp-float-chip { left: 8px; }
}

/* ── Waitlist form ─────────────────────────────────────────────────────────*/
.lp-form { max-width: 460px; }
.lp-form-row {
    display: flex; gap: 10px;
    background: var(--paper); padding: 7px; border-radius: 999px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.lp-form input[type="email"] {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
    font-family: var(--sans); font-size: 16px; color: var(--ink); padding: 0 14px;
}
.lp-form input::placeholder { color: var(--ink-faint); }
.lp-form-msg { margin-top: 12px; font-size: 14.5px; font-weight: 700; min-height: 1.2em; }
.lp-form-msg.is-ok { color: var(--herb); }
.lp-form-msg.is-err { color: var(--terra-dark); }
.lp-form.is-done .lp-form-row { display: none; }
.lp-form-done {
    display: none; align-items: center; gap: 13px;
    background: var(--herb-soft); border: 1px solid rgba(95,125,79,0.25);
    border-radius: var(--radius-sm); padding: 16px 18px; color: #3f5436; font-weight: 700;
}
.lp-form.is-done .lp-form-done { display: flex; }
.lp-form-done .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--herb); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 460px) {
    .lp-form-row { flex-direction: column; border-radius: var(--radius-sm); padding: 12px; }
    .lp-form input[type="email"] { padding: 10px 6px; }
    .lp-btn { width: 100%; }
}

/* ── Section scaffolding ───────────────────────────────────────────────────*/
.lp-section { padding: 90px 0; position: relative; z-index: 1; }
.lp-section--warm { background: var(--bg-warm); }
.lp-section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.lp-section-head h2 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 16px; }
.lp-section-head p { color: var(--ink-soft); font-size: 18px; margin: 16px 0 0; }

/* ── "Sound familiar?" friction cards ──────────────────────────────────────*/
.lp-friction { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-fric-card {
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.lp-fric-quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.28; color: var(--ink); }
.lp-fric-quote .qm { color: var(--terra); }
.lp-fric-card p { color: var(--ink-soft); font-size: 15.5px; margin: 16px 0 0; }
@media (max-width: 860px) { .lp-friction { grid-template-columns: 1fr; } }

/* ── How it works ──────────────────────────────────────────────────────────*/
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 60px; }
.lp-step-num {
    font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--terra);
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--terra-soft); margin-bottom: 18px;
}
.lp-step h3 { font-size: 23px; }
.lp-step p { color: var(--ink-soft); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 860px) { .lp-steps { grid-template-columns: 1fr; gap: 30px; } }

.lp-showcase {
    border-radius: 20px; background: #1a1d27; box-shadow: var(--shadow);
    overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
}
.lp-showcase img { display: block; width: 100%; height: auto; }

/* ── Features ──────────────────────────────────────────────────────────────*/
.lp-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.lp-feat {
    background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 34px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.lp-feat-ico {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 20px; color: #fff;
}
.lp-feat--a .lp-feat-ico { background: linear-gradient(150deg, var(--terra), #e8714f); }
.lp-feat--b .lp-feat-ico { background: linear-gradient(150deg, var(--herb), #7a9a68); }
.lp-feat--c .lp-feat-ico { background: linear-gradient(150deg, var(--honey), #f0b95f); }
.lp-feat--d .lp-feat-ico { background: linear-gradient(150deg, #8a6cc4, #a98fd8); }
.lp-feat--e .lp-feat-ico { background: linear-gradient(150deg, #d6486a, #e87090); }
.lp-feat--f .lp-feat-ico { background: linear-gradient(150deg, #2f9e8f, #56bcab); }
.lp-feat h3 { font-size: 23px; }
.lp-feat p { color: var(--ink-soft); margin: 11px 0 0; font-size: 16px; }
.lp-feat-shot { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lp-feat-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .lp-features { grid-template-columns: 1fr; } }

/* ── Split showcase (image + copy, alternating) ────────────────────────────*/
.lp-split { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; margin-top: 70px; }
.lp-split--rev .lp-split-media { order: 2; }
.lp-split-copy .lp-eyebrow { margin-bottom: 16px; }
.lp-split-copy h3 { font-size: clamp(27px, 3.4vw, 40px); }
.lp-split-copy > p { color: var(--ink-soft); font-size: 17.5px; margin: 16px 0 0; }
.lp-split-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.lp-split-list li { display: flex; gap: 12px; font-weight: 700; color: var(--ink); align-items: flex-start; }
.lp-split-list li span { font-weight: 600; color: var(--ink-soft); }
.lp-split-list .tick {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; margin-top: 1px;
    background: var(--herb-soft); color: var(--herb); display: grid; place-items: center;
}
@media (max-width: 860px) {
    .lp-split { grid-template-columns: 1fr; gap: 34px; margin-top: 54px; }
    .lp-split--rev .lp-split-media { order: 0; }
}

/* Phone frame (taste swiper) */
.lp-phone {
    width: 268px; margin: 0 auto; border-radius: 40px; background: #0c0e14;
    padding: 9px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.lp-phone::before {
    content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.18); z-index: 2;
}
.lp-phone img { display: block; width: 100%; border-radius: 32px; }
.lp-split-media--phone { display: flex; justify-content: center; }

/* ── Why / founder note ────────────────────────────────────────────────────*/
.lp-why { max-width: 760px; margin: 0 auto; text-align: center; }
.lp-why-quote { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); line-height: 1.24; }
.lp-why-quote .hl { color: var(--terra); }
.lp-why-by { margin-top: 24px; font-weight: 800; color: var(--ink-soft); letter-spacing: .02em; }
.lp-why-by span { color: var(--ink-faint); font-weight: 700; }

/* ── Final CTA ─────────────────────────────────────────────────────────────*/
.lp-cta-panel {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #c84e34, #d6593c 45%, #e58a3e);
    border-radius: 30px; padding: 70px 40px; text-align: center; color: #fff;
    box-shadow: 0 40px 80px -34px rgba(184, 70, 45, 0.8);
}
.lp-cta-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 300px at 80% -10%, rgba(255,255,255,0.22), transparent 60%);
}
.lp-cta-panel h2 { font-size: clamp(34px, 5vw, 56px); color: #fff; position: relative; }
.lp-cta-panel p { font-size: 19px; opacity: .94; margin: 16px auto 30px; max-width: 36ch; position: relative; }
.lp-cta-panel .lp-form { margin: 0 auto; position: relative; }
.lp-cta-panel .lp-form-row { border-color: transparent; }
.lp-cta-panel .lp-btn--primary { background: var(--ink); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.lp-cta-panel .lp-btn--primary:hover { background: #1d140d; }
.lp-cta-panel .lp-form-done { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: #fff; }
.lp-cta-panel .lp-form-done .tick { background: #fff; color: var(--terra); }
.lp-cta-panel .lp-form-msg.is-err { color: #fff3ef; }

/* ── Footer ────────────────────────────────────────────────────────────────*/
.lp-footer { padding: 56px 0 48px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-footer-links { display: flex; gap: 26px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.lp-footer-links a:hover { color: var(--terra-dark); }
.lp-footer-copy { font-size: 14px; color: var(--ink-faint); }

/* ── Entrance animations ───────────────────────────────────────────────────*/
/* Honeypot field — visually gone but still in the form for bots to fill. */
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
    .lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
    .lp-reveal.is-in { opacity: 1; transform: none; }
    .lp-hero-stagger > * { opacity: 0; animation: lp-rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
    .lp-hero-stagger > *:nth-child(1) { animation-delay: .05s; }
    .lp-hero-stagger > *:nth-child(2) { animation-delay: .15s; }
    .lp-hero-stagger > *:nth-child(3) { animation-delay: .25s; }
    .lp-hero-stagger > *:nth-child(4) { animation-delay: .35s; }
    .lp-hero-stagger > *:nth-child(5) { animation-delay: .45s; }
    .lp-hero-visual { opacity: 0; animation: lp-rise 1s cubic-bezier(.2,.8,.2,1) .35s forwards; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
