/* ============================================================
   McKenna Consultants — AI Maturity Assessment
   Brand-aligned stylesheet
   ============================================================ */

:root {
    --brand-dark: #8B1716;
    --brand-mid: #BE2E36;
    --brand-bright: #D10915;
    --brand-gold: #FDD55D;
    --brand-light: #FCE8E9;
    --brand-dark-rgb: 139, 23, 22;
    --brand-mid-rgb: 190, 46, 54;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #717171;
    --surface-white: #ffffff;
    --surface-off: #f9f9f9;
    --surface-border: #e5e5e5;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(var(--brand-dark-rgb), 0.06), 0 1px 2px rgba(var(--brand-dark-rgb), 0.04);
    --shadow-md: 0 4px 12px rgba(var(--brand-dark-rgb), 0.08), 0 2px 4px rgba(var(--brand-dark-rgb), 0.04);
    --shadow-lg: 0 12px 32px rgba(var(--brand-dark-rgb), 0.1), 0 4px 8px rgba(var(--brand-dark-rgb), 0.06);

    /* Pyramid level colors */
    --pyramid-4: #7c3aed;
    --pyramid-3: #2563eb;
    --pyramid-2: #0891b2;
    --pyramid-1: #475569;
    --pyramid-0: #2d2d3d;
}

/* ---- Reset & Base ---- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    padding: 0;
    margin: 0;
    background: var(--surface-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--brand-dark);
    margin: 2.5rem 0 1rem 0;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

a {
    color: var(--brand-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-bright);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--brand-mid);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---- Nav ---- */

.nav {
    background: #ffffff;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 38px;
    width: auto;
}

.nav-cta {
    background: var(--brand-dark);
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
    text-decoration: none;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--brand-dark-rgb), 0.3);
    background: var(--brand-mid);
    color: #ffffff !important;
    text-decoration: none;
}

.nav-cta:active {
    transform: translateY(0);
}

/* ---- Main Content ---- */

.main {
    flex: 1;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
    width: 100%;
    max-width: 1100px;
}

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

.hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 213, 93, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--brand-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(253, 213, 93, 0.2);
}

.hero h1 {
    color: #ffffff;
    font-size: 2.75rem;
    font-weight: 800;
    max-width: 700px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
    margin-top: 1rem;
}

/* ---- Scoring Scale Chips ---- */

.scoring-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

.scoring-scale li {
    background: var(--surface-off);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.scoring-scale li strong {
    font-weight: 600;
    color: var(--brand-mid);
    margin-right: 0.25rem;
}

/* ---- Section Headings ---- */

.section-heading {
    margin: 2.5rem 0 1.5rem 0;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ---- Questions ---- */

.question {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question:hover {
    border-color: rgba(var(--brand-mid-rgb), 0.25);
    box-shadow: var(--shadow-sm);
}

.question-text {
    width: 35%;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.55;
    padding-top: 0.1rem;
}

.question-scores {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.question-scores > label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.925rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.question-scores > label:hover {
    background: var(--brand-light);
}

.question-scores input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.question-scores input[type="radio"]:hover {
    border-color: var(--brand-mid);
}

.question-scores input[type="radio"]:checked {
    border-color: var(--brand-mid);
    background: var(--brand-mid);
    box-shadow: inset 0 0 0 3px #fff;
}

.question-scores input[type="radio"]:focus-visible {
    outline: 2px solid var(--brand-mid);
    outline-offset: 2px;
}

.question-notes {
    width: 30%;
}

.question-notes > textarea {
    width: 100%;
    height: 100%;
    min-height: 80px;
    resize: vertical;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    padding: 0.625rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface-white);
}

.question-notes > textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.question-notes > textarea:focus {
    outline: none;
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 3px rgba(var(--brand-mid-rgb), 0.1);
    background: var(--surface-white);
}

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

.actions-wrapper {
    margin: 2.5rem 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(253, 213, 93, 0.35);
    background: #fee27a;
    text-decoration: none;
    color: var(--brand-dark);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid var(--brand-mid);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brand-mid);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-secondary:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--brand-mid-rgb), 0.15);
    text-decoration: none;
    color: var(--brand-dark);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Legacy button support */
.actions-wrapper > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    letter-spacing: 0.01em;
}

.actions-wrapper > button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(253, 213, 93, 0.35);
    background: #fee27a;
}

.actions-wrapper > button:active {
    transform: translateY(0);
}

.actions-wrapper > button:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
}

.actions-wrapper > button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Results: Header ---- */

.results-header {
    margin-bottom: 2rem;
}

.results-eyebrow {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-mid);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.results-header h1 {
    margin-bottom: 0.25rem;
}

.results-header h2 {
    margin-top: 0;
}

/* ---- Results: Pyramid Level Callout ---- */

.pyramid-level-callout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #0f1729 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.pyramid-level-badge {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--pyramid-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pyramid-level-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pyramid-level-info h3 {
    color: var(--brand-gold);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.35rem 0;
}

.pyramid-level-info p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---- Results: Visual Pyramid ---- */

.pyramid-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #0f1729;
    border-radius: var(--radius-lg);
}

.pyramid-level-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pyramid-bar {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pyramid-bar-number {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.25;
    color: #ffffff;
    min-width: 32px;
    text-align: center;
}

.pyramid-bar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.pyramid-bar-4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); width: 55%; }
.pyramid-bar-3 { background: linear-gradient(135deg, #2563eb, #1d4ed8); width: 68%; }
.pyramid-bar-2 { background: linear-gradient(135deg, #0891b2, #0e7490); width: 80%; }
.pyramid-bar-1 { background: linear-gradient(135deg, #475569, #334155); width: 92%; }
.pyramid-bar-0 { background: linear-gradient(135deg, #2d2d3d, #1e1e2e); border: 1px solid #3e4455; width: 100%; }

.pyramid-achieved .pyramid-bar {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(253, 213, 93, 0.25);
    border: 2px solid var(--brand-gold);
}

.pyramid-achieved .pyramid-bar-number {
    opacity: 1;
    color: var(--brand-gold);
}

.pyramid-inactive {
    opacity: 0.4;
}

.pyramid-bar-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

.pyramid-achieved .pyramid-bar-count {
    color: var(--brand-gold);
}

/* ---- Results: Overall Score Callout ---- */

.overall-score-callout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.score-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 3px solid var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.score-summary h3 {
    color: var(--brand-gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-summary p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.score-summary strong {
    color: #ffffff;
    font-weight: 700;
}

/* ---- Results: Foundation Gap Warning ---- */

.foundation-gap-warning {
    padding: 1rem 1.25rem;
    background: #FFF3CD;
    border: 1px solid #FFECB5;
    border-left: 4px solid #FFC107;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #664D03;
}

/* ---- Results: Progression Advice ---- */

.progression-advice {
    padding: 1rem 1.25rem;
    background: #D1ECF1;
    border: 1px solid #BEE5EB;
    border-left: 4px solid #0DCAF0;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #0C5460;
}

/* ---- Results: Section Divider ---- */

.section-divider {
    height: 1px;
    margin: 2.5rem 0;
    background: linear-gradient(90deg, transparent, var(--brand-mid), transparent);
    opacity: 0.25;
}

/* ---- Results: Chart & Data ---- */

.chart-and-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-wrapper {
    width: 100%;
}

.chart {
    width: 100%;
    border-radius: var(--radius-md);
}

.data-wrapper {
    width: 100%;
}

/* ---- Tables ---- */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface-border);
}

table th {
    background: var(--brand-dark);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
}

table td {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-primary);
}

table tr:nth-child(even) td {
    background: var(--brand-light);
}

table tr:last-child td {
    font-weight: 700;
    color: #ffffff;
    background: var(--brand-dark);
    border-bottom: none;
}

/* ---- Score Color Coding ---- */

.score-value {
    font-weight: 600;
}

.score-low {
    color: var(--brand-bright);
}

.score-mid {
    color: #B8860B;
}

.score-high {
    color: #2E7D32;
}

table tr:last-child .score-value {
    color: #ffffff;
}

/* ---- Recommendations ---- */

.recommendations-wrapper {
    margin-top: 0;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--brand-mid);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: box-shadow 0.2s ease;
}

.recommendation:hover {
    box-shadow: var(--shadow-sm);
}

.recommendation strong {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: var(--brand-dark);
}

.recommendations-wrapper a,
.recommendations-wrapper a:visited {
    color: var(--brand-mid);
    font-weight: 600;
}

.recommendations-wrapper a:hover {
    color: var(--brand-bright);
    text-decoration: underline;
}

/* ---- Email / Send Results ---- */

.send-to-email {
    margin-top: 0;
    padding: 2rem;
    background: var(--surface-off);
    border: 1px solid var(--surface-border);
    border-top: 3px solid var(--brand-mid);
    border-radius: var(--radius-md);
}

.send-to-email h2 {
    margin-top: 0;
}

.email-address-wrapper {
    width: 100%;
}

.email-address-wrapper input[type=text] {
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: 400px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface-white);
}

.email-address-wrapper input[type=text]:focus {
    outline: none;
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 3px rgba(var(--brand-mid-rgb), 0.1);
}

.email-terms-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 1rem;
}

.email-terms-checkbox {
    padding-top: 2px;
}

.email-terms-checkbox input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-mid);
    cursor: pointer;
    margin: 0;
}

.email-terms-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.send-to-email .actions-wrapper {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.validation-error {
    color: var(--brand-bright);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

/* ---- Landing Two-Column Layout ---- */

.landing-layout {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
    align-items: flex-start;
}

.landing-content {
    flex: 1;
    min-width: 0;
}

.landing-form {
    flex: 0 0 400px;
    position: sticky;
    top: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.content-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-section a {
    color: var(--brand-mid);
    text-decoration: underline;
}

.content-section a:hover {
    color: var(--brand-dark);
}

.steps-list {
    margin-top: 0.75rem;
}

.step-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--brand-mid);
    color: var(--surface-white);
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50%;
    margin-top: 0.1rem;
}

.step-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 0;
    margin-bottom: 0.15rem;
}

.step-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.benefits-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 7px;
    height: 7px;
    background: var(--brand-mid);
    border-radius: 50%;
}

/* ---- Contact / Lead Gate ---- */

.gate-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem 3rem;
}

.gate-card {
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 520px;
}

.gate-card h1 {
    font-size: 1.75rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.gate-card p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.gate-card .gate-eyebrow {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-mid);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.form-group label .required {
    color: var(--brand-mid);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.7rem 0.875rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface-white);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-mid);
    box-shadow: 0 0 0 3px rgba(var(--brand-mid-rgb), 0.1);
}

.form-group .validation-error {
    margin-top: 0.25rem;
}

.gate-card .actions-wrapper {
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.gate-card .btn-primary {
    width: 100%;
}

.gate-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* ---- Email Sent / Confirmation ---- */

.confirmation-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--brand-mid);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.confirmation-page h1 {
    color: var(--brand-dark);
    font-size: 2rem;
}

.confirmation-page p {
    font-size: 1.05rem;
    max-width: 450px;
    margin: 0.75rem auto 0;
}

.confirmation-page .actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* ---- Stepper ---- */

.stepper-container {
    margin: 2rem 0 0;
}

.stepper-header {
    position: sticky;
    top: 80px; /* below the nav */
    z-index: 50;
    background: var(--surface-white);
    padding: 1rem 0 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
}

.stepper-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
}

.stepper-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
    text-align: center;
    flex: 1;
}

.stepper-label:hover {
    color: var(--brand-mid);
    background: var(--brand-light);
}

.stepper-label-active {
    color: var(--brand-mid);
    font-weight: 800;
}

.stepper-label-complete {
    color: var(--brand-dark);
}

.stepper-progress {
    width: 100%;
    height: 6px;
    background: var(--surface-border);
    border-radius: 3px;
    overflow: hidden;
}

.stepper-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-mid));
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.stepper-progress-text {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Steps */

.stepper-step {
    display: none;
}

.stepper-step-active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.stepper-step h2 {
    margin-top: 0;
}

/* Step accent banner */
.step-accent {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.step-accent-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-accent-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.step-accent-pyramid { background: linear-gradient(135deg, #0f1729, #1e293b); }
.step-accent-data { background: linear-gradient(135deg, #0891b2, #0e7490); }
.step-accent-governance { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.step-accent-skills { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.step-accent-process { background: linear-gradient(135deg, #d97706, #b45309); }
.step-accent-strategy { background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid)); }
.step-accent-submit { background: linear-gradient(135deg, #059669, #047857); }

/* Review summary on final step */

.stepper-review-summary {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stepper-review-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface-off);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
}

.stepper-review-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-mid);
    flex-shrink: 0;
}

/* Navigation buttons */

.stepper-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
}

.stepper-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    letter-spacing: 0.01em;
}

.stepper-btn:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
}

.stepper-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.stepper-btn-prev {
    background: var(--surface-off);
    color: var(--text-secondary);
    border: 1px solid var(--surface-border);
}

.stepper-btn-prev:hover {
    background: var(--surface-border);
    transform: translateY(-1px);
}

.stepper-btn-next,
.stepper-btn-submit {
    background: var(--brand-gold);
    color: var(--brand-dark);
    margin-left: auto;
}

.stepper-btn-next:hover,
.stepper-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(253, 213, 93, 0.35);
    background: #fee27a;
}

.stepper-btn-next:active,
.stepper-btn-submit:active {
    transform: translateY(0);
}

/* ---- Pyramid Checklist (Assessment Part 1) ---- */

.pyramid-checklist {
    margin: 1.5rem 0 2.5rem 0;
}

.indicator-level {
    margin-bottom: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.indicator-level:hover {
    box-shadow: var(--shadow-sm);
}

.indicator-level-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.indicator-level-1 { background: linear-gradient(135deg, #475569, #334155); }
.indicator-level-2 { background: linear-gradient(135deg, #0891b2, #0e7490); }
.indicator-level-3 { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.indicator-level-4 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.indicator-level-5 { background: linear-gradient(135deg, #9333ea, #7e22ce); }

.indicator-level-number {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.4;
    min-width: 28px;
    text-align: center;
}

.indicator-level-title {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.indicator-level-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.indicator-list {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.indicator-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.indicator-item:hover {
    background: var(--surface-off);
}

.indicator-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-mid);
    cursor: pointer;
    margin-top: 1px;
    flex-shrink: 0;
}

.indicator-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
}

.indicator-text-none {
    font-style: italic;
    color: var(--text-muted);
}

.none-item {
    border-top: 1px solid var(--surface-border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.indicator-item-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.indicator-item-disabled .indicator-text {
    text-decoration: line-through;
}

.indicator-level-invalid {
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 2px rgba(209, 9, 21, 0.15);
}

.indicator-level-validation {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-bright);
    padding: 0.5rem 0.625rem 0.25rem;
}

/* ---- Skip Link ---- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--brand-dark);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 200;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
    color: #fff;
}

/* ---- Footer ---- */

.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    margin-top: auto;
    font-size: 0.875rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo:hover {
    text-decoration: none;
}

.footer-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
}

.footer-parent {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    margin: 0 0 1.25rem 0;
}

.footer-parent a,
.footer-parent a:visited {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    font-weight: 400;
}

.footer-parent a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.625rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

.footer-social a:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

.footer-contact {
    min-width: 240px;
}

.footer-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0 0 1rem 0;
}

.footer-company {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.75rem 0;
}

.footer-address {
    font-style: normal;
    color: rgba(255,255,255,0.55);
    font-size: 0.8125rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.footer-phone,
.footer-email {
    margin: 0 0 0.25rem 0;
    font-size: 0.8125rem;
}

.footer-phone a,
.footer-phone a:visited,
.footer-email a,
.footer-email a:visited {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 400;
}

.footer-phone a:hover,
.footer-email a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.footer-legal {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a,
.footer-links a:visited {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.8);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---- Screen Reader Only ---- */

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

/* ---- About Section ---- */

.about-section {
    background: var(--surface-off);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0 0.5rem 0;
}

.about-section h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.about-section p {
    margin-bottom: 0;
    font-size: 0.95rem;
}
