:root {
    --primary: #1a6560;
    --primary-hover: #124843;
    --secondary: #1a6560;
    --accent: #8c4a32;
    --text-main: #1c1915;
    --text-muted: #5e574e;
    --bg-body: #f3eee4;
    --bg-white: #fbf7f0;
    --border-light: #d9d0c1;
    --ink: #1c1915;
    --ivory: #f3eee4;
    --paper: #fbf7f0;
    --teal: #1a6560;
    --line: #d9d0c1;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --radius: 2px;
    --transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    --focus: 0 0 0 3px rgba(26, 101, 96, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

main {
    min-height: calc(100vh - 16rem);
}

body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background-color: var(--bg-body);
    background-image: linear-gradient(180deg, rgba(251, 247, 240, 0.9), rgba(243, 238, 228, 0) 22rem);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.0625rem;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
    font-weight: 560;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

/* --- Header --- */
header {
    background: rgba(243, 238, 228, 0.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.85rem 0;
}

header.scrolled {
    background: #f7f2e8;
    border-bottom-color: #c9bfae;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.logo {
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 560;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}

.logo span {
    color: var(--teal);
    font-style: italic;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--ink);
    background: transparent;
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 1px;
    background: var(--ink);
    position: relative;
    content: "";
}

.nav-toggle-bars::before {
    position: absolute;
    top: -6px;
}

.nav-toggle-bars::after {
    position: absolute;
    top: 6px;
}

nav ul {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

nav ul a {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text-main);
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
}

nav ul a:hover,
nav ul a.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

nav ul a.btn {
    border-bottom: none;
    color: #fbf7f0;
    padding: 0.7rem 1.1rem;
}

nav ul a.btn:hover {
    color: #fbf7f0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    min-height: 2.75rem;
    border-radius: 2px;
    font-weight: 600;
    font-family: "Source Sans 3", sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 1rem;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--teal);
    color: #fbf7f0;
    box-shadow: none;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: transparent;
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 1.05rem;
    min-height: 3.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled,
.donation-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* --- Hero --- */
#hero {
    padding: 4.5rem 0 3.25rem;
    text-align: left;
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.hero-content {
    max-width: 46rem;
    margin: 0;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.hero-content h1 span {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--teal);
    font-style: italic;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: 0;
    margin-right: 0;
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Features: editorial columns, not floating cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    margin: 3rem 0 1rem;
    border-top: 1px solid var(--ink);
}

.feature-card {
    background: transparent;
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--line);
    box-shadow: none;
    margin-right: 1.5rem;
}

.feature-card:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
}

.icon-box {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    margin-bottom: 0.85rem;
    color: var(--teal);
}

.icon-box svg {
    width: 1.35rem;
    height: 1.35rem;
}

.feature-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.55rem;
    font-weight: 560;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-head {
    text-align: left;
    max-width: 40rem;
    margin: 3.5rem 0 0.5rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.content-box {
    background: transparent;
    padding: 0.2rem 0 0.2rem 1.4rem;
    border-radius: 0;
    border: none;
    border-left: 3px solid var(--teal);
    box-shadow: none;
    margin: 2.5rem 0;
}

.content-box h2 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.content-box p,
.content-box li {
    color: var(--text-main);
}

.content-box strong {
    font-weight: 650;
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.15rem 0;
    background: none;
    border: none;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 560;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 3rem;
}

.faq-question:hover {
    color: var(--teal);
}

.faq-toggle-icon {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--teal);
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    color: var(--text-muted);
}

.faq-answer p {
    padding-bottom: 1.25rem;
    max-width: 46rem;
}

.faq-answer a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Pricing --- */
#pricing {
    padding: 1rem 0 4rem;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 52rem;
    margin: 1.5rem 0 0;
}

.pricing-card {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0 0;
    border: none;
    border-top: 1px solid var(--ink);
    text-align: left;
    position: relative;
    box-shadow: none;
}

.pricing-card.featured {
    border-top: 3px solid var(--teal);
    box-shadow: none;
}

.badge {
    position: static;
    display: inline-block;
    background: transparent;
    color: var(--teal);
    padding: 0;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.price {
    font-family: "Newsreader", Georgia, serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0.4rem 0 0.6rem;
    line-height: 1;
}

.price span {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    text-align: left;
    margin: 1.25rem 0 1.5rem;
}

.features-list li {
    padding: 0.45rem 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--line);
}

.features-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    background: var(--teal);
    flex: none;
}

/* --- Footer --- */
footer {
    background: #221e1a;
    color: #e7e0d4;
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: #fbf7f0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 560;
}

.footer-col ul li {
    margin-bottom: 0.45rem;
}

.footer-col ul a {
    color: #cfc6b8;
    border-bottom: 1px solid transparent;
}

.footer-col ul a:hover {
    color: #fbf7f0;
    border-bottom-color: var(--teal);
}

.footer-col p {
    color: #cfc6b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.6;
}

.footer-disclaimer {
    border-top: 1px solid #3a342c;
    padding-top: 1.5rem;
    color: #a3988b;
    font-size: 0.9rem;
    text-align: left;
    max-width: 52rem;
}

/* --- Homepage dormant test shell --- */
.test-card {
    background: transparent;
    max-width: 42rem;
    margin: 3rem auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--ink);
}

.progress-container {
    background: #e4dccb;
    height: 0.55rem;
    border-radius: 0;
    margin-top: 1.5rem;
    overflow: hidden;
}

#progress {
    background: var(--teal);
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.option-btn {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 2px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-main);
    font-family: inherit;
}

.option-btn:hover {
    border-color: var(--teal);
}

/* --- Research (unused on current pages; kept so the sheet stays complete) --- */
#research {
    background: transparent;
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.research-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.research-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.research-stat {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.4rem;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-canvas {
    background: #e7e1d4;
    border-radius: 0;
    height: 360px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border-top: 3px solid var(--teal);
}

.location-tag {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: var(--paper);
    padding: 0.55rem 0.9rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Popups --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 25, 21, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
    overflow-y: auto;
}

.popup-card {
    background: var(--paper);
    border-radius: 2px;
    padding: 2.25rem 2rem 2rem;
    max-width: 32rem;
    width: 100%;
    max-height: min(88vh, 720px);
    overflow-y: auto;
    text-align: left;
    position: relative;
    box-shadow: none;
    border-top: 4px solid var(--teal);
    animation: popupIn 0.2s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: 1px solid var(--line);
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--text-main);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    line-height: 1;
}

.popup-close:hover {
    color: var(--teal);
    border-color: var(--teal);
    background: transparent;
}

.popup-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    margin: 0 0 0.8rem;
    color: var(--teal);
}

.popup-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.popup-card h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.popup-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Donation --- */
.donation-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    background: #221e1a;
    color: #e7e0d4;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.donation-popup-card {
    max-width: 28rem;
    padding: 1.6rem 1.5rem 1.35rem;
    text-align: left;
    max-height: min(92vh, 860px);
}

.donation-popup-icon {
    margin-bottom: 0.6rem;
    background: none;
    color: var(--accent);
}

.donation-popup-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.donation-popup-card h2 {
    font-size: 1.7rem;
    margin-bottom: 0.45rem;
}

.donation-lead {
    margin-bottom: 0.85rem;
    font-size: 0.98rem;
    line-height: 1.55;
}

.donation-perks {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.donation-perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.4;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}

.donation-perk-check {
    flex-shrink: 0;
    width: 1.1rem;
    color: var(--teal);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.donation-cta {
    width: 100%;
}

.donation-custom {
    margin-top: 0.7rem;
    text-align: left;
}

.donation-custom-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.92rem;
    color: var(--teal);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
    min-height: 2.75rem;
}

.donation-custom-form {
    margin-top: 0.35rem;
}

.donation-custom-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donation-currency {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
}

.donation-custom-row input,
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--ink) !important;
    border-radius: 2px !important;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper);
    min-height: 2.75rem;
}

textarea {
    min-height: 8rem;
}

.donation-custom-row input {
    flex: 1;
    min-width: 0;
    width: auto;
}

.donation-custom-row input:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
    border-color: var(--teal) !important;
    box-shadow: none;
}

.donation-custom-row .btn {
    padding: 0.6rem 1rem;
    flex-shrink: 0;
}

.donation-custom-hint,
.donation-secure-note {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.donation-secure-note {
    text-align: left;
}

.donation-custom-error,
.donation-pay-error {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #8f2d2d;
}

.donation-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.donation-pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.5rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 2px;
}

.donation-pay-badge svg {
    height: 1rem;
    width: auto;
    display: block;
}

.donation-popup-card.is-checkout {
    max-width: 30rem;
    max-height: min(94vh, 860px);
}

#donation-payment-element {
    margin: 0.75rem 0 1rem;
}

.donation-processing {
    text-align: left;
    padding: 0.25rem 0 0.15rem;
}

.donation-processing h2 {
    margin-bottom: 0.5rem;
}

.donation-processing p {
    margin-bottom: 1rem;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-notice {
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    font-size: 0.98rem;
}

.contact-notice.ok {
    background: transparent;
    color: var(--teal);
}

.contact-notice.bad {
    background: transparent;
    color: #8f2d2d;
}

label {
    font-weight: 600;
}

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

/* --- Quiz --- */
.test-container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 4rem;
}

.test-instructions,
.question-card,
.results-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.test-instructions h2,
.results-container h2 {
    font-weight: 500;
    margin-bottom: 1rem;
}

.results-container > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.test-note {
    border-left: 3px solid var(--accent);
    padding: 0.2rem 0 0.2rem 1rem;
    margin-bottom: 1.4rem;
}

.test-note p {
    margin: 0;
    font-weight: 600;
    color: #6b3a28;
}

.test-instructions ul {
    list-style: disc;
    margin: 0 0 1.6rem 1.2rem;
    color: var(--text-main);
}

.test-instructions li {
    margin: 0.35rem 0;
}

.timer-display {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: transparent;
    color: var(--ink);
    padding: 0 0 0.85rem;
    border-radius: 0;
    border-bottom: 1px solid var(--ink);
    font-family: "Newsreader", Georgia, serif;
    font-weight: 560;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    box-shadow: none;
    z-index: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 1rem;
}

.timer-warning {
    background: transparent;
    color: #8f2d2d;
}

.quiz-progress {
    margin: 0 0 1.5rem;
}

.progress-bar {
    height: 0.55rem;
    background: #e4dccb;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--teal);
    transition: width 0.25s ease;
}

.question-number {
    color: var(--teal);
    font-family: "Source Sans 3", sans-serif;
    font-weight: 650;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.question-text {
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    font-weight: 500;
    margin: 0 0 1.25rem;
    color: var(--ink);
    line-height: 1.25;
}

.options-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 0.95rem 0.7rem;
    min-height: 3.25rem;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    cursor: pointer;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1.05rem;
}

.option-item:hover {
    border-color: transparent;
    border-bottom-color: var(--teal);
    background: rgba(26, 101, 96, 0.05);
}

.option-item.selected {
    border-color: var(--teal);
    background: #e7f2f1;
}

.option-marker {
    font-family: "Newsreader", Georgia, serif;
    font-style: italic;
    color: var(--teal);
    width: 1.25rem;
    flex: none;
}

.quiz-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.quiz-nav .btn {
    flex: 1;
}

#submit-test-btn {
    margin-top: 0.75rem;
}

.answer-item {
    padding: 1rem 0 1rem 0.9rem;
    margin-bottom: 0.35rem;
    border-radius: 0;
    border-left: 3px solid var(--line);
    background: transparent;
}

.answer-item.correct {
    border-left-color: #1d6b45;
    background: transparent;
}

.answer-item.incorrect {
    border-left-color: #8f2d2d;
    background: transparent;
}

.score-sheet {
    border-top: 3px solid var(--teal);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0 1.4rem;
    margin-bottom: 1.75rem;
}

.score-sheet h3 {
    font-weight: 500;
    font-size: 1.35rem;
}

.score-fraction,
.score-iq {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 560;
    color: var(--ink);
    line-height: 1;
}

.score-fraction {
    font-size: 2.6rem;
    margin-top: 0.2rem;
}

.score-iq {
    font-size: 3.4rem;
}

.score-meta {
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.score-rule {
    border-top: 1px solid var(--line);
    margin-top: 1.1rem;
    padding-top: 1.1rem;
}

.results-home {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.spinner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    background: var(--paper);
    border-radius: 2px;
    border-top: 4px solid var(--teal);
    padding: 2.5rem 2rem;
    box-shadow: none;
    animation: popupIn 0.2s ease;
}

.spinner-ring {
    width: 2.6rem;
    height: 2.6rem;
    border: 3px solid var(--line);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-text {
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
}

@media (max-width: 900px) {
    .features-grid,
    .pricing-grid,
    .footer-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        border-right: none;
        border-bottom: 1px solid var(--line);
        margin-right: 0;
        padding-right: 0;
    }

    .footer-grid {
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    nav ul {
        display: none;
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        background: transparent;
        padding: 0.35rem 0 0.15rem;
    }

    header.nav-open nav {
        flex-wrap: wrap;
    }

    header.nav-open nav ul {
        display: flex;
    }

    nav ul li a,
    nav ul li .btn {
        display: flex;
        width: 100%;
        padding: 0.85rem 0;
        min-height: 2.75rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    nav ul li .btn {
        margin-top: 0.6rem;
        justify-content: center;
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2.45rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .timer-display {
        position: static;
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 0.75rem;
    }

    .popup-card,
    .donation-popup-card {
        padding: 1.35rem 1.1rem 1.15rem;
        max-height: min(94vh, 720px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
