/* Landing page only. Everything is prefixed lp- so it can't collide with the
   Tailwind utilities or the profile page's classes. Colours derive from the
   sitewide tokens. */
.lp {
  --lp-fg: rgb(var(--primary));
  --lp-muted: rgb(var(--secondary));
  --lp-line: rgb(var(--primary) / 0.1);
  --lp-card: rgb(var(--primary) / 0.04);
  --lp-card-hi: rgb(var(--primary) / 0.08);
  --lp-a1: rgb(var(--acc1));
  --lp-a2: rgb(var(--acc2));
  --lp-ok: 5 150 105;
  --lp-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--lp-fg);
}
.lp a { text-decoration: none; }
.lp p { color: var(--lp-muted); }
.lp-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.lp-grad { background: linear-gradient(100deg, var(--lp-a1), var(--lp-a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.lp-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--lp-line); color: var(--lp-fg); transition: transform 0.2s, background-color 0.2s, border-color 0.2s; }
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn.ghost:hover { border-color: var(--lp-a2); background: var(--lp-card-hi); }
.lp-btn.shimmer { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(100deg, var(--lp-a1), #6366f1 55%, var(--lp-a2)); box-shadow: 0 10px 34px -8px var(--lp-a1); }
.lp-btn.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.5) 50%, transparent 65%); transform: translateX(-120%); animation: lp-shim 3.2s ease-in-out infinite; }
@keyframes lp-shim { 55%, 100% { transform: translateX(120%); } }

/* hero */
.lp-hero { text-align: center; padding: 56px 0 24px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--lp-line); background: var(--lp-card); color: var(--lp-muted); }
.lp-eyebrow b { background: linear-gradient(100deg, var(--lp-a1), var(--lp-a2)); color: #fff; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.04em; }
.lp h1.lp-title { font-size: clamp(38px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 22px auto 0; max-width: 15ch; text-wrap: balance; }
.lp-cycle { display: block; height: 1.18em; overflow: hidden; }
.lp-word { display: block; }
.lp-lead { max-width: 56ch; margin: 22px auto 0; font-size: clamp(16px, 2vw, 19px); }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.lp-sub-links { margin-top: 18px; font-size: 14px; color: var(--lp-muted); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.lp-sub-links a { color: var(--lp-muted); }
.lp-sub-links a:hover { color: var(--lp-fg); }

/* demo */
.lp-demo-slot { margin: 54px auto 0; max-width: 940px; min-height: 380px; }
.lp-demo { border-radius: 20px; border: 1px solid var(--lp-line); background: rgb(var(--entry) / 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.45); overflow: hidden; text-align: left; }
.lp-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--lp-line); }
.lp-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-line); display: block; }
.lp-url { margin-left: 10px; flex: 1; font-family: var(--lp-mono); font-size: 12px; color: var(--lp-muted); background: var(--lp-card); border-radius: 999px; padding: 4px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-demo-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.lp-form { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; align-content: start; }
.lp-form h4 { grid-column: 1 / -1; margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--lp-fg); }
.lp-form h4 small { display: block; font-weight: 400; color: var(--lp-muted); font-size: 13px; }
.lp-f { min-width: 0; }
.lp-f.full { grid-column: 1 / -1; }
.lp-f label { display: block; font-size: 11px; color: var(--lp-muted); margin-bottom: 4px; letter-spacing: 0.05em; text-transform: uppercase; }
.lp-in { height: 38px; border-radius: 10px; border: 1px solid var(--lp-line); background: var(--lp-card); padding: 0 12px; display: flex; align-items: center; font-size: 14px; overflow: hidden; white-space: nowrap; transition: border-color 0.3s, background-color 0.3s; color: var(--lp-fg); }
.lp-in span { display: block; overflow: hidden; text-overflow: ellipsis; }
.lp-f.done .lp-in { border-color: rgb(var(--lp-ok) / 0.6); background: rgb(var(--lp-ok) / 0.09); }
.lp-panel { border-left: 1px solid var(--lp-line); padding: 22px; background: rgb(var(--acc1) / 0.08); display: flex; flex-direction: column; gap: 14px; }
.lp-ph { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.lp-ph svg { width: 18px; height: 18px; color: var(--lp-a1); }
.lp-prog { height: 6px; border-radius: 99px; background: var(--lp-line); overflow: hidden; }
.lp-prog > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--lp-a1), var(--lp-a2)); }
.lp-pbtn { font-weight: 600; font-size: 14px; color: #fff; padding: 11px; border-radius: 12px; background: linear-gradient(100deg, var(--lp-a1), var(--lp-a2)); text-align: center; }
.lp-stat { font-family: var(--lp-mono); font-size: 13px; color: var(--lp-muted); }
.lp-stat b { color: var(--lp-fg); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-note { font-size: 12px; margin: 0; line-height: 1.5; }
@media (max-width: 760px) {
  .lp-demo-slot { min-height: 0; }
  .lp-demo-body { grid-template-columns: 1fr; }
  .lp-panel { border-left: 0; border-top: 1px solid var(--lp-line); }
}

/* sections */
.lp-section { padding-top: 96px; }
.lp-kicker { font-family: var(--lp-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-a2); }
.lp h2.lp-h2 { font-size: clamp(28px, 4.5vw, 46px); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 0; max-width: 20ch; text-wrap: balance; font-weight: 700; }
.lp-reveal { animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); animation-fill-mode: backwards; }
.lp-js .lp-reveal { animation-name: lp-rise; animation-play-state: paused; }
.lp-js .lp-reveal.in { animation-play-state: running; }
@keyframes lp-rise { from { transform: translateY(22px); } to { transform: none; } }

/* tilt cards */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lp-tilt { position: relative; border-radius: 20px; padding: 28px; border: 1px solid var(--lp-line); background: var(--lp-card); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.15s ease-out, border-color 0.3s; min-width: 0; }
.lp-tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgb(var(--acc1) / 0.26), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.lp-tilt:hover { border-color: rgb(var(--acc1) / 0.55); }
.lp-tilt:hover::before { opacity: 1; }
.lp-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgb(var(--acc1) / 0.3), rgb(var(--acc2) / 0.22)); border: 1px solid var(--lp-line); margin-bottom: 20px; }
.lp-ico svg { width: 22px; height: 22px; stroke: var(--lp-fg); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-tilt h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.lp-tilt p { margin: 0; font-size: 15px; }
.lp-tilt p a { color: var(--lp-fg); text-decoration: underline; text-underline-offset: 3px; }

/* showcase */
.lp-show { display: flex; gap: 14px; margin-top: 40px; height: 380px; }
.lp-show-fallback { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.lp-pane { position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; border: 1px solid var(--lp-line); background: var(--lp-card); padding: 26px; overflow: hidden; cursor: pointer; transition: border-color 0.3s; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-pane.active { border-color: rgb(var(--acc2) / 0.5); }
.lp-tag { position: absolute; top: 22px; left: 26px; font-family: var(--lp-mono); font-size: 12px; color: var(--lp-muted); }
.lp-pane h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.lp-more { overflow: hidden; }
.lp-more p { font-size: 15px; max-width: 40ch; margin: 8px 0 0; }
.lp-more a { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--lp-a2); }
.lp-art { position: absolute; top: 56px; right: 24px; left: 26px; display: grid; gap: 8px; }
.lp-row { height: 34px; border-radius: 10px; border: 1px solid var(--lp-line); background: var(--lp-card-hi); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; font-size: 12.5px; color: var(--lp-muted); white-space: nowrap; overflow: hidden; }
.lp-row b { color: var(--lp-fg); font-weight: 600; }
.lp-chip { font-family: var(--lp-mono); font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgb(var(--acc2) / 0.18); color: var(--lp-a2); }
@media (max-width: 860px) {
  .lp-cards, .lp-show-fallback { grid-template-columns: 1fr; }
  .lp-show { flex-direction: column; height: auto; }
  .lp-pane { min-height: 130px; flex: none; }
  .lp-more { height: auto !important; opacity: 1 !important; }
  .lp-art { display: none; }
  .lp-tag { position: static; margin-bottom: 8px; }
}

/* marquee */
.lp-marq { margin-top: 90px; text-align: center; }
.lp-marq p { font-size: 13px; margin: 0 0 18px; }
.lp-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-lane { display: flex; gap: 14px; width: max-content; animation: lp-slide 36s linear infinite; }
.lp-track:hover .lp-lane { animation-play-state: paused; }
.lp-lane span { font-weight: 600; font-size: 17px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--lp-line); background: var(--lp-card); color: var(--lp-muted); white-space: nowrap; }
@keyframes lp-slide { to { transform: translateX(-50%); } }

/* plans */
.lp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; max-width: 820px; }
.lp-plan { border-radius: 22px; border: 1px solid var(--lp-line); background: var(--lp-card); padding: 28px; min-width: 0; }
.lp-plan.pro { background: linear-gradient(rgb(var(--entry)), rgb(var(--entry))) padding-box, linear-gradient(135deg, var(--lp-a1), var(--lp-a2)) border-box; border: 1px solid transparent; }
.lp-plan h3 { margin: 0; font-size: 22px; }
.lp-plan .sub { font-size: 14px; margin: 4px 0 18px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 15px; }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--lp-fg); }
.lp-plan li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: rgb(var(--lp-ok) / 0.2); box-shadow: inset 0 0 0 1px rgb(var(--lp-ok) / 0.6); }
@media (max-width: 700px) { .lp-plans { grid-template-columns: 1fr; } }

/* final CTA */
.lp-final { margin-top: 110px; border-radius: 28px; border: 1px solid var(--lp-line); background: var(--lp-card); padding: 70px 24px; text-align: center; position: relative; overflow: hidden; }
.lp-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--fx, 50%) var(--fy, 0%), rgb(var(--acc1) / 0.3), transparent 65%); pointer-events: none; }
.lp-final h2 { margin-inline: auto !important; position: relative; }
.lp-final .lp-cta-row { position: relative; }
.lp-blog-note { margin-top: 48px; font-size: 14px; text-align: center; }
.lp-blog-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--lp-fg); }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}

/* ---- Direction E ("Fresh") overrides: flat, bright, electric blue. ---- */
.lp {
  --lp-line: rgb(var(--border));
  --lp-card: rgb(var(--entry));
  --lp-card-hi: rgb(var(--accent-soft));
  --lp-a1: rgb(var(--accent));
  --lp-a2: rgb(var(--accent));
}
.lp-grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: rgb(var(--accent)); }
.lp-btn { border-radius: 14px; font-weight: 700; padding: 15px 28px; min-height: 52px; border-width: 2px; }
.lp-btn.ghost { background: rgb(var(--entry)); }
.lp-btn.shimmer { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); box-shadow: none; }
.lp-btn.shimmer::after { display: none; }
.lp-btn.shimmer:hover { box-shadow: 0 12px 28px rgb(var(--accent) / 0.3); }
.lp-eyebrow { background: rgb(var(--entry)); }
.lp-eyebrow b { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
.lp-demo { border-radius: 28px; background: rgb(var(--entry)); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 24px 60px -24px rgb(16 24 64 / 0.25); }
.lp-in { border-radius: 12px; background: rgb(var(--theme)); }
.lp-panel { background: rgb(var(--accent-soft)); }
.lp-prog > div { background: rgb(var(--accent)); }
.lp-pbtn { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); font-weight: 700; }
.lp-tilt, .lp-pane, .lp-plan { border-radius: 28px; }
.lp-tilt::before { display: none; }
.lp-tilt:hover { border-color: rgb(var(--accent)); }
.lp-ico { background: rgb(var(--accent-soft)); border: 0; }
.lp-ico svg { stroke: rgb(var(--accent)); }
.lp-pane.active { border-color: rgb(var(--accent)); }
.lp-chip { background: rgb(var(--accent-soft)); color: rgb(var(--accent)); font-weight: 700; }
.lp-kicker { font-family: inherit; font-weight: 800; letter-spacing: 0.1em; color: rgb(var(--accent)); }
.lp-tag { font-family: inherit; font-weight: 700; }
.lp-lane span { background: rgb(var(--entry)); border-radius: 999px; }
.lp-plan.pro { background: rgb(var(--entry)); border: 2px solid rgb(var(--accent)); }
.lp-final { background: rgb(var(--accent)); border: 0; border-radius: 36px; }
.lp-final::before { display: none; }
.lp-final h2, .lp-final p { color: #fff; }
.lp-final .lp-btn.shimmer { background: #fff; color: rgb(37 87 255); }
.lp-final .lp-btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.5); }
.lp-final .lp-grad { color: #fff; }

/* ---- Direction E landing: floating chips, search bar, pastel bento. ---- */
.lp-hero { position: relative; padding-top: 72px; }
.lp-float { position: absolute; display: none; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 16px; color: #101840; animation: lp-bob 6s ease-in-out infinite; }
.lp-float-a { left: 2%; top: 150px; background: #e8deff; transform: rotate(-6deg); }
.lp-float-b { right: 2%; top: 230px; background: #d3f5e4; transform: rotate(5deg); animation-delay: -2s; }
.lp-float-c { left: 6%; top: 430px; background: #ffe3cc; transform: rotate(4deg); animation-delay: -4s; }
@media (min-width: 1100px) { .lp-float { display: block; } }
@keyframes lp-bob { 50% { translate: 0 -10px; } }
.lp h1.lp-title { max-width: 14ch; font-weight: 800; letter-spacing: -0.05em; }
.lp-search { display: flex; align-items: center; gap: 10px; max-width: 700px; margin: 34px auto 0; padding: 8px 8px 8px 22px; border: 2px solid rgb(var(--primary)); border-radius: 20px; background: rgb(var(--entry)); box-shadow: 0 6px 0 rgb(var(--primary)); text-align: left; transition: transform 0.15s, box-shadow 0.15s; }
.lp-search:hover { transform: translateY(2px); box-shadow: 0 4px 0 rgb(var(--primary)); }
.lp-search-text { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; color: rgb(var(--secondary)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-search-btn { flex: none; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); font-weight: 700; padding: 14px 24px; border-radius: 14px; }
.lp-cta-row { margin-top: 26px; }

.lp-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 40px; }
.lp-tile { display: flex; flex-direction: column; gap: 10px; padding: 36px; border-radius: 30px; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; min-width: 0; }
.lp-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgb(16 24 64 / 0.12); }
.lp-tile-1 { grid-column: span 3; background: #e8deff; color: #3a2a70; }
.lp-tile-2 { grid-column: span 3; background: #d3f5e4; color: #124a30; }
.lp-tile-3 { grid-column: span 6; background: #101840; color: #c9d2f5; }
.lp-tile-tag { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.lp-tile-1 .lp-tile-tag { color: #4a2fa8; } .lp-tile-2 .lp-tile-tag { color: #0e6b3e; } .lp-tile-3 .lp-tile-tag { color: #9cb4ff; }
.lp-tile-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; color: #101840; }
.lp-tile-3 .lp-tile-title { color: #fff; }
.lp-tile-text { font-size: 16px; line-height: 1.6; max-width: 56ch; }
.lp-tile-cta { margin-top: 6px; font-weight: 800; font-size: 15px; color: inherit; }
.lp-tile-3 .lp-tile-cta { color: #fff; }
@media (max-width: 800px) { .lp-tile-1, .lp-tile-2, .lp-tile-3 { grid-column: span 6; } .lp-tile { padding: 28px; } }

.lp-lane span { font-weight: 700; }
.lp-plan.pro h3 { color: rgb(var(--accent)); }
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } }
