/* --------------------
           Base & Variables
        ---------------------*/
:root {
    --bg: #f7f8fb;
    --bg-soft: #eef2ff;
    --text: #0f172a;
    /* slate-900 */
    --muted: #475569;
    /* slate-600 */
    --card: #ffffff;
    --brand: #6d28d9;
    /* violet-700 */
    --brand-2: #7c3aed;
    /* violet-600 */
    --brand-3: #a78bfa;
    /* violet-300 */
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --container: 1120px;
    /* max content width */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 70%);
    -webkit-font-smoothing: antialiased;
    /* crisper text */
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: clamp(48px, 6vw, 96px) 0;
}

/* --------------------
           Header / Nav
        ---------------------*/
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(150%) blur(6px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand .logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

/* Mobile menu (checkbox toggle) */
#nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.hamburger:focus-visible {
    outline: 3px solid var(--brand-3);
    outline-offset: 2px;
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
        position: absolute;
        inset-inline: 1rem;
        top: 56px;
        background: var(--card);
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: var(--radius);
        padding: 0.75rem;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: #f1f5f9;
    }

    .hamburger {
        display: inline-flex;
    }

    #nav-toggle:checked~.nav-links {
        display: block;
    }
}

/* --------------------
           Hero
        ---------------------*/
.hero {
    text-align: center;
    padding-top: clamp(32px, 5vw, 80px);
    padding-bottom: clamp(40px, 6vw, 100px);
}

.kicker {
    display: inline-block;
    font-weight: 600;
    color: var(--brand-2);
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.05;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    color: #5b21b6;
    /* violet-800 */
}

.sub {
    color: var(--muted);
    font-size: clamp(16px, 1.45vw, 20px);
    max-width: 820px;
    margin: 0 auto 24px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    color: white;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    cursor: pointer;
}

.cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.cta:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}

/* --------------------
           Features grid
        ---------------------*/
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 14px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 10px;
    place-items: start;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--brand-2);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.20);
}

.card h3 {
    margin: 0;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* --------------------
           About section
        ---------------------*/
.about {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(124, 58, 237, 0.0));
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}

.about h2 {
    text-align: center;
    font-size: clamp(24px, 3.2vw, 36px);
    margin: 0 0 16px;
}

.about .intro {
    text-align: center;
    color: var(--muted);
    max-width: 820px;
    margin: 0 auto 26px;
}

.list {
    display: grid;
    gap: 14px;
    max-width: 840px;
    margin: 0 auto;
}

.list .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
}

.list .term {
    font-weight: 700;
}

.list .desc {
    color: var(--muted);
}

/* --------------------
           Footer
        ---------------------*/
footer {
    padding: 40px 0;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links .separator {
    color: var(--muted);
    font-weight: 300;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* A11y: reduce motion */
@media (prefers-reduced-motion: reduce) {

    .cta,
    .card {
        transition: none;
    }
}

/* Mobile: larger tap target for hamburger */
@media (max-width: 820px) {
    .nav {
        height: 72px;
    }

    .hamburger {
        width: 56px;
        height: 56px;
        font-size: 30px;
    }

    .nav-links {
        top: 72px;
    }
}

/* Progress */
.progress {
    display: grid;
    gap: 4px;
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bar>i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    border-radius: 999px;
    transition: width .3s ease;
}

.row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

/* Question card */
.q-card {
    background: var(--card);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 18px;
}

.q-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.chip {
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
}

.q-title {
    font-size: 18px;
    margin: 12px 0 6px;
    letter-spacing: -.01em;
}

.q-desc {
    color: var(--muted);
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
}

/* Choices */
.choices {
    display: grid;
    gap: 12px;
}

.choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.choice:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.choice .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.choice .hint {
    color: var(--muted);
    font-size: 13px;
}

/* Hover tint (desktop) */
@media (hover: hover) {
    .choice[data-val="yes"]:hover {
        background: var(--green-bg);
        border-color: var(--green-br);
    }

    .choice[data-val="no"]:hover {
        background: var(--red-bg);
        border-color: var(--red-br);
    }
}

/* Selected states */
.choice.selected.yes {
    background: var(--green-bg);
    border-color: var(--green-br);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .2) inset;
}

.choice.selected.no {
    background: var(--red-bg);
    border-color: var(--red-br);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, .18) inset;
}

/* Bottom actions */
.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
    margin: 18px 0 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
}

.btn[disabled] {
    opacity: .5;
    pointer-events: none;
}

.btn.primary {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

/* --------------------
           About Page
        ---------------------*/
.story {
    padding: 4rem 0;
    background: var(--bg-soft);
}

.story .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.story h2 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    margin: 0 0 2rem;
    text-align: center;
    color: var(--text);
}

.story-content {
    display: grid;
    gap: 2rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
}

.story-text p {
    margin: 0 0 1.5rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Make external links more visible on this background */
.story-text a {
    color: var(--brand-2);
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive design for story section */
@media (max-width: 768px) {
    .story {
        padding: 3rem 0;
    }
}

/* --------------------
           Privacy Page
        ---------------------*/
.privacy {
    padding: 4rem 0;
    background: var(--bg-soft);
}

.privacy .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.privacy h2 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    margin: 0 0 2rem;
    text-align: center;
    color: var(--text);
}

.privacy-content {
    display: grid;
    gap: 2rem;
}

.privacy-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.privacy-text p {
    margin: 0 0 1.5rem;
}

.privacy-text p:last-child {
    margin-bottom: 0;
}

.privacy-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text);
    border-bottom: 2px solid var(--brand-3);
    padding-bottom: 0.5rem;
}

.privacy-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.8rem;
    color: var(--text);
}

.privacy-text ul {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.privacy-text li {
    margin: 0.5rem 0;
}

.privacy-text a {
    color: var(--brand-2);
    text-decoration: underline;
    font-weight: 600;
}

.privacy-text a:hover {
    color: var(--brand);
}

.privacy-text .last-updated {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive design for privacy section */
@media (max-width: 768px) {
    .privacy {
        padding: 3rem 0;
    }
    
    .privacy-text h3 {
        font-size: 1.3rem;
        margin: 2rem 0 0.8rem;
    }
    
    .privacy-text h4 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.6rem;
    }
}