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

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafaf8;
}

/* === Layout === */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-tagline {
    text-align: center;
    color: #6b6b6b;
    margin-top: 40px;
    font-size: 0.95rem;
}

/* === Button === */
.btn-primary {
    display: inline-block;
    background: #c4622d;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #a84e22; }
.btn-primary:active { transform: scale(0.98); }

/* === Block 1: Hero === */
#hero {
    background: #1c2533;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #c4622d;
    margin-bottom: 32px;
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #aab4c4;
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.7;
}

/* === Block 2: Pain === */
#pain { background: #fafaf8; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid #e8e2db;
    border-radius: 14px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.card p {
    font-size: 0.95rem;
    color: #3a3a3a;
    line-height: 1.6;
    font-style: italic;
}

/* === Block 3: Formats === */
#formats { background: #f0ebe5; }

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.format-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}

.format-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.format-card h3 { font-size: 1rem; margin-bottom: 12px; }

.format-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
}

/* === Block 4: Curriculum / Tabs === */
#curriculum { background: #fafaf8; }

.tabs {
    position: relative;
}

.tabs input[type="radio"] { display: none; }

.tab-labels {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: #ede8e2;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.tab-labels label {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: #6b6b6b;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.tab-labels label:hover { color: #1a1a1a; }

/* Active tab label */
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"] {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Show/hide panels */
.tab-panel { display: none; }

#tab1:checked ~ #content1,
#tab2:checked ~ #content2 { display: block; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e2db;
    border-radius: 12px;
    padding: 20px;
}

.skill-emoji {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.skill-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.skill-item small {
    color: #6b6b6b;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* === Block 5: Ask Master === */
#ask-master { background: #1c2533; color: #fff; }

#ask-master h2 { color: #fff; }

.master-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    color: #aab4c4;
    font-size: 1rem;
    line-height: 1.75;
}

.master-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.master-bullet {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px 24px;
}

.bullet-icon { font-size: 1.5rem; flex-shrink: 0; }

.master-bullet p {
    font-size: 0.95rem;
    color: #d0d8e4;
}

.master-note {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7a8d;
    margin-top: 8px;
}

/* === Block 6: Toolkit === */
#toolkit { background: #f0ebe5; }

.toolkit-intro {
    text-align: center;
    color: #6b6b6b;
    margin-top: -32px;
    margin-bottom: 36px;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.toolkit-item {
    background: #fff;
    border: 1px solid #e8e2db;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* === Block 7: Why not YouTube === */
#why { background: #fafaf8; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.why-card {
    background: #fff;
    border: 1px solid #e8e2db;
    border-radius: 16px;
    padding: 32px 28px;
}

.why-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #c4622d;
}

.why-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
}

/* === Block 8: Form === */
#form { background: #f0ebe5; }

.form-intro {
    text-align: center;
    color: #6b6b6b;
    margin-top: -32px;
    margin-bottom: 40px;
    font-size: 1rem;
}

.form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-wrapper iframe { display: block; border-radius: 8px; }

.form-placeholder { display: flex; flex-direction: column; gap: 8px; }

.form-group {
    background: #fafaf8;
    border: 1px solid #e8e2db;
    border-radius: 14px;
    padding: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.form-group label small {
    font-weight: 400;
    color: #6b6b6b;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label, .check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 400;
    cursor: pointer;
    color: #3a3a3a;
    background: #fff;
    border: 1px solid #e8e2db;
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.15s, background 0.15s;
}

.radio-label:hover, .check-label:hover {
    border-color: #c4622d;
    background: #fff8f5;
}

.radio-label input, .check-label input {
    accent-color: #c4622d;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.email-row {
    display: flex;
    gap: 12px;
}

.email-input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid #ddd6cf;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.email-input:focus { border-color: #c4622d; }

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: #6b6b6b;
    margin-top: 20px;
}

/* === Footer === */
footer {
    background: #111820;
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #c4622d;
    margin-bottom: 12px;
}

footer p {
    color: #6b7a8d;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-email {
    color: #aab4c4;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid #3a4a5a;
    transition: color 0.2s;
}

.footer-email:hover { color: #fff; }

/* === Responsive === */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .formats-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .format-card { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
    .format-icon { margin-bottom: 0; }
    .why-grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 640px) {
    section { padding: 60px 0; }
    h2 { margin-bottom: 32px; }

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

    .tab-labels { width: 100%; }
    .tab-labels label { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.85rem; }

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

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

    .checkbox-group { grid-template-columns: 1fr; }

    .email-row { flex-direction: column; }
    .email-row .btn-primary { width: 100%; text-align: center; }

    .form-wrapper { padding: 28px 20px; }

    .master-bullets { gap: 12px; }
    .master-bullet { flex-direction: column; align-items: flex-start; gap: 10px; }

    #hero h1 br { display: none; }
    .subtitle br { display: none; }
}

@media (max-width: 375px) {
    .container { padding: 0 16px; }
}
