/* Public product tour. All rules are scoped away from the signed-in app. */
#authOverlay.rf-landing { display: block; padding: 0; }
.rf-landing .rf-shell { max-width: 1240px; margin: auto; padding: env(safe-area-inset-top) max(28px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); }
.rf-landing .rf-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; margin: 0; border-bottom: 1px solid var(--border); text-align: left; }
.rf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bg-dark); font-family: 'Cinzel', serif; font-size: 1.2rem; text-decoration: none; }
.rf-brand img { width: 40px; height: 40px; border-radius: 10px; }
.rf-nav-links { display: flex; align-items: center; gap: 24px; }
.rf-nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 8px; color: var(--text-main); font-size: .85rem; font-weight: 600; text-decoration: none; }
.rf-hero { display: block; padding: 30px 0 24px; }
.rf-eyebrow { color: #78571d; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 16px; }
.rf-hero h2 { font-family: 'Cinzel', serif; font-size: clamp(2rem,3.5vw,2.8rem); line-height: 1.18; font-weight: 600; max-width: 700px; letter-spacing: -.035em; }
.rf-hero h2 em { color: #96702f; font-style: normal; }
.rf-intro { color: var(--text-muted); line-height: 1.8; max-width: 820px; margin: 14px 0; font-size: 1rem; }
.rf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rf-hero-actions .btn { width: auto; min-height: 46px; padding: 12px 20px; }
.rf-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--text-muted); font-size: .75rem; }
.rf-proof span::before { content: '✓ '; color: var(--green); }
#authOverlay.rf-landing .login-card { max-width: 420px; margin: 36px auto; padding: 26px; }
.rf-landing .login-card .auth-logo { width: 48px; height: 48px; margin-bottom: 6px; }
.rf-tour { scroll-margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.rf-tour-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; align-items: start; }
.rf-tour-steps { position: relative; display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.rf-tour-step { display: block; flex: 0 0 104px; scroll-snap-align: start; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; background: white; color: var(--text-muted); padding: 0; text-align: left; font: inherit; font-size: .75rem; cursor: pointer; }
.rf-tour-step img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: contain; border-bottom: 1px solid var(--border); }
.rf-tour-step .rf-step-label { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px; }
.rf-step-label small { color: #927342; font-size: .65rem; font-variant-numeric: tabular-nums; }
.rf-tour-step[aria-pressed='true'] { background: var(--bg-dark); border-color: var(--gold); color: white; }
.rf-tour-step[aria-pressed='true'] small { color: #dfbf87; }
.rf-tour-step:hover:not([aria-pressed='true']) { background: var(--cream); }
.rf-tour-screen { display: grid; grid-template-columns: minmax(0,390px) minmax(0,1fr); min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.rf-image-link { display: block; background: var(--cream); position: relative; }
.rf-image-link img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: contain; }
.rf-image-link::after { content: 'Tap to enlarge ↗'; position: absolute; bottom: 14px; right: 14px; background: var(--bg-dark); color: white; border-radius: 7px; padding: 9px 13px; font-size: .72rem; }
.rf-picture { position: relative; min-width: 0; }
.rf-picture-nav { position: absolute; inset: 50% 8px auto; transform: translateY(-50%); display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 1; }
.rf-picture-nav button { pointer-events: auto; width: 44px; height: 44px; flex: none; border: 1px solid #ffffff80; border-radius: 50%; background: var(--bg-dark); color: white; font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px #0003; }
.rf-picture-nav button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rf-tour-caption { align-self: center; padding: 28px; }
.rf-tour-caption h3 { font-size: 1.1rem; margin-bottom: 8px; }
.rf-tour-caption p { font-size: .8rem; color: var(--text-muted); line-height: 1.55; }
.rf-tour-viewer { min-width: 0; }
.rf-tour-note { margin-top: 18px; font-size: .73rem; color: var(--text-muted); line-height: 1.6; }
.rf-footer { margin-top: 38px; border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: .75rem; }
.rf-footer a { color: #78571d; }
.rf-lightbox { width: min(560px,96vw); max-width: 96vw; height: min(920px,94vh); height: min(920px,94dvh); max-height: 94vh; max-height: 94dvh; overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-page); }
.rf-lightbox[open] { display: flex; flex-direction: column; }
.rf-document-lightbox { width: min(960px,96vw); }
.rf-lightbox-stage { position: relative; flex: 1; min-height: 0; }
.rf-lightbox-viewport { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; background: white; }
.rf-lightbox-head, .rf-lightbox-zoom { flex-shrink: 0; }
.rf-lightbox-zoom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.rf-lightbox-zoom button { width: auto; min-width: 48px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: white; color: var(--text-main); font: inherit; cursor: pointer; }
.rf-lightbox-zoom button[aria-pressed='true'] { background: var(--bg-dark); color: white; border-color: var(--gold); }
.rf-lightbox-zoom span { font-size: .75rem; color: var(--text-muted); }
.rf-lightbox::backdrop { background: rgba(14,19,24,.85); }
.rf-lightbox-head { position: sticky; top: 0; z-index: 1; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--bg-dark); color: white; }
.rf-lightbox-head h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; font: inherit; font-size: .9rem; }
.rf-lightbox-head > span { flex: none; font-size: .75rem; }
.rf-lightbox-head button { width: auto; min-height: 44px; }
.rf-lightbox img { display: block; width: 100%; max-width: none; height: auto; margin-inline: auto; }
.rf-landing :is(a,button,select):focus-visible,.rf-lightbox button:focus-visible { outline: 3px solid #ad7d28; outline-offset: 3px; }
.rf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .rf-tour-layout { gap: 16px; }
}
@media (max-width: 700px) {
  .rf-landing .rf-shell { padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .rf-landing .rf-nav { padding: 16px 0; gap: 12px; }
  .rf-brand { font-size: 1rem; } .rf-brand img { width: 32px; height: 32px; }
  .rf-nav-links { gap: 8px; } .rf-nav-links a { font-size: .88rem; }
  .rf-nav-links a:first-child { display: none; }
  .rf-hero { padding: 24px 0; }
  .rf-hero h2 { font-size: 2rem; } .rf-intro { font-size: .9rem; line-height: 1.6; }
  .rf-hero-actions { gap: 8px; }
  .rf-hero-actions .btn { flex: 1 1 140px; padding-inline: 12px; font-size: .85rem; }
  .rf-proof { margin-top: 14px; }
  #authOverlay.rf-landing .login-card { max-width: 420px; padding: 22px; }
  .rf-tour-layout { grid-template-columns: 1fr; gap: 12px; }
  .rf-tour-steps { display: none; }
  .rf-tour-screen { display: block; width: 100%; margin-inline: auto; }
  .rf-image-link { display: block; text-align: center; }
  .rf-image-link img { width: 100%; max-width: 100%; height: 440px; height: min(440px, 55svh); padding: 12px 56px; object-fit: contain; }
  .rf-image-link::after { content: '↗'; top: 8px; right: 8px; bottom: auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; font-size: 1.25rem; }
  .rf-tour-caption { padding: 16px; border-top: 1px solid var(--border); } .rf-tour-caption h3 { font-size: .95rem; margin-bottom: 6px; }
  .rf-lightbox-head { position: sticky; left: 0; width: 100%; }
  .rf-lightbox-zoom span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rf-landing *, .rf-lightbox * { scroll-behavior: auto !important; transition: none !important; } }

.rf-join { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 32px 0 0; padding: 28px; background: var(--cream); border: 1px solid var(--border); border-radius: 12px; }
.rf-join h2 { font-size: 1.15rem; margin-bottom: 8px; }
.rf-join p { color: var(--text-muted); font-size: .85rem; line-height: 1.7; }
.rf-join .btn { width: auto; flex-shrink: 0; padding: 12px 24px; }
.rf-back-tour { display: block; margin: 0 auto 22px; min-height: 44px; }
.rf-landing[data-auth-view='true'] :is(.rf-hero, .rf-tour, .rf-join) { display: none; }
@media (max-width:700px) { .rf-join { flex-direction: column; align-items: start; padding:22px; } .rf-join .btn { width:100%; } }

.rf-offer { max-width: 620px; margin-top: 16px; color: var(--text-main); font-size: .9rem; line-height: 1.6; }
.rf-offer strong { color: #78571d; }
.rf-hero-actions .btn { white-space: normal; text-align: center; }
.rf-join .btn { max-width: 330px; white-space: normal; text-align: center; }
.rf-mobile-signup { display: none; }
.rf-lightbox-zoom .rf-preview-signup { margin-left: auto; background: var(--gold); color: var(--bg-dark); border-color: var(--gold); font-size: .8rem; font-weight: 700; }
@media (max-width: 700px) {
  .rf-landing .rf-shell { padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .rf-hero h2 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .rf-hero-actions .btn:first-child { flex-basis: 100%; min-height: 52px; }
  .rf-image-link img { width: 100%; height: auto; max-height: none; padding: 0; }
  .rf-picture > .rf-picture-nav { position: static; transform: none; padding: 10px 14px; background: var(--cream); }
  .rf-image-link::after { top: 8px; right: 8px; }
  .rf-mobile-signup { position: fixed; z-index: 25; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 20px #0000000d; }
  .rf-mobile-signup span { font-size: .78rem; line-height: 1.5; }
  .rf-mobile-signup strong { display: block; }
  .rf-mobile-signup .btn { width: auto; min-width: 120px; min-height: 48px; padding: 10px 16px; }
  .rf-landing[data-auth-view='true'] .rf-mobile-signup { display: none; }
}
