/* =====================================================================
   Reflow — site layout & components
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--rf-font);
  color: var(--rf-text);
  background: var(--rf-white);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rf-primary-700); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* every text block: KO/EN/DE/RTL never overflow */
h1, h2, h3, h4, p, li, a, span, button {
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-width: 0;
}

.container { width: 100%; max-width: var(--rf-container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  font-weight: 700; font-size: 11px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--rf-primary-700); margin-bottom: 14px;
}
.h1 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.42; font-size: clamp(30px, 6vw, 56px); color: var(--rf-ink); }
.h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; font-size: clamp(24px, 5vw, 40px); color: var(--rf-ink); }
.sub { font-weight: 600; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; color: var(--rf-text-soft); }
.body { font-size: 16px; line-height: 1.7; color: var(--rf-text); }
em { font-style: normal; color: var(--rf-primary-600); box-shadow: var(--rf-mint-underline); }

/* wordmark */
.wordmark { font-weight: 800; letter-spacing: -0.01em; font-size: 22px; color: var(--rf-ink); display: inline-flex; align-items: center; }
.wordmark .re { color: var(--rf-ink); }
.wordmark .flow { color: var(--rf-primary-600); }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; margin-right: 9px; }

/* ---------- buttons (cobalt only) ---------- */
/* unified height-based sizing so form inputs and buttons line up */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; font-weight: 700; font-size: 15px; line-height: 1;
  border-radius: var(--rf-radius-md); border: 1.5px solid transparent;
  transition: transform .18s var(--rf-ease), box-shadow .18s var(--rf-ease), background .18s, border-color .18s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--rf-primary-600); color: #fff; box-shadow: 0 8px 18px rgba(37,99,235,.20); }
.btn--primary:hover { background: var(--rf-primary-700); transform: translateY(-2px); box-shadow: 0 12px 22px rgba(37,99,235,.28); }
/* secondary = white card button for the 2nd hero action */
.btn--secondary { background: var(--rf-white); color: var(--rf-ink); border-color: var(--rf-line); box-shadow: var(--rf-shadow-xs); }
.btn--secondary:hover { border-color: var(--rf-primary-600); color: var(--rf-primary-700); transform: translateY(-2px); }
/* quiet = low-emphasis form submit (sits next to the email field) */
.btn--quiet { background: var(--rf-surface-2); color: var(--rf-primary-800); border-color: var(--rf-line); }
.btn--quiet:hover { background: var(--rf-primary-50); border-color: var(--rf-primary-600); }
.btn--ghost { background: transparent; color: var(--rf-primary-700); border-color: var(--rf-line); }
.btn--ghost:hover { border-color: var(--rf-primary-600); background: var(--rf-primary-50); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
/* install CTA — present but pending while in Web Store review */
.btn--install { position: relative; }
.btn--install[data-install-pending]::after { content: "심사중"; margin-left: 2px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 8px; }
.btn--google { background: #fff; color: #3c4043; border-color: #dadce0; font-weight: 600; }
.btn--google:hover { box-shadow: var(--rf-shadow-md); }
.btn--google .g { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }

/* ---------- pre-register (waitlist) form ---------- */
.waitlist-wrap { max-width: 480px; }
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input { flex: 1; min-width: 200px; height: 52px; border: 1.5px solid var(--rf-line); border-radius: var(--rf-radius-md); padding: 0 16px; font-size: 16px; background: var(--rf-white); color: var(--rf-ink); }
.waitlist input::placeholder { color: var(--rf-muted-soft); }
.waitlist input:focus { outline: none; border-color: var(--rf-primary-600); box-shadow: 0 0 0 3px var(--rf-primary-100); }
.waitlist .btn { flex: none; }
.waitlist__msg { margin-top: 12px; font-weight: 700; font-size: 14px; }
.waitlist__msg.ok { color: var(--rf-success); }
.waitlist__msg.err { color: var(--rf-danger); }
.cta .waitlist-wrap { margin-inline: auto; }
.cta .waitlist input { background: rgba(255,255,255,.06); border-color: #334155; color: #fff; }
.cta .waitlist input::placeholder { color: #94a3b8; }
.cta .waitlist input:focus { box-shadow: 0 0 0 3px rgba(37,99,235,.4); }
.cta .waitlist__msg.ok { color: var(--rf-cyan-300); }
.cta__note { text-align: center; margin-top: 16px; font-size: 13px; color: #94a3b8; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ts-wrap { margin-top: 8px; }
.ts-wrap:empty { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--rf-nav-h);
  background: color-mix(in srgb, var(--rf-white) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rf-line); }
.nav .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--rf-text-soft); font-weight: 600; font-size: 14px; }
.nav__links a:hover { color: var(--rf-primary-700); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--rf-line);
  background: var(--rf-white); color: var(--rf-text-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.icon-btn:hover { border-color: var(--rf-primary-600); color: var(--rf-primary-700); }
.nav__burger { display: none; }
@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__links { position: fixed; top: var(--rf-nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--rf-white); padding: 6px 24px 16px;
    border-bottom: 1px solid var(--rf-line); box-shadow: var(--rf-shadow-lg);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .18s var(--rf-ease), transform .18s var(--rf-ease); }
  body.nav-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--rf-line-soft); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 110px);
  background: radial-gradient(1200px 600px at 78% -8%, var(--rf-surface-tint), transparent 60%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 20px; }
.hero .sub { margin-bottom: 26px; max-width: 560px; }
.hero .trust { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--rf-text-soft); }
.hero .trust .shield { color: #0d9488; }
@media (max-width: 920px) {
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero__stage-wrap { order: 2; width: 100%; min-width: 0; overflow: hidden; }
  #hero-stage { width: 100%; max-width: 100%; }
}

/* ---------- faux browser stage ---------- */
.stage { border-radius: 4px; overflow: hidden; background: #fff;
  box-shadow: var(--rf-shadow-lg); border: 1px solid var(--rf-line); position: relative; }
:root[data-theme="dark"] .stage { background: #0d1626; }
.stage__bar { height: 40px; background: #dee1e6; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
:root[data-theme="dark"] .stage__bar { background: #1b2436; }
/* Windows-style window controls (min / max / close) on the right */
.stage__dots { display: flex; align-items: center; gap: 14px; order: 9; margin-left: 12px; flex: none; color: #9aa0a6; }
.stage__dots i { width: auto; height: auto; background: none; border-radius: 0; }
.stage__dots i:nth-child(1) { width: 10px; height: 0; border-bottom: 1.6px solid currentColor; }
.stage__dots i:nth-child(2) { width: 9px; height: 9px; border: 1.6px solid currentColor; border-radius: 1px; }
.stage__dots i:nth-child(3) { width: 11px; height: 11px; position: relative; }
.stage__dots i:nth-child(3)::before, .stage__dots i:nth-child(3)::after { content: ""; position: absolute; top: 50%; left: 0; width: 11px; height: 1.6px; background: currentColor; }
.stage__dots i:nth-child(3)::before { transform: translateY(-50%) rotate(45deg); }
.stage__dots i:nth-child(3)::after { transform: translateY(-50%) rotate(-45deg); }
.stage__omni { flex: 1; min-width: 0; height: 24px; background: #fff; border-radius: 999px; display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: #5f6368; gap: 7px; overflow: hidden; white-space: nowrap; }
:root[data-theme="dark"] .stage__omni { background: #0b1220; color: #94a3b8; }
.stage__rec { font-size: 11px; font-weight: 800; color: #fff; background: var(--rf-primary-600); border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 5px; }
.stage__rec i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.stage__body { padding: 18px; min-height: 300px; position: relative; background: var(--rf-white); }
.dash-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dash-title { font-weight: 800; font-size: 15px; color: var(--rf-ink); }
.dash-tag { font-size: 11px; font-weight: 700; color: var(--rf-primary-700); background: var(--rf-primary-50); padding: 3px 9px; border-radius: 999px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.dash-cell { height: 54px; border-radius: 8px; background: var(--rf-surface-2); border: 1px solid var(--rf-line); }
.dash-list { margin-top: 12px; display: grid; gap: 8px; }
.dash-li { height: 34px; border-radius: 8px; background: var(--rf-surface-1); border: 1px solid var(--rf-line); display: flex; align-items: center; padding: 0 12px; gap: 10px; }
.dash-li .lbl { height: 9px; width: 40%; background: var(--rf-line); border-radius: 4px; }
.dash-btn { font-size: 12px; font-weight: 700; color: #fff; background: var(--rf-primary-600); border: none; border-radius: 8px; padding: 8px 14px; }
.dash-btn.is-target { position: relative; }

/* selector chip (mono) */
.selchip { font-family: var(--rf-mono); font-size: 11px; font-weight: 600; color: var(--rf-primary-800);
  background: var(--rf-primary-50); border: 1px solid var(--rf-primary-100); border-radius: 6px; padding: 2px 7px; display: inline-block; }

/* ---------- Reflow recorder mock: page being recorded + side panel ---------- */
.rfrec__body { display: flex; min-height: 300px; background: #fff; }
.rfrec__page { flex: 0 0 42%; min-width: 0; padding: 16px; border-right: 1px solid var(--rf-line); }
.rfrec__pgtitle { font-weight: 800; font-size: 13px; color: var(--rf-ink); margin-bottom: 14px; }
.rfrec__pgrow { height: 30px; border-radius: 7px; background: var(--rf-surface-1); border: 1px solid var(--rf-line); margin-bottom: 10px; }
.rfrec__click { font-size: 12px; font-weight: 700; color: #fff; background: var(--rf-primary-600); border: none; border-radius: 8px; padding: 8px 16px;
  box-shadow: 0 0 0 2px rgba(37,99,235,1), 0 0 0 5px rgba(56,189,248,.45); } /* live recording highlight (cobalt + cyan) */
.rfpanel { flex: 1; min-width: 0; background: var(--rf-surface-1); padding: 12px; display: flex; flex-direction: column; gap: 9px; }
:root[data-theme="dark"] .rfrec__body, :root[data-theme="dark"] .rfrec__page { background: #0d1626; }
:root[data-theme="dark"] .rfpanel { background: #0b1220; }
.rfpanel__tabs { display: flex; gap: 6px; }
.rfpanel__tabs span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 7px; border-radius: 8px; background: #eef2f9; color: var(--rf-muted); }
.rfpanel__tabs span.on { background: var(--rf-primary-600); color: #fff; }
.rfpanel__steps { display: flex; flex-direction: column; gap: 8px; }
.rfstep { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--rf-line); border-radius: 10px; padding: 8px 9px; }
.rfstep .n { width: 21px; height: 21px; border-radius: 6px; background: var(--rf-primary-100); color: var(--rf-primary-700); font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.rfstep .thumb { width: 38px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, var(--rf-surface-2), #cbd5e1); flex: none; }
.rfstep .t { font-size: 12px; font-weight: 700; color: var(--rf-ink); }
.rfstep .m { font-size: 10.5px; color: var(--rf-muted); }
.rfstep.new { border-color: var(--rf-primary-600); box-shadow: 0 0 0 3px var(--rf-primary-100); }
@media (max-width: 560px) {
  .rfrec__body { flex-direction: column; }
  .rfrec__page { flex: none; border-right: none; border-bottom: 1px solid var(--rf-line); }
}

/* ---------- the scroll-driven spotlight overlay (tour) ---------- */
#rf-tour { position: fixed; inset: 0; z-index: 2147483647; pointer-events: none; contain: strict; }
.rf-spotlight {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  --spot-c: var(--rf-spot-record); /* default = recording (cobalt) */
  border: 3px solid rgb(var(--spot-c)); border-radius: var(--rf-radius-spot); box-sizing: border-box;
  box-shadow: 0 0 0 9999px rgba(15,23,42,0.13), 0 0 0 3px rgba(var(--spot-c),0.5), 0 10px 26px rgba(15,23,42,0.28);
  opacity: 0; will-change: transform;
  transition: transform .36s var(--rf-ease), width .36s var(--rf-ease), height .36s var(--rf-ease), opacity .2s var(--rf-ease), border-color .25s var(--rf-ease);
}
.rf-spotlight.is-on { opacity: 1; }
.rf-spotlight.pulse { animation: rf-pulse .6s var(--rf-ease) 1; }
@keyframes rf-pulse {
  0% { box-shadow: 0 0 0 9999px rgba(15,23,42,0.13), 0 0 0 3px rgba(var(--spot-c),0.5), 0 10px 26px rgba(15,23,42,0.28); }
  50% { box-shadow: 0 0 0 9999px rgba(15,23,42,0.13), 0 0 0 7px rgba(var(--spot-c),0.65), 0 10px 26px rgba(15,23,42,0.28); }
  100% { box-shadow: 0 0 0 9999px rgba(15,23,42,0.13), 0 0 0 3px rgba(var(--spot-c),0.5), 0 10px 26px rgba(15,23,42,0.28); }
}
.rf-tooltip {
  position: fixed; top: 0; left: 0; z-index: 2147483646; pointer-events: none;
  --spot-c: var(--rf-spot-record);
  background: var(--rf-tooltip-bg); color: var(--rf-tooltip-fg); border-top: 3px solid rgb(var(--spot-c));
  font-weight: 700; font-size: 12px; line-height: 1.3;
  padding: 6px 11px; border-radius: 8px; max-width: 250px;
  white-space: normal; word-break: keep-all; overflow-wrap: anywhere;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22); opacity: 0; transition: opacity .12s var(--rf-ease), transform .36s var(--rf-ease);
}
.rf-tooltip.is-on { opacity: 1; }
.rf-skip { position: fixed; right: 16px; bottom: 16px; z-index: 2147483647; pointer-events: auto;
  font-size: 12.5px; font-weight: 700; color: var(--rf-text-soft); background: var(--rf-white);
  border: 1px solid var(--rf-line); border-radius: 999px; padding: 8px 14px; box-shadow: var(--rf-shadow-md); opacity: .92; }
.rf-skip:hover { color: var(--rf-primary-700); border-color: var(--rf-primary-600); }
body.tour-off #rf-tour { display: none; }

/* ---------- coverage band ---------- */
.coverage { background: var(--rf-surface-1); text-align: center; }
.magic { font-weight: 800; font-size: clamp(22px, 4vw, 34px); color: var(--rf-primary-700); letter-spacing: -0.02em; margin-bottom: 8px; }
.magic small { display: block; font-size: 14px; font-weight: 600; color: var(--rf-muted); letter-spacing: 0; margin-top: 6px; }
.logos { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; margin-top: 26px; }
.logos span { font-weight: 800; font-size: 15px; color: var(--rf-muted); letter-spacing: -0.01em; }
.logos .bc { font-size: 19px; color: var(--rf-text); }

/* ---------- problem section (문제 먼저) ---------- */
.problem { background: var(--rf-surface-1); }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 880px) { .prob-grid { grid-template-columns: 1fr; } }
.prob__stat { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--rf-primary-600); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.prob h3 { font-size: 16px; font-weight: 800; color: var(--rf-ink); margin-bottom: 8px; }
.prob p { font-size: 14.5px; color: var(--rf-text-soft); line-height: 1.6; }
.prob__bridge { margin-top: 30px; font-size: 17px; font-weight: 700; color: var(--rf-ink); max-width: 760px; line-height: 1.6; }

/* ---------- generic feature section ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feat--rev .feat__media { order: -1; }
.feat__list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 22px; }
.feat__list li { display: flex; gap: 11px; font-size: 15.5px; color: var(--rf-text); }
.feat__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px;
  background: var(--rf-primary-50); border: 1px solid var(--rf-primary-100);
  background-image: linear-gradient(var(--rf-primary-600),var(--rf-primary-600)); background-size: 9px 2px; background-position: center; background-repeat: no-repeat; }
@media (max-width: 880px) { .feat { grid-template-columns: 1fr; } .feat--rev .feat__media { order: 0; } }

.card { background: var(--rf-white); border: 1px solid var(--rf-line); border-radius: var(--rf-radius-spot);
  padding: 26px; box-shadow: var(--rf-shadow-sm); transition: transform .18s var(--rf-ease), box-shadow .18s var(--rf-ease), border-color .18s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--rf-shadow-md); border-color: var(--rf-primary-600); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step__n { width: 38px; height: 38px; border-radius: 50%; background: var(--rf-primary-600); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 800; color: var(--rf-ink); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--rf-text-soft); }
.step .selchip { margin-top: 12px; }

/* ---------- mode toggle widget ---------- */
.mode { display: inline-flex; gap: 8px; padding: 6px; background: var(--rf-surface-2); border-radius: 999px; margin-top: 18px; }
.mode button { border: none; background: transparent; color: var(--rf-text-soft); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; transition: .15s; }
.mode button.on { background: #fff; color: var(--rf-ink); box-shadow: var(--rf-shadow-xs); }
.demo-box { margin-top: 18px; position: relative; height: 120px; border-radius: var(--rf-radius-md); background: var(--rf-surface-1); border: 1px solid var(--rf-line); display: flex; align-items: center; justify-content: center; }
.demo-target { font-size: 13px; font-weight: 700; color: var(--rf-text); background: #fff; border: 1px solid var(--rf-line); border-radius: 8px; padding: 10px 18px; transition: box-shadow .2s var(--rf-ease); }
.demo-target.lit { box-shadow: 0 0 0 3px var(--mode-c, var(--rf-mode-normal)), 0 0 0 6px color-mix(in srgb, var(--mode-c, var(--rf-mode-normal)) 25%, transparent); }

/* input pills */
.pill-demo { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.field { position: relative; flex: 1; min-width: 220px; }
.field input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--rf-line); padding: 0 14px; font-size: 14px; background: #fff; color: var(--rf-ink); }
.field .pill { position: absolute; top: -14px; left: 8px; color: #fff; font-weight: 700; font-size: 12px; line-height: 1.3; padding: 4px 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.field .pill.value { background: var(--rf-pill-value); }
.field .pill.lock { background: var(--rf-pill-sensitive); }

/* replay section (orange beat) */
.replay { background: var(--rf-dark); color: #fff; }
.replay .h2, .replay .eyebrow { color: #fff; }
.replay .eyebrow { color: var(--rf-cyan-300); }
.replay .sub { color: #cbd5e1; }
.replay .feat__list li { color: #e2e8f0; }
.replay .feat__list li::before { background: rgba(37,99,235,.18); border-color: rgba(96,165,250,.35); }
.replay .stage { border-color: #1e293b; }
.replay-demo { position: relative; }
.replay-demo .scrim { position: absolute; inset: 0; background: var(--rf-scrim); border-radius: 0 0 4px 4px; }
.replay-demo .lit-target { position: relative; z-index: 3; border: 3px solid var(--rf-orange); border-radius: 12px; box-shadow: 0 0 0 3px var(--rf-orange-glow), 0 10px 24px rgba(0,0,0,.4); }
.replay-demo .replay-target { position: relative; z-index: 3; display: inline-block; }
.replay-demo .tip { position: absolute; left: 0; bottom: calc(100% + 10px); white-space: nowrap; z-index: 4; background: var(--rf-orange); color: #fff; font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.replay-demo .vhint { position: absolute; z-index: 4; background: var(--rf-pill-value); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 9px; border-radius: 8px; }

/* insert rail */
.rail { display: grid; gap: 0; max-width: 420px; }
.rail .ic { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--rf-line); border-radius: 12px; padding: 11px 13px; }
.rail .ic .n { width: 24px; height: 24px; border-radius: 7px; background: var(--rf-primary-100); color: var(--rf-primary-700); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.rail .ic .t { font-size: 13.5px; font-weight: 700; color: var(--rf-ink); }
.rail .ic .m { font-size: 11px; color: var(--rf-muted); }
.rail .slot { display: flex; justify-content: center; padding: 7px 0; }
.rail .slot .pill { border: 1px dashed rgba(37,99,235,.45); color: var(--rf-primary-700); font-weight: 700; font-size: 11.5px; padding: 4px 14px; border-radius: 999px; }
.rail .slot.active .pill { background: var(--rf-primary-600); color: #fff; border-style: solid; }
.insert-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--rf-primary-600); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 13px; border-radius: 12px; margin-bottom: 12px; }
.insert-banner button { border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: 11px; padding: 5px 11px; border-radius: 999px; }

/* export doc */
.doc { background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-radius-md); padding: 18px; box-shadow: var(--rf-shadow-md); position: relative; overflow: hidden; }
.doc .watermark { position: absolute; right: -30px; bottom: -40px; font-size: 200px; font-weight: 900; line-height: 1;
  background: var(--rf-grad-wave); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .08; }
.doc-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.doc-step { border: 1px solid var(--rf-line); border-radius: 10px; overflow: hidden; }
.doc-step .ss { height: 86px; background: var(--rf-surface-2); position: relative; }
.doc-step .ss .call { position: absolute; border: 2.5px solid var(--rf-orange); border-radius: 8px; box-shadow: 0 0 0 3px var(--rf-orange-glow); }
.doc-step .meta { padding: 10px; }
.doc-step .meta .b { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--rf-primary-600); border-radius: 999px; padding: 2px 9px; }
.doc-step .meta .t { font-size: 12.5px; font-weight: 700; color: var(--rf-ink); margin-top: 7px; }
.export-menu { margin-top: 16px; display: inline-flex; gap: 8px; }
.export-menu .opt { font-size: 12px; font-weight: 800; color: var(--rf-text); background: var(--rf-surface-2); border: 1px solid var(--rf-line); border-radius: 8px; padding: 7px 13px; }

/* cloud band */
.cloud { background: var(--rf-dark); color: #fff; }
.cloud .h2, .cloud .eyebrow { color: #fff; }
.cloud .eyebrow { color: var(--rf-cyan-300); }
.cloud .sub { color: #cbd5e1; }
.cloud-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 880px) { .cloud-cards { grid-template-columns: 1fr; } }
.cloud-card { background: #0e1626; border: 1px solid #1e293b; border-radius: 14px; padding: 20px; }
.cloud-card h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.cloud-card p { color: #94a3b8; font-size: 14px; }
.sync-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--rf-synced); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); border-radius: 999px; padding: 4px 11px; }
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--rf-synced); }
.libcard { display: flex; align-items: center; gap: 10px; background: #0b1220; border: 1px solid #1e293b; border-radius: 10px; padding: 9px 11px; margin-top: 10px; }
.libcard .fav { width: 28px; height: 28px; border-radius: 7px; background: var(--rf-grad-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; flex: none; }
.libcard .run { margin-left: auto; font-size: 11px; font-weight: 800; color: #fff; background: var(--rf-primary-600); border-radius: 999px; padding: 4px 11px; }

/* enterprise band */
.ent { background: var(--rf-dark-2); color: #fff; }
.ent .h2 { color: #fff; }
.ent .eyebrow { color: var(--rf-cyan-300); }
.ent .sub { color: #cbd5e1; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border: 1px solid #1e293b; border-radius: 14px; padding: 22px; background: rgba(255,255,255,.02); }
.pillar h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.pillar p { color: #94a3b8; font-size: 14px; }

/* use cases */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 760px) { .uc-grid { grid-template-columns: 1fr; } }
.uc { }
.uc .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--rf-primary-50); border: 1px solid var(--rf-primary-100); display: flex; align-items: center; justify-content: center; color: var(--rf-primary-700); margin-bottom: 14px; }
.uc h3 { font-size: 17px; font-weight: 800; color: var(--rf-ink); margin-bottom: 8px; }
.uc p { font-size: 14.5px; color: var(--rf-text-soft); }
.uc .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.uc .tags span { font-size: 11px; font-weight: 700; color: var(--rf-primary-700); background: var(--rf-primary-50); border: 1px solid var(--rf-primary-100); border-radius: 999px; padding: 3px 10px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border: 1px solid var(--rf-line); border-radius: 14px; background: var(--rf-white); margin-bottom: 10px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: none; padding: 16px 18px; font-size: 16px; font-weight: 700; color: var(--rf-ink); display: flex; align-items: center; gap: 12px; }
.faq__q .chev { margin-left: auto; color: var(--rf-primary-600); transition: transform .2s var(--rf-ease); font-weight: 800; }
.faq__item.open .faq__q .chev { transform: rotate(90deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s var(--rf-ease); }
.faq__a-inner { padding: 0 18px 16px; font-size: 15px; color: var(--rf-text-soft); line-height: 1.65; white-space: pre-line; }

/* pricing / CTA */
.cta { background: var(--rf-dark); color: #fff; position: relative; text-align: center; border-top: 3px solid transparent; border-image: var(--rf-grad-gate) 1; }
.cta .h2 { color: #fff; }
.cta .sub { color: #cbd5e1; max-width: 620px; margin: 14px auto 0; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 38px auto 0; text-align: left; }
@media (max-width: 680px) { .price-cards { grid-template-columns: 1fr; } }
.price { background: #0e1626; border: 1px solid #1e293b; border-radius: 16px; padding: 24px; }
.price.featured { border-color: var(--rf-primary-600); }
.price h3 { color: #fff; font-size: 18px; font-weight: 800; }
.price .tag { font-size: 13px; color: var(--rf-cyan-300); font-weight: 700; margin: 4px 0 16px; }
.price ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 20px; }
.price li { color: #cbd5e1; font-size: 14px; display: flex; gap: 9px; }
.price li::before { content: "–"; color: var(--rf-primary-500); font-weight: 800; }
/* success green — NOT orange (orange is reserved for the spotlight only) */
.guide-done { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 800; color: var(--rf-synced); font-size: 14px; }

/* footer */
.footer { background: var(--rf-dark); color: #cbd5e1; border-top: 3px solid transparent; border-image: var(--rf-grad-gate) 1; padding-block: 56px 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.footer a { display: block; color: #94a3b8; font-size: 13.5px; margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .brand p { color: #94a3b8; font-size: 13.5px; margin-top: 12px; max-width: 280px; }
.footer .wordmark .re { color: #f8fafc; }
.footer__logo { width: 44px; height: 44px; border-radius: 11px; }
.footer__corp { margin-top: 14px; font-size: 12.5px; line-height: 1.75; color: #94a3b8; max-width: 340px; }
.footer__corp b { color: #cbd5e1; font-weight: 800; }
.footer__corp a { color: #94a3b8; }
.footer__corp a:hover { color: #fff; }
.footer__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 12.5px; color: #64748b; }
.footer__bar .sp { margin-left: auto; display: flex; gap: 10px; }

/* reduced motion: snap everything */
@media (prefers-reduced-motion: reduce) {
  .rf-spotlight, .rf-tooltip { transition: opacity .01s linear !important; }
  .rf-spotlight.pulse { animation: none; }
  .card, .btn, .faq__a, .demo-target { transition: none !important; }
  .hero-spot { transition: none !important; }
}

/* ---------- hero faux-browser auto-loop spotlight ---------- */
.hero-spot { position: absolute; top: 0; left: 0; width: 10px; height: 10px; pointer-events: none;
  border: 3px solid var(--rf-orange); border-radius: 12px; box-sizing: border-box; opacity: 0; z-index: 6;
  box-shadow: 0 0 0 3px var(--rf-orange-glow), 0 8px 20px rgba(15,23,42,.28);
  transition: transform .5s var(--rf-ease), width .5s var(--rf-ease), height .5s var(--rf-ease), opacity .25s, border-color .25s, box-shadow .25s; }
.hero-spot.on { opacity: 1; }
.hero-spot[data-mode="record"] { border-color: var(--rf-primary-600); box-shadow: 0 0 0 3px rgba(37,99,235,.28), 0 8px 20px rgba(15,23,42,.22); }
.hero-spot[data-mode="replay"], .hero-spot[data-mode="export"] { border-color: var(--rf-orange); box-shadow: 0 0 0 3px var(--rf-orange-glow), 0 8px 20px rgba(15,23,42,.28); }
.hero-cap { position: absolute; left: 14px; bottom: 12px; z-index: 7; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(15,23,42,.82); border-radius: 999px; padding: 6px 13px; pointer-events: none; }

/* ---------- splash (one-time, skippable) ---------- */
#rf-splash { position: fixed; inset: 0; z-index: 2147483647; display: none; align-items: center; justify-content: center; flex-direction: column;
  background: rgba(20,20,25,0.95); opacity: 0; transition: opacity .8s ease-out; cursor: pointer; }
#rf-splash.show { display: flex; animation: rf-splash-in .4s ease-in forwards; }
#rf-splash.hide { opacity: 0; }
@keyframes rf-splash-in { from { opacity: 0; } to { opacity: 1; } }
#rf-splash img { width: 132px; height: 132px; border-radius: 26px; margin-bottom: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
#rf-splash .t { color: #e0e0e0; font-weight: 600; font-size: 22px; letter-spacing: 0.04em; }
#rf-splash .skip { position: fixed; top: 18px; right: 18px; color: #cbd5e1; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; }

/* ---------- a11y: visible focus ring (WCAG 2.4.7) ---------- */
:focus-visible { outline: 2px solid var(--rf-primary-600); outline-offset: 2px; border-radius: 4px; }
.replay :focus-visible, .cloud :focus-visible, .ent :focus-visible, .cta :focus-visible, .footer :focus-visible { outline-color: var(--rf-cyan-300); }

/* ---------- hero refinements ---------- */
.hero__h1 { line-height: 1.25; }
.hero__micro { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--rf-muted); }
.hero__stage-wrap { min-width: 0; }
.stage { max-width: 100%; }
/* the decorative hero dashboard: keep its internals inside the narrow stage on phones */
@media (max-width: 560px) {
  #hero-stage { max-width: 330px !important; }
  #hero-stage .stage__body { padding: 14px; }
  #hero-stage .dash-grid { gap: 8px; }
  #hero-stage .export-menu { display: none; }
  #hero-stage .dash-cell { height: 44px; }
  #hero-stage .stage__rec { display: none; }
}

/* ---------- social-proof strip ---------- */
.proof { background: var(--rf-white); border-bottom: 1px solid var(--rf-line); }
.proof__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof__item { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; padding: 6px; }
.proof__item b { font-size: 16px; font-weight: 800; color: var(--rf-ink); }
.proof__item span { font-size: 12.5px; color: var(--rf-muted); }
@media (max-width: 680px) { .proof__row { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }

/* ---------- mobile sticky install bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta { display: flex; align-items: center; justify-content: center; position: fixed;
    left: 12px; right: 12px; bottom: 12px; z-index: 90; background: var(--rf-primary-600); color: #fff;
    font-weight: 800; font-size: 15px; padding: 14px; border-radius: 12px; box-shadow: var(--rf-shadow-brand); }
  /* the scroll spotlight is desktop-only — JS removes it, this is belt-and-suspenders */
  #rf-tour, .rf-skip { display: none !important; }
  body { padding-bottom: 76px; } /* room for the sticky bar */
}
