/* The landing page (index.html, visitors) and the legal page. Colours, font and the example card come from styles.css. */
.enter { color: var(--brand); font-weight: 600; text-decoration: none; padding: 6px 0; }
body.on-landing main { max-width: 960px; padding: 24px 16px 48px; }
body.on-landing #help { display: none; }
#enter { width: auto; min-height: 36px; margin: 0 0 0 auto; padding: 4px 16px; }
.hero { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; }
.hero > div, .hero figure { min-width: 0; margin: 0; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
.landing h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 44ch; margin: 0 0 16px; }
.tag { display: inline-block; margin: 0 0 10px; padding: 2px 8px; border: 1px solid var(--brand); border-radius: 4px; color: var(--brand); font-size: .875rem; font-weight: 600; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; }
.demo { max-width: 360px; margin: 0 auto; }
.demo li p.advice { margin-bottom: 4px; }
figcaption { text-align: center; margin-top: 8px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-content: start; padding: 12px; }
.steps .icon { grid-row: span 2; width: 32px; height: 32px; color: var(--brand); }
.steps span { color: var(--muted); }
.facts { gap: 0; }
.facts li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; }
button.cta { width: auto; margin: 0; border: 0; }
.trap { position: absolute; left: -9999px; }
/* the way in: one narrow card, centred */
#entry { max-width: 360px; margin: 24px auto 0; }
.entry-card { padding: 24px 20px; text-align: center; }
.entry-card h1 { font-size: 1.5rem; }
.entry-card a { color: var(--brand); }
/* styles.css keeps the visitor column narrow on wide screens; the landing page uses the whole width */
body.on-landing #visitor { max-width: none; }
.landing a { color: var(--brand); }
/* styles.css sizes every visitor button on wide screens (#visitor button): links and the entry cards undo it */
#visitor button.link { min-width: 0; margin: 0; padding: 0; }
#visitor .entry-card button.link { width: fit-content; margin: 8px auto 0; }
#visitor #entry-back { margin: 0 auto; }
#visitor .entry-card button:not(.link) { display: flex; width: 100%; margin-right: 0; }
#visitor #entry-back { display: flex; width: fit-content; }
#visitor .demo button.card-btn { min-width: 52px; margin: 0; padding-inline: 12px; }

/* what is done with the data, and the waiting list: one under the other on a phone, side by side on a wide screen */
.closing { display: grid; gap: 0 48px; align-items: start; }
.closing > * { min-width: 0; }
.landing .closing h2 { margin-top: 40px; }
#waitlist { margin: 40px 0 0; padding: 20px; }
.landing #waitlist h2 { margin-top: 0; }

/* page footer: the whole width, its content in line with the page */
#site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 20px 16px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; max-width: 928px; margin: 0 auto; }
.footer-row nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-row a { color: var(--brand); }
#site-footer .install-open { display: inline-flex; width: auto; margin: 0; }
body.on-landing main { padding-bottom: 56px; }

@media (min-width: 900px) {
  .closing { grid-template-columns: 1fr 1fr; }
  /* the example card ends where the page ends */
  .hero figure { justify-self: end; width: min(100%, 420px); }
  .demo { max-width: none; }
  /* header, page and footer share the same edges */
  body.on-landing header { padding-inline: max(24px, calc((100% - 928px) / 2)); }
  body.on-landing main { padding-inline: max(16px, calc((100% - 928px) / 2)); max-width: none; }
}

/* the legal page: running text with air between its parts, and plain bulleted lists (not the app's cards) */
.legal { padding-bottom: 48px; }
.legal h1 { font-size: 1.7rem; margin: 24px 0 0; }
.legal h1 ~ h1 { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h2 { margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { display: block; list-style: disc; margin: 0 0 12px; padding-left: 20px; }
.legal li { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 6px; }
.legal a { color: var(--brand); }
