/* =========================================================
   TELEData Upsell V0.2
   ========================================================= */

:root {
    --orange: #f5991a;
    --orange-dark: #e87912;
    --orange-soft: #fff2df;

    --black: #090909;
    --background: #f7f7f7;
    --surface: #ffffff;

    --text: #101010;
    --muted: #737373;

    --border: rgba(0, 0, 0, 0.08);

    --green: #12845b;
    --green-soft: #e8f7f1;

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 34px;

    --shadow-sm:
        0 8px 28px rgba(0, 0, 0, 0.055);

    --shadow-md:
        0 18px 50px rgba(0, 0, 0, 0.085);

    --content-width: 1180px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button,
.option-card,
.choice-chip {
    user-select: none;
}


/* TYPOGRAPHY */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;

    font-size: clamp(36px, 4.6vw, 58px);
    line-height: 1.02;

    letter-spacing: -0.045em;
}

h2 {
    font-size: 30px;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 22px;
    letter-spacing: -0.025em;
}

.eyebrow {
    color: var(--orange-dark);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.15em;
}

.text-muted {
    color: var(--muted);
}


/* APP */

.app-shell {
    min-height: 100vh;
}


/* HEADER */

.app-header {
    height: 102px;

    padding: 12px 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;

    width: auto;
    height: 76px;

    max-width: min(410px, 62vw);

    object-fit: contain;
}


/* BUTTONS */

.button {
    border: 0;
    cursor: pointer;
}

.button-small {
    padding: 11px 16px;
    border-radius: 14px;
}

.button-ghost {
    border: 1px solid var(--border);

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

    color: var(--muted);
}

.button-secondary {
    border: 1px solid var(--border);

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

    color: var(--black);
}

.button-primary {
    padding: 18px 30px;

    border-radius: 20px;

    background: var(--orange);
    color: var(--black);

    font-weight: 900;
    font-size: 17px;

    box-shadow:
        0 14px 32px rgba(245, 153, 26, 0.24);
}


/* PROGRESS */

.progress-section {
    padding: 0 34px 8px;
}

.progress-info {
    margin-bottom: 8px;

    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 12px;
    font-weight: 800;
}

.progress-track {
    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: #e6e6e6;
}

.progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: var(--orange);

    transition: width 350ms ease;
}


/* CONTENT */

.app-content {
    width:
        min(
            var(--content-width),
            calc(100% - 68px)
        );

    margin: 0 auto;

    padding:
        28px
        0
        160px;
}


/* HERO */

.hero {
    max-width: 900px;

    margin: 5vh auto 0;

    text-align: center;
}

.hero-kicker {
    margin-bottom: 14px;

    color: var(--orange-dark);

    font-size: 14px;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.hero h1 {
    font-size: clamp(46px, 6vw, 74px);
}

.hero h1 span {
    color: var(--orange-dark);
}

.hero .lead {
    max-width: 720px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 20px;
    line-height: 1.55;
}


/* START DISCOUNT PREVIEW */

.start-benefits {
    max-width: 720px;

    margin:
        34px
        auto
        30px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: white;

    box-shadow: var(--shadow-sm);
}

.start-benefit {
    padding: 18px 12px;

    border-right: 1px solid var(--border);
}

.start-benefit:last-child {
    border-right: 0;
}

.start-benefit strong {
    display: block;

    color: var(--orange-dark);

    font-size: 26px;
}

.start-benefit span {
    color: var(--muted);

    font-size: 11px;
    font-weight: 800;
}


/* QUESTION */

.question-header {
    max-width: 820px;

    margin:
        4px
        auto
        24px;

    text-align: center;
}

.question-header h1 {
    margin:
        8px
        0
        10px;

    font-size: clamp(34px, 4vw, 50px);
}

.question-header p {
    margin: 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.5;
}


/* DISCOUNT STATUS */

.discount-status {
    max-width: 850px;

    margin:
        0
        auto
        26px;

    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border:
        1px solid
        rgba(245, 153, 26, 0.25);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #fff8ef,
            #ffffff
        );
}

.discount-status-left {
    display: flex;
    align-items: center;

    gap: 12px;
}

.discount-fire {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 14px;

    background: var(--orange);

    font-size: 23px;
}

.discount-status-title {
    font-weight: 900;
}

.discount-status-sub {
    margin-top: 2px;

    color: var(--muted);

    font-size: 13px;
}

.discount-status-value {
    flex: 0 0 auto;

    padding: 9px 15px;

    border-radius: 999px;

    background: var(--orange);

    color: var(--black);

    font-size: 21px;
    font-weight: 950;
}


/* GRID */

.option-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.option-grid.two-columns {
    max-width: 850px;

    margin-inline: auto;

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


/* CARDS */

.option-card {
    position: relative;

    min-height: 255px;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

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

    color: var(--text);

    box-shadow: var(--shadow-sm);

    text-align: left;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.option-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(245, 153, 26, 0.4);

    box-shadow: var(--shadow-md);
}

.option-card:active {
    transform: scale(0.985);
}

.option-card.selected {
    border: 2px solid var(--orange);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff9f1
        );
}

.option-card.selected::after {
    content: "✓";

    position: absolute;

    top: 17px;
    right: 17px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--orange);
    color: var(--black);

    font-weight: 950;
}

.option-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 24px;

    display: grid;
    place-items: center;

    border-radius: 19px;

    background: var(--orange-soft);

    font-size: 30px;
}

.option-card h3 {
    margin-bottom: 7px;
}

.option-card p {
    min-height: 55px;

    margin-bottom: 0;

    color: var(--muted);

    line-height: 1.45;
}

.option-footer {
    margin-top: 19px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 12px;
}

.tag {
    padding: 7px 10px;

    border-radius: 999px;

    background: var(--orange-soft);

    color: #a95309;

    font-size: 10px;
    font-weight: 900;
}

.price {
    color: var(--black);

    font-size: 23px;
    font-weight: 900;

    white-space: nowrap;
}


/* CONFIGURATION PANEL */

.config-panel {
    max-width: 850px;

    margin:
        20px
        auto
        0;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background: white;

    box-shadow: var(--shadow-sm);
}

.config-title {
    margin-bottom: 6px;

    font-size: 20px;
    font-weight: 900;
}

.config-subtitle {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 14px;
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 11px;
}

.choice-chip {
    min-width: 96px;

    padding: 14px 18px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--background);

    color: var(--black);

    font-weight: 800;

    cursor: pointer;
}

.choice-chip.selected {
    border-color: var(--orange);

    background: var(--orange-soft);

    box-shadow:
        inset 0 0 0 1px var(--orange);
}


/* COLORS */

.color-choice {
    min-width: 130px;

    display: flex;
    align-items: center;

    gap: 9px;
}

.color-dot {
    width: 20px;
    height: 20px;

    flex: 0 0 auto;

    border-radius: 50%;

    border:
        1px solid
        rgba(0, 0, 0, 0.15);
}

.color-black {
    background: #161616;
}

.color-clear {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #dfe4e8
        );
}

.color-blue {
    background: #365f9c;
}

.color-green {
    background: #4c745d;
}

.color-purple {
    background: #8d6ca6;
}

.color-red {
    background: #b94943;
}


/* CONFIG CONTINUE */

.config-continue {
    width: 100%;

    margin-top: 20px;

    padding: 16px;

    border: 0;
    border-radius: 17px;

    background: var(--orange);

    color: var(--black);

    font-weight: 900;

    cursor: pointer;
}


/* SKIP */

.skip-button {
    display: block;

    margin:
        22px
        auto
        0;

    padding: 13px 20px;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-weight: 750;

    cursor: pointer;
}


/* BOTTOM */

.bottom-navigation {
    position: fixed;

    z-index: 20;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        12px
        26px
        max(12px, env(safe-area-inset-bottom));

    display: grid;

    grid-template-columns:
        130px
        minmax(0, 850px);

    justify-content: center;

    gap: 12px;

    background:
        rgba(247, 247, 247, 0.86);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

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

.back-button {
    border-radius: 22px;

    font-weight: 850;
}

.back-button:disabled {
    opacity: 0.3;

    cursor: default;
}

.back-arrow {
    margin-right: 4px;

    font-size: 25px;
}


/* DEAL BAR */

.deal-bar {
    min-height: 76px;

    padding: 10px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border:
        1px solid
        rgba(0, 0, 0, 0.06);

    border-radius: 23px;

    background: white;

    color: var(--text);

    box-shadow: var(--shadow-md);

    text-align: left;

    cursor: pointer;
}

.deal-selection {
    display: flex;
    align-items: center;

    gap: 11px;
}

.deal-bag {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--orange-soft);

    font-size: 22px;
}

.deal-selection-title {
    font-weight: 900;
}

.cart-count {
    min-width: 21px;
    height: 21px;

    margin-left: 4px;

    padding: 0 6px;

    display: inline-grid;
    place-items: center;

    border-radius: 999px;

    background: var(--black);
    color: white;

    font-size: 11px;
}

.deal-hint {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}

.deal-prices {
    display: flex;
    align-items: center;

    gap: 18px;
}

.deal-normal,
.deal-saving,
.deal-total {
    text-align: right;
}

.deal-normal span,
.deal-saving span,
.deal-total span {
    display: block;

    margin-bottom: 2px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

.deal-normal strong {
    color: var(--muted);

    font-size: 15px;

    text-decoration: line-through;
}

.deal-saving strong {
    color: var(--green);

    font-size: 18px;
}

.deal-total strong {
    color: var(--black);

    font-size: 24px;
}

.discount-badge {
    min-width: 70px;

    padding: 12px 10px;

    border-radius: 17px;

    background: var(--orange);

    color: var(--black);

    text-align: center;

    font-size: 20px;
    font-weight: 950;
}


/* DRAWER */

.drawer-backdrop {
    position: fixed;

    z-index: 39;

    inset: 0;

    background: rgba(0, 0, 0, 0.22);

    opacity: 0;

    pointer-events: none;

    transition: opacity 220ms ease;
}

.drawer-backdrop.open {
    opacity: 1;

    pointer-events: auto;
}

.drawer {
    position: fixed;

    z-index: 40;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(500px, 92vw);

    padding: 28px;

    overflow-y: auto;

    background: var(--background);

    box-shadow:
        -20px 0 70px rgba(0, 0, 0, 0.15);

    transform: translateX(105%);

    transition: transform 250ms ease;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.drawer-header h2 {
    margin:
        5px
        0
        0;
}

.icon-button {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: #e9e9e9;

    font-size: 26px;

    cursor: pointer;
}

.drawer-content {
    padding-bottom: 30px;
}


/* CART */

.cart-section {
    margin-top: 26px;
}

.cart-section-title {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.12em;
}

.cart-row {
    padding: 14px 0;

    display: flex;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid var(--border);
}

.cart-item-detail {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}

.cart-row strong {
    white-space: nowrap;
}

.cart-summary {
    margin-top: 25px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: white;
}

.summary-line {
    margin: 8px 0;

    display: flex;
    justify-content: space-between;

    gap: 15px;
}

.summary-line.saving {
    color: var(--green);

    font-weight: 850;
}

.summary-line.total {
    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid var(--border);

    font-size: 21px;
    font-weight: 900;
}


/* FINAL */

.summary-card {
    max-width: 780px;

    margin: 0 auto;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 30px;

    background: white;

    box-shadow: var(--shadow-md);
}

.final-saving {
    margin-bottom: 24px;

    padding: 22px;

    border-radius: 24px;

    background: var(--orange);

    text-align: center;
}

.final-saving span {
    display: block;

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;
}

.final-saving strong {
    display: block;

    margin-top: 2px;

    font-size: 40px;
}

.final-total {
    margin-top: 22px;

    padding-top: 20px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    border-top: 1px solid var(--border);
}

.final-total strong {
    font-size: 38px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .app-header {
        padding-inline: 20px;
    }

    .brand-logo {
        height: 64px;
    }

    .progress-section {
        padding-inline: 20px;
    }

    .app-content {
        width: calc(100% - 32px);
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .option-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .option-card {
        min-height: auto;
    }

    .option-card p {
        min-height: 0;
    }

    .start-benefits {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .start-benefit:nth-child(2) {
        border-right: 0;
    }

    .start-benefit:nth-child(-n+2) {
        border-bottom:
            1px solid var(--border);
    }
}


@media (max-width: 700px) {

    .bottom-navigation {
        padding-inline: 10px;

        grid-template-columns:
            90px
            1fr;
    }

    .deal-normal,
    .deal-saving {
        display: none;
    }

    .deal-bag,
    .deal-hint {
        display: none;
    }

    .deal-prices {
        gap: 8px;
    }

    .discount-badge {
        min-width: 58px;

        font-size: 16px;
    }

    .discount-status {
        align-items: flex-start;
    }
}