/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
    background: #cfffcab5;
    color: #0434f2;
    line-height: 1.5;
}

/* =========================
   LAYOUT
========================= */

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* =========================
   HERO
========================= */

.hero {
    background: radial-gradient(circle at top, #ffffff 0%, #f6f7fb 70%);
    padding: 80px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #185fec;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p {
    margin-top: 10px;
    font-size: 18px;
    color: #4b5563;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.trustLine {
    margin-top: 12px;
    font-size: 13px;
    color: #9ca3af;
}

/* =========================
   SECTIONS
========================= */

.introBlock,
.seoBlock,
.faqBlock {
    margin: 32px 0;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

h3 {
    font-size: 18px;
    margin-top: 14px;
}

p {
    color: #4b5563;
    margin-bottom: 10px;
}

ul {
    padding-left: 18px;
    color: #4b5563;
}

/* =========================
   CARD SYSTEM
========================= */

.card {
    background: #66abff62;
    border-radius: 18px;
    padding: 24px;
    margin: 18px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* =========================
   ADS
========================= */

.adBox {
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    margin: 18px 0;
    font-size: 13px;
}

/* =========================
   MODE GRID (FIXED 2x2)
========================= */

.modeGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

/* =========================
   BUTTONS
========================= */

button {
    font-family: inherit;
}

/* Primary */
.primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.primary:hover {
    background: #1d4ed8;
}

/* Secondary */
.secondary {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
}

/* Mode buttons */
.modeBtn {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #5476fd;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    transition: 0.2s;
}

.modeBtn:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.modeBtn span {
    display: block;
    font-size: 12px;
    color: #621ae8;
    margin-top: 6px;
    font-weight: 400;
}

/* =========================
   QUIZ
========================= */

#questionText {
    font-size: 22px;
    font-weight: 700;
    margin: 14px 0;
}

#answers button {
    width: 100%;
    text-align: left;
    padding: 14px;
    margin: 8px 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
}

#answers button:hover {
    border-color: #2564ebc3;
    background: #22aeff;
}

/* =========================
   PROGRESS
========================= */

.progressWrap {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* =========================
   LAYOUT HELPERS
========================= */

/* =========================
   ACTION BUTTONS
========================= */

.buttonRow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

/* Make Next Question and Show Explanation
   match answer buttons exactly */

#answers button,
.buttonRow button {
    width: 100%;
    text-align: left;
    padding: 14px;
    margin: 8px 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
}

/* Optional: center text on action buttons only */
.buttonRow button {
    text-align: center;
}

.hidden {
    display: none;
}

/* =========================
   FOOTER
========================= */

.footer {
    margin-top: 60px;
    padding: 30px 16px;
    border-top: 1px solid #c4d7fb;
    background: #fff;
    text-align: center;
}

.footer p {
    font-weight: 600;
}

.footer span {
    font-size: 12px;
    color: #9ca3af;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .buttonRow {
        flex-direction: column;
    }
}