/* =========================================================
   PEREMUS PRE-ALPHA WEBSITE
   ========================================================= */


/* ---------- Colour system ---------- */

:root {
    --blue-dark: #12365C;
    --cream: #FAF5E8;

    --yellow-accent: #F2B705;
    --blue-heading: #7FA8CC;
    --blue-secondary: #9FB3C8;

    --text-main: #24303A;
    --text-muted: #66727C;

    --line: #12365C;
}


/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Aptos,
        Calibri,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 18px;
    line-height: 1.6;

    color: var(--text-main);
    background-color: var(--cream);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* ---------- Shared layout ---------- */

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 72px 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background-color: var(--blue-dark);
    color: white;
}

.header-inner {
    min-height: 220px;

    display: flex;
    align-items: center;

    gap: 42px;

    padding-top: 36px;
    padding-bottom: 36px;
}

.site-logo {
    width: 150px;
    height: 150px;

    object-fit: contain;
    flex: 0 0 auto;
}

.header-copy {
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 8px;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--yellow-accent);
}

.header-title {
    margin: 0;

    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 700;

    color: var(--blue-heading);
}

.header-secondary {
    margin: 14px 0 0;

    max-width: 600px;

    font-size: 1.05rem;
    color: var(--blue-secondary);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background-color: var(--cream);
}

.hero h1 {
    margin: 0;

    max-width: 900px;

    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;

    font-weight: 700;
    letter-spacing: -0.025em;

    color: var(--blue-dark);
}

.hero-statement {
    margin: 26px 0 42px;

    max-width: 900px;

    font-size: clamp(1.35rem, 3vw, 2.1rem);
    line-height: 1.28;

    font-weight: 600;

    color: var(--blue-dark);
}

.intro-copy {
    max-width: 790px;
}

.intro-copy p {
    margin: 0 0 24px;
}

.intro-copy strong {
    color: var(--blue-dark);
}

.secondary-text {
    color: var(--text-muted);
}


/* =========================================================
   PRODUCT PREVIEW
   ========================================================= */

.product-preview {
    background-color: var(--blue-dark);
    color: white;

    padding-top: 38px;
    padding-bottom: 38px;
}

.preview-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(260px, 0.7fr);

    gap: 72px;

    align-items: center;
}

.section-kicker {
    color: var(--yellow-accent);
}

.preview-copy h2 {
    margin: 0 0 24px;

    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;

    color: var(--blue-heading);
}

.preview-copy p {
    max-width: 620px;

    margin: 0;

    color: var(--blue-secondary);
}

.preview-figure {
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.excel-screenshot {
    width: auto;
    height: 270px;
    max-width: 100%;

    /*object-fit: contain;*/

    border-radius: 4px;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.24);
}

.preview-figure figcaption {
    margin-top: 14px;

    font-size: 0.82rem;
    color: var(--blue-secondary);
}

.privacy-note {
    margin-top: 28px !important;
    padding-top: 22px;

    border-top: 1px solid rgba(159, 179, 200, 0.45);

    font-size: 0.95rem;
    color: var(--blue-secondary);
}

.privacy-note strong {
    color: var(--yellow-accent);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background-color: var(--cream);

    border-top: 4px solid var(--blue-dark);
}

.footer-inner {
    padding-top: 24px;
    padding-bottom: 28px;

    display: flex;
    justify-content: space-between;
    align-items: baseline;

    gap: 16px 30px;
    flex-wrap: wrap;
}

.footer-contact {
    font-weight: 600;
}

.footer-label {
    color: var(--blue-dark);
}

.footer-contact a {
    text-decoration: none;
    color: var(--blue-dark);
}

.footer-contact a:hover,
.footer-contact a:focus {
    text-decoration: underline;
}

.footer-legal {
    text-align: right;

    font-size: 0.8rem;
    line-height: 1.4;

    color: var(--text-muted);
}

.footer-legal p {
    margin: 0 0 4px;
}

/* =========================================================
   LEGAL POPOVER
   ========================================================= */
.legal-button {
    padding: 0;
    border: 0;
    background: none;

    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.02em;

    color: var(--text-muted);

    cursor: pointer;
}

.legal-button:hover,
.legal-button:focus {
    color: var(--blue-dark);
    text-decoration: underline;
}


.legal-popover {
    position: fixed;

    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);

    width: min(560px, calc(100% - 40px));
    max-height: calc(100dvh - 48px);

    overflow-y: auto;

    padding: 32px 36px;

    border: 0;
    border-top: 5px solid var(--yellow-accent);

    background-color: var(--cream);
    color: var(--text-main);

    font-size: 0.92rem;
    line-height: 1.5;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28);
}

.legal-close-x {
    position: absolute;
    top: 12px;
    right: 14px;

    padding: 2px 8px;
    border: 0;
    background: none;

    color: var(--text-muted);

    font: inherit;
    font-size: 1.5rem;
    line-height: 1;

    cursor: pointer;
}

.legal-popover h2 {
    margin: 0 0 24px;

    color: var(--blue-dark);
    font-size: 1.8rem;
}

.legal-popover h3 {
    margin: 24px 0 8px;

    color: var(--blue-dark);
    font-size: 1rem;
}

.legal-popover p {
    margin: 0 0 14px;
}

.legal-close {
    margin-top: 18px;
    padding: 8px 18px;

    border: 0;

    background-color: var(--blue-dark);
    color: white;

    font: inherit;
    cursor: pointer;
}

.legal-close-x:hover,
.legal-close-x:focus {
    color: var(--blue-dark);
} 

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    body {
        font-size: 17px;
    }

    .container {
        width: min(100% - 32px, 1120px);
    }

    .section {
        padding: 52px 0;
    }

    .header-inner {
        min-height: auto;

        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }

    .site-logo {
        width: 110px;
        height: 110px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .preview-figure {
        align-items: flex-start;
    }

    .footer-inner {
        padding-top: 20px;
        padding-bottom: 22px;
    }

    .footer-contact {
        font-size: 0.9rem;
    }

    .footer-legal {
        margin-left: auto;
        text-align: right;
    }
    .legal-popover {
        left: 12px;
        right: 12px;
        bottom: 12px;

        width: auto;
        max-height: calc(100dvh - 24px);

        transform: none;

        padding: 22px 20px;

        font-size: 0.82rem;
        line-height: 1.45;
    }

	.legal-popover h2 {
		margin-bottom: 16px;
		font-size: 1.45rem;
	}

	.legal-popover h3 {
		margin-top: 18px;
		margin-bottom: 6px;
		font-size: 0.95rem;
	}

	.legal-popover p {
		margin-bottom: 10px;
	}
}
