/* Receipt Book — public feature pages, Business plan page and the home page's Business band. Loads after landing.css. */

.nav__links a[aria-current="page"] { color: var(--text); font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; font-size: 13px; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--primary); }

/* Hero */
.fp-hero, .biz-hero { padding: 28px 0 40px; }
.fp-hero__inner { max-width: 780px; }
.fp-hero__title { font-size: clamp(30px, 6vw, 50px); font-weight: 800; line-height: 1.06; color: var(--ink); }
.biz-hero {
    background:
        radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.biz-hero__inner { display: grid; gap: 28px; align-items: center; }

/* Plan pills */
.fp-plan { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fp-plan--free { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.fp-plan--get_paid, .fp-plan--send { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.fp-plan--business { background: color-mix(in srgb, var(--marigold) 22%, transparent); color: #8a5a00; }
:root[data-theme="dark"] .fp-plan--business { color: var(--marigold); }

/* Body */
.fp-body { max-width: 820px; padding-top: 8px; padding-bottom: 48px; }
.fp-body--wide, .fp-body.container { max-width: 1120px; }
.fp-section { margin-top: 40px; }
.fp-section h2, .fp-body > h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.fp-section p { color: var(--text-muted); font-size: 17px; line-height: 1.6; max-width: 46em; }
.fp-subhead { margin: 32px 0 12px; font-size: 18px; }
.fp-note { font-size: 14px; color: var(--text-muted); }
.section-sub--left { text-align: left; margin-left: 0; }

.fp-answer-box {
    margin-top: 8px; padding: 20px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
}
.fp-answer-box h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin: 0 0 6px; font-family: var(--font); }
.fp-answer-box p { margin: 0; color: var(--text); }

.fp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fp-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.fp-list li::before {
    content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 800;
    color: #fff; background: var(--accent);
}
.fp-steps { margin-top: 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--primary); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.6; }

/* Feature cards */
.fcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fcard {
    height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: 4px 14px;
    padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fcard:hover, .fcard:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.fcard__icon {
    grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; font-size: 16px; color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.fcard__name { font-weight: 800; font-size: 17px; }
.fcard__text { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.fcard__plan { justify-self: start; margin-top: 6px; }

/* Business price card */
.biz-price {
    background: var(--surface); border: 2px solid var(--primary); border-radius: 20px;
    padding: 22px; box-shadow: var(--shadow);
}
.biz-price__amount { margin: 16px 0 0; font-size: 18px; color: var(--text-muted); }
.biz-price__amount span { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--ink); }
.biz-price__per { margin: 2px 0 0; font-size: 14px; color: var(--accent); font-weight: 600; }
.biz-price .plan__features { margin: 16px 0; }
.biz-price__note { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Pains */
.pains { padding: 40px 0; background: var(--surface-2); }
.pains__grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.pains__grid li { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); color: var(--text-muted); line-height: 1.5; }
.pains__grid strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ROI */
.roi { padding: 44px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--bg)), var(--bg)); }
.roi__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.roi__form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.roi__form .field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text-muted); margin: 0; }
.roi__form input {
    width: 100%; min-width: 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--text); padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.roi__form input::placeholder { color: var(--text-muted); font-weight: 500; font-style: italic; }
.roi__form input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.roi__out { display: block; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); line-height: 1.5; }
.roi__out strong { color: var(--text); font-size: 18px; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare thead th { font-size: 15px; vertical-align: bottom; }
.compare__price { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.compare .compare__biz { background: color-mix(in srgb, var(--marigold) 9%, transparent); }
.compare .yes { color: var(--accent); font-weight: 800; }
.compare .no { color: var(--text-muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Home page: Business band */
.biz-band { padding: 56px 0; background: #0f1430; color: #e8ebf4; }
.biz-band .section-title { color: #fff; }
.biz-band .section-sub { color: #b9c0d6; }
.biz-band .fcard { background: #161d3d; border-color: #273061; color: #e8ebf4; }
.biz-band .fcard__text { color: #b9c0d6; }
.biz-band .fcard__icon { color: #c7c3ff; background: rgba(124, 116, 255, .18); }
.biz-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.biz-band .btn--ghost { color: #fff; border-color: #3a4478; }
.biz-band .btn--ghost:hover { border-color: #fff; color: #fff; }

@media (min-width: 720px) {
    .fcards { grid-template-columns: repeat(2, 1fr); }
    .pains__grid { grid-template-columns: repeat(2, 1fr); }
    .fp-list--cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .fcards { grid-template-columns: repeat(3, 1fr); }
    .biz-hero__inner { grid-template-columns: 1.4fr 1fr; gap: 48px; }
    .roi__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
    .pains__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .fcard { transition: none; }
    .fcard:hover, .fcard:focus-visible { transform: none; }
}

/* Home page additions */
.eyebrow--link { text-decoration: none; }
.eyebrow--link:hover { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.plan__more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--primary); text-decoration: none; }
.plan__more:hover { text-decoration: underline; }
.biz-band .fp-plan--business { color: var(--marigold); background: rgba(242, 168, 29, .16); }
.biz-band .fp-plan--get_paid, .biz-band .fp-plan--send { color: #c7c3ff; background: rgba(124, 116, 255, .2); }

/* Comparison pages (/compare) */
.vs-table { min-width: 0; font-size: 13px; }
.vs-table th, .vs-table td { text-align: left; vertical-align: top; line-height: 1.45; padding: 10px 8px; overflow-wrap: anywhere; }
@media (min-width: 720px) { .vs-table { font-size: 14px; } .vs-table th, .vs-table td { padding: 10px 12px; } }
.vs-table thead th:nth-child(2), .vs-table td:nth-child(2) { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.vs-table tbody th { font-weight: 600; width: 28%; }
.fp-list--plain li::before { content: "•"; color: var(--text-muted); background: var(--surface-2); }
.vs-sources { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.vs-sources a { color: var(--primary); }

/* Free resources block (home page and /resources) */
.res { display: grid; gap: 16px; }
@media (min-width: 900px) { .res { grid-template-columns: 1.15fr 1fr 1fr; align-items: start; } }
.res__col { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.res__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; color: var(--ink); }
.res__badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.res__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.res__list a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.res__list a:hover, .res__list a:focus-visible { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.res__list strong { display: block; font-size: 15px; color: var(--ink); }
.res__list small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.res__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--primary); background: var(--surface-2); }
.res__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.res__chips a { display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid transparent; }
.res__chips a:hover, .res__chips a:focus-visible { border-color: var(--primary); color: var(--primary); }
.res__note { margin: 0; font-size: 13px; color: var(--text-muted); }
.res__more { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 14px; color: var(--primary); text-decoration: none; }
.res__more:hover { text-decoration: underline; }
.res-band { padding: 64px 0; }
.res-band--page { padding-top: 8px; }

/* Conversion box at the end of free resource pages */
.demo-box {
    display: grid; gap: 16px; align-items: center; margin: 40px 0 0; padding: 24px;
    border-radius: 20px; background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.demo-box h2 { margin: 0; font-size: 22px; color: var(--ink); }
.demo-box p { margin: 6px 0 0; color: var(--text-muted); line-height: 1.55; }
.demo-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) { .demo-box { padding: 28px 32px; } }

/* /refer: example earnings */
.refer-earn { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.refer-earn th, .refer-earn td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.refer-earn th { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.refer-earn small { color: var(--text-muted); }
.refer-earn__wrap { overflow-x: auto; }
