/* ─────────────────────────────────────────────────────────────────────────────
   Fahren — shared design system for the public site.

   Every page used to carry its own inline <style>, its own navigation and, on
   three of them, no footer at all. Eight pages meant eight different navs: you
   could land on the terms page and have no way back to pricing. That is the
   thing that makes a site feel improvised, which matters a great deal on a site
   asking for a card number.

   Everything here is namespaced `f-` so it cannot collide with the per-page
   styles that already exist. Page-specific CSS still loads after this file and
   still wins, so adopting it is incremental and safe.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --f-ink:        #14142b;   /* body text on light */
    --f-ink-soft:   #5a5a72;   /* secondary text */
    --f-ink-faint:  #8a8a9e;   /* tertiary / captions */
    --f-navy:       #1a1a2e;   /* dark surfaces */
    --f-navy-deep:  #0f3460;   /* gradient partner */
    --f-accent:     #ff7043;   /* Fahren orange */
    --f-accent-dk:  #f4511e;   /* hover */
    --f-ok:         #2e9e5b;
    --f-warn:       #e08600;
    --f-bad:        #d32f2f;
    --f-line:       #e7e7ee;
    --f-surface:    #ffffff;
    --f-surface-2:  #f7f8fb;
    --f-radius:     12px;
    --f-radius-sm:  8px;
    --f-shadow:     0 1px 2px rgba(20,20,43,.04), 0 8px 24px rgba(20,20,43,.06);
    --f-max:        1120px;
}

.f-container { max-width: var(--f-max); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ────────────────────────────────────────────────────────────── */

.f-nav-wrap {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--f-line);
}
.f-nav {
    display: flex; align-items: center; gap: 32px;
    max-width: var(--f-max); margin: 0 auto; padding: 14px 24px;
}
.f-logo {
    font-size: 21px; font-weight: 800; color: var(--f-accent);
    text-decoration: none; letter-spacing: -.02em; flex-shrink: 0;
}
.f-nav-links { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.f-nav-links a {
    color: var(--f-ink-soft); font-size: 15px; font-weight: 500;
    text-decoration: none; white-space: nowrap; transition: color .15s;
}
.f-nav-links a:hover { color: var(--f-ink); }
.f-nav-links a.f-current { color: var(--f-ink); font-weight: 600; }
.f-btn {
    display: inline-block; background: var(--f-accent); color: #fff !important;
    padding: 9px 18px; border-radius: var(--f-radius-sm);
    font-weight: 600; font-size: 15px; text-decoration: none;
    transition: background .15s, transform .05s;
}
.f-btn:hover { background: var(--f-accent-dk); }
.f-btn:active { transform: translateY(1px); }
.f-btn-ghost {
    display: inline-block; background: transparent; color: var(--f-ink) !important;
    border: 1px solid var(--f-line); padding: 9px 18px;
    border-radius: var(--f-radius-sm); font-weight: 600; font-size: 15px; text-decoration: none;
}
.f-btn-ghost:hover { border-color: var(--f-ink-faint); }

/* The nav collapses to a horizontal scroll rather than a hamburger: there are
   only six links, and a scrollable row keeps every destination reachable
   without JavaScript. A menu that needs JS is a menu that can fail. */
@media (max-width: 860px) {
    .f-nav { gap: 16px; padding: 12px 16px; }
    .f-nav-links {
        gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; margin-left: 12px;
    }
    .f-nav-links::-webkit-scrollbar { display: none; }
    .f-nav-links a { font-size: 14px; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.f-footer {
    background: var(--f-navy); color: rgba(255,255,255,.62);
    padding: 56px 0 28px; margin-top: 80px; font-size: 14px;
}
.f-footer-grid {
    max-width: var(--f-max); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.f-footer h4 {
    color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; margin: 0 0 14px;
}
.f-footer ul { list-style: none; margin: 0; padding: 0; }
.f-footer li { margin-bottom: 9px; }
.f-footer a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .15s; }
.f-footer a:hover { color: #fff; }
.f-footer-brand .f-logo { font-size: 22px; }
.f-footer-brand p { margin: 12px 0 0; line-height: 1.65; max-width: 300px; }

/* Trust row. On a page that asks for a card, the things a visitor is quietly
   checking are: is there a real person, can I leave, and will you keep charging
   me. These answer all three above the copyright line. */
.f-trust {
    max-width: var(--f-max); margin: 40px auto 0; padding: 24px 24px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 13px;
}
.f-trust span { display: inline-flex; align-items: center; gap: 7px; }
.f-trust b { color: rgba(255,255,255,.8); font-weight: 600; }
.f-legal {
    max-width: var(--f-max); margin: 22px auto 0; padding: 0 24px;
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
    color: rgba(255,255,255,.42); font-size: 13px;
}
@media (max-width: 860px) {
    .f-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .f-footer-brand { grid-column: 1 / -1; }
    .f-trust { gap: 16px; justify-content: flex-start; }
    .f-legal { justify-content: flex-start; }
}

/* ── Shared content primitives ─────────────────────────────────────────────── */

.f-prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.f-prose h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; color: var(--f-ink); }
.f-prose h2 { font-size: 21px; margin: 40px 0 12px; color: var(--f-ink); }
.f-prose h3 { font-size: 17px; margin: 28px 0 8px; color: var(--f-ink); }
.f-prose p, .f-prose li { color: var(--f-ink-soft); line-height: 1.75; }
.f-prose a { color: var(--f-accent); }
.f-updated { color: var(--f-ink-faint); font-size: 14px; margin-bottom: 8px; }

.f-note {
    background: var(--f-surface-2); border-left: 3px solid var(--f-accent);
    border-radius: var(--f-radius-sm); padding: 16px 20px; margin: 20px 0;
}
.f-note p { margin: 0; }

table.f-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.f-table th, table.f-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--f-line); }
table.f-table th { background: var(--f-surface-2); font-weight: 700; color: var(--f-ink); }
table.f-table td { color: var(--f-ink-soft); }

/* Any wide element must scroll inside itself rather than making the page
   scroll sideways on a phone. */
.f-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
