/* Phase 2 restyle: /features/ and /for/<slug>/ (remote.com-inspired layout, own identity).
   Loaded from the templates' style block. Uses only tokens.css / ui.css (.v3 kit) values; nothing here
   redefines the kit. Prefix rf- = restyle features. All mock panels are decorative (aria-hidden). */

/* ------------------------------------------------------------------ hero */
.rf-hero { position: relative; isolation: isolate; overflow: clip; background: var(--canvas);
  padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 104px); }
.rf-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(34% 40% at 76% 80%, var(--blob-c), transparent 70%); }
.rf-hero-bg::before, .rf-hero-bg::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.rf-hero-bg::before { width: 48rem; height: 48rem; right: -14rem; top: -20rem; background: radial-gradient(circle, var(--blob-a), transparent 66%); }
.rf-hero-bg::after { width: 40rem; height: 40rem; left: -16rem; bottom: -22rem; background: radial-gradient(circle, var(--blob-b), transparent 66%); }
@media (prefers-reduced-motion: no-preference) {
  .rf-hero-bg::before { animation: rf-blob-a 16s ease-in-out infinite alternate; }
  .rf-hero-bg::after { animation: rf-blob-b 20s ease-in-out infinite alternate; }
  @keyframes rf-blob-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4rem, 3rem, 0) scale(1.1); } }
  @keyframes rf-blob-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(5rem, -2rem, 0) scale(.93); } }
}
.rf-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 64rem) { .rf-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 4vw, 72px); } }
.rf-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.rf-hero-copy .eyebrow, .rf-hero-copy .lede { margin: 0; }
.rf-hero .display-1 { margin: 0; max-width: 20ch; font-size: clamp(2.5rem, 1rem + 4.8vw, 4.25rem); line-height: .99; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.rf-hero .lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 34em; }
.rf-hero .cta-row { margin-top: 4px; }
.rf-free { margin: 0; font-size: .875rem; color: var(--muted); max-width: 40rem; }
.rf-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.rf-jump a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.rf-jump a:hover { border-color: var(--blue-line); box-shadow: 0 10px 24px -18px rgba(33, 44, 84, .5); }
@media (max-width: 40rem), (pointer: coarse) { .rf-jump a { min-height: var(--tap-min); } }

/* ------------------------------------------------------------------ mock panels (decorative CSS) */
.rf-win { width: 100%; max-width: 30rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.rf-win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8125rem; font-weight: 650; color: var(--ink); }
.rf-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.rf-win-bar i:nth-child(1) { background: var(--accent); }
.rf-win-bar span { margin-left: 8px; }
.rf-win-bar em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--muted); font-size: .75rem; }
.rf-win-body { display: grid; gap: 10px; padding: 14px; }
.rf-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); min-width: 0; }
.rf-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--grad); position: relative; overflow: hidden; }
.rf-thumb::after { content: ""; position: absolute; left: 7px; bottom: 7px; width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
.rf-thumb.t2 { background: #12151b; }
.rf-thumb.t3 { background: linear-gradient(135deg, var(--accent), #ff9a62); }
.rf-lines { flex: 1; display: grid; gap: 7px; min-width: 0; }
.rf-lines b { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.rf-lines b:nth-child(1) { width: 78%; background: var(--field-line); }
.rf-lines b:nth-child(2) { width: 52%; }
.rf-pill { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .6875rem; font-weight: 700; background: var(--bg-sunk); color: var(--ink); white-space: nowrap; }
.rf-pill.wait { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.rf-pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.rf-pill.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.rf-btns { display: flex; gap: 8px; padding: 0 14px 14px; }
.rf-btns span { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 650; background: var(--bg-sunk); color: var(--ink); }
.rf-btns span:first-child { background: var(--fill-ink); color: var(--on-fill-ink); }

.rf-stage { position: relative; display: flex; justify-content: center; min-width: 0; padding-bottom: 200px; }
.rf-cal-float { position: absolute; left: 6%; bottom: 0; width: 52%; max-width: 14rem; }
@media (max-width: 40rem) { .rf-cal-float { display: none; } .rf-stage { padding-bottom: 0; } }

.rf-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 12px 14px 14px; }
.rf-cal i { aspect-ratio: 1; border-radius: 6px; background: var(--bg-sunk); position: relative; }
.rf-cal i:nth-child(3n+2) { background: color-mix(in srgb, var(--blue) 16%, var(--paper)); }
.rf-cal i:nth-child(3n+2)::after { content: ""; position: absolute; left: 50%; bottom: 20%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }
.rf-cal i:nth-child(11n+5) { background: var(--accent-soft); }
.rf-cal i:nth-child(11n+5)::after { content: ""; position: absolute; left: 50%; bottom: 20%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.rf-cal-wide .rf-cal { gap: 6px; padding: 16px; }

.rf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 27rem; padding-bottom: 18px; }
.rf-tile { aspect-ratio: 4 / 5; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; box-shadow: var(--shadow-lg); min-width: 0; }
.rf-tile::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .9); margin-bottom: auto; }
.rf-tile b { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .92); width: 86%; }
.rf-tile b + b { width: 58%; background: rgba(255, 255, 255, .55); }
.rf-tile.a { background: var(--grad); }
.rf-tile.b { background: #12151b; transform: translateY(18px); }
.rf-tile.c { background: linear-gradient(150deg, var(--accent), #ff9a62); }

.rf-compose { padding: 16px; display: grid; gap: 14px; }
.rf-compose .rf-box { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.rf-compose .rf-box b { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.rf-compose .rf-box b:nth-child(1) { width: 92%; background: var(--field-line); }
.rf-compose .rf-box b:nth-child(2) { width: 74%; }
.rf-compose .rf-box b:nth-child(3) { width: 40%; }
.rf-send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.rf-send .rf-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--blue); font-weight: 650; }

.rf-flow { display: grid; gap: 10px; width: 100%; max-width: 22rem; }
.rf-flow-step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-weight: 650; color: var(--ink); font-size: .9375rem; box-shadow: var(--shadow); }
.rf-flow-step small { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.rf-flow-step::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.rf-flow-step.you::before { background: var(--accent); }
.rf-flow-arrow { justify-self: center; width: 2px; height: 14px; background: var(--field-line); border-radius: 1px; }

.rf-art { background: radial-gradient(60% 70% at 85% 10%, var(--blob-a), transparent 70%), radial-gradient(50% 60% at 5% 100%, var(--blob-b), transparent 70%), var(--bg-warm); overflow: hidden; }
.rf-art .rf-win { max-width: 26rem; }

/* ------------------------------------------------------------------ sections */
.rf-stats-wrap { padding: clamp(32px, 5vw, 56px) 0; border-block: 1px solid var(--line); background: var(--canvas); }
.rf-step-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 48rem; }
.rf-step-head .display-2 { margin: 0; font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3rem); letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
@media (min-width: 52rem) { .rf-flip .feature-art { order: 2; } }
.v3 .rf-lead { margin-bottom: clamp(28px, 4vw, 48px); }
.rf-lead .feature-copy .meta { margin: 0; font-size: .8125rem; color: var(--muted); }
.rf-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .rf-grid.rf-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rf-grid .card { padding: 24px; }
.rf-grid .card .meta { color: var(--blue); font-weight: 600; }
.rf-grid .card h3 { font-size: 1.125rem; }
.rf-kinds { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .rf-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rf-kinds .card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.rf-kinds .card h3 { font-size: 1.375rem; font-weight: 750; letter-spacing: -.03em; margin: 0; }
.rf-kinds .card h3 a { color: var(--ink); }
.rf-more { margin: 24px 0 0; font-size: .9375rem; }
.rf-more a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ use-case pages */
.rf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .rf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rf-steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.rf-steps .rf-n { font-size: 3.25rem; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.rf-steps h3 { margin: 0; font-size: 1.25rem; }
.rf-steps p { font-size: 1rem; }
.rf-video { max-width: 60rem; margin-inline: auto; }
.rf-video .video-frame { border-radius: 22px; box-shadow: var(--shadow-lg); }
.rf-limits p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--text); max-width: 32em; text-wrap: pretty; }
.rf-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.rf-plan { padding: 22px; display: flex; flex-direction: column; gap: 5px; }
.rf-plan b { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.rf-plan .rf-price { font-size: 2.25rem; line-height: 1.05; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rf-plan .rf-price small { font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.rf-plan span { font-size: .875rem; color: var(--muted); }
.rf-plan.is-free { border-color: var(--blue-line); background: var(--blue-soft); }
.rf-annual { margin: 18px 0 0; font-size: .9375rem; color: var(--text); }
.rf-annual strong { color: var(--ink); font-weight: 650; }
