/* Styles of all sections of the index page */
.hero {
    display: flex;
    height: var(--height-hero);
    margin: 0 auto;
    justify-content: center;
    align-items: center;

    background-color: var(--color-medium-blue);
    background-image: url("/images/materiel_photo.webp");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% auto;

    border-bottom: 10px solid var(--color-bright-blue)
}

@media(max-width: 48rem) {
    .hero {
        background-size: auto 100%;
    }
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-logo);
    font-size: 10pt;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-bright-grey);
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: min(100%, 60rem);
}

@media (max-width: 48rem) {
    .hero-card { padding: 0 2rem; }
}

.hero h1 {
    font-family: var(--font-logo);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--color-bright-blue);
}

.hero p {
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: white;
    line-height: 1;
}

.hero-btns {
  display: flex;
  gap: 0.65rem;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background-color: white;
  color: var(--color-dark-grey);
  border-color: var(--color-dark-grey);
}

.hero-btn-primary:hover {
  background: var(--color-bright-blue);
  border-color: white;
  color: #fff;
}

.hero-btn-ghost {
  background: transparent;
  color: var(--color-bright-grey);
  border-color: var(--color-bright-grey);
}

.hero-btn-ghost:hover {
  background: white;
  border-color: white;
  color: var(--color-bright-blue);
}

/*** Other sections ***/
.divider {
  height: 1px;
  background: var(--color-medium-blue);
  margin: 0 2rem;
}

.section {
    padding: 4rem 2rem;
    max-width: min(100%, 80rem);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-logo);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-medium-grey);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-logo);
    font-size: 20pt;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-text);
    font-size: 10pt;
    font-weight: 500;
    color: var(--color-text-muted);
}


/* FEATURES */
.feat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 65rem;
    margin-inline: auto;
}

.feature {
    --img-col: 8rem;
    display: grid;
    grid-template-columns: var(--img-col) 1fr;
    grid-template-areas: "img text";
    gap: 1rem;
    align-items: center;

    background: var(--color-bright-grey);
    border: 0.5px solid #000;
    border-radius: 5px;
    padding: 1rem;
}

.feature .feat-img  { grid-area: img; }
.feature .feat-text { grid-area: text; }

.feature h3 { margin: 0 0 0.4rem; font-family: var(--font-logo); }
.feature p  { margin: 0; }

.feature:nth-child(even) {
    grid-template-columns: 1fr var(--img-col);
    grid-template-areas: "text img";
}

@media (min-width: 48rem) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }

    .feature:nth-child(even) {
        grid-template-columns: var(--img-col) 1fr;
        grid-template-areas: "img text";
    }

    .feature:nth-child(4n+2),
    .feature:nth-child(4n+3) {
        grid-template-columns: 1fr var(--img-col);
        grid-template-areas: "text img";
    }
}

@media (max-width: 30rem) {
    .feature,
    .feature:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas: "img" "text";
    }
}


.feature-plain {
    display: grid; align-content: center; min-height: 10rem;
    padding: 0 1rem;
    text-align: center;

    background: var(--color-bright-grey);
    border: 0.5px solid #000;
    border-radius: 5px;
}

.feature-plain h3 { margin: 0 0 0.4rem; font-family: var(--font-logo); }
.feature-plain p  { margin: 0; }


.feat-img {
    position: relative; isolation: isolate; width: 100%; overflow: hidden;
}

.feat-img img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}

.is-soon img { filter: contrast(1.1) blur(1.5px); }

.is-soon::before {
    content: ""; position: absolute; inset: 0;
    background-color: white; mix-blend-mode: multiply;
}

.soon-badge {
    position: absolute; inset: 0.6rem;
    display: grid; place-items: center;
    border: 2px solid var(--color-bright-blue);
    color: var(--color-bright-blue); font-family: var(--font-logo); font-size: 1.1rem;
}

/*** ROADMAP ***/
.roadmap {
    --gap: 1.5rem;
    --dot: 1rem;
    
    list-style: none; margin: 0; padding: 0;
    display: grid;
    gap: 1.5rem;
}

.step {
    position: relative; padding-left: 3rem;
}

.step::before {
    content: ""; position: absolute; z-index: 1; left: 1rem; top: 1.2rem;
    width: var(--dot); height: var(--dot);
    box-sizing: border-box;
    transform: translateX(50%);
    border-radius: 50%; background-color: var(--color-medium-grey);
    border: 2px solid var(--color-dark-grey);
}
.step.done::before { background-color: var(--color-bright-blue); border-color: var(--color-bright-blue); }
.step.current::before { background-color: var(--color-bright-blue); box-shadow: 0 0 0 0.3rem rgb(9 174 237 / 0.25); }

.step::after {
    content: ""; position: absolute; z-index: 0; left: 1rem; top: calc(1.2rem + var(--dot) / 2); height: calc(100% + var(--gap));
    border-left: 2px solid var(--color-medium-blue);
}
.step:last-child::after {
    height: calc(100% - 1.2rem - var(--dot) / 2);
    border-left-style: dashed;
}

.step-card {
    background-color: var(--color-bright-grey);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.step-card time { font-size: 0.8rem; color: var(--color-medium-grey); }
.step-card h3 { margin: 0.2rem 0 0.4rem; font-family: var(--font-logo); font-size: 1.05rem; }
.step-card p { margin: 0 0 0.75rem; }

.step .badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 1rem;
    background-color: var(--color-medium-grey);
}
.step.done .badge { background-color: var(--color-bright-blue); color: white; }
.step.current .badge { background-color: var(--color-medium-blue); color: white; }

@media(min-width: 48rem) {
    .roadmap {
        grid-auto-flow: column;
        grid-auto-columns: minmax(8rem, 10rem);
        justify-content: center;
        overflow-x: auto;
        padding: 0 0 1rem;
    }

    .roadmap::after { content: ""; }

    .step {
        padding: 0; 
        display: grid; grid-template-rows: 1fr var(--dot) 1fr; row-gap: 0.75rem;
    }
    .step:nth-child(odd) .step-card { grid-row: 3; align-self: start; }
    .step:nth-child(even) .step-card { grid-row: 1; align-self: end; }

    .step-card { width: calc(125%); }

    .step::before { left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .step::after {
        left: 50%;
        top: 50%;
        width: calc(100% + var(--gap));
        height: 0;
        border-left: 0; border-top: 2px solid var(--color-medium-blue);
        transform: translateY(-50%);
    }
    .step:last-child::after {
        width: 50%;
        height: 0;
        border-left: 0; border-top: 2px dashed var(--color-medium-blue);
    }
}


/* PRICING */
.price-wrapper {
    display: grid;
    width: max(100%, 38rem);
}

.price-grid {
    grid-area: 1/1;
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 1rem;
}

.price-card {
    background: var(--color-bright-grey);
    border: 0.5px solid var(--color-bright-blue);
    border-radius: 5px;
}

.price-card h3 {
    font-family: var(--font-logo);
    font-size: 16pt;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 0.75rem;
    text-shadow: 0 0 5px #fff;
}

.price-card p {
    font-family: var(--font-text);
    font-size: 10pt;
    color: var(--color-text-feat);
    text-align: justify;
    line-height: 1.6;
    padding: 0.75rem;
}

.price-free {
    grid-area: 1/1;
    width: max(90%, 20rem);
    background: rgba(250, 250, 250, 0.85);
    border: 0.5px solid red;
    border-radius: 5px;
    margin: auto;
}

.price-free h3 {
    font-family: var(--font-logo);
    font-size: 16pt;
    color: red;
    line-height: 1.6;
    padding: 2.25rem;
    text-align: center;
}

.price-btns {
    margin-top: 10vh;
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-price {
    background: transparent;
    border-color: var(--color-dark-grey);
    color: var(--color-dark-grey);
}

.btn-price:hover {
    color: var(--color-bright-blue);
    border-color: var(--color-bright-blue);
}