* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFFFFF;
    color: #2d2d2d;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.panda-logo {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    animation: logoBreath 4s ease-in-out infinite;
}

.panda-logo:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes logoBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.logo-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: #E53E3E;
    text-shadow: 2px 2px 4px rgba(229, 62, 62, 0.2);
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

.logo-subtitle {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 1px;
    opacity: 0.8;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #4a5568;
    text-shadow: 0 0 10px rgba(74, 85, 104, 0.1);
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.2em;
    color: #4a5568;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #FCA5A5;
    border-radius: 8px;
    font-size: 1.1em;
    background-color: #ffffff;
    color: #2d2d2d;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #E53E3E;
    box-shadow: 0 0 15px rgba(229, 62, 62, 0.5);
    transform: scale(1.02);
}

button {
    background: linear-gradient(135deg, #E53E3E, #DC2626);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover,
button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
    outline: 3px solid #FCA5A5;
    background: linear-gradient(135deg, #DC2626, #B91C1C);
}

button:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.role-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.role-button {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 3px solid #FCA5A5;
    color: #E53E3E;
    padding: 20px;
    font-size: 1.3em;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.role-button:hover,
.role-button:focus {
    background: linear-gradient(135deg, #FEE2E2, #FCA5A5);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.6);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.back-button {
    background: linear-gradient(135deg, #4A5568, #2D3748);
    color: #ffffff;
}

.back-button:hover,
.back-button:focus {
    background: linear-gradient(135deg, #2D3748, #1A202C);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.4);
}

.progress-indicator {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FCA5A5, #E53E3E);
    transition: width 0.3s ease;
    border-radius: 4px;
}

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

.announcement {
    background-color: #FEF2F2;
    border: 2px solid #FCA5A5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #991B1B;
}

h2 {
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #4a5568;
    margin-bottom: 20px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background: #f5f0e6;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #D2B48C;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #FEE2E2;
}

.pricing-card:hover::before {
    background: #E53E3E;
}

.pricing-card.featured {
    background: #f5f0e6;
    color: #8B4513;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    background: #FEE2E2;
    color: #1F2937;
}

.pricing-card.featured::before {
    background: #D2B48C;
}

.pricing-card.featured:hover::before {
    background: #E53E3E;
}

.plan-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B4513;
    transition: color 0.4s ease;
}

.pricing-card:hover .plan-name {
    color: #1F2937;
}

.plan-price {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #A0522D;
    transition: color 0.4s ease;
}

.pricing-card:hover .plan-price {
    color: #E53E3E;
}

.pricing-card.featured .plan-price {
    color: #8B4513;
}

.pricing-card.featured:hover .plan-price {
    color: #1F2937;
}

.plan-period {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.8;
    color: #8B4513;
    transition: color 0.4s ease;
}

.pricing-card:hover .plan-period {
    color: #1F2937;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
    color: #654321;
    transition: color 0.4s ease;
}

.pricing-card:hover .plan-features li {
    color: #1F2937;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #E53E3E;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.4s ease;
}

.pricing-card:hover .plan-features li::before {
    color: #DC2626;
}

.pricing-card.featured .plan-features li::before {
    color: #8B4513;
}

.pricing-card.featured:hover .plan-features li::before {
    color: #1F2937;
}

.pricing-card .btn {
    background: #D2B48C;
    color: #8B4513;
    transition: all 0.4s ease;
}

.pricing-card:hover .btn {
    background: #E53E3E;
    color: white;
}

.pricing-card.featured .btn {
    background: #8B4513;
    color: #f5f0e6;
}

.pricing-card.featured:hover .btn {
    background: #1F2937;
    color: white;
}

/* Braille cell demo styles */
.braille-cell-demo {
    display: grid;
    grid-template-areas:
        "d1 d4"
        "d2 d5"
        "d3 d6";
    /* Zoomed by ~35% (40px -> 54px) */
    grid-template-columns: 54px 54px;
    grid-template-rows: 54px 54px 54px;
    /* Zoomed gaps (12px -> 16px, 24px -> 32px) */
    gap: 16px 32px;
    background: #f8fafc;
    border: 3px solid #FCA5A5;
    border-radius: 18px;
    padding: 18px 24px;
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.08);
    margin-bottom: 10px;
    /* Match Scripor cell height (Content+Padding+Border) */
    width: auto !important;
    height: 260px !important;
    justify-content: center;
    align-content: center;
    box-sizing: border-box;
}

/* Default Braille dot */
.braille-dot {
    width: 36px;
    height: 36px;
    background: #FCA5A5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #991B1B;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.12);
    border: 2px solid #E53E3E;
}

/* Zoomed dots specifically for the demo cell */
.braille-cell-demo .braille-dot {
    width: 48px;
    height: 48px;
    font-size: 1.5em;
    /* Also zoom font size */
}

/* Scripor cell demo styles */
.scripor-cell-demo {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(4, 44px);
    gap: 14px;
    background: #f8fafc;
    border: 3px solid #FCA5A5;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.08);
    margin-bottom: 10px;
    align-items: center;
    justify-items: center;
    width: 202px !important;
    height: 260px !important;
    box-sizing: border-box;
}

.scripor-dot {
    width: 36px;
    height: 36px;
    background: #E53E3E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #fff;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.18);
    border: 2px solid #DC2626;
}

.scripor-dot-invisible {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: transparent !important;
    pointer-events: none;
}

.cell-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #E53E3E;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    .logo-text {
        font-size: 2.2rem;
    }

    .logo-subtitle {
        font-size: 0.9rem;
    }

    .panda-logo svg {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 2em;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .panda-logo svg {
        width: 80px;
        height: 80px;
    }

    .app-logo {
        margin-bottom: 20px;
    }
}

/* Button Group Styles for Landing Page */
.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.get-started-btn {
    background: linear-gradient(135deg, #2D3748, #1A202C);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
}

.get-started-btn:hover,
.get-started-btn:focus {
    background: linear-gradient(135deg, #1A202C, #000000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.4);
    outline: 3px solid #4A5568;
}

.button-group button:not(.get-started-btn) {
    background: linear-gradient(135deg, #E53E3E, #DC2626) !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(229, 62, 62, 0.2) !important;
}

.button-group button:not(.get-started-btn):hover,
.button-group button:not(.get-started-btn):focus {
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4) !important;
    outline: 3px solid #FCA5A5 !important;
}

/* Outside buttons - positioned outside the white container */
.outside-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.info-button {
    background: linear-gradient(135deg, #4A5568, #2D3748);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 1.15em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
    min-width: 200px;
}

.info-button:hover,
.info-button:focus {
    background: linear-gradient(135deg, #2D3748, #1A202C);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.4);
    outline: 3px solid #4A5568;
}


/* Mobile styles for new buttons */
@media (max-width: 768px) {
    .button-group {
        gap: 12px;
        margin: 30px 0;
    }

    .get-started-btn {
        min-width: 200px;
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .button-group button:not(.get-started-btn) {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 1em;
    }

    .outside-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 25px;
        padding: 0 10px;
    }

    .info-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 15px 30px;
        font-size: 1.05em;
    }
}

/* Password field with show/hide button */
.password-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.password-wrapper input {
    flex: 1;
    padding-right: 10px;
}

.password-toggle {
    min-width: 50px;
    max-width: 55px;
    padding: 10px 8px;
    background: linear-gradient(135deg, #4A5568, #2D3748);
    color: #ffffff;
    border: 2px solid #4A5568;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.password-toggle:hover,
.password-toggle:focus {
    background: linear-gradient(135deg, #2D3748, #1A202C);
    border-color: #2D3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(45, 55, 72, 0.3);
    outline: 2px solid #4A5568;
}

.password-toggle:active {
    transform: translateY(0);
}

/* Error message styles */
.error-message,
.field-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #ef4444;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.9em;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input error state */
input.error,
select.error,
textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    outline: 2px solid #fca5a5;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    border-color: #dc2626;
    outline: 2px solid #ef4444;
}

/* Hide the progress bar completely */
.progress-indicator {
    display: none !important;
}

/* Mobile responsive for password field */
@media (max-width: 768px) {
    .password-wrapper {
        flex-direction: row;
        gap: 8px;
    }

    .password-toggle {
        min-width: 45px;
        max-width: 50px;
        padding: 10px 6px;
        font-size: 0.7em;
    }

    .error-message {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    /* Navigation buttons on mobile */
    .navigation {
        gap: 8px;
    }

    .navigation button {
        font-size: 0.85em !important;
        padding: 12px 16px !important;
        min-width: auto !important;
        flex: 1;
    }

    .back-button {
        flex: 0.8;
    }

    #submit-btn {
        flex: 1.2;
        font-size: 0.8em !important;
        line-height: 1.2;
    }
}