/* Standalone Quiz Styles - The Homegrown Human Matrix */

/* ==================== FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

/* ==================== VARIABLES ==================== */
:root {
    --ink: #111;
    --cream: #FAF9F7;
    --gray: #666;
    --light: #aaa;
    --subtle: #e8e8e6;
    --sage: #A8B5A0;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================== BASE ==================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Quiz Logo */
.quiz-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==================== DECORATIVE ELEMENTS ==================== */

/* Enso-inspired circle */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    border: 2px solid rgba(168, 181, 160, 0.15);
    animation: rotate-slow 60s linear infinite;
}

.deco-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    border: 1px solid rgba(168, 181, 160, 0.1);
    animation: rotate-slow 90s linear infinite reverse;
}

/* Brush stroke element */
.deco-stroke {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.deco-3 {
    width: 200px;
    height: 3px;
    bottom: 20%;
    right: 5%;
    background: linear-gradient(90deg, transparent, rgba(168, 181, 160, 0.3), transparent);
    transform: rotate(-5deg);
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== QUIZ CONTAINER ==================== */
.quiz-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.quiz-screen {
    display: none;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.quiz-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* ==================== INTRO SCREEN ==================== */
.quiz-intro h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.quiz-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 3rem;
}

.quiz-intro-text {
    margin-bottom: 3rem;
}

.quiz-intro-text p {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quiz-principle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.8;
}

/* ==================== PROGRESS ==================== */
.quiz-progress {
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    position: relative;
}

/* Brush stroke under progress */
.quiz-progress::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.progress-current {
    font-size: 2.5rem;
    color: var(--ink);
}

.progress-total {
    font-size: 1.25rem;
    color: var(--light);
}

/* ==================== CATEGORY LABEL ==================== */
.quiz-category {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.5rem;
}

/* ==================== QUESTION ==================== */
.quiz-question {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

/* ==================== OPTIONS ==================== */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--subtle);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    color: var(--ink);
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--sage);
}

.quiz-option.selected {
    background: var(--sage);
    border-color: var(--sage);
    color: white;
}

/* ==================== BUTTONS ==================== */
.quiz-btn {
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

/* ==================== RESULTS SCREEN ==================== */
.quiz-results {
    padding: 4rem 2rem 6rem;
}

.quiz-results .quiz-content {
    max-width: 850px;
}

.quiz-results h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.results-intro {
    font-size: 1.2rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== MATRIX GROUPED ==================== */
.results-matrix {
    margin-bottom: 3.5rem;
}

.matrix-grouped {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.matrix-group {
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    border-left: 5px solid var(--sage);
}

.matrix-group[data-level="mild"] { border-left-color: #5A7A52; }
.matrix-group[data-level="medium"] { border-left-color: #4A6A8A; }
.matrix-group[data-level="spicy"] { border-left-color: #9A6A52; }

.matrix-group-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.group-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.group-dot.mild { background: #5A7A52; }
.group-dot.medium { background: #4A6A8A; }
.group-dot.spicy { background: #9A6A52; }

.matrix-group-desc {
    font-size: 1rem;
    color: var(--gray);
    font-style: italic;
    margin: 0 0 1rem 0;
}

.matrix-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.matrix-lever-item {
    padding: 0.6rem 1.1rem;
    background: rgba(168, 181, 160, 0.12);
    border-radius: 2rem;
}

.matrix-group[data-level="mild"] .matrix-lever-item { background: rgba(90, 122, 82, 0.12); }
.matrix-group[data-level="medium"] .matrix-lever-item { background: rgba(74, 106, 138, 0.12); }
.matrix-group[data-level="spicy"] .matrix-lever-item { background: rgba(154, 106, 82, 0.12); }

.lever-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
}

/* ==================== PATTERN SUMMARY ==================== */
.results-pattern {
    margin-bottom: 3.5rem;
    padding: 3rem 2.5rem;
    background: rgba(168, 181, 160, 0.12);
    border: 2px solid var(--sage);
    color: var(--ink);
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
}

.results-pattern h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.results-pattern p {
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.pattern-growth {
    color: var(--ink);
    font-size: 1.1rem;
}

.pattern-growth strong {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #4A6A42;
}

.pattern-work {
    font-size: 1.1rem;
    color: var(--ink);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 181, 160, 0.5);
}

.pattern-work strong {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #4A6A42;
}

.pattern-breakdown {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(168, 181, 160, 0.5);
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.mild { background: #5A7A52; }
.dot.medium { background: #4A6A8A; }
.dot.spicy { background: #9A6A52; }

/* ==================== LEVER DETAILS ==================== */
.results-details {
    margin-bottom: 4rem;
    text-align: left;
}

.results-details h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.results-details h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.lever-detail {
    padding: 2rem 2.25rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    border-left: 5px solid var(--sage);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lever-detail:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.lever-detail[data-level="mild"] { border-left-color: #5A7A52; }
.lever-detail[data-level="medium"] { border-left-color: #4A6A8A; }
.lever-detail[data-level="spicy"] { border-left-color: #9A6A52; }

.lever-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--subtle);
}

.lever-info {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.lever-info h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

.lever-subtitle {
    font-size: 1rem;
    color: var(--gray);
    font-style: italic;
}

.lever-level {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lever-level.mild { background: #E8F0E5; color: #4A6A42; }
.lever-level.medium { background: #E5EEF5; color: #3A5A7A; }
.lever-level.spicy { background: #F5EAE5; color: #8A5A42; }

.lever-description {
    font-size: 1.05rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.lever-summary {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(168, 181, 160, 0.18);
    border-radius: 0.75rem;
}

.lever-meaning {
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Practices */
.lever-practices {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--subtle);
}

.lever-practices h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4A6A42;
}

.lever-practices ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lever-practices li {
    font-size: 1.05rem;
    color: var(--ink);
    padding: 0.85rem 1.25rem;
    background: rgba(168, 181, 160, 0.1);
    border-radius: 0.75rem;
    line-height: 1.5;
    position: relative;
    padding-left: 2.25rem;
}

.lever-practices li::before {
    content: '→';
    position: absolute;
    left: 0.85rem;
    color: var(--sage);
    font-weight: 600;
}

/* ==================== STACKING SUGGESTIONS ==================== */
.results-stacks {
    margin-bottom: 4rem;
    text-align: left;
}

.results-stacks h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.results-stacks h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.stacks-intro {
    font-size: 1.15rem;
    color: var(--ink);
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.stacks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stack-card {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stack-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stack-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--sage);
}

.stack-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

.stack-description {
    font-size: 1.05rem;
    color: var(--gray);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.stack-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    counter-reset: step;
}

.stack-steps li {
    font-size: 1rem;
    color: var(--ink);
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
    background: rgba(168, 181, 160, 0.1);
    border-radius: 0.6rem;
    position: relative;
    line-height: 1.5;
    counter-increment: step;
}

.stack-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: white;
    font-weight: 600;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== INTERACTIVE GUIDANCE ==================== */
.results-guidance {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(168, 181, 160, 0.08);
    border-radius: 1.5rem;
    text-align: left;
    position: relative;
}

.results-guidance h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.results-guidance h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

/* Step Row Layout (New Compact Design) */
.guidance-step-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    border-left: 4px solid var(--sage);
}

.step-number-badge {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-title strong {
    font-size: 1.4rem;
    font-weight: 600;
}

.step-icon {
    margin-right: 0.3rem;
    font-size: 1.1em;
}

/* Step chosen confirmation */
.step-chosen {
    margin-top: 1rem;
    padding: 0.9rem 1.25rem;
    background: rgba(90, 122, 82, 0.15);
    border-radius: 0.75rem;
    font-size: 1.05rem;
    color: #4A6A4A;
    line-height: 1.5;
    border-left: 3px solid #5A7A52;
}

.step-chosen strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #3A5A3A;
}

.step-chosen.hidden {
    display: none;
}

/* Practice prompt */
.practice-prompt {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    margin: 1rem 0 0.75rem 0;
}

.practice-prompt.hidden {
    display: none;
}

/* Save step description */
.save-description {
    font-size: 1.05rem;
    color: var(--gray);
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

/* Copy Button */
.copy-btn {
    background: var(--ink);
    color: var(--cream);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.1rem 2.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.copy-feedback {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #5A7A52;
    margin: 1rem 0 0 0;
    font-weight: 600;
}

.copy-feedback.hidden {
    display: none;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Legacy step styles - keeping for compatibility */
.guidance-step {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.guidance-step.active {
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.guidance-step.completed {
    opacity: 0.7;
    pointer-events: auto;
}

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

.step-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guidance-step.completed .step-number {
    background: #5A7A52;
}

.step-header h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
}

.step-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* Dropdown Select */
.guidance-select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 0.9rem 1.25rem;
    border: 2px solid var(--subtle);
    border-radius: 0.75rem;
    background: white;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.2s ease;
}

.guidance-select:hover {
    border-color: var(--sage);
}

.guidance-select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(168, 181, 160, 0.2);
}

/* Practice Options */
.practice-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.practice-option {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--subtle);
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--ink);
}

.practice-option:hover {
    border-color: var(--sage);
    background: rgba(168, 181, 160, 0.1);
}

.practice-option.selected {
    border-color: var(--sage);
    background: rgba(168, 181, 160, 0.2);
}

/* Commitment Message */
.commitment-message {
    padding: 1.5rem;
    background: rgba(168, 181, 160, 0.15);
    border-radius: 1rem;
    text-align: center;
}

.commitment-message h5 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    color: var(--ink);
}

.commitment-message p {
    font-size: 1.05rem;
    color: var(--gray);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.commitment-message .chosen-practice {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: #5A7A52;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.guidance-principle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--ink);
    text-align: center;
    margin: 1.5rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 181, 160, 0.3);
}

/* ==================== ACTIONS ==================== */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .quiz-screen {
        padding: 3rem 1.5rem;
    }

    .quiz-intro h1 {
        font-size: 2.25rem;
    }

    .quiz-question {
        font-size: 1.3rem;
    }

    .quiz-option {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matrix-name {
        font-size: 0.95rem;
    }

    .matrix-subtitle {
        font-size: 0.75rem;
    }

    .pattern-breakdown {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .lever-info {
        flex-direction: column;
        gap: 0;
    }

    .lever-practices ul {
        gap: 0.4rem;
    }

    .lever-practices li {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem 0.5rem 1.5rem;
    }

    .lever-practices li::before {
        left: 0.5rem;
    }

    .guidance-step {
        padding: 1.25rem;
    }

    .step-header h4 {
        font-size: 1.1rem;
    }

    .guidance-select {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .practice-option {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }

    .commitment-message h5 {
        font-size: 1.15rem;
    }

    .commitment-message .chosen-practice {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    /* Step row mobile */
    .guidance-step-row {
        padding: 1rem;
        gap: 0.75rem;
    }

    .step-number-badge {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .step-chosen {
        font-size: 0.85rem;
    }

    .save-description {
        font-size: 0.85rem;
    }

    .copy-btn {
        width: 100%;
        padding: 1rem;
        font-size: 0.95rem;
    }

    .stacks-grid {
        grid-template-columns: 1fr;
    }

    .stack-card {
        padding: 1.5rem;
    }

    .stack-steps li {
        font-size: 0.85rem;
        padding: 0.45rem 0.6rem 0.45rem 2rem;
    }

    .stack-steps li::before {
        left: 0.6rem;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .quiz-btn {
        width: 100%;
        text-align: center;
    }

    /* Hide decorative elements on mobile */
    .deco-circle,
    .deco-stroke {
        display: none;
    }
}
