/* Landing (/login). One calm screen, scoped to main.landing; colours are the app tokens (app.css). */
body:has(main.landing) { min-height: 100dvh; }
body:has(main.landing) .brand-foot { display: none; }
body:has(main.landing) footer { margin-top: 0; padding: 8px 16px; }

main.landing { max-width: 1040px; padding: 8px 16px; overflow-x: hidden; display: flex; flex-direction: column; justify-content: center; }
main.landing > .error-summary { display: none; }
main.landing h1 { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 10px; text-wrap: balance; }

.lp-screen { display: grid; grid-template-columns: 1fr; gap: 12px; justify-items: center; text-align: center; }
.lp-hero { max-width: 600px; }
.lp-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lp-sub { font-size: 16px; color: var(--muted); margin: 0 0 18px; }
.lp-open { width: auto; min-width: 200px; min-height: 52px; padding: 0 36px; font-size: 17px; }

.lp-art { width: 100%; display: flex; justify-content: center; }
.lp-art svg { height: min(30dvh, 240px); width: auto; max-width: 100%; display: block; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 500; font-size: 14px; }
.lp-steps li { display: flex; align-items: center; gap: 8px; }
.lp-num { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 600; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.lp-steps small { color: var(--muted); font-weight: 400; }

.lp-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 760px; }
.lp-pills li { padding: 5px 12px; border-radius: 999px; font-size: 13px; line-height: 1.3; color: var(--fg); background: var(--mark); }

/* what it does: words separated by thin lines, no boxes */
.lp-smart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.lp-smart li { padding: 8px 2px; font-size: 13px; line-height: 1.35; color: var(--muted); border-bottom: 1px solid var(--line); }
.lp-smart b { display: block; color: var(--fg); font-size: 14px; font-weight: 600; }

.lp-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 20px; padding: 24px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.lp-dialog::backdrop { background: rgba(16, 19, 21, .5); }
.lp-close-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.lp-close-row h2 { margin: 0; font-size: 24px; font-weight: 600; }
.lp-x { width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 26px; font-weight: 300; line-height: 1; cursor: pointer; }
.lp-x:hover { background: var(--soft); color: var(--fg); }
.lp-dialog .btn { margin-top: 4px; min-height: 48px; }
.lp-dialog .meta { margin: 10px 0 0; }

@media (min-width: 720px) {
  main.landing h1 { font-size: 44px; }
  .lp-sub { font-size: 18px; }
  .lp-screen { gap: 16px; }
  .lp-art svg { height: min(34dvh, 300px); }
  .lp-steps { font-size: 15px; gap: 8px 32px; }
  .lp-pills li { font-size: 14px; }
  .lp-smart { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
}
@media (max-height: 700px) { .lp-art svg { height: 22dvh; } }
@media (max-height: 820px) { .lp-eyebrow { display: none; } }
@media (min-width: 1000px) {
  main.landing { max-width: 1280px; padding: 8px 48px; }
  .lp-smart { grid-template-columns: repeat(5, 1fr); }
  .lp-smart li { font-size: 14px; padding: 12px 2px; }
  .lp-pills { max-width: none; }
  .lp-art svg { height: min(32dvh, 300px); }
}
@media (max-width: 719px) { .lp-smart li:nth-child(n+4) { display: none; } }

/* Text wordmark: one line down to 320px, accent colour follows the theme tokens */
.lp-brand { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; color: var(--accent); }
@media (max-width: 360px) { .lp-brand { font-size: 20px; } }
