/* The landing page, at / for anyone signed out. Loaded after app.css, which it
   leans on for the palette, the buttons and the board's own card styles; every
   rule here is scoped under #landing. */

#landing {
  min-height: 100vh;
  background:
    radial-gradient(60% 520px at 50% 0%, rgba(224,163,85,.10), rgba(224,163,85,0) 70%),
    var(--ground);
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
#landing .wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
#landing a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
#landing .btn.big { min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: 14px; }
#landing h2 { margin: 0 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
#landing h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
#landing p { margin: 0; }

/* ---- the top line: the mark, and the two ways in ---- */
#landing .lnav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#landing .lnavend { display: flex; align-items: center; gap: 16px; }
#landing .lsignin { font-size: 13px; color: var(--muted); text-decoration: none; }
#landing .lsignin:hover { color: var(--ink); }

/* ---- the hero ---- */
#landing .lhero { text-align: center; padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
#landing .lbadges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#landing .lbadge {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 14px;
  border: 1px solid var(--line3); font-size: 12px; color: var(--muted);
}
#landing .lbadge .k { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(224,163,85,.7); }
#landing .lhero h1 {
  margin: 0; max-width: 14ch; font-size: clamp(36px, 7vw, 60px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe4ec 55%, #aab3c0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#landing .ltag { max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
#landing .lcta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#landing .lnote { max-width: 30em; font-size: 12.5px; color: var(--faint); text-wrap: pretty; }

/* ---- the light: first run's sun on the board picture's top edge (landing.js) ----
   The canvas sits behind everything, takes no clicks, and fades in once it has drawn. */
#landing .lscene { position: relative; }
#landing .lsky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .9s ease; }
#landing .lscene.lit .lsky { opacity: 1; }
#landing .lhero, #landing .lstill { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #landing .lsky { transition: none; } }

/* ---- the board picture: the real card styles and all five columns, fewer when narrow ---- */
#landing .lstill { margin-block: 112px 72px; max-width: 1240px; }
#landing .lframe {
  border: 1px solid var(--line3); border-radius: 14px; overflow: hidden; background: var(--ground);
  box-shadow: 0 -24px 80px rgba(224,163,85,.07), 0 30px 80px rgba(0,0,0,.55);
}
#landing .lbartext { font-size: 12px; color: var(--muted); }
#landing .lcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 20px; align-items: start; }
#landing .lcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#landing .lsum { font-size: 11px; color: var(--dim); }
#landing .lsum.warm { color: var(--amber); font-weight: 500; }
#landing figcaption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--faint); }

/* ---- how it works, why it was built, what it is ---- */
#landing .lhow, #landing .lwhy, #landing .lis { margin-bottom: 64px; }
#landing .lsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#landing .lsteps li, #landing .lpillars > div {
  background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 18px 18px 20px;
}
#landing .lsteps p, #landing .lpillars p, #landing .lfacts dd { font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
#landing .lnum {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 12px;
  border-radius: 50%; border: 1px solid rgba(224,163,85,.5); color: var(--amber-2); font-size: 12px;
}
#landing .lmore { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 46em; }
#landing .lintro { max-width: 46em; margin-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
/* the headings and plain paragraphs are centred; cards and the list of facts stay left-aligned */
#landing .lhow > h2, #landing .lwhy > h2, #landing .lis > h2 { text-align: center; }
#landing .lmore, #landing .lintro { margin-inline: auto; text-align: center; text-wrap: pretty; }
#landing .lpillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#landing .lfacts { margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 14px 24px; }
#landing .lfacts dt { font-size: 15px; font-weight: 500; color: var(--ink); }
#landing .lfacts dd { margin: 0; }

#landing .lend { text-align: center; padding-top: 24px; border-top: 1px solid var(--line2); display: flex; flex-direction: column; align-items: center; gap: 18px; }
#landing .lend h2 { margin: 0; }

/* ---- narrower screens: To-do and In progress, then In progress alone; everything else stacks ---- */
@media (max-width: 900px) {
  #landing .lcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #landing .lcol:nth-child(1), #landing .lcol:nth-child(2), #landing .lcol:nth-child(5) { display: none; }
  #landing .lsteps, #landing .lpillars { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #landing .lhero { padding-top: 24px; }
  #landing .lcols { grid-template-columns: 1fr; }
  #landing .lcol:nth-child(3) { display: none; }
  #landing .lfacts { grid-template-columns: 1fr; gap: 4px; }
  #landing .lfacts dd { margin-bottom: 12px; }
  #landing .lnavend .btn { display: none; }   /* the hero's button is right below */
}
