/* ==========================================================================
   JMI Panama City Computers & Websites — Site refresh (2026)

   A cleaner, wider, more professional shell layered on top of styles.css.
   Loaded AFTER styles.css, so anything here wins at equal specificity.

   What this fixes:
     • styles.css defines .container twice; the later one caps the page at
       900px, which leaves huge dead margins on a desktop. We go to 1200px.
     • Softer palette, real type scale, consistent spacing & radii.
     • New components used by index.html / web-development.html / support.html.
   ========================================================================== */

:root {
    --ink-900: #06090f;
    --ink-850: #080c14;
    --ink-800: #0b111b;
    --ink-700: #101827;
    --ink-600: #16202f;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.17);
    --text: #e9eef7;
    --muted: #93a1b5;
    --brand: #4d90ff;
    --brand-dim: rgba(77, 144, 255, 0.13);
    --mint: #4fd6a8;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--ink-900);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient light so the wider margins read as "designed", not "empty". */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1000px 560px at 12% -10%, rgba(77, 144, 255, 0.12), transparent 62%),
        radial-gradient(760px 460px at 94% 2%, rgba(79, 214, 168, 0.07), transparent 62%);
}

/* --------------------------------------------------------------------------
   Layout — the width fix
   -------------------------------------------------------------------------- */

.container,
.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
}

.shell {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 1560px) {
    .container,
    .shell { max-width: 1320px; }
}

@media (max-width: 640px) {
    .container,
    .shell {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    /* styles.css shrinks these at 480px; that rule loses to our later
       padding, so set a comfortable mobile value here instead. */
    .cta-band { padding: 2rem 1.25rem; }
    .hero-card { padding: 1.35rem; }
    .price-strip { padding: 1.35rem; }
    .card { padding: 1.35rem; }
    .trust { gap: 1.1rem 1.5rem; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 700;
}

p { color: var(--muted); }

a { color: var(--brand); }

.section-header,
main h2,
h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Top bar / navigation
   -------------------------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(6, 9, 15, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 72px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--brand), #7cb2ff);
    color: #04101f;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.brand-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-tag {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-right: 0.4rem;
}

.topbar-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.topbar-links a:hover { color: #fff; }

@media (max-width: 900px) {
    .topbar-links { display: none; }
}

@media (max-width: 560px) {
    .brand-tag { display: none; }
    .topbar-inner { min-height: 64px; }
}

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

/* styles.css sets .btn-ghost { width: 100% } and .btn-primary three separate
   times. These rules come later, so they win — but they must be explicit
   about width and border-style, or the old values leak through. */
.btn,
.btn-primary,
.btn-ghost,
.btn-sm {
    width: auto;
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.15rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease,
                background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    display: inline-flex;
    background: linear-gradient(140deg, var(--brand), #2f78f5);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 26px rgba(77, 144, 255, 0.32);
}

.btn-primary:hover { box-shadow: 0 14px 32px rgba(77, 144, 255, 0.42); }

.btn-ghost {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    color: var(--text);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }

/* Inside a form the old stylesheet wants full-width buttons; keep that. */
form .btn { width: auto; }

/* Legacy nav phone pill, restyled to match. */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(77, 144, 255, 0.35);
    background: var(--brand-dim);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.header-phone:hover {
    background: rgba(77, 144, 255, 0.22);
    border-color: rgba(77, 144, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
    padding: 4.5rem 0 3.5rem;
}

@media (max-width: 940px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0 2rem;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 3px rgba(79, 214, 168, 0.18);
}

.hero h1 {
    font-size: clamp(2.05rem, 4.4vw, 3.35rem);
    margin-bottom: 1.1rem;
    max-width: 16ch;
}

.hero h1 .accent {
    background: linear-gradient(120deg, #ffffff 12%, var(--brand) 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lede {
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    max-width: 52ch;
    margin-bottom: 2rem;
}

.hero-lede strong { color: var(--text); font-weight: 600; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.2rem;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.trust-item { min-width: 0; }

.trust-value {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.trust-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Hero side card */

.hero-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(23, 33, 51, 0.92), rgba(9, 14, 22, 0.92));
    box-shadow: var(--shadow-lg);
}

.hero-card h2 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.checklist li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.checklist li strong { color: var(--text); font-weight: 600; }

.check {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(79, 214, 168, 0.14);
    color: var(--mint);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.hero-card .btn { width: 100%; }

.hero-note {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--line);
}

.section:first-of-type { border-top: 0; }

.section-head {
    max-width: 62ch;
    margin-bottom: 2.25rem;
}

.section-head h2 { margin-bottom: 0.6rem; }

.section-head p {
    margin: 0;
    font-size: 1.02rem;
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(19, 27, 41, 0.85), rgba(9, 13, 21, 0.85));
    transition: border-color 0.2s ease, transform 0.2s ease;
}

a.card:hover {
    border-color: rgba(77, 144, 255, 0.45);
    transform: translateY(-3px);
    text-decoration: none;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.1rem;
    border-radius: 11px;
    background: var(--brand-dim);
    border: 1px solid rgba(77, 144, 255, 0.22);
    color: var(--brand);
}

.card-icon svg { width: 21px; height: 21px; }

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0 0 1.1rem;
    font-size: 0.93rem;
    flex: 1;
}

.card-link {
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* Price strip */

.price-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.price-item { min-width: 0; }

.price-amount {
    display: block;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.price-label {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

/* Steps */

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.5rem;
}

.steps li {
    counter-increment: step;
    padding-top: 1.1rem;
    border-top: 2px solid var(--line-2);
}

.steps li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 0.6rem;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.steps h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.steps p {
    margin: 0;
    font-size: 0.92rem;
}

/* FAQ */

.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 860px;
}

/* styles.css already styles .faq-item (it was used by the old pay.html
   accordion) with its own padding and a bottom margin — undo both, the
   grid gap handles the spacing here. */
.faq-item {
    padding: 0;
    margin-bottom: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-a {
    padding: 0 1.25rem 1.15rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.faq-item .faq-a p { margin: 0; }

/* Closing CTA band */

.cta-band {
    margin: 3.5rem 0 1rem;
    padding: 3rem 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(77, 144, 255, 0.3);
    background:
        radial-gradient(700px 320px at 15% 0%, rgba(77, 144, 255, 0.16), transparent 70%),
        linear-gradient(170deg, rgba(20, 30, 48, 0.9), rgba(8, 12, 20, 0.9));
    text-align: center;
}

.cta-band h2 { margin-bottom: 0.6rem; }

.cta-band p {
    margin: 0 auto 1.75rem;
    max-width: 54ch;
}

.cta-band .cta-row { justify-content: center; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Legacy page polish (location pages, repair pages, etc.)
   -------------------------------------------------------------------------- */

.area-card,
.it-services-box,
.contact-box,
.promo-preview-box,
.service-pathway-card,
.preview-info-box {
    border-radius: var(--radius) !important;
    border-color: var(--line) !important;
}

.area-card {
    background: linear-gradient(170deg, rgba(19, 27, 41, 0.85), rgba(9, 13, 21, 0.85)) !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
}

.area-card:hover {
    border-color: rgba(77, 144, 255, 0.42) !important;
    transform: translateY(-3px);
}

.contact-box,
.promo-preview-box,
.it-services-box {
    background: rgba(255, 255, 255, 0.02) !important;
}

footer {
    border-top: 1px solid var(--line);
    padding: 2.25rem 0 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

footer a { color: var(--muted); }
footer a:hover { color: #fff; }

.chip {
    border-radius: 999px !important;
    border: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--muted) !important;
    font-size: 0.86rem !important;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
    color: #fff !important;
    border-color: var(--line-2) !important;
}

/* Form inputs */

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 144, 255, 0.18);
}

textarea { min-height: 130px; resize: vertical; }

button[type="submit"],
.btn-primary,
.btn-secondary {
    border-radius: 10px !important;
    font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   Mobile contact bar (injected by script.js)
   -------------------------------------------------------------------------- */

#jmi-sticky-bar {
    border-top-color: rgba(77, 144, 255, 0.35) !important;
    background: rgba(6, 9, 15, 0.97) !important;
}

#jmi-sticky-bar a,
#jmi-sticky-bar button.bar-tip {
    flex: 1;
    padding: 14px 4px;
    background: none;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

#jmi-sticky-bar a.bar-tip,
#jmi-sticky-bar button.bar-tip {
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* Small note under a section */
.section-note { margin-top: 1rem; color: var(--muted, #9aa4b2); font-size: .95rem; }

/* ==========================================================================
   2026 — Packages, care plan, honest comparison, labs
   Everything below is additive: it only styles classes the new pages use, so
   no existing page changes appearance.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reveal-on-scroll (only applies to elements that opt in with data-reveal)
   -------------------------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Pricing tiers
   -------------------------------------------------------------------------- */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
    align-items: start;
}

.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.6rem 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(19, 27, 41, 0.9), rgba(9, 13, 21, 0.92));
}

.tier.featured {
    border-color: rgba(77, 144, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(77, 144, 255, 0.16);
    background:
        radial-gradient(420px 200px at 50% -10%, rgba(77, 144, 255, 0.16), transparent 70%),
        linear-gradient(170deg, rgba(23, 33, 52, 0.95), rgba(9, 13, 21, 0.95));
}

.tier-badge {
    position: absolute;
    top: -11px;
    left: 1.6rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(140deg, var(--brand), #2f78f5);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tier-kicker {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tier h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.tier-price .amount {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
}

.tier-price .per {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.tier-sub {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    min-height: 2.6em;
}

.tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.65rem;
    flex: 1;
}

.tier-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tier-list li strong { color: var(--text); font-weight: 600; }

.tier-list .tick {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(79, 214, 168, 0.15);
    color: var(--mint);
}

.tier-list .tick.no {
    background: rgba(255, 255, 255, 0.06);
    color: #6d7a8c;
}

.tier-list li.off { color: #6d7a8c; }

.tier .btn { width: 100%; }

.tier-foot {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

/* Requirement / condition callout (what the $100 price depends on) */

.conditions {
    margin-top: 1.5rem;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.conditions h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conditions ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.92rem;
    display: grid;
    gap: 0.4rem;
}

.conditions li strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   "Hand-built, not a plugin" callout — used next to the live demos
   -------------------------------------------------------------------------- */

.demo-note {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid rgba(79, 214, 168, 0.28);
    background: rgba(79, 214, 168, 0.06);
    font-size: 0.88rem;
    line-height: 1.55;
}

.demo-note strong { color: #fff; }
.demo-note p { margin: 0; color: var(--muted); }
.demo-note p + p { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.compare-table caption {
    text-align: left;
    padding: 1rem 1.25rem 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
    padding: 0.95rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--line);
}

.compare-table thead th {
    border-top: 0;
    color: #fff;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
}

.compare-table thead th.us {
    color: #fff;
    background: rgba(77, 144, 255, 0.12);
    box-shadow: inset 0 2px 0 rgba(77, 144, 255, 0.55);
}

.compare-table tbody th {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    width: 22%;
}

.compare-table td { color: var(--muted); }
.compare-table td.us {
    color: var(--text);
    background: rgba(77, 144, 255, 0.05);
}

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th { background-color: rgba(255, 255, 255, 0.045); }
.compare-table tbody tr:hover td.us { background-color: rgba(77, 144, 255, 0.1); }

.yes { color: var(--mint); font-weight: 700; }
.no { color: #e0836f; font-weight: 700; }

/* Honest counter-argument box */

.honest {
    margin-top: 1.5rem;
    padding: 1.6rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(170deg, rgba(22, 30, 44, 0.75), rgba(10, 14, 22, 0.75));
}

.honest h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.honest ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.5rem; }
.honest li { color: var(--muted); font-size: 0.93rem; }
.honest li strong { color: var(--text); }

/* --------------------------------------------------------------------------
   True-cost calculator
   -------------------------------------------------------------------------- */

.calc {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(600px 260px at 100% 0%, rgba(77, 144, 255, 0.1), transparent 70%),
        rgba(255, 255, 255, 0.02);
}

@media (max-width: 860px) {
    .calc { grid-template-columns: 1fr; padding: 1.35rem; }
}

.calc-field { margin-bottom: 1.35rem; }

.calc-field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.calc-field label output {
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1rem;
}

.calc-field .hint {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 26px;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand) var(--fill, 40%), rgba(255, 255, 255, 0.12) var(--fill, 40%));
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--brand);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
}

input[type="range"]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: 999px;
}

.calc-out {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.calc-side {
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.calc-side.us {
    border-color: rgba(77, 144, 255, 0.45);
    background: rgba(77, 144, 255, 0.08);
}

.calc-side h3 {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.calc-side .big {
    display: block;
    color: #fff;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.calc-side .sub {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 0.35rem;
}

.calc-verdict {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(79, 214, 168, 0.32);
    background: rgba(79, 214, 168, 0.08);
    color: var(--text);
    font-size: 0.92rem;
}

.calc-verdict strong { color: #fff; }

.calc-breakdown {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.calc-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Billing toggle (monthly / yearly)
   -------------------------------------------------------------------------- */

.seg {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
}

.seg button {
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.seg button[aria-pressed="true"] {
    background: linear-gradient(140deg, var(--brand), #2f78f5);
    color: #fff;
}

.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.save-pill {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(79, 214, 168, 0.16);
    color: var(--mint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Labs — working demos
   -------------------------------------------------------------------------- */

.lab {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(19, 27, 41, 0.85), rgba(9, 13, 21, 0.88));
    margin-bottom: 1.25rem;
}

.lab-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.lab-head h3 { font-size: 1.12rem; margin: 0; }

.lab-tag {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 144, 255, 0.35);
    background: var(--brand-dim);
    color: #a9caff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lab > p.lab-why {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    max-width: 74ch;
}

.lab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.35rem;
    align-items: start;
}

@media (max-width: 860px) {
    .lab-grid { grid-template-columns: 1fr; }
}

.lab-form { display: grid; gap: 0.85rem; }

.lab-form label {
    display: block;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.lab-form .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.lab-stage {
    min-height: 200px;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(4, 7, 13, 0.6);
}

/* Terminal */

.terminal {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #05080e;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow: hidden;
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4657; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

.term-title {
    margin-left: 0.5rem;
    color: #7b8798;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.term-body {
    padding: 0.9rem 1rem 1.1rem;
    max-height: 340px;
    overflow-y: auto;
    color: #cfe0f5;
    white-space: pre-wrap;
    word-break: break-word;
}

.term-body .cmd { color: #7ee0a8; }
.term-body .dim { color: #6c7a8c; }
.term-body .warn { color: #ffcf6b; }
.term-body .ok { color: #6fe3b4; }

.term-caret::after {
    content: "▋";
    color: #7ee0a8;
    animation: termBlink 1s steps(1) infinite;
}

@keyframes termBlink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .term-caret::after { animation: none; }
}

/* Printable artefacts (door sign, invoice) */

.artefact {
    background: #fff;
    color: #10151d;
    border-radius: 10px;
    padding: 1.5rem;
    font-family: var(--font-sans);
}

.artefact h4 {
    color: #10151d;
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.artefact .meta { color: #5b6675; font-size: 0.82rem; margin-bottom: 1rem; }

.sign {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border: 3px solid #10151d;
    border-radius: 10px;
}

.sign .state {
    display: block;
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
}

.sign .state.open { color: #12805c; }
.sign .state.closed { color: #b3372a; }
.sign .detail { display: block; margin-top: 0.6rem; font-size: 0.95rem; color: #333c49; }
.sign .biz { display: block; margin-top: 1rem; font-size: 1.05rem; font-weight: 700; }

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.doc-table th,
.doc-table td {
    text-align: left;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #dfe4ec;
}

.doc-table th { color: #5b6675; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.doc-table td.num, .doc-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.doc-total { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 0.75rem; font-weight: 800; }

.code-note {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.code-note code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
    font-size: 0.78rem;
}

/* Print: only the artefact, full page, black on white */
@media print {
    body * { visibility: hidden !important; }
    .print-area, .print-area * { visibility: visible !important; }
    .print-area {
        position: absolute !important;
        inset: 0 auto auto 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
    }
    #jmi-sticky-bar, #jmi-text-size, #bg-canvas { display: none !important; }
}

/* Quote calculator: the recurring (care plan) line, injected by quote.js */
.q-monthly {
    margin: 0.6rem 0 0.2rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(79, 214, 168, 0.3);
    background: rgba(79, 214, 168, 0.07);
    display: grid;
    gap: 0.15rem;
}

.q-monthly strong { color: #fff; font-size: 1.05rem; letter-spacing: -0.01em; }
.q-monthly span { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Article / guide pages (guides/*.html)
   -------------------------------------------------------------------------- */

.crumbs-line {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.crumbs-line a { color: var(--muted); text-decoration: none; }
.crumbs-line a:hover { color: #fff; text-decoration: underline; }

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.prose {
    max-width: 72ch;
}

.prose h2 {
    margin: 2.25rem 0 0.7rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.prose h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.05rem;
    color: #fff;
}

.prose p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.72;
}

.prose strong { color: var(--text); font-weight: 600; }

.prose ul,
.prose ol {
    margin: 0 0 1.15rem;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.prose li {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

.prose li strong { color: var(--text); }

.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

.prose blockquote {
    margin: 1.5rem 0;
    padding: 0.9rem 1.25rem;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(77, 144, 255, 0.07);
    color: var(--text);
    font-size: 0.97rem;
}

.prose blockquote p { margin: 0; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.9rem;
}

.prose th,
.prose td {
    padding: 0.6rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.prose th { color: #fff; font-weight: 600; }
.prose td { color: var(--muted); }

.key-point {
    margin: 1.5rem 0;
    padding: 1.15rem 1.3rem;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 144, 255, 0.32);
    background: rgba(77, 144, 255, 0.07);
}

.key-point p { margin: 0; color: var(--text); font-size: 0.96rem; }
.key-point p + p { margin-top: 0.5rem; }

/* Interactive checklist used by the maintenance guide */

.check-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.check-row:hover { border-color: var(--line-2); }

.check-row input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: var(--brand);
}

.check-row span { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.check-row span strong { color: var(--text); font-weight: 600; }
.check-row.done { border-color: rgba(79, 214, 168, 0.35); background: rgba(79, 214, 168, 0.06); }
.check-row.done span { color: var(--text); }

.check-progress {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.92rem;
}

.check-bar {
    flex: 1 1 140px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.check-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--mint));
    transition: width 0.35s ease;
}

@media print {
    .topbar, #jmi-sticky-bar, #jmi-text-size, .cta-band, #bg-canvas { display: none !important; }
    .prose { max-width: 100%; }
    body { background: #fff !important; color: #10151d !important; }
    .prose p, .prose li, .prose td { color: #2a3340 !important; }
    .prose h2, .prose h3, .prose strong, h1 { color: #10151d !important; }
}

/* --------------------------------------------------------------------------
   Example apps (examples.html)
   -------------------------------------------------------------------------- */

.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.4rem;
}

.chip[aria-pressed="true"] {
    color: #fff !important;
    border-color: var(--brand) !important;
    background: rgba(77, 144, 255, 0.2) !important;
}

.chip:disabled { opacity: 0.4; cursor: not-allowed; }

.stack { display: grid; gap: 0.5rem; }

.iv-row {
    display: grid;
    grid-template-columns: 1fr 72px 92px 84px 30px;
    gap: 0.45rem;
    align-items: center;
}

.iv-line {
    text-align: right;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-size: 0.86rem;
}

.iv-x {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

.iv-x:hover { color: #ff9d9d; border-color: rgba(255, 120, 120, 0.4); }

.mn-row {
    display: grid;
    grid-template-columns: 1fr 84px 1fr 30px;
    gap: 0.45rem;
    align-items: center;
}

@media (max-width: 640px) {
    .iv-row { grid-template-columns: 1fr 58px 78px 72px 28px; }
    .mn-row { grid-template-columns: 1fr 72px 30px; }
    .mn-row .mn-note { grid-column: 1 / -1; }
}

.mn-board {
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    font-family: Georgia, 'Times New Roman', serif;
}

.mn-head h3 {
    font-size: 1.5rem;
    text-align: center;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0;
}

.mn-head p {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    margin: 0.3rem 0 1.1rem;
    font-size: 0.86rem;
}

.mn-item { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.55rem 0; }
.mn-item-name { color: var(--text); font-size: 0.98rem; }
.mn-item-name em { display: block; color: var(--muted); font-size: 0.78rem; }
.mn-dots { flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, 0.22); transform: translateY(-3px); }
.mn-item-price { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

.doc-stack { display: grid; gap: 0.9rem; }

.doc-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.doc-row .btn { justify-self: start; }

.doc-label {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.doc-body {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.rv-card { margin-top: 1rem; }

.rv-card-inner {
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px dashed rgba(77, 144, 255, 0.45);
    background: rgba(77, 144, 255, 0.06);
}

.rv-card-thanks { font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0 0 0.5rem; }
.rv-card-body { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.7rem; }
.rv-card-link { color: var(--brand); font-size: 0.85rem; word-break: break-all; margin: 0 0 0.7rem; }
.rv-card-sign { color: var(--muted); font-size: 0.8rem; margin: 0; }

.ga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
}

.ga-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: zoom-in;
    background: rgba(255, 255, 255, 0.03);
}

.ga-grid img { display: block; width: 100%; height: 170px; object-fit: cover; }
.ga-grid figcaption { padding: 0.6rem 0.7rem; color: var(--muted); font-size: 0.8rem; }

.lb {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(4, 7, 12, 0.93);
    display: grid;
    place-items: center;
    padding: 2.5rem 3.4rem 4.2rem;
}

.lb[hidden] { display: none; }

.lb img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lb-btn {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.15rem;
    cursor: pointer;
}

.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.lb-bar {
    position: absolute;
    bottom: 1.1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    display: grid;
    gap: 0.15rem;
}

@media (max-width: 640px) { .lb { padding: 2rem 0.6rem 4.4rem; } }

.code-note pre {
    margin: 0.6rem 0 0;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--line);
    overflow: auto;
    max-height: 300px;
    font-size: 0.76rem;
    line-height: 1.55;
    color: #c9d6e6;
    white-space: pre-wrap;
}

/* One-app printing: JMI_EXAMPLES.printOnly() marks a section .printing */
@media print {
    body[data-print-only] .topbar,
    body[data-print-only] footer,
    body[data-print-only] .cta-band,
    body[data-print-only] .hero,
    body[data-print-only] #jmi-sticky-bar,
    body[data-print-only] #jmi-text-size,
    body[data-print-only] .chat-widget { display: none !important; }

    body[data-print-only] section:not(.printing) { display: none !important; }
    body[data-print-only] .lab-form,
    body[data-print-only] .lab-why,
    body[data-print-only] .cta-row,
    body[data-print-only] .code-note,
    body[data-print-only] #ga-lightbox { display: none !important; }
}
