/* ===========================================================
   Landscape OS — customer IA shells (Phase 01)
   Uses semantic token aliases from tokens.css. Does not restyle
   the storefront with RINADS purple. Campaign chrome stays in onam.css.
   =========================================================== */

.os-page {
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  max-width: 100%;
}

.os-page a:focus-visible,
.os-page button:focus-visible,
.os-page input:focus-visible,
.os-page select:focus-visible,
.os-page textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.os-hero {
  padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(176, 138, 60, 0.12), transparent 60%),
    var(--surface-muted);
}

.os-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.os-hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  line-height: 0.98;
  margin: 10px 0 12px;
  color: var(--primary);
  max-width: 16ch;
}

.os-hero__lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 42ch;
  line-height: 1.5;
}

.os-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}

.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 44px;
}

.os-section {
  padding: clamp(28px, 4vw, 48px) 0;
}

.os-section--muted {
  background: var(--surface-muted);
}

.os-section--compact {
  padding: 18px 0;
}

.os-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.os-page-header {
  margin-bottom: 22px;
}

.os-page-header h1 {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.1;
  margin: 6px 0 8px;
}

.os-page-header p {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.5;
}

.os-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.os-section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 4px 0 0;
}

.os-need-grid,
.os-cat-grid,
.os-svc-grid,
.os-inspire-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.os-need-card,
.os-cat-card,
.os-svc-card,
.os-inspire-card,
.os-metric,
.os-project-card,
.os-learn-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  color: inherit;
  min-width: 0;
}

.os-need-card:hover,
.os-cat-card:hover,
.os-svc-card:hover,
.os-inspire-card:hover {
  box-shadow: var(--shadow-2);
}

.os-need-card h3,
.os-cat-card h3,
.os-svc-card h3,
.os-project-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0;
}

.os-need-card p,
.os-cat-card p,
.os-svc-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.os-cat-card img,
.os-inspire-card img,
.os-svc-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-muted);
}

.os-empty-band {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

.os-empty-band > div {
  padding: 20px 16px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
}

.os-empty-band h3 {
  margin-bottom: 0 !important;
}

.os-empty-band p {
  margin: 0 !important;
  max-width: 42ch !important;
}

.os-empty-band .os-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.os-metric {
  min-height: 108px;
}

.os-metric__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-metric__value {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--primary);
}

.os-metric--unavailable .os-metric__value {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sage-2);
  color: var(--primary);
}

.os-status--empty {
  background: var(--surface-muted);
  color: var(--muted);
}

.os-project-card--empty {
  min-height: 120px;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
}

.os-wizard {
  max-width: 720px;
  margin: 0 auto;
}

.os-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.os-progress button {
  flex: 1;
  min-width: 72px;
  min-height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.os-progress button.is-on,
.os-progress button.is-done {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--sage-2);
}

.os-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.os-choice {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
}

.os-choice[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--sage-2);
  color: var(--primary);
}

.os-wizard__nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.os-learn-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.os-learn-nav a,
.os-learn-nav button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.85rem;
}

.os-learn-nav .is-on {
  background: var(--primary);
  color: var(--paper);
  border-color: var(--primary);
}

.os-rinpo-line {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.os-rinpo-line button,
.os-rinpo-line a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.os-quote-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.os-quote-steps span {
  font-size: 0.78rem;
  color: var(--muted);
}

.os-quote-steps span.is-on {
  color: var(--primary);
  font-weight: 600;
}

.os-campaign {
  padding-top: 8px;
}

.os-kits-note,
.os-cms-empty {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .os-need-grid,
  .os-cat-grid,
  .os-svc-grid,
  .os-inspire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .os-hero {
    padding-top: 28px;
  }
  .os-choice-grid {
    grid-template-columns: 1fr;
  }
  .os-empty-band > div {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .os-need-grid,
  .os-cat-grid,
  .os-svc-grid,
  .os-inspire-grid {
    grid-template-columns: 1fr;
  }
  .os-hero__ctas .btn,
  .os-hero__ctas .os-chip {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 721px) {
  body.route-home .rinpo-avatar--fab {
    bottom: 28px;
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-need-card,
  .os-cat-card,
  .os-svc-card {
    transition: none;
  }
}
