@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap);

:root{
    --bcol: #0F172A;
    --pcol: #1E293B;
    --scol: #475569;
    --lcol: #0d45fd;
    --lcol2: #0a3de4;
}

html * { box-sizing: border-box; }

body {
    font-family: system-ui, sans-serif;
    font-size: 100%;
    margin: 0;
    background-color: var(--bcol);
}

/* ---------- Header / Nav ---------- */
header {
    background-color: var(--bcol);
    flex-direction: column;
    position: relative;
    height: 75px;
    margin-bottom: 5px;
    align-items: center;
    justify-content: center;
}

.logo{
    display: flex;
    letter-spacing: 2px;
}

.logo a{
    font-size: 36px;
    font-family: Inter;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 20px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bcol);
    padding: 0;
    position: relative;
}

/* Desktop menu */
.nav-links {
    list-style: none; 
    display: flex; 
    margin:0;
    padding: 0;
}

.nav-links li { 
    margin-left: 20px; 
    text-align: center; 
}

.nav-links a {
    color: var(--lcol);
    text-decoration: none;
    font-size: 20px;
    text-transform: uppercase;
    display: block;
    padding: 12px 8px;
    font-family: "Space Grotesk"; 
}

.nav-links a:hover { 
    color: #fff; 
}

a.current {
	pointer-events: none;
}

/* Hidden checkbox for hamburger toggle */
#nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Hamburger button */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: var(--lcol);
    position: relative;
    transition: transform .25s ease, opacity .25s ease;
}

.hamburger span::before { 
    top: -7px; position: relative; 
}

.hamburger span::after    { 
    top:    7px; position: relative; 
}

/* ---------- Banner image ---------- */
.cards{
    background-image: url("images/pile_cards.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ---------- Welcome bar ---------- */
.bar{
    background-color: var(--scol);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0 40px;
    text-align: center;
    font-size: 20px;
    font-family: Montserrat, sans-serif;
    color: #fff;
    font-weight: 600;
    line-height: 175%;
    flex-direction: column;
}

.bar > h2{ 
    margin: 0;
    margin-top: 10px;
    padding: 10px;
}

.bar > p{
    margin:0;
    font-size: large;
    padding-bottom: 20px;
}

/* ---------- Headings ---------- */
h2{
    font-family: Inter;
    text-transform: uppercase;
    text-align: center;
    color:#fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 175%;
    align-items: center;
}

h3{
    font-family: Montserrat;
    text-transform: uppercase;
}


/* ---------- Index Features ---------- */
.feature > h2{
    margin: 40px 0 16px;
    text-align: center;
}

.features{
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    color:#fff;
    text-align: center;
    font-family: Montserrat, sans-serif;
}

.features > div{
    background-color: var(--pcol);
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 1 1 320px;
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.features > div p{
    font-family: Montserrat, sans-serif;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    padding: 19px 5px 5px 5px;
}

/* ---------- Testimonials ---------- */
.testimonial > h2{
    margin: 16px 0 16px;
    text-align: center;
}

.testimonials{
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
    font-family: Montserrat, sans-serif;
}

.testimonials > div{
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    box-sizing: border-box;
}

.testimonials > div p{
    font-size: large;
    font-weight: 600;
    line-height: 120%;
    color: #000;
    text-align: left;
    margin: 0 0 0 10px;
    margin-top: 10px;
}

.testimonials > div img{
    margin: 20px 10px 10px 10px;
    max-width: 100px;
    max-height: 100px;
    border: 2px solid #000;
    border-radius: 50%;

}

.testimonials> div p:last-child{
    font-size: small;
    font-weight: 300;
    text-transform: uppercase;
    text-align: left;
    line-height: 140%;
    color: var(--bcol);
    margin: 0 0 0 10px;
    display: inline-block;

}
/* ---------- Buttons ---------- */
.signup{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

button{ 
    border-radius: 5px;
    border: none;
    display: inline-block;
    width: 200px;
    height: 45px;
    padding: 6px 12px;
    background-color: var(--lcol);
    font-family: Inter;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: #fff;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 50px;
    transition-duration: 0.4s;
    cursor: pointer;
}

button:hover{
    background-color: var(--lcol2);
    color: #fff;
}


/* ---------- Footer ---------- */
footer {
    background-color: #475569;
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding: 0 -5px;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
}

footer p {
    color: #fff;
    margin: 0; 
    padding-left: 1em;
}

.social-media {
    list-style: none;
    margin: 0;
    padding-right: 1em;
    display: flex; 
    gap: 15px;
}

.social-media li img {
    height: 38px;
    width: 38px; 
    width: auto;
    padding: 10px;
}

/*--------Features Page---------*/

.feature > h2{
    margin: 40px 0 16px;
    text-align: center;
}

.functions{
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    color:#fff;
    text-align: center;
    font-family: Montserrat, sans-serif;
}

.functions > div{
    background-color: var(--pcol);
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 1 1 320px;
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.functions > div p{
    font-family: Montserrat, sans-serif;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    padding: 20px 5px 5px 5px;
}

.examples{
    margin-top: auto;
    margin-bottom: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.icons{
    display: block;
    margin: 12px 0 24px 0;
    width: 56px;
    height: 56px;
    padding-bottom: 20px;
}

/*-----------Plans Pricing Page----------*/

.plans > h2{
    margin: 40px 0 16px;
    text-align: center;
}

.plans{
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    text-align: center;
    font-family: Montserrat, sans-serif;
}

.plans > div h3{
    font-family: Montserrat;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--scol);
    margin: 40px 0 16px;
    text-align: center;
}

.plans > div{
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 0 1 320px;
    max-width: 320;
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.plans > div p:first-of-type{
    color:var(--scol);
    text-align: center;
    font-family: Montserrat;
    font-size: 34px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.32px;
}

.plans > div p:nth-of-type(2){
    color: var(--scol);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
    letter-spacing: -0.32px;
}

.plans > div p:nth-of-type(3){
    color:var(--scol);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
    letter-spacing: -0.32px;
}

.plans > div p:nth-of-type(4){
    color: var(--scol);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
    letter-spacing: -0.32px;
}

.plans > div p:last-of-type{
    color:var(--scol);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
    letter-spacing: -0.32px;
}

/*-----------Sign Up Page-----------*/

fieldset {
    border: none;
}

fieldset legend {
    color: #fff;
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
    text-transform: uppercase;
    padding: 10px; 
}

.pinfo{
     display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pinfo label {
    margin: .7em 0 0 .7em;
    color: #fff;
    font-family: Montserrat;
    text-transform:uppercase;
    text-align: center;
    align-content: 50vw;    
}

.pinfo input {
	margin: .7em 0 0 1em;
    border-radius: 7.5px;
    font-family: "Space Grotesk";
    font-weight: 300;
    font-size: 16px;
    display: flex;
    width: 320px;
    height: 45px;
    align-items:center;
}

/* ---------- Mobile: Hamburger & layout ---------- */
@media (max-width: 900px) {
    /* Show hamburger, convert links to dropdown */
    .hamburger { 
        display: inline-flex; 
    }

    /* Turn the inline nav into a slide-down drawer */
    .nav-links {
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--bcol);
        display: flex;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--scol);
        max-height: 0;/* collapsed */
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .nav-links li { 
        margin: 0; 
    }
    .nav-links a {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    /* Open the menu when checked */
    #nav-toggle:checked ~ .nav-links {
        max-height: 80vh; /* enough to reveal all links */
    }

/* Animate hamburger into an "X" */
#nav-toggle:checked + .hamburger span {
transform: rotate(45deg);
}
#nav-toggle:checked + .hamburger span::before {
        transform: rotate(90deg);
        top: 0;
    }
    #nav-toggle:checked + .hamburger span::after {
        opacity: 0;
        transform: scaleX(0);
        top: 0;
    }

    /* Stack certain sections vertically on small screens */
    .features{ 
        flex-direction: column; 
    }
    .testimonials{ 
        flex-direction: column;
    }
}

/* Keyboard focus */
.hamburger:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--lcol);
    outline-offset: 2px;
}

@media (min-width: 901px) {
  .nav-links { margin-right: 20px; }
}