/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ca-body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #f5f4f0;
    color: #1a1a1a;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Gate (invalid/used token) ─────────────────────────────────────────────── */
.ca-gate {
    max-width: 480px;
    margin: 80px auto;
    padding: 48px 40px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.ca-gate__logo {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 32px;
}
.ca-gate h2 { font-size: 22px; margin-bottom: 16px; }
.ca-gate p  { font-size: 16px; color: #555; line-height: 1.6; }

/* ── Assessment Layout ─────────────────────────────────────────────────────── */
.ca-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.ca-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #188883;
    color: #fff;
}
.ca-header__logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    letter-spacing: .1em;
}
.ca-header__counter {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #fff;
}

/* Progress bar */
.ca-progress {
    height: 4px;
    background: #e0ddd8;
    width: 100%;
}
.ca-progress__bar {
    height: 100%;
    background: #c0392b;
    transition: width .4s ease;
}

/* Main */
.ca-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card */
.ca-card {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 10px;
    padding: 40px 40px 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* Question text */
.ca-question {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 28px;
    color: #1a1a1a;
}

/* Options list */
.ca-options {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Single option */
.ca-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e8e5e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
    user-select: none;
}
.ca-option:hover {
    border-color: #c0392b;
    background: #fdf2f1;
    transform: translateX(2px);
}
.ca-option:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.ca-option--selected {
    border-color: #c0392b;
    background: #fdf2f1;
}

.ca-option__letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0ede8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: background .15s, color .15s;
}
.ca-option--selected .ca-option__letter,
.ca-option:hover .ca-option__letter {
    background: #c0392b;
    color: #fff;
}

.ca-option__text {
    font-size: 16px;
    line-height: 1.45;
    padding-top: 4px;
}

/* Saving indicator */
.ca-saving {
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #888;
    text-align: center;
    min-height: 20px;
}

/* ── Results Layout ────────────────────────────────────────────────────────── */
.ca-results-body { background: #f5f4f0; }

.ca-results-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Results header */
.ca-results-header {
    padding: 40px 40px 32px;
    color: #fff;
    text-align: center;
}
.ca-results-header__logo {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 8px;
}
.ca-results-header__label {
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ca-results-header__name {
    font-size: 28px;
    font-weight: normal;
}

/* Hero */
.ca-hero {
    background: #fff;
    padding: 48px 40px 40px;
    text-align: center;
    border-bottom: 1px solid #eeebe5;
}
.ca-hero__icon { margin-bottom: 12px; }
.ca-hero__icon svg { width: 120px; height: auto; }
.ca-hero__element {
    font-size: 52px;
    font-weight: normal;
    letter-spacing: .02em;
    line-height: 1;
    margin-bottom: 8px;
}
.ca-hero__secondary {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #888;
    margin-bottom: 16px;
}
.ca-hero__tagline {
    font-size: 19px;
    color: #444;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}
.ca-hero__endline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #888;
    margin-top: 16px;
}

/* Sections */
.ca-section {
    background: #fff;
    margin-top: 12px;
    padding: 36px 40px;
}
.ca-section__title {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Score bars */
.ca-score-bars { display: flex; flex-direction: column; gap: 14px; }
.ca-score-bar__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ca-score-bar__label svg { width: 40px; height: auto; }
.ca-score-bar__num { font-weight: 600; }
.ca-score-bar__track {
    height: 10px;
    background: #eeebe5;
    border-radius: 5px;
    overflow: hidden;
}
.ca-score-bar__fill {
    height: 100%;
    border-radius: 5px;
    transition: width .6s ease;
}
.ca-score-bar--primary .ca-score-bar__label { font-weight: 600; }

/* Identity grid */
.ca-identity__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ca-identity__item--full { grid-column: 1 / -1; }
.ca-identity__label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 6px;
}
.ca-identity__value {
    font-size: 18px;
}
.ca-identity__value--quote {
    font-size: 20px;
    line-height: 1.4;
}

/* Weather metaphor */
.ca-weather { margin-bottom: 20px; }
.ca-weather__word {
    font-size: 32px;
    font-weight: normal;
    letter-spacing: .02em;
}
.ca-weather__word--discomfort { color: #888; }

/* Body text */
.ca-body-text {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 24px;
}

/* Word tags */
.ca-wordlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ca-wordlist__tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid;
}
.ca-wordlist__tag--comfort  { background: transparent; }
.ca-wordlist__tag--discomfort { border-color: #ccc; color: #888; background: transparent; }

/* Reframe */
.ca-reframe {
    background: #fafaf8;
    padding: 28px 32px;
}
.ca-reframe__text {
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

/* Listening need */
.ca-listening__text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Secondary element */
.ca-secondary__tag {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 8px;
    border: 2px solid;
    margin-top: 20px;
}
.ca-secondary__icon { font-size: 28px; flex-shrink: 0; }
.ca-secondary__label { font-size: 20px; margin-bottom: 4px; }
.ca-secondary__sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #666;
}

/* Results footer */
.ca-results-footer {
    padding: 32px 40px;
    text-align: center;
    background: #188883;
    color: #fff;
    margin-top: 12px;
}
.ca-results-footer__logo {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ca-results-footer a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #fff;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .ca-card { padding: 28px 20px 24px; }
    .ca-question { font-size: 17px; }
    .ca-option { padding: 14px 16px; }
    .ca-option__text { font-size: 15px; }
    .ca-section, .ca-hero, .ca-results-header { padding-left: 24px; padding-right: 24px; }
    .ca-hero__element { font-size: 40px; }
    .ca-identity__grid { grid-template-columns: 1fr; }
    .ca-results-footer { padding: 24px; }
}
