/*
  Room Tag components
  Built only from tokens.css. Load tokens.css first.
*/

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rt-paper);
  color: var(--rt-ink);
  font-family: var(--rt-font);
  font-size: var(--rt-text-body);
  line-height: var(--rt-leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--rt-iris); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.rt-wrap { width: 100%; max-width: var(--rt-max); margin: 0 auto; padding: 0 var(--rt-gutter); }
.rt-section { padding: var(--rt-space-9) 0; }
.rt-section--tight { padding: var(--rt-space-8) 0; }

/* Type */
.rt-hero-title, .rt-h2, .rt-h3 {
  font-family: var(--rt-font);
  font-weight: 800;
  letter-spacing: var(--rt-track-tight);
  line-height: var(--rt-leading-head);
  margin: 0;
  color: var(--rt-ink);
}
.rt-hero-title { font-size: var(--rt-text-hero); }
.rt-h2 { font-size: var(--rt-text-h2); }
.rt-h3 { font-size: var(--rt-text-h3); letter-spacing: -0.02em; line-height: 1.2; }
.rt-lead { font-size: var(--rt-text-lead); color: var(--rt-soft); line-height: 1.55; max-width: 560px; margin: var(--rt-space-5) 0 0; }
.rt-muted { color: var(--rt-soft); }
.rt-small { font-size: var(--rt-text-small); color: var(--rt-soft); }
.rt-eyebrow {
  display: inline-flex; align-items: center; gap: var(--rt-space-2);
  font-family: var(--rt-font-pixel); font-size: 12px; text-transform: uppercase;
  color: var(--rt-iris); letter-spacing: 0.04em; margin-bottom: var(--rt-space-4);
}

/* Buttons */
.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--rt-space-2);
  font-family: var(--rt-font); font-weight: 600; font-size: 17px; line-height: 1;
  padding: 16px 24px; border-radius: var(--rt-radius); border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: transform .12s ease, background .12s ease;
}
.rt-btn--primary { background: var(--rt-iris); color: var(--rt-white); box-shadow: var(--rt-shadow-btn); }
.rt-btn--primary:hover { background: var(--rt-iris-deep); }
.rt-btn--dark { background: var(--rt-ink); color: var(--rt-white); box-shadow: var(--rt-shadow-sm); }
.rt-btn--ghost { background: var(--rt-white); color: var(--rt-ink); box-shadow: var(--rt-shadow-sm); border: var(--rt-border); }
.rt-btn--sm { padding: 10px 16px; font-size: 15px; border-radius: var(--rt-radius-sm); }
.rt-btn--block { width: 100%; }
.rt-btn:active { transform: translateY(1px); }

/* Nav */
.rt-nav { padding: var(--rt-space-5) 0; }
.rt-nav .rt-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-5); }
.rt-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--rt-ink); text-decoration: none; }
.rt-logo-mark { width: 26px; height: 26px; shape-rendering: crispEdges; }
.rt-logo-mark .a { fill: var(--rt-ink); }
.rt-logo-mark .b { fill: var(--rt-iris); }
.rt-nav-links { display: flex; gap: var(--rt-space-6); list-style: none; margin: 0; padding: 0; }
.rt-nav-links a { color: var(--rt-soft); text-decoration: none; font-weight: 500; }
.rt-nav-links a:hover { color: var(--rt-ink); }
.rt-nav-actions { display: flex; align-items: center; gap: var(--rt-space-3); }
.rt-new {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--rt-iris); background: var(--rt-iris-tint); border-radius: var(--rt-radius-sm); padding: 4px 10px;
}
.rt-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rt-live); }

/* Hero */
.rt-hero { padding: var(--rt-space-8) 0 var(--rt-space-8); }
.rt-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--rt-space-7); align-items: center; }
.rt-hero-actions { display: flex; flex-wrap: wrap; gap: var(--rt-space-3); margin-top: var(--rt-space-6); }
.rt-proof { display: flex; align-items: center; gap: var(--rt-space-3); margin-top: var(--rt-space-6); font-size: var(--rt-text-small); color: var(--rt-soft); }
.rt-stack { display: flex; }
.rt-stack span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rt-paper); margin-left: -8px; background: var(--rt-carpet); }
.rt-stack span:first-child { margin-left: 0; background: var(--rt-coral); }
.rt-stack span:nth-child(3) { background: var(--rt-leaf); }
.rt-stack span:nth-child(4) { background: var(--rt-away); }

/* The pixel map window */
.rt-window {
  position: relative; background: var(--rt-white); border-radius: var(--rt-radius-lg);
  padding: 6px; box-shadow: var(--rt-shadow); border: var(--rt-border);
}
.rt-map { position: relative; border-radius: var(--rt-radius); overflow: hidden; background: var(--rt-wall); line-height: 0; }
.rt-map svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.rt-window--bleed { margin-right: calc(-1 * var(--rt-gutter)); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rt-window--bleed .rt-map { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Map cells: one class per material */
.k-f { fill: var(--rt-floor); } .k-F { fill: var(--rt-floor-2); }
.k-c { fill: var(--rt-carpet); } .k-C { fill: var(--rt-carpet-2); }
.k-t { fill: var(--rt-tile); } .k-T { fill: var(--rt-tile-2); }
.k-W { fill: var(--rt-wall); } .k-w { fill: var(--rt-wall-face); }
.k-o { fill: var(--rt-oak); } .k-O { fill: var(--rt-oak-deep); }
.k-g { fill: var(--rt-leaf); } .k-G { fill: var(--rt-leaf-deep); } .k-p { fill: var(--rt-pot); }
.k-s { fill: var(--rt-sheet); } .k-i { fill: var(--rt-iris); } .k-r { fill: var(--rt-coral); }
.k-y { fill: var(--rt-away); } .k-m { fill: var(--rt-live); } .k-e { fill: var(--rt-steel); }
.k-v { fill: var(--rt-felt); } .k-k { fill: var(--rt-skin); } .k-K { fill: var(--rt-skin-2); }
.k-h { fill: var(--rt-hair); } .k-H { fill: var(--rt-hair-2); } .k-n { fill: var(--rt-ink); }

/* Name tags that float over people on the map */
.rt-tag {
  position: absolute; transform: translate(-50%, -110%);
  display: inline-flex; align-items: center; gap: 5px; line-height: 1;
  font-family: var(--rt-font-pixel); font-size: var(--rt-text-tag); color: var(--rt-white);
  background: rgba(37, 41, 71, 0.88); border-radius: var(--rt-radius-pill); padding: 4px 7px 4px 6px;
  white-space: nowrap; pointer-events: none;
}
.rt-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--rt-live); box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.rt-tag--away i { background: var(--rt-away); }
.rt-tag--you { background: var(--rt-iris); }
.rt-room-label {
  position: absolute; font-family: var(--rt-font-pixel); font-size: var(--rt-text-tag); line-height: 1;
  color: var(--rt-ink); background: rgba(255, 255, 255, 0.86); border-radius: var(--rt-radius-sm); padding: 4px 6px;
  white-space: nowrap;
}

/* Segmented tabs that sit under the window */
.rt-tabs {
  display: inline-flex; gap: 4px; padding: 5px; background: var(--rt-white); border: var(--rt-border);
  border-radius: var(--rt-radius-lg); box-shadow: var(--rt-shadow);
}
.rt-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--rt-font); font-weight: 600; font-size: 16px; color: var(--rt-ink);
  padding: 10px 16px; border-radius: var(--rt-radius); white-space: nowrap;
}
.rt-tabs button[aria-selected="true"] { background: var(--rt-iris-tint); color: var(--rt-iris-deep); }
.rt-tabs svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.rt-tabs-row { display: flex; justify-content: flex-end; margin-top: calc(-1 * var(--rt-space-5)); position: relative; padding-right: var(--rt-space-5); }

/* Logos strip */
.rt-logos { text-align: center; }
.rt-logos p { font-weight: 600; margin: 0 0 var(--rt-space-5); }
.rt-logos ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--rt-space-5) var(--rt-space-7); list-style: none; margin: 0; padding: 0; }
.rt-logos li { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--rt-faint); }

/* Cards */
.rt-card { background: var(--rt-white); border: var(--rt-border); border-radius: var(--rt-radius-lg); padding: var(--rt-space-6); box-shadow: var(--rt-shadow-sm); }
.rt-card p { margin: var(--rt-space-2) 0 0; color: var(--rt-soft); }
.rt-card-icon { width: 44px; height: 44px; border-radius: var(--rt-radius); background: var(--rt-iris-tint); display: grid; place-items: center; margin-bottom: var(--rt-space-5); }
.rt-card-icon svg { width: 30px; height: 30px; shape-rendering: crispEdges; }
.rt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rt-space-5); }
.rt-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rt-space-7); align-items: center; }
.rt-head { max-width: 680px; margin-bottom: var(--rt-space-7); }
.rt-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rt-head--center .rt-lead { margin-left: auto; margin-right: auto; }

/* Badges and presence */
.rt-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--rt-radius-pill); background: var(--rt-mist); color: var(--rt-ink); white-space: nowrap; }
.rt-badge--live { background: var(--rt-live-tint); color: #1E7A47; }
.rt-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rt-live); }
.rt-badge--iris { background: var(--rt-iris-tint); color: var(--rt-iris-deep); }
.rt-pixel { font-family: var(--rt-font-pixel); font-size: 12px; letter-spacing: 0.02em; }

/* List of people (a roster) */
.rt-roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rt-roster li { display: flex; align-items: center; gap: var(--rt-space-3); padding: 10px 12px; border-radius: var(--rt-radius); }
.rt-roster li:hover { background: var(--rt-mist); }
.rt-avatar { width: 32px; height: 32px; border-radius: var(--rt-radius-sm); background: var(--rt-mist); display: grid; place-items: center; flex: none; }
.rt-avatar svg { width: 20px; height: 24px; shape-rendering: crispEdges; }
.rt-roster b { font-weight: 600; }
.rt-roster span.rt-small { margin-left: auto; }

/* Forms */
.rt-field { display: grid; gap: 6px; margin-bottom: var(--rt-space-4); }
.rt-label { font-weight: 600; font-size: 15px; }
.rt-input, .rt-select {
  width: 100%; font-family: var(--rt-font); font-size: 16px; color: var(--rt-ink);
  background: var(--rt-white); border: 1px solid var(--rt-line-strong); border-radius: var(--rt-radius);
  padding: 13px 14px; outline: none; transition: border-color .12s ease, box-shadow .12s ease;
}
.rt-input::placeholder { color: var(--rt-faint); }
.rt-input:focus, .rt-select:focus { border-color: var(--rt-iris); box-shadow: 0 0 0 4px var(--rt-iris-tint); }
.rt-help { font-size: 13px; color: var(--rt-soft); }
.rt-error { font-size: 13px; color: var(--rt-alert); }
.rt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--rt-soft); }
.rt-check input { accent-color: var(--rt-iris); width: 18px; height: 18px; margin-top: 2px; }
.rt-divider { display: flex; align-items: center; gap: var(--rt-space-3); color: var(--rt-faint); font-size: 13px; margin: var(--rt-space-5) 0; }
.rt-divider::before, .rt-divider::after { content: ""; flex: 1; height: 1px; background: var(--rt-line); }
.rt-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rt-space-2); }
.rt-pick label { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--rt-line-strong); border-radius: var(--rt-radius); cursor: pointer; font-weight: 600; font-size: 15px; background: var(--rt-white); }
.rt-pick label span { font-weight: 400; font-size: 13px; color: var(--rt-soft); }
.rt-pick input { position: absolute; opacity: 0; pointer-events: none; }
.rt-pick label:has(input:checked) { border-color: var(--rt-iris); box-shadow: 0 0 0 3px var(--rt-iris-tint); }

/* Pricing */
.rt-toggle { display: inline-flex; padding: 4px; border-radius: var(--rt-radius); background: var(--rt-mist); gap: 4px; }
.rt-toggle button { border: 0; background: transparent; font-family: var(--rt-font); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: var(--rt-radius-sm); cursor: pointer; color: var(--rt-soft); white-space: nowrap; }
.rt-toggle button[aria-pressed="true"] { background: var(--rt-white); color: var(--rt-ink); box-shadow: var(--rt-shadow-sm); }
.rt-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rt-space-5); align-items: stretch; }
.rt-plan { display: flex; flex-direction: column; background: var(--rt-white); border: var(--rt-border); border-radius: var(--rt-radius-lg); padding: 6px 6px var(--rt-space-6); box-shadow: var(--rt-shadow-sm); }
.rt-plan--featured { border-color: var(--rt-iris); box-shadow: 0 0 0 3px var(--rt-iris-tint), var(--rt-shadow); }
.rt-plan-body { padding: var(--rt-space-5) var(--rt-space-5) 0; display: flex; flex-direction: column; flex: 1; }
.rt-plan-name { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-2); }
.rt-price { font-weight: 800; font-size: 46px; letter-spacing: var(--rt-track-tight); line-height: 1; margin: var(--rt-space-4) 0 var(--rt-space-1); }
.rt-price small { font-size: 16px; font-weight: 500; color: var(--rt-soft); letter-spacing: 0; }
.rt-ticks { list-style: none; padding: 0; margin: var(--rt-space-5) 0 var(--rt-space-6); display: grid; gap: 10px; flex: 1; }
.rt-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.rt-ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--rt-live); box-shadow: 2px 2px 0 var(--rt-live-tint); }
.rt-table-wrap { overflow-x: auto; border: var(--rt-border); border-radius: var(--rt-radius-lg); background: var(--rt-white); }
.rt-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.rt-table th, .rt-table td { text-align: left; padding: 14px 18px; border-bottom: var(--rt-border); }
.rt-table thead th { font-weight: 600; background: var(--rt-mist); }
.rt-table tr:last-child td { border-bottom: 0; }
.rt-yes { color: var(--rt-live); font-weight: 800; }
.rt-no { color: var(--rt-faint); }

/* FAQ */
.rt-faq { display: grid; gap: var(--rt-space-2); }
.rt-faq details { background: var(--rt-white); border: var(--rt-border); border-radius: var(--rt-radius); padding: var(--rt-space-4) var(--rt-space-5); }
.rt-faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--rt-space-4); }
.rt-faq summary::after { content: "+"; font-family: var(--rt-font-pixel); color: var(--rt-iris); }
.rt-faq details[open] summary::after { content: "-"; }
.rt-faq p { margin: var(--rt-space-3) 0 0; color: var(--rt-soft); }

/* Article */
.rt-article { max-width: 720px; margin: 0 auto; }
.rt-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-space-3); margin-top: var(--rt-space-5); font-size: var(--rt-text-small); color: var(--rt-soft); }
.rt-prose { font-size: 18px; line-height: 1.7; }
.rt-prose h2 { font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; margin: var(--rt-space-7) 0 var(--rt-space-3); }
.rt-prose p { margin: 0 0 var(--rt-space-5); }
.rt-prose ul { padding-left: 0; list-style: none; margin: 0 0 var(--rt-space-5); display: grid; gap: 10px; }
.rt-prose ul li { display: flex; gap: 12px; }
.rt-prose ul li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 11px; background: var(--rt-iris); }
.rt-quote { margin: var(--rt-space-6) 0; padding: var(--rt-space-5) var(--rt-space-6); background: var(--rt-white); border: var(--rt-border); border-radius: var(--rt-radius-lg); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; }
.rt-quote cite { display: block; margin-top: var(--rt-space-3); font-style: normal; font-family: var(--rt-font-pixel); font-size: 12px; color: var(--rt-soft); }
.rt-figure { margin: var(--rt-space-7) 0; }
.rt-figure figcaption { margin-top: var(--rt-space-3); font-size: var(--rt-text-small); color: var(--rt-soft); text-align: center; }
.rt-callout { display: flex; gap: var(--rt-space-4); padding: var(--rt-space-5); border-radius: var(--rt-radius-lg); background: var(--rt-iris-tint); color: var(--rt-iris-deep); margin: 0 0 var(--rt-space-5); }
.rt-callout b { font-family: var(--rt-font-pixel); font-weight: 400; font-size: 12px; white-space: nowrap; padding-top: 4px; }
.rt-callout p { margin: 0; color: var(--rt-ink); font-size: 16px; }
.rt-author { display: flex; align-items: center; gap: var(--rt-space-3); }

/* CTA band */
.rt-cta { background: var(--rt-ink); color: var(--rt-white); border-radius: var(--rt-radius-lg); padding: var(--rt-space-8) var(--rt-space-7); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--rt-space-6); align-items: center; }
.rt-cta .rt-h2 { color: var(--rt-white); }
.rt-cta p { color: var(--rt-faint); margin: var(--rt-space-3) 0 0; }

/* Footer */
.rt-footer { padding: var(--rt-space-8) 0 var(--rt-space-7); border-top: var(--rt-border); margin-top: var(--rt-space-9); }
.rt-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--rt-space-6); }
.rt-footer h4 { font-size: 14px; margin: 0 0 var(--rt-space-3); }
.rt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rt-footer a { color: var(--rt-soft); text-decoration: none; font-size: 15px; }
.rt-footer a:hover { color: var(--rt-ink); }
.rt-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--rt-space-3); margin-top: var(--rt-space-7); padding-top: var(--rt-space-5); border-top: var(--rt-border); font-size: 13px; color: var(--rt-faint); }

/* Phone */
@media (max-width: 900px) {
  .rt-hero-grid, .rt-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .rt-grid-3, .rt-plans { grid-template-columns: minmax(0, 1fr); }
  .rt-nav-links { display: none; }
  .rt-window--bleed { margin-right: 0; border-radius: var(--rt-radius-lg); }
  .rt-window--bleed .rt-map { border-radius: var(--rt-radius); }
  .rt-cta { grid-template-columns: minmax(0, 1fr); padding: var(--rt-space-7) var(--rt-space-5); }
  .rt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-section { padding: var(--rt-space-8) 0; }
}
@media (max-width: 560px) {
  .rt-tag--minor, .rt-room-label--minor { display: none; }
  .rt-tag { font-size: 8px; padding: 3px 5px; }
  .rt-tabs-row { justify-content: center; padding-right: 0; }
  .rt-tabs button { padding: 8px 10px; font-size: 14px; }
  .rt-tabs svg { display: none; }
  .rt-pick { grid-template-columns: minmax(0, 1fr); }
  .rt-nav-actions .rt-btn--ghost { display: none; }
  .rt-new { display: none; }
}
