:root{
    --primary: #4a90e2;
    --primary-dark: #357abd;
    --secondary: #f3f7f9;
    --text-main: #2c3e50;
    --text-light: #546e7a;
    --bg-main: #ffffff;
    --border: #e1e8ed;
    --success: #2ecc71;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--secondary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--bg-main);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

header ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

header a:hover {
    color: var(--primary);
}

main {
    flex: 1;
}

.hero {
    text-align: center;
    padding: 4rem 20px;
    background: linear-gradient(135deg, var(--bg-main), #e9f2fb);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.ad-container {
    text-align: center;
    margin: 2rem auto;
    min-height: 120px;
}

.quiz-container {
    padding: 4rem 20px;
    background: var(--bg-main);
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.quiz-container h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.quiz-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

#quiz-app {
    min-height: 300px;
}

#question-text {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    color: var(--text-main);
}

.option-btn:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.hidden {
    display: none !important;
}

#result-container {
    text-align: center;
    padding: 2rem;
    background: var(--secondary);
    border-radius: 8px;
}

#result-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

#result-details {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

.info-section {
    padding: 4rem 20px;
}

.info-section h2 {
    margin-bottom: 1.5rem;
}

.info-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer {
    background: var(--text-main);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

footer a {
    color: #b0bec5;
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: white;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
