/* ==========================================================================
   Subpage Premium Design System
   Scoped to internal pages only — the homepage (public/css/style.css) is
   untouched. Tokens below are derived from the homepage's real values
   (accent blue #00A1FF, dark brown #302A22, 80px section rhythm, 0.3s ease
   transitions, shallow shadows) so subpages read as one product, not a
   separate visual system.
   ========================================================================== */

:root {
    --wb-accent: #00A1FF;
    --wb-accent-dark: #108cd5;
    --wb-dark: #302A22;
    --wb-dark-hover: #433b30;

    /* Radius scale — homepage's real ceiling is 10px (buttons/cards/faq-item) */
    --wb-radius-sm: 10px;
    --wb-radius-md: 14px;
    --wb-radius-lg: 18px;

    /* Shadow scale — tuned to homepage's real shadow depth (.owl-prev/.owl-next) */
    --wb-shadow-sm: 0 2px 10px rgba(48, 42, 34, 0.07);
    --wb-shadow-md: 0 4px 16px rgba(48, 42, 34, 0.1);
    --wb-shadow-lg: 0 8px 24px rgba(48, 42, 34, 0.14);

    /* Type scale — hero/section-title sizes match homepage's h1/.section-title */
    --wb-text-hero: 2.5rem;
    --wb-text-hero-mobile: 2rem;
    --wb-text-section-title: 1.75rem;
    --wb-text-section-title-mobile: 1.4rem;
    --wb-text-subtitle: 1.1rem;
    --wb-text-body: 1rem;
    --wb-text-caption: 0.85rem;

    /* Spacing — homepage's real section rhythm is 80px, ~30% down on mobile */
    --wb-section-py: 80px;
    --wb-section-py-mobile: 56px;

    /* Timing — homepage uses a flat 0.3s ease everywhere */
    --wb-ease: ease;
    --wb-fast: 0.2s;
    --wb-base: 0.3s;
}

/* ---- Keyframes ---- */

@media (prefers-reduced-motion: no-preference) {
    @keyframes wb-fade-in-up {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes wb-fade-in-left {
        from {
            opacity: 0;
            transform: translateX(-16px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes wb-fade-in-right {
        from {
            opacity: 0;
            transform: translateX(16px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes wb-scale-in {
        from {
            opacity: 0;
            transform: scale(0.96);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .wb-fade-in-up {
        animation: wb-fade-in-up 0.5s ease-out both;
    }

    .wb-fade-in-left {
        animation: wb-fade-in-left 0.5s ease-out both;
    }

    .wb-fade-in-right {
        animation: wb-fade-in-right 0.5s ease-out both;
    }

    .wb-scale-in {
        animation: wb-scale-in 0.4s ease-out both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wb-fade-in-up,
    .wb-fade-in-left,
    .wb-fade-in-right,
    .wb-scale-in {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ---- Compact page header (replaces the old full hero on internal pages) ---- */

.wb-page-header {
    padding: 22px 0;
    background: linear-gradient(180deg, rgba(0, 161, 255, 0.05) 0%, rgba(0, 161, 255, 0) 100%);
    border-bottom: 1px solid rgba(0, 161, 255, 0.14);
}

.wb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.wb-breadcrumb a {
    color: var(--wb-accent);
    text-decoration: none;
}

.wb-breadcrumb a:hover {
    text-decoration: underline;
}

.wb-breadcrumb-sep {
    color: #c1c7cd;
}

.wb-page-header-title {
    font-size: var(--wb-text-hero-mobile);
    font-weight: 700;
    color: var(--wb-dark);
    line-height: 1.25;
}

.wb-page-header-subtitle {
    margin-top: 4px;
    font-size: var(--wb-text-subtitle);
    color: #6b7280;
    max-width: 640px;
}

.wb-section-title {
    font-size: var(--wb-text-section-title-mobile);
    font-weight: 700;
    color: var(--wb-dark);
    line-height: 1.3;
}

.wb-caption {
    font-size: var(--wb-text-caption);
    color: #6b7280;
}

@media (min-width: 768px) {
    .wb-page-header {
        padding: 30px 0;
    }

    .wb-page-header-title {
        font-size: var(--wb-text-hero);
    }

    .wb-page-header-subtitle {
        font-size: 0.95rem;
    }

    .wb-section-title {
        font-size: var(--wb-text-section-title);
    }
}

/* ---- Section rhythm ---- */

.wb-section {
    padding: var(--wb-section-py-mobile) 0;
}

@media (min-width: 768px) {
    .wb-section {
        padding: var(--wb-section-py) 0;
    }
}

/* ---- Glass ---- */

.wb-glass {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform var(--wb-base) var(--wb-ease), box-shadow var(--wb-base) var(--wb-ease), background-color var(--wb-base) var(--wb-ease);
}

/* Subtle diagonal shine sweeping the top edge */
.wb-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 30%);
    pointer-events: none;
}

.wb-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.wb-glass-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--wb-shadow-md);
}

/* ---- Cards ---- */

.wb-card {
    border-radius: var(--wb-radius-lg);
    box-shadow: var(--wb-shadow-sm);
    transition: transform var(--wb-base) var(--wb-ease), box-shadow var(--wb-base) var(--wb-ease);
}

.wb-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wb-shadow-lg);
}

.wb-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--wb-radius-md);
    background: rgba(0, 161, 255, 0.1);
    color: var(--wb-accent);
    transition: transform var(--wb-base) var(--wb-ease), background-color var(--wb-base) var(--wb-ease);
}

.wb-card:hover .wb-icon-badge {
    transform: scale(1.08);
    background-color: rgba(0, 161, 255, 0.16);
}

.wb-warning-card {
    border-radius: var(--wb-radius-md);
    border-inline-start: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

/* ---- Buttons ---- */
/* Lift distance/timing mirrors the homepage's real .social-link:hover motion */

.wb-btn-primary {
    border-radius: var(--wb-radius-sm);
    background: linear-gradient(135deg, var(--wb-accent) 0%, var(--wb-accent-dark) 100%);
    box-shadow: var(--wb-shadow-sm);
    transition: transform var(--wb-fast) var(--wb-ease), box-shadow var(--wb-fast) var(--wb-ease), filter var(--wb-fast) var(--wb-ease);
}

.wb-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--wb-shadow-md);
    filter: brightness(1.03);
}

.wb-btn-primary:active {
    transform: translateY(0);
}

.wb-btn-secondary {
    border-radius: var(--wb-radius-sm);
    background: linear-gradient(135deg, var(--wb-dark) 0%, var(--wb-dark-hover) 100%);
    box-shadow: var(--wb-shadow-sm);
    transition: transform var(--wb-fast) var(--wb-ease), box-shadow var(--wb-fast) var(--wb-ease), filter var(--wb-fast) var(--wb-ease);
}

.wb-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--wb-shadow-md);
    filter: brightness(1.05);
}

.wb-btn-secondary:active {
    transform: translateY(0);
}

.wb-btn-outline {
    border-radius: var(--wb-radius-sm);
    border: 1.5px solid var(--wb-accent);
    color: var(--wb-accent);
    background: transparent;
    transition: transform var(--wb-fast) var(--wb-ease), background-color var(--wb-fast) var(--wb-ease), color var(--wb-fast) var(--wb-ease);
}

.wb-btn-outline:hover {
    background-color: rgba(0, 161, 255, 0.08);
    transform: translateY(-3px);
}

.wb-btn-ghost {
    border-radius: var(--wb-radius-sm);
    color: var(--wb-dark);
    background: transparent;
    transition: background-color var(--wb-fast) var(--wb-ease);
}

.wb-btn-ghost:hover {
    background-color: rgba(48, 42, 34, 0.06);
}

.wb-btn-danger {
    border-radius: var(--wb-radius-sm);
    background: #ef4444;
    box-shadow: var(--wb-shadow-sm);
    transition: transform var(--wb-fast) var(--wb-ease), box-shadow var(--wb-fast) var(--wb-ease), filter var(--wb-fast) var(--wb-ease);
}

.wb-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: var(--wb-shadow-md);
    filter: brightness(1.05);
}

/* ---- Inputs ---- */

.wb-input {
    border-radius: var(--wb-radius-sm);
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.85);
    transition: border-color var(--wb-fast) var(--wb-ease), box-shadow var(--wb-fast) var(--wb-ease);
}

.wb-input::placeholder {
    color: #9ca3af;
}

.wb-input:focus {
    outline: none;
    border-color: var(--wb-accent);
    box-shadow: 0 0 0 3px rgba(0, 161, 255, 0.18);
}

.wb-input[disabled] {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.wb-input-error {
    border-color: #ef4444;
}

.wb-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* ---- Lists ---- */

.wb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wb-list li {
    position: relative;
    padding-inline-start: 26px;
    line-height: 1.6;
    color: #374151;
}

.wb-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wb-accent);
}

.wb-list-ordered {
    list-style: none;
    counter-reset: wb-list-counter;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wb-list-ordered li {
    counter-increment: wb-list-counter;
    position: relative;
    padding-inline-start: 30px;
    line-height: 1.6;
    color: #374151;
}

.wb-list-ordered li::before {
    content: counter(wb-list-counter);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 161, 255, 0.12);
    color: var(--wb-accent);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Timeline (Account Deletion) ---- */

.wb-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.wb-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wb-timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wb-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.wb-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    inset-inline-start: 13px;
    top: 28px;
    bottom: -22px;
    width: 2px;
    background: rgba(0, 161, 255, 0.18);
}

/* ---- Tables ---- */

.wb-table-wrap {
    overflow-x: auto;
    border-radius: var(--wb-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--wb-shadow-sm);
}

.wb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.wb-table th {
    text-align: start;
    font-size: var(--wb-text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wb-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #374151;
}

.wb-table tbody tr {
    transition: background-color var(--wb-fast) var(--wb-ease);
}

.wb-table tbody tr:hover {
    background-color: rgba(0, 161, 255, 0.05);
}

.wb-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Accordion (FAQ) ---- */

.wb-accordion-item {
    border-radius: var(--wb-radius-md);
    overflow: hidden;
    transition: box-shadow var(--wb-base) var(--wb-ease);
}

.wb-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--wb-base) var(--wb-ease);
}

.wb-accordion-panel.wb-open {
    grid-template-rows: 1fr;
}

.wb-accordion-panel-inner {
    overflow: hidden;
}

.wb-accordion-chevron {
    transition: transform var(--wb-base) var(--wb-ease);
}

.wb-accordion-chevron.wb-open {
    transform: rotate(180deg);
}

.wb-highlight {
    background: rgba(0, 161, 255, 0.18);
    color: var(--wb-dark);
    border-radius: 3px;
    padding: 0 2px;
}

/* ---- Pull-quote (About) ---- */

.wb-pull-quote {
    border-inline-start: 3px solid var(--wb-accent);
    padding-inline-start: 20px;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--wb-dark);
    line-height: 1.6;
}

/* ---- Pricing tier (Services) ---- */

.wb-pricing-tier {
    border-radius: var(--wb-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--wb-shadow-sm);
    transition: transform var(--wb-base) var(--wb-ease), box-shadow var(--wb-base) var(--wb-ease);
}

.wb-pricing-tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--wb-shadow-md);
}

.wb-pricing-tier-highlight {
    border: 2px solid var(--wb-accent);
    box-shadow: var(--wb-shadow-md);
}

.wb-pricing-tier-highlight:hover {
    box-shadow: var(--wb-shadow-lg);
}

/* ---- On-this-page nav (FAQ / Privacy Policy) ---- */

.wb-toc-link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--wb-radius-sm);
    font-size: var(--wb-text-caption);
    color: #6b7280;
    text-decoration: none;
    transition: background-color var(--wb-fast) var(--wb-ease), color var(--wb-fast) var(--wb-ease);
}

.wb-toc-link:hover {
    background: rgba(0, 161, 255, 0.08);
    color: var(--wb-accent);
}

.wb-toc-link-active {
    background: rgba(0, 161, 255, 0.1);
    color: var(--wb-accent);
    font-weight: 600;
}

/* ---- Reading progress bar (Privacy Policy) ---- */

.wb-progress-track {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 60;
}

.wb-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--wb-accent) 0%, var(--wb-accent-dark) 100%);
    transform-origin: left;
    transition: width 0.1s linear;
}

[dir="rtl"] .wb-progress-bar {
    transform-origin: right;
}
