/* ============================================================
   AUTH + LANDING — homepage, login, register.
   ============================================================ */

/* ---------------- Landing ---------------- */
.landing {
  height: 100%; overflow-y: auto; color: var(--ink);
  background-color: var(--bg);
}
.land-inner { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* ---- luxe motion (gated on .js-anim so no-JS stays fully visible) ---- */
.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.js-anim .reveal.in { opacity: 1; transform: none; }
/* hero entrance on load (above the fold, so no observer) */
.js-anim .lhero > div:first-child > * { animation: lrise .7s cubic-bezier(.22,.61,.36,1) both; }
.js-anim .lhero-tag { animation-delay: .02s; }
.js-anim .lhero-title { animation-delay: .08s; }
.js-anim .lhero-sub { animation-delay: .16s; }
.js-anim .lhero-cta { animation-delay: .24s; }
.js-anim .lhero-note { animation-delay: .32s; }
.js-anim .lhero > div:last-child { animation: lfade .9s cubic-bezier(.22,.61,.36,1) .2s both; }
@keyframes lrise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lfade { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal, .js-anim .reveal.in { opacity: 1 !important; transform: none !important; transition: none; }
  .js-anim .lhero > div:first-child > *, .js-anim .lhero > div:last-child { animation: none; }
}

/* top nav */
.lnav { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: var(--hair) solid var(--border); }
.lnav-in { max-width: 1080px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; }
.lnav-brand { display: flex; align-items: center; gap: 10px; }
.lnav-brand .brand-name { font-size: 16px; }
.lnav-actions { display: flex; align-items: center; gap: 10px; }
.lnav-links { display: flex; align-items: center; gap: 28px; }
.lnav-link { font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color .12s; white-space: nowrap; }
.lnav-link:hover { color: var(--clay); }
#how, #pricing, #faq { scroll-margin-top: 84px; }
.lnav-burger { display: none; width: 38px; height: 38px; border-radius: var(--radius); border: var(--hair) solid var(--border); background: var(--panel-2); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; transition: all .12s; }
.lnav-burger:hover { border-color: var(--muted); }
.lnav-mobile { display: none; }
@media (max-width: 860px) {
  .lnav-links { display: none; }
  .lnav-cta { display: none; }
  .lnav-burger { display: grid; }
  .lnav-mobile { display: flex; flex-direction: column; padding: 6px 24px 18px; border-top: var(--hair) solid var(--border); background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px); animation: lmenu .18s ease; }
  .lnav-mobile a { padding: 14px 4px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: var(--hair) solid var(--border); }
  .lnav-mobile a:active { color: var(--clay); }
  .lnav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .lnav-mobile-cta .btn { width: 100%; justify-content: center; }
}
@keyframes lmenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .lnav-mobile a { text-align: right; }
.lnav-theme { width: 34px; height: 34px; border-radius: var(--radius); border: var(--hair) solid var(--border); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .12s; }
.lnav-theme:hover { color: var(--ink); border-color: var(--muted); }

/* hero */
.lhero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 76px 0 64px; }
.lhero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); background: var(--clay-bg); border: var(--hair) solid color-mix(in oklab, var(--clay) 30%, transparent); padding: 5px 11px; border-radius: 99px; }
.lhero-title { font-size: 50px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 22px 0 0; text-wrap: balance; }
.lhero-title em { font-style: normal; color: var(--clay); }
.lhero-sub { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 22px 0 0; max-width: 480px; }
.lhero-cta { display: flex; gap: 12px; margin-top: 30px; }
.lhero-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 18px; display: flex; align-items: center; gap: 8px; }

/* hero product preview — a faithful miniature of the dashboard P&L calendar.
   Mirrors .cal-* tokens (same tints, week strips, ×N chip) at small scale.
   Kept deliberately compact so it sits comfortably in the hero column. */
.lcal { background: var(--panel); border: var(--hair) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 15px; }
.lcal-top { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 11px; border-bottom: var(--hair) solid var(--border); }
.lcal-mo { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.lcal-net { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.lcal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 0.82fr); gap: 4px; margin-top: 11px; }
.lcal-dow { font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 1px 0 4px; text-align: center; }
.lcal-dow-week { text-align: right; color: var(--faint); }
.lcal-cell {
  min-height: 37px; border-radius: 5px; border: var(--hair) solid var(--border-2); background: var(--panel);
  padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
}
.lcal-cell.out { background: transparent; border-color: transparent; }
.lcal-num { font-family: var(--font-mono); font-size: 8px; color: var(--muted); display: flex; align-items: center; gap: 2px; line-height: 1; }
.lcal-acct { margin-left: auto; font-size: 7px; color: var(--faint); opacity: .85; letter-spacing: -.02em; }
.lcal-cell.today { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.lcal-pnl { margin-top: auto; font-size: 9.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.lcal-dot { margin-top: auto; width: 3px; height: 3px; border-radius: 9px; background: var(--border); opacity: .6; }
.lcal-cell.has.pos { background: color-mix(in oklab, var(--long) 12%, var(--panel)); border-color: color-mix(in oklab, var(--long) 28%, var(--border-2)); }
.lcal-cell.has.neg { background: color-mix(in oklab, var(--short) 11%, var(--panel)); border-color: color-mix(in oklab, var(--short) 26%, var(--border-2)); }
.lcal-week { border-radius: 5px; border: var(--hair) dashed var(--border); background: var(--inset); display: flex; align-items: center; justify-content: flex-end; padding: 0 5px; }
.lcal-week.flat { opacity: .45; }
.lcal-week-net { font-size: 9px; font-weight: 600; letter-spacing: -0.03em; }
.lcal-foot { display: flex; gap: 20px; margin-top: 11px; padding-top: 11px; border-top: var(--hair) solid var(--border); }
.lcal-stat .k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lcal-stat .v { font-family: var(--font-mono); font-size: 14px; font-weight: 600; margin-top: 3px; }
.lcal-stat .v.warn { color: var(--warn); }
.lcal-stat .v.pos { color: var(--long); }

/* sections */
.lsection { padding: 64px 0; border-top: var(--hair) solid var(--border); }
.lsec-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.lsec-title { font-size: 32px; letter-spacing: -0.03em; font-weight: 800; margin: 14px 0 0; max-width: 620px; text-wrap: balance; }
.lsec-lead { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; max-width: 560px; }

/* principle — big statement */
.lprinciple { text-align: center; padding: 72px 0; }
.lprinciple h2 { font-size: 40px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; margin: 16px auto 0; max-width: 720px; text-wrap: balance; }
.lprinciple h2 b { color: var(--clay); font-weight: 800; }
.lprinciple p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 20px auto 0; max-width: 560px; }
.lprin-viz { max-width: 600px; margin: 40px auto 0; }
.lprin-svg { width: 100%; height: 116px; display: block; }

/* features */
.lfeatures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.lfeat { background: var(--panel); border: var(--hair) solid var(--border); border-radius: 10px; padding: 26px; box-shadow: var(--shadow); }
.lfeat-ico { width: 38px; height: 38px; border-radius: 8px; background: var(--clay-bg); color: var(--clay); display: grid; place-items: center; margin-bottom: 16px; }
[data-theme="dark"] .lfeat-ico { color: color-mix(in oklab, var(--clay) 88%, #fff); }
.lfeat-num { font-family: var(--font-mono); font-size: 11px; color: var(--faint); float: right; }
.lfeat h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.lfeat p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* feature demo previews */
.lfeat-demo { margin-top: 18px; }
.lfd { background: var(--inset); border: var(--hair) solid var(--border-2); border-radius: 8px; padding: 12px; }
.lfd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lfd-chip { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 4px; background: var(--clay-bg); color: var(--clay); border: 1px solid color-mix(in oklab, var(--clay) 35%, transparent); white-space: nowrap; }
[data-theme="dark"] .lfd-chip { color: color-mix(in oklab, var(--clay) 88%, #fff); }
.lfd-chip.dim { background: var(--inset); color: var(--muted); border-color: var(--border-2); }
[data-theme="dark"] .lfd-chip.dim { color: var(--muted); }
.lfd-pnl { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.lfd-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lfd-day { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-align: center; padding: 12px 4px; border-radius: 6px; }
.lfd-day.pos { background: color-mix(in oklab, var(--long) 14%, var(--panel)); color: var(--long); border: 1px solid color-mix(in oklab, var(--long) 30%, transparent); }
.lfd-day.neg { background: color-mix(in oklab, var(--short) 13%, var(--panel)); color: var(--short); border: 1px solid color-mix(in oklab, var(--short) 28%, transparent); }
.lfd-bars { display: flex; flex-direction: column; gap: 8px; }
.lfd-bar { display: grid; grid-template-columns: 24px 1fr 40px; align-items: center; gap: 8px; }
.lfd-bk { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lfd-bt { height: 14px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.lfd-bf { display: block; height: 100%; border-radius: 3px; }
.lfd-bf.pos { background: var(--long); } .lfd-bf.warn { background: var(--warn); } .lfd-bf.neg { background: var(--short); }
.lfd-bv { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; }
.lfd-ring { display: flex; align-items: center; gap: 14px; }
.lfd-eq { flex: 1; min-width: 0; }

/* steps */
.lsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.lstep { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.lstep-top { display: flex; align-items: center; gap: 10px; }
.lstep-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--clay-bg); color: var(--clay); display: grid; place-items: center; }
[data-theme="dark"] .lstep-ico { color: color-mix(in oklab, var(--clay) 88%, #fff); }
.lstep-n { font-family: var(--font-mono); font-size: 12px; color: var(--clay); font-weight: 600; }
.lstep h4 { font-size: 16px; font-weight: 700; margin: 12px 0 7px; letter-spacing: -0.01em; }
.lstep p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
/* how it works — 2-col rows that render the real dashboard UI, 1:1, scaled to
   fit (the components keep their natural ~860px width inside .lhow-stage and are
   zoomed down so nothing is cramped or clipped). */
.lhow2 { display: flex; flex-direction: column; gap: 52px; margin-top: 44px; }
.lhow-row { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 44px; align-items: center; }
.lhow-text h4 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 8px; }
.lhow-text p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 380px; }
.lhow-vis { min-width: 0; }
.lhow-frame {
  width: 540px; max-width: 100%; position: relative; border: var(--hair) solid var(--border);
  border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-pop);
  overflow: hidden; pointer-events: none; max-height: 460px;
}
/* render the real UI at its natural width, then scale the whole frame down */
.lhow-stage { width: 860px; zoom: 0.628; }
/* the real components were built full-bleed; tame them inside the stage */
.lhow-stage .scrim { position: static; inset: auto; background: none; backdrop-filter: none; padding: 0; display: block; }
.lhow-stage .sheet { position: static; width: 100%; max-width: none; height: auto; max-height: none; border-radius: 0; border: 0; box-shadow: none; animation: none; transform: none; }
.lhow-stage .cal-page { padding: 22px 22px 8px; }
.lhow-stage .news-week, .lhow-stage .pf-news { display: none; } /* not part of the calendar */
/* step 1: real confluence chips */
.lhow-conf { padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.lhow-conf-top { display: flex; align-items: center; gap: 14px; }
.lhow-inst { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--clay); background: var(--clay-bg); border: var(--hair) solid color-mix(in oklab, var(--clay) 30%, transparent); padding: 6px 14px; border-radius: 99px; }
.lhow-conf-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lhow-addconf { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--clay); border: 1px dashed color-mix(in oklab, var(--clay) 45%, var(--border)); border-radius: 99px; padding: 6px 13px; }
@media (max-width: 920px) {
  .lhow-row { grid-template-columns: 1fr; gap: 16px; }
  /* frame hugs the scaled stage so there's no empty space on the right */
  .lhow-frame { width: max-content; max-width: 100%; margin: 0 auto; }
  .lhow-stage { zoom: 0.4; }
}
@media (max-width: 400px) { .lhow-stage { zoom: 0.34; } }

/* pricing */
.lpricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; max-width: 720px; }
.ptier { background: var(--panel); border: var(--hair) solid var(--border); border-radius: 12px; padding: 28px; }
.ptier.pro { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay), var(--shadow); }
.ptier-name { display: flex; align-items: center; justify-content: space-between; }
.ptier-name span { font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-family: var(--font-mono); }
.ptier-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: #fff; background: var(--clay); padding: 2px 8px; border-radius: 99px; }
.ptier-price { font-family: var(--font-mono); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 4px; }
.ptier-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.ptier ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.ptier li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ptier li .ck { color: var(--long); margin-top: 1px; flex-shrink: 0; }
.ptier li.off { color: var(--faint); }

/* faq */
.lfaq { padding: 80px 0 8px; max-width: 760px; margin: 0 auto; }
.lfaq .lsec-kicker { display: block; text-align: center; }
.lfaq > h2 { font-size: 32px; letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 28px; text-align: center; }
.lfaq-list { display: flex; flex-direction: column; gap: 10px; }
.lfaq-item { background: var(--panel); border: var(--hair) solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .18s; }
.lfaq-item.open { border-color: var(--border-2); }
.lfaq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; color: inherit; padding: 16px 18px; font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.lfaq-q svg { flex-shrink: 0; color: var(--muted); transition: transform .28s cubic-bezier(.22,.61,.36,1); }
.lfaq-item.open .lfaq-q svg { transform: rotate(180deg); color: var(--clay); }
/* smooth expand/collapse via grid-rows trick (animatable, unlike height:auto) */
.lfaq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.22,.61,.36,1); }
.lfaq-item.open .lfaq-body { grid-template-rows: 1fr; }
.lfaq-body-in { overflow: hidden; }
.lfaq-a { margin: 0; padding: 0 18px 17px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
[dir="rtl"] .lfaq-q { text-align: right; }

/* luxe scroll-progress bar (top of viewport, under the sticky nav) */
.lscroll-prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: var(--clay); transform: scaleX(0); transform-origin: left; will-change: transform; }
[dir="rtl"] .lscroll-prog { transform-origin: right; }
@media (prefers-reduced-motion: reduce) {
  .lfaq-body { transition: none; }
  .lfaq-q svg { transition: none; }
}

/* footer cta */
.lcta { text-align: center; padding: 88px 0; }
.lcta h2 { font-size: 36px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
.lcta p { font-size: 16px; color: var(--ink-2); margin: 0 0 28px; }
.lfooter { border-top: var(--hair) solid var(--border); padding: 30px 0 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.lfooter .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.lfoot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lfoot-links a { color: var(--muted); text-decoration: none; transition: color .12s; }
.lfoot-links a:hover { color: var(--clay); }

/* ---- policy pages ---- */
.legal-page { height: 100%; overflow-y: auto; background: var(--bg); color: var(--ink); }
.legal-inner { max-width: 760px; margin: 0 auto; padding: 40px 40px 0; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 4px 0 18px; transition: color .12s; }
.legal-back:hover { color: var(--clay); }
.legal-inner .lsec-kicker { display: block; }
.legal-h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin: 0 0 8px; }
.legal-sec { padding-top: 26px; }
.legal-sec h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.legal-sec p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 12px; }
.legal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: var(--hair) solid var(--border); }
.legal-link { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: var(--hair) solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 11px 16px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: all .12s; }
.legal-link:hover { border-color: var(--clay); color: var(--clay); }
.legal-disclaim { font-size: 12px; line-height: 1.6; color: var(--faint); margin: 28px 0 0; }

/* contact page */
.contact-card { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 20px; background: var(--panel); border: var(--hair) solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: all .14s; }
.contact-card:hover { border-color: var(--clay); transform: translateY(-1px); }
.contact-card-ico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; background: var(--clay-bg); color: var(--clay); }
.contact-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.contact-card-cta { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.contact-card-mail { font-family: var(--font-mono); font-size: 13px; color: var(--clay); word-break: break-all; }
.contact-card > svg { color: var(--muted); flex-shrink: 0; }
.contact-response { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }
.contact-help { margin: 4px 0 0; padding-left: 20px; }
.contact-help li { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 6px; }
[dir="rtl"] .contact-help { padding-left: 0; padding-right: 20px; }

/* ---------------- Auth (login / register) ---------------- */
.auth { height: 100%; overflow-y: auto; background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--panel); border-right: var(--hair) solid var(--border); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 30px 30px; opacity: .5; pointer-events: none; }
.auth-aside-top { position: relative; }
.auth-aside-quote { position: relative; font-size: 25px; line-height: 1.32; letter-spacing: -0.02em; font-weight: 600; max-width: 420px; text-wrap: balance; }
.auth-aside-quote b { color: var(--clay); }
.auth-aside-by { position: relative; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 20px; }
.auth-aside-prev { position: relative; margin-top: 28px; max-width: 360px; }
/* the dense calendar grid needs tighter sizing inside the narrow auth aside */
.auth-aside-prev .lcal { padding: 14px; }
.auth-aside-prev .lcal-grid { gap: 3px; }
.auth-aside-prev .lcal-cell { min-height: 34px; padding: 4px 4px; }
.auth-aside-prev .lcal-num { font-size: 7px; gap: 2px; }
.auth-aside-prev .lcal-pnl { font-size: 8.5px; }
.auth-aside-prev .lcal-week-net { font-size: 8px; }
.auth-aside-prev .lcal-dow { font-size: 7px; }
.auth-aside-prev .lcal-acct { font-size: 6.5px; }
.auth-aside-prev .lcal-todaytag { font-size: 5.5px; padding: 1px 2px; }

.auth-main { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--muted); font-family: var(--font-mono); font-size: 12px; cursor: pointer; margin-bottom: 30px; transition: color .12s; white-space: nowrap; }
.auth-back:hover { color: var(--clay); }
.auth-title { font-size: 27px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 8px 0 28px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.auth-input { width: 100%; border: var(--hair) solid var(--border); border-radius: var(--radius); background: var(--inset); color: var(--ink); font-size: 14.5px; padding: 12px 14px; outline: none; font-family: var(--font-sans); transition: border-color .12s; }
.auth-input::placeholder { color: var(--faint); }
.auth-input:focus { border-color: var(--clay); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.auth-row a { color: var(--clay); font-size: 12.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.auth-check input { accent-color: var(--clay); }
.auth-sso { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; padding: 11px; border: var(--hair) solid var(--border); border-radius: var(--radius); background: var(--panel-2); color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .12s; font-family: var(--font-sans); white-space: nowrap; }
.auth-sso:hover { border-color: var(--muted); background: var(--inset); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.auth-switch a { color: var(--clay); cursor: pointer; font-weight: 600; }
.auth-demo { font-family: var(--font-mono); font-size: 11px; color: var(--faint); text-align: center; margin-top: 20px; padding: 9px; background: var(--inset); border-radius: var(--radius); }
.auth-err { font-size: 13px; color: var(--short); background: var(--short-soft); border: 1px solid color-mix(in oklab, var(--short) 35%, transparent); border-radius: var(--radius); padding: 10px 12px; margin: 4px 0 14px; }
.auth-info { font-size: 13px; color: var(--long); background: var(--long-soft); border: 1px solid color-mix(in oklab, var(--long) 35%, transparent); border-radius: var(--radius); padding: 10px 12px; margin: 4px 0 14px; }
.auth-sso[disabled], .auth-card .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* boot splash while the Supabase session resolves */
.app-boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--bg); color: var(--ink); }
.app-boot .brand-mark { width: 46px; height: 46px; font-size: 24px; animation: boot-pulse 1.1s ease-in-out infinite; }
.app-boot-txt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@keyframes boot-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* invite-only gate */
.locked { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.locked-card {
  width: min(440px, 100%); text-align: center; background: var(--panel);
  border: var(--hair) solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 40px 32px;
}
.locked-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 0; }
.locked-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.locked-card p b { color: var(--ink); font-weight: 600; }
.locked-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.locked-actions .btn { width: 100%; }

@media (max-width: 900px) {
  .lhero { grid-template-columns: 1fr; gap: 36px; }
  .lfeatures, .lpricing, .lsteps { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* landing: "everything else" capability grid */
.lmore { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; margin-top: 36px; }
.lmore-item { display: flex; gap: 13px; align-items: flex-start; background: var(--panel); border: var(--hair) solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 16px 17px; }
.lmore-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--clay-bg); color: var(--clay); display: grid; place-items: center; }
[data-theme="dark"] .lmore-ico { color: color-mix(in oklab, var(--clay) 88%, #fff); }
.lmore-item h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.lmore-item p { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* landing: premium add-on (Prop match) */
.lpremium { margin-top: 18px; background: var(--panel); border: var(--hair) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 30px; position: relative; overflow: hidden; }
.lpremium::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--clay); }
.lpremium-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); background: var(--clay-bg); border: var(--hair) solid color-mix(in oklab, var(--clay) 30%, transparent); padding: 5px 11px; border-radius: 99px; }
.lpremium-badge svg { color: var(--clay); }
.lpremium-title { font-size: 27px; font-weight: 800; letter-spacing: -0.025em; margin: 16px 0 0; max-width: 540px; }
.lpremium-p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 12px 0 0; max-width: 620px; }
.lpremium-price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.lpremium-amt { font-size: 34px; font-weight: 700; color: var(--clay); letter-spacing: -0.02em; }
.lpremium-per { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lpremium-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* landing: pricing — free vs premium cards */
.lprice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; align-items: start; }
.lprice-card { display: flex; flex-direction: column; background: var(--panel); border: var(--hair) solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.lprice-card.pro { border-color: color-mix(in oklab, var(--clay) 45%, var(--border)); box-shadow: var(--shadow-pop), inset 0 0 0 1px color-mix(in oklab, var(--clay) 20%, transparent); position: relative; overflow: hidden; }
.lprice-card.pro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--clay); }
.lprice-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); background: var(--clay-bg); border: var(--hair) solid color-mix(in oklab, var(--clay) 30%, transparent); padding: 4px 9px; border-radius: 99px; margin-bottom: 14px; }
.lprice-badge svg { color: var(--clay); }
.lprice-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lprice-amt { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.lprice-amt .mono { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.lprice-card.pro .lprice-amt .mono { color: var(--clay); }
.lprice-per { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lprice-sub { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }
.lprice-list { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.lprice-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.lprice-list li svg { color: var(--long); flex-shrink: 0; margin-top: 2px; }
.lprice-card.pro .lprice-list li svg { color: var(--clay); }
.lprice-foot { font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; margin-top: 18px; }
.lprice-tax { font-size: 12px; line-height: 1.5; color: var(--faint); text-align: center; margin-top: 8px; }
/* billing period switch (monthly / yearly) above the pricing cards */
.lbill { display: flex; width: fit-content; gap: 2px; margin: 28px auto 18px; padding: 3px; background: var(--inset); border: var(--hair) solid var(--border); border-radius: 99px; }
.lbill-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted); background: none; border: 0; border-radius: 99px; padding: 7px 16px; cursor: pointer; transition: color .12s, background .12s; }
.lbill-btn:hover { color: var(--ink); }
.lbill-btn.on { color: var(--ink); background: var(--panel); box-shadow: 0 1px 2px #0000001f; }
.lbill-save { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--clay); background: var(--clay-bg); border-radius: 99px; padding: 2px 7px; }
.lprice-bill { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }
.lprice-amt .lprice-was { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--faint); opacity: .4; text-decoration: line-through; margin-right: 8px; }
.lprice-off { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--long); background: color-mix(in oklab, var(--long) 14%, transparent); border-radius: 99px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 900px) { .lprice { grid-template-columns: minmax(0, 1fr); } }

/* landing: premium feature showcase (real mini-UI) */
.lfeatures-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lfeat.pro { border-color: color-mix(in oklab, var(--clay) 40%, var(--border)); box-shadow: var(--shadow-pop), inset 0 0 0 1px color-mix(in oklab, var(--clay) 16%, transparent); position: relative; overflow: hidden; }
.lfeat.pro::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--clay); }
.lfeat-badge { float: right; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); background: var(--clay-bg); border: var(--hair) solid color-mix(in oklab, var(--clay) 30%, transparent); padding: 3px 8px; border-radius: 99px; }
.lfeat-badge svg { color: var(--clay); }
/* premium demos */
.lpd { background: var(--inset); border: var(--hair) solid var(--border-2); border-radius: 8px; padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.lpd .mono { font-family: var(--font-mono); }
.lpd-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.lpd-fitrow { display: flex; align-items: center; justify-content: space-between; }
.lpd-fit { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--clay); background: var(--clay-bg); padding: 3px 8px; border-radius: 99px; }
.lpd-rank { display: flex; flex-direction: column; gap: 6px; }
.lpd-rrow { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.lpd-rk { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.lpd-rbar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.lpd-rbar i { display: block; height: 100%; background: var(--clay); border-radius: 99px; }
.lpd-trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lpd-phase { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .08em; color: var(--long); background: color-mix(in oklab, var(--long) 14%, transparent); padding: 2px 6px; border-radius: 99px; }
.lpd-chip { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.lpd-chip.ok { color: var(--long); background: color-mix(in oklab, var(--long) 14%, transparent); }
.lpd-metric { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.lpd-metric .mono { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.lpd-bar { height: 7px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.lpd-bar i { display: block; height: 100%; border-radius: 99px; }
.lpd-bar i.ok { background: var(--long); }
.lpd-bar i.clay { background: var(--clay); }
.lpd-cash { gap: 7px; }
.lpd-cell { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 10px; background: var(--panel); border: var(--hair) solid var(--border-2); border-radius: 6px; }
.lpd-cell .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lpd-cell .v { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.lpd-cell .v.pos { color: var(--long); } .lpd-cell .v.neg { color: var(--short); }
/* pro (€7) demos: forecast fan + pattern leaks */
.lpd-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.lpd-fan { width: 100%; height: 64px; display: block; }
.lpd-leaks { gap: 8px; }
.lpd-leak { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.4; color: var(--ink); padding: 9px 11px; border-radius: 7px; border: var(--hair) solid var(--border-2); background: var(--panel); }
.lpd-leak-ico { flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; margin-top: 1px; }
.lpd-leak.warn { border-color: color-mix(in oklab, var(--short) 26%, var(--border-2)); }
.lpd-leak.warn .lpd-leak-ico { color: var(--short); background: color-mix(in oklab, var(--short) 14%, transparent); }
.lpd-leak.good { border-color: color-mix(in oklab, var(--long) 26%, var(--border-2)); }
.lpd-leak.good .lpd-leak-ico { color: var(--long); background: color-mix(in oklab, var(--long) 14%, transparent); }
.lpd-gradebars { display: flex; flex-direction: column; gap: 6px; }
.lpd-grow { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 8px; }
.lpd-glet { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-align: center; color: var(--muted); }
.lpd-glet.pos { color: var(--long); } .lpd-glet.neg { color: var(--short); } .lpd-glet.warn { color: var(--warn); }
.lpd-gbar { height: 7px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.lpd-gbar i { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.lpd-gbar i.pos { background: var(--long); } .lpd-gbar i.neg { background: var(--short); } .lpd-gbar i.warn { background: var(--warn); }
.lfeat-pts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: var(--hair) solid var(--border-2); display: flex; flex-direction: column; gap: 8px; }
.lfeat-pts li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.lfeat-pts li svg { color: var(--clay); flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .lfeat-pts li svg { color: color-mix(in oklab, var(--clay) 88%, #fff); }
.lpro-note { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--muted); }
/* plain-language "how the numbers work" disclaimer */
.ldisc { display: flex; gap: 16px; align-items: flex-start; background: var(--inset); border: var(--hair) solid var(--border-2); border-radius: var(--radius-lg); padding: 24px 26px; }
.ldisc-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; background: var(--clay-bg); color: var(--clay); display: grid; place-items: center; }
[data-theme="dark"] .ldisc-ico { color: color-mix(in oklab, var(--clay) 88%, #fff); }
.ldisc-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 8px; }
.ldisc-body { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 760px; }
.lfeatures-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .lfeatures-pro, .lfeatures-duo { grid-template-columns: minmax(0, 1fr); } }

/* landing: independence / compliance disclaimer */
.lfoot-legal { max-width: 760px; margin: 60px auto 0; padding: 0 8px 34px; font-size: 11.5px; line-height: 1.6; color: var(--muted); text-align: center; }

/* pricing: highlight the Pro (€7) card as the pick */
.lprice-card.best { box-shadow: var(--shadow-pop), inset 0 0 0 2px var(--clay); }
.lprice-card.best .lprice-amt .mono { color: var(--clay); }
