/*!
 * © Rapid Surveys Pty Ltd. All rights reserved.
 * Landing host styles. Theme variables only — no hardcoded colours/fonts.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rs-color-bg);
  color: var(--rs-color-text);
  font-family: var(--rs-font-sans);
  font-size: var(--rs-text-base);
  line-height: var(--rs-line-base);
}

a { color: var(--rs-color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header -------------------------------------------------------- */
.rs-header {
  background: var(--rs-color-surface);
  border-bottom: 1px solid var(--rs-color-border);
  height: var(--rs-header-height);
  position: sticky;
  top: 0;
  z-index: 10;
}
.rs-header__inner {
  max-width: var(--rs-container-max);
  margin: 0 auto;
  padding: 0 var(--rs-space-5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rs-brand {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-semi);
  font-size: var(--rs-text-lg);
  letter-spacing: 0.2px;
}
.rs-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--rs-radius-md);
  background: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  letter-spacing: 0.5px;
}
.rs-brand__tag {
  color: var(--rs-color-accent-gold);
  font-weight: var(--rs-weight-semi);
  margin-left: var(--rs-space-1);
}

/* --- Main ---------------------------------------------------------- */
.rs-main {
  max-width: var(--rs-container-max);
  margin: 0 auto;
  padding: var(--rs-space-7) var(--rs-space-5);
}

.rs-hero { margin-bottom: var(--rs-space-7); }
.rs-hero__title {
  font-size: var(--rs-text-3xl);
  font-weight: var(--rs-weight-semi);
  line-height: var(--rs-line-tight);
  margin: 0 0 var(--rs-space-3) 0;
}
.rs-hero__lede {
  font-size: var(--rs-text-lg);
  color: var(--rs-color-text-muted);
  max-width: 64ch;
  margin: 0;
}

.rs-section-title {
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-semi);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--rs-color-text-soft);
  margin: 0 0 var(--rs-space-4) 0;
}

/* --- Tool tiles ---------------------------------------------------- */
.rs-tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--rs-space-4);
}
.rs-tile {
  background: var(--rs-color-surface);
  border: 1px solid var(--rs-color-border);
  border-radius: var(--rs-radius-lg);
  padding: var(--rs-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-2);
  box-shadow: var(--rs-shadow-sm);
  transition: box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.rs-tile[data-status="ready"]:hover {
  box-shadow: var(--rs-shadow-md);
  border-color: var(--rs-color-primary);
  transform: translateY(-1px);
  cursor: pointer;
}
.rs-tile[data-status="planned"] {
  background: var(--rs-color-surface-alt);
  border-style: dashed;
  color: var(--rs-color-text-muted);
}
.rs-tile__title {
  font-size: var(--rs-text-lg);
  font-weight: var(--rs-weight-semi);
  margin: 0;
}
.rs-tile__desc {
  font-size: var(--rs-text-sm);
  color: var(--rs-color-text-muted);
  margin: 0;
}
.rs-tile__badge {
  align-self: flex-start;
  font-size: var(--rs-text-xs);
  font-weight: var(--rs-weight-semi);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: var(--rs-space-1) var(--rs-space-2);
  border-radius: var(--rs-radius-pill);
  background: var(--rs-color-surface-alt);
  color: var(--rs-color-text-soft);
}
.rs-tile[data-status="ready"] .rs-tile__badge {
  background: var(--rs-color-primary);
  color: var(--rs-color-primary-ink);
}

/* --- Footer -------------------------------------------------------- */
.rs-footer {
  border-top: 1px solid var(--rs-color-border);
  padding: var(--rs-space-5) 0;
  margin-top: var(--rs-space-8);
  background: var(--rs-color-surface);
}
.rs-footer__inner {
  max-width: var(--rs-container-max);
  margin: 0 auto;
  padding: 0 var(--rs-space-5);
  font-size: var(--rs-text-sm);
  color: var(--rs-color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--rs-space-2);
}
.rs-footer__sep { opacity: 0.5; }
.rs-footer__env { font-family: var(--rs-font-mono); font-size: var(--rs-text-xs); }
