/*
 * Pages before sign-in: landing (layouts/public.php) and the auth pages (layouts/blank.php).
 * Built on Tabler variables so light/dark themes keep working.
 */
:root {
    --pub-grad: linear-gradient(135deg, #4c1d95 0%, #6d28d9 45%, #a855f7 100%);
    --pub-soft: color-mix(in srgb, var(--tblr-primary) 8%, var(--tblr-bg-surface));
}
/* Dark mode: the deep violet of the gradient is too dark to read as text on a dark page. */
[data-bs-theme="dark"] .pub-hero h1 .pub-accent { background-image: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%); }

/* ---------- navbar ---------- */
.pub-nav {
    backdrop-filter: saturate(180%) blur(12px);
    background: color-mix(in srgb, var(--tblr-bg-surface) 82%, transparent);
    border-bottom: 1px solid var(--tblr-border-color-translucent);
}
.pub-nav .nav-link { font-weight: 500; }
.pub-brand-mark {
    width: 2rem; height: 2rem; border-radius: .6rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pub-grad); color: #fff; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(109, 40, 217, .35);
}

/* ---------- hero ---------- */
.pub-hero {
    position: relative; overflow: hidden;
    padding: 5rem 0 4rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--tblr-primary) 18%, transparent), transparent 60%),
        radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, #a855f7 14%, transparent), transparent 60%);
}
.pub-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.pub-hero h1 .pub-accent { background: var(--pub-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-hero .lead { font-size: 1.15rem; color: var(--tblr-secondary); }
.pub-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
    background: var(--pub-soft); color: var(--tblr-primary);
    border: 1px solid color-mix(in srgb, var(--tblr-primary) 20%, transparent);
}
.pub-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--tblr-secondary); font-size: .9rem; }
.pub-checks li::before { content: "\2713"; color: var(--tblr-success); font-weight: 700; margin-right: .4rem; }

/* App mock-up (pure HTML, no screenshot to keep up to date) */
.pub-mock {
    border-radius: 1rem; overflow: hidden;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .03);
}
.pub-mock-bar { display: flex; gap: .35rem; padding: .6rem .8rem; background: var(--tblr-bg-surface-secondary); border-bottom: 1px solid var(--tblr-border-color); }
.pub-mock-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--tblr-border-color); }
.pub-mock-bar span:nth-child(1) { background: #f87171; }
.pub-mock-bar span:nth-child(2) { background: #fbbf24; }
.pub-mock-bar span:nth-child(3) { background: #34d399; }
.pub-mock-body { display: grid; grid-template-columns: 9rem 1fr; min-height: 20rem; }
.pub-mock-side { background: #1e293b; padding: .9rem .7rem; color: #cbd5e1; font-size: .78rem; }
.pub-mock-side div { padding: .35rem .5rem; border-radius: .4rem; margin-bottom: .2rem; white-space: nowrap; }
.pub-mock-side div.active { background: rgba(255, 255, 255, .1); color: #fff; }
.pub-mock-main { padding: 1rem; font-size: .82rem; }
.pub-kpi { border: 1px solid var(--tblr-border-color); border-radius: .6rem; padding: .55rem .7rem; }
.pub-kpi .v { font-weight: 700; font-size: 1rem; }
.pub-kpi .l { color: var(--tblr-secondary); font-size: .72rem; }
.pub-rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
.pub-rooms span { border-radius: .35rem; padding: .35rem 0; text-align: center; font-size: .7rem; font-weight: 600; }
.pub-rooms .o { background: color-mix(in srgb, var(--tblr-success) 18%, transparent); color: var(--tblr-success); }
.pub-rooms .v { background: var(--tblr-bg-surface-secondary); color: var(--tblr-secondary); }
.pub-rooms .d { background: color-mix(in srgb, var(--tblr-danger) 15%, transparent); color: var(--tblr-danger); }
.pub-float {
    position: absolute; right: -1rem; bottom: -1.5rem; width: 15rem;
    border-radius: .9rem; background: var(--tblr-bg-surface); border: 1px solid var(--tblr-border-color);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .3); padding: .9rem; font-size: .8rem;
}
.pub-qr {
    width: 4rem; height: 4rem; flex: none; border-radius: .4rem;
    background:
        conic-gradient(from 90deg at 25% 25%, #0f172a 25%, transparent 0) 0 0 / 1rem 1rem,
        conic-gradient(from 90deg at 75% 75%, #0f172a 25%, transparent 0) .5rem .5rem / 1rem 1rem;
    border: .25rem solid #fff; outline: 1px solid var(--tblr-border-color);
}
@media (max-width: 991.98px) {
    .pub-float { position: static; width: auto; margin-top: 1rem; }
    .pub-mock-body { grid-template-columns: 1fr; }
    .pub-mock-side { display: none; }
}

/* ---------- sections ---------- */
.pub-section { padding: 5rem 0; }
.pub-section-alt { background: var(--tblr-bg-surface-secondary); }
.pub-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--tblr-primary); }
.pub-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.pub-sub { color: var(--tblr-secondary); font-size: 1.05rem; max-width: 42rem; }

.pub-feature { height: 100%; border-radius: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.pub-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(15, 23, 42, .25); }
.pub-icon {
    width: 2.75rem; height: 2.75rem; border-radius: .8rem;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
    background: var(--pub-soft); color: var(--tblr-primary);
}
.pub-new { font-size: .68rem; vertical-align: middle; }

/* Monthly workflow timeline */
.pub-steps { counter-reset: step; }
.pub-step { position: relative; padding-left: 3.5rem; }
.pub-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    background: var(--pub-grad); color: #fff; box-shadow: 0 6px 14px rgba(109, 40, 217, .3);
}

.pub-showcase { border-radius: 1rem; border: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); padding: 1.25rem; box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .35); }
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li { display: flex; gap: .6rem; margin-bottom: .75rem; }
.pub-list li i { color: var(--tblr-success); font-size: 1.2rem; flex: none; margin-top: .05rem; }

.pub-price { border-radius: 1.25rem; border: 2px solid var(--tblr-primary); position: relative; }
.pub-price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; }

.pub-cta {
    border-radius: 1.5rem; padding: 3.5rem 2rem; color: #fff; text-align: center;
    background: var(--pub-grad); box-shadow: 0 30px 60px -30px rgba(109, 40, 217, .7);
}
.pub-cta .btn-light { color: var(--tblr-primary); font-weight: 600; }

.pub-faq .accordion-button { font-weight: 600; }
.pub-footer { border-top: 1px solid var(--tblr-border-color); }
.pub-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tblr-secondary); }
.pub-footer a { color: var(--tblr-body-color); text-decoration: none; }
.pub-footer a:hover { color: var(--tblr-primary); }

/* ---------- auth pages (layouts/blank.php) ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-form .container-tight { width: 100%; }
.auth-aside {
    position: relative; overflow: hidden; color: #fff; padding: 3rem;
    display: flex; flex-direction: column; justify-content: center;
    background: var(--pub-grad);
}
.auth-aside::after {
    content: ""; position: absolute; inset: auto -20% -30% auto; width: 32rem; height: 32rem; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.auth-aside .auth-quote { font-size: 1.6rem; font-weight: 700; line-height: 1.3; max-width: 28rem; }
.auth-aside ul { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; z-index: 1; }
.auth-aside li { display: flex; gap: .75rem; margin-bottom: 1rem; max-width: 28rem; }
.auth-aside li i { flex: none; width: 2rem; height: 2rem; border-radius: .6rem; background: rgba(255, 255, 255, .15); display: inline-flex; align-items: center; justify-content: center; }
.auth-aside small { opacity: .85; }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

/* Never let a wide child create a horizontal scroll on phones. */
.landing { overflow-x: clip; }
.pub-mock-body > *, .pub-mock-main .row > * { min-width: 0; }
@media (max-width: 575.98px) {
    .pub-hero { padding: 3rem 0 2.5rem; }
    .pub-section { padding: 3.5rem 0; }
    .pub-rooms { grid-template-columns: repeat(4, 1fr); }
    .pub-rooms span:nth-child(n+9) { display: none; }
    .pub-cta { padding: 2.5rem 1.25rem; }
}

/* M6: on phones a .row.g-4 gutter (1.5rem) is wider than the container padding: narrow it so rows never stick out. */
@media (max-width: 575.98px) {
    .container > .row { --tblr-gutter-x: 1rem; --bs-gutter-x: 1rem; }
}
