/* The industry pages under /industries/ (restaurants, retail, travel and
   hospitality, legal, telecommunications). They load site.css first and
   reuse the homepage's parts as they are: the photo panels and their tabs
   (.mo), the use-case cards (.cases), the integrations strip, the FAQ and
   the closing call to action. This file holds only what the pages add: the
   hero photograph, the phone with a customer's conversation, the icon
   tiles, sourced figures and the trust grid. The rt- prefix dates from the
   retail page, the first to use them. */

/* ---------------------------------------------------------------- hero */

/* site.css gives .mo-stage both an aspect ratio and a minimum height, so
   between about 900 and 1110 px wide the minimum height widens it past the
   page. A set width makes the ratio give way to the height instead. */
.mo-stage { width: 100%; }

.rt-kicker { animation: rise-in 420ms var(--ease-out) backwards; }
.rt-kicker .orb { width: 16px; height: 16px; }
.rt-hero .hero-title { margin-top: 20px; }

/* The photograph under the hero copy: one .mo panel without tabs. It rises
   last, like the homepage's console. */
.rt-shot { margin-top: 56px; --rise: 24px; animation: rise-in 760ms var(--ease-out) 400ms both; }
.rt-shot .mo-photo { object-position: 30% 50%; }
@media (prefers-reduced-motion: reduce) {
  .rt-kicker, .rt-shot { --rise: 0px; animation-duration: 300ms; animation-delay: 0ms; }
}
/* No copy sits on this picture, so the shade only darkens the right side,
   behind the conversation. Narrow screens keep .mo-shade's own fade. */
@media (min-width: 960px) {
  .rt-shot .mo-stage { aspect-ratio: 1240 / 600; }
  .rt-shade {
    background: linear-gradient(270deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.14) 40%, rgba(10, 10, 10, 0) 62%);
  }
}
.rt-facts { padding-top: 56px; }

/* ---------------------------------------------------------------- icon tiles */

.rt-ic {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.rt-points h3 { font-size: 17px; line-height: 24px; }
.rt-points > div { padding-top: 24px; }
.rt-num { font-size: 13px; font-weight: 600; font-feature-settings: 'tnum'; color: var(--ink-2); }

/* Industry figures with their sources underneath (legal page). */
.rt-figures { margin-top: 40px; }
.rt-figures .fact-n { font-size: clamp(30px, 3.4vw, 40px); }
.rt-source { margin-top: 24px; max-width: 760px; font-size: 13px; line-height: 19px; color: var(--ink-4); }
.rt-channels { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------------------------------------------------------------- storefront */

.rt-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.rt-feats { margin-top: 36px; padding-top: 0; }
@media (max-width: 959px) {
  .rt-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rt-feats { display: flex; }
}

/* The phone stands on a table photograph and runs off the stage's foot, so
   the conversation, not the device, is what the eye lands on. */
.rt-phone-stage {
  position: relative;
  height: 630px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #d8c4a6;
}
/* The jacket on the left of the table photograph stays in frame beside
   the phone. */
.rt-phone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 12% 50%; }
/* The travel page's bed: the passport and sunglasses stay beside the phone. */
.rt-phone-stage-bed .rt-phone-bg { object-position: 25% 50%; }
/* The legal page's desk: the folder and glasses stay beside the phone. */
.rt-phone-stage-desk .rt-phone-bg { object-position: 20% 50%; }
/* The restaurants page's table and the telecom page's stone surface. */
.rt-phone-stage-table .rt-phone-bg { object-position: 18% 50%; }
.rt-phone-stage-stone .rt-phone-bg { object-position: 18% 50%; }
/* Their conversations are shorter, so the stage ends closer under the last
   card. */
@media (min-width: 600px) {
  .rt-phone-stage-table { height: 570px; }
  .rt-phone-stage-stone { height: 600px; }
}
@media (max-width: 599px) {
  .rt-phone-stage.rt-phone-stage-table { height: 560px; }
  .rt-phone-stage.rt-phone-stage-stone { height: 590px; }
}
.rt-phone {
  position: absolute;
  top: 44px;
  left: 58%;
  width: 312px;
  padding: 9px;
  transform: translateX(-50%);
  border-radius: 54px;
  background: #121212;
  box-shadow:
    inset 0 0 0 1.5px #3b3b3b,
    0 2px 4px rgba(46, 28, 10, 0.2),
    0 36px 72px -20px rgba(46, 28, 10, 0.55);
}
.rt-screen {
  position: relative;
  height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 45px;
  background: var(--bg);
}
.rt-status {
  height: 50px;
  padding: 0 26px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}
.rt-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 94px;
  height: 27px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: #000000;
}
.rt-appbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.rt-appbar-orb { width: 30px; height: 30px; }
.rt-appbar-name { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.rt-appbar-sub { display: block; font-size: 11.5px; line-height: 15px; color: var(--ink-3); }
.rt-thread { padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.rt-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 19px;
}
.rt-msg.is-user { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--ink); color: var(--on-ink); }
.rt-msg.is-agent { align-self: flex-start; border-bottom-left-radius: 6px; background: #f3f1ee; color: var(--ink); }
.rt-product {
  align-self: flex-start;
  width: 86%;
  padding: 10px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card);
}
.rt-product-top { display: flex; align-items: center; gap: 10px; }
.rt-product img { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; }
.rt-product-ic {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.rt-product-name { font-size: 13.5px; line-height: 18px; font-weight: 500; }
.rt-product-meta { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.rt-stock { margin-top: 3px; display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 15px; color: var(--green-text); }
.rt-dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--green); }
.rt-sizes { margin-top: 10px; display: flex; gap: 6px; }
.rt-sizes span {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 12px;
  color: var(--ink-3);
}
.rt-sizes .is-on { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 500; }
.rt-add {
  margin-top: 8px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12.5px;
  font-weight: 500;
}
.rt-cart {
  align-self: flex-start;
  width: 92%;
  padding: 10px 10px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: var(--green-tint);
}
.rt-cart > svg { flex: none; color: var(--green); }
.rt-cart-k { display: block; white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--green-text); }
.rt-cart-v { display: block; white-space: nowrap; font-size: 12.5px; line-height: 17px; color: var(--ink-2); }
.rt-cart-btn {
  margin-left: auto;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 500;
}

/* The conversation plays once (industry.js). Hidden only after the script
   has run, so the finished conversation never depends on it. */
.rt-phone-stage.can-play .rt-step { opacity: 0; }
.rt-phone-stage.is-playing .rt-step { animation: rt-step-in 520ms var(--ease-out) var(--d, 0ms) both; }
@keyframes rt-step-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.rt-msg.is-user.rt-step { transform-origin: bottom right; }
/* The size is picked when the shopper asks for it, not before. */
.rt-phone-stage.is-playing .rt-sizes .is-on { animation: rt-pick 240ms var(--ease-out) 3700ms backwards; }
@keyframes rt-pick { from { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-3); font-weight: 400; } }
.rt-msg.is-agent.rt-step, .rt-product.rt-step, .rt-cart.rt-step { transform-origin: bottom left; }

@media (max-width: 599px) {
  .rt-phone-stage { height: 650px; }
  .rt-phone { top: 28px; left: 50%; width: 296px; }
  .rt-phone-bg { object-position: 4% 50%; }
}

/* ---------------------------------------------------------------- trust */

.rt-trust {
  margin-top: 48px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rt-trust li {
  padding: 24px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.rt-trust .rt-ic { background: var(--bg-subtle); }
.rt-trust h3 { font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.rt-trust p { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
@media (max-width: 959px) {
  .rt-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .rt-trust { grid-template-columns: minmax(0, 1fr); }
}
