/* The pages a stranger sees: the desk, with the same sheets as the app. */

.public { max-width: var(--content-w); margin-inline: auto; padding: 20px clamp(16px, 4vw, 40px) 40px; }
.public-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 36px; }
.public-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.public-nav > a { color: var(--ink); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

.public-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: start; padding-bottom: 56px; }
.public-pitch { padding-top: 24px; }
/* The landing page's first screen: the bar, then the slogan and Sign in centred in all the height that is left. */
.landing-first { display: flex; flex-direction: column; min-height: calc(100svh - 20px); margin-bottom: 32px; }
.landing-first .public-top { padding-bottom: 16px; }
.landing-first .public-hero { flex: 1; align-items: center; justify-content: center; padding-bottom: 16px;
  grid-template-columns: minmax(0, 620px) minmax(0, 460px); gap: clamp(40px, 6vw, 96px); }
.landing-first .public-pitch { padding-top: 0; }
.landing-more { align-self: center; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); font-weight: 600; text-decoration: none; }
.landing-more:hover { color: var(--ink); }
/* No title on this card: its header stays blank, so the form still starts below the red rule. */
#sign-in { padding-top: calc(3 * var(--line)); }
#inside { scroll-margin-top: 16px; }
html:has(.landing-first) { scroll-behavior: smooth; }
/* A short screen: the pitch beside the card already offers the free account, so the card drops its own. */
@media (max-height: 800px) and (min-width: 901px) { .landing-first .public-top { padding-bottom: 4px; } #sign-in > .or, #sign-in > #alt-link { display: none; } }
@media (prefers-reduced-motion: reduce) { html:has(.landing-first) { scroll-behavior: auto; } }
.public-lede { font: 400 var(--t-l)/1.55 var(--serif); max-width: 52ch; margin: 0 0 26px; color: var(--ink-2); }

.landing-login { --line: 32px; --card-w: 460px; --margin-x: 64px; justify-self: end; width: min(100%, var(--card-w)); scroll-margin-top: 24px; }
.public-shot.for-dark { display: none; }
:root[data-theme="dark"] .public-shot.for-dark { display: block; }
:root[data-theme="dark"] .public-shot.for-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .public-shot.for-dark { display: block; }
  :root:not([data-theme]) .public-shot.for-light { display: none; }
}

.public-section { margin-bottom: 40px; }
.public-section h1 { font: 600 var(--t-3xl)/1.15 var(--serif); margin: 0 0 12px; }
.public-section h2 { margin: 28px 0 12px; }
.sheet.public-section h2, .sheet.public-section h3, .sheet.public-section h4 { font-family: var(--serif); }
.sheet.public-section > h2:first-child { margin-top: 0; }
.public-counts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 24px; padding: 0; font: 600 var(--t-xl)/1.3 var(--serif); }
.public-shot { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--r-s); }

.plan-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 40px; margin: 8px 0 24px; }
.plan-benefits h2 { margin: 12px 0 8px; font-family: var(--serif); }
.plan-benefits ul { margin: 0; padding: 0; list-style: none; }
.plan-benefits li { padding: 7px 0; border-top: 1px solid var(--rule); }
.public .pricing-offers { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 8px 0 24px; }
.public .pricing-offer h2 { margin: 0 0 4px; }
.public .pricing-price { font: 600 var(--t-2xl)/1.2 var(--serif); margin: 0 0 12px; }
.public .pricing-price small { font-size: var(--t-s); font-weight: 400; font-family: var(--font); color: var(--muted); }

.public-foot { color: var(--muted); font-size: var(--t-s); padding-top: 12px; }
.public-foot p { margin: 0 0 6px; }

@media (max-width: 900px) {
  .public-hero, .landing-first .public-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .landing-first { min-height: 0; }
  .public-pitch { padding-top: 0; }
  .landing-login { justify-self: center; }
  .public-pitch h1 { font-size: var(--t-3xl); }
}
