/* ==========================================================================
Meriwise Labs — studio layer. Loads after styles.css.
Palette: navy base #11283F · deep navy #081321 · gold #F2C14E · ivory #F6F1E6
Adds: refined surfaces, focus rings, tool cloud, vision demo, wizard,
offers and work. Gold is never used as text on light surfaces.
========================================================================== */

:root {
--navy-base: var(--mw-navy-base, #11283F);
--navy-3: var(--mw-navy-base, #11283F);
}

[hidden] { display: none !important; }

/* ---------- Surfaces: navy base for sections, deep navy for depth ---------- */
section.dark { background-color: var(--navy-base); }
section.hero, section.nf {
background-image: linear-gradient(180deg, var(--navy) 0%, var(--navy) 45%, var(--navy-base) 100%);
}
.step::before { box-shadow: 0 0 0 6px var(--navy-base); }

/* ---------- Focus: navy ring on light surfaces, gold ring on dark ---------- */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.panel--navy :focus-visible,
.info-card :focus-visible,
.cv-panel :focus-visible,
.skip-link:focus-visible { outline-color: var(--gold); }
.info-card--light :focus-visible { outline-color: var(--navy); }
main:focus { outline: none; }

/* Ghost buttons need a visible edge on light surfaces */
.btn--ghost { border-color: rgba(8, 19, 33, 0.4); }

/* ---------- Tool cloud (replaces the moving marquee) ---------- */
.tool-cloud {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.7rem;
max-width: 58rem;
margin-inline: auto;
list-style: none;
}

/* ---------- Simulated vision demo ---------- */
.cv-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .cv-layout { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.cv-note {
max-width: 58ch;
margin-top: 1.25rem;
padding: 0.9rem 1.1rem;
border: 1px dashed rgba(242, 193, 78, 0.5);
border-radius: 10px;
color: var(--ink-soft);
font-size: 0.95rem;
}
.cv-note strong { color: var(--gold); font-weight: 600; }
.cv-panel {
border: 1px solid var(--rule-dark);
border-radius: calc(var(--radius) + 4px);
background: var(--navy);
overflow: hidden;
box-shadow: var(--shadow-lg);
}
.cv-bar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 0.8rem 1rem;
border-bottom: 1px solid var(--rule-dark);
color: var(--ink-soft);
font: 600 0.75rem/1 var(--body);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.cv-bar b { color: var(--gold); font-weight: 600; }
.cv-stage { display: block; width: 100%; height: auto; aspect-ratio: 400 / 250; }
.cv-grid { fill: none; stroke: rgba(255, 255, 255, 0.06); }
.cv-shapes > * { fill: rgba(255, 255, 255, 0.13); stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.2; }
.cv-box { fill: none; stroke: var(--gold); stroke-width: 2; }
.cv-tag { fill: var(--gold); }
.cv-tag-text { fill: var(--navy); font: 600 11px var(--body); }
.cv-scan { opacity: 0; }
.cv-controls { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 1rem 1rem 0.5rem; }
.cv-readout { min-height: 3.4em; padding: 0.5rem 1rem 1rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Wizard ---------- */
.wizard-card {
max-width: 52rem;
margin-inline: auto;
padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
border: 1px solid var(--rule-light);
border-radius: calc(var(--radius) + 6px);
background: var(--white);
box-shadow: var(--shadow-lg);
}
.wizard fieldset { min-width: 0; margin: 0 0 1.75rem; padding: 0; border: 0; }
.wizard legend { margin-bottom: 1rem; padding: 0; font: 500 1.4rem/1.25 var(--display); letter-spacing: -0.01em; }
.wizard-progress {
margin-bottom: 1rem;
color: var(--slate);
font: 600 0.8125rem/1 var(--body);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.wizard-options { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .wizard-options { grid-template-columns: 1fr 1fr; } }
.wizard-options .choice { display: block; }
.wizard-options .choice span { display: block; padding: 0.9rem 1.1rem; border-radius: 12px; }
.wizard-error { margin-bottom: 1rem; color: #b3261e; font-size: 0.9rem; font-weight: 600; }
.wizard-error:empty { display: none; }
.wizard-nav { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.wizard-nav [data-wizard-next] { margin-left: auto; }
.wizard-result { outline: none; }
.wizard-result h3 { margin-bottom: 0.8rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; }
.wizard-result p { color: var(--slate); }
.wizard-result .btn-row { margin-top: 1.5rem; }
.wizard-note {
margin-bottom: 1.25rem;
padding: 0.9rem 1.1rem;
border-radius: 10px;
background: var(--champagne);
color: var(--navy);
font-weight: 600;
}

/* ---------- Offers ---------- */
.offer-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; list-style: none; }
@media (min-width: 46rem) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 76rem) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer {
display: flex;
flex-direction: column;
padding: 1.75rem;
border: 1px solid var(--rule-light);
border-radius: var(--radius);
background: var(--white);
}
.offer-step {
margin-bottom: 1rem;
color: var(--slate);
font: 600 0.75rem/1 var(--body);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.offer h3 { margin-bottom: 0.6rem; font-size: 1.45rem; font-weight: 500; }
.offer p { color: var(--slate); }
.offer .bullets { margin: 1.1rem 0 1.5rem; }
.offer-price {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-top: auto;
padding-top: 1.1rem;
border-top: 1px solid var(--rule-light);
font-weight: 600;
}
.offer-price .quote-link {
color: var(--navy);
text-decoration: underline;
text-underline-offset: 0.18em;
}
.offer-price .quote-link:hover,
.offer-price .quote-link:focus-visible {
color: var(--navy-deep, #081321);
}

/* ---------- Work slots ---------- */
.badge-soon {
display: inline-block;
padding: 0.3rem 0.7rem;
border: 1px dashed rgba(8, 19, 33, 0.45);
border-radius: 999px;
color: var(--slate);
font: 600 0.72rem/1 var(--body);
letter-spacing: 0.12em;
text-transform: uppercase;
}
.work-grid { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 46rem) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-slot {
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px dashed rgba(8, 19, 33, 0.3);
border-radius: var(--radius);
background: var(--white);
}
.work-slot-media {
display: grid;
place-items: center;
aspect-ratio: 16 / 10;
border-bottom: 1px dashed rgba(8, 19, 33, 0.2);
background: repeating-linear-gradient(135deg, rgba(8, 19, 33, 0.04) 0 12px, transparent 12px 24px);
color: var(--slate);
font: 600 0.75rem/1 var(--body);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.work-slot-body { padding: 1.4rem 1.5rem 1.6rem; }
.work-slot h3 { margin: 0.9rem 0 0.4rem; font-size: 1.25rem; font-weight: 500; }
.work-slot p { color: var(--slate); font-size: 0.98rem; }
.after-grid { margin-top: 2rem; }

.journal-list { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 56rem) { .journal-list { grid-template-columns: repeat(3, 1fr); } }
.journal-entry {
padding: 1.6rem;
border: 1px dashed rgba(8, 19, 33, 0.3);
border-radius: var(--radius);
background: var(--ivory);
}
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.journal-entry h3 { margin-bottom: 0.6rem; font-size: 1.2rem; font-weight: 500; }
.journal-entry p { color: var(--slate); font-size: 0.98rem; }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
.cv-hit { animation: cv-pop 320ms var(--ease) both; }
@keyframes cv-pop { from { opacity: 0; } }
}
