html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #282827;
    font-family: "Yantramanav", "Yantramanav Placeholder", sans-serif;
}

h1 {
    font-size: 80px;
    font-weight: 400;
    line-height: 100%;
}

h2 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2em;
}

h3 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2em;
}

h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
}

p {
    font-size: 20px;
    line-height: 1.2em;
}

header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    color: white;
    padding: 24px 40px;
    text-align: center;
    width: 100%;
}

header img {
    height: 40px;
}

nav {
    align-items: center;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.18) 0.120437px 0.602187px 0.614113px -1.25px, rgba(0, 0, 0, 0.16) 0.457707px 2.28853px 2.33386px -2.5px, rgba(0, 0, 0, 0.06) 2px 10px 10.198px -3.75px;
    display: flex;
    flex: 0 0 auto;
    flex-flow: row;
    gap: 4px;
    height: min-content;
    overflow: visible;
    padding: 4px;
    width: min-content;
    z-index: 1;
}

nav a {
    color: black;
    font-size: 20px;
    line-height: 1.2em;
    font-weight: 500;
    padding: 6px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

#platform {
    width: 100vw;
    height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 24px;
    padding: 40px;
    padding-right: 60vw;
}

#info {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 48px;
    padding: 40px;
    padding-left: 40vw;
    background-color: #E6F2D1;
}

#resources {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-bottom: 1px solid #282827;
}

#lastInfo {
    display: grid;
    grid-template-columns: 45% 55%;
    padding: 120px 40px;
    gap: 60px;
}

#lastInfo .inf {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#pricing {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.left {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.left img {
    width: 100%;
}

.right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    flex-direction: column;
    justify-content: center;
}

#login-link {
    background-color: #000000;
    color: white;
    border-radius: 8px;
    white-space: nowrap;
}

.advantages {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.advantage {
    height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background-color: #EDEDED;
    padding: 24px;
    gap: 8px;
    border-right: 1px solid #282827;
}

.black-button {
    border: none;
    background-color: #000000;
    color: white;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 28px;
    padding: 8px 24px;
    cursor: pointer;
}

.orange-button, .blue-button {
    border: none;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 24px;
    padding: 12px 24px;
    cursor: pointer;
    &:hover {
        transform: translateX(2px);
        transition: transform 0.4s;
    }
}

.orange-button {
    background-color: #FF6F43;
}

.blue-button {
    background-color: #4C63ED;
    color: white;
}

.flex-row-gap {
    display: flex;
    gap: 8px;
}

.right div {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 8px;
    padding: 40px 32px;
}

.greeting {
    background-color: #282827;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.greeting h2, .greeting p {
    color: white;
}

.cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between !important;
    width: 100%;
    height: 100%;
    background-color: #E5E1FC;
    cursor: pointer;
    padding: 24px;
    text-decoration: none;
}

.plans {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.original-price {
    font-size: 18px;
    font-weight: 400;
    color: #999;
    margin-bottom: -8px;
}

.original-price s {
    color: #999;
}

.launch-badge {
    display: inline-block;
    background-color: #E6F2D1;
    font-size: 18px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 4px;
    width: fit-content;
    align-self: end;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 8px;
    border-top: 1px solid #282827;
    border-right: 1px solid #282827;
}

.price-card .details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 12px
}

.keyboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keyboard button, .keyboard span {
    font-size: 48px;
    font-weight: 300;
    border: none;
    background: none;
}

.keyboard-buttons {
    display:flex;
    gap: 16px;
}

/* ── Pricing toggle ── */
#pricing-header {
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}

.billing-toggle {
    display: flex;
    gap: 4px;
    border: 2px solid #282827;
    border-radius: 100px;
    padding: 4px;
}

.billing-option {
    padding: 8px 28px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}

.billing-option.active {
    background-color: #282827;
    color: white !important;
}

.billing-option.active * {
    color: white;
}

.discount-badge {
    font-size: 13px;
    background-color: #4C63ED;
    color: white !important;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Price suffix (smaller text after price) ── */
.price-suffix {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

/* ── Agency custom plan ── */
.custom-plan-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-plan-badge {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    background-color: #4C63ED;
    color: white !important;
    padding: 4px 14px;
    border-radius: 100px;
    width: fit-content;
}

.contact-btn {
    border: 2px solid #282827;
    background: none;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 24px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.contact-btn:hover {
    background-color: #282827;
    color: white;
}

/* ── Tier table inside agency card ── */
.tier-table {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 16px;
    font-size: 15px;
    color: #666;
    padding: 8px 0;
}

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile
   ========================================================================== */

/* Avoid horizontal scroll from vw-based paddings on any viewport */
body {
    overflow-x: hidden;
}

/* ── Tablet & small desktop (≤ 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
    h1 { font-size: 56px; }
    h2 { font-size: 40px; }
    h3 { font-size: 28px; }

    header {
        padding: 20px 24px;
    }

    /* Reduce the asymmetric whitespace so text gets room to breathe */
    #platform {
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 24px;
        padding-right: 35vw;
    }

    #info {
        padding: 24px;
        padding-left: 30vw;
        gap: 32px;
    }

    /* Stack the resources split (image + intro) into one column */
    #resources {
        grid-template-columns: 1fr;
    }

    .right {
        grid-template-rows: auto auto;
    }

    .cta {
        min-height: 320px;
    }

    /* Stack the last info split */
    #lastInfo {
        grid-template-columns: 1fr;
        padding: 80px 24px;
        gap: 32px;
    }

    /* Empty decorative placeholder column adds only dead space when stacked */
    #lastInfo > div:last-child {
        display: none;
    }
}

/* ── Small tablet / large phone (≤ 768px) ────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 44px; }
    h2 { font-size: 34px; }
    h3 { font-size: 24px; }
    h5 { font-size: 18px; }
    p  { font-size: 17px; }

    nav a {
        font-size: 17px;
        padding: 6px 12px;
    }

    /* Hide in-page section anchors on small screens; keep the login CTA */
    nav a:not(#login-link) {
        display: none;
    }

    #platform {
        padding: 20px;
        padding-right: 20px;
        min-height: calc(100vh - 76px);
        gap: 16px;
    }

    #info {
        padding: 20px;
        padding-left: 20px;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    /* Advantage cards in a single column with a bottom divider */
    .advantages {
        grid-template-columns: 1fr;
    }

    .advantage {
        height: auto;
        min-height: 280px;
        border-right: none;
        border-bottom: 1px solid #282827;
    }

    /* One pricing card per row */
    #pricing {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 40px 24px;
        border-right: none;
    }

    .right div {
        padding: 32px 24px;
    }

    .black-button {
        font-size: 22px;
        padding: 8px 20px;
    }

    .orange-button, .blue-button {
        font-size: 20px;
        padding: 10px 20px;
    }
}

/* ── Mobile (≤ 480px) ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 21px; }
    p  { font-size: 16px; }

    header {
        padding: 16px;
    }

    header img {
        height: 32px;
    }

    #platform {
        padding: 16px;
        min-height: calc(100vh - 64px);
    }

    #info,
    #lastInfo {
        padding-left: 16px;
        padding-right: 16px;
    }

    #lastInfo {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .price-card {
        padding: 32px 20px;
    }

    /* Shrink the agency quantity stepper so it never overflows the card */
    .keyboard button, .keyboard span {
        font-size: 36px;
    }

    .billing-option {
        padding: 8px 18px;
        font-size: 18px;
    }

    .launch-badge {
        font-size: 16px;
    }

    .black-button {
        font-size: 20px;
    }
}