
/* ==========================================================
   INVOMIZE AMAZON FBA — PREMIUM PRICING EXAMPLE
   Uses locally hosted Inter and SF Pro Display fonts

   - Premium gradient container
   - Glass-style invoice table
   - Clear financial information hierarchy
   - Mobile breakdown cards
   - Accessible responsive typography
   ========================================================== */

/* ==========================================================
   01. RESET AND VARIABLES
   ========================================================== */

.iaf-pricing-example {
    --pe-navy: #16232B;
    --pe-mint: #49B99A;
    --pe-yellow: #F5C842;
    --pe-white: #FFFFFF;

    width: 100%;
    margin: 0;
    padding: 45px 24px 80px;

    background: #FFFFFF;

    font-family: var(
        --iaf-font-body,
        "Invomize Inter",
        Arial,
        sans-serif
    );
}

.iaf-pricing-example,
.iaf-pricing-example *,
.iaf-pricing-example *::before,
.iaf-pricing-example *::after {
    box-sizing: border-box;
}

/* ==========================================================
   02. PREMIUM GRADIENT CONTAINER
   ========================================================== */

.iaf-pricing-example__container {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 1425px;
    min-width: 0;

    margin: 0 auto;
    padding: 75px clamp(35px, 5vw, 80px) 65px;

    background:
        radial-gradient(
            ellipse at 5% 0%,
            rgba(255, 255, 255, 0.14),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 98% 100%,
            rgba(18, 41, 60, 0.16),
            transparent 50%
        ),
        linear-gradient(
            155deg,
            #49B99A 0%,
            #4B9D96 42%,
            #527995 100%
        );

    border: 1px solid rgba(30, 84, 92, 0.16);
    border-radius: 28px;

    color: #FFFFFF;

    box-shadow:
        0 8px 25px rgba(22, 35, 43, 0.055),
        0 20px 55px rgba(22, 35, 43, 0.06);

    overflow: hidden;
}

/* Soft decorative background glow */

.iaf-pricing-example__container::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -200px;
    right: -200px;

    width: 600px;
    height: 600px;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.11),
        transparent 70%
    );

    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================
   03. SECTION HEADING
   ========================================================== */

/* Pricing Example — Consistent Global Section Heading */

.iaf-pricing-example__title {
    max-width: 1000px;

    margin: 0 0 17px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(35px, 3.5vw, 49px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;

    color: #FFFFFF;
    text-wrap: balance;
}

/* ==========================================================
   04. INTRODUCTION
   ========================================================== */

.iaf-pricing-example__intro {
    max-width: 900px;

    margin: 0 0 38px;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.012em;

    color: rgba(255, 255, 255, 0.93);
}

/* ==========================================================
   05. INVOICE TABLE SURFACE
   ========================================================== */

.iaf-pricing-example__table-wrap {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 12px 24px;

    background: rgba(255, 255, 255, 0.085);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(16, 49, 64, 0.055);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* ==========================================================
   06. TABLE STRUCTURE
   ========================================================== */

.iaf-pricing-example__table {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;

    background: transparent;

    font-family: var(--iaf-font-body);
    font-size: 16px;
    line-height: 1.45;

    color: #FFFFFF;
}

.iaf-pricing-example__table th,
.iaf-pricing-example__table td {
    margin: 0;

    padding: 24px 14px;

    background: transparent;
    border: none;
    border-bottom: 1px solid
        rgba(255, 255, 255, 0.23);

    font-family: var(--iaf-font-body);
    color: #FFFFFF;

    vertical-align: middle;
}

/* ==========================================================
   07. COLUMN WIDTHS
   ========================================================== */

/* Month / description */

.iaf-pricing-example__table
:is(th, td):nth-child(1) {
    width: 46%;

    padding-left: 8px;
    text-align: left;
}

/* Baseline */

.iaf-pricing-example__table
:is(th, td):nth-child(2) {
    width: 16%;
    text-align: center;
}

/* Actual sales */

.iaf-pricing-example__table
:is(th, td):nth-child(3) {
    width: 18%;
    text-align: center;
}

/* Agency fee */

.iaf-pricing-example__table
:is(th, td):nth-child(4) {
    width: 20%;

    padding-right: 8px;
    text-align: right;
}

/* ==========================================================
   08. TABLE HEADER
   ========================================================== */

.iaf-pricing-example__table thead th {
    padding-top: 16px;
    padding-bottom: 17px;

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.42);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.035em;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.8);

    white-space: nowrap;
}

/* ==========================================================
   09. TABLE BODY
   ========================================================== */

.iaf-pricing-example__table tbody td {
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.012em;

    color: rgba(255, 255, 255, 0.94);
}

.iaf-pricing-example__table
tbody td:first-child {
    font-weight: 500;

    color: #FFFFFF;
}

/* Actual sales */

.iaf-pricing-example__table
tbody td:nth-child(3) {
    font-weight: 500;
}

/* Fee column — stronger hierarchy */

.iaf-pricing-example__table
tbody td:last-child {
    font-weight: 500;
    color: #FFFFFF;
}

/* Subtle row hover */

.iaf-pricing-example__table tbody tr {
    transition: background-color 0.25s ease;
}

.iaf-pricing-example__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.085);
}

/* Final row */

.iaf-pricing-example__table
tbody tr:last-child td {
    border-bottom: none;
}

/* Prevent uncomfortable text wrapping in numbers */

.iaf-pricing-example__table
tbody td:nth-child(2),
.iaf-pricing-example__table
tbody td:nth-child(3) {
    white-space: nowrap;

    font-variant-numeric: tabular-nums;
}

/* ==========================================================
   10. SUPPORTING NOTE
   ========================================================== */

.iaf-pricing-example__note {
    max-width: 1050px;

    margin: 27px 0 0;
    padding: 0 0 0 17px;

    border-left: 3px solid
        rgba(245, 200, 66, 0.85);

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.005em;

    color: rgba(255, 255, 255, 0.91);
}

/* ==========================================================
   11. PREMIUM CTA
   ========================================================== */

.iaf-pricing-example__cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 36px 0 0;
}

.iaf-pricing-example__cta {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 285px;
    min-height: 60px;

    margin: 0;
    padding: 17px 34px;

    background: #F5C842;

    border: 1px solid #F5C842;
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;

    color: #16232B;

    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 5px 0 rgba(22, 35, 43, 0.10),
        0 12px 25px rgba(22, 35, 43, 0.12);

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.iaf-pricing-example__cta:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;

    color: #16232B;
    text-decoration: none;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(22, 35, 43, 0.17);
}

.iaf-pricing-example__cta:active {
    transform: translateY(-1px);
}

.iaf-pricing-example__cta:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 5px;
}

/* ==========================================================
   12. SMALL DESKTOP
   ========================================================== */

@media (max-width: 1199px) {

    .iaf-pricing-example {
        padding: 35px 24px 70px;
    }

    .iaf-pricing-example__container {
        padding: 60px 45px 55px;
        border-radius: 25px;
    }

    .iaf-pricing-example__table-wrap {
        padding: 10px 17px;
    }

    .iaf-pricing-example__table th,
    .iaf-pricing-example__table td {
        padding: 21px 10px;
    }

    .iaf-pricing-example__table thead th {
        font-size: 12px;
    }

    .iaf-pricing-example__table tbody td {
        font-size: 14px;
    }
}

/* ==========================================================
   13. TABLET
   ========================================================== */

@media (max-width: 900px) {

    .iaf-pricing-example {
        padding: 30px 22px 60px;
    }

    .iaf-pricing-example__container {
        padding: 48px 30px 45px;
        border-radius: 22px;
    }

    .iaf-pricing-example__title {
        font-size: clamp(29px, 4.4vw, 39px);
    }

    .iaf-pricing-example__intro {
        margin-bottom: 30px;

        font-size: 15px;
    }

    .iaf-pricing-example__table-wrap {
        padding: 9px 13px;
        border-radius: 16px;
    }

    .iaf-pricing-example__table
    :is(th, td):nth-child(1) {
        width: 40%;
    }

    .iaf-pricing-example__table
    :is(th, td):nth-child(2) {
        width: 17%;
    }

    .iaf-pricing-example__table
    :is(th, td):nth-child(3) {
        width: 20%;
    }

    .iaf-pricing-example__table
    :is(th, td):nth-child(4) {
        width: 23%;
    }

    .iaf-pricing-example__table thead th {
        font-size: 11px;
    }

    .iaf-pricing-example__table tbody td {
        font-size: 13px;
        line-height: 1.5;
    }

    .iaf-pricing-example__note {
        font-size: 13px;
    }
}

/* ==========================================================
   14. MOBILE — INVOICE BREAKDOWN CARDS
   ========================================================== */

@media (max-width: 767px) {

    /* Section */

    .iaf-pricing-example {
        padding: 25px 14px 50px;
    }

    /* Gradient container */

    .iaf-pricing-example__container {
        padding: 40px 19px 45px;

        background:
            radial-gradient(
                ellipse at 5% 0%,
                rgba(255, 255, 255, 0.10),
                transparent 55%
            ),
            linear-gradient(
                160deg,
                #49B99A 0%,
                #4B9997 50%,
                #527995 100%
            );

        border-radius: 20px;
    }

    /* Heading */

    .iaf-pricing-example__title {
        margin-bottom: 16px;

        font-size: clamp(27px, 7vw, 36px);
        line-height: 1.16;
        letter-spacing: -0.035em;
    }

    /* Intro */

    .iaf-pricing-example__intro {
        margin-bottom: 28px;

        font-size: 14px;
        line-height: 1.6;
    }

    /* Remove desktop glass table surface */

    .iaf-pricing-example__table-wrap {
        width: 100%;

        padding: 0;
        margin: 0;

        background: transparent;
        border: none;
        border-radius: 0;

        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Convert native table rows into mobile cards */

    .iaf-pricing-example__table,
    .iaf-pricing-example__table tbody,
    .iaf-pricing-example__table tr,
    .iaf-pricing-example__table td {
        display: block;
        width: 100%;
    }

    /* Keep the table headings accessible */

    .iaf-pricing-example__table thead {
        position: absolute;

        width: 1px;
        height: 1px;

        overflow: hidden;

        clip: rect(0 0 0 0);
        clip-path: inset(50%);

        white-space: nowrap;
    }

    /* One card per billing month */

    .iaf-pricing-example__table tbody tr {
        position: relative;

        display: block;

        width: 100%;
        margin: 0 0 15px;
        padding: 19px 18px;

        background: rgba(255, 255, 255, 0.12);

        border: 1px solid
            rgba(255, 255, 255, 0.30);

        border-radius: 16px;

        box-shadow:
            0 5px 18px rgba(22, 35, 43, 0.045);
    }

    .iaf-pricing-example__table
    tbody tr:last-child {
        margin-bottom: 0;
    }

    /* All mobile cells */

    .iaf-pricing-example__table
    tbody td,
    .iaf-pricing-example__table
    tbody td:nth-child(n) {
        display: flex;
        align-items: baseline;
        justify-content: space-between;

        gap: 12px;

        width: 100%;

        margin: 0;
        padding: 9px 0;

        background: transparent;

        border: 0;

        font-family: var(--iaf-font-body);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;

        text-align: right;
        white-space: normal;

        overflow-wrap: anywhere;
        font-variant-numeric: tabular-nums;
    }

    /* Month title — top of each card */

    .iaf-pricing-example__table
    tbody td:first-child,
    .iaf-pricing-example__table
    tbody td:nth-child(1) {
        display: block;

        width: 100%;
        margin: 0 0 10px;
        padding: 0 0 15px;

        border-bottom: 1px solid
            rgba(255, 255, 255, 0.30);

        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;

        color: #FFFFFF;
        text-align: left;
    }

    /* Data labels from PHP data-label attributes */

    .iaf-pricing-example__table
    tbody td:not(:first-child)::before {
        content: attr(data-label);

        display: block;
        flex: 0 0 39%;

        font-size: 12px;
        font-weight: 400;
        line-height: 1.5;

        color: rgba(255, 255, 255, 0.78);

        text-align: left;
        white-space: normal;
    }

    /* Fallback labels if data-label isn't present */

    .iaf-pricing-example__table
    tbody td:nth-child(2):not([data-label])::before {
        content: "Baseline";
    }

    .iaf-pricing-example__table
    tbody td:nth-child(3):not([data-label])::before {
        content: "Actual Sales";
    }

    .iaf-pricing-example__table
    tbody td:nth-child(4):not([data-label])::before {
        content: "Our Fee";
    }

    /* Baseline value */

    .iaf-pricing-example__table
    tbody td:nth-child(2) {
        color: rgba(255, 255, 255, 0.93);
    }

    /* Actual sales */

    .iaf-pricing-example__table
    tbody td:nth-child(3) {
        font-weight: 500;
        color: #FFFFFF;
    }

    /* Fee — prominent bottom row */

    .iaf-pricing-example__table
    tbody td:last-child {
        align-items: center;

        margin-top: 11px;
        padding: 14px 12px 0;

        border-top: 1px solid
            rgba(255, 255, 255, 0.32);

        font-size: 15px;
        font-weight: 500;
        line-height: 1.4;

        color: #FFFFFF;
    }

    .iaf-pricing-example__table
    tbody td:last-child::before {
        font-weight: 500;
        color: #FFFFFF;
    }

    /* Supporting note */

    .iaf-pricing-example__note {
        max-width: 100%;

        margin-top: 25px;
        padding-left: 14px;

        font-size: 12px;
        line-height: 1.65;
    }

    /* CTA */

    .iaf-pricing-example__cta-wrap {
        margin-top: 32px;
    }

    .iaf-pricing-example__cta {
        width: 100%;
        max-width: 310px;

        min-width: 0;
        min-height: 53px;

        padding: 15px 22px;

        font-size: 15px;
    }
}

/* ==========================================================
   15. SMALL MOBILE
   ========================================================== */

@media (max-width: 375px) {

    .iaf-pricing-example {
        padding-left: 10px;
        padding-right: 10px;
    }

    .iaf-pricing-example__container {
        padding: 35px 14px 38px;
        border-radius: 17px;
    }

    .iaf-pricing-example__title {
        font-size: 26px;
    }

    .iaf-pricing-example__intro {
        font-size: 13px;
    }

    .iaf-pricing-example__table
    tbody tr {
        padding: 16px 13px;
        border-radius: 13px;
    }

    .iaf-pricing-example__table
    tbody td:first-child {
        font-size: 14px;
    }

    .iaf-pricing-example__table
    tbody td:nth-child(n) {
        gap: 8px;

        font-size: 12px;
    }

    .iaf-pricing-example__table
    tbody td:not(:first-child)::before {
        flex-basis: 38%;
        font-size: 11px;
    }

    .iaf-pricing-example__table
    tbody td:last-child {
        padding-left: 0;
        padding-right: 0;

        font-size: 13px;
    }

    .iaf-pricing-example__note {
        font-size: 11px;
    }

    .iaf-pricing-example__cta {
        font-size: 14px;
    }
}

/* ==========================================================
   16. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .iaf-pricing-example__cta,
    .iaf-pricing-example__table tbody tr {
        transition: none;
    }

    .iaf-pricing-example__cta:hover,
    .iaf-pricing-example__cta:active {
        transform: none;
    }
}
