/* ============================================================
   The public landing page. Loaded only there, on top of style.css,
   so it reuses the same tokens and flips to dark with everything else.
   ============================================================ */

.lp { --lp-max: 1120px; overflow-x: clip; }

/* ---------- the bar ---------- */
.lp-bar {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, calc((100vw - var(--lp-max)) / 2)) 10px;
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--hairline);
}
.lp-brand { display: flex; align-items: center; gap: 8px; color: var(--ink);
            font-weight: 650; letter-spacing: -.02em; font-size: 1.0625rem; }
.lp-brand:hover { text-decoration: none; }
.lp-bar-end { display: flex; align-items: center; gap: 8px; }
.lp-lang {
  min-height: 36px; min-width: 40px; padding: 0 10px; border-radius: var(--r-full);
  border: 1px solid var(--hairline-2); background: transparent; color: var(--ink-2);
  font: inherit; font-size: .75rem; font-weight: 650; letter-spacing: .04em; cursor: pointer;
}
.lp-login {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px 0 12px;
  border-radius: var(--r-full); background: var(--ink); color: var(--ground);
  font-size: .875rem; font-weight: 650; transition: transform .12s ease, opacity .15s ease;
}
.lp-login .i { width: 18px; height: 18px; }
.lp-login:hover { text-decoration: none; opacity: .9; }
.lp-login:active { transform: scale(.96); }

/* ---------- hero ---------- */
.lp-hero {
  position: relative; isolation: isolate;
  max-width: var(--lp-max); margin: 0 auto;
  padding: 44px 20px 24px;
  display: grid; gap: 36px; align-items: center;
}
@media (min-width: 960px) {
  .lp-hero { grid-template-columns: 1.05fr 1fr; padding: 88px 24px 64px; gap: 48px; }
}

/* soft colour drifting behind the hero */
.lp-aurora { position: absolute; inset: -80px -40vw 0; z-index: -1; pointer-events: none;
             filter: blur(60px); opacity: .55; }
.lp-aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.lp-aurora i:nth-child(1) { width: 420px; height: 420px; left: 30%; top: 0; background: #3b8cff; }
.lp-aurora i:nth-child(2) { width: 360px; height: 360px; left: 55%; top: 140px; background: #7a5cff;
                            animation-duration: 22s; animation-delay: -6s; }
.lp-aurora i:nth-child(3) { width: 300px; height: 300px; left: 42%; top: 360px; background: #2fd3a0;
                            opacity: .6; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(-40px, -20px) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-aurora { opacity: .35; } }

.lp-hero-text > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) backwards; }
.lp-hero-text > :nth-child(2) { animation-delay: .06s; }
.lp-hero-text > :nth-child(3) { animation-delay: .12s; }
.lp-hero-text > :nth-child(4) { animation-delay: .18s; }
.lp-hero-text > :nth-child(5) { animation-delay: .24s; }

.lp-kicker {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
  border-radius: var(--r-full); background: var(--pane); box-shadow: var(--gloss);
  font-size: .8125rem; font-weight: 600; color: var(--accent-ink);
}
.lp-kicker .i { width: 16px; height: 16px; }
.lp-hero h1 {
  margin-top: 18px; font-size: clamp(2.5rem, 10.5vw, 4.25rem); line-height: 1.02;
  letter-spacing: -.045em; font-weight: 750;
}
.lp-grad {
  display: inline-block;
  background: linear-gradient(100deg, #1f7bff 10%, #7a5cff 55%, #2fbf8f 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lp-lede { margin-top: 18px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-btn-main {
  min-height: 54px; padding: 0 22px 0 26px; font-size: 1.0625rem; border-radius: 18px;
  background: linear-gradient(135deg, #2f8bff, #3a47e0);
  box-shadow: 0 14px 30px -12px rgba(40,90,230,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.lp-btn-main:hover { background: linear-gradient(135deg, #3b93ff, #4452ea); }
.lp-btn-main .i { width: 20px; height: 20px; transition: transform .2s ease; }
.lp-btn-main:hover .i { transform: translateX(3px); }
.lp-btn-alt { min-height: 54px; padding: 0 22px; font-size: 1rem; border-radius: 18px; }
@media (max-width: 480px) { .lp-cta .btn { width: 100%; } }
.lp-fine { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }

/* ---------- the phone ---------- */
.lp-stage { position: relative; display: grid; place-items: center; padding: 10px 0 30px;
            animation: rise .9s .15s cubic-bezier(.2,.8,.2,1) backwards; }
.lp-phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.5;
  padding: 11px; border-radius: 46px;
  background: linear-gradient(145deg, #2b2e35, #0d0e11);
  box-shadow: 0 50px 90px -30px rgba(20,40,120,.55), 0 0 0 1px rgba(255,255,255,.08) inset,
              0 0 0 2px #1a1c21;
  transform: rotate(-4deg);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: rotate(-4deg) translateY(0); }
                 50%      { transform: rotate(-3deg) translateY(-12px); } }
.lp-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
            border-radius: 14px; background: #000; z-index: 2; }
.lp-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 36px;
  padding: 50px 13px 13px; display: flex; flex-direction: column; gap: 9px;
  background: var(--ground); color: var(--ink);
}
.lp-hi { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.lp-mini-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 12px 12px 0; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 130% at 100% 0%, rgba(120,190,255,.55), transparent 55%),
              linear-gradient(140deg, #0a67e0, #3a47e0);
}
.lp-mini-eyebrow { font-size: .5rem; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.lp-mini-value { font-size: 1.55rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.15;
                 font-variant-numeric: tabular-nums; }
.lp-mini-sub { font-size: .55rem; opacity: .85; }
.lp-mini-spark { display: block; width: calc(100% + 24px); height: 40px; margin: 6px -12px 0;
                 animation: spark-reveal 1.4s .5s cubic-bezier(.4,0,.2,1) both; }
.lp-mini-spark .l { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.lp-mini-spark .a { fill: rgba(255,255,255,.16); }
.lp-mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-mini-tiles span { display: flex; flex-direction: column; padding: 7px 8px; border-radius: 12px;
                      background: var(--pane-solid); box-shadow: var(--shadow-1); }
.lp-mini-tiles em { font-style: normal; font-size: .45rem; font-weight: 700; letter-spacing: .06em;
                    text-transform: uppercase; color: var(--ink-3); }
.lp-mini-tiles b { font-size: .85rem; letter-spacing: -.02em; }
.lp-mini-tiles small { font-size: .45rem; color: var(--ink-3); }
.lp-mini-chart { flex: 1; display: flex; flex-direction: column; padding: 9px 10px 10px;
                 border-radius: 14px; background: var(--pane-solid); box-shadow: var(--shadow-1); }
.lp-mini-title { font-size: .6rem; font-weight: 650; }
.lp-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; }
.lp-bars i, .lp-vis-bars i {
  flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent),
                                      color-mix(in srgb, var(--accent) 20%, transparent));
  transform-origin: bottom; animation: bar-up .8s cubic-bezier(.2,.9,.3,1.15) backwards;
  animation-delay: calc(.6s + var(--d));
}
.lp-bars i.now { background: var(--accent); }
@keyframes bar-up { from { transform: scaleY(0); } }
.lp-mini-tabbar { display: flex; justify-content: space-around; align-items: center; height: 34px;
                  border-radius: 14px; background: var(--pane-solid); box-shadow: var(--shadow-1); }
.lp-mini-tabbar i { width: 14px; height: 14px; border-radius: 4px; background: var(--hairline-2); }
.lp-mini-tabbar b { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); }

/* callouts around the phone */
.lp-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px 9px 9px; border-radius: 16px;
  background: var(--pane-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--gloss), var(--shadow-3); font-size: .8125rem; line-height: 1.25;
  animation: pop .6s cubic-bezier(.2,.9,.3,1.3) backwards, float 6s ease-in-out infinite;
}
.lp-float b { display: block; font-weight: 650; white-space: nowrap; }
.lp-float small { display: block; color: var(--ink-3); font-size: .6875rem; white-space: nowrap; }
.lp-f-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none;
            border-radius: 9px; color: #fff; }
.lp-f-ico .i { width: 17px; height: 17px; stroke-width: 2; }
.lp-f1 { top: 12%; left: max(0px, calc(50% - 230px)); animation-delay: .9s, 0s; }
.lp-f2 { top: 46%; right: max(0px, calc(50% - 235px)); animation-delay: 1.15s, -2s; }
.lp-f3 { bottom: 8%; left: max(4px, calc(50% - 215px)); animation-delay: 1.4s, -4s; }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(10px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 420px) {
  .lp-float { font-size: .75rem; padding: 7px 10px 7px 7px; }
  .lp-f-ico { width: 26px; height: 26px; }
}
.tint-blue { background: #0a84ff; } .tint-green { background: #30b158; } .tint-violet { background: #8b5cf6; }

/* ---------- the hook ---------- */
.lp-hook {
  max-width: 760px; margin: 12px auto 0; padding: 36px 22px; text-align: center;
}
.lp-hook-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem;
                  font-weight: 600; color: var(--cheap); }
.lp-hook-kicker .i { width: 16px; height: 16px; }
.lp-hook-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cheap-2);
                          box-shadow: 0 0 0 0 var(--cheap-2); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cheap-2) 70%, transparent); }
                  100% { box-shadow: 0 0 0 10px transparent; } }
.lp-hook-num { margin-top: 10px; font-size: clamp(3.5rem, 17vw, 6rem); font-weight: 800;
               letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums;
               background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 55%, var(--accent)));
               -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hook-text { margin-top: 10px; font-size: 1.125rem; font-weight: 550; color: var(--ink-2); line-height: 1.45; }
.lp-hook-range { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
                 margin: 26px auto 0; max-width: 480px; text-align: left; }
.lp-hook-range span:last-child { text-align: right; }
.lp-hook-range small { display: block; font-size: .6875rem; color: var(--ink-3); }
.lp-hook-range b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.lp-hook-bar { height: 8px; border-radius: var(--r-full); overflow: hidden; background: var(--hairline); }
.lp-hook-bar i { display: block; height: 100%; width: 100%; border-radius: inherit;
                 background: linear-gradient(90deg, #2563eb, #16a34a, #eab308, #f97316, #dc2626);
                 transform-origin: left; }
.lp-hook.in .lp-hook-bar i { animation: bar-x 1.2s .2s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes bar-x { from { transform: scaleX(0); } }
.lp-hook-note { margin-top: 14px; font-size: .75rem; color: var(--ink-3); }

/* ---------- sections ---------- */
.lp-section { max-width: var(--lp-max); margin: 0 auto; padding: 48px 20px 8px; }
.lp-h2 { font-size: clamp(1.625rem, 6vw, 2.375rem); letter-spacing: -.035em; line-height: 1.1;
         font-weight: 750; max-width: 30rem; }

.lp-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.lp-steps li { padding: 20px; border-radius: var(--r-lg); background: var(--pane);
               -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
               box-shadow: var(--gloss), var(--shadow-1); }
.lp-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
             background: var(--accent-wash); color: var(--accent-ink); font-weight: 750; }
.lp-steps h3 { margin-top: 14px; font-size: 1.0625rem; }
.lp-steps p { margin-top: 4px; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }

.lp-features { display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 700px) { .lp-features { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .lp-features { grid-template-columns: repeat(3, 1fr); } }
.lp-card { position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-lg);
           background: var(--pane); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
           box-shadow: var(--gloss), var(--shadow-1); }
.lp-card h3 { font-size: 1.0625rem; margin-top: 14px; }
.lp-card p { margin-top: 4px; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 700px) { .lp-card-wide { grid-column: 1 / -1; display: grid;
                                            grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; } }
@media (min-width: 1000px) { .lp-card-wide { grid-column: span 2; } }

/* the price map, abstracted: dots coloured cheap to dear */
.lp-dots { position: relative; height: 170px; border-radius: 16px; overflow: hidden;
           background:
             radial-gradient(circle at 30% 40%, rgba(127,127,127,.10), transparent 60%),
             var(--ground-2); }
.lp-dots i { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px;
             margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--pane-solid); }
.lp-card.in .lp-dots i { animation: pop .5s cubic-bezier(.2,.9,.3,1.4) backwards; animation-delay: var(--d); }
.lp-dots .d0 { background: #2563eb; } .lp-dots .d1 { background: #16a34a; }
.lp-dots .d2 { background: #eab308; } .lp-dots .d3 { background: #f97316; }
.lp-dots .d4 { background: #dc2626; }
.lp-card-text h3 { margin-top: 14px; }
@media (min-width: 700px) { .lp-card-wide .lp-card-text h3 { margin-top: 0; font-size: 1.25rem; } }

.lp-vis { height: 64px; display: flex; align-items: center; gap: 8px; }
.lp-vis-bars { align-items: flex-end; gap: 6px; }
.js-reveal .lp-vis-bars i { animation-play-state: paused; }
.lp-card.in .lp-vis-bars i { animation-play-state: running; animation-delay: var(--d); }
.lp-vis-verdict { flex-wrap: wrap; }
.lp-vis-verdict .chip { font-size: .8125rem; padding: 4px 10px; }
.lp-board { list-style: none; margin: 0; padding: 0; flex-direction: column; align-items: stretch;
            gap: 4px; height: auto; }
.lp-board li { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 10px;
               font-size: .875rem; font-weight: 550; }
.lp-board li span { width: 16px; color: var(--ink-3); font-weight: 700; }
.lp-board li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-board li.you { background: var(--accent-wash); color: var(--accent-ink); }
.lp-vis-icons span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px;
                     border-radius: 14px; background: var(--pane-solid); box-shadow: var(--shadow-1);
                     font-weight: 750; color: var(--ink-2); }
.lp-vis-icons span:nth-child(odd) { transform: translateY(-6px); }
.lp-vis-app .logo { width: 56px; height: 56px; padding: 10px; border-radius: 16px; color: #fff;
                    background: linear-gradient(135deg, #2f8bff, #3a47e0);
                    box-shadow: 0 12px 24px -10px rgba(40,90,230,.7); }

.lp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
@media (min-width: 800px) { .lp-stats { grid-template-columns: repeat(4, 1fr); } }
.lp-stats span { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r-lg);
                 background: var(--pane); box-shadow: var(--gloss), var(--shadow-1); }
.lp-stats b { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-stats small { color: var(--ink-3); font-size: .8125rem; }
.lp-stats-note { margin-top: 12px; color: var(--ink-3); font-size: .875rem; }

/* ---------- close ---------- */
.lp-final {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--lp-max) - 40px); margin: 56px 16px 0; padding: 44px 24px;
  border-radius: 32px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(120,190,255,.6), transparent 55%),
              linear-gradient(140deg, #0a67e0, #3a47e0 60%, #6a3ee0);
  box-shadow: 0 30px 60px -30px rgba(30,70,220,.8);
}
@media (min-width: 1160px) { .lp-final { margin-inline: auto; } }
.lp-final h2 { font-size: clamp(1.625rem, 6.5vw, 2.5rem); letter-spacing: -.035em; line-height: 1.12;
               max-width: 30rem; margin: 0 auto; font-weight: 750; }
.lp-btn-light { margin-top: 24px; min-height: 54px; padding: 0 22px 0 26px; border-radius: 18px;
                background: #fff; color: #1b3fd1; font-size: 1.0625rem; }
.lp-btn-light:hover { background: #eef3ff; }
.lp-btn-light .i { width: 20px; height: 20px; }
.lp-final p { margin-top: 16px; font-size: .9375rem; opacity: .85; }
.lp-final a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.lp-foot { max-width: var(--lp-max); margin: 0 auto; padding: 32px 20px calc(110px + env(safe-area-inset-bottom, 0px));
           display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
           color: var(--ink-3); font-size: .8125rem; }
.lp-foot span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lp-foot .logo { width: 18px; height: 18px; }
.lp-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 700px) { .lp-foot { padding-bottom: 40px; } }

/* ---------- phone dock ---------- */
.lp-dock {
  position: fixed; z-index: 70; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 6px;
  border-radius: 22px; background: var(--pane-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--gloss), var(--shadow-3);
  animation: dock-in .6s .8s cubic-bezier(.2,.9,.3,1.1) backwards;
}
.lp-dock .btn { min-height: 48px; border-radius: 16px; }
@keyframes dock-in { from { transform: translateY(140%); } }
@media (min-width: 700px) { .lp-dock { display: none; } }

/* ---------- reveal on scroll (only once app.js opts in) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px);
                           transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.lp-steps [data-reveal]:nth-child(2), .lp-features [data-reveal]:nth-child(3n+2) { transition-delay: .08s; }
.lp-steps [data-reveal]:nth-child(3), .lp-features [data-reveal]:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .lp-phone, .lp-float, .lp-aurora i, .lp-grad { animation: none !important; }
}
