/* Briefing Smart - site stylesheet
   Palette/typography/card language sourced from /get/ and /invite/,
   the site's existing visual source of truth. */

:root {
    --brand-yellow: #efd62f;
    --ink: #111111;
    --text: #2c2c2c;
    --muted: #555555;
    --max-width: 800px;
    --max-width-wide: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--brand-yellow);
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 16px;
}

p {
    margin: 0 0 16px;
}

a {
    color: var(--ink);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

ul, ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

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

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Yellow canvas + centered shell, matching /get/ and /invite/'s .page/.container */

.site-body {
    flex: 1;
    padding: 32px 20px;
}

.shell {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Wider reading column for long-form content pages (FAQ, Privacy Policy,
   Terms of Use, Account Deletion), set via $pageWide in the page file. */
.shell-wide {
    max-width: var(--max-width-wide);
}

/* Header / nav - sits on the yellow canvas, above the white card */

.site-header {
    margin-bottom: 20px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(17, 17, 17, 0.35);
    border-radius: 6px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 18px;
    margin: 0 auto;
    background: var(--ink);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-item a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.nav-item a:hover {
    background: rgba(17, 17, 17, 0.08);
}

.nav-item.active a {
    background: var(--ink);
    color: #ffffff;
}

@media (max-width: 700px) {
    .site-header-inner {
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        flex-direction: column;
        width: 220px;
        gap: 4px;
        margin: 0;
        padding: 10px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
        z-index: 30;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-item a {
        display: block;
        padding: 10px 14px;
    }

    .nav-item a:hover {
        background: rgba(17, 17, 17, 0.06);
    }
}

/* Content card, matching /get/ and /invite/'s .card */

.content-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.page-content h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.page-content .updated {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 20px;
    margin-top: 32px;
}

/* Hero (home page) */

.hero {
    text-align: center;
}

.hero h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero h2 {
    font-size: 24px;
    font-weight: 500;
    max-width: 620px;
    margin: 0 auto 30px;
    color: #333333;
}

.hero h2 a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--brand-yellow);
}

.hero h2 a:hover {
    border-bottom-color: var(--ink);
}

.contact-cta {
    text-align: center;
}

/* Download buttons, matching /get/ and /invite/'s .download-button */

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 0 auto;
}

.download-button {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 10px;
    background: var(--ink);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.download-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
}

/* Compact "Get Briefing Smart" CTA at the bottom of content pages */

.page-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.page-cta h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 18px;
}

.page-cta .download-button {
    padding: 12px 20px;
    font-size: 15px;
}

/* Footer */

.site-footer {
    background: var(--ink);
    color: #f2f2f2;
}

.site-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: #f2f2f2;
    display: inline-flex;
}

.footer-social a:hover {
    color: var(--brand-yellow);
}

.footer-copy {
    color: #b8b8b8;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 600px) {
    .site-body {
        padding: 20px 14px;
    }

    .content-card {
        padding: 28px 20px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero h2 {
        font-size: 19px;
    }

    .page-content h1 {
        font-size: 27px;
    }
}
