/**
 * Fountain POS — compact UI that stays the same on Herd and live.
 * 93.75% of the browser default (15px when default is 16px) scales the whole app.
 */

:root {
    --pos-fs-base: 1rem;
    --pos-fs-sm: 0.9375rem;
    --pos-fs-xs: 0.875rem;
    --pos-fs-lg: 1.125rem;
    --pos-fs-xl: 1.25rem;
    --pos-line-height: 1.5;
    --pos-line-height-tight: 1.3;

    --bs-body-font-size: var(--pos-fs-base);
    --bs-body-line-height: var(--pos-line-height);
    --bs-small-font-size: var(--pos-fs-sm);
    --bs-nav-link-font-size: var(--pos-fs-base);
}

html {
    font-size: 93.75% !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: var(--pos-fs-base);
    line-height: var(--pos-line-height);
}

h1, .h1 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); line-height: var(--pos-line-height-tight); }
h2, .h2 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: var(--pos-line-height-tight); }
h3, .h3 { font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: var(--pos-line-height-tight); }
h4, .h4 { font-size: 1.05rem; line-height: var(--pos-line-height-tight); }
h5, .h5 { font-size: 1rem; line-height: var(--pos-line-height-tight); }
h6, .h6 { font-size: 0.9375rem; line-height: var(--pos-line-height-tight); }

.table,
.table td {
    font-size: var(--pos-fs-base);
}

.table-sm,
.table-sm td {
    font-size: 0.875rem;
}

.table th,
.table thead th {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.form-label,
.col-form-label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.form-control,
.form-select,
.form-check-label,
.input-group-text,
.form-control-sm,
.form-select-sm {
    font-size: 16px;
}

.form-control-lg,
.form-select-lg {
    font-size: var(--pos-fs-lg);
}

.btn,
.btn-sm {
    font-size: 1rem;
}

.btn-lg {
    font-size: var(--pos-fs-lg);
}

.badge {
    font-size: 0.9375rem;
}

.nav-link,
.list-group-item,
.pagination .page-link {
    font-size: 1rem;
}

.dropdown-item {
    font-size: 0.9375rem;
}

.app-account-menu .dropdown-item,
.app-account-name,
.app-account-menu-name {
    font-size: 0.8125rem;
}

.app-account-role,
.app-account-menu-role {
    font-size: 0.6875rem;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-body {
    font-size: 1rem;
}

.card-header,
.card-title {
    font-size: 1rem;
}

.alert {
    font-size: 1rem;
}

.small,
small,
.form-text {
    font-size: var(--pos-fs-sm);
}

.text-muted {
    font-size: inherit;
}

.accordion-button {
    font-size: 1rem;
    line-height: 1.4;
}

/* App shell */
.sidebar-brand-link,
.sidebar-brand-text {
    font-size: 1.05rem;
}

.sidebar-role {
    font-size: var(--pos-fs-sm);
}

.sidebar-link {
    font-size: 0.9375rem;
}

.sidebar-link i {
    font-size: 1.18rem;
}

.sidebar-group-label {
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
}

.topbar-title,
.app-topbar-title h1 {
    font-size: 1.15rem;
}

.topbar-subtitle {
    font-size: var(--pos-fs-sm);
}

.dashboard-header h1,
.dashboard-header .h2,
.dashboard-header .h3,
.page-header-title,
.dashboard-title {
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
}

.dashboard-subtitle,
.stat-card .stat-subtitle {
    font-size: 1rem;
}

.stat-card-value,
.dashboard-stat-value,
.stat-card .stat-value {
    font-size: 1.5rem;
}

.stat-card-label,
.stat-card .stat-label {
    font-size: 1rem;
}

.quick-action-label {
    font-size: 0.9375rem;
}

.admin-section-label,
.industry-banner-body strong {
    font-size: 0.9375rem;
}

.industry-report-pills .nav-link {
    font-size: 1rem;
}

.industry-report-pills .nav-link .badge {
    font-size: 0.9375rem;
}

.owner-usage-card__label {
    font-size: 1rem;
}

.owner-usage-card__value {
    font-size: 1.2rem;
}

.owner-usage-card__hint {
    font-size: 1rem;
}

body.app-layout:not(.pos-page) .alert,
body.app-layout:not(.pos-page) .dashboard-panel .card-header,
body.app-layout:not(.pos-page) .btn-lg,
body.app-layout:not(.pos-page) .form-control-lg,
body.app-layout:not(.pos-page) .form-select-lg {
    font-size: 1rem;
}

body.app-layout:not(.pos-page) .sub-manage-nav .nav-link,
body.app-layout:not(.pos-page) .school-settings-subnav .nav-link,
body.app-layout:not(.pos-page) .resto-plan-subnav .nav-link {
    font-size: 1rem;
}

.mobile-notif-menu,
.mobile-notif-menu .notif-title,
.notif-panel .list-group-item,
.notif-inbox .table,
.alert-notif-banner {
    font-size: 1rem;
}

.mobile-notif-menu .dropdown-header,
.notif-panel .badge,
.notif-inbox .badge {
    font-size: 0.9375rem;
}

.sub-pay-page .form-label,
.sub-pay-page .sub-pay-hint,
.sub-pay-page .form-select,
.sub-pay-page .form-control,
.sub-pay-page .btn-paystack {
    font-size: 1rem;
}

.app-footer {
    font-size: var(--pos-fs-sm);
}

/* POS counter — large, glanceable type */
.pos-page,
.pos-terminal {
    font-size: 1rem;
}

.pos-terminal .product-card .card-title,
.pos-cart-mobile-item .item-name {
    font-size: 1.18rem;
    font-weight: 600;
}

.pos-cart-mobile-item .item-price,
.pos-cart-mobile-empty {
    font-size: 0.9375rem;
}

.pos-mobile-checkout-total strong {
    font-size: 1.4rem;
}

.pos-mobile-cart-btn {
    font-size: 1rem;
}

.receipt-view-page {
    font-size: 1rem;
}

.mobile-bottom-nav-link {
    font-size: 0.7rem;
}

.mobile-bottom-nav-link i {
    font-size: 1.15rem;
}

.mobile-data-item .item-meta {
    font-size: 1rem;
}

.table-stack-mobile tbody td::before {
    font-size: 0.9375rem;
}

/* Login & register */
.pos-login-page,
.register-page,
.pos-login-page p,
.login-page-card .text-muted {
    font-size: 1rem;
}

.register-page .business-type-card .type-label {
    font-size: 0.9rem;
}

.register-page .type-summary,
.register-page .business-type-hint,
.register-page .register-step-label,
.register-page .plan-feature,
.register-page .text-muted.small,
.image-upload-hint {
    font-size: 1rem;
}

.register-page .plan-price,
.register-page .plan-hero-price__amount {
    font-size: 1.35rem;
}

.assistant-panel,
.assistant-msg {
    font-size: 0.9375rem;
}

/* Public / marketing — readable, not oversized */
.landing-nav-links .nav-link {
    font-size: 0.9375rem;
}

.landing-brand {
    font-size: 1.25rem;
}

.navbar-brand .brand-lockup__company {
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.public-page-hero .lead,
.public-page-content,
.contact-info-card,
.landing-page .hero-desc,
.landing-page .section-desc {
    font-size: 1rem;
}

.landing-hero h1,
.brand-lockup--hero .brand-lockup__product {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title,
.public-page-hero .section-title,
.pricing-hero__title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.pricing-hero__lead {
    font-size: 1rem;
}

.contact-form-card .form-label {
    font-size: 1rem;
}

.landing-page .small,
.landing-footer .small {
    font-size: var(--pos-fs-sm);
}

.landing-page .section-label,
.pricing-page .section-label,
.industry-pill {
    font-size: 0.9375rem;
}

.industry-card__title {
    font-size: 1.12rem;
}

.industry-card__summary,
.feature-card p,
.feature-card-compact p,
.pricing-faq-item p {
    font-size: 1rem;
}

.pricing-card-modern__tagline,
.pricing-card-modern__offer,
.pricing-trust-pill,
.pricing-business-type-chip {
    font-size: 1rem;
}

.faq-accordion .accordion-body {
    font-size: 1rem;
    line-height: 1.55;
}

/* Same sizes on phones — do not shrink copy live vs local */
@media (max-width: 991.98px) {
    html {
        font-size: 93.75% !important;
    }

    .industry-report-pills .nav-link {
        padding: 0.5rem 0.9rem;
    }

    .mobile-bottom-nav-link {
        min-height: 3.15rem;
        font-size: 0.7rem;
    }

    .mobile-bottom-nav-link i {
        font-size: 1.15rem;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 93.75% !important;
    }

    .landing-hero h1,
    .register-hero h1 {
        font-size: clamp(1.3rem, 5.5vw, 1.55rem);
        overflow-wrap: break-word;
        letter-spacing: -0.02em;
    }

    .section-title,
    .public-page-hero .section-title,
    .pricing-hero__title {
        font-size: clamp(1.15rem, 4.5vw, 1.35rem);
    }

    .app-topbar-title h1,
    .topbar-title,
    .dashboard-title {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        min-height: 2.5rem;
    }

    .btn:not(.btn-sm):not(.btn-close) {
        min-height: 2.5rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm,
    .form-control-lg,
    .form-select-lg {
        font-size: 16px;
        min-height: 2.5rem;
        max-width: 100%;
    }

    .pricing-period-toggle,
    .pricing-card-modern {
        max-width: 100%;
    }

    .pricing-card-modern.is-featured {
        transform: none;
    }

    .table-responsive {
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .app-main {
        overflow-x: hidden;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .dropdown-menu {
        max-width: calc(100vw - 1.5rem);
    }

    .register-hero {
        padding: 4.5rem 0 1rem;
    }

    .register-page {
        padding: 1rem 0 3rem;
    }

    .register-panel {
        padding: 1rem 0.85rem;
    }

    .register-wizard-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .register-wizard-nav .btn {
        flex: 1 1 8rem;
        min-height: 2.5rem;
        white-space: normal;
    }

    .register-submit {
        white-space: normal;
        width: 100%;
    }

    .business-type-grid .type-summary {
        display: none;
    }

    .plan-card .card-body {
        padding: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 93.75% !important;
    }

    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-actions .btn,
    .landing-page .btn-lg,
    .register-wizard-nav .btn,
    .register-submit {
        width: 100%;
    }

    .row.g-3,
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}

@media (max-width: 399.98px) {
    html {
        font-size: 93.75% !important;
    }
}

html {
    overflow-x: clip;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    overflow-wrap: break-word;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

.landing-footer {
    padding: 0.9rem 0 0.7rem;
}

.landing-footer .landing-brand {
    font-size: 1.05rem;
}

.landing-footer-blurb {
    font-size: 0.9375rem;
    line-height: 1.4;
    max-width: 22rem;
}

.landing-footer h6 {
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}

.landing-footer-links li {
    margin-bottom: 0.12rem;
}

.landing-footer-links a {
    font-size: 1rem;
    line-height: 1.35;
}

.landing-footer .small {
    font-size: 0.9375rem;
}

/* Founding 5 — same grid on local and live (not flex-wrap) */
.founding-promo-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #3b0764 0%, #6d28d9 58%, #b45309 160%);
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(109, 40, 217, 0.45);
}

.founding-promo-banner__main {
    min-width: 0;
}

.founding-promo-banner__title {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.founding-promo-banner__lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.92;
}

.founding-promo-banner__spots {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.founding-promo-banner__spots strong {
    font-size: 1.35rem;
    color: #fde68a;
}

.founding-promo-home {
    position: relative;
    z-index: 2;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    margin: 0;
}

.founding-promo-home .founding-promo-banner {
    margin-bottom: 0;
}

.founding-promo-home__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #3b0764 0%, #6d28d9 58%, #b45309 160%);
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(109, 40, 217, 0.45);
}

.founding-promo-home__count {
    text-align: center;
    min-width: 6.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
}

.founding-promo-home__count strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: #fde68a;
}

.founding-promo-home__count span {
    font-size: 0.78rem;
    font-weight: 700;
}

.founding-promo-home__title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.founding-promo-home__copy p {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.95;
}

@media (max-width: 767.98px) {
    .founding-promo-home__card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founding-promo-home__count {
        justify-self: center;
    }

    .founding-promo-home .founding-promo-cta {
        width: 100%;
    }
}

.founding-promo-ending__title {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.founding-promo-ending__rates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.92rem;
}

.founding-promo-ending__rates strong {
    font-weight: 800;
}

.founding-promo-banner__lead strong {
    display: inline;
    font-weight: 700;
    color: #fde68a;
}

.founding-promo-rates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.7rem 0 0.55rem;
}

.founding-promo-rate {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(232, 195, 74, 0.28);
    border-radius: 0.7rem;
    padding: 0.5rem 0.55rem;
    min-width: 0;
}

.founding-promo-rate__name {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.founding-promo-rate__promo {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    color: #fde68a;
}

.founding-promo-rate__then {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
}

.founding-promo-banner__action {
    flex-shrink: 0;
}

.founding-promo-cta {
    font-weight: 700;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    background: #d4a017;
    border-color: #d4a017;
    color: #1a0438;
}

.founding-promo-cta:hover,
.founding-promo-cta:focus {
    background: #e8c34a;
    border-color: #e8c34a;
    color: #1a0438;
}

@media (max-width: 991.98px) {
    .founding-promo-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .founding-promo-cta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .founding-promo-rates {
        grid-template-columns: 1fr;
    }

    .founding-promo-rate__promo {
        white-space: normal;
    }
}

