/* ==========================================================================
   Account Recovery page - hero (an example case file) + the promises strip.
   Loaded only by /recovery/. Colours come from the styles.css tokens; green
   only ever means "step done", amber only "waiting".
   ========================================================================== */
.rc-hero {
  --rc-ok: #0b7a5a;   --rc-ok-bg: #e4f6ef;
  --rc-wait: #9a5b00; --rc-wait-bg: #fff4e0;
  --rc-mark: #cfe2ff;
  position: relative; overflow: clip;
  padding-top: var(--sp-7, 48px); padding-bottom: calc(var(--sp-8, 64px) + 12px);
  background:
    radial-gradient(45% 60% at 90% 35%, rgba(0, 122, 252, 0.12), transparent 70%),
    var(--surface);
}
.rc-hero::before {   /* faint ruled lines, like the page of a case file */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(0, 24, 60, 0.07) 31px 32px);
  -webkit-mask-image: radial-gradient(50% 70% at 76% 50%, #000 15%, transparent 72%);
          mask-image: radial-gradient(50% 70% at 76% 50%, #000 15%, transparent 72%);
}
.rc-hero .container { position: relative; }
.rc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8, 64px); align-items: center; margin-top: var(--sp-5, 24px); }
.rc-grid > * { min-width: 0; }
.rc-hero h1 { position: relative; z-index: 0; font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
.rc-hero h1 .rc-under { position: relative; white-space: nowrap; }
.rc-hero h1 .rc-under::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: 0.06em; height: 0.3em; z-index: -1;
  background: var(--rc-mark); border-radius: 3px; transform: rotate(-1deg);
}
.rc-hero .lede { margin-top: var(--sp-5, 24px); max-width: 60ch; }
.rc-hero .hero-actions { margin-top: var(--sp-6, 32px); }
.rc-trust { list-style: none; margin: var(--sp-6, 32px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-trust li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 500; color: var(--text-2);
}
.rc-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc-ok); }
.rc-trust li:last-child::before { background: var(--text-3); }

/* ---- the example case file ----------------------------------------------- */
.rc-visual { position: relative; padding: 8px 0 96px 28px; }
.rc-case {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 40px;
  box-shadow: 0 28px 56px -22px rgba(0, 24, 60, 0.25), 0 2px 6px rgba(0, 24, 60, 0.05);
}
.rc-case-head { display: flex; align-items: center; gap: 12px; }
.rc-plat {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f9b233, #e1306c 55%, #7b3fe4); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.rc-case-head b { display: block; font-size: 0.9rem; color: var(--text-1); }
.rc-case-head small { display: block; font-size: 0.74rem; color: var(--text-3); }
.rc-status {
  margin-left: auto; white-space: nowrap; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 4px 10px;
  color: var(--rc-wait); background: var(--rc-wait-bg);
}
.rc-meta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 14px 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--surface);
  font-size: 0.82rem; color: var(--text-1);
}
.rc-meta small { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.rc-meta code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); white-space: nowrap; }

.rc-time { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rc-time li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; }
.rc-time li::before {
  content: ""; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  position: relative; z-index: 1;
}
.rc-time li:not(:last-child)::after {  /* the line joining one step to the next */
  content: ""; position: absolute; left: 10px; top: 24px; bottom: -14px; border-left: 2px solid var(--line);
}
.rc-time li.done::before {
  background: var(--rc-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.rc-time li.done:not(:last-child)::after { border-left-color: var(--rc-ok); }
.rc-time li.now::before { background: #fff; border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft, #e3efff); animation: rcPulse 2.4s ease-in-out infinite; }
.rc-time li.now:not(:last-child)::after { border-left-style: dashed; border-left-color: var(--line-strong); }
.rc-time li.todo::before { background: #fff; border: 2px dashed var(--line-strong); }
.rc-time b { grid-column: 2; font-size: 0.88rem; font-weight: 650; color: var(--text-1); }
.rc-time li.todo b { color: var(--text-3); }
.rc-time time { grid-column: 3; grid-row: 1; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); padding-top: 2px; }
.rc-time li.now time { color: var(--accent); font-weight: 600; }
.rc-time span { grid-column: 2 / span 2; font-size: 0.78rem; line-height: 1.45; color: var(--text-2); }

.rc-never {
  position: absolute; left: 0; bottom: 26px; width: 330px; z-index: 2;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--text-1); color: #fff; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 20px 40px -14px rgba(0, 24, 60, 0.55);
  animation: rcIn 0.5s ease 0.5s both;
}
.rc-never svg { width: 18px; height: 18px; flex: 0 0 18px; color: #7fb4ff; margin-top: 1px; }
.rc-never b { display: block; font-size: 0.8rem; line-height: 1.35; }
.rc-never small { display: block; font-size: 0.72rem; color: #b8cbe6; margin-top: 2px; }
.rc-example { position: absolute; right: 0; bottom: 0; margin: 0; font-size: 0.75rem; color: var(--text-3); }

@keyframes rcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rcPulse { 50% { box-shadow: 0 0 0 7px var(--accent-soft, #e3efff); } }
@media (prefers-reduced-motion: reduce) { .rc-never, .rc-time li.now::before { animation: none; } }

/* ---- the six promises: an even grid instead of a wrapping row ------------ */
.rc-promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.rc-promises li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 6px 14px; font-size: 0.86rem; font-weight: 600; line-height: 1.35; color: var(--text-1);
}
.rc-promises li + li { border-left: 1px solid var(--line); }
.rc-promises svg {
  width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); color: var(--accent);
}
.rc-promises li:last-child svg { color: var(--text-3); }

@media (max-width: 1024px) {
  .rc-grid { grid-template-columns: 1fr; gap: var(--sp-7, 48px); }
  .rc-hero .hero-actions { justify-content: flex-start; }
  .rc-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .rc-promises { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .rc-promises li:nth-child(4) { border-left: 0; }
}
@media (max-width: 767px) {
  .rc-hero { padding-top: var(--sp-5, 24px); padding-bottom: var(--sp-7, 48px); }
  .rc-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .rc-hero h1 .rc-under { white-space: normal; }
  .rc-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .rc-hero .hero-actions .btn { width: 100%; max-width: none; }
  .rc-visual { padding: 0; }
  .rc-case { padding: 16px 16px 18px; }
  .rc-meta { flex-direction: column; align-items: flex-start; }
  .rc-never { position: relative; left: auto; bottom: auto; width: auto; margin-top: 12px; }
  .rc-example { position: static; margin-top: 12px; text-align: center; }
  .rc-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-promises li { flex-direction: row; text-align: left; padding: 6px 8px; font-size: 0.8rem; }
  .rc-promises li + li { border-left: 0; }
  .rc-promises svg { width: 32px; height: 32px; padding: 7px; flex: 0 0 32px; }
}
