/* ============================================================
   php2shell-ui.css — Wordaloud storefront design layer
   2026-11-18 · Direction: "ops-light hybrid" (founder decision)
   Light base · deep-navy primary · signal accents for emergency
   cues · monospace for technical tokens. Loads AFTER style.css
   and theme.min.css so these tokens win specificity battles.
   Every rule here overrides the worksuite theme; page-specific
   craft lands in later passes once rendered results are visible.
   ============================================================ */

:root {
    /* Palette — navy anchored to the existing .pricing__head #0f2031 */
    --wa-navy: #0f2031;
    --wa-navy-deep: #0a1826;
    --wa-signal: #d7263d;      /* emergency cue: critical findings, primary danger */
    --wa-amber: #b45309;       /* warn cue: advisories, expiring certs */
    --wa-ink: #17222e;         /* body text */
    --wa-mute: #5b6b7b;        /* secondary text */
    --wa-line: #e4e9ef;        /* hairlines, card borders */
    --wa-bg-soft: #f6f8fa;     /* alternate section background */
    --wa-ok: #1a7f4e;          /* positive scan rows */

    /* Type system — replaces Dosis + Open Sans */
    --wa-font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wa-font-display: 'Sora', 'Dosis', 'Inter', sans-serif;
    --wa-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

/* ---------- Base ---------- */

body,
body#home {
    font-family: var(--wa-font-body);
    color: var(--wa-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Display face: everything the theme sizes as a heading */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4,
.hero h1, section h1 {
    font-family: var(--wa-font-display) !important;
    color: var(--wa-navy);
    letter-spacing: -0.02em;
}

/* Hero scale-up: the storefront headline was 32px/600 — too quiet */
h1,
.hero h1,
section h1 {
    font-size: clamp(34px, 4.6vw, 52px) !important;
    line-height: 1.12 !important;
    font-weight: 600 !important;
}

h2 {
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
}

h3 {
    font-size: clamp(20px, 2.2vw, 25px) !important;
    font-weight: 600 !important;
}

p, li {
    line-height: 1.65;
}

.lead {
    font-size: 1.125rem;
    color: var(--wa-mute);
}

/* ---------- Buttons ---------- */

.btn {
    font-family: var(--wa-font-body) !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.btn-primary,
.btn-info,
.btn-success {
    background-color: var(--wa-navy) !important;
    border-color: var(--wa-navy) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
    background-color: var(--wa-navy-deep) !important;
    border-color: var(--wa-navy-deep) !important;
    box-shadow: 0 6px 18px rgba(15, 32, 49, .18);
    transform: translateY(-1px);
}

.btn-outline-primary,
.btn-outline-info {
    border-color: var(--wa-navy) !important;
    color: var(--wa-navy) !important;
}

.btn-outline-primary:hover,
.btn-outline-info:hover {
    background-color: var(--wa-navy) !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: var(--wa-signal) !important;
    border-color: var(--wa-signal) !important;
}

/* ---------- Kill the worksuite pink everywhere ---------- */

.feature-icon,
.module-available {
    color: var(--wa-signal) !important;
}

.pick-plan .pricing__head {
    background: var(--wa-navy) !important;
}

a, .text-primary, .type--bold {
    transition: color .15s ease;
}

/* ---------- Cards & boxes ---------- */

.boxed,
.card,
.pricing {
    border-radius: 10px;
}

.boxed {
    border: 1px solid var(--wa-line);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 32, 49, .04), 0 8px 24px rgba(15, 32, 49, .05);
}

.bg--secondary {
    background: var(--wa-bg-soft) !important;
}

/* ---------- Technical tokens: monospace where the truth is measured ---------- */

.wa-mono,
code,
pre,
.invoice-number,
.version-badge {
    font-family: var(--wa-font-mono) !important;
}

/* small caps for section eyebrows (the "01 · Detect" style labels) */
.wa-eyebrow,
.type--fine-print.uppercase {
    font-family: var(--wa-font-body) !important;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wa-mute);
}

/* ---------- Forms ---------- */

.form-control {
    border-radius: 6px;
    border-color: var(--wa-line);
    font-family: var(--wa-font-body);
}

.form-control:focus {
    border-color: var(--wa-navy);
    box-shadow: 0 0 0 3px rgba(15, 32, 49, .12);
}

/* ---------- Motion: quiet scroll reveals (respect reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
    .wa-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .5s ease, transform .5s ease;
    }
    .wa-reveal.wa-reveal--in {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Focus visibility (keyboard users) ---------- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible {
    outline: 2px solid var(--wa-navy);
    outline-offset: 2px;
}
