/* The footer of the public pages (templates/partials/_site_footer.html).
   A slab of ink that closes every page, with its own variables so it reads the
   same on the landing pages and on the guides. Dark stays flat: no blur, no glass. */
.rf {
    --rf-bg: #0B0F14;
    --rf-ink: #F7F6F1;
    --rf-ink-2: rgba(247, 246, 241, .74);
    --rf-ink-3: rgba(247, 246, 241, .5);
    --rf-line: rgba(247, 246, 241, .12);
    --rf-fill: rgba(247, 246, 241, .07);
    --rf-grad: linear-gradient(120deg, #FF3D9A 0%, #FF5B1F 50%, #13C2E3 100%);
    display: block; padding: 0; margin: clamp(48px, 9vh, 110px) 0 0; gap: 0;
    background: var(--rf-bg); color: var(--rf-ink-2);
    font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px;
    border-radius: clamp(26px, 4vw, 48px) clamp(26px, 4vw, 48px) 0 0;
    position: relative; overflow: hidden; isolation: isolate;
}
html[data-theme="dark"] .rf { --rf-bg: #000; border-top: 1px solid var(--rf-line); }
/* a soft band of the brand gradient along the top edge */
.rf::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--rf-grad); z-index: 1;
}
.rf-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 48px) 28px; position: relative; }
.rf a { color: inherit; text-decoration: none; }

/* ---- brand and call to action ---- */
.rf-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-bottom: clamp(30px, 4vw, 52px); border-bottom: 1px solid var(--rf-line); }
.rf-brand { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; color: var(--rf-ink) !important; line-height: 1; }
.rf-brand img { width: clamp(36px, 4vw, 48px); height: auto; }
.rf-brand i { font-style: normal; background: var(--rf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-tagline { margin: 14px 0 0; max-width: 520px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.4; color: var(--rf-ink); font-weight: 600; }
.rf-tagline em { font-style: normal; color: var(--rf-ink-3); font-weight: 500; }
.rf-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--rf-ink) !important; border: 1px solid var(--rf-line); background: var(--rf-fill); transition: transform .2s cubic-bezier(.32, .72, 0, 1), background .2s; }
.rf-btn:hover { transform: translateY(-2px); background: rgba(247, 246, 241, .14); }
.rf-btn.is-primary { background: #FF5B1F; border-color: #FF5B1F; color: #fff !important; }
.rf-btn.is-primary:hover { background: #ff6f3a; }

/* ---- every page, in columns ---- */
.rf-cols { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 34px 28px; padding: clamp(30px, 4vw, 52px) 0; }
.rf-col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.rf-col h3 { margin: 0 0 6px; font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-ink-3); }
.rf-col a { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; width: fit-content; max-width: 100%; color: var(--rf-ink-2); line-height: 1.3; transition: color .15s, transform .2s cubic-bezier(.32, .72, 0, 1); }
.rf-col a:hover { color: var(--rf-ink); transform: translateX(3px); }
.rf-col a i { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.rf-col a small { font-size: 12.5px; color: var(--rf-ink-3); }

/* ---- the name, as large as the page ---- */
.rf-wordmark { font-size: clamp(44px, 13.6vw, 188px); font-weight: 800; letter-spacing: -.055em; line-height: .86; white-space: nowrap; text-align: center; margin: 4px 0 clamp(18px, 3vw, 34px); background: var(--rf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .95; user-select: none; }

/* ---- the stamp, the small print, the switches ---- */
.rf-base { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 22px; border-top: 1px solid var(--rf-line); }
.rf-stamp { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; border: 1px dashed rgba(247, 246, 241, .34); transition: border-color .2s, transform .2s cubic-bezier(.32, .72, 0, 1); }
.rf-stamp:hover { border-color: #FF5B1F; transform: rotate(-1.5deg); }
.rf-stamp-ring { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rf-ink); color: var(--rf-ink); font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 500; letter-spacing: .04em; box-shadow: inset 0 0 0 3px var(--rf-bg), inset 0 0 0 4px rgba(247, 246, 241, .4); }
.rf-stamp-text { display: flex; flex-direction: column; line-height: 1.15; }
.rf-stamp-text small { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-ink-3); }
.rf-stamp-text b { font-size: 15px; font-weight: 700; color: var(--rf-ink); }
.rf-legal { margin: 0; flex: 1; min-width: 200px; font-size: 13.5px; color: var(--rf-ink-3); }
.rf-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* the landing pages style .theme and .lang for paper; here they sit on ink */
.rf .theme { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--rf-fill); border: 1px solid var(--rf-line); }
.rf .theme button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--rf-ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rf .theme button:hover { color: var(--rf-ink); }
.rf .theme button.on { background: var(--rf-ink); color: var(--rf-bg); box-shadow: none; }
.rf .lang { position: relative; }
.rf .lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 99px; background: var(--rf-fill); border: 1px solid var(--rf-line); color: var(--rf-ink-2); font-size: 14px; }
.rf .lang summary::-webkit-details-marker { display: none; }
.rf .lang form { position: absolute; bottom: calc(100% + 8px); right: 0; min-width: 160px; padding: 6px; border-radius: 14px; background: #161a21; border: 1px solid var(--rf-line); box-shadow: none; display: flex; flex-direction: column; gap: 2px; z-index: 20; }
.rf .lang form button { font: inherit; font-size: 14px; text-align: start; padding: 9px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--rf-ink); cursor: pointer; }
.rf .lang form button:hover, .rf .lang form button.on { background: var(--rf-fill); }
html[dir="rtl"] .rf-controls { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .rf .lang form { right: auto; left: 0; }
html[dir="rtl"] .rf-col a:hover { transform: translateX(-3px); }

@media (max-width: 1020px) {
    .rf-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .rf-cols { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
    .rf-col:first-child { grid-column: 1 / -1; }
    .rf-hero { align-items: flex-start; }
    .rf-cta { width: 100%; }
    .rf-btn { flex: 1; justify-content: center; }
    .rf-controls { margin-left: 0; }
    .rf-legal { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .rf-btn, .rf-col a, .rf-stamp { transition: none; }
    .rf-btn:hover, .rf-col a:hover, .rf-stamp:hover { transform: none; }
}
