/* ==========================================================================
   Landing page (logged out). Markup in public/js/views-public.js.
   Type sits on the background. Whitespace, scale and alignment do the work
   that cards used to do.

   Design credit: the blur-rise stagger, the single italic serif word, the
   pill button with a round arrow chip, the swipe card visual and the giant
   cropped footer wordmark borrow design ideas and values (sizes, tracking,
   easing, distances) from Watermelon UI, https://ui.watermelon.sh (MIT,
   Copyright (c) 2025-present Watermelon Contributors). No code was copied.
   ========================================================================== */
.lp {
  --lp-gutter: clamp(16px, 4vw, 56px);
  --lp-max: 1200px;
  --lp-ease: cubic-bezier(.22, 1, .36, 1);
  --lp-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  overflow-x: clip;
}
.lp-nav, .lp-hero, .lp-row, .lp-foot-in { max-width: var(--lp-max); margin-inline: auto; padding-inline: var(--lp-gutter); }

/* ---------- nav ---------- */
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp .logo-dot { box-shadow: none; }
.lp-nav-r { display: flex; align-items: center; gap: 4px; }
.lp-navlink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .18s ease-out; }
.lp-navlink:hover { color: var(--text); }
.lp-signin { color: var(--text); border: 1px solid var(--line2); padding: 0 16px; }
.lp-signin:hover { border-color: var(--muted); }

/* ---------- hero ---------- */
.lp-hero { display: grid; gap: 48px; padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 760px) { .lp-hero { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); } }

.lp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--brand); margin-bottom: 22px; }
.lp-h1 { margin: 0; font-weight: 600; }
.lp-q { display: block; font-size: clamp(18px, .9rem + 1vw, 26px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; color: var(--muted); margin-bottom: 12px; }
.lp-a { display: block; font-size: clamp(50px, 1.6rem + 6.4vw, 108px); line-height: .95; letter-spacing: -0.055em; text-wrap: balance; }
.lp-a em { font-family: var(--lp-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.1em; line-height: .8; color: var(--brand); padding-right: .04em; }
.lp-sub { font-size: clamp(17px, 1rem + .3vw, 19px); line-height: 1.5; color: var(--muted); max-width: 32ch; margin: 26px 0 30px; }
.lp-sub span { color: var(--text); font-weight: 600; }

.lp-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.lp-textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; transition: text-decoration-color .18s ease-out; }
.lp-textlink:hover { text-decoration-color: var(--text); }

.lp-demo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 22px; font-size: 14px; color: var(--dim); }
.lp-link { background: none; border: 0; padding: 6px 2px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); border-radius: 4px; }
.lp-link:hover { color: var(--text); text-decoration-color: currentColor; }

.lp-live { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--dim); }
.lp-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--like); flex: none; }

/* ---------- pill button with arrow chip (after Watermelon UI Hero 25) ---------- */
.lp-pill { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 6px 0 22px; border-radius: 999px; background: var(--text); color: #0a0a0d; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 24px -12px rgba(0, 0, 0, .9); transition: transform .15s ease-out, background .18s ease-out; -webkit-tap-highlight-color: transparent; }
.lp-chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0a0a0d; color: var(--brand); }
.lp-chip svg { transition: transform .18s ease-out; }
.lp-pill:hover .lp-chip svg { transform: translateX(2px); }
.lp-pill:active { transform: scale(.97); }
.lp-pill.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.lp-pill.quiet .lp-chip { background: var(--brand); color: #0a0a0d; }
.lp-pill.quiet:hover { box-shadow: inset 0 0 0 1px var(--muted); }

/* ---------- swipe demo in a phone frame (after Watermelon UI Card Swipe) ---------- */
.lp-hero-visual { display: flex; justify-content: center; }
.lp-phone { position: relative; width: 236px; height: 440px; border-radius: 40px; background: #0c0c12; border: 1px solid var(--line2); box-shadow: inset 0 0 0 6px #050507, 0 40px 80px -40px #000; }
@media (min-width: 1000px) { .lp-phone { width: 260px; height: 496px; border-radius: 44px; } }
.lp-phone::before { content: ''; position: absolute; top: 16px; left: 50%; width: 72px; height: 20px; margin-left: -36px; border-radius: 12px; background: #000; }
.ph-card { position: absolute; inset: 52px 16px 96px; border-radius: 22px; background: #15151d; border: 1px solid #262634; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ph-badge { display: block; width: 40px; height: 40px; border-radius: 12px; background: #2a2540; margin-bottom: 8px; }
.ph-role { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.ph-meta { font-size: 12px; color: var(--muted); margin-top: -4px; }
.ph-tags { display: flex; gap: 6px; margin: 6px 0 8px; }
.ph-tags i { width: 44px; height: 20px; border-radius: 999px; background: #1f1f2b; border: 1px solid #2c2c3c; }
.ph-bar { display: block; height: 8px; border-radius: 4px; background: #23232f; }
.ph-bar.w90 { width: 90%; } .ph-bar.w70 { width: 70%; } .ph-bar.w50 { width: 50%; }
.ph-next { justify-content: flex-end; }
.ph-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ph-tags-text i { width: auto; height: auto; padding: 3px 9px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.ph-like { position: absolute; top: 18px; right: 16px; border: 2.5px solid var(--like); color: var(--like); font-size: 17px; font-weight: 800; letter-spacing: .04em; padding: 0 7px; border-radius: 7px; transform: rotate(12deg); opacity: 0; }
.ph-reply { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: #15151d; border: 1px solid rgba(200, 255, 61, .45); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ph-reply svg { width: 14px; height: 14px; color: var(--brand); }
.ph-reply b { color: var(--brand); }
/* Resting state is the end of the demo. The liked card has gone right. */
.ph-top { visibility: hidden; }

/* ---------- supporting sections ---------- */
.lp-row { display: grid; gap: 22px; padding-top: clamp(48px, 6vw, 72px); }
.lp-pair { gap: 48px; }
.lp-pair h2 { margin-bottom: 18px; }
@media (min-width: 900px) {
  .lp-pair { grid-template-columns: 1fr 1fr; gap: 64px; }
  .lp-split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}
.lp-row h2 { font-size: clamp(28px, 1.1rem + 1.8vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }

.lp-rules { list-style: none; margin: 0; padding: 0; }
.lp-rules li { padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(16px, .95rem + .3vw, 18px); color: var(--muted); }
.lp-rules li:first-child { border-top: 0; padding-top: 4px; }
.lp-rules b { color: var(--text); font-weight: 600; }

.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: lp-step; }
.lp-steps li { counter-increment: lp-step; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 5px 0; font-size: clamp(18px, 1rem + .5vw, 22px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.lp-steps li::before { content: counter(lp-step, decimal-leading-zero); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--dim); font-variant-numeric: tabular-nums; }

.lp-hire p { font-size: clamp(16px, .95rem + .3vw, 18px); color: var(--muted); max-width: 40ch; margin-bottom: 24px; }

/* ---------- footer with a giant cropped wordmark (after Watermelon UI Footer 15) ---------- */
.lp-foot { margin-top: clamp(56px, 7vw, 96px); background: #111118; border-radius: 32px 32px 0 0; overflow: hidden; }
.lp-foot-in { padding-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) {
  .lp-foot-in { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .lp-foot-h { margin-bottom: 0 !important; }
  .lp-foot-links { grid-column: 1 / -1; }
}
.lp-foot-h { font-size: clamp(30px, 1.2rem + 3vw, 56px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; margin-bottom: 28px; text-wrap: balance; }
.lp-foot-links { margin-top: 28px; font-size: 13px; color: var(--dim); }
.lp-foot-links .legal-links { display: inline-flex; gap: 18px; }
.lp-foot-links a { color: var(--muted); text-underline-offset: 3px; }
.lp-foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
/* Sized from the brand's letter count so a rename still fits the width. */
.lp-word { margin: 20px 0 0; padding-inline: var(--lp-gutter); font-size: min(calc(150vw / var(--n, 6)), 300px); font-weight: 700; letter-spacing: -0.07em; line-height: .7; color: #1d1d27; white-space: nowrap; text-align: center; user-select: none; transform: translateY(.16em); }

/* ---------- motion (enhancement only) ----------
   JS adds .lp-anim on load and removes it after the sequence, so content is
   never left hidden by a paused animation. Values after Watermelon UI:
   rise 24px from blur(8px), about 120ms stagger, cubic-bezier(.22,1,.36,1). */
@keyframes lp-blurrise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lp-phone-in { from { opacity: 0; transform: translateY(32px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lp-swipe { 0% { transform: none; opacity: 1; } 40% { transform: translateX(22px) rotate(5deg); opacity: 1; } 100% { transform: translateX(170%) rotate(24deg); opacity: 0; } }
@keyframes lp-stamp { 0%, 20% { opacity: 0; } 45%, 100% { opacity: 1; } }
@keyframes lp-promote { from { transform: translateY(12px) scale(.94); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes lp-chip-in { from { opacity: 0; transform: translate(-50%, 14px); filter: blur(6px); } to { opacity: 1; transform: translate(-50%, 0); filter: none; } }

.lp-anim .lp-rise { animation: lp-blurrise .8s var(--lp-ease) both; }
.lp-anim .r1 { animation-delay: .1s; }
.lp-anim .r2 { animation-delay: .22s; }
.lp-anim .r3 { animation-delay: .4s; }
.lp-anim .r4 { animation-delay: .52s; }
.lp-anim .r5 { animation-delay: .64s; }
.lp-anim .lp-live { animation: lp-blurrise .8s .76s var(--lp-ease) both; }
.lp-anim .lp-phone { animation: lp-phone-in 1s .3s var(--lp-ease) both; }
.lp-anim .ph-top { visibility: visible; transform-origin: 50% 120%; animation: lp-swipe 1.1s 1.5s cubic-bezier(.55, 0, .75, .3) both; }
.lp-anim .ph-like { animation: lp-stamp 1.1s 1.5s linear both; }
.lp-anim .ph-next { animation: lp-promote .5s 2.3s var(--lp-ease) both; }
.lp-anim .ph-reply { animation: lp-chip-in .6s 2.75s var(--lp-ease) both; }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before { animation: none !important; transition: none !important; filter: none !important; }
  .lp .ph-top { visibility: hidden !important; }
}
