/* rodemap.app/start: one screen, one job, one main button. Shared --rm-* tokens only. No blur. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--rm-page);
  color: var(--rm-text);
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rm-current); outline-offset: 3px; }

.fr-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 720px; margin: 0 auto; }
.fr-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 18px; }
.fr-signin { color: var(--rm-muted); text-decoration: none; font-weight: 600; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }

.fr-main { max-width: 560px; margin: 0 auto; padding: 24px 20px 64px; }
.fr-screen { display: grid; gap: 20px; }
h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1:focus { outline: none; }
.fr-h2 { font-size: 20px; margin: 8px 0 0; font-weight: 750; }

.fr-form { display: grid; gap: 12px; }
.fr-label { font-weight: 700; color: var(--rm-muted); font-size: 14px; }
.fr-form input {
  width: 100%; min-height: 56px; padding: 0 16px; font: inherit; font-size: 17px;
  color: var(--rm-text); background: var(--rm-card); border: 1px solid var(--rm-ahead); border-radius: 14px;
}
.fr-form input::placeholder { color: var(--rm-muted); opacity: .8; }
.fr-form input:focus { border-color: var(--rm-current); outline: none; box-shadow: 0 0 0 3px var(--rm-glow); }

.fr-primary {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 20px;
  font: inherit; font-size: 17px; font-weight: 800; color: #04121A; background: var(--rm-gradient);
  border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
}
.fr-primary:disabled { opacity: .6; cursor: progress; }
.fr-text { justify-self: center; background: none; border: 0; color: var(--rm-muted); font: inherit; font-weight: 600; min-height: 44px; cursor: pointer; text-decoration: underline; }
.fr-note { margin: 0; color: var(--rm-muted); font-size: 14px; text-align: center; }
.fr-error { margin: 0; color: var(--rm-blocked); font-weight: 600; }

.fr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fr-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--rm-card); border-radius: 14px; }
.fr-step-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--rm-raised); color: var(--rm-muted); }
.fr-step[data-status="found"] .fr-step-icon { background: var(--rm-done); color: #04121A; }
.fr-step[data-status="working"] .fr-step-icon { background: var(--rm-current); color: #04121A; animation: fr-pulse 1s ease-in-out infinite; }
.fr-step-label { font-weight: 700; }
.fr-step-value { display: block; color: var(--rm-muted); font-size: 14px; overflow-wrap: anywhere; }
@keyframes fr-pulse { 50% { opacity: .55; } }

.fr-preview { position: relative; overflow: hidden; background: var(--rm-card); border: 1px solid var(--rm-raised); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.fr-preview-bar { position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--fr-brand, var(--rm-gradient)); }
.fr-preview-head { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-top: 6px; }
.fr-preview-head h1 { font-size: clamp(24px, 6.5vw, 32px); overflow-wrap: anywhere; }
.fr-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--rm-raised); display: grid; place-items: center; overflow: hidden; font-size: 24px; font-weight: 800; }
.fr-logo img { width: 48px; height: 48px; object-fit: contain; image-rendering: auto; }
.fr-kicker { margin: 0; color: var(--rm-muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fr-desc { margin: 0; color: var(--rm-muted); }
.fr-facts { margin: 0; display: grid; gap: 8px; }
.fr-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 14px; }
.fr-facts dt { color: var(--rm-muted); font-weight: 700; }
.fr-facts dd { margin: 0; overflow-wrap: anywhere; }

.fr-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fr-action { background: var(--rm-card); border-radius: 14px; padding: 16px; display: grid; gap: 6px; border-left: 4px solid var(--fr-brand-solid, var(--rm-current)); }
.fr-action h3 { margin: 0; font-size: 17px; }
.fr-action p { margin: 0; color: var(--rm-muted); font-size: 15px; }
.fr-worth { color: var(--rm-done) !important; font-weight: 700; }
.fr-action details { font-size: 14px; color: var(--rm-muted); }
.fr-action summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 600; }

@media (min-width: 900px) {
  .fr-main { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-step[data-status="working"] .fr-step-icon { animation: none; }
}
