/* The entrance tells nothing about the product (owner 29.10: people read the long page, got lost and left): the wordmark,
   the flags, the two doors and the legal links. Who it is for and how it works, the person learns inside. */
.landing { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg-raised); }
.land-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: calc(var(--header) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0; background: var(--glass-strong); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-bottom: 1px solid transparent; transition: border-color var(--t-med); }
.land-nav.is-scrolled { border-bottom-color: var(--line); }
.land-nav .wordmark { font-size: 24px; }
.land-main { flex: 1; display: grid; align-content: center; }

/* The door: flags on top, then the two sides, then one line for a person without an invite. Centred, one column. */
.door { display: grid; justify-items: center; gap: 22px; width: min(100%, 560px); margin: 0 auto; padding: 40px var(--gutter) 56px; text-align: center; animation: rise var(--t-slow) var(--ease) both; }
.door .lang-picker { justify-content: center; margin: 0; }
.door .entry-choice { width: 100%; }
.door .entry-invite { max-width: 30em; }

/* auth state and access form */
.auth-state { display: grid; justify-items: center; gap: 12px; padding: 0 var(--gutter); }
#auth-error:not([hidden]), #auth-logout:not([hidden]) { margin-top: 36px; }
#auth-loading { margin: 22vh 0; font-size: 13px; font-weight: 600; color: var(--ink-3); animation: fade 1s .4s both; }
.access-form { width: min(100%, 400px); display: grid; gap: 12px; padding: 28px 24px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); animation: rise var(--t-slow) var(--ease) both; }
.access-form h1 { font-size: 26px; margin: 10px 0 0; }
.access-form p { margin: 0 0 6px; }
.business-saved-requests { display: grid; gap: 8px; margin-top: 32px; }

/* Section titles and the White Mirror room are drawn inside the app (credits, the White Mirror page). */
.section-title { font-size: clamp(26px, 6.8vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 20px; }
.wm-room .section-title { margin: 12px 0 8px; }
.wm-room .lede { margin: 0 0 8px; }
.wm-room .wm-jobs > * { --i: 0; }
.wm-room .wm-jobs > *:nth-child(2) { --i: 1; }
.wm-room .wm-jobs > *:nth-child(3) { --i: 2; }
.wm-room > .fine { margin: 20px 0 0; }

.land-footer { display: grid; gap: 12px; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 2px solid var(--red); background: var(--bg-raised); font-size: 14px; }
.land-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.land-footer a { color: var(--ink-2); }

@media (min-width: 900px) {
  .land-nav .wordmark { font-size: 30px; }
  .section-title { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 28px; }
  .land-footer { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .land-footer nav { justify-content: flex-end; }
  /* At 1440 the top bar and the footer line up with the page instead of running to the screen edges. */
  .land-nav, .land-footer { padding-inline: max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter))); }
}

/* The two doors, one per side. They stack on a phone so each label stays on one line, and stand side by side from 560px. */
.entry-choice { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 480px; }
.entry-choice > * { min-height: 50px; padding: 0 18px; font-size: 16px; border-radius: var(--pill); text-align: center; text-decoration: none; }
@media (min-width: 560px) { .entry-choice { grid-template-columns: auto auto; justify-content: center; } .entry-choice > * { padding: 0 24px; } }
/* No invite yet: the way in is one line under the doors, not a dead end. The request opens as a dialog. */
.entry-invite { margin: 0; }
.entry-request { display: inline; min-height: 0; margin: -4px 0; padding: 4px 0; border: 0; border-radius: 2px; background: none; box-shadow: none; color: var(--ink); font-size: inherit; font-weight: 600; line-height: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .entry-request:hover:not(:disabled) { border: 0; color: var(--red-dark); } }
.entry-sent { display: grid; gap: 8px; padding: 8px 0 12px; }
.entry-sent h3 { margin: 0; font-size: 18px; outline: none; }
.entry-sent p { margin: 0; }
/* The side tabs of the dialogs carry whole words, so a long one may take two lines. */
.entry-sides button { padding: 6px 8px; line-height: 1.2; }
