:root {
    --tib-bg: #0b0d12;
    --tib-bg-soft: #11141b;
    --tib-surface: #161a23;
    --tib-border: #232a38;
    --tib-text: #e8ebf2;
    --tib-muted: #9aa3b2;
    --tib-primary: #ff5a1f;
    --tib-primary-2: #ff8a3d;
    --tib-accent: #16e0bd;
    --tib-success: #22c55e;
    --tib-danger: #ef4444;
}

* { -webkit-font-smoothing: antialiased; }

body {
    background: var(--tib-bg);
    color: var(--tib-text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: "ss01", "cv11";
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--tib-primary-2); text-decoration: none; }
a:hover { color: var(--tib-primary); }

/* ===== Navbar ===== */
.tib-nav {
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--tib-border);
}
.tib-nav .navbar-brand { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.02em; color: var(--tib-text); }
.tib-nav .nav-link { color: var(--tib-muted); font-weight: 500; }
.tib-nav .nav-link:hover, .tib-nav .nav-link.active { color: var(--tib-text); }

/* ===== Brand logo placeholder ===== */
.tib-logo {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-family: 'Sora', sans-serif;
    box-shadow: 0 8px 24px rgba(255, 90, 31, .35);
}
.tib-logo-lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }

/* ===== Buttons ===== */
.btn-tib {
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    color: #fff;
    border: none;
    font-weight: 600;
    padding: .85rem 1.6rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 90, 31, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-tib:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(255, 90, 31, .5); }
.btn-tib:active { transform: translateY(0); }
.btn-tib-ghost {
    background: transparent;
    color: var(--tib-text);
    border: 1px solid var(--tib-border);
    font-weight: 600;
    padding: .85rem 1.6rem;
    border-radius: 12px;
}
.btn-tib-ghost:hover { background: var(--tib-surface); color: var(--tib-text); border-color: #2f384a; }

/* ===== Hero ===== */
.tib-hero {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
}
.tib-hero::before {
    content: "";
    position: absolute; inset: -20% -10% auto -10%;
    height: 600px;
    background:
        radial-gradient(50% 60% at 20% 30%, rgba(255, 90, 31, .35), transparent 70%),
        radial-gradient(40% 60% at 80% 30%, rgba(22, 224, 189, .18), transparent 70%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}
.tib-hero > .container { position: relative; z-index: 1; }
.tib-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .8rem;
    border: 1px solid var(--tib-border);
    border-radius: 999px;
    color: var(--tib-muted);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: rgba(22, 26, 35, .6);
}
.tib-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tib-accent); box-shadow: 0 0 0 4px rgba(22, 224, 189, .15); }

.tib-h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin: 1.25rem 0 1.25rem;
}
.tib-h1 .accent {
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.tib-lead { color: var(--tib-muted); font-size: 1.15rem; max-width: 560px; }

/* ===== Book cover mock ===== */
.tib-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    padding: 28px;
    color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .55),
        0 6px 0 rgba(255, 255, 255, .04) inset,
        -2px 0 0 rgba(0, 0, 0, .25) inset;
    transform: rotate(-3deg);
    transition: transform .35s ease;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cover-from, #ff6a00), var(--cover-to, #ee0979));
}
.tib-cover::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
    background: rgba(0, 0, 0, .25);
    box-shadow: 1px 0 0 rgba(255, 255, 255, .1) inset;
}
.tib-cover::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, .25), transparent 50%),
        radial-gradient(80% 80% at 0% 100%, rgba(0, 0, 0, .35), transparent 60%);
    pointer-events: none;
}
.tib-cover:hover { transform: rotate(-2deg) translateY(-6px); }
.tib-cover .cover-brand { font-size: .8rem; font-weight: 700; letter-spacing: .25em; opacity: .9; text-transform: uppercase; }
.tib-cover .cover-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.tib-cover .cover-sub { font-size: .9rem; opacity: .9; margin-top: .35rem; }
.tib-cover .cover-foot { font-size: .8rem; opacity: .85; display: flex; justify-content: space-between; }

/* ===== Section utilities ===== */
.tib-section { padding: 5.5rem 0; position: relative; }
.tib-section-soft { background: var(--tib-bg-soft); }
.tib-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-eyebrow { color: var(--tib-primary-2); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }
.text-muted-tib { color: var(--tib-muted) !important; }

/* ===== Feature cards ===== */
.tib-card {
    background: var(--tib-surface);
    border: 1px solid var(--tib-border);
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.tib-card:hover { transform: translateY(-3px); border-color: #2f384a; }
.tib-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 90, 31, .12);
    color: var(--tib-primary-2);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 90, 31, .25);
}
.tib-card h5 { color: var(--tib-text); font-weight: 700; margin-bottom: .5rem; }
.tib-card p { color: var(--tib-muted); margin: 0; }

/* ===== Stats ===== */
.tib-stat {
    background: var(--tib-surface);
    border: 1px solid var(--tib-border);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
}
.tib-stat .stat-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--tib-text); }
.tib-stat .stat-lbl { font-size: .8rem; color: var(--tib-muted); text-transform: uppercase; letter-spacing: .12em; }

/* ===== Workout table preview ===== */
.tib-table-wrap {
    background: var(--tib-surface);
    border: 1px solid var(--tib-border);
    border-radius: 18px;
    padding: 1.5rem;
    overflow: hidden;
}
.tib-table-wrap .week-title {
    display: flex; align-items: center; gap: .75rem;
    font-family: 'Sora', sans-serif; font-weight: 700;
    margin-bottom: 1rem;
}
.tib-table-wrap .week-title .badge-tib {
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    color: #fff; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.tib-table {
    width: 100%; color: var(--tib-text); border-collapse: separate; border-spacing: 0;
    font-size: .92rem;
}
.tib-table thead th {
    text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--tib-muted); font-weight: 600; padding: .65rem .85rem;
    border-bottom: 1px solid var(--tib-border);
}
.tib-table tbody td {
    padding: .85rem; border-bottom: 1px dashed var(--tib-border); vertical-align: middle;
}
.tib-table tbody tr:last-child td { border-bottom: none; }
.tib-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .015); }
.tib-table .exercise { font-weight: 600; }
.tib-table .rpe {
    display: inline-block;
    padding: .15rem .65rem;
    border-radius: 999px;
    background: rgba(255, 90, 31, .14);
    color: var(--tib-primary-2);
    font-weight: 700;
    font-size: .75rem;
    border: 1px solid rgba(255, 90, 31, .35);
    white-space: nowrap;       /* keep "RPE 8.5" on one line */
}
.tib-table .log-cell {
    color: var(--tib-muted);
    border-bottom: 1px solid var(--tib-border);
    min-width: 110px;
    font-style: italic; font-size: .8rem;
}

/* ===== Pricing ===== */
.tib-pricing {
    background: linear-gradient(180deg, rgba(255, 90, 31, .08), rgba(22, 224, 189, .04));
    border: 1px solid var(--tib-border);
    border-radius: 22px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.tib-pricing::after {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 320px; height: 320px;
    background: radial-gradient(closest-side, rgba(255, 90, 31, .25), transparent);
    pointer-events: none;
}
.price-tag {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 3.5rem; line-height: 1;
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.price-compare { color: var(--tib-muted); text-decoration: line-through; font-size: 1.1rem; margin-left: .5rem; }
.price-save {
    display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem;
    background: rgba(34, 197, 94, .12); color: var(--tib-success); font-weight: 700;
    border: 1px solid rgba(34, 197, 94, .25); text-transform: uppercase; letter-spacing: .12em;
}
.tib-pricing ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.tib-pricing ul li { color: var(--tib-text); padding: .35rem 0; display: flex; gap: .65rem; align-items: flex-start; }
.tib-pricing ul li::before {
    content: "✓"; color: var(--tib-accent); font-weight: 800; flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 50%; background: rgba(22, 224, 189, .12);
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}

/* ===== FAQ accordion ===== */
.accordion-item {
    background: var(--tib-surface);
    border: 1px solid var(--tib-border) !important;
    border-radius: 14px !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.accordion-button {
    background: transparent !important;
    color: var(--tib-text) !important;
    font-weight: 600;
    padding: 1.1rem 1.25rem;
}
.accordion-button:not(.collapsed) { color: var(--tib-text) !important; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border: none; }
.accordion-button::after { filter: invert(1) brightness(1.5); }
.accordion-body { color: var(--tib-muted); padding: 0 1.25rem 1.25rem; }

/* ===== Other ebooks grid ===== */
.tib-ebook-card {
    background: var(--tib-surface);
    border: 1px solid var(--tib-border);
    border-radius: 18px;
    padding: 1.5rem;
    height: 100%;
    transition: transform .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}
.tib-ebook-card:hover { transform: translateY(-4px); border-color: #2f384a; }
.tib-ebook-card .mini-cover {
    aspect-ratio: 3 / 4; max-width: 140px; margin: 0 auto 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cover-from), var(--cover-to));
    box-shadow: 0 15px 30px rgba(0, 0, 0, .4);
    display: flex; align-items: flex-end; padding: .9rem;
    color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; line-height: 1.05; font-size: .9rem;
    position: relative;
}
.tib-ebook-card .mini-cover::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
    background: rgba(0, 0, 0, .25);
}
.tib-ebook-card .coming-badge {
    position: absolute; top: 1rem; right: 1rem;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .15em;
    padding: .3rem .55rem; border-radius: 999px;
    background: rgba(154, 163, 178, .12); color: var(--tib-muted);
    border: 1px solid var(--tib-border);
    font-weight: 700;
}

/* ===== Footer ===== */
.tib-footer { background: #07090d; border-top: 1px solid var(--tib-border); padding: 3rem 0 2rem; color: var(--tib-muted); }
.tib-footer a { color: var(--tib-muted); }
.tib-footer a:hover { color: var(--tib-text); }

/* ===== Payment status pages ===== */
.tib-status-wrap { min-height: 80vh; display: flex; align-items: center; }
.tib-status-card {
    background: var(--tib-surface);
    border: 1px solid var(--tib-border);
    border-radius: 22px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 560px; margin: 0 auto;
}
.status-icon {
    width: 86px; height: 86px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin-bottom: 1.5rem;
}
.status-icon.success { background: rgba(34, 197, 94, .15); color: var(--tib-success); border: 1px solid rgba(34, 197, 94, .35); }
.status-icon.failed  { background: rgba(239, 68, 68, .15); color: var(--tib-danger);  border: 1px solid rgba(239, 68, 68, .35); }

/* ===== Forms ===== */
.form-control, .form-select {
    background: var(--tib-surface); color: var(--tib-text);
    border: 1px solid var(--tib-border); border-radius: 12px;
    padding: .8rem 1rem;
}
.form-control:focus { background: var(--tib-surface); color: var(--tib-text); border-color: var(--tib-primary); box-shadow: 0 0 0 .2rem rgba(255, 90, 31, .15); }

/* ===== Misc ===== */
.divider {
    border: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--tib-border), transparent);
    margin: 4rem 0;
}

@media (max-width: 767.98px) {
    .tib-section { padding: 4rem 0; }
    .tib-hero { padding: 5rem 0 2rem; }
    .tib-cover { max-width: 280px; margin: 2rem auto 0; }
}

/* =========================================================================
   VALUE COMPARISON — trainer vs ebook
   ========================================================================= */
.value-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50% 60% at 80% 20%, rgba(255, 90, 31, .22), transparent 70%),
        radial-gradient(45% 55% at 20% 80%, rgba(22, 224, 189, .15), transparent 70%),
        linear-gradient(180deg, #0a0c11 0%, #0e1118 100%);
    border-top: 1px solid var(--tib-border);
    border-bottom: 1px solid var(--tib-border);
}
.value-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.value-vs-accent {
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.value-card {
    border: 1px solid var(--tib-border);
    border-radius: 22px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.value-card-bad {
    background: linear-gradient(180deg, rgba(239, 68, 68, .06), rgba(11, 13, 18, .6));
    border-color: rgba(239, 68, 68, .25);
}
.value-card-good {
    background: linear-gradient(180deg, rgba(255, 90, 31, .14), rgba(22, 224, 189, .04));
    border-color: rgba(255, 138, 61, .45);
    box-shadow: 0 24px 60px -20px rgba(255, 90, 31, .35);
}

.value-badge {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    letter-spacing: .01em;
}
.value-badge-bad {
    background: rgba(239, 68, 68, .14);
    color: #ff7676;
    border: 1px solid rgba(239, 68, 68, .35);
}
.value-badge-good {
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 22px rgba(255, 90, 31, .4);
}
.value-sub {
    color: var(--tib-muted);
    font-size: .92rem;
    margin: .8rem 0 1.5rem;
}

.value-hero-price {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--tib-border);
}
.value-hero-amount {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.value-hero-once {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .25em;
    color: var(--tib-accent);
    text-transform: uppercase;
}

.value-stack { margin: .5rem 0; }
.value-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .7rem 0;
    border-bottom: 1px dashed var(--tib-border);
}
.value-line:last-child { border-bottom: none; }
.value-line-label {
    color: var(--tib-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 600;
}
.value-line-amount {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    color: var(--tib-text);
}
.value-line-amount.strike {
    color: #ff7676;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.value-line-amount.good { color: var(--tib-accent); }

.value-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tib-border);
    color: var(--tib-muted);
    font-size: .9rem;
    display: flex; align-items: flex-start; gap: .6rem;
}
.value-foot i { color: #ff7676; font-size: 1.15rem; margin-top: 1px; }
.value-foot-good i { color: var(--tib-accent); }
.value-foot strong { color: var(--tib-text); }

.value-vs {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: .15em;
    text-indent: .15em;
    color: #fff;
    margin: 2.5rem auto 1.5rem;
    text-shadow:
        0 0 12px rgba(255, 122, 38, .85),
        0 0 28px rgba(255, 90, 31, .6),
        0 0 48px rgba(255, 90, 31, .35);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.value-savings {
    background: linear-gradient(135deg, rgba(255, 90, 31, .14), rgba(255, 138, 61, .06));
    border: 1px solid rgba(255, 138, 61, .4);
    border-radius: 22px;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}
.value-savings::after {
    content: "";
    position: absolute; inset: -40% -10% auto auto;
    width: 360px; height: 360px;
    background: radial-gradient(closest-side, rgba(255, 90, 31, .35), transparent);
    pointer-events: none;
}
.value-savings-label {
    color: var(--tib-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 700;
    margin-bottom: .35rem;
}
.value-savings-amount {
    font-family: 'Sora', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--tib-primary), var(--tib-primary-2));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    margin-bottom: .75rem;
}
.value-savings-sub {
    color: var(--tib-muted);
    font-size: 1.05rem;
    max-width: 460px;
    line-height: 1.55;
}
.value-savings-sub strong { color: var(--tib-text); }

@media (max-width: 991.98px) {
    .value-card { padding: 1.75rem 1.4rem; }
    .value-hero-amount { font-size: 3.5rem; }
    .value-savings-amount { font-size: 3.5rem; }
    .value-savings { padding: 1.75rem 1.4rem; }
}
