/* =========================================================
   Synergy Diet - public landing page (browser visitors only)
   Everything is namespaced with .lp- to stay isolated from the app styles.
   ========================================================= */

#landing {
    --lp-bg: #060a17;
    --lp-bg-2: #0a1024;
    --lp-surface: rgba(255, 255, 255, 0.04);
    --lp-surface-2: rgba(255, 255, 255, 0.07);
    --lp-border: rgba(255, 255, 255, 0.10);
    --lp-text: #e8ecf6;
    --lp-muted: #98a2bd;
    --lp-teal: #2dd4bf;
    --lp-teal-2: #14b8a6;
    --lp-violet: #8b5cf6;
    --lp-indigo: #6366f1;
    --lp-grad: linear-gradient(120deg, #2dd4bf 0%, #6366f1 60%, #8b5cf6 100%);
    --lp-radius: 22px;

    display: none;
    position: relative;
    overflow-x: clip;
    min-height: 100vh;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    direction: ltr;
    text-align: left;
}

html.lp-active #landing { display: block; }
html.lp-active { scroll-behavior: smooth; background: #060a17; }
html.lp-active body { background: #060a17 !important; margin: 0; overflow-x: hidden; }
/* The app adds a left padding for its desktop navigation rail (responsive.css); the public page is full width */
html.lp-active body { padding: 0 !important; background-image: none !important; }
/* While the public page is shown the app UI stays hidden (it is not even loaded until sign-in) */
html.lp-active body > *:not(#landing):not(#auth-modal):not(script):not(style):not(link) { display: none !important; }
#landing section[id] { scroll-margin-top: 84px; }

#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
:where(#landing) a { color: inherit; text-decoration: none; }
:where(#landing) h1, :where(#landing) h2, :where(#landing) h3, :where(#landing) h4 { font-family: 'Outfit', 'Inter', sans-serif; margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
:where(#landing) p { margin: 0; }
:where(#landing) ul { margin: 0; padding: 0; list-style: none; }
:where(#landing) button { font: inherit; cursor: pointer; }

.lp-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient background ---------- */
.lp-bg { position: absolute; inset: 0 0 auto 0; height: 980px; overflow: hidden; pointer-events: none; z-index: 0; }
.lp-bg::before, .lp-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; }
.lp-bg::before { width: 620px; height: 620px; background: #14b8a6; top: -260px; left: -180px; opacity: .28; }
.lp-bg::after { width: 680px; height: 680px; background: #6d4aff; top: -200px; right: -220px; opacity: .32; }
.lp-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Navbar ---------- */
.lp-nav {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(6, 10, 23, .72);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.lp-nav.is-stuck { border-bottom-color: var(--lp-border); background: rgba(6, 10, 23, .88); }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.lp-brand { display: flex; align-items: center; gap: 12px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.lp-brand img { width: 38px; height: 38px; border-radius: 12px; background: #fff; padding: 2px; }
.lp-brand small { display: block; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 500; color: var(--lp-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
.lp-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--lp-muted); }
.lp-links a { transition: color .2s; }
.lp-links a:hover { color: #fff; }
.lp-nav-cta { display: flex; align-items: center; gap: 10px; }
.lp-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--lp-border); background: var(--lp-surface); color: #fff; align-items: center; justify-content: center; }
.lp-mobile-menu { display: none; border-top: 1px solid var(--lp-border); padding: 12px 24px 18px; }
.lp-mobile-menu a { display: block; padding: 12px 0; font-weight: 500; color: var(--lp-text); border-bottom: 1px solid rgba(255,255,255,.06); }
.lp-mobile-menu.is-open { display: block; }

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; white-space: nowrap;
    transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s;
}
.lp-btn:active { transform: scale(.97); }
.lp-btn:focus-visible, .lp-faq-q:focus-visible, .lp-burger:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: 3px; }
.lp-btn-primary { color: #04101a; background: var(--lp-grad); box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .55); }
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(99, 102, 241, .7); }
.lp-btn-ghost { color: var(--lp-text); background: var(--lp-surface); border-color: var(--lp-border); }
.lp-btn-ghost:hover { background: var(--lp-surface-2); border-color: rgba(255,255,255,.2); }
.lp-btn-lg { height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.lp-btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; z-index: 1; padding: 72px 0 40px; overflow: hidden; }
.lp-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lp-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
    background: var(--lp-surface); border: 1px solid var(--lp-border); font-size: 13px; color: var(--lp-muted); margin-bottom: 26px;
}
.lp-pill b { background: var(--lp-grad); color: #04101a; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; }
.lp-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.lp-grad-text { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--lp-muted); margin-top: 24px; max-width: 560px; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lp-hero-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--lp-muted); }
.lp-hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.lp-hero-note i { color: var(--lp-teal); font-size: 12px; }

/* Hero visual: phone with sample plan */
.lp-visual { position: relative; display: flex; justify-content: center; padding: 28px 0 20px; text-align: left; }
.lp-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--lp-grad); filter: blur(90px); opacity: .32; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.lp-phone {
    position: relative; width: 320px; border-radius: 42px; padding: 11px;
    background: linear-gradient(160deg, #2a3358, #10162e);
    box-shadow: 0 50px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12) inset;
    transform: rotate(-3deg); animation: lp-float 7s ease-in-out infinite;
}
.lp-screen { border-radius: 32px; background: linear-gradient(180deg, #0c1330, #0a0f24); padding: 22px 18px 18px; overflow: hidden; }
.lp-screen-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--lp-muted); margin-bottom: 14px; }
.lp-screen-top b { color: #fff; font-family: 'Outfit'; font-size: 15px; }
.lp-tag { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: rgba(45,212,191,.14); color: var(--lp-teal); font-weight: 600; }
.lp-ring-row { display: flex; align-items: center; gap: 16px; background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: 20px; padding: 14px; }
.lp-ring {
    --p: 78; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: conic-gradient(var(--lp-teal) calc(var(--p) * 1%), rgba(255,255,255,.09) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
.lp-ring-wrap { position: relative; width: 92px; height: 92px; flex: none; }
.lp-ring-wrap .lp-ring { position: absolute; inset: 0; }
.lp-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.lp-ring-label b { font-family: 'Outfit'; font-size: 20px; }
.lp-ring-label span { font-size: 10px; color: var(--lp-muted); }
.lp-macros { flex: 1; display: grid; gap: 9px; }
.lp-macro { font-size: 11px; color: var(--lp-muted); }
.lp-macro div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.lp-macro b { color: #fff; font-weight: 600; }
.lp-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.09); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 6px; background: var(--c); width: var(--w); animation: lp-grow 1.4s .4s cubic-bezier(.2,.8,.2,1) both; }
.lp-meals { margin-top: 12px; display: grid; gap: 8px; }
.lp-meal { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--lp-surface); border: 1px solid rgba(255,255,255,.06); font-size: 12.5px; }
.lp-meal-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; background: var(--ic, rgba(45,212,191,.14)); flex: none; }
.lp-meal div { flex: 1; min-width: 0; }
.lp-meal small { display: block; color: var(--lp-muted); font-size: 10.5px; }
.lp-meal em { font-style: normal; font-weight: 600; color: var(--lp-teal); font-size: 12px; }

.lp-chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 16px;
    background: rgba(14, 20, 44, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--lp-border); box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); font-size: 12.5px; font-weight: 500;
}
.lp-chip i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: #04101a; background: var(--lp-grad); }
.lp-chip small { display: block; font-size: 10.5px; color: var(--lp-muted); font-weight: 400; }
.lp-chip-a { top: -6px; left: -22px; animation: lp-float 6s -1s ease-in-out infinite; }
.lp-chip-b { bottom: 90px; right: -14px; animation: lp-float 6.5s -3s ease-in-out infinite; }
.lp-chip-c { bottom: 8px; left: 14px; animation: lp-float 7.5s -2s ease-in-out infinite; }

@keyframes lp-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
.lp-phone { --r: -3deg; }
@keyframes lp-grow { from { width: 0; } }

/* ---------- Stats ---------- */
.lp-stats { position: relative; z-index: 1; padding: 40px 0 8px; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lp-border); border-radius: 26px; background: var(--lp-surface); overflow: hidden; }
.lp-stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--lp-border); }
.lp-stat:last-child { border-right: 0; }
.lp-stat b { display: block; font-family: 'Outfit'; font-size: clamp(34px, 4vw, 48px); font-weight: 800; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.lp-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--lp-muted); }

/* ---------- Sections ---------- */
.lp-section { position: relative; z-index: 1; padding: 110px 0 0; }
.lp-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-teal); margin-bottom: 14px; }
.lp-title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; max-width: 760px; }
.lp-lead { margin-top: 18px; font-size: 18px; color: var(--lp-muted); max-width: 640px; }
.lp-head-center { text-align: center; }
.lp-head-center .lp-title, .lp-head-center .lp-lead { margin-left: auto; margin-right: auto; }

/* Steps */
.lp-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.lp-step { position: relative; padding: 28px 24px; border-radius: var(--lp-radius); background: var(--lp-surface); border: 1px solid var(--lp-border); transition: transform .3s, border-color .3s, background .3s; }
.lp-step:hover { transform: translateY(-6px); border-color: rgba(45,212,191,.4); background: var(--lp-surface-2); }
.lp-step-n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: 'Outfit'; font-weight: 800; font-size: 19px; color: #04101a; background: var(--lp-grad); margin-bottom: 20px; }
.lp-step h3 { font-size: 20px; margin-bottom: 10px; }
.lp-step p { font-size: 14.5px; color: var(--lp-muted); }

/* Bento features */
.lp-bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.lp-card { position: relative; overflow: hidden; padding: 30px; border-radius: 26px; background: var(--lp-surface); border: 1px solid var(--lp-border); transition: transform .3s, border-color .3s; grid-column: span 2; }
.lp-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.45); }
.lp-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -90px; top: -90px; background: var(--g, var(--lp-teal)); filter: blur(80px); opacity: 0; transition: opacity .4s; }
.lp-card:hover::after { opacity: .28; }
.lp-card-wide { grid-column: span 3; }
.lp-card-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 21px; margin-bottom: 22px; color: var(--ic-c, var(--lp-teal)); background: color-mix(in srgb, var(--ic-c, var(--lp-teal)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ic-c, var(--lp-teal)) 30%, transparent); }
.lp-card h3 { font-size: 21px; margin-bottom: 10px; }
.lp-card p { font-size: 15px; color: var(--lp-muted); }
.lp-card ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--lp-text); }
.lp-card li { display: flex; gap: 10px; align-items: flex-start; }
.lp-card li i { color: var(--lp-teal); font-size: 12px; margin-top: 6px; }

/* Pipeline */
.lp-pipe { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--lp-border); border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.lp-pipe-item { padding: 34px 28px; border-right: 1px solid var(--lp-border); position: relative; }
.lp-pipe-item:last-child { border-right: 0; }
.lp-pipe-item .lp-tag { margin-bottom: 18px; display: inline-block; }
.lp-pipe-item h3 { font-size: 19px; margin-bottom: 10px; }
.lp-pipe-item p { font-size: 14.5px; color: var(--lp-muted); }

/* Optimisation engine showcase */
.lp-engine { margin-top: 56px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.lp-engine-viz { padding: 26px; border-radius: 28px; border: 1px solid var(--lp-border); background: linear-gradient(160deg, rgba(99,102,241,.14), rgba(45,212,191,.05) 60%, transparent); display: flex; flex-direction: column; min-height: 320px; }
.lp-viz-head, .lp-viz-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--lp-muted); }
.lp-viz-head span:first-child { font-family: 'Outfit'; font-weight: 600; color: var(--lp-text); font-size: 15px; }
.lp-engine-viz svg { flex: 1; width: 100%; min-height: 180px; margin: 14px 0 8px; }
.lp-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; filter: drop-shadow(0 0 6px currentColor); }
.lp-engine.is-in .lp-line { animation: lp-draw 3.2s cubic-bezier(.3,.7,.2,1) forwards; }
.lp-engine.is-in .l2 { animation-delay: .25s; } .lp-engine.is-in .l3 { animation-delay: .5s; } .lp-engine.is-in .l4 { animation-delay: .75s; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
.lp-algos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lp-algo { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 22px; background: var(--lp-surface); border: 1px solid var(--lp-border); transition: transform .3s, border-color .3s, background .3s; }
.lp-algo:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ic-c) 55%, transparent); background: var(--lp-surface-2); }
.lp-algo .lp-card-ic { width: 44px; height: 44px; font-size: 18px; margin: 0; flex: none; border-radius: 14px; }
.lp-algo h3 { font-size: 16.5px; margin-bottom: 4px; }
.lp-algo p { font-size: 13.5px; color: var(--lp-muted); line-height: 1.5; }
.lp-flow { margin-top: 24px; display: flex; align-items: stretch; justify-content: space-between; gap: 10px; padding: 22px; border-radius: 26px; border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-flow-step { flex: 1; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 4px 8px; }
.lp-flow-step > i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #04101a; background: var(--lp-grad); font-size: 18px; }
.lp-flow-step b { font-family: 'Outfit'; font-size: 17px; }
.lp-flow-step span { font-size: 13px; color: var(--lp-muted); max-width: 190px; }
.lp-flow-arrow { align-self: center; color: var(--lp-muted); font-size: 14px; }

/* Conditions */
.lp-chips { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-chips span { padding: 11px 18px; border-radius: 999px; background: var(--lp-surface); border: 1px solid var(--lp-border); font-size: 14.5px; font-weight: 500; transition: transform .2s, border-color .2s, background .2s; }
.lp-chips span:hover { transform: translateY(-3px); border-color: var(--lp-teal); background: rgba(45,212,191,.08); }
.lp-chips span i { color: var(--lp-teal); margin-right: 8px; font-size: 12px; }

/* Platforms */
.lp-plat { margin: 56px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
.lp-plat-card { padding: 34px 30px; border-radius: 26px; background: var(--lp-surface); border: 1px solid var(--lp-border); text-align: left; }
.lp-plat-card .lp-card-ic { margin-bottom: 20px; }
.lp-plat-card h3 { font-size: 22px; margin-bottom: 10px; }
.lp-plat-card p { color: var(--lp-muted); font-size: 15px; }

/* Pricing */
.lp-price { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin-left: auto; margin-right: auto; }
.lp-plan { padding: 38px 34px; border-radius: 28px; background: var(--lp-surface); border: 1px solid var(--lp-border); position: relative; }
.lp-plan-hot { background: linear-gradient(180deg, rgba(99,102,241,.18), rgba(45,212,191,.06)); border-color: rgba(139,92,246,.5); box-shadow: 0 30px 70px -30px rgba(99,102,241,.5); }
.lp-plan-badge { position: absolute; top: -13px; left: 34px; padding: 5px 14px; border-radius: 999px; background: var(--lp-grad); color: #04101a; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.lp-plan h3 { font-size: 24px; }
.lp-plan > p { margin-top: 8px; color: var(--lp-muted); font-size: 15px; }
.lp-plan ul { margin: 26px 0 30px; display: grid; gap: 13px; font-size: 15px; }
.lp-plan li { display: flex; gap: 12px; align-items: flex-start; }
.lp-plan li i { color: var(--lp-teal); margin-top: 5px; font-size: 13px; }
.lp-plan .lp-btn { width: 100%; }
.lp-pay { margin-top: 30px; text-align: center; color: var(--lp-muted); font-size: 14px; }
.lp-pay b { color: var(--lp-text); font-weight: 600; }

/* FAQ */
.lp-faq { margin: 52px auto 0; max-width: 800px; display: grid; gap: 14px; }
.lp-faq-item { border-radius: 20px; background: var(--lp-surface); border: 1px solid var(--lp-border); overflow: hidden; transition: border-color .25s; }
.lp-faq-item.is-open { border-color: rgba(45,212,191,.45); }
.lp-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; background: none; border: 0; color: var(--lp-text); font-size: 17px; font-weight: 600; text-align: left; font-family: 'Outfit', sans-serif; }
.lp-faq-q i { transition: transform .3s; color: var(--lp-teal); flex: none; }
.lp-faq-item.is-open .lp-faq-q i { transform: rotate(45deg); }
.lp-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.lp-faq-a p { padding: 0 26px 24px; color: var(--lp-muted); font-size: 15.5px; }

/* CTA */
.lp-cta { margin-top: 120px; position: relative; z-index: 1; }
.lp-cta-box { position: relative; overflow: hidden; text-align: center; padding: 76px 28px; border-radius: 36px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(99,102,241,.28) 55%, rgba(139,92,246,.3)); }
.lp-cta-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 70%); }
.lp-cta-box > * { position: relative; }
.lp-cta-box h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; max-width: 760px; margin: 0 auto; }
.lp-cta-box p { margin: 20px auto 0; max-width: 560px; color: #c5cbe0; font-size: 18px; }
.lp-cta-box .lp-hero-actions { justify-content: center; }

/* Footer */
.lp-footer { position: relative; z-index: 1; margin-top: 110px; border-top: 1px solid var(--lp-border); background: var(--lp-bg-2); padding: 56px 0 40px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.lp-footer h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 18px; font-weight: 600; }
.lp-footer li { margin-bottom: 11px; font-size: 15px; }
.lp-footer li a { color: var(--lp-text); opacity: .85; transition: opacity .2s, color .2s; }
.lp-footer li a:hover { opacity: 1; color: var(--lp-teal); }
.lp-footer-about { color: var(--lp-muted); font-size: 14.5px; margin-top: 18px; max-width: 340px; }
.lp-disclaimer { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--lp-border); font-size: 13px; color: var(--lp-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.lp-disclaimer p { max-width: 760px; }

/* Reveal on scroll */
.lp-js .lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.lp-js .lp-reveal.is-in { opacity: 1; transform: none; }
/* If the script never starts, show everything after 4 seconds instead of a blank page */
.lp-js:not(.lp-ready) .lp-reveal { animation: lp-failsafe .01s 4s forwards; }
@keyframes lp-failsafe { to { opacity: 1; transform: none; } }
.lp-d1 { transition-delay: .08s; } .lp-d2 { transition-delay: .16s; } .lp-d3 { transition-delay: .24s; }

/* Auth modal close button (only meaningful over the landing page) */
#auth-close { display: none; }
html.lp-active #auth-close { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .lp-engine { grid-template-columns: 1fr; }
    .lp-hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .lp-hero-sub { margin-left: auto; margin-right: auto; }
    .lp-hero-actions, .lp-hero-note { justify-content: center; }
    .lp-steps, .lp-pipe { grid-template-columns: repeat(2, 1fr); }
    .lp-pipe-item:nth-child(2) { border-right: 0; }
    .lp-pipe-item:nth-child(-n+2) { border-bottom: 1px solid var(--lp-border); }
    .lp-bento { grid-template-columns: repeat(2, 1fr); }
    .lp-card, .lp-card-wide { grid-column: span 1; }
    .lp-plat { grid-template-columns: 1fr; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .lp-links { display: none; }
    .lp-burger { display: inline-flex; }
}
@media (max-width: 640px) {
    .lp-algos { grid-template-columns: 1fr; }
    .lp-flow { flex-direction: column; }
    .lp-flow-arrow { transform: rotate(90deg); }
    .lp-container { padding: 0 18px; }
    .lp-nav-inner { height: 64px; }
    .lp-brand small { display: none; }
    .lp-hero { padding: 40px 0 20px; }
    .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-stat:nth-child(2) { border-right: 0; }
    .lp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--lp-border); }
    .lp-steps, .lp-bento, .lp-pipe, .lp-price { grid-template-columns: 1fr; }
    .lp-pipe-item { border-right: 0; border-bottom: 1px solid var(--lp-border); }
    .lp-pipe-item:last-child { border-bottom: 0; }
    .lp-section { padding-top: 80px; }
    .lp-phone { width: 290px; }
    .lp-chip { padding: 9px 12px; font-size: 11.5px; }
    .lp-chip-a { left: 6px; top: 0; } .lp-chip-b { right: 6px; bottom: 70px; } .lp-chip-c { display: none; }
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-hero-actions .lp-btn { flex: 1 1 100%; }
    .lp-nav-cta .lp-btn-primary { display: none; }
    .lp-cta-box { padding: 54px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    #landing, #landing * { animation: none !important; transition: none !important; }
    html.lp-active { scroll-behavior: auto; }
    .lp-js .lp-reveal { opacity: 1; transform: none; }
}


/* ---------- Secondary hero link ---------- */
.lp-link-cta { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px; font-weight: 600; font-size: 16px; color: var(--lp-text); opacity: .85; transition: opacity .2s, gap .2s; }
.lp-link-cta:hover { opacity: 1; gap: 14px; }
.lp-link-cta i { color: var(--lp-teal); font-size: 13px; }
.lp-meal-more { justify-content: center; color: var(--lp-muted); font-size: 11.5px; background: transparent; border-style: dashed; }

/* ---------- Real output ---------- */
.lp-sample { margin-top: 56px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; align-items: start; }
.lp-sample-table, .lp-sample-side { border-radius: 26px; border: 1px solid var(--lp-border); background: var(--lp-surface); overflow: hidden; }
.lp-sample-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lp-sample-table th { text-align: left; padding: 16px 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); border-bottom: 1px solid var(--lp-border); font-weight: 600; }
.lp-sample-table td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; color: var(--lp-text); }
.lp-sample-table td:first-child { white-space: nowrap; font-weight: 600; }
.lp-sample-table td:nth-child(2) { color: var(--lp-muted); }
.lp-sample-table tfoot td { font-weight: 700; font-family: 'Outfit'; font-size: 16px; border-bottom: 0; background: rgba(255,255,255,.04); }
.lp-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.lp-s-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(45,212,191,.12); margin-right: 10px; font-size: 14px; }
.lp-sample-side { padding: 26px; }
.lp-sample-side h3 { font-size: 19px; margin-bottom: 18px; }
.lp-tv { margin-bottom: 18px; }
.lp-tv-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.lp-tv-top span { color: var(--lp-muted); } .lp-tv-top b { font-family: 'Outfit'; }
.lp-tv-bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255,255,255,.09); }
.lp-tv-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; background: var(--c); }
.lp-tv-bar s { position: absolute; top: -4px; bottom: -4px; left: var(--t); width: 2px; background: #fff; opacity: .8; border-radius: 2px; }
.lp-tv small { display: block; margin-top: 6px; font-size: 12px; color: var(--lp-muted); }
.lp-sample-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lp-border); font-size: 13.5px; color: var(--lp-muted); }

/* ---------- Condition explorer ---------- */
.lp-explorer { margin-top: 48px; padding: 30px; border-radius: 28px; border: 1px solid var(--lp-border); background: linear-gradient(160deg, rgba(99,102,241,.1), rgba(45,212,191,.04) 60%, transparent); }
.lp-cond-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-cond { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-text); font-size: 14.5px; font-weight: 500; transition: transform .2s, border-color .2s, background .2s, color .2s; }
.lp-cond:hover { transform: translateY(-2px); border-color: rgba(45,212,191,.6); }
.lp-cond[aria-pressed="true"] { background: var(--lp-grad); color: #04101a; border-color: transparent; font-weight: 700; }
.lp-cond:focus-visible, .lp-more:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: 3px; }
.lp-cond[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.lp-chip-extra { display: none; }
.lp-cond-list.is-expanded .lp-chip-extra { display: inline-block; }
.lp-more { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--lp-teal); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.lp-explorer-out { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-out-item { padding: 20px; border-radius: 20px; background: rgba(6,10,23,.6); border: 1px solid var(--lp-border); text-align: left; }
.lp-out-item span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 8px; }
.lp-out-item b { display: block; font-family: 'Outfit'; font-size: 30px; line-height: 1.1; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-out-item small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--lp-muted); line-height: 1.45; }
.lp-explorer-note { margin-top: 20px; font-size: 13.5px; color: var(--lp-muted); text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Price table ---------- */
.lp-pricetable { margin: 40px auto 0; max-width: 900px; padding: 28px; border-radius: 26px; border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-pricetable[hidden] { display: none; }
.lp-pricetable h3 { font-size: 19px; margin-bottom: 18px; text-align: center; }
.lp-pt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.lp-pt { text-align: center; padding: 14px 6px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.lp-pt span { display: block; font-size: 12px; color: var(--lp-muted); }
.lp-pt b { display: block; font-family: 'Outfit'; font-size: 22px; margin: 4px 0 2px; }
.lp-pt small { font-size: 12px; color: var(--lp-teal); }
.lp-pt-note { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--lp-muted); }

/* ---------- Trust ---------- */
.lp-trust-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-trust-card { grid-column: auto; }
.lp-trust-card p a { color: var(--lp-teal); text-decoration: underline; text-underline-offset: 3px; }
.lp-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.lp-contact-list i { color: var(--lp-teal); margin-top: 5px; width: 14px; text-align: center; flex: none; }
.lp-contact-list span { opacity: .85; }

@media (max-width: 1020px) {
    .lp-sample { grid-template-columns: 1fr; }
    .lp-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-pt-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .lp-explorer { padding: 22px 16px; }
    .lp-explorer-out, .lp-trust-grid { grid-template-columns: 1fr; }
    .lp-pt-grid { grid-template-columns: repeat(3, 1fr); }
    .lp-sample-table td, .lp-sample-table th { padding: 12px; }
    .lp-sample-table td:first-child { white-space: normal; }
    .lp-s-ic { display: none; }
    .lp-link-cta { height: 48px; justify-content: center; width: 100%; }
}

.lp-pt-min { margin-top: 20px; text-align: center; font-size: 15px; color: var(--lp-text); padding: 12px 16px; border-radius: 14px; background: rgba(45,212,191,.08); border: 1px solid rgba(45,212,191,.28); }
.lp-pt-min i { color: var(--lp-teal); margin-right: 8px; }

/* ---------- Real app screenshots ---------- */
.lp-screen.lp-screen-img { padding: 0; background: #0b1226; }
.lp-screen-img img { display: block; width: 100%; height: auto; border-radius: 32px; }
.lp-phone-sm { width: 290px; transform: rotate(2deg); animation: none; margin: 0 auto; --r: 2deg; }
.lp-sample { grid-template-columns: 1.3fr .7fr; }
.lp-sample-main { display: grid; gap: 18px; }
.lp-sample-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-sample-facts div { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-sample-facts span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 6px; }
.lp-sample-facts b { display: block; font-family: 'Outfit'; font-size: 26px; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sample-facts small { display: block; margin-top: 4px; font-size: 13px; color: var(--lp-muted); }
.lp-sample-phone { text-align: center; }
.lp-sample-phone p { margin-top: 16px; font-size: 13.5px; color: var(--lp-muted); max-width: 280px; margin-left: auto; margin-right: auto; }
@media (max-width: 1020px) { .lp-sample { grid-template-columns: 1fr; } .lp-sample-phone { margin-top: 12px; } }
@media (max-width: 640px) { .lp-sample-facts { grid-template-columns: 1fr; } }

/* ---------- Health calculator ---------- */
.lp-calc { margin-top: 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lp-calc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.lp-calc-stats div { padding: 16px 12px; text-align: center; border-radius: 18px; border: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-calc-stats b { display: block; font-family: 'Outfit'; font-size: 34px; line-height: 1.1; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-calc-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--lp-muted); }
.lp-calc-list { display: grid; gap: 14px; margin-bottom: 24px; }
.lp-calc-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.lp-calc-list li:hover { background: var(--lp-surface); border-color: var(--lp-border); }
.lp-calc-list li > i { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--lp-teal); background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.28); font-size: 17px; }
.lp-calc-list b { display: block; font-family: 'Outfit'; font-size: 17px; margin-bottom: 2px; }
.lp-calc-list span { display: block; font-size: 14.5px; color: var(--lp-muted); line-height: 1.5; }
.lp-calc-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 26px; font-size: 14px; color: var(--lp-muted); }
.lp-calc-meta i { color: var(--lp-teal); margin-right: 8px; }
.lp-calc-note { margin-top: 16px; font-size: 12.5px; color: var(--lp-muted); }
.lp-calc-demo { text-align: center; }
.lp-calc-tabs { display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 26px; border-radius: 16px; border: 1px solid var(--lp-border); background: var(--lp-surface); flex-wrap: wrap; justify-content: center; }
.lp-calc-tabs button { padding: 9px 16px; border-radius: 11px; border: 0; background: transparent; color: var(--lp-muted); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.lp-calc-tabs button:hover { color: #fff; }
.lp-calc-tabs button.is-active { background: var(--lp-grad); color: #04101a; }
.lp-calc-tabs button:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: 2px; }
.lp-phone-calc { width: 300px; transform: rotate(0); --r: 0deg; animation: lp-float 8s ease-in-out infinite; }
.lp-phone-calc img { transition: opacity .25s ease; }
.lp-phone-calc img.is-swapping { opacity: 0; }
@media (max-width: 1020px) { .lp-calc { grid-template-columns: 1fr; } .lp-calc-demo { order: -1; } }
@media (max-width: 640px) { .lp-calc-stats { grid-template-columns: 1fr 1fr 1fr; } .lp-calc-stats b { font-size: 28px; } .lp-calc-list li { padding: 12px 6px; } .lp-phone-calc { width: 280px; } }

/* ---------- iPhone 15 Pro style device frame (screen 393 x 852 pt, as on a real iPhone) ---------- */
.iphone {
    --w: 300px;
    --u: calc(var(--w) / 426.2);                     /* 1 iPhone point */
    position: relative; width: var(--w); flex: none;
    padding: calc(var(--u) * 16.6);
    border-radius: calc(var(--u) * 72);
    background: linear-gradient(145deg, #5b5e64 0%, #26282c 28%, #1a1b1e 55%, #4a4d53 100%);
    box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 calc(var(--u) * 1) rgba(255,255,255,.14) inset;
}
.iphone::before {                                   /* black glass bezel */
    content: ""; position: absolute; inset: calc(var(--u) * 7.2);
    border-radius: calc(var(--u) * 64.8); background: #000;
}
.ip-screen {
    position: relative; width: calc(var(--u) * 393); height: calc(var(--u) * 852);
    border-radius: calc(var(--u) * 55); overflow: hidden; background: #0f172a; /* matches the app background */
}
.ip-screen img { display: block; width: 100%; height: calc(var(--u) * 764); margin-top: calc(var(--u) * 54); object-fit: cover; object-position: top; border-radius: 0; }
.ip-status { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--u) * 54); display: flex; align-items: center; justify-content: space-between; color: #fff; z-index: 3; }
.ip-time { width: calc(var(--u) * 133); text-align: center; font: 600 calc(var(--u) * 17) / 1 -apple-system, 'SF Pro Text', 'Inter', system-ui, sans-serif; letter-spacing: -.01em; padding-top: calc(var(--u) * 6); }
.ip-island { position: absolute; left: 50%; top: calc(var(--u) * 11); width: calc(var(--u) * 126); height: calc(var(--u) * 37); transform: translateX(-50%); background: #000; border-radius: 999px; }
.ip-icons { width: calc(var(--u) * 133); display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 6); padding-top: calc(var(--u) * 6); fill: #fff; color: #fff; }
.ip-icons svg { height: calc(var(--u) * 12); width: auto; display: block; }
.ip-icons .ip-bat { height: calc(var(--u) * 13); }
.ip-home { position: absolute; left: 50%; bottom: calc(var(--u) * 8); width: calc(var(--u) * 134); height: calc(var(--u) * 5); transform: translateX(-50%); background: rgba(255,255,255,.92); border-radius: 999px; z-index: 3; }
.ip-btn { position: absolute; width: calc(var(--u) * 3.6); background: linear-gradient(180deg, #54575c, #2b2d31); border-radius: calc(var(--u) * 2); }
.ip-action { left: calc(var(--u) * -2.4); top: calc(var(--u) * 169); height: calc(var(--u) * 36); }
.ip-volup { left: calc(var(--u) * -2.4); top: calc(var(--u) * 229); height: calc(var(--u) * 66); }
.ip-voldn { left: calc(var(--u) * -2.4); top: calc(var(--u) * 308); height: calc(var(--u) * 66); }
.ip-power { right: calc(var(--u) * -2.4); top: calc(var(--u) * 296); height: calc(var(--u) * 109); }
.ip-hero { --w: 320px; transform: rotate(-3deg); animation: lp-float 7s ease-in-out infinite; --r: -3deg; }
.ip-sample { --w: 290px; transform: rotate(2deg); margin: 0 auto; }
.ip-calc { --w: 300px; margin: 0 auto; animation: lp-float 8s ease-in-out infinite; --r: 0deg; }
.ip-calc img { transition: opacity .25s ease; }
.ip-calc img.is-swapping { opacity: 0; }
@media (max-width: 640px) { .ip-hero { --w: 290px; } .ip-sample { --w: 270px; } .ip-calc { --w: 280px; } }

/* ---------- Meal patterns ---------- */
.lp-patterns { margin-top: 48px; padding: 30px; border-radius: 28px; border: 1px solid var(--lp-border); background: linear-gradient(160deg, rgba(139,92,246,.1), rgba(45,212,191,.04) 60%, transparent); }
.lp-pat-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-pat { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-text); font-size: 14.5px; font-weight: 500; transition: transform .2s, border-color .2s, background .2s; }
.lp-pat:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.6); }
.lp-pat[aria-selected="true"] { background: var(--lp-grad); color: #04101a; border-color: transparent; font-weight: 700; }
.lp-pat:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: 3px; }
.lp-pat-panel { margin-top: 28px; padding: 26px; border-radius: 22px; background: rgba(6,10,23,.6); border: 1px solid var(--lp-border); }
.lp-pat-panel[hidden] { display: none; }
.lp-pat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lp-pat-head h3 { font-size: 24px; }
.lp-pat-desc { margin-top: 8px; color: var(--lp-muted); font-size: 15.5px; }
.lp-pat-bar { margin-top: 24px; display: flex; height: 54px; border-radius: 16px; overflow: hidden; gap: 3px; }
.lp-seg { flex: var(--p) 1 0; min-width: 0; display: grid; place-items: center; font-family: 'Outfit'; font-weight: 700; font-size: 14px; color: #04101a; background: var(--c); transition: flex .5s cubic-bezier(.2,.8,.2,1); animation: lp-seg-in .5s ease both; }
@keyframes lp-seg-in { from { opacity: 0; transform: scaleY(.6); } to { opacity: 1; transform: none; } }
.lp-pat-legend { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 18px; }
.lp-leg { display: flex; align-items: center; gap: 10px; font-size: 14.5px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.lp-leg i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.lp-leg span { flex: 1; }
.lp-leg b { font-family: 'Outfit'; font-variant-numeric: tabular-nums; }
.lp-leg small { color: var(--lp-muted); font-size: 12px; min-width: 62px; text-align: right; }
.lp-pat-note { margin-top: 16px; font-size: 13px; color: var(--lp-muted); }
@media (max-width: 640px) { .lp-patterns { padding: 20px 14px; } .lp-seg { font-size: 11px; } .lp-pat-bar { height: 46px; } .lp-pat-head h3 { font-size: 20px; } }

/* Core engine block (above the fold, right after the hero) */
.lp-inline-link { color: var(--lp-teal); font-weight: 600; white-space: nowrap; text-decoration: none; }
.lp-inline-link:hover { text-decoration: underline; }
.lp-hero-sub b { color: var(--lp-text); }
.lp-core { position: relative; z-index: 1; padding: 24px 0 8px; }
.lp-core-card { border: 1px solid var(--lp-border); border-radius: 28px; background: var(--lp-surface); padding: clamp(24px, 4vw, 48px); background-image: radial-gradient(900px 300px at 10% -10%, rgba(45,212,191,.10), transparent 60%), radial-gradient(700px 300px at 100% 0%, rgba(99,102,241,.12), transparent 60%); }
.lp-core-head { max-width: 860px; }
.lp-core-head .lp-title { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.lp-core-head .lp-lead { margin-bottom: 18px; }
.lp-core-head .lp-lead b { color: var(--lp-text); }
.lp-core-std { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 30px; }
.lp-core-std div { border: 1px solid var(--lp-border); border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.03); }
.lp-core-std b { display: block; font-family: 'Outfit'; font-size: 28px; font-weight: 800; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-core-std span { font-size: 13.5px; color: var(--lp-muted); }
.lp-core-sub { font-family: 'Outfit'; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.lp-core-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.lp-core-group h4 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-teal); margin-bottom: 8px; font-weight: 700; }
.lp-pchips { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-pchips span { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--lp-border); background: rgba(255,255,255,.04); color: var(--lp-text); }
.lp-core-note { margin-top: 22px; font-size: 13.5px; color: var(--lp-muted); }
@media (max-width: 720px) {
    .lp-core-std { grid-template-columns: 1fr; }
    .lp-core-groups { grid-template-columns: 1fr; }
}
.lp-by { font-size: 13.5px; color: var(--lp-muted); margin-bottom: 14px; letter-spacing: .02em; }
.lp-by b { color: var(--lp-teal); font-weight: 700; }

/* Hero metrics */
.lp-hero-metrics { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--lp-border); max-width: 560px; }
.lp-hero-metrics > div { display: flex; align-items: center; gap: 12px; }
.lp-hero-metrics b { font-family: 'Outfit'; font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero-metrics > div > span { font-size: 12.5px; line-height: 1.3; color: var(--lp-muted); }
.lp-hero h1 { letter-spacing: -0.03em; line-height: 1.04; }
.lp-hero .lp-grad-text { position: relative; }
@media (max-width: 720px) {
    .lp-hero-metrics { gap: 14px 22px; }
    .lp-hero-metrics > div { gap: 9px; }
    .lp-hero-actions .lp-btn { width: 100%; justify-content: center; }
}

/* Hero: compact so headline, CTAs and metrics fit the first screen */
.lp-hero { padding: 40px 0 28px; }
.lp-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.lp-hero-sub { margin-top: 18px; font-size: clamp(16px, 1.7vw, 18.5px); }
.lp-hero-actions { margin-top: 26px; }
.lp-hero-metrics { margin-top: 24px; padding-top: 20px; }
.lp-by { margin-bottom: 10px; }
