/* The landing page (/welcome). Same tokens as the app (styles.css), bigger and louder. */

body.landing { overflow-x: hidden; background: var(--bg); }
.landing main { position: relative; z-index: 1; }

/* Three slow, glowing blobs behind everything. */
.lp-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lp-aurora span { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: lp-drift 22s ease-in-out infinite alternate; }
.lp-aurora span:nth-child(1) { background: var(--accent-fill); left: -15vmax; top: -20vmax; }
.lp-aurora span:nth-child(2) { background: var(--accent-2); right: -18vmax; top: 5vmax; animation-duration: 27s; opacity: .4; }
.lp-aurora span:nth-child(3) { background: var(--accent-3, #22d3ee); left: 20vmax; bottom: -30vmax; animation-duration: 31s; opacity: .35; }
@keyframes lp-drift { to { transform: translate(8vmax, 6vmax) scale(1.12); } }
:root[data-theme="dark"] .lp-aurora span { opacity: .35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-aurora span { opacity: .35; } }

/* Navigation */
.lp-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.lp-brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.lp-brand img { border-radius: 9px; }
.landing .lp-brand .brand-name { display: inline; }
.lp-links { display: flex; gap: var(--s5); }
.lp-links a { color: var(--text-muted); font-weight: 600; text-decoration: none; }
.lp-links a:hover { color: var(--text); }
.lp-nav-actions { display: flex; gap: var(--s2); }
@media (max-width: 720px) { .lp-links { display: none; } }

/* Hero */
.lp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 9vh, 110px) clamp(16px, 4vw, 48px) clamp(32px, 6vh, 72px); }
@media (max-width: 900px) { .lp-hero { grid-template-columns: 1fr; } }
.lp-eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent-fill) 14%, var(--surface)); color: var(--primary); font-weight: 700; font-size: var(--text-sm); border: 1px solid color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.lp-title { margin: var(--s4) 0 var(--s4); font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 850; }
/* "Better Work." shines: the brand's two colours, with light sweeping across. */
.lp-shine { background: linear-gradient(100deg, var(--accent-fill) 10%, var(--accent-2) 45%, color-mix(in srgb, var(--accent-2) 30%, white) 55%, var(--accent-fill) 90%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lp-shine 6s linear infinite; }
@keyframes lp-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-muted); max-width: 36em; }
.lp-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s3); }
.lp-btn-lg { min-height: 50px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.lp-hero-text .small { margin-top: var(--s2); }

/* The floating preview of the app */
.lp-hero-demo { position: relative; }
.lp-window { position: relative; padding: var(--s5); border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); box-shadow: 0 30px 80px -30px var(--glow), var(--shadow-pop); backdrop-filter: blur(10px); }
.lp-window-bar { display: flex; gap: 6px; margin-bottom: var(--s4); }
.lp-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.lp-window-bar span:nth-child(1) { background: #ff5f57; } .lp-window-bar span:nth-child(2) { background: #febc2e; } .lp-window-bar span:nth-child(3) { background: #28c840; }
.lp-demo-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.lp-demo-title { font-size: 1.6rem; font-weight: 800; margin: 6px 0 4px; }
.lp-demo-meta { color: var(--text-muted); font-weight: 600; }
.lp-demo-why { margin: var(--s3) 0 var(--s4); padding: var(--s3); border-radius: 12px; background: var(--primary-soft); }
.lp-demo-list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s2); }
.lp-demo-list li { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.lp-demo-list em { color: var(--text-muted); font-style: normal; font-weight: 500; }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); }
.lp-dot.ok { background: var(--ok); } .lp-dot.soon { background: var(--soon); }
.lp-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop); font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.lp-chip .icon { color: var(--ok); }
.lp-chip-a { top: -16px; right: 8%; }
.lp-chip-b { bottom: -18px; left: -4%; }
@media (max-width: 900px) { .lp-chip-b { left: 4%; } }

/* The scrolling strip */
.lp-strip { overflow: hidden; padding: var(--s4) 0; border-block: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.lp-marquee { display: flex; gap: var(--s5); width: max-content; font-weight: 800; font-size: 1.1rem; animation: lp-marquee 32s linear infinite; }

@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* Sections */
.lp-section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 10vh, 120px) clamp(16px, 4vw, 48px) 0; }
.lp-h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.03em; font-weight: 850; text-align: center; margin-bottom: var(--s6); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
@media (max-width: 820px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { padding: var(--s5); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-step h3 { font-size: 1.2rem; margin: var(--s3) 0 var(--s2); }
.lp-step p { color: var(--text-muted); line-height: 1.55; }
.lp-step-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-fill), var(--accent-2)); color: var(--on-accent); font-weight: 800; box-shadow: 0 10px 24px -10px var(--glow); }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 980px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .lp-grid { grid-template-columns: 1fr; } }
/* Cards light up where the pointer is (a spotlight, after React Bits' Spotlight Card). */
.lp-card, .lp-price { position: relative; overflow: hidden; padding: var(--s5); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.lp-card::before, .lp-price-plus::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent-fill) 18%, transparent), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.lp-card:hover::before, .lp-price-plus::before { opacity: 1; }
.lp-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-fill) 40%, var(--border)); }
.lp-card h3 { font-size: 1.12rem; margin: var(--s3) 0 var(--s2); position: relative; }
.lp-card p { color: var(--text-muted); line-height: 1.55; position: relative; }
.lp-card-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.lp-plus { margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: middle; background: linear-gradient(120deg, var(--accent-fill), var(--accent-2)); color: var(--on-accent); }

.lp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); max-width: 860px; margin: 0 auto; }
@media (max-width: 720px) { .lp-prices { grid-template-columns: 1fr; } }
.lp-price h3 { font-size: 1.3rem; position: relative; }
.lp-amount { position: relative; font-size: 1.15rem; font-weight: 800; margin: var(--s2) 0 var(--s4); color: var(--primary); }
.lp-price ul { position: relative; margin: 0 0 var(--s5); padding-left: 1.2em; display: grid; gap: var(--s2); color: var(--text-muted); }
.lp-price .btn { position: relative; }
.lp-price-plus { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent-fill), var(--accent-2), var(--accent-3, var(--accent-2))) border-box; box-shadow: 0 30px 70px -35px var(--glow), var(--shadow); }

.lp-final { max-width: 860px; margin: clamp(64px, 12vh, 140px) auto 0; padding: clamp(32px, 6vw, 64px); text-align: center; border-radius: 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-fill) 16%, var(--surface)), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); border: 1px solid var(--border); }
.lp-final .lp-h2 { margin-bottom: var(--s3); }
.lp-final .lp-lead { margin: 0 auto var(--s5); }
.lp-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); max-width: 1180px; margin: clamp(48px, 8vh, 96px) auto 0; padding: var(--s5) clamp(16px, 4vw, 48px) var(--s6); color: var(--text-muted); font-size: var(--text-sm); border-top: 1px solid var(--border); }

/* Before the scripts run (and if they never do), everything is simply visible. */
.lp-motion [data-reveal], .lp-motion [data-rise] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lp-aurora span, .lp-shine, .lp-marquee { animation: none; }
  .lp-marquee { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  .lp-marquee [aria-hidden="true"] { display: none; }
  .lp-card:hover { transform: none; }
}

/* Readability and tap targets (from the accessibility audit). */
.lp-nav { background: var(--bg); }
.lp-strip { background: var(--surface); }
.lp-marquee span { color: var(--text); }
.lp-marquee span:nth-child(even) { color: var(--primary); }
.lp-eyebrow { color: var(--text); }
.lp-links a, .lp-footer a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; }
.lp-brand { min-height: 44px; }
@media (max-width: 760px) { .lp-footer a { min-height: 44px; min-width: 44px; justify-content: center; } }
.lp-eyebrow { background: var(--primary-soft); border-color: var(--border); }
