@use 'sass:color';

@import 'breakpoints';

// -----------------------------------------------------------------------------
//  Brand palette
//  These MUST be declared before Bootstrap is imported, otherwise Bootstrap
//  compiles with its own defaults and .btn-primary and friends stay #0d6efd.
// -----------------------------------------------------------------------------

$primary-color: #1668c4;
$secondary-color: #22b8e6;
$dark-color: #0d1b2a;
$white-color: #ffffff;

$container-width: 1440px;
$border-radius: 10px;

// Bootstrap theme overrides
$primary: $primary-color;
$secondary: $secondary-color;
$success: $primary-color;
$dark: $dark-color;

// Import Bootstrap & Bootstrap Icons
@import 'bootstrap/scss/bootstrap';
@import 'bootstrap-icons/font/bootstrap-icons.css';
@import 'intl-tel-input/dist/css/intlTelInput.css';

// intl-tel-input override
.iti {
    display: block !important;
    width: 100% !important;

    input {
        padding-left: 52px !important;
    }
}

.iti__country-list {
    z-index: 9999 !important;
    color: #212529 !important;
}

// =============================================================================
//  PUBLIC SITE DESIGN SYSTEM
//  Enterprise-SaaS look: light by default, generous whitespace, restrained
//  colour, one accent. `.theme-light` is toggled off for the dark variant, and
//  the admin theme engine overrides --primary-color / --secondary-color at
//  runtime, so everything below reads from custom properties.
// =============================================================================

// -----------------------------------------------------------------------------
//  Tokens
// -----------------------------------------------------------------------------

:root {
    // Core colours — names kept stable for the admin theme engine
    --primary-color: #{$primary-color};
    --primary-color-light: #{color.mix(white, $primary-color, 65%)};
    --primary-color-text: #{$primary-color};

    --secondary-color: #{$secondary-color};
    --secondary-color-light: #{color.mix(white, $secondary-color, 65%)};
    --secondary-color-text: #{$secondary-color};

    --dark-color: #{$dark-color};
    --dark-color-light: #{color.mix(white, $dark-color, 55%)};

    --white-color: #{$white-color};
    --white-color-light: #{color.mix(black, $white-color, 15%)};

    --primary-rgb: 22, 104, 196;

    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --accent-gradient: var(--primary-gradient);
    --success-gradient: var(--primary-gradient);

    // Dark is the default palette; .theme-light flips it
    --surface: #0f1b2d;
    --surface-2: #14243a;
    --canvas: #0a1524;
    --ink: #f1f5f9;
    --body: #b6c2d1;
    --muted: #7d8da1;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --glass-bg: rgba(15, 27, 45, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow-border: rgba(var(--primary-rgb), 0.25);
    --section-dark-alternate: #0a1524;
    --text-light: #f1f5f9;
    --text-muted: #7d8da1;

    --shadow-sm: 0 1px 2px rgba(8, 15, 26, 0.16);
    --shadow-md: 0 4px 16px rgba(8, 15, 26, 0.22);
    --shadow-lg: 0 18px 48px rgba(8, 15, 26, 0.32);

    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: var(--font-heading);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --section-min-height: auto;
    --nav-h: 72px;
}

.theme-light {
    --surface: #ffffff;
    --surface-2: #f5f8fc;
    --canvas: #ffffff;
    --ink: #0d1b2a;
    --body: #4a5b70;
    --muted: #76889d;
    --border: #e3eaf3;
    --border-strong: #cfdae7;

    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(13, 27, 42, 0.07);
    --glass-glow-border: rgba(var(--primary-rgb), 0.2);
    --section-dark-alternate: #f5f8fc;
    --text-light: #0d1b2a;
    --text-muted: #76889d;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.1);
}

// -----------------------------------------------------------------------------
//  Base
// -----------------------------------------------------------------------------

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

// Decorative blurred blobs deliberately bleed past the edges; clip them so they
// never create a horizontal scrollbar on narrow screens.
//
// This must stay on <html> only. Putting overflow-x on <body> as well makes the
// body a clipping container, which kills position: sticky on the header.
html {
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;

    &:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }
}

.container {
    max-width: 1200px;
}

// Shared section rhythm
.section {
    padding: 84px 0;
    background: var(--canvas);

    @include breakpoint(md) {
        padding: 56px 0;
    }

    &--alt {
        background: var(--surface-2);
    }

    &--tight {
        padding: 56px 0;
    }
}

.section-head {
    max-width: 46rem;
    margin: 0 auto 48px;
    text-align: center;

    .eyebrow {
        display: inline-block;
        margin-bottom: 12px;
        padding: 5px 12px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--primary-color);
        background: rgba(var(--primary-rgb), 0.1);
        border-radius: 999px;
    }

    h2 {
        margin: 0 0 12px;
        font-size: clamp(1.75rem, 3vw, 2.5rem);
    }

    p {
        margin: 0;
        font-size: 1.0625rem;
        color: var(--body);
    }

    &--start {
        margin-left: 0;
        text-align: left;
    }
}

// -----------------------------------------------------------------------------
//  Buttons
// -----------------------------------------------------------------------------

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    transition: filter 0.15s ease, transform 0.15s ease;

    &:hover {
        color: #fff;
        text-decoration: none;
        filter: brightness(0.92);
        transform: translateY(-1px);
    }

    &--ghost {
        color: var(--ink);
        background: transparent;
        border-color: var(--border-strong);

        &:hover {
            color: var(--ink);
            background: var(--surface-2);
            filter: none;
        }
    }

    &--light {
        color: var(--primary-color);
        background: #fff;
        border-color: #fff;

        &:hover {
            color: var(--primary-color);
        }
    }

    &--lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

// -----------------------------------------------------------------------------
//  Navigation
// -----------------------------------------------------------------------------

header#navigation,
.animated-header {
    min-height: var(--nav-h);
    padding: 10px 0;
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;

    &.is-scrolled {
        box-shadow: var(--shadow-md);
    }

    .navbar-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--ink);

        img {
            display: block;
            max-height: 42px;
            width: auto;
        }

        span {
            color: var(--ink) !important;
        }
    }

    .nav-link {
        padding: 8px 14px !important;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--body) !important;
        border-radius: var(--radius-sm);
        transition: color 0.15s ease, background-color 0.15s ease;

        &:hover,
        &.active {
            color: var(--primary-color) !important;
            background: rgba(var(--primary-rgb), 0.08);
        }
    }

    .navbar-toggler {
        padding: 6px 10px;
        color: var(--ink);
        border-color: var(--border-strong);

        &:focus {
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
        }
    }

    .navbar-toggler-icon {
        filter: invert(1);

        .theme-light & {
            filter: none;
        }
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

// The glassy header reads fine as a bar, but once the menu is expanded on a
// phone the page shows through behind the links — make that panel opaque.
@media (max-width: 991.98px) {
    header#navigation .navbar-collapse.show,
    header#navigation .navbar-collapse.collapsing {
        margin-top: 10px;
        padding-bottom: 8px;
        background: var(--surface);
        border-top: 1px solid var(--border);
    }

    header#navigation:has(.navbar-collapse.show) {
        background: var(--surface) !important;
    }
}

#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--body) !important;
    border-radius: var(--radius-sm);

    &:hover {
        color: var(--primary-color) !important;
        background: rgba(var(--primary-rgb), 0.08);
    }
}

// -----------------------------------------------------------------------------
//  Hero
// -----------------------------------------------------------------------------

.hero {
    position: relative;
    padding: 96px 0 84px;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 85% 0%, rgba(var(--primary-rgb), 0.16) 0%, transparent 60%),
        var(--canvas);

    @include breakpoint(md) {
        padding: 56px 0;
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;

    @media (min-width: 992px) {
        grid-template-columns: 1.05fr 1fr;
        gap: 56px;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 999px;
}

.hero__title {
    margin: 0 0 20px;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.1;
}

.hero__lead {
    margin: 0 0 32px;
    max-width: 34rem;
    font-size: 1.125rem;
    color: var(--body);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 32rem;
    padding-top: 28px;
    border-top: 1px solid var(--border);

    dt {
        font-size: clamp(1.35rem, 2.4vw, 1.75rem);
        font-weight: 700;
        color: var(--ink);
        line-height: 1.15;
    }

    dd {
        margin: 4px 0 0;
        font-size: 0.8125rem;
        color: var(--muted);
    }
}

// Slider panel on the right of the hero
.hero__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 100%;
    }

    .carousel-item img {
        width: 100%;
        height: 380px;
        object-fit: cover;

        @include breakpoint(md) {
            height: 240px;
        }
    }

    .carousel-caption {
        right: 8%;
        left: 8%;
        bottom: 24px;
        padding: 14px 18px;
        text-align: left;
        background: rgba(10, 21, 36, 0.72);
        backdrop-filter: blur(8px);
        border-radius: var(--radius-md);

        h2 {
            margin: 0;
            font-size: 1.125rem;
            color: #fff;
        }
    }

    .carousel-indicators {
        margin-bottom: 8px;

        [data-bs-target] {
            width: 8px;
            height: 8px;
            border: 0;
            border-radius: 50%;
        }
    }
}

// -----------------------------------------------------------------------------
//  Feature / service cards
// -----------------------------------------------------------------------------

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.feature-card {
    height: 100%;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
        border-color: rgba(var(--primary-rgb), 0.35);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 18px;
        font-size: 1.35rem;
        color: var(--primary-color);
        background: rgba(var(--primary-rgb), 0.1);
        border-radius: var(--radius-md);
    }

    h4 {
        margin: 0 0 8px;
        font-size: 1.125rem;
    }

    p {
        margin: 0;
        font-size: 0.9375rem;
        color: var(--body);
    }
}

// About split
.about-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;

    @media (min-width: 992px) {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    p {
        color: var(--body);
    }
}

// -----------------------------------------------------------------------------
//  Client marquee
// -----------------------------------------------------------------------------

.marquee-container {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: marquee 34s linear infinite;

    &:hover {
        animation-play-state: paused;
    }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.client-item-marquee {
    flex: 0 0 auto;
}

.client-name-design {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;

    &:hover {
        filter: grayscale(0);
        opacity: 1;
    }
}

.client-logo-img {
    max-height: 34px;
    width: auto;
}

// -----------------------------------------------------------------------------
//  Pricing
// -----------------------------------------------------------------------------

.pricing-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
        border-color: rgba(var(--primary-rgb), 0.4);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }

    &.pricing-box-featured {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-md);
    }
}

.pricing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);

    h4 {
        margin: 0;
        font-size: 1.0625rem;
        font-weight: 600;
    }
}

.pricing-speed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    font-size: 1.125rem;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
}

.pricing-lists {
    h5 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    ul {
        margin: 16px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 10px;
    }

    li {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        font-size: 0.875rem;
        color: var(--body);

        i {
            margin-top: 3px;
            font-size: 0.875rem;
            color: var(--primary-color);
        }
    }
}

.pricing-box .price {
    margin: 22px 0 20px;

    h2 {
        margin: 0;
        display: flex;
        align-items: baseline;
        gap: 6px;
        font-size: 1.75rem;
    }

    span:last-child {
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--muted);
        letter-spacing: 0.04em;
    }
}

.pricing-btn {
    margin-top: auto;
}

.price-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 18px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    transition: filter 0.15s ease;

    &:hover {
        color: #fff;
        text-decoration: none;
        filter: brightness(0.92);
    }

    span {
        font-size: 1.05rem;
        line-height: 1;
    }
}

.all-pack-btn {
    margin-top: 36px;
    padding: 12px 32px !important;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--border-strong);

    &:hover {
        color: #fff;
        background: var(--primary-color);
        border-color: var(--primary-color);
    }
}

// -----------------------------------------------------------------------------
//  Gallery
// -----------------------------------------------------------------------------

.recent-work-mixMenu {
    margin-bottom: 32px;
    text-align: center;

    ul {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 6px;
        list-style: none;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 999px;
    }

    button {
        padding: 8px 18px;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--body);
        background: transparent;
        border: 0;
        border-radius: 999px;
        transition: color 0.15s ease, background-color 0.15s ease;

        &:hover {
            color: var(--ink);
        }

        &.active {
            color: #fff;
            background: var(--primary-color);
        }
    }
}

#gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;

    > li {
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }
}

.gallery-hide {
    display: none !important;
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;

    img {
        width: 100%;
        height: 100%;
        padding: 0;
        object-fit: cover;
        border: 0;
        border-radius: 0;
        background: none;
        transition: transform 0.35s ease;
    }

    &:hover img {
        transform: scale(1.06);
    }

    .overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px;
        text-align: center;
        color: #fff;
        background: linear-gradient(0deg, rgba(10, 21, 36, 0.85), rgba(10, 21, 36, 0.25));
        opacity: 0;
        transition: opacity 0.25s ease;

        h3 {
            margin: 0;
            font-size: 0.875rem;
            color: #fff;
        }

        i {
            font-size: 1.1rem;
        }
    }

    &:hover .overlay {
        opacity: 1;
    }
}

// -----------------------------------------------------------------------------
//  Team
// -----------------------------------------------------------------------------

.team-card {
    height: 100%;
    padding: 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    img {
        width: 92px;
        height: 92px;
        margin: 0 auto 16px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid rgba(var(--primary-rgb), 0.15);
    }

    h3 {
        margin: 0 0 2px;
        font-size: 1rem;
    }

    .role {
        display: block;
        margin-bottom: 12px;
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--primary-color);
    }

    p {
        margin: 0;
        font-size: 0.875rem;
        color: var(--body);
    }
}

// -----------------------------------------------------------------------------
//  Reviews / testimonials
// -----------------------------------------------------------------------------

.quote-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    .stars {
        display: flex;
        gap: 2px;
        margin-bottom: 14px;
        color: #f5a524;
        font-size: 0.875rem;
    }

    blockquote {
        flex: 1;
        margin: 0 0 20px;
        font-size: 0.9375rem;
        color: var(--body);
    }
}

.quote-card__who {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);

    .avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-color);
        background: rgba(var(--primary-rgb), 0.1);
        border-radius: 50%;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .name {
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--ink);
    }

    .meta {
        font-size: 0.8125rem;
        color: var(--muted);
    }
}

// -----------------------------------------------------------------------------
//  Blog
// -----------------------------------------------------------------------------

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;

    &:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .thumb {
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: var(--surface-2);

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .body {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 22px;
    }

    .meta {
        margin-bottom: 8px;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--muted);
    }

    h4 {
        margin: 0 0 10px;
        font-size: 1.0625rem;

        a {
            color: var(--ink);

            &:hover {
                color: var(--primary-color);
                text-decoration: none;
            }
        }
    }

    p {
        margin: 0 0 18px;
        font-size: 0.9375rem;
        color: var(--body);
    }

    .btn-read {
        margin-top: auto;
        align-self: flex-start;
        padding: 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--primary-color) !important;
    }
}

// -----------------------------------------------------------------------------
//  Swiper chrome
// -----------------------------------------------------------------------------

.swiper {
    padding-bottom: 8px;
}

.swiper-slide {
    height: auto;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: color 0.15s ease, border-color 0.15s ease;

    &::after {
        font-size: 1rem;
        font-weight: 700;
    }

    &:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }
}

.swiper-pagination-bullet {
    background: var(--border-strong);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

// -----------------------------------------------------------------------------
//  Contact
// -----------------------------------------------------------------------------

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;

    @media (min-width: 992px) {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-panel {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

#googleMap {
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);

    iframe {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 380px;
        border: 0;
    }
}

.contact-facts {
    display: grid;
    gap: 14px;
    margin-top: 24px;

    li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 0.9375rem;
        color: var(--body);
    }

    i {
        margin-top: 3px;
        color: var(--primary-color);
    }
}

// Search field on the all-packages page.
// The class sits on the <input> itself, so style the element directly.
.contact-style-search {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;

    &::placeholder {
        color: var(--muted);
    }

    &:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    }
}

.all-packages-header {
    position: relative;
    padding: 72px 0 48px;
    overflow: hidden;
    background:
        radial-gradient(80% 70% at 80% 0%, rgba(var(--primary-rgb), 0.16) 0%, transparent 60%),
        var(--canvas);
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;

    &.blob-1 {
        top: -80px;
        left: -60px;
        width: 320px;
        height: 320px;
        background: rgba(var(--primary-rgb), 0.5);
    }

    &.blob-2 {
        top: 20%;
        right: -80px;
        width: 260px;
        height: 260px;
        background: var(--secondary-color);
    }

    &.blob-3 {
        bottom: -100px;
        left: 40%;
        width: 300px;
        height: 300px;
        background: rgba(var(--primary-rgb), 0.35);
    }

    // Scale down on phones so the blur stays subtle rather than washing the page
    @include breakpoint(md) {
        filter: blur(60px);
        opacity: 0.28;

        &.blob-1,
        &.blob-2,
        &.blob-3 {
            width: 180px;
            height: 180px;
        }
    }
}

// -----------------------------------------------------------------------------
//  CTA band
// -----------------------------------------------------------------------------

.cta-band {
    padding: 64px 0;
    color: #fff;
    background:
        radial-gradient(90% 120% at 10% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        var(--primary-gradient);

    h2 {
        margin: 0 0 10px;
        color: #fff;
        font-size: clamp(1.6rem, 3vw, 2.25rem);
    }

    p {
        margin: 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.0625rem;
    }
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

// -----------------------------------------------------------------------------
//  Footer
// -----------------------------------------------------------------------------

footer {
    padding: 64px 0 28px;
    color: #b6c2d1;
    background: #0a1524;

    h5 {
        color: #fff;
    }

    p {
        color: #93a1b3;
    }

    .text-muted {
        color: #7d8da1 !important;
    }
}

.footer-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;

    a {
        font-size: 0.9375rem;
        color: #b6c2d1;

        &:hover {
            color: #fff;
            text-decoration: none;
        }
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    color: #b6c2d1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;

    &:hover {
        color: #fff;
        background: var(--primary-color);
        text-decoration: none;
    }
}

.visitor-counter-title {
    color: #7d8da1;
    font-weight: 600;
}

.visitor-counter-badge {
    display: flex;
    gap: 3px;
}

.visitor-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 3px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.total-digit {
    color: var(--secondary-color);
}

.unique-digit {
    color: #6ee7b7;
}

// -----------------------------------------------------------------------------
//  Back to top
// -----------------------------------------------------------------------------

#btn-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.25rem;
    color: #fff;
    background: var(--primary-color);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-md);

    &:hover {
        color: #fff;
        filter: brightness(0.92);
    }
}

// -----------------------------------------------------------------------------
//  Modal
// -----------------------------------------------------------------------------

#galleryModal {
    .modal-content {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }

    #galleryModalImage {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }

    #galleryModalLabel {
        color: var(--ink) !important;
    }
}

// -----------------------------------------------------------------------------
//  Tenant signup — the "Get started" page for WiFi operators
//
//  Always rendered on the dark palette, so it deliberately reaches for the dark
//  token values rather than the theme-aware ones. This is the one page selling
//  the product rather than operating it, and it should look like the portal the
//  visitor is signing up to run.
// -----------------------------------------------------------------------------

.signup-page {
    min-height: 100vh;
    padding: 3rem 0 4rem;
    background:
        radial-gradient(780px 440px at 12% -6%, rgba(var(--primary-rgb), 0.28), transparent 62%),
        radial-gradient(700px 460px at 92% 4%, rgba(168, 85, 247, 0.18), transparent 64%),
        var(--canvas);
}

.signup-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 2rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;

    &:hover { color: var(--ink); }
}

.signup-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.32rem 0.8rem;
    border: 1px solid var(--glass-glow-border);
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.signup-title {
    margin-bottom: 0.85rem;
    color: var(--ink);
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.signup-lead {
    margin-bottom: 1.6rem;
    color: var(--body);
    font-size: 0.98rem;
    line-height: 1.6;
}

.signup-points {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;

    li {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 0.65rem;
        color: var(--body);
        font-size: 0.9rem;
        line-height: 1.45;
    }

    i {
        flex: none;
        margin-top: 0.15rem;
        color: #34d399;
        font-weight: 700;
    }
}

.signup-fineprint {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;

    a {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;

        &:hover { text-decoration: underline; }
    }
}

.signup-card {
    padding: 1.85rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);

    @media (max-width: 575.98px) { padding: 1.35rem; }
}

.signup-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.signup-input {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: rgba(10, 21, 36, 0.6);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;

    &::placeholder { color: var(--muted); }

    &:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    }

    &.is-invalid {
        border-color: #f43f5e;
        box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
    }
}

// The address field reads as one control ending in the platform domain, so the
// visitor understands they are choosing a hostname rather than a display name.
.signup-addon {
    display: flex;
    align-items: stretch;

    .signup-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    span {
        display: flex;
        align-items: center;
        padding: 0 0.85rem;
        border: 1px solid var(--border-strong);
        border-left: 0;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        background: rgba(255, 255, 255, 0.04);
        color: var(--muted);
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

.signup-help,
.signup-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    line-height: 1.4;
}

.signup-help { color: var(--muted); }
.signup-error { color: #fb7185; }

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.32);
    transition: transform 0.15s, box-shadow 0.15s;

    &:hover { color: #fff; transform: translateY(-1px); }
    &:disabled { opacity: 0.6; transform: none; cursor: default; }
}

.signup-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
    font-size: 1.9rem;
}

.signup-next {
    max-width: 520px;
    margin-top: 1.8rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;

    h6 {
        margin-bottom: 0.7rem;
        color: var(--ink);
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    ol {
        margin: 0;
        padding-left: 1.1rem;
        color: var(--body);
        font-size: 0.88rem;
        line-height: 1.7;
    }
}

// -----------------------------------------------------------------------------
//  Platform marketing sections (pl-*)
//
//  bilipoa.com sells the platform to WiFi operators, so these sections address
//  someone deciding whether to run their business on it, not a customer buying
//  an hour of internet.
// -----------------------------------------------------------------------------

.pl-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;

    @media (max-width: 991.98px) {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.pl-hero__note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: 480px;
    margin: 1.6rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;

    i {
        flex: none;
        margin-top: 0.12rem;
        color: var(--primary-color);
    }
}

// --- Illustrative operations panel -------------------------------------------
.pl-panel {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.pl-panel__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.pl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-strong);
}

.pl-panel__title {
    margin-left: 0.5rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

// The figures in this panel are invented. This tag is what keeps that honest.
.pl-panel__tag {
    margin-left: auto;
    padding: 0.18rem 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pl-panel__body { padding: 1.1rem; }

.pl-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}

.pl-metric {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.pl-metric__label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pl-metric__value {
    display: block;
    color: var(--ink);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pl-metric__of {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.pl-metric__delta {
    display: inline-flex;
    align-items: center;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;

    &.pl-up { color: #34d399; }
    &.pl-warn { color: #fbbf24; }
}

.pl-feed {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.pl-feed__row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: var(--body);
    font-size: 0.79rem;
    line-height: 1.45;

    &:last-child { margin-bottom: 0; }
}

.pl-feed__dot {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 0.4rem;
    border-radius: 50%;

    &--ok { background: #34d399; }
    &--warn { background: #fbbf24; }
}

// --- Capability strip ---------------------------------------------------------
.pl-strip {
    padding: 2.2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--section-dark-alternate);
}

.pl-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;

    @media (max-width: 767.98px) { grid-template-columns: repeat(2, 1fr); }
}

.pl-stat__num {
    display: block;
    margin-bottom: 0.3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
}

.pl-stat__text {
    display: block;
    color: var(--body);
    font-size: 0.84rem;
    line-height: 1.45;
}

// --- Feature cards ------------------------------------------------------------
.pl-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;

    &:hover {
        transform: translateY(-3px);
        border-color: var(--glass-glow-border);
        box-shadow: var(--shadow-md);
    }

    h5 {
        margin-bottom: 0.5rem;
        color: var(--ink);
        font-size: 1.02rem;
        font-weight: 700;
    }

    p {
        margin: 0;
        color: var(--body);
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

.pl-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-color);
    font-size: 1.2rem;
}

// --- Capability lists ---------------------------------------------------------
.pl-list {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);

    h6 {
        margin-bottom: 0.85rem;
        color: var(--primary-color);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.55rem;
        color: var(--body);
        font-size: 0.85rem;
        line-height: 1.45;

        &:last-child { margin-bottom: 0; }
    }

    i {
        flex: none;
        margin-top: 0.15rem;
        color: #34d399;
    }
}

// --- Architecture flow --------------------------------------------------------
.pl-flow {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;

    @media (max-width: 991.98px) {
        flex-direction: column;
        align-items: stretch;
    }
}

.pl-flow__step {
    flex: 1;
    padding: 1.4rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;

    h6 {
        margin-bottom: 0.4rem;
        color: var(--ink);
        font-size: 0.95rem;
        font-weight: 700;
    }

    p {
        margin: 0;
        color: var(--body);
        font-size: 0.82rem;
        line-height: 1.5;
    }
}

.pl-flow__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-color);
    font-size: 1.15rem;
}

.pl-flow__arrow {
    display: flex;
    align-items: center;
    color: var(--border-strong);
    font-size: 1.2rem;

    // The chevron should point down once the row becomes a column.
    @media (max-width: 991.98px) {
        justify-content: center;
        transform: rotate(90deg);
    }
}

// --- Plan cards ---------------------------------------------------------------
.pl-plan {
    position: relative;
    padding: 1.5rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);

    &.is-featured {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.28), var(--shadow-md);
    }

    h5 {
        margin-bottom: 0.6rem;
        color: var(--ink);
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.3;
    }
}

.pl-plan__flag {
    position: absolute;
    top: -0.7rem;
    left: 1.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pl-plan__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pl-plan__price {
    color: var(--ink);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pl-plan__cur {
    margin-right: 0.15rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.pl-plan__dur {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.pl-plan__features {
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    list-style: none;

    li {
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
        margin-bottom: 0.45rem;
        color: var(--body);
        font-size: 0.83rem;
        line-height: 1.45;
    }

    i {
        flex: none;
        margin-top: 0.15rem;
        color: #34d399;
    }
}

// --- Closing CTA --------------------------------------------------------------
.pl-cta {
    padding: 4.5rem 0;
    background:
        radial-gradient(680px 320px at 50% 0%, rgba(var(--primary-rgb), 0.22), transparent 66%),
        var(--section-dark-alternate);
    text-align: center;
}

.pl-cta__inner {
    max-width: 660px;
    margin: 0 auto;

    h2 {
        margin-bottom: 0.8rem;
        color: var(--ink);
        font-size: clamp(1.5rem, 3.6vw, 2.1rem);
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    p {
        margin-bottom: 1.8rem;
        color: var(--body);
        font-size: 0.98rem;
        line-height: 1.6;
    }
}

.pl-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

// -----------------------------------------------------------------------------
//  Tenant login — <slug>.bilipoa.com/login
//
//  A seller's customers and staff arrive here, so the page leads with the
//  seller's brand and mentions the platform only in the footer.
// -----------------------------------------------------------------------------

.tenant-login {
    display: flex;
    align-items: center;
}

.tlogin-brand {
    @media (max-width: 991.98px) {
        text-align: center;
    }
}

.tlogin-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.1rem;
    border-radius: 18px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.35);
}

.tlogin-logo {
    max-width: 190px;
    max-height: 62px;
    margin-bottom: 1.1rem;
    object-fit: contain;
}

.tlogin-name {
    margin-bottom: 0.7rem;
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    word-break: break-word;
    background: linear-gradient(90deg, #f43f5e 0%, #a855f7 52%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tlogin-title {
    margin-bottom: 0.2rem;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

// The address reassures the visitor they are on the right seller's page.
.tlogin-sub {
    margin-bottom: 1.4rem;
    color: var(--muted);
    font-size: 0.83rem;
    word-break: break-all;
}

.tlogin-alert {
    margin-bottom: 1.1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: var(--radius-md);
    background: rgba(190, 18, 60, 0.16);
    color: #fda4af;
    font-size: 0.85rem;
    line-height: 1.45;
}

.tlogin-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    color: var(--body);
    font-size: 0.85rem;
    cursor: pointer;

    input {
        width: 1rem;
        height: 1rem;
        accent-color: var(--primary-color);
        cursor: pointer;
    }
}

// -----------------------------------------------------------------------------
//  Landing: pricing tiers, FAQ and quotes
// -----------------------------------------------------------------------------

.pl-strip__lead {
    margin-bottom: 1.6rem;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.pl-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.7rem;
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pl-strip__title {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
}

// --- Pricing tiers ------------------------------------------------------------
.pl-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.9rem 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);

    &.is-featured {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.25), var(--shadow-lg);
    }

    h5 {
        margin-bottom: 0.6rem;
        color: var(--ink);
        font-size: 1.15rem;
        font-weight: 700;
    }

    // The call to action sits on the floor of the card so tiers of different
    // heights still line their buttons up.
    .btn-cta { margin-top: auto; }
}

.pl-tier__flag {
    position: absolute;
    top: -0.75rem;
    left: 1.6rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pl-tier__price {
    margin-bottom: 1.3rem;
    color: var(--ink);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;

    small {
        display: block;
        margin-top: 0.25rem;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 500;
        letter-spacing: 0;
    }
}

.pl-tier__list {
    margin: 0 0 1.6rem;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--border);
    list-style: none;

    li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
        color: var(--body);
        font-size: 0.88rem;
        line-height: 1.45;
    }

    i {
        flex: none;
        margin-top: 0.15rem;
        color: #34d399;
    }
}

.pl-tier__note {
    margin: 1.8rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

// --- FAQ ----------------------------------------------------------------------
// Built on <details> rather than JS: it works before any script runs, and the
// browser handles the keyboard and screen-reader behaviour for free.
.pl-faq {
    max-width: 760px;
    margin: 0 auto;
}

.pl-faq__item {
    margin-bottom: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;

    summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.2rem;
        color: var(--ink);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        list-style: none;

        &::-webkit-details-marker { display: none; }

        i {
            flex: none;
            color: var(--muted);
            font-size: 0.85rem;
            transition: transform 0.2s;
        }
    }

    &[open] summary i { transform: rotate(180deg); }

    p {
        margin: 0;
        padding: 0 1.2rem 1.1rem;
        color: var(--body);
        font-size: 0.9rem;
        line-height: 1.65;
    }
}

// --- Quotes -------------------------------------------------------------------
.pl-quote {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);

    p {
        flex: 1;
        margin: 0 0 1rem;
        color: var(--body);
        font-size: 0.92rem;
        line-height: 1.6;
    }
}

.pl-quote__stars {
    margin-bottom: 0.8rem;
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.pl-quote__who {
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
}
