/* THE LANDING PAGE: the hero band, its cards, the quiet finish and the
   arrival motion (spec §8). Linked from home.html only, through base.html's
   head_extra block, so no other page carries any of it.

   No rule here is reached by a `style=` attribute: the CSP forbids inline
   style, so every width and position the band needs is a CLASS — .lp-wN
   for a bar's share of the span, .lp-lN for a turn's or a year's left edge.

   OWN NAMES ONLY (ruling R10). components.css and app.css already style
   .band, .turn, .hero, .q and more; a class this sheet shares with them is
   styled twice, which is how every bar first rendered at height 0. Any
   class that collides takes the lp- prefix; test_landing.py holds it.

   The arrival register (--dur-arrive, --dur-stagger) is read here and
   nowhere else (test_landing.py holds that). Everything that moves is
   switched off under prefers-reduced-motion, at the foot of this sheet. */

/* Gold, derived. Gold marks only "now" and a turn (identity v6). */
/* (the gold-derived and moon/sun values are declared in theme.css) */

/* ── the hero backdrop: the sky and its grain ─────────────────────── */
.lp-hero{position:relative;isolation:isolate;padding:1.4rem 0 1.2rem;background:var(--sky)}
.lp-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  opacity:var(--grain-op);mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.lp-hero .kicker{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:500;margin:0 0 .5rem;color:var(--muted)}
.lp-hero h1{font-family:var(--serif);font-weight:400;line-height:1.15;letter-spacing:-.01em;margin:0}
.lp-hero .ask{color:var(--muted);margin:1.1rem 0 .4rem}
/* The CTA is the site's primary button: it reads the shared tokens. */
.lp-hero .ask+p>a:first-child{background:var(--btn-bg);color:var(--btn-fg);border-radius:var(--btn-radius)}

/* ── the band ─────────────────────────────────────────────────────── */
.tl{position:relative;margin:1rem 0 0}
.tl>input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.track{position:relative;margin-top:30px}
.lp-band{display:flex;gap:2px;height:58px}
.lp-band .per{position:relative;display:block;cursor:pointer;border-radius:6px;transform-origin:left;
  background-image:linear-gradient(180deg,rgba(255,255,255,.22),transparent 55%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 6px 14px -8px rgba(0,0,0,.6);
  animation:grow var(--dur-arrive) var(--ease) both;
  transition:filter var(--dur-2) var(--ease)}
.lp-band .per:first-child{border-radius:10px 6px 6px 10px}
.lp-band .per:hover{filter:brightness(1.08)}
.lp-band .per.future{opacity:.32}
.lp-band .per.future::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:repeating-linear-gradient(135deg,transparent 0 6px,rgba(255,255,255,.18) 6px 7px)}
.lp-band .per.lp-now{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 0 0 1px var(--gold-edge),0 0 22px var(--gold-glow)}
.lp-band .per.lp-now::before{content:"";position:absolute;left:0;right:0;top:-6px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,var(--gold-2),var(--gold),var(--gold-2))}
/* The right edge fades into the rest of the 120-year cycle (§8.1). */
.lp-band .more{flex:0 0 22px;border-radius:0 9px 9px 0;opacity:.5;background:linear-gradient(90deg,var(--line),transparent)}
/* The chosen bar is ringed; focus shows the same ring for a keyboard. */
#lp-sun:checked~.track .lp-band label[for=lp-sun],
#lp-moon:checked~.track .lp-band label[for=lp-moon],
#lp-mars:checked~.track .lp-band label[for=lp-mars],
#lp-rahu:checked~.track .lp-band label[for=lp-rahu],
#lp-jupiter:checked~.track .lp-band label[for=lp-jupiter],
#lp-saturn:checked~.track .lp-band label[for=lp-saturn],
#lp-mercury:checked~.track .lp-band label[for=lp-mercury],
#lp-ketu:checked~.track .lp-band label[for=lp-ketu],
#lp-venus:checked~.track .lp-band label[for=lp-venus]{outline:2px solid var(--ink);outline-offset:2px}
.tl>input:focus-visible~.track .lp-band{outline:1px dashed var(--muted);outline-offset:4px}

/* One colour per graha, from identity v6 (theme.css). */
.g-sun{background-color:var(--g-sun)}
.g-moon{background-color:var(--g-moon)}
.g-mars{background-color:var(--g-mars)}
.g-rahu{background-color:var(--g-rahu)}
.g-jupiter{background-color:var(--g-jupiter)}
.g-saturn{background-color:var(--g-saturn)}
.g-mercury{background-color:var(--g-mercury)}
.g-ketu{background-color:var(--g-ketu)}
.g-venus{background-color:var(--g-venus)}

/* ── the turns: a gold tick with a date pill ──────────────────────── */
.lp-turns{position:absolute;left:0;right:24px;top:0;bottom:0;pointer-events:none}
.lp-turn{position:absolute;top:-28px;width:2px;height:86px;cursor:pointer;pointer-events:auto;transform-origin:bottom;
  background:linear-gradient(180deg,var(--gold),var(--gold-fade));
  animation:flash var(--dur-arrive) var(--ease) both}
.lp-turn b{position:absolute;top:-2px;left:5px;font-weight:500;font-size:.68rem;color:var(--gold-ink);padding:1px 8px;border-radius:999px;white-space:nowrap;
  background:linear-gradient(180deg,var(--gold-hi),var(--gold) 60%,var(--gold-lo));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 4px 10px -4px rgba(0,0,0,.5)}
.lp-turns .lp-turn:nth-of-type(1){animation-delay:calc(var(--dur-arrive) + var(--dur-stagger))}
.lp-turns .lp-turn:nth-of-type(2){animation-delay:calc(var(--dur-arrive) + var(--dur-stagger) * 3)}
.lp-turns .lp-turn:nth-of-type(3){animation-delay:calc(var(--dur-arrive) + var(--dur-stagger) * 5)}
.lp-turns .lp-turn:nth-of-type(4){animation-delay:calc(var(--dur-arrive) + var(--dur-stagger) * 7)}
#lp-t1:checked~.track .lp-turns label[for=lp-t1] b,
#lp-t2:checked~.track .lp-turns label[for=lp-t2] b,
#lp-t3:checked~.track .lp-turns label[for=lp-t3] b,
#lp-t4:checked~.track .lp-turns label[for=lp-t4] b{outline:2px solid var(--ink);outline-offset:1px}

/* ── the names beneath, in ink; the years beneath them ────────────── */
.names{display:flex;gap:2px;list-style:none;margin:6px 0 0;padding:0 24px 0 0;font-size:.74rem;color:var(--ink)}
.names li{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:2px}
.names li.lp-now{font-weight:600}
.yrs{position:relative;height:1.2em;list-style:none;margin:4px 24px 0 0;padding:0;font-size:.68rem;color:var(--muted)}
.yrs li{position:absolute;top:0;white-space:nowrap}
.yrs li:last-child{transform:translateX(-100%)}

/* ── the cards: glass, one shown at a time ────────────────────────── */
.pans{margin-top:1rem}
.pan{display:none;padding:.9rem 1rem;border-radius:14px;border:1px solid var(--glass-edge);
  background:var(--glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  animation:rise var(--dur-3) var(--ease) both}
#lp-sun:checked~.pans .p-sun,
#lp-moon:checked~.pans .p-moon,
#lp-mars:checked~.pans .p-mars,
#lp-rahu:checked~.pans .p-rahu,
#lp-jupiter:checked~.pans .p-jupiter,
#lp-saturn:checked~.pans .p-saturn,
#lp-mercury:checked~.pans .p-mercury,
#lp-ketu:checked~.pans .p-ketu,
#lp-venus:checked~.pans .p-venus,
#lp-t1:checked~.pans .p-t1,
#lp-t2:checked~.pans .p-t2,
#lp-t3:checked~.pans .p-t3,
#lp-t4:checked~.pans .p-t4{display:block}
.pan p{margin:.3rem 0}
.pan .h{font-family:var(--serif);font-size:1.15rem}
.pan .lp-when{font-family:inherit;font-size:.78rem;color:var(--muted);margin-left:.4rem}
.pan .lp-q{font-family:var(--serif)}
.pan .lp-line{color:var(--muted);font-size:.9rem}
/* The running period's antardashas: 22px, unnamed on the colour, the
   running one ringed in gold. */
.strip{display:flex;gap:2px;height:22px;list-style:none;margin:.6rem 0 .3rem;padding:0}
.strip li{border-radius:3px;opacity:.75;background-image:linear-gradient(180deg,rgba(255,255,255,.25),transparent)}
.strip li.lp-on{opacity:1;outline:2px solid var(--gold);outline-offset:1px}

/* ── the four sections below the hero (spec §7) ───────────────────── */
.lp-sec{padding:1.6rem 0;border-top:1px solid var(--line)}
.lp-sec .kicker{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:500;margin:0 0 .5rem;color:var(--muted)}
.lp-sec h2{font-family:var(--serif);font-weight:400;line-height:1.2;margin:0 0 .8rem}
.lp-sec .lp-line{color:var(--muted)}
.lp-frame{padding-top:2rem}
.lp-ask .lp-fields{margin-top:.6rem}
.stance>p{max-width:38rem}
.return{padding-bottom:2.4rem}
/* The frame reuses the cards' `.strip` (above): the running mahadasha's
   antardashas, the running one ringed in gold. No radios here. */
/* The ask: two inert fields and five chips, drawings of the form. */
.lp-fields{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0}
.lp-fields .field{display:inline-block;padding:.45rem .75rem;border:1px solid var(--line);border-radius:10px;background:var(--glass)}
.lp-fields .field small{display:block;font-size:.7rem;color:var(--muted)}
.lp-chips{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;margin:.6rem 0;padding:0}
.lp-chip{padding:.25rem .7rem;border:1px solid var(--line);border-radius:999px;font-size:.85rem}
/* The stance: the corpus's own finding, with its source beneath (R21). */
.lp-verse{margin:.6rem 0;padding:.6rem 1rem;border-left:3px solid var(--line);font-family:var(--serif)}
.lp-verse p{margin:.2rem 0}
.lp-sec .source{font-size:.85rem;color:var(--muted)}

/* ── the return: the ladder, a life down to a day (R14) ───────────── */
.lp-sub{font-family:var(--serif);font-weight:400;font-size:1.15rem;margin:0 0 .3rem}
.lp-ladder{list-style:none;margin:1rem 0 1.2rem;padding:0;max-width:38rem}
.lp-rung{max-width:none;margin:0 auto .6rem;padding:.75rem .9rem;border-radius:14px;border:1px solid var(--glass-edge);
  background:var(--glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 14px 34px -14px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.07);
  animation:rise var(--dur-3) var(--ease) both}
/* Five width steps, one per scale: the ladder narrows as it zooms in. */
/* `main li{max-width:38rem}` (app.css) capped every rung at the same
   38rem, so the steps never showed: the ladder takes the reading width
   and each rung its share of it, with the cap lifted on the rung. */
.lp-rung-life{width:100%}
.lp-rung-period{width:94%;animation-delay:calc(var(--dur-stagger) * 1)}
.lp-rung-subperiod{width:88%;animation-delay:calc(var(--dur-stagger) * 2)}
.lp-rung-stretch{width:82%;animation-delay:calc(var(--dur-stagger) * 3)}
.lp-rung-day{width:76%;animation-delay:calc(var(--dur-stagger) * 4)}
.lp-rung p{margin:.25rem 0}
.lp-rung-h{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;flex-wrap:wrap}
.lp-scale{font-family:var(--serif);font-size:1.05rem}
/* The unit is quiet ink in both themes: gold marks only "now" and a turn. */
.lp-unit{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;font-weight:500;color:var(--muted)}
.lp-crumb{font-family:var(--serif);font-size:.92rem;color:var(--muted)}
.lp-rung .strip{height:12px}
.lp-rung .strip li.future{opacity:.3}
/* The chart label is the crumb's caption (signing round): small, muted,
   directly under the crumb with no gap, so a rung whose line the gate
   refused does not end on what reads as an orphan heading. */
.lp-for{font-size:.75rem;font-style:italic;color:var(--muted)}
.lp-rung .lp-crumb:has(+ .lp-for){margin-bottom:0}
.lp-rung .lp-crumb + .lp-for{margin-top:0}
.lp-rung-line{font-size:.9rem;line-height:1.5}
.lp-rung .source{font-size:.75rem}

/* ── arrival motion (§8.4) ────────────────────────────────────────── */
@keyframes grow{from{transform:scaleX(0)}}
@keyframes flash{from{opacity:0;transform:scaleY(.2)}}
@keyframes rise{from{opacity:0;transform:translateY(8px)}}
.lp-band .per:nth-of-type(2){animation-delay:calc(var(--dur-stagger) * 1)}
.lp-band .per:nth-of-type(3){animation-delay:calc(var(--dur-stagger) * 2)}
.lp-band .per:nth-of-type(4){animation-delay:calc(var(--dur-stagger) * 3)}
.lp-band .per:nth-of-type(5){animation-delay:calc(var(--dur-stagger) * 4)}
.lp-band .per:nth-of-type(6){animation-delay:calc(var(--dur-stagger) * 5)}
.lp-band .per:nth-of-type(7){animation-delay:calc(var(--dur-stagger) * 6)}
.lp-band .per:nth-of-type(8){animation-delay:calc(var(--dur-stagger) * 7)}
.lp-band .per:nth-of-type(9){animation-delay:calc(var(--dur-stagger) * 8)}

/* ── generated widths and positions ───────────────────────────────── */
/* Regenerate with:
   python3 -c "print(''.join(f'.lp-w{n}{{flex:{n} 0 0}}' for n in range(1,101))); print(''.join(f'.lp-l{n}{{left:{n}%}}' for n in range(0,101)))"
   .lp-l0 is there for the axis's first year; the band's own positions
   are clamped to 1..99 by landing.band. */
.lp-w1{flex:1 0 0}.lp-w2{flex:2 0 0}.lp-w3{flex:3 0 0}.lp-w4{flex:4 0 0}.lp-w5{flex:5 0 0}.lp-w6{flex:6 0 0}.lp-w7{flex:7 0 0}.lp-w8{flex:8 0 0}.lp-w9{flex:9 0 0}.lp-w10{flex:10 0 0}.lp-w11{flex:11 0 0}.lp-w12{flex:12 0 0}.lp-w13{flex:13 0 0}.lp-w14{flex:14 0 0}.lp-w15{flex:15 0 0}.lp-w16{flex:16 0 0}.lp-w17{flex:17 0 0}.lp-w18{flex:18 0 0}.lp-w19{flex:19 0 0}.lp-w20{flex:20 0 0}.lp-w21{flex:21 0 0}.lp-w22{flex:22 0 0}.lp-w23{flex:23 0 0}.lp-w24{flex:24 0 0}.lp-w25{flex:25 0 0}.lp-w26{flex:26 0 0}.lp-w27{flex:27 0 0}.lp-w28{flex:28 0 0}.lp-w29{flex:29 0 0}.lp-w30{flex:30 0 0}.lp-w31{flex:31 0 0}.lp-w32{flex:32 0 0}.lp-w33{flex:33 0 0}.lp-w34{flex:34 0 0}.lp-w35{flex:35 0 0}.lp-w36{flex:36 0 0}.lp-w37{flex:37 0 0}.lp-w38{flex:38 0 0}.lp-w39{flex:39 0 0}.lp-w40{flex:40 0 0}.lp-w41{flex:41 0 0}.lp-w42{flex:42 0 0}.lp-w43{flex:43 0 0}.lp-w44{flex:44 0 0}.lp-w45{flex:45 0 0}.lp-w46{flex:46 0 0}.lp-w47{flex:47 0 0}.lp-w48{flex:48 0 0}.lp-w49{flex:49 0 0}.lp-w50{flex:50 0 0}.lp-w51{flex:51 0 0}.lp-w52{flex:52 0 0}.lp-w53{flex:53 0 0}.lp-w54{flex:54 0 0}.lp-w55{flex:55 0 0}.lp-w56{flex:56 0 0}.lp-w57{flex:57 0 0}.lp-w58{flex:58 0 0}.lp-w59{flex:59 0 0}.lp-w60{flex:60 0 0}.lp-w61{flex:61 0 0}.lp-w62{flex:62 0 0}.lp-w63{flex:63 0 0}.lp-w64{flex:64 0 0}.lp-w65{flex:65 0 0}.lp-w66{flex:66 0 0}.lp-w67{flex:67 0 0}.lp-w68{flex:68 0 0}.lp-w69{flex:69 0 0}.lp-w70{flex:70 0 0}.lp-w71{flex:71 0 0}.lp-w72{flex:72 0 0}.lp-w73{flex:73 0 0}.lp-w74{flex:74 0 0}.lp-w75{flex:75 0 0}.lp-w76{flex:76 0 0}.lp-w77{flex:77 0 0}.lp-w78{flex:78 0 0}.lp-w79{flex:79 0 0}.lp-w80{flex:80 0 0}.lp-w81{flex:81 0 0}.lp-w82{flex:82 0 0}.lp-w83{flex:83 0 0}.lp-w84{flex:84 0 0}.lp-w85{flex:85 0 0}.lp-w86{flex:86 0 0}.lp-w87{flex:87 0 0}.lp-w88{flex:88 0 0}.lp-w89{flex:89 0 0}.lp-w90{flex:90 0 0}.lp-w91{flex:91 0 0}.lp-w92{flex:92 0 0}.lp-w93{flex:93 0 0}.lp-w94{flex:94 0 0}.lp-w95{flex:95 0 0}.lp-w96{flex:96 0 0}.lp-w97{flex:97 0 0}.lp-w98{flex:98 0 0}.lp-w99{flex:99 0 0}.lp-w100{flex:100 0 0}
.lp-l0{left:0%}.lp-l1{left:1%}.lp-l2{left:2%}.lp-l3{left:3%}.lp-l4{left:4%}.lp-l5{left:5%}.lp-l6{left:6%}.lp-l7{left:7%}.lp-l8{left:8%}.lp-l9{left:9%}.lp-l10{left:10%}.lp-l11{left:11%}.lp-l12{left:12%}.lp-l13{left:13%}.lp-l14{left:14%}.lp-l15{left:15%}.lp-l16{left:16%}.lp-l17{left:17%}.lp-l18{left:18%}.lp-l19{left:19%}.lp-l20{left:20%}.lp-l21{left:21%}.lp-l22{left:22%}.lp-l23{left:23%}.lp-l24{left:24%}.lp-l25{left:25%}.lp-l26{left:26%}.lp-l27{left:27%}.lp-l28{left:28%}.lp-l29{left:29%}.lp-l30{left:30%}.lp-l31{left:31%}.lp-l32{left:32%}.lp-l33{left:33%}.lp-l34{left:34%}.lp-l35{left:35%}.lp-l36{left:36%}.lp-l37{left:37%}.lp-l38{left:38%}.lp-l39{left:39%}.lp-l40{left:40%}.lp-l41{left:41%}.lp-l42{left:42%}.lp-l43{left:43%}.lp-l44{left:44%}.lp-l45{left:45%}.lp-l46{left:46%}.lp-l47{left:47%}.lp-l48{left:48%}.lp-l49{left:49%}.lp-l50{left:50%}.lp-l51{left:51%}.lp-l52{left:52%}.lp-l53{left:53%}.lp-l54{left:54%}.lp-l55{left:55%}.lp-l56{left:56%}.lp-l57{left:57%}.lp-l58{left:58%}.lp-l59{left:59%}.lp-l60{left:60%}.lp-l61{left:61%}.lp-l62{left:62%}.lp-l63{left:63%}.lp-l64{left:64%}.lp-l65{left:65%}.lp-l66{left:66%}.lp-l67{left:67%}.lp-l68{left:68%}.lp-l69{left:69%}.lp-l70{left:70%}.lp-l71{left:71%}.lp-l72{left:72%}.lp-l73{left:73%}.lp-l74{left:74%}.lp-l75{left:75%}.lp-l76{left:76%}.lp-l77{left:77%}.lp-l78{left:78%}.lp-l79{left:79%}.lp-l80{left:80%}.lp-l81{left:81%}.lp-l82{left:82%}.lp-l83{left:83%}.lp-l84{left:84%}.lp-l85{left:85%}.lp-l86{left:86%}.lp-l87{left:87%}.lp-l88{left:88%}.lp-l89{left:89%}.lp-l90{left:90%}.lp-l91{left:91%}.lp-l92{left:92%}.lp-l93{left:93%}.lp-l94{left:94%}.lp-l95{left:95%}.lp-l96{left:96%}.lp-l97{left:97%}.lp-l98{left:98%}.lp-l99{left:99%}.lp-l100{left:100%}

/* ── the home page, full (14 Nov 2026): today's sky in the hero ───── */
/* The landing takes a wider column than a reading page: the hero is two
   columns, the tools a grid of four. Text inside keeps its own measure. */
body.landing main{max-width:72rem}
/* The sky's own loop lengths (MOTION guide §5: the home direction A's
   loops, each pausable and off under reduced motion). The orbit and the
   shade share one period, and a start-frame step is 1/72 of it, so a step
   is five degrees of elongation. Here, not in tokens.css: no other sheet
   loops. */
:root{--dur-sky-turn:240s;--dur-sky-orbit:36s;--dur-sky-step:.5s;--dur-sky-size:41s;
  --dur-sky-breathe:9s;--dur-sky-twinkle:6s;--dur-quest-fill:2.4s;--dur-quest-wait:.3s}
.lp-today-hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:1.2rem;padding:1.4rem 0 2rem}
.lp-today-hero h1{font-size:clamp(2rem,4.2vw,2.7rem);margin:.4rem 0 1rem}
.lp-lede{color:var(--muted);max-width:34rem;margin:0 0 1.2rem}
.lp-cta{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:0 0 1rem}
.lp-cta>a:first-child{background:var(--btn-bg);color:var(--btn-fg);border-radius:var(--btn-radius)}
.lp-quiet{display:inline-block;padding:.6rem 1.1rem;border:1px solid var(--glass-edge);border-radius:var(--btn-radius);text-decoration:none;color:var(--ink)}
.lp-quiet:hover{border-color:var(--muted)}
.lp-today-moon{color:var(--muted);border-left:2px solid var(--line);padding-left:.8rem;margin-top:1.2rem}
.lp-hero-sky{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center}
.lp-hero-sky .lp-wheel{order:1;flex:0 0 100%}
.lp-hero-sky .lp-still,.lp-hero-sky .lp-still-label{order:2;margin-top:.4rem}
/* The pause (WCAG 2.2.2): a real checkbox and its label, keyboard
   reachable; checked, every loop in the wheel holds where it is. */
.lp-still{margin:0 .4rem 0 0;vertical-align:middle;accent-color:var(--ink)}
.lp-still-label{font-size:.82rem;color:var(--muted);cursor:pointer;vertical-align:middle}
#lp-still:checked~.lp-wheel,#lp-still:checked~.lp-wheel *{animation-play-state:paused}
.lp-wheel{position:relative;width:100%;max-width:520px;margin:.4rem auto 0;aspect-ratio:1}
.lp-wheel svg{position:relative;display:block;width:100%;height:100%}
.lp-glow{position:absolute;inset:20%;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,var(--lp-halo),transparent 65%);animation:lp-breathe var(--dur-sky-breathe) ease-in-out infinite}
.lp-orbit-line{fill:none;stroke:var(--line);stroke-width:1}
.lp-beads circle{fill:var(--muted);opacity:.6}
.lp-now-bead{fill:var(--gold);animation:lp-twinkle var(--dur-sky-twinkle) ease-in-out infinite}
.lp-sun{fill:var(--lp-sun)}
.lp-moon{fill:var(--lp-moon-lit);stroke:var(--muted);stroke-width:.8;stroke-opacity:.6}
.lp-shade{fill:var(--lp-moon-dark);fill-opacity:.94;animation:lp-shade var(--dur-sky-orbit) linear infinite}
.lp-ring{transform-origin:260px 260px;animation:lp-turn var(--dur-sky-turn) linear infinite}
/* The SVG `transform` attribute on .lp-moonpath is a bare rotate(): CSS
   transform-origin applies to the attribute too, so a centre given in
   both would be applied twice (the static Moon left its orbit). */
.lp-moonpath{transform-origin:260px 260px;animation:lp-orbit var(--dur-sky-orbit) linear infinite}
.lp-moonbody{transform-box:fill-box;transform-origin:center;animation:lp-size var(--dur-sky-size) ease-in-out infinite}
.lp-hold{margin:.3rem 0 0;text-align:center;font-size:.75rem;color:var(--muted)}
@keyframes lp-turn{to{transform:rotate(360deg)}}
@keyframes lp-orbit{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
@keyframes lp-size{0%,100%{transform:scale(.97)}50%{transform:scale(1.03)}}
@keyframes lp-breathe{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes lp-twinkle{0%,100%{opacity:.55}50%{opacity:1}}
/* The shade's path, generated from `landing.shade_dx` at every 5% of the
   cycle (5% = 18 degrees of elongation), so the animation passes through
   the same frames the server draws statically:
   python -c "from engine.landing import shade_dx; ..." (see test_home_full). */
@keyframes lp-shade{0%{transform:translateX(-0.00px)}5%{transform:translateX(-0.72px)}10%{transform:translateX(-2.81px)}15%{transform:translateX(-6.06px)}20%{transform:translateX(-10.16px)}25%{transform:translateX(-14.70px)}30%{transform:translateX(-19.24px)}35%{transform:translateX(-23.34px)}40%{transform:translateX(-26.59px)}45%{transform:translateX(-28.68px)}49.99%{transform:translateX(-29.40px)}50%{transform:translateX(29.40px)}55%{transform:translateX(28.68px)}60%{transform:translateX(26.59px)}65%{transform:translateX(23.34px)}70%{transform:translateX(19.24px)}75%{transform:translateX(14.70px)}80%{transform:translateX(10.16px)}85%{transform:translateX(6.06px)}90%{transform:translateX(2.81px)}95%{transform:translateX(0.72px)}100%{transform:translateX(0.00px)}}
/* Today's elongation as a start frame: a negative delay of N x 0.5 s on
   the 36 s orbit and shade (N = elongation / 5 degrees), written as
   N steps of --dur-sky-step. After the
   animation shorthands above, so the delay wins. */
.lp-e0{animation-delay:calc(var(--dur-sky-step) * -0)}.lp-e1{animation-delay:calc(var(--dur-sky-step) * -1)}.lp-e2{animation-delay:calc(var(--dur-sky-step) * -2)}.lp-e3{animation-delay:calc(var(--dur-sky-step) * -3)}.lp-e4{animation-delay:calc(var(--dur-sky-step) * -4)}.lp-e5{animation-delay:calc(var(--dur-sky-step) * -5)}.lp-e6{animation-delay:calc(var(--dur-sky-step) * -6)}.lp-e7{animation-delay:calc(var(--dur-sky-step) * -7)}.lp-e8{animation-delay:calc(var(--dur-sky-step) * -8)}.lp-e9{animation-delay:calc(var(--dur-sky-step) * -9)}.lp-e10{animation-delay:calc(var(--dur-sky-step) * -10)}.lp-e11{animation-delay:calc(var(--dur-sky-step) * -11)}.lp-e12{animation-delay:calc(var(--dur-sky-step) * -12)}.lp-e13{animation-delay:calc(var(--dur-sky-step) * -13)}.lp-e14{animation-delay:calc(var(--dur-sky-step) * -14)}.lp-e15{animation-delay:calc(var(--dur-sky-step) * -15)}.lp-e16{animation-delay:calc(var(--dur-sky-step) * -16)}.lp-e17{animation-delay:calc(var(--dur-sky-step) * -17)}.lp-e18{animation-delay:calc(var(--dur-sky-step) * -18)}.lp-e19{animation-delay:calc(var(--dur-sky-step) * -19)}.lp-e20{animation-delay:calc(var(--dur-sky-step) * -20)}.lp-e21{animation-delay:calc(var(--dur-sky-step) * -21)}.lp-e22{animation-delay:calc(var(--dur-sky-step) * -22)}.lp-e23{animation-delay:calc(var(--dur-sky-step) * -23)}.lp-e24{animation-delay:calc(var(--dur-sky-step) * -24)}.lp-e25{animation-delay:calc(var(--dur-sky-step) * -25)}.lp-e26{animation-delay:calc(var(--dur-sky-step) * -26)}.lp-e27{animation-delay:calc(var(--dur-sky-step) * -27)}.lp-e28{animation-delay:calc(var(--dur-sky-step) * -28)}.lp-e29{animation-delay:calc(var(--dur-sky-step) * -29)}.lp-e30{animation-delay:calc(var(--dur-sky-step) * -30)}.lp-e31{animation-delay:calc(var(--dur-sky-step) * -31)}.lp-e32{animation-delay:calc(var(--dur-sky-step) * -32)}.lp-e33{animation-delay:calc(var(--dur-sky-step) * -33)}.lp-e34{animation-delay:calc(var(--dur-sky-step) * -34)}.lp-e35{animation-delay:calc(var(--dur-sky-step) * -35)}.lp-e36{animation-delay:calc(var(--dur-sky-step) * -36)}.lp-e37{animation-delay:calc(var(--dur-sky-step) * -37)}.lp-e38{animation-delay:calc(var(--dur-sky-step) * -38)}.lp-e39{animation-delay:calc(var(--dur-sky-step) * -39)}.lp-e40{animation-delay:calc(var(--dur-sky-step) * -40)}.lp-e41{animation-delay:calc(var(--dur-sky-step) * -41)}.lp-e42{animation-delay:calc(var(--dur-sky-step) * -42)}.lp-e43{animation-delay:calc(var(--dur-sky-step) * -43)}.lp-e44{animation-delay:calc(var(--dur-sky-step) * -44)}.lp-e45{animation-delay:calc(var(--dur-sky-step) * -45)}.lp-e46{animation-delay:calc(var(--dur-sky-step) * -46)}.lp-e47{animation-delay:calc(var(--dur-sky-step) * -47)}.lp-e48{animation-delay:calc(var(--dur-sky-step) * -48)}.lp-e49{animation-delay:calc(var(--dur-sky-step) * -49)}.lp-e50{animation-delay:calc(var(--dur-sky-step) * -50)}.lp-e51{animation-delay:calc(var(--dur-sky-step) * -51)}.lp-e52{animation-delay:calc(var(--dur-sky-step) * -52)}.lp-e53{animation-delay:calc(var(--dur-sky-step) * -53)}.lp-e54{animation-delay:calc(var(--dur-sky-step) * -54)}.lp-e55{animation-delay:calc(var(--dur-sky-step) * -55)}.lp-e56{animation-delay:calc(var(--dur-sky-step) * -56)}.lp-e57{animation-delay:calc(var(--dur-sky-step) * -57)}.lp-e58{animation-delay:calc(var(--dur-sky-step) * -58)}.lp-e59{animation-delay:calc(var(--dur-sky-step) * -59)}.lp-e60{animation-delay:calc(var(--dur-sky-step) * -60)}.lp-e61{animation-delay:calc(var(--dur-sky-step) * -61)}.lp-e62{animation-delay:calc(var(--dur-sky-step) * -62)}.lp-e63{animation-delay:calc(var(--dur-sky-step) * -63)}.lp-e64{animation-delay:calc(var(--dur-sky-step) * -64)}.lp-e65{animation-delay:calc(var(--dur-sky-step) * -65)}.lp-e66{animation-delay:calc(var(--dur-sky-step) * -66)}.lp-e67{animation-delay:calc(var(--dur-sky-step) * -67)}.lp-e68{animation-delay:calc(var(--dur-sky-step) * -68)}.lp-e69{animation-delay:calc(var(--dur-sky-step) * -69)}.lp-e70{animation-delay:calc(var(--dur-sky-step) * -70)}.lp-e71{animation-delay:calc(var(--dur-sky-step) * -71)}
/* ── the today strip (Task 2): a city's day, as /panchang computes it ─ */
.lp-city{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.2rem 0 .4rem}
.lp-city label{font-size:.85rem;color:var(--muted)}
.lp-city input{flex:1 1 12rem;max-width:20rem;padding:.5rem .7rem;border:1px solid var(--glass-edge);border-radius:10px;background:var(--glass);color:var(--ink);font:inherit}
.lp-city button{padding:.5rem .9rem;border:1px solid var(--glass-edge);border-radius:10px;background:transparent;color:var(--ink);font:inherit;cursor:pointer}
.lp-city-line{font-size:.85rem;color:var(--muted);margin:.2rem 0}
.lp-today{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin-top:1rem}
.lp-cell{padding:.9rem 1rem;border:1px solid var(--glass-edge);border-radius:14px;background:var(--glass);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lp-cell p{margin:0;max-width:none}
.lp-k{font-size:.66rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.lp-cell .lp-v{font-family:var(--serif);font-size:1.2rem;margin:.25rem 0 .1rem}
.lp-s{font-size:.82rem;color:var(--muted)}
.lp-wide{grid-column:span 2}
.lp-parts{display:flex;gap:2px;height:10px;list-style:none;margin:.6rem 0 .4rem;padding:0;border-radius:6px;overflow:hidden}
.lp-part{flex:1;background:var(--line)}
.lp-part-mark{background:var(--muted)}
.lp-more{margin-top:1rem}

/* ── the birth moon (Task 3): the sample's card, a reader's on POST ── */
.lp-bm{display:grid;grid-template-columns:240px 1fr;gap:1.6rem;align-items:center;margin:1rem 0;padding:1.4rem;border:1px solid var(--glass-edge);border-radius:20px;background:var(--glass)}
.lp-bm-moon{margin:0}
.lp-bm-moon svg{display:block;width:100%;max-width:240px;height:auto;margin:0 auto}
.lp-bm-facts{display:grid;grid-template-columns:1fr 1fr;gap:.9rem 1.4rem}
.lp-bm-facts p{margin:0;max-width:none}
.lp-bm-v{font-family:var(--serif);font-size:1.05rem;margin-top:.15rem}
.lp-bm-word{font-family:var(--serif);margin-top:.3rem}
.lp-bm-wide{grid-column:1/-1}
.lp-bm-form{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end;margin:1.2rem 0 .4rem}
.lp-bm-form label{display:block;font-size:.8rem;color:var(--muted);margin-bottom:.2rem}
.lp-bm-form input{padding:.55rem .7rem;border:1px solid var(--glass-edge);border-radius:10px;background:var(--glass);color:var(--ink);font:inherit}
@media (max-width:420px){.lp-bm-facts{grid-template-columns:1fr}}
.lp-bm-form button{padding:.6rem 1.1rem;border:0;border-radius:var(--btn-radius);background:var(--btn-bg);color:var(--btn-fg);font:inherit;cursor:pointer}

/* ── the tools (Task 4): twelve tiles, each a link to its page ─────── */
.lp-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;list-style:none;margin:1rem 0 0;padding:0}
.lp-tools li{max-width:none;margin:0}
.lp-tool{display:flex;flex-direction:column;gap:.4rem;height:100%;padding:1rem 1rem 1.1rem;border:1px solid var(--glass-edge);border-radius:14px;background:var(--glass);color:var(--ink);text-decoration:none;transition:border-color var(--dur-1) var(--ease)}
.lp-tool:hover,.lp-tool:focus-visible{border-color:var(--muted)}
.lp-ic{width:34px;height:34px;color:var(--muted)}
.lp-tool-h{font-family:var(--serif);font-size:1.05rem}
.lp-tool-p{font-size:.86rem;line-height:1.5;color:var(--muted)}
.lp-tag{white-space:nowrap;margin-top:auto;align-self:flex-start;font-size:.62rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);border:1px solid var(--glass-edge);border-radius:999px;padding:.2rem .5rem}
.lp-tag-open{color:var(--ink);border-color:var(--muted)}

/* ── the quest teaser (Task 5) ─────────────────── */
.lp-quest{display:grid;grid-template-columns:200px 1fr;gap:1.6rem;align-items:center}
.lp-qring-box{text-align:center}
.lp-qring{width:170px;height:170px}
.lp-qtrack{fill:none;stroke:var(--line);stroke-width:8}
.lp-qfill{fill:none;stroke:var(--ink);stroke-width:8;stroke-linecap:round;stroke-dasharray:440;animation:lp-fill var(--dur-quest-fill) var(--ease) var(--dur-quest-wait) both}
/* N of twelve signs ruled out: the arc's share, 440 x (1 - N/12). */
.lp-q0{stroke-dashoffset:440.0}.lp-q1{stroke-dashoffset:403.3}.lp-q2{stroke-dashoffset:366.7}.lp-q3{stroke-dashoffset:330.0}.lp-q4{stroke-dashoffset:293.3}.lp-q5{stroke-dashoffset:256.7}.lp-q6{stroke-dashoffset:220.0}.lp-q7{stroke-dashoffset:183.3}.lp-q8{stroke-dashoffset:146.7}.lp-q9{stroke-dashoffset:110.0}.lp-q10{stroke-dashoffset:73.3}.lp-q11{stroke-dashoffset:36.7}.lp-q12{stroke-dashoffset:0.0}
@keyframes lp-fill{from{stroke-dashoffset:440}}
.lp-qcount{margin:.3rem 0 0;font-family:var(--serif);font-size:1.05rem}
.lp-steps{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.lp-steps li{position:relative;padding-left:1.8rem;max-width:none}
.lp-steps li::before{content:"";position:absolute;left:0;top:.3em;width:14px;height:14px;border-radius:50%;border:1.5px solid var(--muted)}
.lp-steps .lp-step-done::before{background:var(--muted)}

@media (max-width:860px){
  .lp-today-hero{grid-template-columns:1fr}
  .lp-quest{grid-template-columns:1fr}
  .lp-tools{grid-template-columns:1fr 1fr}
  .lp-bm{grid-template-columns:1fr}
  .lp-today{grid-template-columns:1fr 1fr}
}

/* ── what astrology rarely tells you (Task 7, behind CLARITY) ─────── */
/* The home rendering of the clarity cards: no figures, the landing's glass.
   The card's own layout is app.css's (.cl-*); only lp-cl names here. */
.lp-cl-card{background:var(--glass);border:1px solid var(--glass-edge);border-radius:14px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lp-cl-fig svg{max-width:140px}

/* ── reduced motion: everything drawn, nothing moves ──────────────── */
@media (prefers-reduced-motion: reduce){
  .lp-band .per,.lp-turn,.pan,.lp-rung{animation:none;opacity:1;transform:none}
  .lp-band .per.future{opacity:.32}
  /* The sky holds still on today's frame: the Moon and its shade keep the
     `transform` attributes the server drew (no CSS transform here, so the
     attribute applies); the ring, glow and bead stop where they are. */
  .lp-glow,.lp-ring,.lp-moonpath,.lp-moonbody,.lp-shade,.lp-now-bead{animation:none}
  .lp-glow,.lp-now-bead{opacity:1}
  /* the quest ring is drawn at its count, not filled toward it */
  .lp-qfill{animation:none}
  /* the clarity cards' drawings hold still */
  .lp-cl-fig *{animation:none;opacity:1;transform:none}
}
