/* ───────────────────────────────────────────────────────────────────
   Workio landing — local stylesheet
   Bootstrap 5 + Tabler icons are loaded from CDN in index.html.
   Brand palette: Workio Blue #1E40AF / dark #1E3A8A / light #3B82F6 /
                  amber #F59E0B / midnight #0F172A.
   ─────────────────────────────────────────────────────────────────── */

:root {
    --wk-blue: #1E40AF;
    --wk-blue-dark: #1E3A8A;
    --wk-blue-light: #3B82F6;
    --wk-amber: #F59E0B;
    --wk-midnight: #0F172A;
    --wk-slate: #475569;
    --wk-paper: #F8FAFC;
}

/* Bootstrap primary -> Workio Blue */
.btn-primary,
.bg-primary { background-color: var(--wk-blue) !important; border-color: var(--wk-blue) !important; }
.btn-primary:hover,
.btn-primary:focus { background-color: var(--wk-blue-dark) !important; border-color: var(--wk-blue-dark) !important; }
.btn-outline-primary { color: var(--wk-blue); border-color: var(--wk-blue); }
.btn-outline-primary:hover { background-color: var(--wk-blue); border-color: var(--wk-blue); color: #fff; }
.text-primary { color: var(--wk-blue) !important; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--wk-paper);
    color: var(--wk-midnight);
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.wk-navbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.07);
    z-index: 1030;
    padding: .7rem 0;
}
.wk-brand-text { color: var(--wk-midnight); font-size: 1.15rem; letter-spacing: -.01em; }
.wk-nav-link { font-size: .88rem; }
.wk-flag {
    width: 20px; height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.05);
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}
.wk-lang-code { font-size: .78rem; font-weight: 600; }
.wk-lang-menu { min-width: 175px; font-size: .88rem; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.wk-hero {
    background: linear-gradient(150deg, #eff6ff 0%, #dbeafe 45%, #ede9fe 100%);
    padding: 5rem 0 3.5rem;
}
.wk-hero-title { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; color: var(--wk-midnight); letter-spacing: -.02em; }
.wk-hero-desc { font-size: 1.05rem; line-height: 1.75; max-width: 640px; margin-left: auto; margin-right: auto; }
.wk-trust { font-size: .85rem; }
.wk-gradient-text {
    background: linear-gradient(135deg, var(--wk-blue), var(--wk-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Store badges */
.wk-store-badge,
.wk-store-soon {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 9999px;
    background: var(--wk-midnight);
    color: #fff;
    font-size: .82rem;
    border: 1.5px solid #1e293b;
    box-shadow: 0 4px 14px rgba(15,23,42,.18);
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.wk-store-badge:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.wk-store-soon { opacity: .55; cursor: default; }
.wk-store-line1 { font-size: .65rem; opacity: .85; }
.wk-store-line2 { font-size: .9rem; font-weight: 700; }

/* ── Stats ────────────────────────────────────────────────────────── */
.wk-stats {
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.wk-stat-box {
    padding: 1.6rem 1rem;
    border-right: 1px solid #dee2e6;
}
.wk-stat-box:last-child { border-right: none; }
.wk-stat-value { font-size: 1.95rem; line-height: 1.1; color: var(--wk-blue); }

/* ── Generic section ─────────────────────────────────────────────── */
.wk-section { padding: 4.5rem 0; background: var(--wk-paper); }
.wk-section-title { color: var(--wk-midnight); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.wk-section-desc  { max-width: 560px; font-size: 1rem; line-height: 1.75; }
.wk-section-pill {
    display: inline-block;
    background: #dbeafe;
    color: var(--wk-blue-dark);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 9999px;
    margin-bottom: .75rem;
}
.wk-pill-on-dark { background: rgba(255,255,255,.15); color: #fff; }

/* ── Feature cards ───────────────────────────────────────────────── */
.wk-feature-card {
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #e9ecef !important;
    background: #fff;
}
.wk-feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(30,64,175,.12) !important; }
.wk-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wk-feature-desc { line-height: 1.7; font-size: .88rem; }

/* ── Dark section (local-first) ──────────────────────────────────── */
.wk-section-dark {
    background: linear-gradient(135deg, var(--wk-midnight) 0%, #1e3a8a 100%);
    color: #fff;
}
.wk-section-dark .wk-section-title,
.wk-section-cta  .wk-section-title {
    color: #fff;
}
.wk-localcards .wk-localcard {
    background: rgba(255,255,255,.08);
    height: 100%;
}
.wk-localcard-desc { font-size: .85rem; line-height: 1.6; }
.wk-realtime-chip {
    background: rgba(255,255,255,.1);
    font-size: .88rem;
}

/* ── Showcase ────────────────────────────────────────────────────── */
.wk-showcase-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.wk-showcase-row.wk-reverse { flex-direction: row-reverse; }
.wk-showcase-img { flex: 1; min-width: 0; text-align: center; }
.wk-showcase-img img {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15,23,42,.12);
}
.wk-showcase-text { flex: 1; min-width: 0; }
.wk-showcase-h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.wk-showcase-desc { font-size: .95rem; line-height: 1.8; }
.wk-checklist li { line-height: 2.1; font-size: .9rem; }
.wk-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: .5;
    z-index: 0;
}

/* ── Pricing ─────────────────────────────────────────────────────── */
.wk-pricing-row { max-width: 820px; margin: 0 auto; }
.wk-pricing-free {
    border: 2px solid #dee2e6 !important;
    background: #fff;
}
.wk-pricing-pro {
    border: 2px solid var(--wk-blue) !important;
    background: linear-gradient(160deg, #fff 55%, #eff6ff 100%);
}
.wk-plan-badge { font-size: .78rem; }
.wk-pro-badge { background: linear-gradient(135deg, var(--wk-blue), var(--wk-blue-light)); }
.wk-plan-desc { font-size: .88rem; line-height: 1.6; }
.wk-plan-price { font-size: 2.6rem; line-height: 1; color: var(--wk-midnight); }
.wk-pro-price { color: var(--wk-blue); }
.wk-plan-period { font-size: .88rem; }
.wk-plan-yearly { font-size: .82rem; }
.wk-pro-flame {
    background: linear-gradient(90deg, var(--wk-amber), #ef4444);
    font-size: .72rem;
    border-bottom-left-radius: 12px;
    letter-spacing: .04em;
}
.wk-pro-cta { background: linear-gradient(135deg, var(--wk-blue), var(--wk-blue-light)); border: none; }
.wk-pro-cta:hover { filter: brightness(1.05); color: #fff; }
.wk-pro-note { font-size: .78rem; }

/* ── Audience cards ──────────────────────────────────────────────── */
.wk-audience-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wk-audience-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(15,23,42,.08); }
.wk-audience-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.wk-audience-desc { font-size: .88rem; line-height: 1.7; }

/* ── Final CTA ───────────────────────────────────────────────────── */
.wk-section-cta {
    background: linear-gradient(135deg, var(--wk-blue) 0%, var(--wk-blue-dark) 100%);
    color: #fff;
}
.wk-section-cta .btn-light { color: var(--wk-blue) !important; }

/* ── Footer ──────────────────────────────────────────────────────── */
.wk-footer {
    background: #fff;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid #e9ecef;
}
.wk-footer-about { font-size: .88rem; line-height: 1.75; }
.wk-footer-legal-line { font-size: .83rem; line-height: 1.9; }
.wk-footer-h {
    font-weight: 700;
    margin-bottom: .9rem;
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .07em;
    color: #6b7280;
}
.wk-footer-list { line-height: 2.3; font-size: .88rem; }
.wk-footer-copy { font-size: .8rem; }

/* ── Cookie consent banner ───────────────────────────────────────── */
#wk-cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    max-width: 720px; margin: 0 auto;
    background: #fff; color: #1f2937;
    border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15,23,42,.18);
    padding: 20px 22px; z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px; line-height: 1.55;
}
#wk-cookie-banner[hidden] { display: none; }
#wk-cookie-banner h6 {
    font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--wk-midnight);
}
#wk-cookie-banner p { margin: 0 0 14px; color: #4b5563; }
#wk-cookie-banner a { color: var(--wk-blue); text-decoration: underline; }
#wk-cookie-banner .wk-cookie-actions {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
#wk-cookie-banner button {
    border: none; border-radius: 8px; padding: 9px 18px;
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: opacity .15s, transform .1s;
}
#wk-cookie-banner button:hover  { opacity: .9; }
#wk-cookie-banner button:active { transform: scale(.97); }
#wk-cookie-banner .wk-cookie-accept { background: var(--wk-blue); color: #fff; }
#wk-cookie-banner .wk-cookie-reject { background: #f3f4f6; color: #374151; }
@media (max-width: 575.98px) {
    #wk-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    #wk-cookie-banner .wk-cookie-actions { flex-direction: column-reverse; }
    #wk-cookie-banner button { width: 100%; }
}

/* ── Legal pages (privacy / cookie / terms) ──────────────────────── */
.wk-legal-hero {
    background: linear-gradient(150deg, #eff6ff 0%, #dbeafe 60%, #ede9fe 100%);
    padding: 4rem 0 2.5rem;
}
.wk-legal-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--wk-midnight);
    letter-spacing: -.02em;
}
.wk-legal-hero .wk-legal-sub {
    font-size: 1rem;
    color: var(--wk-slate);
}
.wk-legal-body {
    background: #fff;
    padding: 3rem 0 4rem;
}
.wk-legal-content { max-width: 780px; margin: 0 auto; font-size: .96rem; line-height: 1.75; color: #1f2937; }
.wk-legal-content h2 {
    margin-top: 2.4rem;
    margin-bottom: .9rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wk-midnight);
    letter-spacing: -.01em;
}
.wk-legal-content h3 {
    margin-top: 1.6rem;
    margin-bottom: .6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wk-blue-dark);
}
.wk-legal-content p { margin-bottom: 1rem; }
.wk-legal-content ul, .wk-legal-content ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.wk-legal-content li { margin-bottom: .35rem; }
.wk-legal-content a { color: var(--wk-blue); }
.wk-legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: .88rem;
}
.wk-legal-content table th,
.wk-legal-content table td {
    text-align: left;
    padding: .55rem .7rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.wk-legal-content table th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--wk-midnight);
    border-bottom: 2px solid #cbd5e1;
}
.wk-legal-content code,
.wk-legal-content kbd {
    background: #f1f5f9;
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .85em;
}
.wk-legal-note {
    background: #fef3c7;
    border-left: 4px solid var(--wk-amber);
    padding: .85rem 1rem;
    border-radius: 6px;
    margin: 1.3rem 0;
    font-size: .9rem;
    color: #78350f;
}
.wk-legal-toc {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 2.5rem;
    font-size: .92rem;
}
.wk-legal-toc-title {
    font-weight: 700;
    color: var(--wk-midnight);
    margin-bottom: .6rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.wk-legal-toc ol { margin: 0; padding-left: 1.2rem; }
.wk-legal-toc a { color: var(--wk-blue-dark); text-decoration: none; }
.wk-legal-toc a:hover { text-decoration: underline; }
.wk-legal-meta {
    margin-bottom: 1.5rem;
    color: var(--wk-slate);
    font-size: .87rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .wk-stat-box { border-right: none; border-bottom: 1px solid #dee2e6; }
    .wk-stat-box:last-child { border-bottom: none; }
    .wk-section { padding: 3rem 0; }
    .wk-showcase-row,
    .wk-showcase-row.wk-reverse { flex-direction: column; gap: 2rem; }
    .wk-hero { padding: 3rem 0 2.5rem; }
    .wk-showcase-img img { max-width: 280px; }
}
