/* ==========================================================================
   Design 58 — "War Room"
   The wildcard. The homepage is the project wall of a commissioning war
   room: a whiteboard with pinned printed sheets, taped photos and yellow
   sticky notes.

   The rule that makes it work — and the direct fix for the review note
   about design 3's scattered drawing text — is that HANDWRITING IS ONLY
   EVER USED FOR ANNOTATIONS AND STICKY NOTES. Every sentence a customer
   actually has to read is set in IBM Plex Sans on a clean white sheet.
   The marker pen comments on the document; it never becomes the document.

   - design 20 — whiteboard surface, tape, magnets, sticky notes, the
                 hand-drawn animated signal diagram
   - design  3 — rubber stamps, here as APPROVED / FAT OK on the sheets
   - design 27 — annotated 1-4 screenshot, as a taped photo
   - design 33 — the fact row, as four sticky notes
   - design 28 — references, as pinned logo cards
   - design 40 — Features / Applications, as a pinned checklist sheet

   Front-page only — linked exclusively from Pages/Index.razor.
   ========================================================================== */

:root {
    --wb-bg-1: #f7f6f2;
    --wb-bg-2: #eeece4;
    --wb-paper: #ffffff;
    --wb-paper-edge: #e5e3da;
    --wb-ink: #1c1c1c;
    --wb-ink-soft: #4a4a45;
    --wb-muted: #7a786f;
    --marker-blue: #1d5fbf;
    --marker-red: #c8362a;
    --marker-green: #2f7d4f;
    --sticky-yellow: #fff2a8;
    --sticky-yellow-edge: #f2df84;
    --sticky-blue: #cfe9f5;
    --sticky-blue-edge: #aed6e8;
    --tape: rgba(250, 247, 232, 0.85);
    --brand-blue: #008FBF;
    --brand-yellow: #FEC601;
    --brand-green: #93C48B;
    --wb-sh-sm: 0 2px 6px rgba(20, 18, 10, 0.12);
    --wb-sh-md: 0 10px 26px rgba(20, 18, 10, 0.14);
    --font-hand: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
    --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

body {
    background:
        radial-gradient(ellipse 1100px 480px at 18% 0%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
        radial-gradient(ellipse 900px 420px at 88% 15%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, var(--wb-bg-1) 0%, var(--wb-bg-2) 100%);
    background-attachment: fixed;
    color: var(--wb-ink);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.wb-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------
   Header — the top of the board
   -------------------------------------------------------------------- */
.header.yes {
    background: transparent !important;
    background-image: none !important;
    padding-bottom: 26px;
    border-bottom: 2px dashed rgba(28, 28, 28, 0.16);
}

/* style.css gives the logo 100px of air under the fixed menu bar; less on desktop (phones already use 24px) */
@media (min-width: 1024px) {
    .header.yes .header-text { margin-top: 48px; }
}

.header.yes .header-text h1,
.header.yes .header-text p { color: var(--wb-ink); }
.header.yes .header-text p strong { color: var(--marker-blue); }

.header.yes .menu-bar ul li a {
    color: var(--wb-ink-soft);
    font-family: var(--font-cond);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header.yes .menu-bar ul li a:hover { color: var(--marker-red); }

/* --------------------------------------------------------------------
   Pinned sheet — the workhorse. Slight rotation, tape, soft shadow.
   -------------------------------------------------------------------- */
.wb-sheet {
    position: relative;
    background: var(--wb-paper);
    border: 1px solid var(--wb-paper-edge);
    box-shadow: var(--wb-sh-md);
    padding: 30px 30px 28px;
    box-sizing: border-box;
}

.wb-sheet--tilt-l { transform: rotate(-0.5deg); }
.wb-sheet--tilt-r { transform: rotate(0.6deg); }

/* Tape strips */
.wb-tape {
    position: absolute;
    width: 96px;
    height: 26px;
    background: var(--tape);
    box-shadow: 0 1px 3px rgba(20, 18, 10, 0.16);
    border-left: 1px dashed rgba(0, 0, 0, 0.06);
    border-right: 1px dashed rgba(0, 0, 0, 0.06);
}

.wb-tape--top {
    top: -13px;
    left: 50%;
    transform: translateX(-50%) rotate(-1.5deg);
}

.wb-tape--tl { top: -12px; left: 22px; transform: rotate(-24deg); }
.wb-tape--tr { top: -12px; right: 22px; transform: rotate(22deg); }

/* Drawing pin. Drawn as an SVG so the head and the needle stay crisp and
   cannot be split by a stacking context the way two pseudo-elements would. */
.wb-magnet {
    position: absolute;
    top: -17px;
    left: 50%;
    width: 24px;
    height: 34px;
    transform: translateX(-50%) rotate(-7deg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34' viewBox='0 0 24 34'%3E%3Cpath d='M12 17.5 L14.3 19 L12 33 L9.7 19 Z' fill='%238c9095'/%3E%3Ccircle cx='12' cy='11' r='9' fill='%23c8362a' stroke='%239d2a20' stroke-width='1'/%3E%3Cellipse cx='8.6' cy='7.6' rx='2.7' ry='2' fill='%23ffffff' opacity='0.55'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: drop-shadow(0 2px 3px rgba(20, 18, 10, 0.34));
}

.wb-magnet--blue {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34' viewBox='0 0 24 34'%3E%3Cpath d='M12 17.5 L14.3 19 L12 33 L9.7 19 Z' fill='%238c9095'/%3E%3Ccircle cx='12' cy='11' r='9' fill='%231d5fbf' stroke='%2316478f' stroke-width='1'/%3E%3Cellipse cx='8.6' cy='7.6' rx='2.7' ry='2' fill='%23ffffff' opacity='0.55'/%3E%3C/svg%3E");
    transform: translateX(-50%) rotate(6deg);
}

/* Sticky note — handwriting lives HERE, and only here */
.wb-sticky {
    position: relative;
    background: var(--sticky-yellow);
    box-shadow: var(--wb-sh-sm);
    padding: 22px 20px 24px;
    font-family: var(--font-hand);
    color: var(--wb-ink);
    box-sizing: border-box;
}

.wb-sticky::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, transparent 50%, var(--sticky-yellow-edge) 50%);
}

.wb-sticky--blue { background: var(--sticky-blue); }
.wb-sticky--blue::after { background: linear-gradient(135deg, transparent 50%, var(--sticky-blue-edge) 50%); }

.wb-sticky--r1 { transform: rotate(-1.8deg); }
.wb-sticky--r2 { transform: rotate(1.4deg); }
.wb-sticky--r3 { transform: rotate(-0.8deg); }
.wb-sticky--r4 { transform: rotate(2deg); }

/* Marker-pen annotation — short phrases only, never body copy */
.wb-annotation {
    font-family: var(--font-hand);
    color: var(--marker-blue);
    font-size: 1rem;
    line-height: 1.35;
}

.wb-annotation--red { color: var(--marker-red); }

/* Rubber stamp (design 3) */
.wb-stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--marker-green);
    border: 2px solid var(--marker-green);
    border-radius: 3px;
    padding: 5px 10px;
    transform: rotate(-7deg);
    opacity: 0.82;
    white-space: nowrap;
}

.wb-stamp--red { color: var(--marker-red); border-color: var(--marker-red); transform: rotate(5deg); }

/* --------------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------------- */
.wb-section { padding: 72px 0; }

.wb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wb-muted);
    margin-bottom: 12px;
}

.wb-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--marker-blue);
}

/* Section titles are marker-written — they are headlines, not prose */
.wb-heading {
    font-family: var(--font-hand);
    font-size: clamp(1.8rem, 4.2vw, 2.7rem);
    color: var(--wb-ink);
    line-height: 1.16;
    margin: 0 0 30px;
}

/* The yellow rule was a border-bottom on an inline box, so it hung below
   the heading and landed on top of whatever followed. As a background it
   is clipped to the element and can be positioned inside the text box. */
.wb-heading em {
    font-style: normal;
    color: var(--marker-blue);
    background-image: linear-gradient(var(--brand-yellow), var(--brand-yellow));
    background-repeat: no-repeat;
    background-position: 0 90%;
    background-size: 100% 4px;
    padding-bottom: 2px;
}

.wb-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wb-ink-soft);
    max-width: 640px;
    margin: 0 0 44px;
}

/* Sheet body copy — clean, always */
.wb-sheet h3 {
    font-family: var(--font-cond);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}

.wb-sheet p {
    font-size: 0.94rem;
    line-height: 1.68;
    color: var(--wb-ink-soft);
    margin: 0 0 14px;
}

.wb-list { list-style: none; margin: 0; padding: 0; }

.wb-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--wb-ink-soft);
}

/* Hand-drawn tick */
.wb-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    font-family: var(--font-hand);
    font-size: 1rem;
    color: var(--marker-green);
}

.wb-list--blue li::before { color: var(--marker-blue); }

/* --------------------------------------------------------------------
   Hand-drawn signal diagram (design 20)
   -------------------------------------------------------------------- */
.wb-diagram svg { display: block; width: 100%; height: auto; }

.wb-draw {
    fill: none;
    stroke: var(--wb-ink);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: wb-draw 2.6s ease forwards;
}

.wb-draw--2 { animation-delay: .5s; }
.wb-draw--3 { animation-delay: 1s; }

@keyframes wb-draw {
    to { stroke-dashoffset: 0; }
}

.wb-draw-blue { stroke: var(--marker-blue); }
.wb-draw-red  { stroke: var(--marker-red); }

.wb-flow {
    stroke: var(--marker-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 3 14;
    fill: none;
    animation: wb-flow 1.5s linear infinite;
}

@keyframes wb-flow { to { stroke-dashoffset: -17; } }

.wb-hand-label {
    font-family: var(--font-hand);
    font-size: 15px;
    fill: var(--wb-ink);
    text-anchor: middle;
}

.wb-hand-label--blue { fill: var(--marker-blue); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .wb-draw { animation: none; stroke-dashoffset: 0; }
    .wb-flow { animation: none; }
}

/* --------------------------------------------------------------------
   Fact row as four sticky notes (design 33)
   -------------------------------------------------------------------- */
.wb-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wb-fact-num {
    display: block;
    font-family: var(--font-hand);
    font-size: clamp(2.2rem, 5vw, 3.1rem);
    line-height: 1;
    color: var(--wb-ink);
}

.wb-fact-label {
    display: block;
    margin-top: 12px;
    font-family: var(--font-hand);
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--wb-ink-soft);
}

/* --------------------------------------------------------------------
   Taped photo with numbered callouts (design 27)
   -------------------------------------------------------------------- */
.wb-photo {
    position: relative;
    margin: 0;
    background: var(--wb-paper);
    padding: 12px 12px 0;
    border: 1px solid var(--wb-paper-edge);
    box-shadow: var(--wb-sh-md);
    transform: rotate(-0.7deg);
}

.wb-photo-body { position: relative; line-height: 0; }
.wb-photo-body img { width: 100%; height: auto; display: block; }

.wb-annot {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--marker-red);
    color: #fff;
    font-family: var(--font-hand);
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(20, 18, 10, 0.34);
    transform: translate(-50%, -50%);
}

.wb-annot--key { background: var(--marker-blue); }

.wb-photo-caption {
    padding: 12px 4px 14px;
    font-family: var(--font-hand);
    font-size: 0.95rem;
    color: var(--wb-ink-soft);
    text-align: center;
}

.wb-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 22px 0 0;
    padding: 0;
}

.wb-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-hand);
    font-size: 0.98rem;
    color: var(--wb-ink-soft);
}

.wb-chip {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--marker-red);
    color: #fff;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.wb-chip--key { background: var(--marker-blue); }

/* --------------------------------------------------------------------
   Tables on sheets
   -------------------------------------------------------------------- */
.wb-table-wrap { overflow-x: auto; }

.wb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.88rem;
}

.wb-table th {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 2px solid var(--wb-ink);
    font-family: var(--font-cond);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wb-table td {
    padding: 10px 14px;
    border-bottom: 1px dashed rgba(28, 28, 28, 0.16);
    color: var(--wb-ink-soft);
    vertical-align: top;
}

.wb-table tbody tr:last-child td { border-bottom: none; }
.wb-table td:first-child { color: var(--wb-ink); font-weight: 500; white-space: nowrap; }

.wb-yes { font-family: var(--font-hand); color: var(--marker-green); font-size: 1.05rem; }
.wb-no  { color: #b5b2a8; }

/* --------------------------------------------------------------------
   Pinned reference cards (design 28)
   -------------------------------------------------------------------- */
.wb-clients {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.wb-client {
    position: relative;
    background: var(--wb-paper);
    border: 1px solid var(--wb-paper-edge);
    box-shadow: var(--wb-sh-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}

.wb-client:nth-child(3n+1) { transform: rotate(-0.9deg); }
.wb-client:nth-child(3n+2) { transform: rotate(0.5deg); }
.wb-client:nth-child(3n)   { transform: rotate(1.1deg); }

.wb-client:hover { filter: grayscale(0%); opacity: 1; transform: rotate(0) translateY(-3px); }
.wb-client img { height: 36px; width: auto; max-width: 130px; object-fit: contain; }

/* --------------------------------------------------------------------
   Buttons — marker-drawn boxes
   -------------------------------------------------------------------- */
.wb-btn-primary.mud-button-root {
    background: var(--marker-blue) !important;
    color: #fff !important;
    border-radius: 3px !important;
    box-shadow: var(--wb-sh-sm) !important;
    text-transform: none !important;
    font-family: var(--font-cond) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    font-size: 1rem !important;
    padding: 12px 28px !important;
    transform: rotate(-0.6deg);
    transition: transform .16s ease;
}

.wb-btn-primary.mud-button-root:hover { transform: rotate(0) translateY(-2px); }

.wb-btn-secondary.mud-button-root {
    background: var(--wb-paper) !important;
    color: var(--wb-ink) !important;
    border: 2px solid var(--wb-ink) !important;
    border-radius: 3px !important;
    box-shadow: var(--wb-sh-sm) !important;
    text-transform: none !important;
    font-family: var(--font-cond) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    font-size: 1rem !important;
    padding: 11px 26px !important;
    transform: rotate(0.7deg);
    transition: transform .16s ease;
}

.wb-btn-secondary.mud-button-root:hover { transform: rotate(0) translateY(-2px); }

/* --------------------------------------------------------------------
   FAQ + footer
   -------------------------------------------------------------------- */
.faq-section {
    background: transparent !important;
    padding: 72px 0;
    border-top: 2px dashed rgba(28, 28, 28, 0.14);
}

.faq-section .mud-typography-h3 {
    font-family: var(--font-hand) !important;
    font-weight: 400 !important;
    text-transform: none !important;
    font-size: clamp(1.8rem, 4.2vw, 2.7rem) !important;
}

.faq-section .mud-typography-h6 {
    font-family: var(--font-body) !important;
    font-size: 0.94rem !important;
    color: var(--wb-ink-soft) !important;
}

.faq-section .mud-expansion-panels .mud-expand-panel {
    background: var(--wb-paper) !important;
    border: 1px solid var(--wb-paper-edge) !important;
    border-radius: 2px !important;
    box-shadow: var(--wb-sh-sm) !important;
}

.faq-section .mud-expand-panel .mud-typography-h6 {
    font-family: var(--font-cond) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--wb-ink) !important;
}

.faq-section .mud-expand-panel-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--wb-ink-soft);
}

.faq-section .mud-icon-root { color: var(--marker-blue) !important; }

.footer-section {
    background: transparent;
    border-top: 2px dashed rgba(28, 28, 28, 0.14);
    padding-bottom: 44px;
}

/* The company line, the services and the address keep the live site's typography from style.css (IBM Plex Sans
   bold capitals, IBM Plex Mono capitals, Plex Sans e-mail), the same on every page. */

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
    .wb-facts { grid-template-columns: repeat(2, 1fr); }
    .wb-clients { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wb-section { padding: 52px 0; }
    .wb-facts { grid-template-columns: 1fr; }
    .wb-clients { grid-template-columns: 1fr; }
    .wb-sheet { padding: 24px 22px; }
    .wb-sheet--tilt-l, .wb-sheet--tilt-r, .wb-photo { transform: none; }
}

/* --------------------------------------------------------------------
   Sticky header surface
   style.css switches .topHeader to position:fixed with a translucent
   white background once the page scrolls, and forces the nav links to
   #333 !important. Left alone that smears page content through the bar.
   Restate it in this design's own colours.
   -------------------------------------------------------------------- */
.header.yes .topHeader.topsticky {
    background: #f7f6f2;
    border-bottom: 2px dashed rgba(28, 28, 28, 0.18);
}

.header.yes .topHeader.topsticky .menu-bar ul li a,
.header.yes .topHeader.topsticky .btn-login,
.header.yes .topHeader.topsticky .mobile-nav span,
.header.yes .topHeader.topsticky .mobile-nav p {
    color: #1c1c1c !important;
}

.header.yes .topHeader.topsticky .btn-login {
    border-color: #1c1c1c;
}
