/* ==========================================================================
   MyQRSearch 2.0 — design system
   Editorial / warm-technical. DM Serif Display + Raleway, green "found" accent,
   one amber spark, soft curves. Scoped under body.rf2 so it never touches the
   authenticated app / admin styling.
   ========================================================================== */

:root {
    --brand: #1b2ce0;
    --brand-deep: #141a8f;
    --ink: #121a3d;
    --ink-soft: #3c4568;
    --ink-deep: #10162e;
    --muted: #6b7492;
    --line: #e8ebf5;
    --paper: #f8f8f3;
    --cream: #edf0e6;
    --found: #0e7a5f;
    --found-deep: #0a5c48;
    --found-tint: #e8f3ee;
    --found-bright: #4fc39b;
    --spark: #f2a516;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 16px rgba(20, 30, 90, .06);
    --shadow: 0 14px 36px rgba(20, 30, 90, .10);
    --grad: linear-gradient(135deg, #171f6b 0%, #2130c4 52%, #0a93e2 100%);
}

/* ---- base ---------------------------------------------------------------- */
body.rf2 { margin: 0; font-family: 'Raleway', sans-serif; color: var(--ink-soft); background: #fff; -webkit-font-smoothing: antialiased; }
body.rf2 *, body.rf2 *::before, body.rf2 *::after { box-sizing: border-box; }
/* :where() = zero specificity, so any component (buttons, nav, footer) wins */
:where(body.rf2 a) { color: var(--brand); text-decoration: none; }
:where(body.rf2 a:hover) { color: var(--brand-deep); }
body.rf2 a:focus-visible, body.rf2 button:focus-visible, body.rf2 select:focus-visible, body.rf2 input:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 2px;
}
body.rf2 img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { body.rf2 * { transition: none !important; } }

/* ---- layout -------------------------------------------------------------- */
.rf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rf-section { padding: 5rem 0; }
.rf-section--tight { padding: 3.4rem 0 5rem; }
.rf-section--paper { background: var(--paper); }
.rf-section--white { background: #fff; }
.rf-section--dark { background: var(--ink-deep); }
.rf-section--rel { position: relative; overflow: hidden; }
.rf-head { max-width: 760px; display: flex; flex-direction: column; gap: .7rem; }
.rf-stack { display: flex; flex-direction: column; }
@media (max-width: 600px) { .rf-section { padding: 3.6rem 0; } }

/* ---- typography ---------------------------------------------------------- */
.rf-eyebrow { font: 700 .74rem 'Raleway', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--found-deep); }
.rf-eyebrow--onDark { color: var(--found-bright); }
.rf-h1 { margin: 0; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1.06; color: var(--ink); text-wrap: pretty; }
.rf-h2 { margin: 0; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; color: var(--ink); text-wrap: pretty; }
.rf-h2--onDark, .rf-h1--onDark { color: #fff; }
.rf-lead { margin: 0; font: 400 1.12rem/1.65 'Raleway', sans-serif; color: var(--ink-soft); max-width: 34rem; text-wrap: pretty; }
.rf-serif { font-family: 'DM Serif Display', serif; font-weight: 400; }
/* the one italic word + hand-drawn green underline in a hero H1 */
.rf-swash { position: relative; display: inline-block; font-style: italic; }
.rf-swash svg { position: absolute; left: 2%; bottom: -12px; width: 92%; height: 13px; overflow: visible; }

/* ---- buttons ------------------------------------------------------------- */
.btn-rf { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
    font: 700 .95rem 'Raleway', sans-serif; padding: .8rem 1.5rem; text-decoration: none; cursor: pointer; border: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap; }
.btn-rf:hover { transform: translateY(-2px); }
.btn-rf-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(27, 44, 224, .28); }
.btn-rf-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-rf-ghost { background: transparent; color: var(--brand); border: 1px solid #d6ddd2; }
.btn-rf-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-rf-light { background: #fff; color: var(--brand); }
.btn-rf-light:hover { color: var(--brand-deep); }
.btn-rf-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.btn-rf-outline-light:hover { border-color: #fff; color: #fff; }
.link-rf { font: 700 .95rem 'Raleway', sans-serif; color: var(--brand); }
.link-rf:hover { color: var(--brand-deep); }

/* ---- cards --------------------------------------------------------------- */
.rf-cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 18px; }
.rf-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 22px;
    transition: transform .18s ease, box-shadow .18s ease; }
.rf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 3px 0 var(--found); }
.rf-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; background: var(--found-tint); color: var(--found-deep); font-size: 1.25rem; }
.rf-card-title { font: 700 1.02rem 'Raleway', sans-serif; color: var(--ink); }
.rf-card-body { font: 500 .89rem/1.55 'Raleway', sans-serif; color: var(--muted); text-wrap: pretty; }
.rf-card-link { margin-top: auto; font: 700 .85rem 'Raleway', sans-serif; color: var(--brand); }
.rf-card-link:hover { color: var(--brand-deep); }

/* ---- numbered steps ------------------------------------------------------ */
.rf-steps { display: flex; flex-direction: column; position: relative; }
.rf-steps-line { position: absolute; left: calc(1.3rem - 1px); top: 3rem; bottom: 3rem; width: 0; border-left: 2px dashed var(--found); opacity: .55; }
.rf-step { display: flex; gap: 24px; align-items: flex-start; padding: 26px 0; position: relative; }
.rf-step + .rf-step { border-top: 1px solid #e3e8e0; }
.rf-step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
    border-radius: 12px; background: var(--ink-deep); font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: #fff; }
.rf-step-title { font: 700 1.1rem 'Raleway', sans-serif; color: var(--ink); }
.rf-step-body { font: 400 .96rem/1.6 'Raleway', sans-serif; color: var(--ink-soft); text-wrap: pretty; }

/* ---- dark tiles ---------------------------------------------------------- */
.rf-tilegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.rf-tile { display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04); border-radius: var(--radius); padding: 24px 22px; }
.rf-tile-title { font: 700 1rem 'Raleway', sans-serif; color: #fff; }
.rf-tile-body { font: 500 .9rem/1.55 'Raleway', sans-serif; color: rgba(255, 255, 255, .68); text-wrap: pretty; }

/* ---- gradient CTA band --------------------------------------------------- */
.rf-band { background: var(--grad); border-radius: 24px; padding: 4rem 3rem; display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 1rem; }
.rf-band p { margin: 0; font: 400 1.05rem/1.6 'Raleway', sans-serif; color: rgba(255, 255, 255, .85); max-width: 36rem; text-wrap: pretty; }
.rf-band-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
@media (max-width: 600px) { .rf-band { padding: 3rem 1.6rem; } }

/* ---- search strip -------------------------------------------------------- */
.rf-strip { position: relative; z-index: 2; margin-top: 3.2rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px 28px; }
.rf-strip-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rf-strip-copy { min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.rf-input { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem;
    font: 500 .95rem 'Raleway', sans-serif; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.rf-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 44, 224, .12); outline: none; }
.rf-strip .rf-input { flex: 1; min-width: 240px; }
@media (max-width: 700px) { .rf-strip-row { flex-direction: column; align-items: stretch; } .rf-strip-row .rf-input { min-width: 0; } }

/* ---- hero ---------------------------------------------------------------- */
.rf-hero { background-color: var(--paper); background-image: radial-gradient(rgba(16, 22, 46, .06) 1px, transparent 1px);
    background-size: 26px 26px; padding: 4.6rem 0 3.4rem; }
.rf-hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.rf-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.rf-hero-art { position: relative; }
.rf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: .4rem; }
.rf-splitgrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) {
    .rf-hero-grid, .rf-splitgrid { grid-template-columns: 1fr !important; gap: 34px; }
    .rf-hero-art { max-width: 430px; margin: 0 auto; }
}

/* ---- section curve divider ---------------------------------------------- */
.rf-curve { display: block; width: 100%; height: 64px; margin-top: -1px; }

/* ---- ghost object behind a section -------------------------------------- */
.rf-ghost { position: absolute; opacity: .05; pointer-events: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.rf-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.rf-header.is-scrolled { box-shadow: 0 6px 20px rgba(20, 30, 90, .10); }
.rf-bar { height: 72px; max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: height .2s ease; }
.rf-header.is-scrolled .rf-bar { height: 58px; }
.rf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.rf-brand-name { font-family: 'DM Serif Display', serif; font-size: 1.24rem; letter-spacing: .05em; color: var(--ink); }
.rf-nav { display: flex; align-items: center; gap: 26px; }
.rf-nav a, .rf-nav button { font: 600 .93rem 'Raleway', sans-serif; color: var(--ink-soft); background: none; border: none; cursor: pointer; text-decoration: none; transition: color .15s ease; }
.rf-nav a:hover, .rf-nav button:hover { color: var(--brand); }
.rf-nav a[aria-current="page"] { color: var(--brand); }
.rf-nav-biz { position: relative; display: inline-flex; }
.rf-nav-biz > button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; }
.rf-dropdown { position: absolute; top: 100%; left: -14px; padding-top: 6px; z-index: 60; display: none; }
.rf-nav-biz:hover .rf-dropdown, .rf-nav-biz.is-open .rf-dropdown { display: block; }
.rf-dropdown-inner { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 248px; }
.rf-dropdown-inner a { display: block; padding: 9px 12px; border-radius: 9px; font: 600 .9rem 'Raleway', sans-serif; color: var(--ink-soft); }
.rf-dropdown-inner a:hover { background: var(--paper); color: var(--brand); }
.rf-dropdown-inner a.is-cta { font-weight: 700; color: var(--brand); }
.rf-dropdown-divider { height: 1px; background: var(--line); margin: 6px 8px; }
.rf-actions { display: flex; align-items: center; gap: 14px; }
.rf-getstarted { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; font: 700 .88rem 'Raleway', sans-serif; padding: .55rem 1.25rem; background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(27, 44, 224, .25); transition: transform .18s ease, background .18s ease; white-space: nowrap; }
.rf-getstarted:hover { transform: translateY(-2px); background: var(--brand-deep); color: #fff; }
.rf-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 1.5rem; }
.rf-sheet { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 20px; flex-direction: column; }
.rf-sheet.is-open { display: flex; }
.rf-sheet a, .rf-sheet button { font: 600 1rem 'Raleway', sans-serif; color: var(--ink); background: none; border: none; text-align: left; cursor: pointer; text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rf-sheet .rf-sheet-sub { display: none; flex-direction: column; padding: 4px 0 8px 16px; border-bottom: 1px solid var(--line); }
.rf-sheet .rf-sheet-sub.is-open { display: flex; }
.rf-sheet .rf-sheet-sub a { border: none; padding: 10px 0; font-size: .95rem; color: var(--ink-soft); }
.rf-header-spacer { height: 72px; }
@media (max-width: 960px) { .rf-nav { display: none; } .rf-burger { display: inline-flex; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.rf-footwave { display: block; width: 100%; height: clamp(40px, 7vw, 100px); margin-bottom: -1px; }
.rf-footer { background: var(--ink-deep); color: #fff; }
.rf-footer a:focus-visible { outline-color: #fff; }
.rf-foot-inner { max-width: 1180px; margin: 0 auto; padding: 64px 24px 28px; }
.rf-foot-grid { display: grid; grid-template-columns: minmax(220px, 1.5fr) 1fr 1fr .9fr 1.1fr; gap: 40px 32px; }
.rf-foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.rf-foot-brand p { margin: 0; font: 400 .92rem/1.6 'Raleway', sans-serif; color: rgba(255, 255, 255, .72); }
.rf-foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rf-foot-h { font: 700 .72rem 'Raleway', sans-serif; letter-spacing: .11em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.rf-foot-col a { font: 500 .9rem 'Raleway', sans-serif; color: rgba(255, 255, 255, .72); transition: color .15s ease; }
.rf-foot-col a:hover { color: #fff; }
.rf-foot-app { display: inline-flex; align-items: center; gap: 11px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 9px 16px; background: rgba(255, 255, 255, .05); color: #fff; transition: border-color .15s ease, background .15s ease; }
.rf-foot-app:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .09); color: #fff; }
.rf-foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rf-foot-copy { font: 500 .84rem 'Raleway', sans-serif; color: rgba(255, 255, 255, .5); }
.rf-foot-social { display: flex; gap: 10px; }
.rf-foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: rgba(255, 255, 255, .72); transition: color .15s ease, border-color .15s ease; }
.rf-foot-social a:hover { color: #fff; border-color: #fff; }
@media (max-width: 900px) { .rf-foot-grid { grid-template-columns: 1fr 1fr; } .rf-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .rf-foot-grid { grid-template-columns: 1fr; } .rf-foot-bottom { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   Phase 2 — hub + industry components
   ========================================================================== */

/* ---- breadcrumbs --------------------------------------------------------- */
.rf-crumbs { font: 500 .82rem 'Raleway', sans-serif; color: var(--muted); padding: 1.4rem 0 0; }
.rf-crumbs a { color: var(--muted); }
.rf-crumbs a:hover { color: var(--brand); }
.rf-crumbs .sep { margin: 0 .5rem; opacity: .6; }
.rf-crumbs .cur { color: var(--ink-soft); }

/* ---- rounded photo (README snippet: 18px radius + 8% navy overlay) ------- */
.rf-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.rf-photo::after { content: ''; position: absolute; inset: 0; background: rgba(18, 26, 61, .08); pointer-events: none; }
.rf-photo img { display: block; width: 100%; height: auto; }
.rf-photo--dark { box-shadow: none; }
.rf-photocap { margin: .7rem 0 0; font: 500 italic .82rem 'Raleway', sans-serif; color: var(--muted); }
.rf-photocap--onDark { color: rgba(255, 255, 255, .6); }

/* ---- prose (problem paragraphs) ----------------------------------------- */
.rf-prose { display: flex; flex-direction: column; gap: 1.1rem; max-width: 40rem; }
.rf-prose p { margin: 0; font: 400 1.02rem/1.7 'Raleway', sans-serif; color: var(--ink-soft); text-wrap: pretty; }

/* ---- dark "why" points --------------------------------------------------- */
.rf-whygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.rf-why-point { display: flex; flex-direction: column; gap: 6px; }
.rf-why-point .lbl { font: 700 1.02rem 'Raleway', sans-serif; color: #fff; }
.rf-why-point .bd { font: 400 .94rem/1.6 'Raleway', sans-serif; color: rgba(255, 255, 255, .68); text-wrap: pretty; }
@media (max-width: 760px) { .rf-whygrid { grid-template-columns: 1fr; } }

/* ---- FAQ accordion (native details) ------------------------------------- */
.rf-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.rf-faq details { border-bottom: 1px solid var(--line); }
.rf-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 22px 4px; font: 700 1.04rem 'Raleway', sans-serif; color: var(--ink); }
.rf-faq summary::-webkit-details-marker { display: none; }
.rf-faq summary::after { content: '\F64D'; font-family: 'bootstrap-icons'; font-size: .95rem; color: var(--found-deep); transition: transform .2s ease; flex: none; }
.rf-faq details[open] summary::after { transform: rotate(45deg); }
.rf-faq .ans { padding: 0 4px 22px; font: 400 1rem/1.7 'Raleway', sans-serif; color: var(--ink-soft); max-width: 68ch; text-wrap: pretty; }

/* ---- green-tint panel + quiet cross-links -------------------------------- */
.rf-panel { background: var(--found-tint); border: 1px solid #d7e8df; border-radius: 20px; padding: 2.4rem 2.2rem; }
.rf-crosslinks { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 .9rem 'Raleway', sans-serif; color: var(--muted); }
.rf-crosslinks a { color: var(--found-deep); }
.rf-crosslinks .dot { opacity: .5; }

/* ==========================================================================
   Phase 3 — state guides, pricing, contact
   ========================================================================== */

/* ---- destination list (state guides) ------------------------------------ */
.rf-destlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.rf-dest { display: flex; flex-direction: column; gap: 6px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.rf-dest .lbl { font: 700 1.04rem 'Raleway', sans-serif; color: var(--ink); }
.rf-dest .bd { font: 400 .98rem/1.6 'Raleway', sans-serif; color: var(--ink-soft); text-wrap: pretty; }
.rf-dest .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.rf-linkchip { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem 'Raleway', sans-serif; color: var(--found-deep);
    background: var(--found-tint); border-radius: 999px; padding: 4px 12px; }
.rf-linkchip:hover { color: var(--found-deep); background: #d7ece1; }
.rf-linkchip i { font-size: .72rem; }

/* ---- law panel (cream) --------------------------------------------------- */
.rf-lawpanel { background: var(--cream); border-radius: 20px; padding: 2.2rem 2.2rem; max-width: 860px; display: flex; flex-direction: column; gap: 1rem; }
.rf-lawpanel p { margin: 0; font: 400 1rem/1.7 'Raleway', sans-serif; color: var(--ink-soft); text-wrap: pretty; }
.rf-disclaimer { font: 500 italic .9rem/1.6 'Raleway', sans-serif; color: var(--muted); }
.rf-disclaimer a { color: var(--found-deep); }

/* ---- notice panel (found-tint empty state) ------------------------------- */
.rf-notice { background: var(--found-tint); border: 1px solid #d7e8df; border-radius: 16px; padding: 1.1rem 1.3rem;
    font: 500 .96rem/1.6 'Raleway', sans-serif; color: var(--found-deep); text-wrap: pretty; }

/* ---- pricing cards ------------------------------------------------------- */
.rf-pricegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.rf-price { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px 24px; position: relative; }
.rf-price.is-popular { border-color: var(--found); box-shadow: 0 14px 36px rgba(14, 122, 95, .14); }
.rf-price-badge { position: absolute; top: -12px; left: 24px; font: 700 .68rem 'Raleway', sans-serif; letter-spacing: .06em;
    text-transform: uppercase; color: #fff; background: var(--found-deep); border-radius: 999px; padding: 4px 12px; }
.rf-price-name { font: 700 1.05rem 'Raleway', sans-serif; color: var(--ink); }
.rf-price-amt { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.rf-price-amt .per { font-family: 'Raleway', sans-serif; font-size: .9rem; font-weight: 600; color: var(--muted); }
.rf-price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rf-price li { display: flex; align-items: flex-start; gap: 9px; font: 500 .92rem/1.45 'Raleway', sans-serif; color: var(--ink-soft); }
.rf-price li i { color: var(--found-deep); font-size: .95rem; margin-top: 2px; }
.rf-price--onDark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.rf-price--onDark .rf-price-name, .rf-price--onDark .rf-price-amt { color: #fff; }
.rf-price--onDark li { color: rgba(255, 255, 255, .72); }
.rf-price--onDark li i { color: var(--found-bright); }

/* ---- form fields --------------------------------------------------------- */
.rf-field { display: flex; flex-direction: column; gap: 6px; }
.rf-label { font: 700 .85rem 'Raleway', sans-serif; color: var(--ink); }
.rf-control { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .95rem;
    font: 500 .95rem 'Raleway', sans-serif; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.rf-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 44, 224, .12); outline: none; }
textarea.rf-control { min-height: 130px; resize: vertical; }
.rf-alert { border-radius: 12px; padding: 12px 14px; font: 600 .9rem/1.5 'Raleway', sans-serif; }
.rf-alert-ok { background: #ecf8f2; border: 1px solid #bfe6d2; color: #115f3e; }
.rf-alert-err { background: #fdeef1; border: 1px solid #f3c4ce; color: #a41f38; }

/* ---- footer: legal links in the bottom bar ------------------------------ */
.rf-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rf-foot-legal a { font: 500 .84rem 'Raleway', sans-serif; color: rgba(255, 255, 255, .5); transition: color .15s ease; }
.rf-foot-legal a:hover { color: #fff; }

/* ==========================================================================
   Phase 4 — listings + partners (directory + detail)
   ========================================================================== */

.rf-chip { display: inline-flex; align-items: center; font: 700 .72rem 'Raleway', sans-serif; letter-spacing: .02em;
    color: var(--found-deep); background: var(--found-tint); border-radius: 999px; padding: 4px 11px; }
.rf-meta { display: inline-flex; align-items: center; gap: 6px; font: 500 .85rem 'Raleway', sans-serif; color: var(--muted); }
.rf-meta i { font-size: .82rem; }

/* item + partner grid */
.rf-itemgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rf-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.rf-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rf-item-media { position: relative; aspect-ratio: 4 / 3; background: var(--found-tint); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rf-item-media img { width: 100%; height: 100%; object-fit: cover; }
.rf-item-media .ph { color: var(--found); opacity: .5; font-size: 2.4rem; }
.rf-item-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.rf-item-title { font: 700 1.02rem 'Raleway', sans-serif; color: var(--ink); }
.rf-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }

/* partner card (circle logo) */
.rf-partner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease; }
.rf-partner:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 3px 0 var(--found); }
.rf-partner-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--cream); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rf-partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.rf-partner-name { font: 700 1.08rem 'Raleway', sans-serif; color: var(--ink); }
.rf-partner-link { margin-top: auto; font: 700 .85rem 'Raleway', sans-serif; color: var(--brand); }

/* empty / sparse states */
.rf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 3.4rem 1.5rem;
    background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.rf-empty .ico { color: var(--found); opacity: .55; font-size: 2.6rem; }
.rf-empty p { margin: 0; max-width: 46ch; font: 500 1rem/1.6 'Raleway', sans-serif; color: var(--muted); text-wrap: pretty; }

/* pagination */
.rf-pagenav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rf-pagenav a, .rf-pagenav span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
    padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font: 600 .88rem 'Raleway', sans-serif; color: var(--ink-soft); background: #fff; }
.rf-pagenav a:hover { border-color: var(--brand); color: var(--brand); }
.rf-pagenav .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.rf-pagenav .disabled span { color: var(--muted); opacity: .5; }

/* detail: image frame + partner card */
.rf-detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--found-tint);
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.rf-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.rf-detail-media .ph { color: var(--found); opacity: .5; font-size: 4rem; }
.rf-contactcard { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px 22px; }

/* QR download dropdown */
.rf-qrmenu { position: relative; display: inline-flex; }
.rf-qrmenu-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: none; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; }
.rf-qrmenu.is-open .rf-qrmenu-list { display: flex; }
.rf-qrmenu-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px;
    font: 600 .9rem 'Raleway', sans-serif; color: var(--ink-soft); }
.rf-qrmenu-list a:hover { background: var(--paper); color: var(--brand); }

/* ==========================================================================
   Phase 5 — auth (split-screen)
   ========================================================================== */
.rf-auth { display: flex; min-height: 100dvh; background: #fff; }
.rf-auth-left { flex: 0 0 45%; min-width: 0; background: var(--grad); color: #fff; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px 56px; }
.rf-auth-left .rf-dots { position: absolute; inset: 0; z-index: 1; background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px); background-size: 24px 24px; }
.rf-auth-left .rf-blob { position: absolute; left: -90px; bottom: 16%; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle at 42% 42%, rgba(237,240,230,.30), rgba(237,240,230,0) 68%); z-index: 1; }
.rf-auth-left .rf-corner { position: absolute; right: -60px; bottom: -70px; width: 420px; opacity: .16; z-index: 1; }
.rf-auth-left .rf-vcurve { position: absolute; top: 0; right: -1px; width: 58px; height: 100%; z-index: 3; }
.rf-backsite { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; font: 600 .9rem 'Raleway', sans-serif; color: rgba(255,255,255,.85); }
.rf-backsite:hover { color: #fff; }
.rf-auth-value { position: relative; z-index: 2; max-width: 430px; display: flex; flex-direction: column; gap: 22px; margin-bottom: 8vh; }
.rf-auth-value p { margin: 0; font-family: 'DM Serif Display', serif; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.18; color: #fff; text-wrap: pretty; }
.rf-auth-brand { display: inline-flex; align-items: center; gap: 10px; }
.rf-auth-brand span { font-family: 'DM Serif Display', serif; font-size: 1.2rem; letter-spacing: .05em; }

/* Top-anchored (not centred) so the heading + tabs sit at the SAME height on
   every auth screen — switching Client/Partner reads as a toggle, not a jump. */
.rf-auth-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: clamp(44px, 9vh, 104px) 24px 56px; }
.rf-auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.rf-auth-card--wide { max-width: 560px; }
.rf-auth-h { margin: 0; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.rf-auth-sub { margin: 0; font: 500 .98rem 'Raleway', sans-serif; color: var(--muted); }

.rf-authtabs { display: flex; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; }
.rf-authtabs a { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
    font: 700 .88rem 'Raleway', sans-serif; color: var(--muted); }
.rf-authtabs a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.rf-social { display: flex; flex-direction: column; gap: 10px; }
.rf-social-btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid var(--line); border-radius: 999px; font: 600 .92rem 'Raleway', sans-serif; background: #fff; color: var(--ink-soft); transition: transform .18s ease, border-color .18s ease; }
.rf-social-btn:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.rf-or { display: flex; align-items: center; gap: 14px; }
.rf-or span { flex: 1; height: 1px; background: var(--line); }
.rf-or em { font: 600 .8rem 'Raleway', sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-style: normal; }
.rf-check { display: flex; align-items: flex-start; gap: 9px; font: 500 .88rem/1.5 'Raleway', sans-serif; color: var(--ink-soft); }
.rf-check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.rf-field-err { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem 'Raleway', sans-serif; color: #c22945; }
.rf-authfoot { margin: 0; text-align: center; font: 600 .9rem 'Raleway', sans-serif; color: var(--muted); }
.rf-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rf-formgrid .rf-col-full { grid-column: 1 / -1; }
select.rf-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7492' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }

@media (max-width: 991px) {
    .rf-auth { flex-direction: column; }
    .rf-auth-left { flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
    .rf-auth-value { margin-bottom: 0; flex-direction: row; align-items: center; gap: 12px; }
    .rf-auth-value p { display: none; }
    .rf-vcurve, .rf-corner, .rf-blob { display: none; }
}
@media (max-width: 560px) { .rf-formgrid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Parity sweep — item gallery, partner contact details, working hours
   ========================================================================== */

/* item gallery (main + thumbnails) */
.rf-gallery { display: flex; flex-direction: column; gap: 12px; }
.rf-gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    background: var(--found-tint); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.rf-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.rf-gallery-main .ph { color: var(--found); opacity: .5; font-size: 4rem; }
.rf-gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.rf-gallery-thumb { width: 76px; height: 62px; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
    background: var(--found-tint); cursor: pointer; padding: 0; }
.rf-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rf-gallery-thumb.is-active { border-color: var(--brand); }

/* partner contact details (definition list) */
.rf-deflist { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rf-deflist .row { display: flex; gap: 16px; padding: 14px 18px; }
.rf-deflist .row + .row { border-top: 1px solid var(--line); }
.rf-deflist dt { flex: none; width: 96px; font: 700 .8rem 'Raleway', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; padding-top: 2px; }
.rf-deflist dd { margin: 0; font: 500 .96rem/1.5 'Raleway', sans-serif; color: var(--ink); }
.rf-deflist dd a { color: var(--brand); }

/* working hours */
.rf-hours { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rf-hours .day { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; font: 500 .94rem 'Raleway', sans-serif; color: var(--ink); }
.rf-hours .day + .day { border-top: 1px solid var(--line); }
.rf-hours .day .lbl { font-weight: 700; color: var(--ink-soft); }
.rf-hours .day.is-closed .val { color: var(--muted); }

/* ---- category filter chips ----------------------------------------------- */
.rf-filterchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-filterchip { display: inline-flex; align-items: center; font: 600 .84rem 'Raleway', sans-serif; color: var(--found-deep);
    background: var(--found-tint); border-radius: 999px; padding: 6px 14px; transition: background .15s ease, color .15s ease; }
.rf-filterchip:hover { color: var(--found-deep); background: #d7ece1; }
.rf-filterchip.is-active { background: var(--found-deep); color: #fff; }
.rf-filterchip.is-active:hover { color: #fff; }

/* ---- multi-step register wizard ------------------------------------------ */
.rf-wizard-steps { display: flex; gap: 8px; margin-bottom: .2rem; }
.rf-wizard-step { flex: 1; font: 700 .68rem 'Raleway', sans-serif; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--line); transition: color .15s ease, border-color .15s ease; }
.rf-wizard-step.is-active { color: var(--found-deep); border-bottom-color: var(--found); }
.rf-step-panel { display: flex; flex-direction: column; gap: 16px; }
.rf-step-panel[hidden] { display: none; }
.rf-wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: .3rem; }
.rf-wizard-nav .btn-rf { min-width: 130px; }
.rf-wizard-nav .rf-spacer { flex: 1; }

/* ---- password field: show/hide eye + live rules checklist ---------------- */
.rf-pw-wrap { position: relative; }
.rf-pw-wrap .rf-control { padding-right: 3rem; }
.rf-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer;
    color: var(--muted); border-radius: 10px; }
.rf-pw-eye:hover { color: var(--brand); }
.rf-pwrules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.rf-pwrules li { display: flex; align-items: center; gap: 8px; font: 500 .82rem 'Raleway', sans-serif; color: var(--muted); transition: color .15s ease; }
.rf-pwrules li i { font-size: .92rem; color: var(--muted); opacity: .45; transition: color .15s ease, opacity .15s ease; }
.rf-pwrules li.is-met { color: var(--found-deep); }
.rf-pwrules li.is-met i { color: var(--found); opacity: 1; }
@media (max-width: 480px) { .rf-pwrules { grid-template-columns: 1fr; } }
