/* The front page (app/index.html): header bar, hero, category chips,
   banner and footer. How it works has its own file (how-it-works.css).
   Colors and fonts come from styles/tokens.css.
   Two designs: phones follow the owner's iPhone mockup (380 px wide);
   from 900 px wide the desktop mockup takes over (sizes measured at
   1333 px wide). */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body.land-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ---------- Header (lib/site-menu.js): wordmark left, menu right ---------- */
.land-page .site-bar {
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 20px;
}
.land-page .site-bar .menu-button { order: 2; width: 40px; height: 40px; }
.land-page .site-bar-title { font-size: 19px; }
/* The front page's header says "Arizona-local buyer directory" in the
   yellow tag style (index.html's data-site-bar-title). */
.land-page .site-bar-title--custom {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: var(--color-yellow);
}

/* "Buyin'" carries the short yellow underline, as in the wordmark. */
.land-mark,
.land-page .site-bar-mark {
  position: relative;
  display: inline-block;
}
.land-mark::after,
.land-page .site-bar-mark::after {
  content: "";
  position: absolute;
  /* Shorter, and set lower so it doesn't touch the letters (owner,
     2026-10-04). */
  left: 14%;
  right: 30%;
  bottom: -0.26em;
  height: 0.12em;
  min-height: 3px;
  border-radius: 999px;
  background: var(--color-yellow);
}

/* ---------- Hero ---------- */
.land-hero {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 20px 20px;
  display: grid;
  gap: 28px;
  align-items: center;
}
.land-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* The title sizes itself to this column's width (cqi below). */
  container-type: inline-size;
}

.land-title {
  margin-top: 8px;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: clamp(28px, 9vw, 34px);
  /* As big as fits on one line in the text column. */
  font-size: clamp(30px, 12.6cqi, 80px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--color-blue-dark);
}
.land-tagline {
  /* Tucked under the title; the underline sits further right, under
     "Buyin'", so they don't meet. */
  margin-top: 2px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-orange);
}
.land-pitch {
  margin-top: 22px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  color: var(--color-blue-dark);
}
.land-pitch-line { display: block; }
/* The plain line under the pitch. */
.land-sub {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* The search box: opens the directory with the search filled in. */
.land-search {
  position: relative;
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(47, 72, 88, 0.08);
}
.land-search:focus-within { border-color: var(--color-blue); }
.land-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--color-blue-dark);
  pointer-events: none;
}
.land-search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 10px 0 42px;
  border: none;
  border-radius: 6px 0 0 6px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.land-search-input::placeholder { color: var(--ink-muted); font-size: 13px; }
.land-search-input:focus { outline: none; }
/* A square button inside the bar's border, with white space all round. */
.land-search-go {
  flex: none;
  align-self: center;
  width: 38px;
  height: 38px;
  margin: 0 4px;
  border: none;
  border-radius: 5px;
  background: var(--color-blue);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.land-search-go svg { width: 19px; height: 19px; }
.land-search-go:hover { background: var(--color-blue-dark); }
.land-search-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Just Browsing (cyan) and + Create a Session (outlined). */
.land-entry {
  width: 100%;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.land-btn {
  appearance: none;
  min-height: 47px;
  padding: 0 16px;
  border: 1.5px solid var(--color-blue);
  border-radius: 5px;
  background: var(--paper);
  color: var(--color-blue-dark);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}
.land-btn:hover { background: var(--surface-hover); }
.land-btn:active { transform: translateY(1px); }
.land-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.land-btn--primary {
  background: var(--color-cyan);
  border-color: var(--color-cyan-dark);
  box-shadow: 0 6px 18px rgba(85, 221, 224, 0.3);
}
.land-btn--primary:hover { background: var(--color-cyan-dark); }

.land-recover {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.land-hero-art {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  justify-self: center;
}

/* ---------- Slot machine (opened by + Create a Session) and status ---------- */
#machine-wrap { display: none; padding: 8px 20px 32px; }
#machine-wrap.is-open { display: block; animation: land-rise 0.5s ease both; }
@keyframes land-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.landing-status {
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 0 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-orange);
}

/* ---------- Category chips: a sideways row on phones ---------- */
.land-cats {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 0 36px;
}
.land-cats-title {
  padding: 0 20px 12px;
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-blue-dark);
}
.land-chips {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 2px 20px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.land-chips::-webkit-scrollbar { display: none; }
.land-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 12px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 7px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-blue-dark);
}
.land-chip img { flex: none; width: 18px; height: 18px; }
.land-chip:hover { border-color: var(--color-blue); }
.land-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Banner ---------- */
.land-banner {
  max-width: 1236px;
  margin: 28px 20px;
  padding: 22px 18px;
  border-radius: 12px;
  background: var(--color-cyan);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 12px;
  align-items: center;
}
.land-banner-icon { width: 34px; height: auto; align-self: start; }
.land-banner-title {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
  color: var(--color-blue-dark);
}
.land-banner-text { margin-top: 4px; font-size: 16px; color: var(--ink); }
.land-banner-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 5px;
  background: var(--color-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.land-banner-btn:hover { background: var(--color-blue-dark); }

/* ---------- Footer ---------- */
.land-footer {
  max-width: 1236px;
  margin: 0 20px;
  padding: 20px 0 32px;
  border-top: 1.5px solid var(--color-yellow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.land-wordmark {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  color: var(--color-blue-dark);
}
.land-footer-links { display: none; gap: 32px; }
.land-footer-links a { font-size: 18px; text-decoration: none; color: var(--color-blue); }
.land-footer-links a:hover { text-decoration: underline; }
.land-footer-tag { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-soft); }

/* ---------- Tablets: buttons side by side, banner in a row ---------- */
@media (min-width: 600px) {
  .land-entry { grid-template-columns: 1fr 1fr; }
  .land-banner { grid-template-columns: auto 1fr auto; padding: 24px 28px; }
  .land-banner-icon { width: 40px; align-self: center; }
  .land-banner-btn { grid-column: auto; }
}

/* ---------- Desktop: the desktop mockup ---------- */
@media (min-width: 900px) {
  .land-page .site-bar { min-height: 86px; padding: 12px 48px; }
  .land-page .site-bar-title { font-size: 28px; }

  .land-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 60px 48px 40px; }
  .land-page .site-bar-title--custom { font-size: 16px; letter-spacing: 0.25em; }
  .land-title { margin-top: 14px; }
  .land-tagline { margin-top: 4px; font-size: 22px; }
  .land-pitch { margin-top: 44px; font-size: clamp(18px, 1.85vw, 24px); }
  .land-pitch-line { display: inline; white-space: nowrap; }
  .land-sub { margin-top: 9px; font-size: 18px; }

  .land-search { margin-top: 34px; border-radius: 8px; }
  .land-search-icon { left: 22px; width: 26px; height: 26px; margin-top: -13px; }
  .land-search-input { min-height: 76px; padding-left: 64px; font-size: 20px; }
  .land-search-input::placeholder { font-size: 20px; }
  .land-search-go { width: 62px; height: 62px; margin: 0 7px; border-radius: 6px; }
  .land-search-go svg { width: 27px; height: 27px; }

  .land-entry { margin-top: 40px; gap: 18px; }
  .land-btn { min-height: 70px; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: 0.1em; border-width: 2px; }
  .land-recover { margin-top: 44px; font-size: 21px; }

  .land-cats { padding: 24px 36px 50px; }
  .land-cats-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .land-chips { flex-wrap: wrap; gap: 10px; padding: 2px 0 6px; overflow: visible; }
  .land-chips li { flex: 1 1 auto; }
  .land-chip { width: 100%; justify-content: center; min-height: 66px; padding: 0 12px; gap: 10px; border-radius: 10px; font-size: clamp(12px, 1.15vw, 16px); font-weight: 500; }
  .land-chip img { width: clamp(24px, 2.6vw, 36px); height: auto; }

  .land-banner { margin: 28px 48px; padding: 30px 30px 30px 34px; gap: 24px 48px; border-radius: 14px; }
  .land-banner-icon { width: 60px; }
  .land-banner-title { font-size: clamp(24px, 2.5vw, 36px); }
  .land-banner-text { margin-top: 6px; font-size: 24px; }
  .land-banner-btn { min-height: 70px; padding: 0 26px; font-size: 23px; font-weight: 600; }

  .land-footer { margin: 0 48px; padding: 28px 0 44px; border-top-width: 2px; }
  .land-wordmark { font-size: 28px; }
  .land-footer-links { display: flex; }
  .land-footer-tag { font-size: 17px; letter-spacing: 0.1em; }
}
@media (min-width: 1332px) {
  .land-banner,
  .land-footer { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #machine-wrap.is-open { animation: none; }
}

/* Under the categories: centered, the pitch's size (owner, 2026-10-08). */
.land-blackbook { padding: 0 20px; text-align: center; }
