/*
 * Homepage: hero, sections, trips, cards, comparison, categories, field notes,
 * and the demo switcher pill.
 */

.roam-home {
  padding: 0;
  max-width: none;
}

/* Hero -------------------------------------------------------------------- */

.roam-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  background: var(--roam-paper);
  border-bottom: 1px solid var(--roam-rule);
}

.roam-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 70px 56px 62px;
}

.roam-hero__eyebrow {
  font: 500 11px/1 var(--roam-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roam-accent);
}

.roam-hero__headline {
  margin: 0;
  font: 600 clamp(34px, 5vw, 56px) / 1.02 var(--roam-sans);
  letter-spacing: -0.03em;
  color: var(--roam-ink);
  text-wrap: pretty;
}

.roam-hero__standfirst {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--roam-text-muted);
  text-wrap: pretty;
}

.roam-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.roam-hero__actions .roam-btn {
  height: 48px;
  padding: 0 24px;
  font-size: 14.5px;
}

.roam-ask__arrow {
  font-family: var(--roam-mono);
  color: var(--roam-accent);
}

.roam-btn--primary .roam-ask__arrow {
  color: inherit;
}

/* Hero statistics */

.roam-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--roam-rule);
}

.roam-stats__item {
  padding-top: 16px;
}

.roam-stats__value {
  margin: 0;
  font: 500 24px/1 var(--roam-mono);
  color: var(--roam-ink);
}

.roam-stats__unit {
  font-size: 13px;
  color: var(--roam-text-faint);
}

.roam-stats__label {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--roam-text-faint);
}

/* Hero figure */

.roam-hero__figure {
  position: relative;
  min-height: 560px;
  background: var(--roam-paper-sunk);
  overflow: hidden;
}

.roam-hero__image,
.roam-hero__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.roam-hero__card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 28px;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px;
  background: rgba(239, 236, 229, 0.94);
  border: 1px solid rgba(22, 21, 15, 0.14);
  border-radius: var(--roam-radius);
  backdrop-filter: blur(6px);
  color: var(--roam-ink);
}

.roam-hero__card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roam-hero__card-eyebrow {
  font: 500 10px/1 var(--roam-mono);
  letter-spacing: 0.12em;
  color: var(--roam-accent);
  text-transform: uppercase;
}

.roam-hero__card-name {
  font: 600 15px/1.2 var(--roam-sans);
}

.roam-hero__card-spec {
  font-size: 12px;
  color: var(--roam-text-faint);
}

.roam-hero__card-price {
  font: 500 20px/1 var(--roam-mono);
  white-space: nowrap;
}

.roam-hero__card-price del {
  display: none;
}

/* Sections ---------------------------------------------------------------- */

.roam-section {
  max-width: var(--roam-max);
  margin: 0 auto;
  padding: 56px var(--roam-gutter) 8px;
}

.roam-section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(22, 21, 15, 0.15);
}

.roam-section__num {
  font: 500 11px/1 var(--roam-mono);
  letter-spacing: 0.14em;
  color: var(--roam-text-faint);
}

.roam-section__title {
  margin: 0;
  font: 600 clamp(22px, 3vw, 30px) / 1 var(--roam-sans);
  letter-spacing: -0.02em;
  color: var(--roam-ink);
}

.roam-section__sub {
  margin-left: auto;
  font-size: 13px;
  color: var(--roam-text-faint);
}

.roam-section__link {
  margin-left: auto;
  font: 500 13px/1 var(--roam-sans);
  color: var(--roam-text-strong);
}

.roam-section__link:hover {
  color: var(--roam-ink);
}

/* Trips ------------------------------------------------------------------- */

.roam-trips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  background: var(--roam-rule);
  border: 1px solid var(--roam-rule);
}

.roam-trip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  background: var(--roam-paper);
  color: var(--roam-text-muted);
  transition: background 0.15s ease;
}

.roam-trip:hover {
  background: var(--roam-paper-raised);
  color: var(--roam-text-muted);
}

.roam-trip__title {
  font: 600 18px/1.25 var(--roam-sans);
  letter-spacing: -0.01em;
  color: var(--roam-ink);
}

.roam-trip__blurb {
  font-size: 13.5px;
  line-height: 1.55;
}

.roam-trip__count {
  margin-top: auto;
  padding-top: 12px;
  font: 500 12px/1 var(--roam-mono);
  color: var(--roam-accent);
}

/* Product cards ----------------------------------------------------------- */

.roam-grid--cards {
  margin: 28px 0 0;
}

.roam-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roam-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--roam-paper-sunk);
  overflow: hidden;
  border-radius: var(--roam-radius);
}

.roam-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.roam-card__media:hover img {
  transform: scale(1.03);
}

.roam-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  border-radius: 2px;
  font: 500 9.5px/1 var(--roam-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--roam-ink);
  color: var(--roam-paper);
}

.roam-flag--sale {
  background: var(--roam-warn);
  color: #fff;
}

.roam-flag--out {
  background: var(--roam-text-faint);
}

.roam-flag--backorder {
  background: var(--roam-sale);
  color: #fff;
}

.roam-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 2px 0;
}

.roam-card__cat {
  font: 500 10px/1 var(--roam-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roam-text-faint);
}

.roam-card__name {
  margin: 0;
  font: 600 15px/1.3 var(--roam-sans);
  letter-spacing: -0.01em;
}

.roam-card__name a {
  color: var(--roam-ink);
}

.roam-card__spec {
  margin: 0;
  font-size: 12.5px;
  color: var(--roam-text-faint);
}

.roam-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.roam-card__price {
  font: 500 15px/1 var(--roam-mono);
  color: var(--roam-ink);
}

.roam-card__price del {
  margin-right: 6px;
  font-size: 12px;
  color: var(--roam-text-faint);
}

.roam-card__price ins {
  text-decoration: none;
}

.roam-card__stock {
  font: 500 10.5px/1 var(--roam-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--roam-text-faint);
}

.roam-card__stock.is-out {
  color: var(--roam-warn);
}

.roam-card__stock.is-low,
.roam-card__stock.is-backorder {
  color: var(--roam-sale);
}

/* Comparison -------------------------------------------------------------- */

.roam-compare__scroll {
  overflow-x: auto;
  margin: 28px 0 0;
}

.roam-compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.roam-compare th,
.roam-compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--roam-rule);
  vertical-align: top;
}

.roam-compare thead th {
  border-bottom: 1px solid var(--roam-rule-strong);
}

.roam-compare tbody th {
  width: 190px;
  font: 500 11px/1.3 var(--roam-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--roam-text-faint);
}

.roam-compare__name {
  display: block;
  font: 600 15px/1.25 var(--roam-sans);
  color: var(--roam-ink);
}

.roam-compare__sku {
  display: block;
  margin-top: 4px;
  font: 400 11px/1 var(--roam-mono);
  color: var(--roam-text-faint);
}

.roam-compare__none {
  color: var(--roam-text-faint);
}

.roam-compare__ask {
  margin: 22px 0 0;
  max-width: 70ch;
  font-size: 14px;
  color: var(--roam-text-muted);
}

.roam-ask--inline {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--roam-accent);
  font: 500 14px/1 var(--roam-sans);
}

.roam-ask--inline:hover {
  color: var(--roam-ink);
  border: 0;
}

/* Categories -------------------------------------------------------------- */

.roam-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 28px 0 0;
}

.roam-cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--roam-text-muted);
}

.roam-cat__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--roam-radius);
  background: var(--roam-paper-sunk);
}

.roam-cat__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.roam-cat__name {
  font: 600 16px/1.2 var(--roam-sans);
  color: var(--roam-ink);
}

.roam-cat__blurb {
  font-size: 13px;
  line-height: 1.5;
}

.roam-cat__count {
  font: 500 11px/1 var(--roam-mono);
  color: var(--roam-text-faint);
}

/* Field notes ------------------------------------------------------------- */

.roam-notes {
  margin: 72px 0 0;
  padding: 52px var(--roam-gutter) 56px;
  background: var(--roam-paper-raised);
  border-top: 1px solid var(--roam-rule);
}

.roam-notes__head {
  max-width: var(--roam-max);
  margin: 0 auto 26px;
}

.roam-notes__title {
  margin: 0;
  font: 600 26px/1.1 var(--roam-sans);
  letter-spacing: -0.02em;
  color: var(--roam-ink);
}

.roam-notes__sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--roam-text-faint);
}

.roam-notes__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  max-width: var(--roam-max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: var(--roam-rule);
  border: 1px solid var(--roam-rule);
}

.roam-note a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  padding: 20px 22px;
  background: var(--roam-paper-raised);
  color: var(--roam-text-muted);
  transition: background 0.15s ease;
}

.roam-note a:hover {
  background: var(--roam-paper);
  color: var(--roam-text-muted);
}

.roam-note__title {
  font: 600 15px/1.3 var(--roam-sans);
  color: var(--roam-ink);
}

.roam-note__blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--roam-text-faint);
}

/* The demo switcher ------------------------------------------------------- */

.roam-pill {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(22, 21, 15, 0.93);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.roam-pill[data-busy] {
  opacity: 0.7;
}

.roam-pill__label {
  padding: 0 10px 0 12px;
  font: 500 9.5px/1 var(--roam-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 236, 229, 0.5);
  white-space: nowrap;
}

.roam-pill__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(239, 236, 229, 0.66);
  font: 500 12px/1 var(--roam-sans);
  white-space: nowrap;
  cursor: pointer;
}

.roam-pill__btn:hover {
  color: var(--roam-paper);
}

.roam-pill__btn.is-active {
  background: var(--roam-paper);
  color: var(--roam-ink);
}

.roam-pill__key {
  font-family: var(--roam-mono);
  opacity: 0.55;
}

/* Small screens ----------------------------------------------------------- */

@media (max-width: 900px) {
  .roam-hero__copy {
    padding: 48px var(--roam-gutter) 44px;
  }

  .roam-hero__figure {
    min-height: 420px;
  }

  .roam-section__sub {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .roam-hero {
    grid-template-columns: 1fr;
  }

  .roam-hero__figure {
    min-height: 340px;
    order: -1;
  }

  .roam-hero__card {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .roam-pill__label {
    display: none;
  }

  .roam-pill__btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }
}
