/*////////////////////////////////////////////////////////////////////////////////////////////
                        THE NEW CSS RESET
////////////////////////////////////////////////////////////////////////////////////////////*/
/***
    The new CSS reset - version 1.11.2 (last updated 15.11.2023)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/

*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    background: #f3efe6;
}

a,
button {
    cursor: revert;
}

ol,
ul,
menu,
summary {
    list-style: none;
}

img {
    max-inline-size: 100%;
    max-block-size: 100%;
    display: block;
}

table {
    border-collapse: collapse;
}

input,
textarea {
    -webkit-user-select: auto;
}

textarea {
    white-space: revert;
}

meter {
    -webkit-appearance: revert;
    appearance: revert;
}

:where(pre) {
    all: revert;
    box-sizing: border-box;
}

::placeholder {
    color: unset;
}

:where([hidden]) {
    display: none;
}

:where([contenteditable]:not([contenteditable="false"])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    -webkit-user-select: auto;
}

:where([draggable="true"]) {
    -webkit-user-drag: element;
}

:where(dialog:modal) {
    all: revert;
    box-sizing: border-box;
}

::-webkit-details-marker {
    display: none;
}

/*////////////////////////////////////////////////////////////////////////////////////////////
                        CPG GLOBAL STYLES
////////////////////////////////////////////////////////////////////////////////////////////*/

:root {
    --ink: #07110f;
    --ink-soft: #11201c;
    --paper: #f3efe6;
    --paper-bright: #fbfaf6;
    --surface: #ffffff;
    --surface-soft: #eef3ee;
    --muted: #5e6f68;
    --muted-strong: #40524b;
    --line: rgba(7, 17, 15, 0.12);
    --line-strong: rgba(7, 17, 15, 0.22);
    --white-line: rgba(255, 255, 255, 0.12);
    --accent: #20e39a;
    --accent-strong: #15bf81;
    --accent-blue: #30a3ff;
    --accent-warm: #ff7b44;
    --shadow-soft: 0 18px 45px rgba(7, 17, 15, 0.08);
    --shadow-strong: 0 24px 80px rgba(7, 17, 15, 0.2);
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 18px;
    --container: min(1180px, calc(100% - 3rem));
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f5ef 0%, #f3efe6 100%);
    color: var(--ink);
    font-family: "Public Sans", sans-serif;
    line-height: 1.6;
}

body::before {
    content: none;
}

main,
section,
header,
footer,
nav,
article,
aside,
form {
    display: block;
}

main {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Newsreader", serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6.2vw, 5.1rem);
}

h2 {
    font-size: clamp(2.1rem, 3.8vw, 3.5rem);
}

h3 {
    font-size: clamp(1.22rem, 1.75vw, 1.48rem);
}

h4,
h5,
h6 {
    font-size: 1rem;
}

p {
    color: var(--muted);
    font-size: 1rem;
}

strong {
    font-weight: 700;
}

section {
    padding: clamp(5rem, 7vw, 7.5rem) 0;
    position: relative;
}

ul {
    margin: 0;
    padding: 0;
}

.container,
.flexContainer {
    width: min(1080px, calc(100% - 4rem));
    margin: 0 auto;
}

.flexContainer {
    display: flex;
    gap: 1.5rem;
}

.flexColumn {
    flex: 1 1 0;
}

.vertical {
    display: flex;
    flex-direction: column;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--muted-strong);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 2.75rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(32, 227, 154, 0.1) 100%);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.5rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.button:hover {
    transform: translateY(-2px);
}

.buttonPrimary {
    background: linear-gradient(135deg, var(--accent) 0%, #79ffc7 100%);
    color: var(--ink);
    box-shadow: 0 16px 34px rgba(32, 227, 154, 0.24);
}

.buttonGhost {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sectionHeading {
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.sectionHeading p:last-child {
    margin-top: 1.2rem;
}

.compactHeading {
    margin-bottom: 2.4rem;
}

.siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    padding: 1rem 0;
    background: linear-gradient(180deg, rgba(7, 17, 15, 0.94), rgba(7, 17, 15, 0.78));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.header-spacer {
    height: 104px;
}

.headerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brandMark {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brandBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    flex: 0 0 auto;
    border-radius: 1.5rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(7, 17, 15, 0.18);
}

.brandText {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brandName {
    color: #ffffff;
    font-family: "Public Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brandTag {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.siteNav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.siteNav a,
.siteNav .navUser {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.siteNav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.navOutline {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.navUser {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.navButton {
    background: linear-gradient(135deg, var(--accent) 0%, #79ffc7 100%);
    color: var(--ink) !important;
    box-shadow: 0 16px 34px rgba(32, 227, 154, 0.24);
}

.navButton:hover {
    background: linear-gradient(135deg, #7effc6 0%, var(--accent) 100%) !important;
}

.navToggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    color: #ffffff;
}

.navToggle span {
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.siteHeader.is-open .navToggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.siteHeader.is-open .navToggle span:nth-child(2) {
    opacity: 0;
}

.siteHeader.is-open .navToggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.siteFooter {
    position: relative;
    z-index: 1;
    padding: 0 0 2.25rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(48, 163, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #07110f 0%, #0d1714 100%);
    color: #ffffff;
    overflow: hidden;
}

.siteFooter p,
.siteFooter a {
    color: rgba(255, 255, 255, 0.72);
}

.footerLead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: 4.5rem 0 3rem;
    border-bottom: 1px solid var(--white-line);
}

.footerIntro {
    max-width: 720px;
}

.footerEyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.footerEyebrow::before {
    background: linear-gradient(90deg, rgba(32, 227, 154, 0.95) 0%, rgba(32, 227, 154, 0.1) 100%);
}

.footerIntro h2 {
    color: #ffffff;
    max-width: 9ch;
}

.footerIntro p:last-child {
    margin-top: 1rem;
    max-width: 58ch;
}

.footerGrid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.5rem 0;
}

.footerBrandCard,
.footerLinkColumn {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.footerBrandCard {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
}

.footerBrandBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.4rem;
    height: 5.4rem;
    padding: 0.8rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.96);
}

.footerBrandCopy h3,
.footerLinkColumn h5 {
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.footerLinkColumn {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footerLinkColumn a:hover {
    color: #ffffff;
}

.footerMeta {
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.footerBase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--white-line);
}

.footerBase a {
    color: #ffffff;
}

.legalPage main,
.marketingPage main,
.authPage main {
    position: relative;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 1120px) {
    .siteNav {
        gap: 0.25rem;
    }

    .siteNav a,
    .siteNav .navUser {
        padding-inline: 0.8rem;
        font-size: 0.88rem;
    }

    .footerGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 960px) {
    .header-spacer {
        height: 94px;
    }

    .brandTag {
        display: none;
    }

    .navToggle {
        display: inline-flex;
    }

    .siteNav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1.5rem;
        right: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.5rem;
        background: rgba(7, 17, 15, 0.98);
        box-shadow: var(--shadow-strong);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .siteHeader.is-open .siteNav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .siteNav a,
    .siteNav .navUser {
        width: 100%;
        justify-content: center;
    }

    .footerLead,
    .footerBase {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 720px) {
    :root {
        --container: min(100% - 1.5rem, 1180px);
    }

    .headerInner {
        gap: 1rem;
    }

    .brandText {
        display: none;
    }

    .footerGrid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footerBrandCard {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}
