/* ================================================
   COLOR VISION TEST - COMPLETE STYLESHEET
   Mobile-First Responsive Design
   ================================================ */

/* ================================================
   1. CSS VARIABLES & RESET
   ================================================ */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f8f8f8;
    --border: #000000;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --header-height: 56px;
    --container-padding: 16px;
    --border-radius: 4px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* ================================================
   2. TYPOGRAPHY
   ================================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ================================================
   3. LAYOUT
   ================================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    z-index: 2000;
}

.skip-link:focus {
    top: 10px;
}

/* ================================================
   4. HEADER & NAVIGATION
   ================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    z-index: 1001;
}

/* Mobile Navigation */
.nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    border-right: 2px solid var(--border);
    list-style: none;
    padding: 2rem 0;
    margin: 0;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    display: block;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    border-bottom: 1px solid var(--light-gray);
}

.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
}

.nav-links a:hover {
    background: var(--light-gray);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* ================================================
   5. BUTTONS
   ================================================ */

.btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    background: var(--white);
    color: var(--black);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-xl {
    padding: 16px 32px;
    font-size: 1.125rem;
}

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

/* ================================================
   6. HOMEPAGE SECTIONS
   ================================================ */

/* Hero Section */
.hero {
    padding: 3rem 1rem;
    text-align: center;
    background: var(--white);
    border-bottom: 2px solid var(--border);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 2rem;
}

.hero-cta .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1rem;
    display: block;
}

.hero-meta {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Generic Sections */
.section {
    padding: 3rem 1rem;
}

.section-alt {
    background: var(--light-gray);
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps Section */
.steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    background: var(--white);
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

/* Test Preview */
.test-preview {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.test-preview h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.preview-plates {
    display: grid;
    gap: 1.5rem;
}

.preview-plate {
    text-align: center;
}

.preview-plate canvas {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--border);
    margin-bottom: 0.5rem;
}

.preview-plate p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Types Grid */
.types-grid {
    display: grid;
    gap: 1.5rem;
}

.type-card {
    background: var(--white);
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
}

.type-icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.type-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.type-prevalence {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.type-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

/* About Section */
.about-content {
    padding: 1.5rem 0;
}

.about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.fact-card {
    background: var(--white);
    border: 2px solid var(--border);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.fact-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.fact-card p {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 0;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--black);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 2rem 1rem 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ================================================
   7. TEST PAGE STYLES
   ================================================ */

.test-container {
    min-height: calc(100vh - var(--header-height));
}

.test-screen {
    display: none;
    padding: 1rem;
}

.test-screen.active {
    display: block;
}

/* Instructions */
.instructions-content {
    background: var(--white);
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
}

.instructions-content h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.instructions-content h2 {
    font-size: 1.125rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--light-gray);
    border-left: 4px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-icon {
    color: var(--black);
    font-weight: 700;
    flex-shrink: 0;
}

.steps-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
}

.steps-list li {
    counter-increment: steps;
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 0.75rem;
    position: relative;
    background: var(--light-gray);
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 1rem;
    width: 24px;
    height: 24px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.accessibility-options {
    background: var(--light-gray);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

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

.option-group:last-child {
    margin-bottom: 0;
}

.option-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.option-group label {
    cursor: pointer;
}

.test-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.test-actions .btn {
    width: 100%;
}

/* Test Interface */
.test-header {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 24px;
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--black);
    transition: width 0.3s ease;
}

.plate-counter {
    text-align: center;
    font-weight: 600;
}

.test-content {
    padding: 0;
}

.plate-container {
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

#ishihara-plate {
    display: block;
    width: 280px;
    height: 280px;
    max-width: calc(100vw - 80px);
    max-height: calc(100vw - 80px);
    border-radius: 50%;
    background: var(--white);
}

.plate-loading {
    font-weight: 600;
}

.answer-section {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.answer-section h2 {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 1rem;
}

.number-display {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.number-input {
    flex: 1;
    height: 48px;
    font-size: 1.25rem;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--white);
    font-weight: 600;
}

.clear-btn {
    padding: 0 1.5rem;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: var(--black);
    color: var(--white);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.num-btn {
    height: 56px;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.num-btn:hover {
    background: var(--black);
    color: var(--white);
}

.num-btn.special {
    font-size: 0.875rem;
}

.test-controls {
    display: flex;
    gap: 0.75rem;
}

.test-controls .btn {
    flex: 1;
}

.test-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-left: 4px solid var(--border);
    font-size: 0.875rem;
}

.test-info p {
    margin: 0;
}

.test-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
}

/* Processing Screen */
.processing-content {
    text-align: center;
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
}

.processing-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--black);
    border-radius: 50%;
    margin: 2rem auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-steps {
    text-align: left;
    margin-top: 2rem;
}

.processing-step {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-gray);
    border-left: 4px solid var(--border);
    opacity: 0.5;
}

.processing-step.active {
    opacity: 1;
}

/* ================================================
   8. RESULTS PAGE STYLES
   ================================================ */

.results-container {
    min-height: calc(100vh - var(--header-height));
    padding: 1rem;
}

.results-header {
    text-align: center;
    padding: 2rem 0;
}

.results-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.test-date {
    font-size: 0.875rem;
    color: var(--gray);
}

.result-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-result {
    text-align: center;
}

.diagnosis-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: var(--black);
    border-radius: 50%;
    margin: 1rem auto;
}

.result-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.severity-indicator {
    margin-top: 1rem;
}

.severity-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.severity-scale {
    display: flex;
    gap: 0.25rem;
}

.severity-level {
    flex: 1;
    padding: 0.5rem 0.25rem;
    background: var(--light-gray);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
}

.severity-level.active {
    background: var(--black);
    color: var(--white);
}

.analysis-grid {
    display: grid;
    gap: 1.5rem;
}

.analysis-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.analysis-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.stats-list {
    display: grid;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.stat-label {
    color: var(--gray);
}

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

.pattern-results {
    display: grid;
    gap: 1rem;
}

.pattern-item {
    display: grid;
    gap: 0.25rem;
}

.pattern-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.pattern-bar {
    height: 24px;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pattern-fill {
    height: 100%;
    background: var(--black);
    transition: width 0.5s ease;
}

.pattern-value {
    text-align: right;
    font-weight: 600;
    font-size: 0.875rem;
}

.interpretation-section {
    margin-top: 2rem;
}

.interpretation-content {
    display: grid;
    gap: 1.5rem;
}

.interpretation-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.interpretation-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.next-steps-list {
    list-style: none;
    padding: 0;
}

.next-steps-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.next-steps-list li:last-child {
    border-bottom: none;
}

.plate-review {
    margin-top: 2rem;
}

.plate-review h2 {
    margin-bottom: 1rem;
}

.plate-details {
    margin-top: 1rem;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.results-table th {
    background: var(--light-gray);
    font-weight: 600;
}

.results-actions {
    margin-top: 2rem;
}

.action-buttons {
    display: grid;
    gap: 1rem;
}

.action-buttons .btn {
    width: 100%;
}

.disclaimer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.disclaimer h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.disclaimer-content {
    font-size: 0.875rem;
    color: var(--gray);
}

.disclaimer-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* ================================================
   9. UTILITY CLASSES
   ================================================ */

.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ================================================
   10. RESPONSIVE BREAKPOINTS
   ================================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Container */
    .container {
        padding: 0 24px;
    }
    
    /* Navigation */
    .nav-links {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        border: none;
        display: flex;
        flex-direction: row;
        padding: 0;
        margin: 0;
        gap: 1.5rem;
        left: auto;
        top: auto;
        overflow: visible;
        transition: none;
    }
    
    .nav-links li {
        border: none;
        list-style: none;
    }
    
    .nav-links a {
        padding: 0.5rem 1rem;
        display: inline-block;
        font-weight: 500;
    }
    
    .nav-links a:hover {
        background: transparent;
        opacity: 0.7;
    }
    
    .nav-links .btn {
        margin-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .menu-overlay {
        display: none !important;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta .btn {
        width: auto;
        display: inline-block;
        margin: 0 0.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Sections */
    .section {
        padding: 4rem 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .preview-plates {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Test Page */
    .test-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    #ishihara-plate {
        width: 320px;
        height: 320px;
    }
    
    .test-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .test-actions .btn {
        width: auto;
        min-width: 200px;
    }
    
    /* Results */
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .action-buttons .btn {
        width: auto;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    /* Container */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 32px;
    }
    
    /* Typography */
    h1 { font-size: 3rem; }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    /* Types */
    .types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* About */
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    /* Test */
    #ishihara-plate {
        width: 400px;
        height: 400px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-toggle,
    .test-controls,
    .action-buttons {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .result-card {
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    * {
        border-width: 3px !important;
    }
    
    .btn {
        font-weight: 800 !important;
    }
}

/* High Contrast Mode */
body.high-contrast * {
    border-width: 3px !important;
}

/* Large Buttons Mode */
body.large-buttons .btn {
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
}

body.large-buttons .num-btn {
    height: 72px;
    font-size: 1.5rem;
}