/* The front door (src/lander/page.js, docs/front-door.md F8--F13): one line
   over two doors, renters on the left and landlords on the right, stacked
   renters-first on a phone. Tokens from /brand/tokens.css, buttons and the
   top bar from brand.css; this file lays the page out. Charcoal on white with
   mint as the one accent (design/brand-book.md, Color); no purple -- nothing
   here is insurance. */
:root { --column: 66rem; }
.page { max-width: var(--column); margin: 0 auto; padding: var(--space-8) var(--space-4) var(--space-8); }

/* --- The line over both doors (F11) -------------------------------------- */

.lander-line {
  margin: 0 0 var(--space-6);
  font: 700 30px/36px var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--charcoal);
  text-wrap: balance;
}
/* Mint marks what is verified and what is landlord.org's: here, the owner. */
.lander-line .mark {
  background: linear-gradient(transparent 58%, var(--mint) 58%, var(--mint) 92%, transparent 92%);
  padding: 0 2px;
  margin: 0 -2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- The two doors (F9, F10) --------------------------------------------- */

.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.door {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-6) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
/* The landlords' door is a verification block: mint-soft, its quiet ground. */
.door-landlords { background: var(--mint-soft); }

.door-tag {
  align-self: flex-start;
  margin: 0 0 var(--space-4);
  padding: 4px 10px;
  font: 600 12px/16px var(--font-sans);
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.door-landlords .door-tag { background: var(--mint); border-color: var(--mint); }

.door h2 {
  margin: 0 0 var(--space-3);
  font: 700 24px/30px var(--font-sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.door-lede { margin: 0 0 var(--space-6); color: var(--ink-muted); }

/* The renters' check: a plain GET form to the app's /check?q=…. */
.door-check { margin: 0 0 var(--space-8); }
.door-check label { display: block; margin: 0 0 var(--space-2); font: 600 14px/20px var(--font-sans); }
.door-field { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.door-field input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  font: 400 16px/24px var(--font-sans); /* 16px, so iOS does not zoom */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.door-field input::placeholder { color: var(--ink-muted); opacity: 1; }
.door-field input:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 1px; border-color: var(--charcoal); }
.door-field .button { flex: 1 0 auto; min-height: 48px; padding-inline: var(--space-6); }

.door-start { margin: 0 0 var(--space-3); }
.door-start .button { min-height: 48px; padding-inline: var(--space-6); }
.door-aside { margin: 0 0 var(--space-8); color: var(--ink-muted); font: 400 14px/20px var(--font-sans); }
.door-aside a { color: var(--ink); font-weight: 600; }

/* What a renter sees; how a landlord gets there. Same rhythm on both sides,
   pushed to the foot of the door so the two lists line up. */
.door-list {
  list-style: none;
  margin: auto 0 0; /* to the foot of the door */
  padding: var(--space-2) 0 0;
  border-top: 1px solid var(--line);
}
.door-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.door-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.door-list strong { font: 600 15px/22px var(--font-sans); }
.door-list span { color: var(--ink-muted); font: 400 14px/20px var(--font-sans); }

.door-steps { counter-reset: step; }
.door-steps li { counter-increment: step; grid-template-columns: 28px 1fr; column-gap: var(--space-3); }
.door-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font: 600 13px/1 var(--font-sans);
  color: var(--charcoal);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.door-landlords .door-list, .door-landlords .door-list li { border-color: rgb(59 59 59 / 0.12); }
/* Mint on mint-soft needs an edge to read as a button. */
.door-landlords .door-start .button { border-color: rgb(59 59 59 / 0.22); }

/* --- Footer --------------------------------------------------------------- */

.lander-foot { max-width: var(--column); margin: 0 auto; padding: 0 var(--space-4) var(--space-12); }
.lander-links { display: flex; gap: var(--space-4); margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* --- Wider screens: the doors side by side ------------------------------- */

@media (min-width: 30rem) {
  .door-field .button { flex: 0 0 auto; }
}
@media (min-width: 48rem) {
  .page { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .lander-line { margin-bottom: var(--space-8); font-size: 40px; line-height: 46px; }
  .door { padding: var(--space-8); }
  .door h2 { font-size: 28px; line-height: 34px; }
}
@media (min-width: 56rem) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
}
