/* ============================================================
   Brit Cyber Solutions - britcybersol.com
   Light editorial theme. Self-contained: no external fonts/CDNs.

   THEME SWITCHING
   Every colour is a token in :root below. Swapping the eight
   values in the "palette" block restyles the whole site.
   ============================================================ */

:root {
    /* ---- palette ---- */
    --paper:      #ffffff;   /* page background            */
    --paper-2:    #f4f6f9;   /* alternating section bands  */
    --paper-3:    #eaeef4;   /* wells, hover states        */
    --ink:        #0b2545;   /* headings, primary surface  */
    --ink-soft:   #1d3c62;   /* body text on light         */
    --muted:      #5d6f87;   /* secondary text             */
    --accent:     #c8102e;   /* highlight (British red)    */
    --accent-ink: #ffffff;   /* text on accent             */

    /* ---- derived ---- */
    --line:      #dfe5ec;
    --line-soft: #eef1f6;
    --radius:    12px;
    --container: 1160px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 12px rgba(11, 37, 69, .05);
    --shadow-md: 0 10px 34px rgba(11, 37, 69, .10);
    --focus:     0 0 0 3px rgba(200, 16, 46, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--paper);
    color: var(--ink-soft);
    line-height: 1.66;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    z-index: 999;
    border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.25rem); }
h3 { font-size: 1.12rem; }

p { max-width: 68ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }

.lead { color: var(--muted); font-size: 1.06rem; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 650;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
                border-color .16s ease, color .16s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #123258; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #a80d26; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.2); }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand .name { font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.brand .name small {
    display: block; font-size: 0.61rem; font-weight: 650;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.93rem; color: var(--muted); font-weight: 550; position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 650; }
.nav-links a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--accent);
}
.nav-links .btn { padding: 10px 20px; font-size: 0.9rem; }
/* .nav-links a sets a muted colour; button variants must win */
.nav-links a.btn-accent  { color: var(--accent-ink); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-ghost   { color: var(--ink); }
.nav-links .btn::after { display: none; }

.nav-toggle {
    display: none; background: var(--paper); border: 1px solid var(--line);
    border-radius: 8px; width: 42px; height: 40px; color: var(--ink);
    cursor: pointer; font-size: 1.15rem; line-height: 1;
}

/* ---------- hero ---------- */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 76px 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; font-size: 1.12rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* page header for inner pages */
.pagehead { background: var(--ink); color: #fff; padding: 62px 0; }
.pagehead h1 { color: #fff; margin-bottom: 14px; }
.pagehead .lead { color: rgba(255,255,255,.76); max-width: 62ch; }
.pagehead .eyebrow { color: #fff; opacity: .85; }
.pagehead .eyebrow::before { background: var(--accent); }

/* assurance panel beside the hero */
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.panel-head {
    background: var(--ink); color: #fff;
    padding: 16px 22px; font-size: .78rem;
    letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.panel ul { list-style: none; }
.panel ul li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 15px 22px; border-bottom: 1px solid var(--line-soft);
    font-size: .93rem; color: var(--ink-soft);
}
.panel ul li:last-child { border-bottom: 0; }
.panel ul li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2.2; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head h2 { margin-bottom: 12px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd7e3; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }

.card .ico {
    width: 44px; height: 44px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--paper-3);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}
.card .ico svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 1.9; }

.card ul { list-style: none; margin-top: 15px; }
.card ul li { font-size: .9rem; color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 7px; }
.card ul li::before {
    content: ""; position: absolute; left: 2px; top: 10px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .75;
}
.card .foot {
    margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft);
    font-size: .86rem; color: var(--muted);
}
.card .foot strong { color: var(--ink); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stat { text-align: center; padding: 30px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 1.95rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.stat span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-weight: 650; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
    display: flex; gap: 22px; padding: 24px 26px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); box-shadow: var(--shadow-sm);
}
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-size: .95rem; font-weight: 800; color: var(--accent);
    flex-shrink: 0; width: 34px; padding-top: 2px;
}
.step h3 { margin-bottom: 5px; font-size: 1.03rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- cta ---------- */
.cta { background: var(--ink); border-radius: 16px; padding: 54px 44px; text-align: center; color: #fff; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.78); margin: 0 auto 26px; max-width: 52ch; }
.cta .btn-accent { box-shadow: 0 8px 22px rgba(200,16,46,.32); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .73rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: var(--focus);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); background: #fff6f7; }
.field textarea { resize: vertical; min-height: 140px; }
.field .hint { font-size: .78rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; }

.notice { margin-top: 18px; padding: 12px 16px; border-radius: 8px; font-size: .9rem; display: none; }
.notice.ok  { display: block; background: #eef7f1; border: 1px solid #bfe0cc; color: #1c6b3f; }
.notice.err { display: block; background: #fdf0f2; border: 1px solid #f2c2ca; color: var(--accent); }

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.info-card p { color: var(--muted); font-size: .93rem; }
.info-card a { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--line); }
.info-card a:hover { color: var(--accent); border-color: var(--accent); }
.info-card.urgent { border-left: 4px solid var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 26px; }
.footer .brand .name { color: #fff; }
.footer .brand .name small { color: rgba(255,255,255,.55); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 38px; }
.footer h2 { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer ul a:hover { color: #fff; }
.footer .about p { color: rgba(255,255,255,.66); font-size: .92rem; margin-top: 14px; max-width: 40ch; }
.footer-base {
    border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: .83rem; color: rgba(255,255,255,.55);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: 72px 0 auto 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 24px 20px;
        display: none;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
    .nav-links a.active::after { display: none; }
    .nav-links .btn { margin-top: 14px; }

    /* every multi-column layout collapses, including the contact page */
    .grid-2, .grid-3, .grid-4, .stats, .form-grid, .contact-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }

    .section { padding: 58px 0; }
    .hero { padding: 54px 0; }
    .pagehead { padding: 46px 0; }
    .cta { padding: 38px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav, .footer, .cta, .nav-toggle { display: none; }
    body { color: #000; background: #fff; }
}


/* ============================================================
   Hosting & server rental
   ============================================================ */

.plan {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd7e3; }
.plan.featured { border-color: var(--ink); border-width: 2px; }

.plan-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--line-soft); }
.plan-head .tag {
    display: inline-block; font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-ink); background: var(--accent);
    padding: 3px 9px; border-radius: 4px; margin-bottom: 10px;
}
.plan-head h3 { margin-bottom: 4px; }
.plan-head p { color: var(--muted); font-size: .89rem; }

.spec { list-style: none; padding: 20px 26px; flex: 1; }
.spec li {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 8px 0; border-bottom: 1px dashed var(--line-soft);
    font-size: .9rem;
}
.spec li:last-child { border-bottom: 0; }
.spec li span { color: var(--muted); }
.spec li strong { color: var(--ink); font-weight: 650; text-align: right; }

.plan-foot { padding: 18px 26px 24px; border-top: 1px solid var(--line-soft); }
.plan-foot .price { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.plan-foot .btn { width: 100%; }

.addons { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.addons li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .93rem; color: var(--ink-soft);
    padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.addons li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2.2; }

.dc-note {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--paper-3); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px 24px;
}
.dc-note svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2; }
.dc-note p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

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


/* ============================================================
   Packages - bundle cards + capability matrix
   ============================================================ */

.bundle { position: relative; }
.bundle .plan-head { background: var(--paper-2); }
.bundle.featured .plan-head { background: var(--ink); }
.bundle.featured .plan-head h3, .bundle.featured .plan-head p { color: #fff; }
.bundle.featured .plan-head p { opacity: .8; }

.bundle .includes { list-style: none; padding: 20px 26px; flex: 1; }
.bundle .includes li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .9rem; color: var(--ink-soft); padding: 7px 0;
}
.bundle .includes li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.bundle .includes li.muted { color: var(--muted); }
.bundle .includes li.muted svg { stroke: #b8c2ce; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 680px; }
table.matrix th, table.matrix td { padding: 13px 18px; text-align: left; font-size: .91rem; border-bottom: 1px solid var(--line-soft); }
table.matrix thead th { background: var(--ink); color: #fff; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border-bottom: 0; }
table.matrix thead th:not(:first-child) { text-align: center; width: 132px; }
table.matrix tbody td:not(:first-child) { text-align: center; }
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix tbody tr:hover td { background: var(--paper-2); }
table.matrix td.group {
    background: var(--paper-3); font-weight: 700; color: var(--ink);
    font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
}
table.matrix .yes { color: var(--accent); font-weight: 800; }
table.matrix .no  { color: #b8c2ce; }
table.matrix .opt { color: var(--muted); font-size: .8rem; font-weight: 650; }
table.matrix td:first-child { color: var(--ink-soft); }
table.matrix td:first-child small { display: block; color: var(--muted); font-size: .81rem; }


/* ============================================================
   Custom server configurator
   ============================================================ */

.cfg { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
/* grid/flex children default to min-width:auto and refuse to shrink below their
   content width; long <option> labels then overflow narrow viewports */
.cfg, .cfg > *, .cfg-row, .cfg-row > *, .cfg-field, .cfg-summary { min-width: 0; }
.cfg-field select, .cfg-field input { width: 100%; max-width: 100%; }
.cfg-field select { text-overflow: ellipsis; }

.cfg-form {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px;
}
.cfg-group { margin-bottom: 26px; }
.cfg-group:last-child { margin-bottom: 0; }
.cfg-group > h3 {
    font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
    padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.cfg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfg-row.one { grid-template-columns: 1fr; }
.cfg-row + .cfg-row { margin-top: 16px; }

.cfg-field { display: flex; flex-direction: column; gap: 6px; }
.cfg-field label { font-size: .78rem; font-weight: 650; color: var(--ink); }
.cfg-field select, .cfg-field input[type=number] {
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 12px; color: var(--ink-soft); font-family: inherit; font-size: .92rem;
}
.cfg-field select:focus, .cfg-field input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.cfg-field .note { font-size: .76rem; color: var(--muted); }

.cfg-range { display: flex; align-items: center; gap: 12px; }
.cfg-range input[type=range] { flex: 1; accent-color: var(--accent); }
.cfg-range output {
    min-width: 84px; text-align: right; font-weight: 700; color: var(--ink);
    font-size: .95rem; font-variant-numeric: tabular-nums;
}

.cfg-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.cfg-checks label {
    display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
    font-size: .89rem; color: var(--ink-soft); font-weight: 500; padding: 5px 0;
}
.cfg-checks input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }

/* summary */
.cfg-summary {
    position: sticky; top: 92px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.cfg-summary .head {
    background: var(--ink); color: #fff; padding: 16px 22px;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.cfg-summary dl { padding: 14px 22px; margin: 0; }
.cfg-summary dl > div {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: .89rem;
}
.cfg-summary dl > div:last-child { border-bottom: 0; }
.cfg-summary dt { color: var(--muted); }
.cfg-summary dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; }

.cfg-totals { background: var(--paper-2); border-top: 1px solid var(--line); padding: 16px 22px; }
.cfg-totals div { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; }
.cfg-totals b { color: var(--ink); }
.cfg-actions { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cfg-actions .btn { width: 100%; }
.cfg-actions .price { font-size: .82rem; color: var(--muted); margin-bottom: 12px; text-align: center; }

@media (max-width: 1000px) {
    .cfg { grid-template-columns: 1fr; }
    .cfg-summary { position: static; }
}
@media (max-width: 640px) {
    .cfg-row, .cfg-checks { grid-template-columns: 1fr; }
}


/* ============================================================
   Utilities - replace inline style attributes so the page
   satisfies a strict CSP (style-src 'self', no unsafe-inline)
   ============================================================ */
.u-mt-sm   { margin-top: 6px; font-size: .85rem; }
.u-mt-md   { margin-top: 22px; }
.u-mt-lg   { margin-top: 26px; }
.u-mb-lg   { margin-bottom: 28px; }
.u-pad-lg  { padding: 32px; }
.u-center  { justify-content: center; }
.u-link    { color: var(--accent); font-weight: 650; border-bottom: 1px solid var(--accent); }
.u-link:hover { color: var(--ink); border-color: var(--ink); }
.u-error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.u-error-page .lead { margin: 14px auto 28px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
