/* ==========================================================================
   Seriously Client Centric — design system
   Shared by every page. Report-only components live in results.css.
   ========================================================================== */

:root {
    /* Brand */
    /* Brand style guide, November 2026 */
    --hero: #1D71C5;                               /* Primary Blue */
    --hero-deep: #175FA8;
    --aqua: #1FBFAE;                               /* accent only */
    --pinstripe: rgba(255, 255, 255, .055);        /* fine white hairline, kept subtle */
    --navy-1: #12233F;
    --navy-2: #2A4A78;
    /* Hero: deep navy to primary blue */
    --hero-gradient: linear-gradient(115deg, #0B3059 0%, #103B6A 45%, #0B5594 75%, #1D71C5 100%);
    /* Deep navy, dark to light: feature panels */
    --navy-gradient: linear-gradient(135deg, #12233F 0%, #1A3259 45%, #2A4A78 100%);
    /* Turquoise to green: CTA arrow, export button */
    --accent-gradient: linear-gradient(90deg, #1FBBB6 0%, #31B99E 50%, #4BB260 100%);
    --ink: #12305A;                                /* headings, strong text */
    --ink-deep: #10335C;                           /* footer, solid navy cards */
    --text: #2F3F57;                               /* body copy: dark enough to read at a glance */
    --muted: #56657B;
    --page: #F3F6FB;
    --surface: #FFFFFF;
    --line: #D2DBE8;
    --line-strong: #B3C1D5;
    --tint: #E7EEF8;                               /* pale blue wells */

    /* Semantic */
    --leak: #C4521B;
    --reach: #57A639;
    --leak-text: #A8431A;
    --reach-text: #3C7D22;
    --danger: #B93A2B;

    /* Type */
    --font-display: Candara, "Cabin", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;

    /* Shape & motion */
    --radius: 12px;
    --radius-sm: 10px;
    --shell: 1160px;
    --gutter: clamp(20px, 5vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow-card: 0 1px 2px rgba(18, 48, 90, .05), 0 10px 22px -18px rgba(18, 48, 90, .2);
    --shadow-navy: 0 12px 24px -18px rgba(18, 44, 75, .5);

    /* Bootstrap reads these for everything it styles */
    --bs-body-font-family: var(--font-body);
    --bs-font-sans-serif: var(--font-body);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--page);
    --bs-link-color: var(--hero);
    --bs-link-color-rgb: 28, 113, 196;
    --bs-link-hover-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.scc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.scc strong, .scc b { font-weight: 600; color: var(--ink); }
.scc button, .scc input, .scc select, .scc textarea, .scc optgroup { font-family: var(--font-body); }

.scc h1, .scc h2, .scc h3, .scc h4, .scc h5, .scc h6,
.scc .h1, .scc .h2, .scc .h3, .scc .h4, .scc .h5, .scc .h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.012em;
    line-height: 1.15;
    text-wrap: balance;
}
/* Not buttons: a link styled as a button keeps the button's own colours. */
.scc a:where(:not(.btn)) { color: var(--hero); text-decoration: none; text-underline-offset: 3px; }
.scc a:where(:not(.btn)):hover { color: var(--ink); text-decoration: underline; }
.scc :focus-visible { outline: 2px solid var(--hero); outline-offset: 3px; border-radius: 6px; }

.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Small tracked label that sits above headings and inside cards */
.overline {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--hero);
    margin: 0;
}

/* ── Pinstripe: the hero gradient under a fine white 45° diagonal ─────── */
.pinstripe { position: relative; background: var(--hero-gradient); color: #fff; overflow: hidden; isolation: isolate; }
.pin-layer {
    position: absolute; inset: -40% 0; z-index: -1; pointer-events: none;
    background-image: repeating-linear-gradient(-45deg, var(--pinstripe) 0 1px, transparent 1px 12px);
    will-change: translate;
}
/* ── Header / hero ────────────────────────────────────────────────────── */
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem 1.5rem; }
.scc .brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
/* Large enough that the lettering around the mark can be read */
.brand img { width: 96px; height: 96px; display: block; }
.scc .brand:hover { color: #fff; text-decoration: none; }
.bar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-left: auto; }

/* Simple pages are one centred column: title above, card below. */
.page-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(6.5rem, 12vw, 9rem); text-align: center; }
.page-hero .overline { color: rgba(255, 255, 255, .92); }
.scc .page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: .7rem 0 0; letter-spacing: -.02em; }
.page-hero p:not(.overline) { color: #fff; font-size: 1.25rem; margin: 1rem auto 0; max-width: 40rem; }

/* Content card that rides up over the hero's bottom edge */
.page-body { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.page-card {
    position: relative; z-index: 2;
    margin-top: clamp(-6.5rem, -9vw, -4.5rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: clamp(1.5rem, 4vw, 3rem);
}
.page-card--narrow { max-width: 46rem; margin-inline: auto; }
.page-card--center { text-align: center; }
.page-card--center p { max-width: 32rem; margin-inline: auto; }
.page-card h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.page-card > :last-child { margin-bottom: 0; }

/* Confirmation mark: a green tick in a pale ring */
.tick {
    width: 76px; height: 76px; border-radius: 50%; margin: .25rem auto 1.5rem;
    display: grid; place-items: center; color: var(--reach-text);
    background: #EAF5E5; box-shadow: 0 0 0 10px rgba(87, 166, 57, .09);
}
.tick svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html.anim .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick-draw .6s var(--ease) .55s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html.anim .tick path { animation: none; stroke-dashoffset: 0; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.scc .btn { font-family: var(--font-body); font-weight: 600; border-radius: 999px; }
.scc .btn-brand, .scc .btn-primary {
    --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--hero); --bs-btn-hover-border-color: var(--hero); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--hero-deep); --bs-btn-active-border-color: var(--hero-deep); --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 28, 113, 196;
    padding: .78rem 1.9rem;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), translate .25s var(--ease), box-shadow .25s var(--ease);
}
.scc .btn-brand:hover, .scc .btn-primary:hover { translate: 0 -2px; box-shadow: 0 14px 24px -14px rgba(18, 48, 90, .7); text-decoration: none; }
.scc .btn-brand:active { translate: 0 0; }

/* Translucent pill used on the blue header */
.btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 600 .875rem/1 var(--font-body); color: #fff; cursor: pointer;
    background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 999px; padding: .6rem 1.15rem;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.btn-ghost.is-on { background: rgba(255, 255, 255, .3); }
.btn-ghost:focus-visible { outline-color: #fff; }
/* Export: the turquoise-to-green accent, navy text for contrast */
.btn-export { background: var(--accent-gradient); border-color: transparent; color: #0B2540; font-weight: 700; }
.btn-export:hover { background: var(--accent-gradient); border-color: #fff; filter: brightness(1.06); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.scc .form-label, .field-label { font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .35rem; }
.scc .form-control, .scc .form-select {
    font-family: var(--font-body); font-weight: 400; color: var(--ink);
    min-height: 3rem; padding: .65rem .95rem;
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.scc textarea.form-control { min-height: 7rem; }
.scc .form-control::placeholder { color: #7C8AA0; font-weight: 400; }
.scc .form-control:focus, .scc .form-select:focus { border-color: var(--hero); box-shadow: 0 0 0 .22rem rgba(28, 113, 196, .16); }
.scc .form-control.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 .2rem rgba(185, 58, 43, .12); background-image: none; }
.scc .form-check-input { border-color: var(--line-strong); }
.scc .form-check-input:checked { background-color: var(--hero); border-color: var(--hero); }
.scc .text-danger { color: var(--danger) !important; font-weight: 400; }
.scc .text-secondary, .scc .text-muted { color: var(--muted) !important; }
.scc .text-brand { color: var(--hero) !important; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .9); font-size: .9375rem; font-weight: 400; }
.site-footer .shell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.5rem 3rem; padding-block: 2.2rem 2.4rem; }
.footer-contact { text-align: left; }
.site-footer p { margin: 0 0 .5rem; }
.scc .site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.scc .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.6rem; }
/* LinkedIn follow: white pill, navy text, the official mark */
.scc .site-footer .follow-pill {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
    background: #fff; color: #1A3259; border-radius: 999px; padding: .5rem 1.25rem .5rem 1rem;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    transition: translate .25s var(--ease), box-shadow .25s var(--ease);
}
.scc .site-footer .follow-pill:hover { color: #1A3259; text-decoration: none; translate: 0 -2px; box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .6); }
.follow-pill img { width: 22px; height: auto; display: block; }
@media screen and (max-width: 820px) {
    .site-footer .shell { grid-template-columns: minmax(0, 1fr); }
    .footer-contact { text-align: left; }
    .footer-side { align-items: flex-start; }
    .footer-links { justify-content: flex-start; }
}

/* Long legal copy */
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin-bottom: 1rem; }
.legal p { margin-bottom: .8rem; }

/* ── Entrance + scroll reveal ─────────────────────────────────────────── */
@keyframes scc-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
html.anim .enter { animation: scc-rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }

html.anim .reveal {
    opacity: 0; transform: translate3d(0, 30px, 0);
    transition:
        opacity .8s var(--ease) calc(var(--i, 0) * 70ms),
        transform .9s var(--ease) calc(var(--i, 0) * 70ms),
        translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
html.anim .reveal.in { opacity: 1; transform: none; }
[data-parallax], [data-parallax-scroll] { will-change: translate; }

@media (prefers-reduced-motion: reduce) {
    .enter { animation: none; }
    html.anim .reveal { opacity: 1; transform: none; transition: none; }
    [data-parallax], [data-parallax-scroll], .pin-layer { translate: none !important; }
}

/* ── Questionnaire ────────────────────────────────────────────────────── */
.page-questionnaire .site-hero { position: sticky; top: 0; z-index: 1020; box-shadow: 0 10px 30px -18px rgba(18, 48, 90, .8); }
.page-questionnaire .site-bar { padding-block: .9rem .7rem; }
.page-questionnaire .brand img { width: 72px; height: 72px; }
.page-questionnaire .page-body { padding-top: clamp(1.5rem, 4vw, 3rem); }

.q-progress { margin-left: auto; min-width: 170px; width: min(300px, 44vw); }
.q-progress-head { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: .4rem; }
.scc .q-progress .text-brand { color: #fff !important; }
.scc .q-progress .progress { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.scc .q-progress .progress-bar { background: #fff; border-radius: 6px; transition: width .5s var(--ease); }

.q-intro { margin-bottom: 1.75rem; }
.scc .q-intro h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .5rem 0 .5rem; }
.q-intro p:not(.overline) { margin: 0; max-width: 46rem; font-size: 1.25rem; color: var(--ink); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 1.5rem 1.5rem 1.75rem; }
.scc .q-card h2 { font-size: 1.5rem; margin: 0 0 .25rem; }
.q-card-note { margin: 0 0 1.25rem; font-size: 1.0625rem; }

.scc .accordion-brand { --bs-accordion-bg: transparent; --bs-accordion-border-width: 0; }
.scc .accordion-brand .accordion-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) !important;
    overflow: hidden; transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.scc .accordion-brand .accordion-item:has(.accordion-collapse.show) { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.scc .accordion-brand .accordion-button {
    font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink);
    background: transparent; box-shadow: none; padding: 1.15rem 1.5rem;
}
.scc .accordion-brand .accordion-button:not(.collapsed) { color: var(--ink); background: transparent; box-shadow: inset 0 -1px 0 var(--line); }
.scc .accordion-brand .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2312305A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.scc .accordion-brand .accordion-body { padding: .5rem 1.5rem 1.5rem; }
/* The script writes a "✓" glyph into the badge; it is hidden and the tick is
   drawn as an image so it sits dead centre in every font. */
.accordion-item.is-complete .accordion-button .done-badge {
    flex: none; display: inline-block; margin-left: .75rem;
    width: 24px; height: 24px; border-radius: 50%; font-size: 0; line-height: 0;
    background: var(--reach) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6.5 12.5l3.6 3.6 7.4-8'/%3e%3c/svg%3e") center / 16px 16px no-repeat;
}
.accordion-item.flash-complete { border-color: var(--reach) !important; }

.question-block { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.question-block:last-child { border-bottom: 0; padding-bottom: .25rem; }
.question-block p { color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; font-weight: 600 !important; }
/* Section heading: number and name, with what the phase covers beside it */
.sec-name { flex: none; }
.sec-desc { margin-left: .9rem; font-family: var(--font-body); font-weight: 400; font-size: 1.125rem; color: var(--text); }

.seg { display: flex; gap: .6rem; flex-wrap: wrap; }
.seg .seg-thumb { display: none !important; }
.seg .seg-btn {
    flex: 1 1 0; cursor: pointer; text-align: center;
    font: 600 1.125rem/1.2 var(--font-body); color: var(--ink);
    background: #fff; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .75rem 1rem;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), translate .2s var(--ease);
}
.seg .seg-btn:hover { border-color: var(--hero); color: var(--hero); translate: 0 -1px; }
.seg .seg-btn.active, .seg .seg-btn[aria-pressed="true"] {
    background: var(--navy-gradient); border-color: var(--navy-1); color: #fff;
}
.sr-only-radio { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }
.scc .modal-content { border: 0; border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(18, 48, 90, .6); }
.scc .modal-header { border: 0; align-items: flex-start; padding: 2rem 2rem 0; }
.scc .modal-title { font-size: 1.6rem; margin-top: .4rem; }
.scc .modal-header .btn-close { margin: -.25rem -.5rem 0 auto; }
.scc .modal-body { padding: 1rem 2rem 1.25rem; }
.scc .modal-footer { border: 0; padding: 0 2rem 2rem; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.scc .modal-footer > * { margin: 0; }
.intro-points { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.intro-points li { display: flex; gap: .7rem; align-items: baseline; background: var(--page); border-radius: var(--radius-sm); padding: .7rem .9rem; color: var(--ink); font-weight: 400; font-size: 1.0625rem; }
.intro-lede { margin: 0; font-size: 1.125rem; color: var(--ink); }
.intro-points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--hero); translate: 0 -2px; }
.scc .modal-footer .form-check { font-size: 1.0625rem; color: var(--ink); }
.scc .modal-footer .form-check-input { width: 1.25em; height: 1.25em; margin-top: .15em; border-width: 1.5px; border-color: var(--ink); }
.scc .modal-footer .form-check-label { padding-left: .4rem; }
.scc .modal-footer .form-check a { text-decoration: underline; }
.scc .btn-brand:disabled, .scc .btn-brand.disabled { opacity: .45; translate: none; box-shadow: none; }

/* Primary action with the brand arrow: navy pill, arrow in an aqua disc */
.scc .btn-arrow { display: inline-flex; align-items: center; gap: .9rem; padding: .6rem .7rem .6rem 1.6rem; font-size: 1.125rem; font-weight: 700; }
.btn-arrow i { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent-gradient); }
.btn-arrow i svg { width: 1rem; height: 1rem; fill: none; stroke: #0B2540; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-rule { border: 0; border-top: 1px solid var(--line); margin: 2rem 0 1.25rem; opacity: 1; }
.card-help { margin: 0; font-size: 1.0625rem; color: var(--text); }
.scc .card-help a { text-decoration: underline; }
.scc .page-card h2.card-title { font-size: 1.5rem; margin: 0 0 .75rem; }
.card-quiet { color: var(--text); }

@media screen and (max-width: 576px) {
    .seg { flex-direction: column; }
    .brand img { width: 76px; height: 76px; }
    .page-questionnaire .brand img { width: 64px; height: 64px; }
    .site-bar { padding-block: 1.5rem 1.25rem; }
    .page-questionnaire .site-bar { padding-block: .7rem; }
    .sec-desc { display: block; margin: .15rem 0 0; }
}
.seg .seg-btn.active:hover, .seg .seg-btn[aria-pressed="true"]:hover { color: #fff; border-color: var(--navy-1); }
.btn-ghost:disabled { opacity: .7; cursor: progress; }
