/* Public website (Payroll by Briltus)
   Palette taken from the Briltus logo: Briltus green (#056839) for actions and money, Briltus sky (#25AAE1) as the
   one highlight (margin rule, active link, the payslip stamp, "today"), deep green-slate for text and dark bands.
   (The --pb-ledger / --pb-marigold names are kept so existing rules keep working.) */
:root {
    --pb-ink: #11261f;
    --pb-ledger: #056839;
    --pb-ledger-dark: #044f2b;
    --pb-marigold: #25aae1;
    --pb-marigold-soft: #e7f6fc;
    --pb-leaf: #056839;
    --pb-paper: #f3f7f5;
    --pb-rule: #d9e4de;
    --pb-muted: #53635c;
    --pb-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
    --pb-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.public-site {
    background: #fff;
    color: var(--pb-ink);
    font-family: var(--pb-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    --bs-link-color: var(--pb-ledger);
    --bs-link-color-rgb: 5, 104, 57;
    --bs-link-hover-color: var(--pb-ledger-dark);
    --bs-primary: var(--pb-ledger);
    --bs-primary-rgb: 5, 104, 57;
    --bs-secondary-color: var(--pb-muted);
}
.public-site h1, .public-site h2, .public-site h3, .public-site .display-font {
    font-family: var(--pb-display);
    color: var(--pb-ink);
    letter-spacing: -0.015em;
}
.public-site h2 { font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; }
.public-site .text-muted { color: var(--pb-muted) !important; }
.public-site .num, .public-site .money { font-variant-numeric: tabular-nums; }
.public-site :focus-visible { outline: 3px solid var(--pb-marigold); outline-offset: 2px; }

.public-site .btn-primary {
    --bs-btn-bg: var(--pb-ledger); --bs-btn-border-color: var(--pb-ledger);
    --bs-btn-hover-bg: var(--pb-ledger-dark); --bs-btn-hover-border-color: var(--pb-ledger-dark);
    --bs-btn-active-bg: var(--pb-ledger-dark); --bs-btn-active-border-color: var(--pb-ledger-dark);
    --bs-btn-disabled-bg: var(--pb-ledger); --bs-btn-disabled-border-color: var(--pb-ledger);
}
.public-site .btn-outline-primary {
    --bs-btn-color: var(--pb-ledger); --bs-btn-border-color: var(--pb-ledger);
    --bs-btn-hover-bg: var(--pb-ledger); --bs-btn-hover-border-color: var(--pb-ledger);
    --bs-btn-active-bg: var(--pb-ledger-dark); --bs-btn-active-border-color: var(--pb-ledger-dark);
}
.public-site .text-primary { color: var(--pb-ledger) !important; }
.public-site .bg-primary { background-color: var(--pb-ledger) !important; }

.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--pb-ink); color: var(--pb-marigold); font-size: 1.1rem;
}
.brand-name { font-family: var(--pb-display); font-weight: 700; font-size: 1.2rem; color: var(--pb-ink); }

/* ---------- Generic sections (features, solutions, about, …) ---------- */
/* Page heroes sit on "account-book paper": faint ruled lines. */
.hero, .home-hero {
    position: relative;
    background-color: var(--pb-paper);
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(5, 104, 57, .06) 31px 32px);
    border-bottom: 1px solid var(--pb-rule);
}
.hero { padding: 4.25rem 0 3.25rem; }
.hero h1 {
    font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
    font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem); max-width: 18ch; margin-bottom: 1rem;
}
.hero .lead { color: var(--pb-muted); font-size: 1.15rem; max-width: 40rem; }
.hero.hero-tight { padding: 3.25rem 0 2.5rem; }

.badge-soft { background: var(--pb-marigold-soft); color: #0a5f86; font-weight: 600; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--pb-paper); }
.feature-icon {
    width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--pb-ink); color: var(--pb-marigold); font-size: 1.3rem;
}
.mock-window { border-radius: 12px; box-shadow: 0 18px 40px rgba(17, 38, 31, .14); overflow: hidden; border: 1px solid var(--pb-rule); background: #fff; }
.mock-window .bar { background: var(--pb-paper); padding: .5rem .75rem; }
.mock-window .bar span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; background: var(--pb-rule); }
.stat-strip .num { font-family: var(--pb-display); font-size: 1.8rem; font-weight: 800; color: var(--pb-ink); }
.price-card .price { font-family: var(--pb-display); font-size: 2.2rem; font-weight: 800; }
.cta-band {
    position: relative; overflow: hidden; color: #fff; border-radius: 16px;
    background-color: var(--pb-ink);
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .05) 31px 32px);
    border-left: 6px solid var(--pb-marigold);
}
.cta-band h2 { color: #fff; }

.site-footer { background: var(--pb-ink); color: #a9bdb4; border-top: 4px solid var(--pb-marigold); }
.site-footer h6 { font-family: var(--pb-display); font-weight: 700; letter-spacing: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #e3ece8; text-decoration: none; }
.site-footer a:hover { color: var(--pb-marigold); }

.blog-card img { object-fit: cover; height: 180px; }
.article { max-width: 720px; margin: 0 auto; font-size: 1.07rem; line-height: 1.75; }
.article h2, .article h3 { margin-top: 2rem; font-weight: 700; }
.article table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.article th, .article td { border: 1px solid var(--pb-rule); padding: .5rem .75rem; }
.article blockquote { border-left: 4px solid var(--pb-marigold); padding-left: 1rem; color: var(--pb-muted); }
.article img { max-width: 100%; border-radius: 10px; }

/* ---------- Home: hero with a live payslip ---------- */
.home-hero { padding: 4rem 0 4.5rem; overflow: hidden; }
.home-hero h1 {
    font-weight: 800; line-height: 1.02; letter-spacing: -0.03em;
    font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); max-width: 12ch; margin-bottom: 1.25rem;
}
.home-hero .lead { font-size: 1.15rem; max-width: 36rem; color: var(--pb-muted); }

/* The payslip itself: a sheet of paper, not a dashboard card. */
.payslip {
    position: relative; background: #fff; border: 1px solid var(--pb-rule); border-top: 6px solid var(--pb-ink);
    border-radius: 4px; padding: 1.5rem 1.6rem 1.25rem; box-shadow: 0 1px 0 var(--pb-rule), 0 24px 48px -18px rgba(17, 38, 31, .28);
    font-size: .95rem; max-width: 34rem; margin-left: auto;
}
.payslip-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--pb-rule); padding-bottom: .9rem; margin-bottom: .9rem; }
.payslip-company { font-family: var(--pb-display); font-weight: 700; font-size: 1.15rem; }
.payslip-meta { color: var(--pb-muted); font-size: .85rem; }
.payslip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.payslip-cols h3 { font-family: var(--pb-body); font-size: .85rem; font-weight: 600; color: var(--pb-muted); margin: 0 0 .35rem; letter-spacing: 0; }
.payslip-row { display: flex; justify-content: space-between; gap: .5rem; padding: .22rem 0; border-bottom: 1px dotted var(--pb-rule); font-variant-numeric: tabular-nums; }
.payslip-row:last-child { border-bottom: 0; }
.payslip-row.total { border-top: 1px solid var(--pb-ink); border-bottom: 0; font-weight: 600; margin-top: .2rem; padding-top: .35rem; }
.payslip-net {
    display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem;
    margin-top: 1.1rem; padding: .85rem 1rem; background: #e8f4ee; border-radius: 4px;
}
.payslip-net .amount { font-family: var(--pb-display); font-size: 2rem; font-weight: 800; color: var(--pb-leaf); font-variant-numeric: tabular-nums; line-height: 1; }
.payslip-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--pb-muted); font-size: .85rem; margin-top: .75rem; }

.payslip-stamp {
    position: absolute; top: 1.35rem; right: 1.25rem; transform: rotate(-9deg);
    border: 3px solid var(--pb-marigold); color: #0b7fb3; border-radius: 6px; padding: .2rem .65rem;
    font-family: var(--pb-display); font-weight: 800; font-size: 1.05rem; line-height: 1.15; text-align: center;
    background: rgba(255, 255, 255, .85); pointer-events: none;
}
.payslip-stamp small { display: block; font-family: var(--pb-body); font-weight: 600; font-size: .68rem; }
@media (prefers-reduced-motion: no-preference) {
    .payslip-stamp.stamp-in { animation: stamp-in .45s cubic-bezier(.2, .9, .3, 1.3) .6s both; }
    @keyframes stamp-in {
        from { opacity: 0; transform: rotate(-20deg) scale(1.9); }
        to { opacity: 1; transform: rotate(-9deg) scale(1); }
    }
}

/* ---------- Home: rules in force (a ruled ledger strip) ---------- */
.ledger-strip { border-bottom: 1px solid var(--pb-rule); background: #fff; }
.ledger-strip dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.ledger-strip .entry { padding: 1.25rem 1.1rem; border-left: 1px solid var(--pb-rule); }
.ledger-strip .entry:first-child { border-left: 0; padding-left: 0; }
.ledger-strip dt { font-family: var(--pb-display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ledger-strip dd { margin: .25rem 0 0; color: var(--pb-muted); font-size: .88rem; line-height: 1.4; }
@media (max-width: 991.98px) {
    .ledger-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ledger-strip .entry, .ledger-strip .entry:first-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--pb-rule); }
    .ledger-strip .entry:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Home: the payroll month ---------- */
.month-grid { display: grid; grid-template-columns: repeat(var(--days, 31), minmax(0, 1fr)); gap: 3px; margin: 2rem 0 .5rem; }
.month-grid .day {
    position: relative; aspect-ratio: 1 / 1.6; background: var(--pb-paper); border-radius: 3px;
    font-size: .72rem; color: var(--pb-muted); display: flex; align-items: flex-end; justify-content: center; padding-bottom: .25rem;
    font-variant-numeric: tabular-nums;
}
.month-grid .day.due { background: var(--pb-ink); color: #fff; font-weight: 600; }
.month-grid .day.today { box-shadow: inset 0 0 0 2px var(--pb-marigold); color: var(--pb-ink); font-weight: 700; }
.month-grid .day.due.today { color: var(--pb-marigold); }
.month-legend { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--pb-muted); flex-wrap: wrap; }
.month-legend .swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; margin-right: .35rem; }

.due-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; border-top: 1px solid var(--pb-rule); }
.due-list li { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--pb-rule); }
.due-list .when { font-family: var(--pb-display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.due-list .when small { font-family: var(--pb-body); font-size: .8rem; font-weight: 500; color: var(--pb-muted); margin-left: .25rem; }
.due-list h3 { font-family: var(--pb-body); font-size: 1rem; font-weight: 600; margin: .55rem 0 .25rem; letter-spacing: 0; }
.due-list p { font-size: .92rem; color: var(--pb-muted); margin: 0; }
.due-list li.next .when { color: #0b7fb3; }
.next-up { background: var(--pb-marigold-soft); border-radius: 6px; padding: .55rem .9rem; display: inline-block; font-size: .95rem; }
@media (max-width: 767.98px) {
    .month-grid { grid-template-columns: repeat(16, minmax(0, 1fr)); }
}

/* ---------- Home: two audiences ---------- */
.audience h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.audience ul { list-style: none; padding: 0; margin: 0; }
.audience li { padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--pb-rule); position: relative; }
.audience li i { position: absolute; left: 0; top: .75rem; color: var(--pb-ledger); font-size: 1.1rem; }
.audience li strong { display: block; font-weight: 600; }
.audience li span { color: var(--pb-muted); font-size: .95rem; }

/* ---------- Home: pricing table & blog list ---------- */
.plan-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plan-table th, .plan-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--pb-rule); vertical-align: baseline; }
.plan-table thead th { font-size: .85rem; font-weight: 600; color: var(--pb-muted); border-bottom: 2px solid var(--pb-ink); }
.plan-table .plan-name { font-family: var(--pb-display); font-weight: 700; font-size: 1.15rem; }
.plan-table .plan-price { font-family: var(--pb-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.plan-table tr.popular { background: var(--pb-marigold-soft); }

.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--pb-rule); }
.post-list li { border-bottom: 1px solid var(--pb-rule); }
.post-list a { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.1rem 0; color: inherit; text-decoration: none; }
.post-list a:hover .post-title { color: var(--pb-ledger); text-decoration: underline; }
.post-list .post-date { color: var(--pb-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.post-list .post-title { font-family: var(--pb-display); font-weight: 700; font-size: 1.15rem; display: block; }
.post-list .post-summary { color: var(--pb-muted); font-size: .95rem; }
@media (max-width: 575.98px) { .post-list a { grid-template-columns: 1fr; gap: .25rem; } }

@media (max-width: 575.98px) {
    .payslip { padding: 1.25rem 1.1rem 1rem; }
    .payslip-head { padding-right: 7.5rem; }
    .payslip-cols { grid-template-columns: 1fr; gap: 1rem; }
    .payslip-net .amount { font-size: 1.7rem; }
}

/* ---------- Public salary calculator (when enabled in admin) ---------- */
.calc-panel { background: #fff; border: 1px solid var(--pb-rule); border-radius: 8px; padding: 1.5rem; }
.scenario { border: 1px solid var(--pb-rule); border-radius: 8px; padding: 1.25rem; height: 100%; background: #fff; }
.scenario.with-pf { border-top: 5px solid var(--pb-ledger); }
.scenario.without-pf { border-top: 5px solid var(--pb-muted); }
.scenario h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.scenario .net { font-family: var(--pb-display); font-size: 2.1rem; font-weight: 800; color: var(--pb-leaf); line-height: 1; font-variant-numeric: tabular-nums; }
.scenario table { font-size: .93rem; font-variant-numeric: tabular-nums; }

/* Contact links that keep the surrounding text colour (footer, contact page). */
.link-inherit { color: inherit; text-decoration: none; }
.link-inherit:hover { text-decoration: underline; }


/* ---------- Header ---------- */
.public-site > header.navbar {
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    padding-top: .65rem; padding-bottom: .65rem;
}
.public-site .navbar .nav-link { color: #2c3f37; font-weight: 500; position: relative; }
.public-site .navbar .nav-link:hover { color: var(--pb-ink); }
.public-site .navbar .nav-link.active { color: var(--pb-ink); }
@media (min-width: 992px) {
    .public-site .navbar .nav-link.active::after {
        content: ""; position: absolute; left: .5rem; right: .5rem; bottom: -.15rem; height: 3px; border-radius: 3px; background: var(--pb-marigold);
    }
}

/* ---------- Buttons ---------- */
.public-site .btn { border-radius: .55rem; font-weight: 600; }
.public-site .btn-primary { box-shadow: 0 1px 0 rgba(17, 38, 31, .25), 0 6px 16px -8px rgba(5, 104, 57, .7); }
.public-site .btn-lg { padding-top: .7rem; padding-bottom: .7rem; }
.public-site .btn-light { color: var(--pb-ink); }

/* ---------- Cards (solutions, blog, contact) ---------- */
.public-site .site-card, .public-site .blog-card {
    border: 1px solid var(--pb-rule); border-radius: 12px; background: #fff; box-shadow: none;
    transition: border-color .15s, transform .15s;
}
.public-site .site-card:hover, .public-site .blog-card:hover { border-color: #a8d1bc; transform: translateY(-2px); }
.public-site .site-card-featured { border-top: 5px solid var(--pb-ledger); }
.public-site .site-card .btn { align-self: flex-start; margin-top: auto; }
.public-site .site-card { display: flex; flex-direction: column; }

/* ---------- Features page: each group is a ledger entry ---------- */
.feature-group { padding: 2.5rem 0; border-top: 1px solid var(--pb-rule); }
.feature-group:first-child { border-top: 0; padding-top: 1rem; }
.feature-group h2 { margin-top: .25rem; }
.feature-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.feature-items li { display: flex; gap: .65rem; padding: .7rem 0; border-bottom: 1px dotted var(--pb-rule); line-height: 1.5; }
.feature-items li i { color: var(--pb-leaf); font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
@media (max-width: 767.98px) { .feature-items { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.offer-note {
    display: inline-block; margin-top: .5rem; padding: .55rem .9rem; border-radius: 8px;
    background: var(--pb-marigold-soft); color: #0a4f70; border: 1px solid #b6e2f5; font-size: .95rem;
}
.public-site .plan-card { border: 1px solid var(--pb-rule); border-radius: 14px; background: #fff; }
.public-site .plan-card.plan-popular { border: 2px solid var(--pb-ink); box-shadow: 0 24px 48px -28px rgba(17, 38, 31, .45); }
.public-site .plan-ribbon { background: var(--pb-marigold); color: var(--pb-ink); font-weight: 700; }
.public-site .plan-card .h5 { font-family: var(--pb-display); font-weight: 700; font-size: 1.35rem; }
.public-site .plan-price { font-family: var(--pb-display); font-weight: 800; color: var(--pb-ink); }
.public-site .plan-estimate.bg-primary-subtle { background: #ebf5f0 !important; color: #0f3d26 !important; }
.public-site .plan-card ul li i { color: var(--pb-leaf) !important; }

/* ---------- Forms (contact, sign-up) ---------- */
.public-site .form-control, .public-site .form-select { border-color: #cdd9d3; border-radius: .55rem; padding-top: .55rem; padding-bottom: .55rem; }
.public-site .form-control:focus, .public-site .form-select:focus { border-color: var(--pb-ledger); box-shadow: 0 0 0 .2rem rgba(5, 104, 57, .15); }
.public-site .form-check-input:checked { background-color: var(--pb-ledger); border-color: var(--pb-ledger); }
.public-site .card { border-radius: 12px; }

/* ---------- Blog tags ---------- */
.public-site .hero .badge.bg-primary { background: var(--pb-ink) !important; }

/* Headings that carry a size class keep it (the generic h2 size is for section titles). */
.public-site h2.h4, .public-site h3.h4 { font-size: 1.5rem; }
.public-site h2.h5, .public-site h3.h5 { font-size: 1.2rem; }
.public-site h2.h6 { font-size: 1rem; }

/* ---------- Logo lockup (header & footer) ---------- */
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-lockup-mark { display: block; border-radius: 8px; }
.brand-lockup-text { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup-product { font-family: var(--pb-display); font-weight: 800; font-size: 1.28rem; color: var(--pb-ink); letter-spacing: -0.02em; }
.brand-lockup-by { font-size: .78rem; color: var(--pb-muted); margin-top: .18rem; }
/* "Briltus" set like the company logo: serif, green "Bril", sky "tus". */
.brand-lockup .briltus { font-family: "Noto Serif", Georgia, serif; font-weight: 600; font-size: .9rem; letter-spacing: .01em; }
.brand-lockup .bril { color: #056839; }
.brand-lockup .tus { color: #25aae1; }
.brand-lockup.on-dark .brand-lockup-product { color: #fff; }
.brand-lockup.on-dark .brand-lockup-by { color: #a9bdb4; }
.brand-lockup.on-dark .bril { color: #6fd19f; }   /* lighter green so it reads on the dark footer */

/* Home: "try a take-home" slider above the sample payslip */
.slip-try { max-width: 34rem; margin: 0 0 1rem auto; padding: .75rem 1rem; background: #fff; border: 1px solid var(--pb-rule); border-radius: 10px; }
.slip-try label { display: block; font-size: .95rem; color: var(--pb-muted); margin-bottom: .35rem; }
.slip-try label strong { color: var(--pb-ink); font-family: var(--pb-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.slip-try .form-range::-webkit-slider-thumb { background: var(--pb-ledger); }
.slip-try .form-range::-moz-range-thumb { background: var(--pb-ledger); }
.slip-try .form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .2rem rgba(5, 104, 57, .2); }

/* Pricing FAQ: answer follows the question on the same line. */
.faq-item p { display: inline; margin: 0; }
