/* Public campaign landing page. Standalone stylesheet: the page is served on its own host and
   must not depend on the panel CSS. Colours follow the LeadYa brand tokens (NEW_LEADYA). */
:root {
    --landing-ink: var(--ld-text, #14122b);
    --landing-text: var(--ld-text, #232238);
    --landing-muted: var(--ld-text-muted, #5b5f78);
    --landing-brand: var(--ld-brand, #6c4cf1);
    --landing-brand-dark: var(--ld-brand, #5236d6);
    --landing-accent: var(--ld-accent, #ffc24b);
    --landing-success: #19a989;
    --landing-surface: var(--ld-bg, #f6f7fb);
    --landing-border: var(--ld-border, #e4e6f0);
    --landing-white: var(--ld-surface, #fff);
    --landing-radius: 22px;
    --landing-shadow: 0 24px 60px rgba(20, 18, 43, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing { margin: 0; color: var(--landing-text); background: var(--landing-white); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.landing-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
a { color: inherit; }

/* Hero ------------------------------------------------------------------ */
.landing-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 90px); background: radial-gradient(1200px 520px at 8% -10%, rgba(108, 76, 241, .16), transparent 60%), radial-gradient(900px 420px at 100% 0%, rgba(255, 194, 75, .22), transparent 55%), linear-gradient(180deg, #f8f7ff 0%, var(--landing-white) 100%); overflow: hidden; }
.landing-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; color: var(--landing-brand-dark); background: rgba(108, 76, 241, .1); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing h1 { max-width: 760px; margin: 18px 0 16px; color: var(--landing-ink); font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; }
.landing-lead { max-width: 640px; margin: 0 0 28px; color: var(--landing-muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.landing-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.landing-hero__hint { margin: 14px 0 0; color: var(--landing-muted); font-size: .92rem; }
.landing-cta { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--landing-brand), var(--landing-brand-dark)); font-size: 1.02rem; font-weight: 800; text-decoration: none; box-shadow: 0 16px 36px rgba(108, 76, 241, .28); transition: transform .18s ease, box-shadow .18s ease; }
.landing-cta:hover, .landing-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(108, 76, 241, .36); }
.landing-cta:focus-visible { outline: 3px solid var(--landing-accent); outline-offset: 3px; }
.landing-phone-inline { display: inline-flex; align-items: center; gap: 10px; color: var(--landing-ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.landing-phone-inline__icon { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--landing-brand-dark); background: rgba(108, 76, 241, .12); }
.landing-hero__visual { margin: 0; }
.landing-hero__image, .landing-hero__shape { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--landing-radius); box-shadow: var(--landing-shadow); }
.landing-hero__image { display: block; object-fit: cover; background: #e9e7f7; }
.landing-hero__shape { position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--landing-brand) 0%, #8f76ff 55%, var(--landing-accent) 130%); transform: rotate(2deg); overflow: hidden; }
.landing-hero__shape::before { content: ""; position: absolute; inset: 14% 10% auto auto; width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.landing-hero__shape::after { content: ""; position: absolute; left: -10%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(20, 18, 43, .18); }
.landing-hero__shape-glyph { position: relative; width: 34%; aspect-ratio: 1; border-radius: 28%; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 14px rgba(108, 76, 241, .25); }

/* Body sections --------------------------------------------------------- */
.landing-content { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 40px); }
.landing-section { padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--landing-border); }
.landing-section:last-child { border-bottom: 0; }
.landing-content h2 { margin: 0 0 22px; color: var(--landing-ink); font-size: clamp(1.55rem, 2.8vw, 2.25rem); line-height: 1.15; letter-spacing: -.025em; }
.landing-content h3 { margin: 0 0 8px; color: var(--landing-ink); font-size: 1.12rem; line-height: 1.3; }
.landing-content p, .landing-content li { margin: 0 0 10px; color: var(--landing-muted); font-size: 1.04rem; }
.landing-content a { color: var(--landing-brand-dark); font-weight: 700; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.landing-card { position: relative; padding: 22px 22px 18px 22px; border: 1px solid var(--landing-border); border-radius: 18px; background: var(--landing-surface); }
.landing-card::before { content: ""; display: block; width: 38px; height: 6px; margin-bottom: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--landing-brand), var(--landing-accent)); }
.landing-steps__list { margin: 0; padding: 0; list-style: none; counter-reset: landing-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.landing-steps__list li { position: relative; padding: 20px 20px 16px 68px; border-radius: 18px; background: var(--landing-white); border: 1px solid var(--landing-border); counter-increment: landing-step; }
.landing-steps__list li::before { content: counter(landing-step); position: absolute; left: 18px; top: 18px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #fff; background: var(--landing-ink); font-weight: 800; }
.landing-steps__list strong { display: block; margin-bottom: 6px; color: var(--landing-ink); font-size: 1.06rem; }
.landing-steps__list p { margin: 0; }
.landing-faq__item { padding: 16px 0; border-top: 1px solid var(--landing-border); }
.landing-faq__item:first-of-type { border-top: 0; }
.landing-faq__item h3 { margin-bottom: 6px; }
.landing-faq__item p { margin: 0; }
.landing-closing { text-align: left; }
.landing-closing__hint { font-size: .95rem !important; }
.landing-content ol:not(.landing-steps__list), .landing-content ul { padding-left: 24px; }

/* Goal blocks ----------------------------------------------------------- */
.landing-goal { padding: clamp(40px, 6vw, 80px) 0; background: var(--landing-surface); }
.landing-goal h2 { margin: 0 0 8px; color: var(--landing-ink); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.landing-goal p { margin: 0 0 22px; color: var(--landing-muted); }
.landing-calendar { overflow: hidden; border-radius: var(--landing-radius); background: var(--landing-white); box-shadow: var(--landing-shadow); }
.landing-calendar iframe { display: block; width: 100%; min-height: 720px; border: 0; }
.landing-goal__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.landing-phone { display: inline-flex; align-items: center; gap: 16px; padding: 18px 26px; border-radius: 20px; color: #fff; background: var(--landing-ink); text-decoration: none; box-shadow: var(--landing-shadow); transition: transform .18s ease; }
.landing-phone:hover, .landing-phone:focus-visible { transform: translateY(-2px); }
.landing-phone__icon { display: inline-grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: var(--landing-ink); background: var(--landing-accent); font-size: 1.5rem; }
.landing-phone__number { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: .01em; }

/* Final ----------------------------------------------------------------- */
.landing-final { padding: clamp(56px, 7vw, 90px) 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--landing-ink) 0%, #2a2352 60%, var(--landing-brand-dark) 140%); }
.landing-final h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; }
.landing-final p { max-width: 620px; margin: 0 auto 26px; color: #cfcbe6; }
.landing-cta--light { color: var(--landing-ink); background: var(--landing-white); box-shadow: 0 16px 36px rgba(0, 0, 0, .25); }
.landing-empty { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--landing-surface); }
.landing-empty p { color: var(--landing-muted); }

@media (max-width: 760px) {
    .landing-shell { width: min(100% - 28px, 1120px); }
    .landing-hero__grid { grid-template-columns: 1fr; }
    .landing-hero__visual { order: 0; }
    .landing-hero__image, .landing-hero__shape { max-width: 460px; aspect-ratio: 16 / 10; }
    .landing-hero__shape { transform: none; }
    .landing-cta { width: 100%; }
    .landing-goal__grid { grid-template-columns: 1fr; }
    .landing-phone { width: 100%; justify-content: center; }
    .landing-calendar iframe { min-height: 900px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .landing-cta, .landing-phone { transition: none; }
}

/* Shared product pages and owner editing. */
.landing-hero { padding: clamp(36px, 6vw, 80px) 0; background: var(--landing-surface); }
.landing-kicker, .landing-content a { color: var(--landing-text); }
.landing-content a { text-decoration: underline; }
.landing-hero__shape { background: linear-gradient(135deg, var(--landing-brand), var(--landing-accent)); }
.landing-phone { background: var(--landing-brand); color: var(--ld-brand-ink, #fff); }
.landing-phone__icon { color: var(--ld-ink, #14122b); }
.landing-hero__grid { gap: clamp(24px, 4vw, 56px); }
.landing-cta { color: var(--ld-brand-ink, #fff); border: 0; cursor: pointer; }
.landing-steps__list li::before { background: var(--landing-brand); color: var(--ld-brand-ink, #fff); }
.landing-final { background: var(--landing-brand); color: var(--ld-brand-ink, #fff); text-align: left; }
.landing-final p { margin-left: 0; margin-right: 0; }
.landing-final h2, .landing-final p { color: inherit; }
.landing-final .landing-cta { color: var(--landing-text); background: var(--landing-white); }
.landing-chat { padding: 32px 0 40px; }
.landing-chat__header { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; }
.landing-chat__header img { border-radius: 50%; }
.landing-chat h2, .landing-chat p { margin: 0 0 8px; }
.landing-chat__header p { color: var(--landing-muted); }
.landing-chat__messages { max-height: 360px; overflow-y: auto; margin: 16px 0; }
.landing-chat__message { padding: 12px 16px; border-radius: 14px; background: var(--landing-surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.landing-chat__message.is-user { border-left: 3px solid var(--landing-brand); }
.landing-chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.landing-chat textarea { width: 100%; padding: 12px; border: 1px solid var(--landing-border); border-radius: 12px; font: inherit; background: var(--landing-white); color: var(--landing-text); }
.landing-chat textarea:focus-visible { outline: 3px solid var(--landing-brand); outline-offset: 2px; }
.landing-chat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.landing p, .landing h1, .landing h2, .landing h3, .landing a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .landing-chat__form { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .landing-cta { transition: none; } }
