/* Oqolo landing. Colors, type and spacing come from base.css, the app's design tokens,
   which build.sh copies in from web/src/styles. Only page layout lives here. */

html { background: var(--surface-secondary); }
body { margin: 0; background: var(--surface-secondary); }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: max(var(--space-16), env(safe-area-inset-left)); padding-right: max(var(--space-16), env(safe-area-inset-right)); }

.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: var(--type-h3); letter-spacing: var(--tracking-h3); }
.link-cta { font: var(--type-body-m-med); color: var(--interaction-fill-primary); text-decoration: none; }
.link-cta:hover { text-decoration: underline; }

.lead { font: var(--type-body-l); line-height: 24px; color: var(--text-secondary); max-width: 560px; }
.note { font: var(--type-body-s); color: var(--text-secondary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 var(--space-24); border-radius: var(--radius-pill);
  background: var(--interaction-fill-primary); color: var(--interaction-text-primary);
  font: var(--type-body-l-bold); text-decoration: none; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, .link-cta:focus-visible { outline: 2px solid var(--interaction-fill-primary); outline-offset: 3px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-32); padding-top: var(--space-32); padding-bottom: 64px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.hero-title { font-size: 56px; line-height: 54px; letter-spacing: -1.2px; max-width: 600px; }
.hero-illu { width: 300px; height: auto; mix-blend-mode: multiply; }

/* sections */
.block { display: flex; flex-direction: column; gap: var(--space-32); padding-top: 64px; padding-bottom: 64px; border-top: .5px solid var(--divider); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-16); }
.step { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-24); background: var(--surface-primary); border-radius: var(--radius-l); }
.step p, .facts p { font: var(--type-body-m); line-height: 21px; color: var(--text-secondary); }
.step-num {
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--space-8);
  border-radius: var(--radius-pill); background: var(--interaction-fill-tint-primary);
  font: var(--type-body-m-bold); color: var(--interaction-fill-primary);
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-32) var(--space-32); max-width: 880px; }
.facts li { display: flex; flex-direction: column; gap: var(--space-8); }

/* demo: the printed table card and the match screen, drawn from tokens; no real people */
.demo { display: flex; justify-content: center; align-items: center; gap: var(--space-32); flex-wrap: wrap; padding: var(--space-32) var(--space-16); background: var(--surface-muted); border-radius: var(--radius-l); }
.tent { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); width: 220px; padding: var(--space-24); background: var(--surface-primary); border-radius: var(--radius-l); box-shadow: var(--shadow-soft); text-align: center; }
.tent-logo { font: var(--type-body-l-bold); }
.tent-qr { width: 132px; height: 132px; color: var(--text-primary); }
.tent-text { font: var(--type-body-s-med); color: var(--text-secondary); }
.match { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); width: 260px; padding: var(--space-32) var(--space-24) var(--space-24); background: var(--surface-primary); border-radius: var(--radius-l); box-shadow: var(--shadow-soft); text-align: center; }
.match-faces { display: flex; margin-bottom: var(--space-8); }
.face { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-pill); border: 3px solid var(--surface-primary); font: var(--type-h3); color: var(--text-on-inverse-primary); }
.face-a { background: var(--interaction-fill-secondary); }
.face-b { background: var(--tag-host); margin-left: -12px; }
.match-sub { font: var(--type-body-s); color: var(--text-secondary); }
.match-btn { margin-top: var(--space-16); align-self: stretch; padding: 14px 0; border-radius: var(--radius-pill); background: var(--interaction-fill-primary); color: var(--interaction-text-primary); font: var(--type-body-m-bold); }

.final { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); padding-top: 64px; padding-bottom: 64px; border-top: .5px solid var(--divider); }

.foot { padding-top: var(--space-24); padding-bottom: max(var(--space-32), env(safe-area-inset-bottom)); font: var(--type-body-s); color: var(--text-secondary); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-bottom: var(--space-32); }
  .hero-illu { order: -1; width: 180px; }
  .hero-title { font: var(--type-h1); letter-spacing: var(--tracking-h1); }
  .block, .final { padding-top: 48px; padding-bottom: 48px; }
  .steps, .facts { grid-template-columns: 1fr; gap: var(--space-16); }
  .facts { gap: var(--space-24); }
  .btn { align-self: stretch; }
}
