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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #2d3748;
    line-height: 1.6;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.back-btn {
    text-decoration: none;
    color: #4a5568;
    border: 2px solid #cbd5e0;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: #4a5568;
    color: white;
}

.badge {
    background-color: #48bb78;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #1a365d, #2b6cb0);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 30px;
}

.hero-emojis {
    font-size: 3em;
    margin-bottom: 15px;
    letter-spacing: 15px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.2em;
    color: #bee3f8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* ===== ROLE CARD ===== */
.role-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.role-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.role-card h2 {
    font-size: 1.8em;
    color: #2d3748;
    margin-bottom: 15px;
}

.role-card p {
    font-size: 1.1em;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS ROW ===== */
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.1em;
    color: #4a5568;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-highlight {
    font-size: 2em;
    font-weight: 800;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.card p {
    color: #718096;
    font-size: 0.95em;
}

/* ===== INSTRUCTIONS BOX ===== */
.instructions-box {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.instructions-box h3 {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 25px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    transition: background 0.3s;
}

.step:hover {
    background: #edf2f7;
}

.step-number {
    background: linear-gradient(135deg, #2b6cb0, #4299e1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.05em;
    color: #4a5568;
}

.step-text strong {
    color: #2b6cb0;
}

/* ===== PHRASES BOX ===== */
.phrases-box {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.phrases-box h3 {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 20px;
}

.phrase {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 14px 20px;
    margin-bottom: 12px;
    border-radius: 0 10px 10px 0;
    font-size: 1.05em;
    color: #2c5282;
    font-style: italic;
    transition: background 0.3s;
}

.phrase:hover {
    background: #bee3f8;
}

/* ===== TIP BOX ===== */
.tip-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fffff0;
    border: 2px solid #ecc94b;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.tip-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.tip-box strong {
    color: #d69e2e;
}

.tip-box div {
    font-size: 1.05em;
    color: #744210;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cards-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero-emojis {
        font-size: 2em;
        letter-spacing: 10px;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }
    /* ===== TEACHER-SPECIFIC STYLES ===== */

/* Teacher Hero */
.hero-teacher {
    background: linear-gradient(135deg, #742a2a, #c53030);
}

/* Teacher Badge */
.badge-teacher {
    background-color: #e53e3e;
}

/* Secret Goal Box */
.secret-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff5f5;
    border: 2px dashed #fc8181;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.secret-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.secret-box strong {
    color: #c53030;
}

.secret-box div {
    font-size: 1.05em;
    color: #742a2a;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 1.6em;
    color: #2d3748;
    margin-bottom: 25px;
}

/* Plan Details */
.plan-details {
    text-align: left;
    margin-top: 15px;
}

.plan-detail {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95em;
    color: #4a5568;
}

.plan-detail:last-child {
    border-bottom: none;
}

/* Plan Tag */
.plan-tag {
    background: #c53030;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Plan Card Colors */
.plan-basic {
    border-top: 4px solid #a0aec0;
}

.plan-standard {
    border-top: 4px solid #e53e3e;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.15);
}

.plan-premium {
    border-top: 4px solid #d69e2e;
}

/* Teacher Phrases */
.phrase-teacher {
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    color: #742a2a;
}

.phrase-teacher:hover {
    background: #fed7d7;
}

/* Evaluation Box */
.eval-box {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.eval-box h3 {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 10px;
}

.eval-subtitle {
    color: #718096;
    margin-bottom: 20px;
    font-size: 1em;
}

.eval-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    margin-bottom: 8px;
    background: #f7fafc;
    border-radius: 10px;
    font-size: 1.05em;
    color: #4a5568;
    transition: background 0.3s;
}

.eval-item:hover {
    background: #edf2f7;
}

.checkbox {
    font-size: 1.4em;
    color: #a0aec0;
}

.eval-item strong {
    color: #c53030;
}
}
/* ===== STUDENT WRITING CARDS ===== */
.cards-row-4{           /* 4-up grid, reflows on mobile */
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:30px;
}
@media(max-width:992px){.cards-row-4{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){.cards-row-4{grid-template-columns:1fr;} }

.write-card{            /* looks like other white cards */
    min-height:250px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:12px;
}

/* neat little inputs */
.plan-input{
    width:100%;
    padding:10px 14px;
    border:2px solid #e2e8f0;
    border-radius:8px;
    font-size:0.95em;
    font-family:inherit;
    outline:none;
    transition:border .2s;
}
.plan-input:focus{
    border-color:#2b6cb0;
}

/* ===== PLAN TYPE CARDS (Prepaid vs Upfront) ===== */
.plan-type-card {
    text-align: left;
    padding: 30px;
}

.prepaid-card {
    border-top: 4px solid #2e7d32;
}

.upfront-card {
    border-top: 4px solid #c62828;
    opacity: 0.75;
}

.plan-type-details {
    margin-top: 15px;
}

.plan-type-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95em;
    color: #4a5568;
}

.plan-type-item:last-child {
    border-bottom: none;
}

.plan-type-example {
    margin-top: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.6;
}

.plan-type-example strong {
    color: #2b6cb0;
}

.plan-type-tip {
    margin-top: 25px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
}

.plan-type-tip h4 {
    font-size: 1.2em;
    color: #2d3748;
    margin-bottom: 15px;
}