/* Urhema landing (the site root, for guests).

   Everything here is scoped under .landing. This file used to reset *, html, body, img and a
   globally and redefine :root colours, so on this one page it overrode the shared header and
   footer, ignored the theme switcher, and used a teal accent while the rest of the site is coral.
   Now it consumes the --ub-* tokens, so light, dark, sepia and night all work, and the accent
   matches every other page.

   The "night" band (community) is a deliberately dark section in every theme, so it keeps its own
   fixed dark values.

   Fonts: headings and body use the site fonts (--ub-font-heading / --ub-font-ui), which every page
   already downloads. To go back to the old EB Garamond / Instrument Sans look, change --l-serif and
   --l-sans below (and restore the font preload in Landing.cshtml). EB Garamond stays only on the
   Greek word in the eyebrow, because the site's Merriweather files carry no Greek. */

.landing{
  --l-bg:var(--ub-paper);
  --l-surface:var(--ub-paper-raised);
  --l-sunken:var(--ub-paper-sunken);
  --l-rule:var(--ub-line);
  --l-ink:var(--ub-ink);
  --l-muted:var(--ub-ink-muted);
  --l-accent:var(--ub-accent-500);
  --l-accent-strong:var(--ub-accent-700);
  --l-accent-soft:var(--ub-accent-100);
  --l-accent-contrast:var(--ub-accent-contrast);
  --l-night-bg:#121212; --l-night-surface:#1c1c1c; --l-night-rule:#2a2a2a;
  --l-night-ink:#e8e4dc; --l-night-muted:#9a9a94; --l-night-accent:#ff8f7a;
  --l-serif:var(--ub-font-heading);
  --l-sans:var(--ub-font-ui);
  --l-greek:"EB Garamond", Georgia, serif;
  --l-w:1120px;
  background:var(--l-bg);
  color:var(--l-ink);
  font-family:var(--l-sans);
  font-size:1rem;
  line-height:1.6;
}
.landing *,.landing *::before,.landing *::after{box-sizing:border-box}
.landing img{max-width:100%;display:block}
.landing p,.landing h1,.landing h2,.landing h3,.landing figure,.landing blockquote{margin:0}
.landing a{color:var(--l-accent-strong)}
.landing :focus-visible{outline:2px solid var(--l-accent-strong);outline-offset:3px;border-radius:2px}
html:has(.landing){scroll-behavior:smooth}
.landing [id]{scroll-margin-top:5rem}
html:has(.landing){scroll-padding-top:5rem}

.landing .wrap{max-width:var(--l-w);margin:0 auto;padding-inline:clamp(1.25rem,4vw,2.5rem)}
.landing .band{padding-block:clamp(4rem,9vw,7.5rem)}

/* buttons */
.landing .btn{display:inline-block;border-radius:10px;padding:.75rem 1.4rem;font-weight:600;font-size:.95rem;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:var(--l-sans)}
.landing .btn--solid{background:var(--l-accent);color:var(--l-accent-contrast)}
.landing .btn--solid:hover{background:var(--l-accent-strong);color:var(--l-accent-contrast)}
.landing .btn--ghost{border-color:var(--ub-line-strong);color:var(--l-ink);background:transparent}
.landing .btn--ghost:hover{border-color:var(--l-accent-strong);color:var(--l-accent-strong)}

/* day markers */
.landing .day{display:flex;align-items:baseline;gap:.75rem;margin-bottom:1.1rem}
.landing .day__num{font-family:var(--l-sans);font-weight:600;font-size:.78rem;letter-spacing:.18em;color:var(--l-accent-strong)}
.landing .day__rule{flex:0 0 2.25rem;height:1px;background:var(--l-accent-strong);opacity:.45;align-self:center}
.landing .day__word{font-size:.78rem;letter-spacing:.18em;color:var(--l-muted);font-weight:500}

/* hero */
.landing .hero{padding-block:clamp(2.5rem,6vw,5rem) clamp(4rem,8vw,6.5rem)}
.landing .hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2.5rem,5vw,4.5rem);align-items:center}
@media(max-width:880px){.landing .hero__grid{grid-template-columns:1fr}}
.landing .hero__eyebrow{font-size:.8rem;letter-spacing:.16em;color:var(--l-muted);margin-bottom:1.25rem;font-weight:500}
.landing .hero__eyebrow em{font-family:var(--l-greek);font-style:italic;letter-spacing:.02em;font-size:1.05rem;color:var(--l-accent-strong)}
.landing .hero__h1{font-family:var(--l-serif);font-weight:700;font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.15;letter-spacing:-.01em;margin-bottom:1.4rem}
.landing .hero__sub{font-size:1.1rem;color:var(--l-muted);max-width:34rem;margin-bottom:2rem}
.landing .hero__ctas{display:flex;gap:.9rem;flex-wrap:wrap;align-items:center}
.landing .hero__photo{border-radius:16px;border:1px solid var(--l-rule);overflow:hidden;box-shadow:var(--ub-shadow-soft)}
.landing .hero__photo img{width:100%;height:100%;object-fit:cover}

/* memorization signature card */
.landing .mem{background:var(--l-surface);border:1px solid var(--l-rule);border-radius:16px;padding:clamp(1.5rem,3vw,2.25rem);box-shadow:var(--ub-shadow-float)}
.landing .mem__label{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem}
.landing .mem__ref{font-size:.8rem;letter-spacing:.14em;color:var(--l-muted);font-weight:500}
.landing .mem__badge{font-size:.7rem;letter-spacing:.1em;font-weight:600;color:var(--l-accent-strong);background:var(--l-accent-soft);border-radius:999px;padding:.25rem .65rem}
.landing .mem__verse{font-family:var(--l-serif);font-size:clamp(1.3rem,2.4vw,1.7rem);line-height:1.6;color:var(--l-ink)}
.landing .hid{display:inline-block;cursor:pointer;border:0;background:transparent;border-radius:6px;color:var(--l-accent-strong);user-select:none;transition:color .5s ease,background .5s ease;font:inherit;padding:0 .15em;margin:0 -.05em}
.landing-js .landing .hid:not(.on){color:transparent;background:var(--l-accent-soft)}
.landing .hid:hover{background:var(--l-sunken)}
.landing .hid.on:hover{background:var(--l-accent-soft)}
.landing .mem__hint{margin-top:1.1rem;font-size:.82rem;color:var(--l-muted)}
.landing .mem__strip{display:flex;gap:.45rem;margin-top:1.4rem;align-items:center}
.landing .mem__dot{width:.7rem;height:.7rem;border-radius:50%;border:1.5px solid var(--ub-line-strong)}
.landing .mem__dot--done{background:var(--l-accent);border-color:var(--l-accent)}
.landing .mem__dot--today{border-color:var(--l-accent)}
.landing .mem__striplabel{font-size:.72rem;letter-spacing:.12em;color:var(--l-muted);margin-left:.5rem}

/* shared headings */
.landing .h2{font-family:var(--l-serif);font-weight:700;font-size:clamp(1.65rem,3.2vw,2.3rem);line-height:1.25;letter-spacing:-.005em;margin-bottom:.9rem}
.landing .lede{color:var(--l-muted);font-size:1.05rem;max-width:38rem}

/* section banner image (studies / rhythm / community / cta) */
.landing .sec__figure{margin:2rem 0 0;border-radius:16px;overflow:hidden;border:1px solid var(--l-rule);aspect-ratio:16/6}
.landing .sec__figure img{width:100%;height:100%;object-fit:cover}
.landing .night .sec__figure{border-color:var(--l-night-rule)}

/* studies */
.landing .studies{border-top:1px solid var(--l-rule)}
.landing .studies__head{margin-bottom:2.75rem}
.landing .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:2.75rem}
@media(max-width:880px){.landing .cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.landing .cards{grid-template-columns:1fr}}
.landing .card{background:var(--l-surface);border:1px solid var(--l-rule);border-radius:14px;padding:1.5rem;display:flex;flex-direction:column;gap:.8rem;transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease}
.landing .card:hover{border-color:var(--l-accent);transform:translateY(-3px);box-shadow:var(--ub-shadow-float)}
.landing .card__img{border-radius:10px;overflow:hidden;aspect-ratio:16/10;margin:-.35rem -.35rem .3rem}
.landing .card__img img{width:100%;height:100%;object-fit:cover}
.landing .card__meta{display:flex;justify-content:space-between;align-items:center}
.landing .card__days{font-size:.74rem;letter-spacing:.14em;font-weight:600;color:var(--l-accent-strong)}
.landing .card__tier{font-size:.68rem;letter-spacing:.1em;font-weight:600;border-radius:999px;padding:.22rem .6rem}
.landing .card__tier--free{color:var(--l-ink);background:var(--l-sunken)}
.landing .card__tier--premium{color:color-mix(in srgb,var(--l-accent-strong) 80%,#000);background:var(--l-accent-soft)}
.landing .card__title{font-family:var(--l-serif);font-weight:700;font-size:1.25rem;line-height:1.3}
.landing .card__desc{color:var(--l-muted);font-size:.92rem;flex:1}
.landing .card__go{font-size:.85rem;font-weight:600}
.landing .studies__all{margin-top:2.25rem;text-align:center}

/* rhythm */
.landing .rhythm{border-top:1px solid var(--l-rule)}
.landing .rhythm__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,5vw,4.5rem);align-items:center;margin-top:2rem}
@media(max-width:880px){.landing .rhythm__grid{grid-template-columns:1fr}}
.landing .steps{display:flex;flex-direction:column;gap:0}
.landing .step{display:grid;grid-template-columns:2.2rem 1fr;gap:1.1rem;padding-block:1.15rem;border-bottom:1px solid var(--l-rule)}
.landing .step:last-child{border-bottom:0}
.landing .step__glyph{font-family:var(--l-serif);font-size:1.4rem;color:var(--l-accent-strong);line-height:1.3;text-align:center}
.landing .step__name{font-weight:600;margin-bottom:.15rem}
.landing .step__text{color:var(--l-muted);font-size:.93rem}
.landing .grace{background:var(--l-surface);border:1px solid var(--l-rule);border-radius:16px;padding:clamp(1.5rem,3vw,2.25rem)}
.landing .grace__eg{display:inline-block;font-size:.68rem;letter-spacing:.14em;font-weight:600;color:var(--l-muted);border:1px dashed var(--ub-line-strong);border-radius:999px;padding:.15rem .6rem;margin-bottom:1rem}
.landing .grace__flame{display:flex;align-items:baseline;gap:.9rem;margin-bottom:1rem}
.landing .grace__count{font-family:var(--l-serif);font-size:3.2rem;font-weight:700;color:var(--l-accent-strong);line-height:1}
.landing .grace__unit{color:var(--l-muted);font-size:.95rem}
.landing .grace__freeze{display:inline-flex;align-items:center;gap:.4rem;background:var(--l-accent-soft);color:var(--l-accent-strong);border-radius:999px;padding:.3rem .8rem;font-size:.8rem;font-weight:600;margin-bottom:1.1rem}
.landing .grace__line{font-family:var(--l-serif);font-size:1.2rem;line-height:1.5;margin-bottom:.6rem}
.landing .grace__note{color:var(--l-muted);font-size:.9rem}

/* night band (community): dark in every theme on purpose */
.landing .night{background:var(--l-night-bg);color:var(--l-night-ink)}
.landing .night .day__num{color:var(--l-night-accent)}
.landing .night .day__rule{background:var(--l-night-accent)}
.landing .night .day__word{color:var(--l-night-muted)}
.landing .night .h2{color:var(--l-night-ink)}
.landing .night .lede{color:var(--l-night-muted)}
.landing .night__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,5vw,4rem);margin-top:3rem;align-items:start}
@media(max-width:880px){.landing .night__grid{grid-template-columns:1fr}}
.landing .nfeat{display:flex;flex-direction:column;gap:1.6rem}
.landing .nfeat__item{border-left:2px solid var(--l-night-rule);padding-left:1.2rem}
.landing .nfeat__item strong{display:block;color:var(--l-night-ink);margin-bottom:.2rem;font-weight:600}
.landing .nfeat__item span{color:var(--l-night-muted);font-size:.93rem}
.landing .quote{background:var(--l-night-surface);border:1px solid var(--l-night-rule);border-radius:16px;padding:clamp(1.5rem,3vw,2.25rem)}
.landing .quote__mark{font-family:var(--l-serif);font-size:3rem;color:var(--l-night-accent);line-height:.6;margin-bottom:1rem}
.landing .quote__text{font-family:var(--l-serif);font-size:1.2rem;line-height:1.6;font-style:italic;margin-bottom:1.25rem}
.landing .quote__who{color:var(--l-night-muted);font-size:.85rem;letter-spacing:.06em}

/* final CTA */
.landing .fin{text-align:center;border-top:1px solid var(--l-rule)}
.landing .fin .day{justify-content:center}
.landing .fin__h{font-family:var(--l-serif);font-weight:700;font-size:clamp(1.9rem,4vw,2.9rem);line-height:1.2;max-width:22ch;margin:0 auto 1.1rem}
.landing .fin__sub{color:var(--l-muted);max-width:32rem;margin:0 auto 2.25rem;font-size:1.05rem}
.landing .fin__ctas{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap;margin-bottom:2.5rem}
.landing .tiers{display:flex;justify-content:center;gap:2.5rem;flex-wrap:wrap;color:var(--l-muted);font-size:.88rem}
.landing .tiers b{color:var(--l-ink);font-weight:600}
.landing .tiers .prem{color:var(--l-accent-strong)}

/* reveal on scroll. Content is visible by default; it is hidden for the reveal only while
   landing.js is running (the inline script in Landing.cshtml adds .landing-js and removes it again
   if landing.js never loads), so a script failure can't strand sections invisible. */
.landing-js .landing .reveal{opacity:0;transform:translateY(14px);transition:opacity .7s ease,transform .7s ease}
.landing-js .landing .reveal.in{opacity:1;transform:none}
.landing-js .landing .card.reveal{transition:opacity .7s ease,transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.landing-js .landing .card.reveal.in:hover{transform:translateY(-3px)}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .landing-js .landing .reveal,.landing-js .landing .reveal.in{opacity:1;transform:none;transition:none}
  .landing-js .landing .card.reveal.in:hover{transform:none}
  .landing .hid{transition:none}
  .landing .card,.landing .card:hover{transform:none;transition:none}
}

/* hero: ghost Greek word and at-a-glance strip */
.landing .hero{position:relative;overflow:hidden}
.landing .hero__ghost{position:absolute;z-index:2;top:50%;transform:translateY(-50%);right:clamp(1.5rem,6vw,5rem);font-family:var(--l-greek);font-size:clamp(6rem,14vw,11rem);line-height:1;color:var(--l-accent);opacity:.06;pointer-events:none;user-select:none;white-space:nowrap}
.landing .hero__grid{position:relative}
.landing .hero__proof{list-style:none;margin:1.75rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;font-size:.85rem;color:var(--l-muted)}
.landing .hero__proof li::before{content:"";display:inline-block;width:.4rem;height:.4rem;border-radius:50%;background:var(--l-accent);margin-right:.5rem;vertical-align:.1em}

/* steps with their own illustration: glyph | text | picture */
.landing .step--pic{grid-template-columns:2.2rem 1fr 10rem;align-items:center}
.landing .step--pic .step__img{grid-column:3;grid-row:1;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:10px;border:1px solid var(--l-rule);background:var(--l-sunken)}
.landing .step--pic > div{grid-column:2;grid-row:1}
@media(max-width:520px){.landing .step--pic{grid-template-columns:2.2rem 1fr}.landing .step--pic .step__img{grid-column:2;grid-row:2;margin-top:.75rem;max-width:14rem}}

/* The shared footer keeps a gap above it for ordinary pages. On the landing page the last band should
   run straight into the footer, so drop that gap here. (This stylesheet loads only on landing pages;
   this is the one rule that reaches outside .landing, on purpose.) */
body:has(.landing) .ub-footer{margin-top:0}

@media(max-width:880px){.landing .hero__ghost{display:none}}
.landing .hero__photo{aspect-ratio:4/3}

/* community art (right column when there is no quote yet) */
.landing .night__art{margin:0;border-radius:16px;overflow:hidden;border:1px solid var(--l-night-rule)}
.landing .night__art img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

/* softer light tiles on the dark themes (avoids glare from bright illustrations) */
[data-theme="dark"] .landing .card__img img,[data-theme="night"] .landing .card__img img,
[data-theme="dark"] .landing .step__img,[data-theme="night"] .landing .step__img{filter:brightness(.82) saturate(.95)}

/* ghost button: a border you can actually see */
.landing .btn--ghost{border-color:color-mix(in srgb,var(--l-ink) 55%,transparent)}

/* plan summary */
.landing .plansum{background:var(--l-sunken);border-top:1px solid var(--l-rule)}
.landing .plansum__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-top:2.5rem;align-items:stretch}
@media(max-width:700px){.landing .plansum__grid{grid-template-columns:1fr}}
.landing .plansum__card{background:var(--l-surface);border:1px solid var(--l-rule);border-radius:14px;padding:1.75rem;display:flex;flex-direction:column;gap:1.1rem}
.landing .plansum__card--prem{border:2px solid var(--l-accent)}
.landing .plansum__name{font-family:var(--l-serif);font-size:1.4rem}
.landing .plansum__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem;flex:1}
.landing .plansum__list li{padding-left:1.5rem;position:relative}
.landing .plansum__list li::before{content:"";position:absolute;left:.1rem;top:.55em;width:.5rem;height:.5rem;border-radius:50%;background:var(--l-accent)}
.landing .plansum .btn{align-self:flex-start}

/* FAQ (native details, no script) */
.landing .faq__list{max-width:48rem;margin-top:1.5rem;border-bottom:1px solid var(--l-rule)}
.landing .faq details{border-top:1px solid var(--l-rule)}
.landing .faq summary{cursor:pointer;list-style:none;min-height:3.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;font-weight:600;font-size:1.05rem;padding-block:.5rem}
.landing .faq summary::-webkit-details-marker{display:none}
.landing .faq summary::after{content:"+";color:var(--l-accent-strong);font-size:1.5rem;line-height:1;flex:none}
.landing .faq details[open] summary::after{content:"\2212"}
.landing .faq details p{color:var(--l-muted);margin:0 0 1.1rem;max-width:40rem}

/* review round 2 */
.landing .plansum .lede{color:var(--l-ink)}
.landing .card{position:relative}
.landing .card__go::after{content:"";position:absolute;inset:0;border-radius:14px}
.landing .faq summary::after{content:"+" / ""}
.landing .faq details[open] summary::after{content:"\2212" / ""}
@media(min-width:881px) and (max-width:1100px){.landing .step--pic{grid-template-columns:2.2rem 1fr 6.5rem}}

/* plan summary: both cards have an action; FAQ heading in a left rail */
.landing .plansum__card .btn{align-self:flex-start}
.landing .faq__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem 3rem}
.landing .faq__list{margin-top:0;max-width:none}
@media(min-width:881px){.landing .faq__grid{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}}
.landing .night__cta{margin-top:clamp(1.5rem,3vw,2.5rem)}
