/* Compact editorial carousel above the home page headline. */
.rf-promo-wrap { padding: 22px 40px 0; }
.rf-promo-frame { position: relative; max-width: 1320px; height: 218px; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #10191e; box-shadow: 0 14px 40px rgba(10,11,13,.12); }
.rf-promo-slide { position: absolute; inset: 0; animation: rf-promo-arrive .45s ease both; }
@keyframes rf-promo-arrive { from { opacity: .72; transform: scale(1.012); } to { opacity: 1; transform: scale(1); } }
.rf-promo-panel { box-sizing: border-box; position: absolute; top: 0; bottom: 0; width: 55%; display: flex; align-items: center; text-decoration: none; overflow: hidden; isolation: isolate; }
.rf-promo-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: transform .6s cubic-bezier(.23,1,.32,1); }
.rf-promo-panel:focus-visible::before { transform: scale(1.03); }
@media (hover: hover) and (pointer: fine) { .rf-promo-panel:hover::before { transform: scale(1.03); } }
.rf-promo-panel:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; z-index: 3; }
.rf-promo-left { left: 0; padding: 20px 9% 22px 34px; }
.rf-promo-right { right: 0; padding: 20px 22px 22px 12%; clip-path: polygon(12% 0,100% 0,100% 100%,0 100%); }
.rf-promo-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 360px; }
.rf-promo-kicker { font: 600 10px/1.2 'IBM Plex Mono',ui-monospace,monospace; letter-spacing: .13em; margin-bottom: 12px; opacity: .68; }
.rf-promo-title { font: 600 clamp(23px,2.45vw,36px)/1.04 'Inter Tight',-apple-system,system-ui,sans-serif; letter-spacing: -.035em; max-width: 330px; }
.rf-promo-detail { font: 400 13px/1.35 'Inter Tight',-apple-system,system-ui,sans-serif; max-width: 280px; margin-top: 9px; opacity: .75; }
.rf-promo-link { font: 600 11px/1.2 'IBM Plex Mono',ui-monospace,monospace; letter-spacing: .03em; margin-top: 15px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.rf-promo-link span { margin-left: 4px; }
.rf-promo-ring, .rf-promo-diamonds { color: #151412; }
.rf-promo-shots, .rf-promo-mcp { color: #fffaf2; }
.rf-promo-ring::before { background: linear-gradient(90deg,#f6f3ed 0%,rgba(246,243,237,.97) 41%,rgba(246,243,237,.2) 100%),url('../assets/pages/ring-builder-components-exploded.webp') center/cover; }
.rf-promo-shots::before { background: linear-gradient(90deg,rgba(13,21,27,.95),rgba(13,21,27,.9) 42%,rgba(13,21,27,.47)),url('../assets/demo-models/demo-shot-1.png') center 58%/cover; }
.rf-promo-mcp::before { background: radial-gradient(circle at 77% 25%,rgba(115,183,191,.36),transparent 35%),repeating-linear-gradient(0deg,transparent 0 28px,rgba(255,255,255,.035) 29px 30px),linear-gradient(135deg,#182b32,#0b1117); }
.rf-promo-mcp::after { content: '{  }'; position: absolute; right: 12%; top: 18%; color: rgba(224,251,251,.11); font: 700 110px/1 'IBM Plex Mono',ui-monospace,monospace; pointer-events: none; }
.rf-promo-diamonds::before { background: linear-gradient(90deg,#f5f1e9 0%,rgba(245,241,233,.96) 42%,rgba(245,241,233,.2) 100%),url('../assets/pages/loose-diamond-inventory.webp') center/cover; }
.rf-promo-controls { position: absolute; z-index: 4; left: 50%; bottom: 10px; display: flex; transform: translateX(-50%); padding: 0 4px; border-radius: 99px; background: rgba(10,11,13,.35); backdrop-filter: blur(8px); }
/* The visible bar is 22x5; the button around it is the hit area. */
.rf-promo-controls button { position: relative; width: 30px; height: 20px; border: 0; border-radius: 99px; padding: 0; background: transparent; cursor: pointer; }
.rf-promo-controls button::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; background: rgba(255,255,255,.43); transition: background-color .2s ease; }
.rf-promo-controls button.is-active::before { background: #fff; }
@media (hover: hover) and (pointer: fine) { .rf-promo-controls button:not(.is-active):hover::before { background: rgba(255,255,255,.7); } }
.rf-promo-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .rf-promo-wrap { padding: 14px 16px 0; }
  .rf-promo-frame { height: 170px; border-radius: 9px; }
  .rf-promo-left { padding: 15px 17% 24px 15px; }
  .rf-promo-right { padding: 15px 10px 24px 12%; }
  .rf-promo-kicker { font-size: 8px; margin-bottom: 8px; }
  .rf-promo-title { font-size: clamp(16px,4.4vw,25px); line-height: 1.08; }
  .rf-promo-detail { display: none; }
  .rf-promo-link { font-size: 9px; margin-top: 12px; }
  .rf-promo-mcp::after { font-size: 50px; right: 5%; }
  .rf-promo-controls { bottom: 6px; }
  .rf-promo-controls button { width: 34px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-promo-slide { animation: none; }
  .rf-promo-panel::before { transition: none; }
}

/* ── Home page interaction states ─────────────────────────────────────────────
   Buttons, selection and focus rings for every React page live in
   shared/rf-ui.css (--rf-ease-out comes from there too). This block holds only
   the home page's own controls: the live builder's options, install tabs and
   the turntable play tile. */
.rf-home .rf-scroll { scrollbar-width: thin; scrollbar-color: rgba(10,11,13,.22) transparent; }

/* Option controls in the live builder window: selected state comes from aria-pressed. */
.rf-home .rf-chip { font: 500 12.5px/normal "Inter Tight", -apple-system, system-ui, sans-serif; padding: 6px 12px; border: 0; border-radius: 6px; background: rgba(10,11,13,.08); color: #0A0B0D; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--rf-ease-out); }
.rf-home .rf-chip[aria-pressed="true"] { background: #0A0B0D; color: #F5F5F4; }
.rf-home .rf-chip:active { transform: scale(.96); }

.rf-home .rf-swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.rf-home .rf-swatch-dot { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 0 #0A0B0D, inset 0 1px 2px rgba(255,255,255,.6), inset 0 -1px 2px rgba(0,0,0,.2), inset 0 0 0 1px rgba(10,11,13,.13); transition: box-shadow 180ms var(--rf-ease-out), transform 160ms var(--rf-ease-out); }
.rf-home .rf-swatch[aria-pressed="true"] .rf-swatch-dot { box-shadow: 0 0 0 2.5px #0A0B0D, inset 0 1px 2px rgba(255,255,255,.6), inset 0 -1px 2px rgba(0,0,0,.2), inset 0 0 0 1px rgba(10,11,13,.13); }
.rf-home .rf-swatch:active .rf-swatch-dot { transform: scale(.94); }

/* Selected tile: border plus a half-pixel outer ring reads as the old 1.5px
   border without the 0.5px layout shift a border-width change causes. */
.rf-home .rf-tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(10,11,13,.13); border-radius: 8px; background: #fff; font-family: inherit; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, transform 140ms var(--rf-ease-out); }
.rf-home .rf-tile[aria-pressed="true"] { border-color: #0A0B0D; box-shadow: 0 0 0 .5px #0A0B0D; background: rgba(10,11,13,.08); }
.rf-home .rf-tile:active { transform: scale(.97); }

.rf-home .rf-tab { padding: 0; border: 0; background: none; cursor: pointer; font: 11px/normal "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; color: rgba(245,245,244,.45); transition: color 150ms ease; }
.rf-home .rf-tab[aria-selected="true"] { color: #F5F5F4; }

.rf-home .rf-play img { transition: transform 400ms var(--rf-ease-out); }
.rf-home .rf-play .rf-play-btn { transition: transform 200ms var(--rf-ease-out); }
.rf-home .rf-play:active .rf-play-btn { transform: scale(.94); }

@media (hover: hover) and (pointer: fine) {
  .rf-home .rf-chip[aria-pressed="false"]:hover { background: rgba(10,11,13,.14); }
  .rf-home .rf-swatch:hover .rf-swatch-dot { transform: scale(1.06); }
  .rf-home .rf-tile[aria-pressed="false"]:hover { border-color: rgba(10,11,13,.4); }
  .rf-home .rf-tab[aria-selected="false"]:hover { color: rgba(245,245,244,.75); }
  .rf-home .rf-play:hover img { transform: scale(1.03); }
  .rf-home .rf-play:hover .rf-play-btn { transform: scale(1.08); }
}

.rf-home :is(.rf-chip, .rf-swatch, .rf-tile, .rf-play):focus-visible { outline: 2px solid #0A0B0D; outline-offset: 2px; }
.rf-home .rf-tab:focus-visible { outline: 2px solid #F5F5F4; outline-offset: 4px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  .rf-home :is(.rf-chip, .rf-swatch-dot, .rf-tile, .rf-play img, .rf-play-btn) { transition-property: background-color, border-color, color, box-shadow; }
  .rf-home :is(.rf-chip, .rf-tile):active { transform: none; }
  .rf-home .rf-swatch:is(:hover, :active) .rf-swatch-dot,
  .rf-home .rf-play:is(:hover, :active) :is(img, .rf-play-btn) { transform: none; }
}
