:root {
    --ink: #101816;
    --ink-soft: #34423e;
    --paper: #f5f3eb;
    --white: #fff;
    --mint: #b9f6cf;
    --mint-strong: #64df95;
    --acid: #c8ff68;
    --yellow: #ffdc68;
    --coral: #ff9c8f;
    --blue: #94c9ff;
    --purple: #aaa5ff;
    --line: rgba(16, 24, 22, .14);
    --shadow: 0 24px 70px rgba(16, 24, 22, .12);
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 243, 235, .9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    gap: .7rem;
    align-items: center;
    width: max-content;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand strong {
    font-size: 1.02rem;
    letter-spacing: -.02em;
}

.brand small {
    margin-top: .14rem;
    color: #68736e;
    font-size: .68rem;
}

.nav-shell nav,
footer nav {
    display: flex;
    gap: 1.6rem;
}

.nav-shell nav a,
footer nav a {
    color: #42504b;
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

.nav-account {
    justify-self: end;
    padding: .65rem .95rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 6rem;
    background:
        linear-gradient(rgba(16, 24, 22, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 22, .035) 1px, transparent 1px),
        var(--paper);
    background-size: 46px 46px;
}

.hero-glow {
    position: absolute;
    top: 80px;
    right: 8%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(200, 255, 104, .28);
    filter: blur(3px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.eyebrow {
    display: flex;
    gap: .6rem;
    align-items: center;
    margin: 0 0 1.25rem;
    color: #35604b;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: #33865a;
}

.eyebrow-dark {
    color: #5c6863;
}

.eyebrow-mint {
    color: var(--mint);
}

.eyebrow-mint > span {
    background: var(--mint);
}

.hero h1 {
    margin: 0;
    font-size: clamp(4rem, 7.2vw, 7rem);
    font-weight: 830;
    letter-spacing: -.078em;
    line-height: .88;
}

.hero h1 em {
    color: #2b764f;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.hero-lede {
    max-width: 650px;
    margin: 2rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.hero-actions {
    display: flex;
    gap: .8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    gap: .7rem;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 820;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary,
.button-dark {
    background: var(--ink);
    box-shadow: 0 13px 32px rgba(16, 24, 22, .18);
    color: var(--white);
}

.button-quiet {
    border-color: var(--line);
    background: rgba(255, 255, 255, .58);
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.2rem;
    margin: 1.4rem 0 0;
    padding: 0;
    color: #5d6964;
    font-size: .75rem;
    list-style: none;
}

.trust-list span {
    color: #268250;
    font-weight: 900;
}

.hero-console {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 26px;
    background:
        radial-gradient(circle at 80% 10%, rgba(200, 255, 104, .16), transparent 30%),
        var(--ink);
    box-shadow: var(--shadow);
    color: var(--white);
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #9baba4;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .68rem;
    letter-spacing: .09em;
}

.console-top i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 6px rgba(200, 255, 104, .1);
}

.console-score {
    display: flex;
    gap: 1.3rem;
    align-items: end;
    padding: 2rem 1.5rem 1.6rem;
}

.console-score > span {
    color: var(--acid);
    font-family: Georgia, serif;
    font-size: clamp(5rem, 9vw, 7.5rem);
    letter-spacing: -.08em;
    line-height: .72;
}

.console-score div {
    display: flex;
    flex-direction: column;
}

.console-score strong {
    font-size: 1.05rem;
}

.console-score small {
    color: #93a29c;
}

.console-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.console-stats div {
    display: flex;
    min-height: 95px;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.console-stats div:last-child {
    border: 0;
}

.console-stats span {
    color: var(--mint);
    font-size: 1.8rem;
    font-weight: 850;
}

.console-stats small {
    color: #97a59f;
    font-size: .68rem;
}

.console-line {
    display: flex;
    gap: .75rem;
    align-items: center;
    min-height: 85px;
    padding: 1.1rem 1.5rem;
}

.console-line span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--yellow);
}

.console-line p {
    margin: 0;
    color: #cad2cf;
    font-size: .82rem;
}

.section {
    padding: 7rem 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.1fr .7fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3rem;
}

.section-heading h2,
.mastery-copy h2,
.lab-copy h2,
.explain-grid h2,
.proof-vault h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(2.7rem, 4.6vw, 4.7rem);
    font-weight: 810;
    letter-spacing: -.065em;
    line-height: .98;
}

.section-heading > p {
    margin: 0;
    color: #5d6964;
}

.mission-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 1rem;
}

.mission-controls,
.mission-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .67);
}

.mission-controls {
    padding: 1.4rem;
}

.mission-controls > label,
.mission-controls legend {
    display: block;
    margin-bottom: .65rem;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mission-controls select {
    width: 100%;
    min-height: 48px;
    padding: 0 .8rem;
    border: 1px solid #cfd5d1;
    border-radius: 10px;
    background: var(--white);
    font-weight: 750;
}

.mission-controls fieldset {
    margin: 1.5rem 0;
    padding: 0;
    border: 0;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
}

.time-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-options span {
    display: grid;
    min-height: 45px;
    place-items: center;
    border: 1px solid #d1d6d3;
    border-radius: 10px;
    background: var(--white);
    font-size: .75rem;
    font-weight: 800;
}

.time-options input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .3rem;
    margin-top: 1.5rem;
}

.week-strip div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .25rem;
    align-items: center;
    color: #7a847f;
    font-size: .62rem;
    font-weight: 850;
}

.week-strip i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #d4d9d6;
    border-radius: 50%;
    background: var(--white);
    font-style: normal;
}

.week-strip .is-partial i {
    border-color: #d4ae3a;
    background: #fff7d7;
    color: #725b12;
}

.week-strip .is-complete i {
    border-color: #62c484;
    background: #e5f8ec;
    color: #28794a;
}

.week-strip .is-today span {
    color: var(--ink);
}

.control-note {
    margin: 1.2rem 0 0;
    color: #6d7772;
    font-size: .72rem;
}

.weekly-challenge {
    display: grid;
    grid-template-columns: 1fr minmax(220px, .45fr);
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(200, 255, 104, .28);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 12%, rgba(200, 255, 104, .12), transparent 32%),
        var(--ink);
    color: #fff;
}

.weekly-challenge > div:first-child > span {
    color: var(--acid);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.weekly-challenge h3 {
    margin: .25rem 0;
    font-size: 1.2rem;
}

.weekly-challenge p {
    margin: 0;
    color: #96a69e;
    font-size: .72rem;
}

.weekly-progress strong {
    display: block;
    color: #dce5e1;
    font-size: .72rem;
    text-align: right;
}

.weekly-progress strong b {
    color: var(--acid);
    font-family: Georgia, serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.weekly-progress > div {
    height: 8px;
    overflow: hidden;
    margin: .5rem 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.weekly-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--acid);
    transition: width .25s ease;
}

.weekly-progress small {
    display: block;
    color: #98a8a0;
    font-size: .62rem;
    text-align: right;
}

.mission-card {
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 20px 55px rgba(16, 24, 22, .08);
}

.mission-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.7rem;
    border-bottom: 1px solid var(--line);
}

.mission-card-head span {
    color: #68736e;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mission-card-head h3 {
    margin: .25rem 0 0;
    font-size: 1.45rem;
    letter-spacing: -.04em;
}

.mission-card-head > strong {
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #eef8df;
    color: #3f671d;
    font-size: .78rem;
}

.mission-steps {
    margin: 0;
    padding: 0 1.7rem;
    list-style: none;
}

.mission-steps li {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.45rem 0;
    border-bottom: 1px solid var(--line);
}

.mission-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--paper);
    color: #53615b;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
}

.mission-steps li.is-complete .mission-number {
    background: #dcf7e5;
    color: #217245;
    font-family: inherit;
    font-style: normal;
}

.mission-step-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mission-step-meta {
    color: #58806b;
    font-size: .63rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mission-step-copy strong {
    margin-top: .18rem;
    font-size: 1rem;
}

.mission-step-copy p {
    margin: .28rem 0 0;
    color: #65716b;
    font-size: .78rem;
}

.mission-step-actions {
    display: flex;
    min-width: 125px;
    flex-direction: column;
    gap: .45rem;
}

.mission-step-actions a,
.mission-step-actions button {
    padding: .52rem .65rem;
    border: 1px solid #d5dad7;
    border-radius: 9px;
    background: var(--white);
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.mission-step-actions button {
    background: var(--ink);
    color: var(--white);
}

.mission-steps li.is-complete .mission-step-actions button {
    border-color: #aad9b9;
    background: #e6f8ec;
    color: #277348;
}

.mission-footer {
    padding: 1.2rem 1.7rem 1.4rem;
}

.mission-meter {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #e8ebe8;
}

.mission-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3cc16d, var(--acid));
    transition: width .3s ease;
}

.mission-footer p {
    margin: .7rem 0 0;
    color: #68736e;
    font-size: .74rem;
}

.mastery-section {
    background: var(--ink);
    color: var(--white);
}

.mastery-grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(3rem, 9vw, 8rem);
}

.mastery-copy {
    align-self: start;
}

.mastery-copy > p:not(.eyebrow) {
    margin: 1.5rem 0;
    color: #a9b5b0;
}

.mastery-copy a {
    color: var(--acid);
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
}

.mastery-board {
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.mastery-item {
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.mastery-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mastery-top div {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.mastery-top span {
    color: #8e9e97;
    font-family: Georgia, serif;
    font-style: italic;
}

.mastery-top b {
    color: var(--mint);
    font-size: .85rem;
}

.mastery-meter {
    overflow: hidden;
    height: 8px;
    margin-top: .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.mastery-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--mint);
}

.mastery-ai .mastery-meter span {
    background: var(--acid);
}

.mastery-interview .mastery-meter span {
    background: var(--coral);
}

.mastery-evidence .mastery-meter span {
    background: var(--blue);
}

.mastery-item p {
    margin: .45rem 0 0 2.1rem;
    color: #8e9d97;
    font-size: .72rem;
}

.calibration-section {
    background: #fff;
}

.lab-grid,
.explain-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
}

.lab-copy > p:not(.eyebrow),
.explain-grid > div > p:not(.eyebrow) {
    margin: 1.4rem 0;
    color: #65716c;
}

.calibration-summary {
    margin-top: 2rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.calibration-summary > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calibration-summary > div:first-child span {
    color: #6b7671;
    font-size: .7rem;
}

.calibration-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    margin-top: 1rem;
}

.calibration-numbers span {
    display: flex;
    flex-direction: column;
    color: #75807b;
    font-size: .63rem;
}

.calibration-numbers b {
    color: var(--ink);
    font-size: 1.35rem;
}

.challenge-card,
.explain-card,
.proof-vault,
.coach-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 20px 55px rgba(16, 24, 22, .08);
}

.challenge-card {
    padding: clamp(1.4rem, 4vw, 2.3rem);
}

.challenge-kicker,
.coach-label {
    color: #4d755f;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.challenge-card h3 {
    margin: .7rem 0 1.5rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -.04em;
    line-height: 1.25;
}

.confidence-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.confidence-row > span {
    font-size: .72rem;
    font-weight: 850;
}

.confidence-row div {
    display: flex;
    gap: .35rem;
}

.confidence-row button {
    padding: .42rem .6rem;
    border: 1px solid #d2d8d4;
    border-radius: 999px;
    background: #fff;
    font-size: .66rem;
    font-weight: 800;
}

.confidence-row button[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.answer-grid {
    display: grid;
    gap: .6rem;
    margin-top: 1rem;
}

.answer-grid button {
    display: flex;
    gap: .75rem;
    align-items: center;
    width: 100%;
    padding: .8rem;
    border: 1px solid #d8ddd9;
    border-radius: 11px;
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-align: left;
}

.answer-grid button span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: #eeefeb;
    font-size: .68rem;
}

.answer-grid button:disabled {
    cursor: default;
    opacity: .62;
}

.answer-grid button.is-correct {
    border-color: #5bc180;
    background: #e9f9ee;
    color: #206b41;
    opacity: 1;
}

.answer-grid button.is-wrong {
    border-color: #e99589;
    background: #fff0ed;
    color: #8a382f;
    opacity: 1;
}

.challenge-feedback {
    min-height: 58px;
    margin-top: 1rem;
    padding: .8rem;
    border-radius: 10px;
    background: var(--paper);
    color: #66716c;
    font-size: .73rem;
}

.challenge-feedback.is-success {
    background: #e8f8ed;
    color: #226c42;
}

.challenge-feedback.is-warning {
    background: #fff1ed;
    color: #864137;
}

.next-question {
    margin-top: .8rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .72rem;
    font-weight: 850;
}

.next-question[hidden] {
    display: none;
}

.explain-section {
    background: var(--ink);
    color: var(--white);
}

.privacy-callout {
    display: flex;
    max-width: 480px;
    flex-direction: column;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(185, 246, 207, .3);
    border-radius: 14px;
    background: rgba(185, 246, 207, .06);
}

.privacy-callout strong {
    color: var(--mint);
}

.privacy-callout span {
    margin-top: .25rem;
    color: #a7b4ae;
    font-size: .75rem;
}

.explain-card {
    padding: 1.5rem;
    color: var(--ink);
}

.explain-card > label,
.explain-card legend {
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.explain-card textarea {
    width: 100%;
    margin-top: .6rem;
    padding: 1rem;
    resize: vertical;
    border: 1px solid #ccd3ce;
    border-radius: 13px;
    background: #fafaf7;
    line-height: 1.55;
}

.draft-meta {
    display: flex;
    justify-content: space-between;
    margin-top: .4rem;
    color: #77817c;
    font-size: .65rem;
}

.explain-card fieldset {
    display: grid;
    gap: .55rem;
    margin: 1.2rem 0;
    padding: 1rem;
    border: 1px solid #d9ddda;
    border-radius: 12px;
}

.explain-card fieldset label {
    display: flex;
    gap: .55rem;
    align-items: center;
    font-size: .75rem;
    font-weight: 650;
}

.button-proof {
    width: 100%;
    background: var(--acid);
}

.proof-status {
    margin: .7rem 0 0;
    color: #6a746f;
    font-size: .68rem;
}

.proof-status.is-warning {
    color: #9a4d2d;
}

.proof-status.is-success {
    color: #217044;
}

.proof-section {
    background: #ebe9df;
}

.proof-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1rem;
}

.proof-vault,
.coach-card {
    min-height: 520px;
    padding: clamp(1.6rem, 4vw, 3rem);
}

.vault-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 3.5rem;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    font-size: 1.6rem;
}

.proof-vault > p:not(.eyebrow) {
    max-width: 620px;
    color: #64706a;
}

.vault-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin: 2rem 0;
}

.vault-stats div {
    display: flex;
    flex-direction: column;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.vault-stats strong {
    font-size: 1.65rem;
}

.vault-stats span {
    color: #6f7974;
    font-size: .65rem;
}

.coach-card {
    background:
        radial-gradient(circle at 90% 5%, rgba(200, 255, 104, .14), transparent 30%),
        var(--ink);
    color: var(--white);
}

.coach-card h3 {
    margin: .9rem 0;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.coach-card > p {
    color: #aab5b0;
    font-size: .85rem;
}

.coach-card pre {
    overflow: auto;
    max-height: 230px;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: rgba(0, 0, 0, .22);
    color: #d9e2de;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .68rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.coach-card button {
    padding: .7rem .9rem;
    border: 0;
    border-radius: 10px;
    background: var(--acid);
    font-size: .72rem;
    font-weight: 850;
}

.coach-card > span:last-child {
    display: block;
    min-height: 1rem;
    margin-top: .6rem;
    color: #aeb9b4;
    font-size: .66rem;
}

.final-cta {
    padding: 5rem 0;
    background: var(--acid);
}

.final-cta .shell {
    display: grid;
    grid-template-columns: .5fr 1.5fr auto;
    gap: 2rem;
    align-items: center;
}

.final-cta .shell > span {
    font-family: ui-monospace, monospace;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.button-light {
    background: var(--white);
}

footer {
    padding: 2rem 0;
    background: var(--ink);
    color: var(--white);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer .brand small,
footer nav a {
    color: #9caaa4;
}

@media (max-width: 980px) {
    .nav-shell {
        grid-template-columns: 1fr auto;
    }

    .nav-shell nav {
        display: none;
    }

    .hero-grid,
    .mastery-grid,
    .lab-grid,
    .explain-grid {
        grid-template-columns: 1fr;
    }

    .hero-console {
        width: min(100%, 680px);
    }

    .mission-layout {
        grid-template-columns: 1fr;
    }

    .weekly-challenge {
        grid-template-columns: 1fr;
    }

    .mission-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .mission-controls fieldset {
        margin: 0;
    }

    .week-strip,
    .control-note {
        grid-column: 1 / -1;
    }

    .proof-layout {
        grid-template-columns: 1fr;
    }

    .proof-vault,
    .coach-card {
        min-height: auto;
    }

    .final-cta .shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .brand small,
    .nav-account {
        display: none;
    }

    .nav-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4.5rem 0;
        background-size: 34px 34px;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 17vw, 5.2rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .console-score {
        align-items: center;
    }

    .console-score > span {
        font-size: 5rem;
    }

    .console-stats div {
        padding: .7rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-heading h2,
    .mastery-copy h2,
    .lab-copy h2,
    .explain-grid h2,
    .proof-vault h2 {
        font-size: clamp(2.5rem, 12vw, 3.4rem);
    }

    .mission-controls {
        grid-template-columns: 1fr;
    }

    .week-strip,
    .control-note {
        grid-column: auto;
    }

    .mission-card-head {
        align-items: flex-start;
    }

    .mission-steps li {
        grid-template-columns: 42px 1fr;
    }

    .mission-step-actions {
        grid-column: 1 / -1;
        min-width: 0;
        flex-direction: row;
        padding-left: 58px;
    }

    .mission-step-actions > * {
        flex: 1;
    }

    .confidence-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .7rem;
    }

    .confidence-row div {
        width: 100%;
    }

    .confidence-row button {
        flex: 1;
    }

    .calibration-numbers,
    .vault-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }

    footer nav {
        flex-wrap: wrap;
        gap: .8rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
