/* ==========================================================================
   RiseFlow public site: home, sign in, register.
   Mobile-first, no framework, one file. Dark mode via body.dark-mode (theme-toggle.js).
   ========================================================================== */

:root {
    --rf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --rf-bg: #fbfbfe;
    --rf-bg-2: #f3f4fa;
    --rf-surface: #ffffff;
    --rf-border: #e6e8f0;
    --rf-ink: #0e1324;
    --rf-ink-2: #48506a;
    --rf-muted: #858ca3;
    --rf-accent: #4f46e5;
    --rf-accent-2: #7c3aed;
    --rf-accent-soft: #eef0ff;
    --rf-green: #0f9d58;
    --rf-amber: #f59e0b;
    --rf-radius: 18px;
    --rf-radius-sm: 12px;
    --rf-shadow: 0 1px 2px rgba(14, 19, 36, .04), 0 8px 24px -12px rgba(14, 19, 36, .12);
    --rf-shadow-lg: 0 30px 60px -30px rgba(40, 30, 120, .35);
    --rf-max: 1180px;
}

body.dark-mode {
    --rf-bg: #0b0f1a;
    --rf-bg-2: #10162a;
    --rf-surface: #131a2b;
    --rf-border: #232b40;
    --rf-ink: #eef1f8;
    --rf-ink-2: #aeb6cb;
    --rf-muted: #7a839b;
    --rf-accent: #8b83ff;
    --rf-accent-2: #b48cff;
    --rf-accent-soft: rgba(139, 131, 255, .14);
    --rf-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --rf-shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.rf-site {
    margin: 0;
    font-family: var(--rf-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--rf-ink);
    background: var(--rf-bg);
    -webkit-font-smoothing: antialiased;
}
.rf-site img { max-width: 100%; display: block; }
.rf-site a { color: var(--rf-accent); text-decoration: none; }
.rf-site a:hover { text-decoration: underline; }
.rf-site h1, .rf-site h2, .rf-site h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--rf-ink); }
.rf-site p { margin: 0 0 1em; }
.rf-wrap { width: 100%; max-width: var(--rf-max); margin: 0 auto; padding: 0 20px; }
.rf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf-site :focus-visible { outline: 3px solid var(--rf-accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.rf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;           /* comfortable tap target on phones */
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid var(--rf-border);
    background: var(--rf-surface);
    color: var(--rf-ink) !important;
    font: 600 15px/1 var(--rf-font);
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.rf-btn:hover { border-color: var(--rf-muted); }
.rf-btn--primary {
    border: 0;
    color: #fff !important;
    background: linear-gradient(135deg, var(--rf-accent) 0%, var(--rf-accent-2) 100%);
    box-shadow: 0 12px 24px -12px rgba(79, 70, 229, .7);
}
.rf-btn--primary:hover { transform: translateY(-1px); }
.rf-btn--block { width: 100%; }
.rf-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.rf-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--rf-bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--rf-border);
}
.rf-header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.rf-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--rf-ink) !important; text-decoration: none !important; letter-spacing: -.02em; }
.rf-logo img { width: 34px; height: 34px; border-radius: 10px; }
.rf-nav { display: none; gap: 26px; margin-left: 28px; }
.rf-nav a { color: var(--rf-ink-2); font-weight: 500; font-size: 15px; }
.rf-nav a:hover { color: var(--rf-ink); text-decoration: none; }
.rf-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rf-header-actions .rf-signin { display: none; }
.rf-icon-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rf-border);
    background: var(--rf-surface); color: var(--rf-ink); display: inline-grid; place-items: center; cursor: pointer; font-size: 18px;
}
.rf-menu { display: none; border-top: 1px solid var(--rf-border); padding: 12px 20px 20px; background: var(--rf-bg); }
.rf-menu a { display: block; padding: 12px 0; color: var(--rf-ink); font-weight: 600; border-bottom: 1px solid var(--rf-border); }
.rf-menu .rf-btn { margin-top: 14px; }
body.rf-menu-open .rf-menu { display: block; }
@media (min-width: 900px) {
    .rf-nav { display: flex; }
    .rf-header-actions .rf-signin { display: inline-flex; }
    .rf-menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.rf-hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.rf-hero::before {
    content: ''; position: absolute; inset: -40% -20% auto; height: 760px; z-index: -1;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(124, 58, 237, .18), transparent 70%),
        radial-gradient(35% 45% at 80% 20%, rgba(79, 70, 229, .16), transparent 70%),
        radial-gradient(30% 40% at 60% 70%, rgba(15, 157, 88, .10), transparent 70%);
}
.rf-hero-grid { display: grid; gap: 40px; align-items: center; }
.rf-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    background: var(--rf-accent-soft); color: var(--rf-accent); font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.rf-hero h1 { font-size: clamp(36px, 7vw, 62px); font-weight: 800; }
.rf-gradient-text { background: linear-gradient(120deg, var(--rf-accent), var(--rf-accent-2) 60%, #0f9d58); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--rf-ink-2); max-width: 600px; }
.rf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.rf-ticks { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; list-style: none; color: var(--rf-ink-2); font-size: 14.5px; font-weight: 500; }
.rf-ticks li::before { content: '✓'; color: var(--rf-green); font-weight: 800; margin-right: 6px; }
@media (min-width: 1000px) {
    .rf-hero { padding: 84px 0 64px; }
    .rf-hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* Product preview built in CSS (no image to download) */
.rf-preview {
    border-radius: 22px; border: 1px solid var(--rf-border); background: var(--rf-surface);
    box-shadow: var(--rf-shadow-lg); overflow: hidden; display: grid; grid-template-columns: 64px 1fr; min-height: 340px;
}
.rf-preview-side { background: linear-gradient(180deg, #0b1020, #141b38); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rf-preview-side span { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .08); }
.rf-preview-side span:first-child { background: linear-gradient(135deg, #6d5dfc, #a855f7); }
.rf-preview-side span:nth-child(2) { background: rgba(139, 123, 255, .35); }
.rf-preview-main { padding: 18px; display: grid; gap: 12px; align-content: start; }
.rf-preview-title { font-weight: 800; font-size: 15px; color: var(--rf-ink); }
.rf-preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rf-preview-kpi { border: 1px solid var(--rf-border); border-radius: 12px; padding: 10px 12px; }
.rf-preview-kpi small { display: block; color: var(--rf-muted); font-size: 11px; font-weight: 600; }
.rf-preview-kpi b { font-size: 19px; letter-spacing: -.02em; }
.rf-preview-chart { border: 1px solid var(--rf-border); border-radius: 12px; padding: 12px; height: 128px; display: flex; align-items: flex-end; gap: 8px; }
.rf-preview-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--rf-accent), var(--rf-accent-2)); opacity: .85; }
.rf-preview-rows { display: grid; gap: 8px; }
.rf-preview-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rf-border); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--rf-ink-2); }
.rf-preview-main, .rf-preview-rows, .rf-preview-row { min-width: 0; }
.rf-preview-row em { flex-shrink: 0; }
.rf-preview-row em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 157, 88, .12); color: var(--rf-green); }
.rf-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--rf-accent-soft); flex: none; }

/* ---------- Sections ---------- */
.rf-section { padding: 64px 0; }
.rf-section--alt { background: var(--rf-bg-2); }
.rf-section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.rf-section-head h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.rf-section-head p { color: var(--rf-ink-2); font-size: 17px; }
.rf-kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-accent); margin-bottom: 10px; }

.rf-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .rf-grid--2, .rf-grid--3, .rf-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rf-grid--3 { grid-template-columns: repeat(3, 1fr); } .rf-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.rf-card {
    background: var(--rf-surface); border: 1px solid var(--rf-border); border-radius: var(--rf-radius);
    padding: 24px; box-shadow: var(--rf-shadow);
}
.rf-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.rf-card p { color: var(--rf-ink-2); font-size: 15px; margin: 0; }
.rf-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
    font-size: 22px; background: var(--rf-accent-soft);
}

/* Countries strip */
.rf-countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rf-country { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rf-border); background: var(--rf-surface); font-size: 13.5px; font-weight: 600; color: var(--rf-ink-2); }

/* Steps */
.rf-steps { counter-reset: step; }
.rf-step { position: relative; padding-left: 60px; }
.rf-step::before {
    counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--rf-accent), var(--rf-accent-2));
}

/* Pricing */
.rf-price-grid { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .rf-price-grid { grid-template-columns: repeat(3, 1fr); } }
.rf-price { position: relative; }
.rf-price--featured { border: 2px solid var(--rf-accent); box-shadow: var(--rf-shadow-lg); }
.rf-badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--rf-accent), var(--rf-accent-2)); }
.rf-amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.rf-amount small { font-size: 15px; font-weight: 600; color: var(--rf-muted); letter-spacing: 0; }
.rf-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--rf-ink-2); }
/* The tick sits in the margin so a line's text (bold words, links) flows as one paragraph. */
.rf-list li { position: relative; padding-left: 24px; }
.rf-list li::before { content: '✓'; color: var(--rf-green); font-weight: 800; position: absolute; left: 0; top: 0; }

.rf-calc { max-width: 1040px; margin: 24px auto 0; display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .rf-calc { grid-template-columns: 1fr 1.2fr; } }
.rf-calc label { font-weight: 700; display: block; margin-bottom: 8px; }
.rf-calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rf-calc-out div { background: var(--rf-bg-2); border-radius: 12px; padding: 12px; text-align: center; }
.rf-calc-out b { display: block; font-size: 18px; letter-spacing: -.02em; }
.rf-calc-out span { font-size: 12.5px; color: var(--rf-muted); font-weight: 600; }
/* Phones: three result boxes must fit in the card. */
.rf-calc > *, .rf-calc-out div { min-width: 0; }
@media (max-width: 480px) { .rf-calc-out { gap: 6px; } .rf-calc-out div { padding: 10px 4px; } .rf-calc-out b { font-size: 15px; } .rf-calc-out span { font-size: 11.5px; } }

/* FAQ */
.rf-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.rf-faq details { background: var(--rf-surface); border: 1px solid var(--rf-border); border-radius: 14px; padding: 4px 20px; }
.rf-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.rf-faq summary::-webkit-details-marker { display: none; }
.rf-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--rf-accent); }
.rf-faq details[open] summary::after { content: '–'; }
.rf-faq details p { color: var(--rf-ink-2); padding-bottom: 14px; }

/* CTA band + footer */
.rf-cta-band {
    border-radius: 26px; padding: 44px 28px; text-align: center; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(192, 132, 252, .5) 0%, transparent 55%), linear-gradient(135deg, #3b2fd6, #7c3aed);
}
.rf-cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.rf-cta-band p { color: rgba(255, 255, 255, .82); }
.rf-cta-band .rf-btn { background: #fff; color: #3b2fd6 !important; border: 0; }
.rf-cta-band .rf-btn--ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); }

.rf-footer { border-top: 1px solid var(--rf-border); padding: 40px 0 28px; font-size: 14px; color: var(--rf-ink-2); }
.rf-footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .rf-footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.rf-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--rf-muted); margin: 0 0 10px; }
.rf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rf-footer a { color: var(--rf-ink-2); }
.rf-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rf-border); font-size: 12.5px; color: var(--rf-muted); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- Auth (sign in / register) ---------- */
.rf-auth { min-height: 100vh; display: grid; }
@media (min-width: 1000px) { .rf-auth { grid-template-columns: minmax(380px, 42%) 1fr; } }
.rf-auth-aside {
    display: none; position: relative; overflow: hidden; color: #fff; padding: 48px;
    background: radial-gradient(90% 70% at 100% 0%, rgba(192, 132, 252, .45) 0%, transparent 60%), linear-gradient(160deg, #0b1020 0%, #1d1a5c 55%, #4c1d95 100%);
}
@media (min-width: 1000px) { .rf-auth-aside { display: flex; flex-direction: column; } }
.rf-auth-aside .rf-logo { color: #fff !important; }
.rf-auth-aside h2 { color: #fff; font-size: 34px; margin-top: auto; }
.rf-auth-aside p { color: rgba(255, 255, 255, .78); font-size: 16px; }
.rf-auth-aside .rf-ticks { color: rgba(255, 255, 255, .85); margin-top: 18px; flex-direction: column; }
.rf-auth-aside .rf-ticks li::before { color: #7cf0b4; }
.rf-auth-aside small { margin-top: auto; color: rgba(255, 255, 255, .55); }
.rf-auth-main { display: flex; flex-direction: column; min-height: 100vh; }
.rf-auth-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
@media (min-width: 1000px) { .rf-auth-top .rf-logo { visibility: hidden; } }
.rf-auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 20px 40px; }
.rf-form { width: 100%; max-width: 440px; }
.rf-form--wide { max-width: 600px; }
.rf-form h1 { font-size: clamp(26px, 5vw, 32px); font-weight: 800; margin-bottom: 6px; }
.rf-form .rf-sub { color: var(--rf-ink-2); margin-bottom: 26px; }

.rf-field { margin-bottom: 16px; }
.rf-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--rf-ink); }
.rf-field .rf-hint { font-size: 12.5px; color: var(--rf-muted); margin-top: 6px; }
.rf-input, .rf-select {
    width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--rf-border);
    background: var(--rf-surface); color: var(--rf-ink); font: 500 16px var(--rf-font); /* 16px stops iOS zooming in */
    transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.rf-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23858ca3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.rf-select:disabled { opacity: .55; }
.rf-input:focus, .rf-select:focus { outline: none; border-color: var(--rf-accent); box-shadow: 0 0 0 4px var(--rf-accent-soft); }
.rf-input[aria-invalid="true"], .rf-select[aria-invalid="true"] { border-color: #d03b3b; }
.rf-pass { position: relative; }
.rf-pass .rf-input { padding-right: 76px; }
.rf-pass button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
    color: var(--rf-accent); font: 700 13px var(--rf-font); padding: 10px; cursor: pointer;
}
.rf-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .rf-row--2 { grid-template-columns: 1fr 1fr; } }
.rf-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--rf-ink-2); }
.rf-check input { width: 20px; height: 20px; accent-color: var(--rf-accent); }
.rf-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }

.rf-fieldset { border: 1px solid var(--rf-border); border-radius: 16px; padding: 18px 18px 4px; margin: 0 0 18px; background: var(--rf-surface); }
.rf-fieldset legend { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-accent); padding: 0 8px; margin-left: -8px; }

.rf-alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid; }
.rf-alert ul { margin: 6px 0 0; padding-left: 18px; }
.rf-alert--error { background: rgba(208, 59, 59, .07); border-color: rgba(208, 59, 59, .35); color: #9b1c1c; }
.rf-alert--ok { background: rgba(15, 157, 88, .08); border-color: rgba(15, 157, 88, .35); color: #0b6b3c; }
.rf-alert--info { background: var(--rf-accent-soft); border-color: transparent; color: var(--rf-accent); }
body.dark-mode .rf-alert--error { color: #f7a1a1; }
body.dark-mode .rf-alert--ok { color: #7cf0b4; }

.rf-divider { display: flex; align-items: center; gap: 12px; color: var(--rf-muted); font-size: 13px; margin: 22px 0; }
.rf-divider::before, .rf-divider::after { content: ''; flex: 1; height: 1px; background: var(--rf-border); }
.rf-center { text-align: center; }
.rf-small { font-size: 13.5px; color: var(--rf-muted); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rf-btn { transition: none; }
}

/* ---------- Choosing where to sign in, and the three sign-in pages ---------- */
/* Each kind of account has its own colour, label and side panel so nobody signs in on the wrong page. */
.rf-role-school { --rf-role: #5b3ff5; --rf-role-soft: rgba(91, 63, 245, .12); }
.rf-role-partner { --rf-role: #0f9d74; --rf-role-soft: rgba(15, 157, 116, .13); --rf-accent: #0f9d74; --rf-accent-2: #14b88a; --rf-accent-soft: rgba(15, 157, 116, .18); }
.rf-role-team { --rf-role: #334155; --rf-role-soft: rgba(51, 65, 85, .14); --rf-accent: #334155; --rf-accent-2: #475569; --rf-accent-soft: rgba(51, 65, 85, .18); }
.rf-role-partner .rf-auth-aside { background: radial-gradient(90% 70% at 100% 0%, rgba(110, 231, 183, .35) 0%, transparent 60%), linear-gradient(160deg, #04140f 0%, #064e3b 55%, #0f9d74 100%); }
.rf-role-team .rf-auth-aside { background: radial-gradient(90% 70% at 100% 0%, rgba(148, 163, 184, .30) 0%, transparent 60%), linear-gradient(160deg, #05070d 0%, #111827 55%, #334155 100%); }
.rf-role-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .02em;
    color: var(--rf-role); background: var(--rf-role-soft); margin-bottom: 14px; }
.rf-role-switch { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rf-border); font-size: 13.5px; color: var(--rf-muted); text-align: center; line-height: 1.9; }
.rf-role-switch a { font-weight: 700; }

.rf-choose { max-width: 1120px; margin: 0 auto; padding: 56px 20px 72px; }
.rf-choose-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.rf-choose-head h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; }
.rf-choose-head p { color: var(--rf-ink-2); margin: 0; font-size: 16px; }
.rf-choose-grid { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 880px) { .rf-choose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.rf-choose-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 22px; text-decoration: none !important;
    background: var(--rf-surface); border: 1.5px solid var(--rf-border); color: var(--rf-ink); box-shadow: var(--rf-shadow);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.rf-choose-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rf-role); opacity: .85; }
.rf-choose-card:hover, .rf-choose-card:focus-visible { transform: translateY(-3px); border-color: var(--rf-role); box-shadow: 0 18px 40px -18px rgba(13, 22, 64, .35); outline: none; }
.rf-choose-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.rf-choose-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 27px; background: var(--rf-role-soft); flex: none; }
.rf-choose-badge { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--rf-role); background: var(--rf-role-soft); }
.rf-choose-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: var(--rf-ink); }
.rf-choose-card p { margin: 0; color: var(--rf-ink-2); font-size: 14.5px; line-height: 1.6; }
.rf-choose-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rf-choose-who span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--rf-role-soft); color: var(--rf-role); }
.rf-choose-go { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; font-weight: 800; font-size: 15px;
    color: #fff; background: var(--rf-role); transition: filter .15s ease; }
.rf-choose-spacer { flex: 1 1 auto; min-height: 22px; }
.rf-choose-card:hover .rf-choose-go { filter: brightness(1.08); }
.rf-choose-card--quiet { box-shadow: none; background: var(--rf-bg-2); }
.rf-choose-card--quiet .rf-choose-go { background: transparent; color: var(--rf-role); border: 1.5px solid var(--rf-role); }
body.dark-mode .rf-role-school { --rf-role: #8b83ff; --rf-role-soft: rgba(139, 131, 255, .16); }
/* Dark mode: lighter role colours for text, chips and links; primary buttons keep white text on a darker fill. */
body.dark-mode .rf-role-partner { --rf-role: #34d399; --rf-role-soft: rgba(52, 211, 153, .15); --rf-accent-soft: rgba(52, 211, 153, .16); }
body.dark-mode .rf-role-partner a:not(.rf-btn):not(.rf-choose-card) { color: #34d399; }
body.dark-mode .rf-role-team { --rf-role: #cbd5e1; --rf-role-soft: rgba(203, 213, 225, .12); --rf-accent: #475569; --rf-accent-2: #64748b; --rf-accent-soft: rgba(203, 213, 225, .14); }
body.dark-mode .rf-role-team a:not(.rf-btn):not(.rf-choose-card) { color: #cbd5e1; }
body.dark-mode .rf-choose-card:not(.rf-choose-card--quiet) .rf-choose-go { color: #0b0f1a; }
.rf-choose-foot { text-align: center; margin-top: 26px; color: var(--rf-muted); font-size: 14px; line-height: 2; }
