/* =====================================================================
   FriendsBill marketing — high-impact theme
   Editorial sans (Inter) + display serif (Fraunces) on a near-black canvas.
   The whole vibe leans away from typical SaaS-template feel.
   ===================================================================== */

:root {
    --fb-ink:        #0b0f14;
    --fb-ink-2:      #15191f;
    --fb-paper:      #fbfaf6;   /* warm off-white */
    --fb-paper-2:    #f1eee5;
    --fb-line:       #e6e1d3;
    --fb-mute:       #5b6470;
    --fb-accent:     #c14a1a;   /* persimmon - darkened for WCAG AA contrast 4.52:1 */
    --fb-accent-2:   #ffd166;   /* sun */
    --fb-mint:       #0aa37f;
    --fb-deep:       #1c2bce;
    --radius-lg:     22px;
    --radius-pill:   999px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--fb-paper);
    color: var(--fb-ink);
    line-height: 1.55;
    padding-top: 76px;
}

.fb-serif { font-family: 'Fraunces', Georgia, serif; font-style: italic; }

/* ---------- nav ---------- */

.fb-nav {
    background: rgba(251, 250, 246, .82) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--fb-line);
    padding: .5rem 0;
}

.fb-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    color: var(--fb-ink) !important;
    text-decoration: none;
}

.fb-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--fb-ink);
    color: var(--fb-accent-2);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
}

.fb-brand-light { color: #fff !important; }

.fb-nav .nav-link {
    color: var(--fb-ink);
    font-weight: 500;
    padding: .5rem .85rem !important;
    border-radius: var(--radius-pill);
    transition: background .15s ease;
}

.fb-nav .nav-link:hover { background: rgba(11, 15, 20, .06); }

/* Mobile nav button spacing */
@media (max-width: 991.98px) {
    .fb-nav .navbar-nav { gap: .5rem; padding: 1rem 0; }
    .fb-nav .navbar-nav .btn { width: 100%; margin-top: .25rem; }
}

.fb-btn-pill {
    border-radius: var(--radius-pill) !important;
    padding: .55rem 1.15rem;
    font-weight: 600;
    letter-spacing: -.005em;
}

.btn-dark.fb-btn-pill {
    background: var(--fb-ink);
    border-color: var(--fb-ink);
}
.btn-dark.fb-btn-pill:hover { background: #1f262f; border-color: #1f262f; }

/* ---------- hero ---------- */

.fb-hero {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    overflow: hidden;
    background:
        radial-gradient(70% 60% at 85% 10%, rgba(255, 209, 102, .55), transparent 60%),
        radial-gradient(70% 60% at 10% 90%, rgba(255, 107, 53, .35), transparent 60%),
        var(--fb-paper);
}

@media (max-width: 767px) {
    .fb-hero { padding-top: 1.5rem; }
}

.fb-hero::after {
    /* subtle dotted-noise overlay — printed-paper feel */
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(11, 15, 20, .04) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.fb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: var(--radius-pill);
    background: var(--fb-ink);
    color: var(--fb-accent-2);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fb-headline {
    font-size: clamp(2.6rem, 6vw + 1rem, 6.25rem);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.035em;
    margin: 1.25rem 0 1.5rem;
}

.fb-headline em {
    font-style: italic;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: var(--fb-deep);
}

.fb-headline-underline {
    text-decoration: underline;
    text-decoration-color: var(--fb-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.fb-lead {
    font-size: 1.2rem;
    color: var(--fb-mute);
    max-width: 34rem;
}

.fb-hero-cta {
    display: flex;
    gap: .75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-accent {
    background: var(--fb-accent);
    color: #fff;
    border: 2px solid var(--fb-accent);
}
.btn-accent:hover { background: #a04015; border-color: #a04015; color: #fff; }

.btn-ghost-dark {
    background: transparent;
    border: 2px solid var(--fb-ink);
    color: var(--fb-ink);
}
.btn-ghost-dark:hover { background: var(--fb-ink); color: #fff; }

.fb-hero-meta {
    margin-top: 1.5rem;
    color: var(--fb-mute);
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.fb-hero-meta .dot { width: .35rem; height: .35rem; border-radius: 50%; background: var(--fb-mint); }

/* ---------- hero mockup card ---------- */

.fb-receipt {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.6rem 1.25rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .6) inset,
        0 20px 50px -20px rgba(11, 15, 20, .25),
        0 6px 18px -6px rgba(11, 15, 20, .12);
    border: 1px solid rgba(11, 15, 20, .06);
    transform: rotate(-1.5deg);
    transition: transform .35s ease;
}
.fb-receipt:hover { transform: rotate(-.5deg) translateY(-4px); }

.fb-receipt::before,
.fb-receipt::after {
    /* torn-paper top + bottom */
    content: "";
    position: absolute;
    left: 0; right: 0; height: 10px;
    background:
        radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) 0 0 / 12px 10px;
}
.fb-receipt::before { top: -10px; }
.fb-receipt::after { bottom: -10px; transform: rotate(180deg); }

.fb-receipt-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--fb-line);
    padding-bottom: .75rem;
}

.fb-receipt-title {
    font-family: 'Fraunces', Georgia, serif;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}
.fb-receipt-h span { color: var(--fb-mute); font-size: .85rem; }

.fb-receipt-line {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: .45rem 0;
    font-variant-numeric: tabular-nums;
    color: var(--fb-ink);
}
.fb-receipt-line.shared { color: var(--fb-mute); }
.fb-receipt-line .name small { color: var(--fb-mute); display: block; line-height: 1; }

.fb-receipt-divider {
    border: 0;
    border-top: 1px dashed var(--fb-line);
    margin: .65rem 0;
}

.fb-receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: .25rem;
}
.fb-receipt-total .label { font-weight: 600; }
.fb-receipt-total .amount {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--fb-deep);
}

.fb-receipt-stamp {
    position: absolute;
    right: -.6rem; top: -1.1rem;
    background: var(--fb-accent);
    color: #fff;
    font-weight: 800;
    padding: .35rem .8rem;
    border-radius: var(--radius-pill);
    font-size: .8rem;
    letter-spacing: .04em;
    transform: rotate(8deg);
    box-shadow: 0 6px 16px rgba(255, 107, 53, .35);
}

/* ---------- generic section ---------- */

.fb-section {
    padding: 5.5rem 0;
}

.fb-section-dark {
    background: var(--fb-ink);
    color: #fff;
}

.fb-section-cream {
    background: var(--fb-paper-2);
}

.fb-section-h {
    font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.fb-section-h em { font-style: italic; font-family: 'Fraunces', Georgia, serif; font-weight: 500; }

.fb-section-sub { color: var(--fb-mute); font-size: 1.1rem; max-width: 36rem; margin-bottom: 3rem; }
.fb-section-dark .fb-section-sub { color: rgba(255, 255, 255, .7); }

.fb-eyebrow-dark { background: rgba(255, 255, 255, .1); color: var(--fb-accent-2); }

/* ---------- band of stats ---------- */

.fb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--fb-ink);
    color: #fff;
}
.fb-stat {
    padding: 2.25rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}
.fb-stat:last-child { border-right: 0; }
.fb-stat-n {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3vw + .5rem, 3rem);
    font-weight: 700;
    color: var(--fb-accent-2);
    line-height: 1;
}
.fb-stat-l { color: rgba(255, 255, 255, .6); font-size: .9rem; margin-top: .35rem; }

@media (max-width: 768px) {
    .fb-stats { grid-template-columns: repeat(2, 1fr); }
    .fb-stat:nth-child(2) { border-right: 0; }
    .fb-stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .08); }
}

/* ---------- feature cards ---------- */

.fb-feature {
    background: #fff;
    border: 1px solid var(--fb-line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.fb-feature:hover {
    transform: translateY(-4px);
    border-color: var(--fb-ink);
    box-shadow: 0 18px 40px -18px rgba(11, 15, 20, .18);
}

.fb-feature-glyph {
    width: 3rem; height: 3rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1.1rem;
}
.fb-feature-glyph.persimmon { background: rgba(255, 107, 53, .15); color: var(--fb-accent); }
.fb-feature-glyph.sun       { background: rgba(255, 209, 102, .3);  color: #946400; }
.fb-feature-glyph.mint      { background: rgba(10, 163, 127, .15);  color: var(--fb-mint); }
.fb-feature-glyph.deep      { background: rgba(28, 43, 206, .12);   color: var(--fb-deep); }

.fb-feature h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; }
.fb-feature p  { margin: 0; color: var(--fb-mute); }

/* ---------- how-it-works strip ---------- */

.fb-step {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.fb-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fb-step-n {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--fb-accent-2);
    font-weight: 700;
}
.fb-step h3 { font-size: 1.4rem; margin: 0 0 .5rem; font-weight: 700; }
.fb-step p { margin: 0; color: rgba(255, 255, 255, .7); max-width: 38rem; }

/* ---------- pricing ---------- */

.fb-price-card {
    background: #fff;
    border: 1px solid var(--fb-line);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    height: 100%;
    position: relative;
}
.fb-price-card.featured {
    background: var(--fb-ink);
    color: #fff;
    border-color: var(--fb-ink);
}
.fb-price-card.featured .fb-price-amount { color: var(--fb-accent-2); }
.fb-price-card.featured .fb-price-list li { color: rgba(255, 255, 255, .8); }
.fb-price-card.featured .fb-price-list li::before { color: var(--fb-mint); }

.fb-price-tag {
    position: absolute;
    top: -.7rem; right: 1.5rem;
    background: var(--fb-accent);
    color: #fff;
    padding: .25rem .75rem;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fb-price-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.fb-price-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    margin: .5rem 0 .25rem;
}
.fb-price-amount small { font-size: 1rem; font-weight: 500; color: var(--fb-mute); }
.fb-price-card.featured .fb-price-amount small { color: rgba(255, 255, 255, .6); }

.fb-price-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.fb-price-list li {
    display: flex;
    gap: .55rem;
    font-size: .95rem;
}
.fb-price-list li::before {
    content: "✓";
    color: var(--fb-mint);
    font-weight: 800;
}

/* ---------- testimonial ---------- */

.fb-quote {
    background: var(--fb-paper-2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border-left: 4px solid var(--fb-accent);
}
.fb-quote p {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.3rem, 1.5vw + 1rem, 2rem);
    line-height: 1.3;
    margin: 0 0 1.25rem;
    color: var(--fb-ink);
}
.fb-quote-by {
    display: flex; align-items: center; gap: .75rem;
    font-size: .95rem; color: var(--fb-mute);
}
.fb-quote-avatar {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: var(--fb-ink);
    color: var(--fb-accent-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
}

/* ---------- faq ---------- */

.fb-faq .accordion-item {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--fb-line);
}
.fb-faq .accordion-item:last-child { border-bottom: 1px solid var(--fb-line); }
.fb-faq .accordion-button {
    background: transparent;
    color: var(--fb-ink);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 1.25rem 0;
    box-shadow: none !important;
}
.fb-faq .accordion-button:not(.collapsed) { color: var(--fb-accent); }
.fb-faq .accordion-body {
    padding: 0 0 1.25rem;
    color: var(--fb-mute);
}

/* ---------- big CTA strip ---------- */

.fb-cta-strip {
    background:
        radial-gradient(70% 70% at 80% 0%, rgba(255, 209, 102, .25), transparent 70%),
        radial-gradient(70% 70% at 0% 100%, rgba(255, 107, 53, .35), transparent 70%),
        var(--fb-ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
}
.fb-cta-strip h2 {
    font-size: clamp(2.2rem, 3.5vw + 1rem, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
}

@media (max-width: 576px) { .fb-cta-strip { padding: 2.5rem 1.5rem; } }

/* ---------- footer ---------- */

.fb-footer {
    background: var(--fb-ink);
    color: #fff;
    padding: 3.5rem 0 2rem;
}
.fb-footer-h { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; color: #fff; }
.fb-footer-list li { padding: .15rem 0; }
.fb-footer-list a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .15s ease;
}
.fb-footer-list a:hover { color: var(--fb-accent-2); }
.fb-footer-divider { border-color: rgba(255, 255, 255, .08); margin: 2rem 0 1rem; }

/* ---------- generic page header (sub pages) ---------- */

.fb-page-head {
    padding: 4rem 0 2.5rem;
    background: var(--fb-paper);
    border-bottom: 1px solid var(--fb-line);
}
.fb-page-head h1 {
    font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
.fb-page-head h1 em { font-style: italic; font-family: 'Fraunces', Georgia, serif; font-weight: 500; color: var(--fb-deep); }
.fb-page-head p { font-size: 1.15rem; color: var(--fb-mute); max-width: 38rem; margin-top: 1rem; }
