/* =========================================================
   Turbo Hosting Page  -  assets/css/turbo-hosting.css
   Self-contained. Header / mobile menu / footer come from style.css.
   Compact spacing system: every gap uses a token, no stacked padding.
   Breakpoints: 1200 / 992 / 768 / 576 / 380 / 340
========================================================= */

/* ---------- Tokens ---------- */
body {
    --tb-primary: var(--primary-blue, #0d6efd);
    --tb-soft: var(--secondary-blue, #e7f1ff);
    --tb-dark: var(--text-dark, #0f172a);
    --tb-gray: var(--text-gray, #64748b);
    --tb-border: var(--border-color, #e2e8f0);
    --tb-light: var(--bg-light, #f8fafc);
    --tb-indigo: #6366f1;
    --tb-cyan: #22d3ee;
    --tb-green: #10b981;
    --tb-orange: #f59e0b;
    --tb-red: #ef4444;
    --tb-navy: #070b1a;
    --tb-grad: linear-gradient(135deg, #0d6efd, #6366f1);

    /* compact spacing scale */
    --tb-sec: clamp(36px, 5.5vw, 60px);    
    --tb-head-gap: clamp(20px, 3vw, 32px); 
    --tb-gap: clamp(14px, 2vw, 20px);      
    --tb-pad: clamp(16px, 2vw, 22px);      
}

/* =========================================================
   BULLETPROOF MOBILE OVERFLOW FIX
   (Stops any right-side white space on all devices)
========================================================= */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* ---------- Scoped safety ---------- */
.tb-main,
.tb-main *,
.tb-main *::before,
.tb-main *::after,
.tb-sticky,
.tb-sticky * {
    box-sizing: border-box;
}

.tb-main {
    font-family: inherit;
    color: var(--tb-dark);
    overflow-x: hidden; /* Double safety for page wrapper */
    width: 100%;
}

.tb-main img,
.tb-main svg {
    max-width: 100%;
    height: auto;
}

/* zero-specificity reset */
:where(.tb-main) :is(h1, h2, h3, h4, p, ul, output) { margin: 0; }
:where(.tb-main) ul { padding: 0; list-style: none; }
.tb-main :is(h1, h2, h3, h4, p, li):last-child { margin-bottom: 0; }
.tb-main [id] { scroll-margin-top: 84px; }
.tb-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Scroll reveal ---------- */
.js .tb-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.js .tb-reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   Buttons
========================================================= */
.tb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 24px; border: 2px solid transparent; border-radius: 10px;
    font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: all .25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    max-width: 100%;
}
.tb-btn:focus-visible { outline: 3px solid rgba(99, 102, 241, .5); outline-offset: 2px; }
.tb-btn:disabled { opacity: .75; cursor: not-allowed; }
.tb-btn-block { display: flex; width: 100%; }

.tb-btn-primary { background: var(--tb-grad); color: #fff; box-shadow: 0 8px 22px rgba(99, 102, 241, .38); }
.tb-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99, 102, 241, .5); color: #fff; }

.tb-btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); color: #fff; }
.tb-btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.tb-btn-outline { background: transparent; border-color: var(--tb-border); color: var(--tb-dark); }
.tb-btn-outline:hover { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; box-shadow: 0 6px 16px rgba(13, 110, 253, .25); }

.tb-btn-white { background: #fff; color: #3730a3; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.tb-btn-white:hover { transform: translateY(-2px); color: #312e81; }

/* =========================================================
   Hero
========================================================= */
.tb-hero {
    position: relative;
    /* overflow: hidden is CRITICAL here to stop ::after from expanding the screen */
    overflow: hidden; 
    isolation: isolate;
    padding: clamp(32px, 6vw, 60px) 0 clamp(36px, 6vw, 64px);
    color: #fff;
    background: linear-gradient(135deg, #070b1a 0%, #111a47 55%, #2b2a8f 130%);
    width: 100%;
}
.tb-hero::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 25% 40%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse at 25% 40%, #000 15%, transparent 75%);
}
.tb-hero::after {
    content: ""; position: absolute; top: -150px; right: -130px;
    width: 460px; height: 460px; border-radius: 50%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 65%);
}
.tb-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(24px, 4vw, 44px); align-items: center; width: 100%;
}
.tb-hero-copy, .tb-hero-visual { min-width: 0; max-width: 100%; }

.tb-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    padding: 7px 14px; border: 1px solid rgba(34, 211, 238, .5); border-radius: 50px;
    background: rgba(34, 211, 238, .12); color: #67e8f9; font-size: 13px; font-weight: 600; line-height: 1.3;
}
.tb-badge i { color: #facc15; }

.tb-hero h1 {
    margin-bottom: 16px; font-size: clamp(28px, 5vw, 50px); font-weight: 900;
    line-height: 1.12; letter-spacing: -.8px; color: #fff; 
    overflow-wrap: break-word; word-wrap: break-word;
}
.tb-accent { color: #67e8f9; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .tb-accent {
        background: linear-gradient(90deg, #22d3ee, #818cf8);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
    }
}
.tb-lead {
    max-width: 580px; margin-bottom: 24px; font-size: clamp(15px, 2vw, 17px);
    line-height: 1.7; color: #cbd5e1; word-wrap: break-word;
}
.tb-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; max-width: 100%; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tb-chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #e2e8f0; }
.tb-chips i { color: #34d399; }

/* Illustrative traffic monitor */
.tb-console {
    overflow: hidden; width: 100%; max-width: 100%;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
    background: rgba(6, 10, 26, .82);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .5), 0 0 0 1px rgba(34, 211, 238, .08);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tb-console-top {
    display: flex; align-items: center; gap: 7px; padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .06);
}
.tb-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; }
.tb-dot.r { background: #ff5f57; }
.tb-dot.y { background: #febc2e; }
.tb-dot.g { background: #28c840; margin-right: 10px; }
.tb-console-title {
    flex: 1; min-width: 0; overflow: hidden; font-size: 12px;
    color: #94a3b8; white-space: nowrap; text-overflow: ellipsis;
}
.tb-live {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    font-size: 11px; font-weight: 700; color: #34d399;
}
.tb-live i {
    width: 7px; height: 7px; border-radius: 50%; background: #34d399;
    animation: tbPulse 1.6s ease-in-out infinite;
}
@keyframes tbPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
.tb-console-body { display: grid; gap: 14px; padding: 16px; }
.tb-wave { display: flex; align-items: flex-end; gap: 3px; height: 76px; width: 100%; overflow: hidden; }
.tb-wave i {
    flex: 1; min-width: 0; height: var(--h, 50%); border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #22d3ee, #6366f1); transform-origin: bottom;
    animation: tbBeat 1.9s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes tbBeat { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.tb-rows { display: grid; gap: 10px; width: 100%; }
.tb-rows li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; }
.tb-rows span { font-size: 12px; font-weight: 600; color: #94a3b8; }
.tb-track { height: 8px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .1); width: 100%; }
.tb-track i {
    display: block; width: var(--lo, 40%); height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    animation: tbLoad var(--t, 4s) ease-in-out infinite;
}
@keyframes tbLoad { 0%, 100% { width: var(--lo, 40%); } 50% { width: var(--hi, 70%); } }
.tb-fineprint { margin-top: 10px; font-size: 12px; text-align: center; color: #94a3b8; }

/* =========================================================
   Trust strip
========================================================= */
.tb-strip { padding: 16px 0; border-bottom: 1px solid var(--tb-border); background: #fff; width: 100%; }
.tb-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px var(--tb-gap); }
.tb-strip-grid li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-strip-grid i {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 10px; background: var(--tb-soft);
    color: var(--tb-primary); font-size: 17px;
}
.tb-strip-grid div { min-width: 0; }
.tb-strip-grid strong { display: block; font-size: 14px; font-weight: 800; color: #0f172a; word-wrap: break-word; }
.tb-strip-grid span { display: block; font-size: 12px; color: var(--tb-gray); word-wrap: break-word; }

/* =========================================================
   Generic sections
========================================================= */
.tb-section { padding: var(--tb-sec) 0; background: #fff; width: 100%; }
.tb-alt { background: var(--tb-light); }
.tb-head { max-width: 700px; margin: 0 auto var(--tb-head-gap); text-align: center; padding: 0 10px; }
.tb-eyebrow {
    display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 800;
    letter-spacing: 1.4px; text-transform: uppercase; color: var(--tb-indigo);
}
.tb-eyebrow-light { color: #67e8f9; }
.tb-head h2 { margin-bottom: 10px; font-size: clamp(22px, 3.8vw, 34px); font-weight: 800; line-height: 1.2; color: #0f172a; overflow-wrap: break-word; }
.tb-head p { font-size: 15px; line-height: 1.65; color: var(--tb-gray); }

/* =========================================================
   Traffic planner
========================================================= */
.tb-planner {
    max-width: 760px; margin: 0 auto; padding: var(--tb-pad); width: 100%;
    border: 1px solid var(--tb-border); border-radius: 16px; background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}
.tb-planner-top {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tb-gap); margin-bottom: 14px; width: 100%;
}
.tb-visits {
    min-width: 0; padding: 12px 14px; border-radius: 12px; width: 100%;
    background: linear-gradient(135deg, #eef2ff, #ecfeff); text-align: center;
}
.tb-visits small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--tb-gray); }
.tb-visits output { display: block; font-size: clamp(24px, 5vw, 34px); font-weight: 900; line-height: 1.15; color: #3730a3; word-break: break-all; }
.tb-visits-alt output { color: #0e7490; }

.tb-range {
    -webkit-appearance: none; appearance: none; display: block; width: 100%;
    height: 8px; margin: 12px 0 4px; border-radius: 8px;
    background: linear-gradient(90deg, var(--tb-indigo) var(--p, 30%), #e2e8f0 var(--p, 30%));
    outline: none; cursor: pointer; touch-action: pan-y;
}
.tb-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 28px; height: 28px;
    border: 4px solid var(--tb-indigo); border-radius: 50%; background: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .45); cursor: pointer;
}
.tb-range::-moz-range-thumb {
    width: 20px; height: 20px; border: 4px solid var(--tb-indigo); border-radius: 50%;
    background: #fff; box-shadow: 0 2px 8px rgba(99, 102, 241, .45); cursor: pointer;
}
.tb-range:focus-visible { outline: 3px solid rgba(99, 102, 241, .4); outline-offset: 4px; }
.tb-range-scale {
    display: flex; justify-content: space-between; margin-bottom: 14px; width: 100%;
    font-size: 11px; font-weight: 700; color: #94a3b8;
}
.tb-result {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 16px; padding: 10px 14px; border-radius: 10px; width: 100%;
    background: rgba(16, 185, 129, .12); font-size: 14px; font-weight: 600; color: #047857;
}
.tb-result em { font-style: normal; font-weight: 500; }
.tb-result a { font-weight: 800; color: var(--tb-indigo); text-decoration: none; }
.tb-result a:hover { text-decoration: underline; }

/* =========================================================
   Controls (currency / billing / coupon)
========================================================= */
.tb-controls {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px var(--tb-gap); margin-bottom: var(--tb-gap); padding: 14px var(--tb-pad); width: 100%;
    border: 1px solid var(--tb-border); border-radius: 12px; background: #fff;
}
.tb-control { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-label { font-size: 14px; font-weight: 700; color: var(--tb-dark); white-space: nowrap; }

.tb-switch {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    max-width: 100%; padding: 4px; border: 1px solid var(--tb-border);
    border-radius: 50px; background: var(--tb-light);
}
.tb-switch-wide { width: max-content; max-width: 100%; }
.tb-opt {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
    gap: 6px; min-width: 0; min-height: 38px; padding: 6px 20px; border: 0; background: transparent;
    font-family: inherit; font-size: 14px; font-weight: 700; color: var(--tb-gray);
    cursor: pointer; transition: color .3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.tb-opt.active { color: #fff; }
.tb-slider {
    position: absolute; top: 4px; left: 4px; z-index: 1;
    width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 50px;
    background: var(--tb-grad); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.tb-save-badge {
    padding: 2px 6px; border-radius: 4px; background: var(--tb-green);
    color: #fff; font-size: 10px; white-space: nowrap;
}
.tb-coupon { min-width: min(290px, 100%); max-width: 100%; }
.tb-coupon-row {
    display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 14px; width: 100%;
    border: 1px dashed var(--tb-indigo); border-radius: 50px; background: #fff;
}
.tb-coupon-row i { flex-shrink: 0; color: var(--tb-indigo); }
.tb-coupon-text {
    flex: 1; min-width: 0; overflow: hidden; font-size: 14px;
    white-space: nowrap; text-overflow: ellipsis;
}
.tb-apply {
    flex-shrink: 0; min-height: 40px; padding: 6px 20px; border: 0; border-radius: 50px;
    background: var(--tb-dark); font-family: inherit; font-size: 14px; font-weight: 700; color: #fff;
    cursor: pointer; transition: background-color .25s ease; touch-action: manipulation;
}
.tb-apply:hover { background: var(--tb-indigo); }
.tb-coupon-msg { margin: 4px 0 0 14px; font-size: 12px; font-weight: 600; }
.tb-coupon-msg:empty { display: none; }
.tb-coupon-msg.success { color: var(--tb-green); }
.tb-coupon-msg.error { color: var(--tb-red); }

/* =========================================================
   Pricing cards
========================================================= */
.tb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tb-gap); align-items: stretch; width: 100%; }
.tb-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; width: 100%;
    padding: var(--tb-pad); overflow: hidden; border: 1px solid var(--tb-border);
    border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tb-card:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 14px 30px rgba(99, 102, 241, .14); }

.tb-card.featured {
    z-index: 2; border-color: #4f46e5; background: linear-gradient(160deg, #0b1020 0%, #1e1b6b 100%);
    color: #fff; box-shadow: 0 18px 44px rgba(79, 70, 229, .38), 0 0 0 1px rgba(34, 211, 238, .25);
    transform: scale(1.03);
}
.tb-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.tb-card.is-recommended { border-color: var(--tb-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .4), 0 14px 30px rgba(16, 185, 129, .16); }

.tb-rec-pill {
    display: none; align-self: flex-start; align-items: center; gap: 6px;
    margin-bottom: 10px; padding: 4px 10px; border-radius: 50px;
    background: var(--tb-green); color: #fff; font-size: 11px; font-weight: 800;
}
.tb-card.is-recommended .tb-rec-pill { display: inline-flex; }

.tb-ribbon {
    position: absolute; top: 22px; right: -42px; z-index: 10;
    padding: 6px 46px; background: linear-gradient(90deg, #22d3ee, #6366f1);
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; white-space: nowrap; transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.tb-card.featured .tb-plan-head { padding-right: 26px; }

.tb-plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tb-ico {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 10px; background: #eef2ff;
    color: var(--tb-indigo); font-size: 18px; transition: background .3s ease;
}
.tb-plan-name { min-width: 0; }
.tb-plan-name h3 { margin-bottom: 2px; font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--tb-dark); overflow-wrap: anywhere; }
.tb-plan-name p { font-size: 12px; line-height: 1.4; color: var(--tb-gray); overflow-wrap: anywhere; }

.tb-price {
    display: flex; flex-direction: column; align-items: center; margin-bottom: 12px;
    padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; width: 100%;
}
.tb-price-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px; max-width: 100%; }
.tb-sym { font-size: 16px; font-weight: 700; color: var(--tb-dark); }
.tb-amt { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; color: var(--tb-dark); }
.tb-term { font-size: 13px; font-weight: 500; color: var(--tb-gray); white-space: nowrap; }
.tb-orig { margin-top: 4px; font-size: 13px; font-weight: 500; text-align: center; color: #94a3b8; }
.tb-billed { margin-top: 4px; font-size: 12px; font-weight: 600; text-align: center; color: var(--tb-green); }

.tb-cap {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 7px 10px; border-radius: 8px; background: #eef2ff;
    font-size: 12px; font-weight: 800; color: #3730a3;
}
.tb-cap i { flex-shrink: 0; }
.tb-meters { display: grid; gap: 8px; margin-bottom: 14px; width: 100%; }
.tb-meters li {
    display: grid; grid-template-columns: minmax(0, 96px) minmax(0, 1fr); align-items: center;
    gap: 10px; font-size: 12px; font-weight: 700; color: #334155;
}
.tb-meters span { overflow-wrap: anywhere; }
.tb-bar { height: 6px; overflow: hidden; border-radius: 6px; background: #e2e8f0; width: 100%; }
.tb-bar i { display: block; width: var(--w, 50%); height: 100%; border-radius: 6px; background: linear-gradient(90deg, #22d3ee, #6366f1); }

.tb-list { flex-grow: 1; margin-bottom: 16px; padding-top: 12px; border-top: 1px solid #f1f5f9; width: 100%; }
.tb-list li {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px;
    font-size: 13px; font-weight: 500; color: #334155; overflow-wrap: anywhere;
}
.tb-list li i {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 20px; height: 20px; border-radius: 50%; background: rgba(16, 185, 129, .12);
    color: var(--tb-green); font-size: 11px; margin-top: 2px;
}

/* featured overrides */
.tb-card.featured .tb-ico { background: rgba(255, 255, 255, .12); color: #67e8f9; }
.tb-card.featured .tb-plan-name h3, .tb-card.featured .tb-plan-name p,
.tb-card.featured .tb-sym, .tb-card.featured .tb-amt, .tb-card.featured .tb-term,
.tb-card.featured .tb-meters li, .tb-card.featured .tb-list li { color: #fff; }
.tb-card.featured .tb-plan-name p { color: #c7d2fe; }
.tb-card.featured .tb-price, .tb-card.featured .tb-list { border-color: rgba(255, 255, 255, .16); }
.tb-card.featured .tb-orig { color: rgba(255, 255, 255, .7); }
.tb-card.featured .tb-billed { color: #6ee7b7; }
.tb-card.featured .tb-cap { background: rgba(255, 255, 255, .12); color: #a5f3fc; }
.tb-card.featured .tb-bar { background: rgba(255, 255, 255, .15); }
.tb-card.featured .tb-list li i { background: rgba(34, 211, 238, .2); color: #67e8f9; }

.tb-guarantee {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 10px 28px; margin-top: var(--tb-head-gap); width: 100%;
}
.tb-guarantee li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #334155; }
.tb-guarantee i { color: var(--tb-green); }

/* =========================================================
   Traffic spike simulator (dark)
========================================================= */
.tb-dark { background: linear-gradient(180deg, #070b1a 0%, #0f1a4d 100%); color: #fff; }
.tb-dark .tb-head h2 { color: #fff; }
.tb-dark .tb-head p { color: #cbd5e1; }
.tb-sim {
    display: grid; gap: var(--tb-gap); max-width: 760px; margin: 0 auto; width: 100%;
    padding: var(--tb-pad); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
    background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tb-sim-users { text-align: center; }
.tb-sim-users small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #94a3b8; }
.tb-sim-users strong { font-size: clamp(32px, 7vw, 48px); font-weight: 900; line-height: 1.1; color: #67e8f9; }

.tb-lane {
    min-width: 0; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); width: 100%;
    border-radius: 12px; background: rgba(255, 255, 255, .05);
}
.tb-lane-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 6px 12px; margin-bottom: 10px; font-size: 14px; font-weight: 700;
}
.tb-lane-head span { display: inline-flex; align-items: center; gap: 8px; }
.tb-lane-head em { padding: 3px 10px; border-radius: 50px; font-size: 12px; font-style: normal; font-weight: 800; background: rgba(16, 185, 129, .2); color: #6ee7b7; }

.tb-gauge { height: 12px; margin-bottom: 8px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .1); width: 100%; }
.tb-gauge i { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, #34d399, #10b981); transition: width .12s linear, background .3s ease; }
.tb-lane small { display: block; font-size: 12px; line-height: 1.5; color: #94a3b8; }

.tb-lane[data-state="warn"] .tb-gauge i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.tb-lane[data-state="warn"] .tb-lane-head em { background: rgba(245, 158, 11, .22); color: #fcd34d; }
.tb-lane[data-state="bad"] .tb-gauge i { background: linear-gradient(90deg, #f87171, #ef4444); }
.tb-lane[data-state="bad"] .tb-lane-head em { background: rgba(239, 68, 68, .22); color: #fca5a5; }

.tb-lane-turbo { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .07); }
.tb-lane-turbo .tb-gauge i { background: linear-gradient(90deg, #22d3ee, #6366f1); }
.tb-sim .tb-btn { justify-self: center; min-width: 240px; max-width: 100%; }
.tb-sim-note { font-size: 11px; line-height: 1.5; text-align: center; color: #94a3b8; }

/* =========================================================
   Features
========================================================= */
.tb-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tb-gap); width: 100%; }
.tb-feature {
    min-width: 0; padding: var(--tb-pad); border: 1px solid var(--tb-border); width: 100%;
    border-radius: 14px; background: #fff; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tb-feature:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 12px 28px rgba(99, 102, 241, .12); }
.tb-fi {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    margin-bottom: 12px; border-radius: 12px; background: var(--tb-grad); color: #fff;
    font-size: 20px; box-shadow: 0 6px 16px rgba(99, 102, 241, .3);
}
.tb-feature h3 { margin-bottom: 6px; font-size: 16px; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.tb-feature p { font-size: 13px; line-height: 1.6; color: var(--tb-gray); overflow-wrap: anywhere; }

/* =========================================================
   Comparison table
========================================================= */
.tb-swipe { display: none; margin-bottom: 8px; font-size: 12px; font-weight: 600; text-align: center; color: var(--tb-gray); }
.tb-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    width: 100%; max-width: 100vw; border: 1px solid var(--tb-border); border-radius: 14px; background: #fff;
}
.tb-table-wrap:focus-visible { outline: 3px solid rgba(99, 102, 241, .4); outline-offset: 2px; }
.tb-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
.tb-table th, .tb-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; text-align: center; color: #334155; }
.tb-table thead th { background: #0f172a; font-size: 14px; font-weight: 800; color: #fff; }
.tb-table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 700; text-align: left; color: #0f172a; white-space: nowrap; box-shadow: 1px 0 0 #f1f5f9; }
.tb-table thead th:first-child { position: sticky; left: 0; z-index: 2; text-align: left; }
.tb-table tbody tr:last-child th, .tb-table tbody tr:last-child td { border-bottom: 0; }
.tb-table .hl { background: #eef2ff; font-weight: 700; }
.tb-table thead .hl { background: var(--tb-indigo); }
.tb-table .yes { color: var(--tb-green); }
.tb-table .no { color: #cbd5e1; }

/* =========================================================
   Use cases
========================================================= */
.tb-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tb-gap); width: 100%; }
.tb-case {
    min-width: 0; padding: var(--tb-pad); border: 1px solid var(--tb-border); width: 100%;
    border-radius: 14px; background: #fff; text-align: center; transition: transform .3s ease, box-shadow .3s ease;
}
.tb-case:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(99, 102, 241, .12); }
.tb-ci {
    display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
    margin-bottom: 12px; border-radius: 14px; background: linear-gradient(135deg, #eef2ff, #ecfeff); color: var(--tb-indigo); font-size: 22px;
}
.tb-case h3 { margin-bottom: 6px; font-size: 16px; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.tb-case p { font-size: 13px; line-height: 1.6; color: var(--tb-gray); }

/* =========================================================
   Steps
========================================================= */
.tb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tb-gap); width: 100%; }
.tb-step { min-width: 0; padding: var(--tb-pad); border: 1px solid var(--tb-border); border-radius: 14px; background: #fff; text-align: center; width: 100%; }
.tb-num {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 12px;
    border-radius: 50%; background: var(--tb-grad); color: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 0 0 6px #eef2ff;
}
.tb-step h3 { margin-bottom: 6px; font-size: 17px; font-weight: 800; color: #0f172a; }
.tb-step p { font-size: 14px; line-height: 1.6; color: var(--tb-gray); }

/* =========================================================
   FAQ
========================================================= */
.tb-faq { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; width: 100%; }
.tb-faq-item { overflow: hidden; border: 1px solid var(--tb-border); border-radius: 12px; background: #fff; transition: border-color .3s ease, box-shadow .3s ease; width: 100%; }
.tb-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 14px 18px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb-faq-item summary::-webkit-details-marker { display: none; }
.tb-faq-item summary::marker { content: ""; }
.tb-faq-item summary:focus-visible { outline: 2px solid var(--tb-indigo); outline-offset: -2px; }
.tb-faq-item summary h4 { min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--tb-dark); overflow-wrap: anywhere; }
.tb-faq-item summary i { flex-shrink: 0; color: var(--tb-indigo); transition: transform .3s ease; }
.tb-faq-item[open] { border-color: var(--tb-indigo); box-shadow: 0 4px 12px rgba(99, 102, 241, .1); }
.tb-faq-item[open] summary i { transform: rotate(180deg); }
.tb-faq-body { padding: 0 18px 14px; }
.tb-faq-body p { padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 14px; line-height: 1.65; color: var(--tb-gray); overflow-wrap: anywhere; }

/* =========================================================
   Final CTA
========================================================= */
.tb-final { padding: var(--tb-sec) 0; background: #fff; width: 100%; overflow: hidden; }
.tb-final-box {
    display: flex; align-items: center; justify-content: space-between; gap: var(--tb-gap);
    padding: clamp(22px, 4vw, 40px); border-radius: 20px; color: #fff; width: 100%;
    background: radial-gradient(circle at 92% 8%, rgba(34, 211, 238, .3), transparent 45%),
                linear-gradient(135deg, #070b1a 0%, #1e1b6b 65%, #4f46e5 140%);
    box-shadow: 0 22px 50px rgba(79, 70, 229, .25);
}
.tb-final-text { min-width: 0; }
.tb-final-text h2 { margin-bottom: 8px; font-size: clamp(21px, 3.2vw, 30px); font-weight: 800; line-height: 1.25; color: #fff; }
.tb-final-text p { max-width: 620px; font-size: 15px; line-height: 1.6; color: #cbd5e1; }
.tb-final-box .tb-btn { flex-shrink: 0; max-width: 100%; }

/* =========================================================
   Sticky order bar (mobile only)
========================================================= */
.tb-sticky { display: none; }

/* =========================================================
   RESPONSIVE LAYOUTS (No Design Break Guaranteed)
========================================================= */

/* ---- Laptops / small desktops ---- */
@media (max-width: 1200px) {
    .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-left: auto; margin-right: auto; }
    .tb-card.featured, .tb-card.featured:hover { transform: none; }
    .tb-card.featured:hover { transform: translateY(-4px); }
    .tb-controls { flex-direction: column; justify-content: center; gap: 14px; }
    .tb-coupon { width: 100%; max-width: 380px; }
    .tb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Tablets ---- */
@media (max-width: 992px) {
    .tb-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .tb-hero-copy { text-align: center; }
    .tb-lead { margin-left: auto; margin-right: auto; }
    .tb-cta-row, .tb-chips { justify-content: center; }
    .tb-hero-visual { width: 100%; max-width: 520px; margin: 0 auto; }
    .tb-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-final-box { flex-direction: column; text-align: center; }
    .tb-final-text p { margin: 0 auto; }
}

/* ---- Large phones / small tablets ---- */
@media (max-width: 768px) {
    .tb-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
    .tb-steps { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
    .tb-swipe { display: block; }
    
    /* Strict override to flex to prevent text blowout from previous grid setup */
    .tb-planner-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }

    /* Sticky mobile order bar */
    .tb-sticky {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--tb-border); background: #fff;
        box-shadow: 0 -8px 26px rgba(15, 23, 42, .14); transform: translateY(115%);
        visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .tb-sticky.show { transform: translateY(0); visibility: visible; }
    .tb-sticky-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
    .tb-sticky-text small { font-size: 11px; font-weight: 600; color: var(--tb-gray); }
    .tb-sticky-text strong { font-size: 20px; font-weight: 900; color: var(--tb-dark); white-space: nowrap; }
    .tb-sticky-text strong span { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--tb-gray); }
    .tb-sticky .tb-btn { flex-shrink: 0; min-height: 44px; padding: 10px 22px; }
    .tb-final { padding-bottom: calc(var(--tb-sec) + 64px); }
    
    /* Disable scale strictly on small devices to prevent escaping */
    .tb-card.featured { transform: none !important; }
}

/* ---- Phones ---- */
@media (max-width: 576px) {
    .tb-main .container { padding-left: 16px; padding-right: 16px; width: 100%; max-width: 100%; }
    
    .tb-badge { white-space: normal; text-align: center; justify-content: center; border-radius: 16px; width: auto; max-width: 100%; }
    .tb-cta-row { flex-direction: column; align-items: stretch; width: 100%; }
    .tb-cta-row .tb-btn { width: 100%; }
    .tb-chips { gap: 8px 14px; }
    .tb-chips li { font-size: 13px; }

    .tb-strip-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .tb-planner-top { gap: 10px; width: 100%; }
    .tb-visits { padding: 10px 8px; width: 100%; }

    .tb-controls { padding: 12px; width: 100%; }
    .tb-control { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
    .tb-label { text-align: center; }
    .tb-switch, .tb-switch-wide { width: 100%; }
    .tb-opt { padding: 6px 8px; font-size: 13px; }
    .tb-coupon { max-width: 100%; width: 100%; }
    
    .tb-coupon-row { flex-direction: column; align-items: stretch; border-radius: 12px; background: transparent; padding: 0; border: 0; width: 100%; }
    .tb-coupon-row i { display: none; }
    .tb-coupon-text { text-align: center; margin-bottom: 8px; white-space: normal; }
    .tb-apply { width: 100%; border-radius: 12px; }

    .tb-sim .tb-btn { width: 100%; min-width: 0; }
    .tb-features, .tb-cases { grid-template-columns: minmax(0, 1fr); width: 100%; }

    .tb-guarantee {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%; 
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .tb-faq-item summary { padding: 12px 14px; }
    .tb-faq-body { padding: 0 14px 12px; }
    .tb-final-box { border-radius: 16px; }
    .tb-final-box .tb-btn { width: 100%; }
}

/* ---- Small phones (320px - 380px) ---- */
@media (max-width: 380px) {
    .tb-main .container { padding-left: 12px; padding-right: 12px; }
    .tb-hero h1 { font-size: 26px; }
    .tb-rows li { grid-template-columns: 62px minmax(0, 1fr); }
    .tb-amt { font-size: 34px; }
    .tb-opt { font-size: 12px; padding: 6px 4px; }
    .tb-save-badge { padding: 2px 4px; font-size: 9px; }
    .tb-range-scale { font-size: 10px; }
    .tb-sticky { padding-left: 12px; padding-right: 12px; }
    .tb-sticky-text strong { font-size: 18px; }
    .tb-sticky .tb-btn { padding: 10px 16px; }
}

/* ---- Very small devices (Galaxy Fold, 280px - 340px) ---- */
@media (max-width: 340px) {
    .tb-main .container { padding-left: 10px; padding-right: 10px; }
    .tb-hero h1 { font-size: 23px; }
    .tb-planner-top { grid-template-columns: minmax(0, 1fr); }
    .tb-amt { font-size: 30px; }
    .tb-ico { width: 40px; height: 40px; }
    .tb-meters li { grid-template-columns: minmax(0, 84px) minmax(0, 1fr); }
    .tb-list li { font-size: 12px; }
    .tb-head h2, .tb-final-text h2 { font-size: 20px; }
    .tb-sticky-text small { display: none; }
}

/* ---- Landscape phones ---- */
@media (max-height: 480px) and (orientation: landscape) {
    .tb-hero { padding: 28px 0 32px; }
}

/* ---- Touch devices: stop sticky hover transforms ---- */
@media (hover: none) {
    .tb-card:hover, .tb-feature:hover, .tb-case:hover,
    .tb-btn-primary:hover, .tb-btn-white:hover { transform: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .tb-main *, .tb-main *::before, .tb-main *::after, .tb-sticky {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .tb-reveal { opacity: 1; transform: none; }
}