/* WorkBuddy brand theme — one set of tokens for the whole product (public site and the
   signed-in app), taken from the WorkBuddy by PolarBear Tech concept material: deep navy,
   teal accent, cream light sections. Nothing here is page-specific; pages compose these. */

:root {
    /* Brand */
    --wb-navy-900: #04121f;
    --wb-navy-800: #072234;
    --wb-navy-700: #0c3049;
    --wb-navy-600: #124058;
    --wb-teal-300: #5eead4;
    --wb-teal-400: #2dd4bf;
    --wb-teal-500: #14b8a6;
    --wb-teal-600: #0d9488;
    --wb-cream: #fbfaf5;

    /* Surfaces and text */
    --wb-ink: #0f2233;
    --wb-muted: #5b7186;
    --wb-line: #e3e9ee;
    --wb-surface: #ffffff;
    --wb-surface-soft: #f5f8fa;

    /* Status */
    --wb-ok: #0d9488;
    --wb-warn: #b7791f;
    --wb-stop: #c0392b;

    --wb-radius: 12px;
    --wb-radius-lg: 18px;
    --wb-shadow: 0 10px 30px rgba(4, 18, 31, 0.08);
    --wb-shadow-lg: 0 24px 60px rgba(4, 18, 31, 0.18);
}

/* FocusOnNavigate moves focus to the page's h1 on every navigation, for screen readers — that
   DOM focus move is worth keeping, but it is not a real keyboard-navigation focus, so no one
   should see a box drawn around every heading. Browsers' :focus-visible heuristic still treats
   this programmatic focus as visible in some cases, so suppress the outline outright rather
   than restyling it. */
h1:focus,
h1:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none;
}

/* ---------- Buttons: one set, used on the public site and inside the app ---------- */
.wb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.wb-btn:hover { transform: translateY(-1px); }
.wb-btn:active { transform: translateY(0); }

.wb-btn-primary {
    background: linear-gradient(135deg, var(--wb-teal-500), var(--wb-teal-600));
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}
.wb-btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(13, 148, 136, 0.36); }

.wb-btn-ghost {
    background: transparent;
    color: #e6f3f6;
    border-color: rgba(255, 255, 255, 0.28);
}
.wb-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.wb-btn-light {
    background: #fff;
    color: var(--wb-ink);
    border-color: var(--wb-line);
    box-shadow: var(--wb-shadow);
}
.wb-btn-light:hover { color: var(--wb-ink); }

.wb-btn-sm { padding: 8px 16px; font-size: 13px; }
.wb-btn-lg { padding: 14px 30px; font-size: 15px; }

/* ---------- Public shell: header, body, footer ---------- */
.wb-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--wb-cream);
    color: var(--wb-ink);
}

/* app.css styles bare `header`/`nav` elements for the original template shell (tiny tracked-out
   caps, grid nav). Neutralise that here so the public header is styled only by these classes. */
.wb-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wb-line);
    padding: 0;
    font-size: var(--wb-font-size, 14px);
    font-weight: 400;
    letter-spacing: normal;
    color: var(--wb-ink);
}
.wb-site-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--wb-ink);
}
.wb-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--wb-teal-400), var(--wb-teal-600));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #04121f;
    font-weight: 800;
    font-size: 15px;
}
.wb-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.wb-logo-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.wb-logo-by { font-size: 10.5px; color: var(--wb-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.wb-site-nav { display: flex; align-items: center; gap: 6px; }
.wb-site-nav a:not(.wb-btn) {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--wb-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.wb-site-nav a:not(.wb-btn):hover { color: var(--wb-ink); background: rgba(13, 148, 136, 0.08); }
.wb-site-nav a.active:not(.wb-btn) { color: var(--wb-teal-600); background: rgba(13, 148, 136, 0.1); font-weight: 600; }

.wb-site-main { flex: 1 1 auto; }

.wb-site-footer {
    background: var(--wb-navy-900);
    color: #93aec1;
    padding: 28px 24px;
}
.wb-site-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}
.wb-site-footer a { color: var(--wb-teal-300); text-decoration: none; }
.wb-site-footer-tag { letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; color: #5c7f95; }

/* ---------- Section scaffolding ---------- */
.wb-section { padding: 72px 24px; }
.wb-section-inner { max-width: 1140px; margin: 0 auto; }
.wb-section-dark {
    background:
        radial-gradient(1100px 520px at 78% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
        linear-gradient(160deg, var(--wb-navy-800), var(--wb-navy-900));
    color: #e9f3f7;
}
.wb-section-dark h2, .wb-section-dark h3 { color: #fff; }
.wb-section-soft { background: var(--wb-surface); }

.wb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wb-teal-600);
    margin: 0 0 14px;
}
.wb-section-dark .wb-eyebrow { color: var(--wb-teal-300); }
.wb-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* ---------- Hero ---------- */
.wb-hero { padding: 86px 24px 72px; }
.wb-hero-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
.wb-hero h1 {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 18px;
    color: #fff;
}
.wb-hero h1 em { font-style: normal; color: var(--wb-teal-300); }
.wb-hero-lead {
    font-size: 16.5px;
    line-height: 1.65;
    color: #b9d2de;
    margin: 0 0 28px;
    max-width: 560px;
}
.wb-hero-lead strong { color: #fff; font-weight: 600; }
.wb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Product preview card — the management brief shown on the public site */
.wb-brief {
    background: #fff;
    border-radius: var(--wb-radius-lg);
    box-shadow: var(--wb-shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.wb-brief-bar {
    background: var(--wb-navy-800);
    color: #cfe6ee;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
}
.wb-brief-bar b { color: #fff; font-weight: 700; }
.wb-brief-bar b span { color: var(--wb-teal-300); }
.wb-brief-chip {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    color: #a9c7d4;
}
.wb-brief-body { padding: 18px; }
.wb-brief-body h3 { margin: 0 0 14px; font-size: 17px; color: var(--wb-ink); }
.wb-brief-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.wb-stat {
    border: 1px solid var(--wb-line);
    border-radius: 10px;
    padding: 10px;
    background: var(--wb-surface-soft);
}
.wb-stat b { display: block; font-size: 20px; line-height: 1.1; color: var(--wb-ink); }
.wb-stat span { font-size: 11px; color: var(--wb-muted); }
.wb-stat-ok { background: rgba(13, 148, 136, 0.08); border-color: rgba(13, 148, 136, 0.22); }
.wb-stat-ok b { color: var(--wb-ok); }
.wb-stat-warn { background: rgba(183, 121, 31, 0.08); border-color: rgba(183, 121, 31, 0.22); }
.wb-stat-warn b { color: var(--wb-warn); }

.wb-brief-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-panel { border: 1px solid var(--wb-line); border-radius: 10px; padding: 12px; }
.wb-panel h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--wb-ink); }
.wb-panel ul { margin: 0; padding-left: 16px; }
.wb-panel li { font-size: 12px; color: var(--wb-muted); margin-bottom: 5px; }
.wb-panel-warn { background: rgba(183, 121, 31, 0.06); border-color: rgba(183, 121, 31, 0.2); }
.wb-panel-ai { background: rgba(13, 148, 136, 0.06); border-color: rgba(13, 148, 136, 0.2); }
.wb-panel-ai p { font-size: 12px; color: var(--wb-muted); margin: 0 0 10px; }

/* ---------- Pillars ---------- */
.wb-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wb-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wb-card {
    background: #fff;
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius);
    padding: 24px;
    box-shadow: var(--wb-shadow);
}
.wb-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--wb-teal-600);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}
.wb-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--wb-ink); letter-spacing: -0.01em; }
.wb-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--wb-muted); }
.wb-card-plain { text-align: center; padding: 20px 16px; }
.wb-card-plain h3 { margin: 0; font-size: 15px; }

/* ---------- Statement band ---------- */
.wb-statement { text-align: center; }
.wb-statement p {
    font-size: clamp(21px, 2.6vw, 30px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}
.wb-statement p em { font-style: normal; color: var(--wb-teal-300); }
.wb-statement-sub {
    margin-top: 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-style: italic;
    color: #9fc0d0 !important;
    letter-spacing: 0 !important;
}

/* ---------- Status chips (About) ---------- */
.wb-chips { display: flex; flex-direction: column; gap: 10px; max-width: 330px; }
.wb-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid;
}
.wb-chip-ok { background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.4); color: #b8f1e6; }
.wb-chip-warn { background: rgba(183, 121, 31, 0.14); border-color: rgba(214, 158, 46, 0.42); color: #f2d49b; }
.wb-chip-stop { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.35); color: #cbd5e1; }

/* ---------- Flow ---------- */
.wb-flow { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 10px; }
.wb-flow-step {
    flex: 1 1 128px;
    max-width: 160px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}
.wb-flow-step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--wb-teal-400);
    color: var(--wb-teal-300);
    font-size: 12px;
    margin-bottom: 8px;
}
.wb-flow-step p { margin: 0; font-size: 12.5px; color: #d6e8ef; line-height: 1.35; }

/* ---------- CTA + disclaimer ---------- */
.wb-cta-band { text-align: center; }
.wb-cta-band h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 10px; letter-spacing: -0.02em; }
.wb-cta-band p { color: var(--wb-muted); margin: 0 0 22px; font-size: 15px; }
.wb-section-dark .wb-cta-band p { color: #a9c7d4; }

.wb-disclaimer {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: var(--wb-muted);
}
.wb-section-dark .wb-disclaimer { color: #7d9cae; }

@media (max-width: 960px) {
    .wb-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .wb-cards-3, .wb-cards-4 { grid-template-columns: 1fr 1fr; }
    .wb-brief-panels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .wb-section, .wb-hero { padding-left: 18px; padding-right: 18px; }
    .wb-section { padding-top: 52px; padding-bottom: 52px; }
    .wb-cards-3, .wb-cards-4 { grid-template-columns: 1fr; }
    .wb-brief-stats { grid-template-columns: 1fr 1fr; }
    .wb-site-nav a:not(.wb-btn) { padding: 8px 10px; }
}

/* ---------- Hero side: management brief or sign-in form ---------- */
.wb-hero-side .wb-signin { display: none; }
.wb-hero-side[data-mode="signin"] .wb-brief:not(.wb-signin) { display: none; }
.wb-hero-side[data-mode="signin"] .wb-signin { display: block; }
/* A failed sign-in re-renders the page with the form open, whatever page it was posted from. */
.wb-hero-side:has(.wb-auth-error) .wb-brief:not(.wb-signin) { display: none; }
.wb-hero-side:has(.wb-auth-error) .wb-signin { display: block; }
.wb-signin { max-width: 440px; margin-left: auto; }
.wb-signin .wb-brief-chip { text-decoration: none; }
.wb-signin .wb-brief-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 900px) { .wb-signin { margin: 0 auto; } }

/* Sign-in card spacing and the show/hide password eye */
.wb-signin .wb-field { margin-bottom: 16px; }
.wb-signin .wb-signin-submit { width: 100%; justify-content: center; margin-top: 22px; }
.wb-pw { position: relative; }
.wb-pw .form-control { padding-right: 44px; }
.wb-pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent;
    color: #5b6573; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.wb-pw-toggle:hover { color: var(--wb-teal-700, #0f766e); background: rgba(13, 148, 136, 0.08); }
.wb-pw-toggle .wb-eye-off { display: none; }
.wb-pw-toggle.is-shown .wb-eye { display: none; }
.wb-pw-toggle.is-shown .wb-eye-off { display: block; }
