/* =========================================================
   BDIX RDP Page  -  assets/css/bdix-rdp.css
   Self-contained. Header / menu / footer come from style.css.
   Breakpoints: 1200 / 992 / 768 / 576 / 380 / 340
========================================================= */

/* Tokens */
body {
    --rd-primary: var(--primary-blue, #0d6efd);
    --rd-soft: var(--secondary-blue, #e7f1ff);
    --rd-dark: var(--text-dark, #0f172a);
    --rd-gray: var(--text-gray, #64748b);
    --rd-border: var(--border-color, #e2e8f0);
    --rd-light: var(--bg-light, #f8fafc);
    --rd-indigo: #6366f1;
    --rd-cyan: #22d3ee;
    --rd-green: #10b981;
    --rd-orange: #f59e0b;
    --rd-red: #ef4444;
    --rd-navy: #061233;
    --rd-grad: linear-gradient(135deg, #0d6efd, #6366f1);
    --rd-sec: clamp(36px, 5.5vw, 60px);
    --rd-head-gap: clamp(20px, 3vw, 32px);
    --rd-gap: clamp(14px, 2vw, 20px);
    --rd-pad: clamp(16px, 2vw, 24px);
}

/* Bulletproof Mobile Overflow Fix */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
}
.rd-main {
    font-family: inherit;
    color: var(--rd-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
.rd-main * { box-sizing: border-box; }
.rd-main img, .rd-main svg { max-width: 100%; height: auto; }
.rd-main [hidden] { display: none !important; }
:where(.rd-main) :is(h1, h2, h3, h4, p, ul, ol, dl, dd) { margin: 0; padding: 0; list-style: none; }
.rd-main [id] { scroll-margin-top: 84px; }
.rd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.js .rd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .rd-reveal.in-view { opacity: 1; transform: none; }

/* Buttons */
.rd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 48px; padding: 12px 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 .3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.rd-btn:focus-visible { outline: 3px solid rgba(13, 110, 253, .5); outline-offset: 2px; }
.rd-btn-primary { background: var(--rd-primary); color: #fff; box-shadow: 0 8px 22px rgba(13, 110, 253, .3); }
.rd-btn-primary:hover { background: #0b5ed7; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 110, 253, .4); color: #fff; }
.rd-btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.rd-btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.rd-btn-outline { background: transparent; border-color: var(--rd-border); color: var(--rd-dark); }
.rd-btn-outline:hover { background: var(--rd-primary); border-color: var(--rd-primary); color: #fff; box-shadow: 0 6px 16px rgba(13, 110, 253, .25); }
.rd-btn-white { background: #fff; color: var(--rd-primary); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.rd-btn-white:hover { transform: translateY(-2px); color: #0b5ed7; }

/* Hero */
.rd-hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 60px) 0 clamp(36px, 6vw, 64px); color: #fff; background: linear-gradient(135deg, #061233 0%, #0d2870 55%, #1846c4 130%); width: 100%; }
.rd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 75%); }
.rd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 56px); align-items: center; width: 100%; }
.rd-hero-copy, .rd-hero-visual { min-width: 0; width: 100%; }

.rd-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 14px; border: 1px solid rgba(13, 110, 253, .5); border-radius: 50px; background: rgba(13, 110, 253, .15); color: #93c5fd; font-size: 13px; font-weight: 600; }
.rd-badge i { color: var(--rd-cyan); }
.rd-hero h1 { margin-bottom: 16px; font-size: clamp(28px, 5vw, 52px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: #fff; overflow-wrap: break-word; }
.rd-accent { color: var(--rd-cyan); }
@supports ((-webkit-background-clip:text) or (background-clip:text)){.rd-accent{background:linear-gradient(90deg,#22d3ee,#6366f1);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}}
.rd-lead { max-width: 600px; margin-bottom: 22px; font-size: clamp(15px, 2vw, 17px); line-height: 1.7; color: #cbd5e1; }
.rd-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; width: 100%; }
.rd-cta-row .rd-btn { width: auto; }

.rd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 560px; }
.rd-facts li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: #cbd5e1; }
.rd-facts b { font-size: 16px; font-weight: 800; color: #fff; }

.rd-win { max-width: 440px; margin: 0 auto 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: #0b1530; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.rd-win-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #061233; font-size: 12px; font-weight: 600; color: #cbd5e1; }
.rd-win-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-win-ctl i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; background: rgba(255, 255, 255, .2); }
.rd-win-body { position: relative; min-height: 200px; background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>'), linear-gradient(160deg, #0d3b8f, #071a44); }
.rd-desk { padding: 16px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.rd-icons { display: flex; flex-direction: column; gap: 10px; }
.rd-icons span { display: flex; flex-direction: column; align-items: center; width: 48px; gap: 4px; font-size: 10px; color: #cbd5e1; text-align: center; }
.rd-icons i { font-size: 20px; color: #fff; }
.rd-tm { position: absolute; right: 14px; top: 14px; width: 160px; background: rgba(255, 255, 255, .95); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); color: #0f172a; }
.rd-tm-top { background: #e2e8f0; padding: 6px 10px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.rd-tm ul { padding: 10px; display: grid; gap: 8px; }
.rd-tm li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #475569; }
.rd-tm li div { height: 6px; background: #cbd5e1; border-radius: 3px; overflow: hidden; }
.rd-tm li i { display: block; height: 100%; background: var(--rd-primary); border-radius: 3px; width: var(--w); }
.rd-taskbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(5, 11, 28, .95); position: absolute; bottom: 0; left: 0; width: 100%; }
.rd-start i { color: #38bdf8; font-size: 14px; }
.rd-search { background: rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 4px; font-size: 11px; color: #cbd5e1; flex: 1; }
.rd-tray { font-size: 10px; color: #cbd5e1; display: flex; align-items: center; gap: 4px; }
.rd-tray b { color: var(--rd-green); }

.rd-vers { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.rd-vers li { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50px; font-size: 12px; font-weight: 700; color: #94a3b8; cursor: pointer; transition: all .2s; }
.rd-vers li.on { background: var(--rd-primary); color: #fff; border-color: var(--rd-primary); }
.rd-fineprint { font-size: 12px; text-align: center; color: #94a3b8; }
.rd-dark-fine { color: #64748b; }

/* Strip */
.rd-strip { padding: 16px 0; border-bottom: 1px solid var(--rd-border); background: #fff; width: 100%; }
.rd-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px var(--rd-gap); }
.rd-strip-grid li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rd-strip-grid i { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--rd-soft); color: var(--rd-primary); font-size: 17px; }
.rd-strip-grid div { min-width: 0; }
.rd-strip-grid strong { display: block; font-size: 14px; font-weight: 800; color: #0f172a; word-wrap: break-word; }
.rd-strip-grid span { display: block; font-size: 12px; color: var(--rd-gray); word-wrap: break-word; }

/* Sections */
.rd-sec { padding: var(--rd-sec) 0; background: #fff; width: 100%; }
.rd-soft { background: var(--rd-light); }
.rd-head { max-width: 700px; margin: 0 auto var(--rd-head-gap); text-align: center; padding: 0 10px; }
.rd-eyebrow { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rd-indigo); }
.rd-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; }
.rd-head p { font-size: 15px; line-height: 1.65; color: var(--rd-gray); }

/* Builder Configurator */
.rd-builder { width: 100%; max-width: 1100px; margin: 0 auto; }
.rd-steps-col { width: 100%; }
.rd-step { margin-bottom: 32px; border: 0; padding: 0; }
.rd-legend, .rd-step legend { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: var(--rd-dark); margin-bottom: 16px; width: 100%; }
.rd-legend small { font-size: 14px; color: var(--rd-gray); font-weight: 500; }
.rd-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rd-primary); color: #fff; font-size: 16px; font-weight: 900; }

.rd-os-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.rd-os { display: block; position: relative; cursor: pointer; }
.rd-os input { position: absolute; opacity: 0; pointer-events: none; }
.rd-card-in { display: flex; flex-direction: column; align-items: center; padding: 18px 12px; border: 2px solid var(--rd-border); border-radius: 12px; background: #fff; transition: all .2s; text-align: center; height: 100%; position: relative; }
.rd-os-ico { font-size: 32px; color: var(--rd-gray); margin-bottom: 10px; transition: color .2s; }
.rd-os-ver { font-size: 22px; font-weight: 900; line-height: 1; color: var(--rd-dark); margin-bottom: 4px; }
.rd-os-name { font-size: 12px; font-weight: 600; color: var(--rd-gray); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.rd-os-tag { font-size: 12px; color: var(--rd-gray); font-weight: 500; }
.rd-os-badge { position: absolute; top: -10px; background: var(--rd-green); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; }
.rd-os input:checked + .rd-card-in { border-color: var(--rd-primary); background: var(--rd-soft); box-shadow: 0 8px 20px rgba(13, 110, 253, .1); }
.rd-os input:checked + .rd-card-in .rd-os-ico { color: var(--rd-primary); }
.rd-os input:focus-visible + .rd-card-in { outline: 3px solid rgba(13, 110, 253, .5); outline-offset: 2px; }

.rd-hint { font-size: 13px; color: var(--rd-gray); background: var(--rd-soft); padding: 10px 14px; border-radius: 8px; solid var(--rd-primary); }

.rd-uses { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rd-use { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--rd-border); border-radius: 50px; background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--rd-gray); cursor: pointer; transition: all .2s; }
.rd-use:hover { border-color: var(--rd-primary); color: var(--rd-primary); }
.rd-use[aria-pressed="true"] { background: var(--rd-dark); color: #fff; border-color: var(--rd-dark); }
.rd-use[aria-pressed="true"] i { color: var(--rd-cyan); }

.rd-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--rd-border); border-radius: 12px; background: #fff; }
.rd-control { display: flex; align-items: center; gap: 12px; }
.rd-label { font-size: 14px; font-weight: 700; color: var(--rd-dark); white-space: nowrap; }
.rd-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--rd-border); border-radius: 50px; background: var(--rd-light); }
.rd-switch-wide { width: max-content; }
.rd-opt { position: relative; z-index: 2; padding: 8px 20px; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--rd-gray); cursor: pointer; transition: color .3s; }
.rd-opt.active { color: #fff; }
.rd-slider { position: absolute; top: 4px; left: 4px; z-index: 1; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 50px; background: var(--rd-primary); transition: transform .3s ease; }
.rd-save-badge { background: var(--rd-green); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }

.rd-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.rd-cform { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rd-border); border-radius: 50px; padding: 4px 4px 4px 16px; flex-grow: 1; max-width: 400px; }
.rd-cform i { color: var(--rd-gray); }
.rd-cform input { border: 0; outline: none; padding: 8px; flex: 1; min-width: 0; font-size: 14px; }
.rd-apply { background: var(--rd-dark); color: #fff; border: 0; padding: 8px 20px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: background .2s; }
.rd-apply:hover { background: var(--rd-primary); }
.rd-copychip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px dashed var(--rd-indigo); border-radius: 50px; background: #fff; color: var(--rd-indigo); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.rd-copychip:hover { background: var(--rd-soft); }
.rd-cstatus { font-size: 13px; font-weight: 600; width: 100%; display: flex; align-items: center; gap: 10px; }
.rd-cstatus.ok { color: var(--rd-green); }
.rd-cstatus.err { color: var(--rd-red); }
.rd-remove { background: transparent; border: 1px solid currentColor; border-radius: 5px; color: inherit; padding: 4px 8px; font-size: 11px; cursor: pointer; font-weight: 700; }

/* 3x2 Packages Grid */
.rd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rd-gap); align-items: stretch; width: 100%; }
.rd-plan { position: relative; background: #fff; border: 2px solid var(--rd-border); border-radius: 16px; padding: 24px 20px; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.rd-plan:hover { transform: translateY(-5px); border-color: #c7d2fe; box-shadow: 0 14px 30px rgba(99, 102, 241, 0.1); }
.rd-plan.is-selected { border-color: var(--rd-primary); box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15); }
.rd-plan.rd-hot { border-color: var(--rd-orange); }

.rd-plan .rd-radio { position: absolute; opacity: 0; pointer-events: none; }
.rd-plan .rd-card-in { display: flex; flex-direction: column; height: 100%; cursor: pointer; text-align: left; border: none; padding: 0; background: transparent; }

.rd-plan-flag { position: absolute; top: -12px; left: 20px; background: var(--rd-orange); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; }
.rd-plan-name { font-size: 22px; font-weight: 900; color: var(--rd-dark); margin-bottom: 4px; }
.rd-plan-for { font-size: 13px; color: var(--rd-gray); margin-bottom: 16px; min-height: 38px; line-height: 1.4; }
.rd-plan-price { display: flex; align-items: baseline; gap: 4px; border-bottom: 1px solid #f1f5f9; padding-bottom: 16px; margin-bottom: 16px; }
.rd-plan-sym { font-size: 18px; font-weight: 700; color: var(--rd-dark); }
.rd-plan-amt { font-size: 38px; font-weight: 900; letter-spacing: -1px; color: var(--rd-dark); line-height: 1; }
.rd-plan-term { font-size: 13px; font-weight: 600; color: var(--rd-gray); }
.rd-plan-was { font-size: 13px; color: #94a3b8; margin-left: 8px; font-weight: 600; text-decoration: line-through; }

.rd-plan-specs { flex-grow: 1; margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.rd-plan-specs span { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #334155; }
.rd-plan-specs i { color: var(--rd-primary); width: 18px; text-align: center; font-size: 15px; }

.rd-plan-order { margin-top: auto; }

.rd-note { margin-top: 20px; font-size: 13px; color: var(--rd-gray); text-align: center; }

/* Latency Comparison */
.rd-lat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.rd-lat-bars, .rd-lag { background: #fff; padding: var(--rd-pad); border-radius: 16px; border: 1px solid var(--rd-border); box-shadow: 0 4px 15px rgba(0,0,0,.03); }
.rd-lat-bars h3, .rd-lag h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--rd-dark); }
.rd-lat-bars small { color: var(--rd-gray); font-size: 13px; font-weight: 500; }
.rd-bar-row { margin-bottom: 14px; }
.rd-bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.rd-bar-label b.bad { color: var(--rd-red); }
.rd-bar-label b.warn { color: var(--rd-orange); }
.rd-bar-label b.good { color: var(--rd-green); }
.rd-bar-track { height: 8px; background: #f1f5f9; border-radius: 8px; overflow: hidden; }
.rd-bar-track i { display: block; height: 100%; border-radius: 8px; width: var(--w); transition: width 1s ease-out; }
.rd-bar-track i.bad { background: var(--rd-red); }
.rd-bar-track i.warn { background: var(--rd-orange); }
.rd-bar-track i.good { background: var(--rd-green); }
.rd-lat-points { margin-top: 20px; display: grid; gap: 10px; }
.rd-lat-points li { font-size: 13px; font-weight: 500; color: #334155; display: flex; gap: 8px; }
.rd-lat-points i { color: var(--rd-green); margin-top: 2px; }

.rd-lag p { font-size: 14px; color: var(--rd-gray); margin-bottom: 16px; line-height: 1.5; }
.rd-lag input { width: 100%; padding: 12px 16px; border: 2px solid var(--rd-border); border-radius: 8px; font-size: 15px; margin-bottom: 20px; outline: none; font-family: monospace; }
.rd-lag input:focus { border-color: var(--rd-primary); }
.rd-lag-screens { display: grid; gap: 12px; margin-bottom: 16px; }
.rd-lag-screens div { background: #0f172a; border-radius: 8px; padding: 12px 16px; font-family: monospace; color: #fff; min-height: 64px; position: relative; }
.rd-lag-screens small { position: absolute; top: 8px; right: 12px; font-size: 10px; color: #64748b; font-family: sans-serif; text-transform: uppercase; font-weight: 700; }
.rd-lag-screens span { display: block; margin-top: 14px; color: #38bdf8; font-size: 14px; min-height: 18px; }

/* Timeline */
.rd-ver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.rd-ver { background: #fff; padding: var(--rd-pad); border-radius: 16px; border: 1px solid var(--rd-border); text-align: left; }
.rd-ver-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.rd-ver-num { font-size: 28px; font-weight: 900; color: var(--rd-primary); line-height: 1; }
.rd-ver-chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.rd-ver-chip.warn { background: #fef3c7; color: #d97706; }
.rd-ver-chip.ok { background: #dcfce7; color: #166534; }
.rd-ver h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.rd-ver-tag { font-size: 13px; color: var(--rd-gray); margin-bottom: 16px; font-weight: 600; }
.rd-ver ul { margin-bottom: 20px; flex-grow: 1; }
.rd-ver li { font-size: 13px; line-height: 1.5; color: #334155; margin-bottom: 10px; display: flex; gap: 8px; }
.rd-ver li i { color: var(--rd-green); margin-top: 3px; }
.rd-ver-dates { display: grid; gap: 8px; background: var(--rd-soft); padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 12px; }
.rd-ver-dates div { display: flex; justify-content: space-between; }
.rd-ver-dates dt { color: var(--rd-gray); font-weight: 600; }
.rd-ver-dates dd { font-weight: 700; color: var(--rd-dark); }

.rd-timeline { background: #fff; padding: var(--rd-pad); border-radius: 16px; border: 1px solid var(--rd-border); margin-bottom: 40px; position: relative; }
.rd-timeline h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.rd-tl-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 600; color: var(--rd-gray); margin-bottom: 24px; }
.rd-tl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; }
.rd-tl-legend i.m { background: var(--rd-primary); }
.rd-tl-legend i.e { background: #94a3b8; }
.rd-tl-legend i.t { width: 2px; background: var(--rd-red); height: 16px; vertical-align: middle; }
.rd-tl { position: relative; padding-bottom: 20px; }
.rd-tl-row { display: flex; margin-bottom: 16px; align-items: center; }
.rd-tl-label { width: 180px; flex-shrink: 0; font-size: 13px; }
.rd-tl-label b { display: block; color: var(--rd-dark); }
.rd-tl-label span { color: var(--rd-gray); font-size: 11px; }
.rd-tl-track { flex-grow: 1; height: 12px; background: #f1f5f9; border-radius: 12px; position: relative; margin-left: 20px; }
.rd-tl-track i { position: absolute; top: 0; height: 100%; border-radius: 12px; left: var(--l); width: var(--w); }
.rd-tl-track i.m { background: var(--rd-primary); z-index: 2; }
.rd-tl-track i.e { background: #cbd5e1; z-index: 1; }
.rd-tl-axis { position: absolute; bottom: 0; left: 200px; right: 0; height: 20px; border-top: 1px solid var(--rd-border); }
.rd-tl-axis span { position: absolute; left: var(--l); top: 6px; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--rd-gray); }
.rd-tl-today { position: absolute; top: 0; bottom: 20px; width: 2px; background: var(--rd-red); left: calc(200px + var(--l) * (100% - 200px) / 100); z-index: 5; }
.rd-tl-today em { position: absolute; top: -20px; left: -14px; background: var(--rd-red); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; padding: 2px 6px; border-radius: 4px; }

.rd-choose { background: var(--rd-dark); color: #fff; padding: var(--rd-pad); border-radius: 16px; }
.rd-choose h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--rd-cyan); }
.rd-choose ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-choose li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: #cbd5e1; }
.rd-choose i { color: var(--rd-green); font-size: 16px; margin-top: 2px; }
.rd-choose b { color: #fff; display: block; margin-bottom: 4px; }

/* Use Cases */
.rd-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rd-gap); }
.rd-case { background: #fff; padding: var(--rd-pad); border-radius: 16px; border: 1px solid var(--rd-border); display: flex; flex-direction: column; transition: transform 0.3s; }
.rd-case:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 110, 253, .08); }
.rd-fi { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--rd-soft); color: var(--rd-primary); font-size: 20px; border-radius: 12px; margin-bottom: 16px; }
.rd-case h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--rd-dark); }
.rd-case p { font-size: 14px; line-height: 1.6; color: var(--rd-gray); margin-bottom: 16px; flex-grow: 1; }
.rd-case-rec { font-size: 13px; font-weight: 700; color: var(--rd-dark) !important; margin-bottom: 16px !important; padding-top: 16px; border-top: 1px solid var(--rd-border); }
.rd-case-rec i { color: var(--rd-primary); margin-right: 6px; }
.rd-case-go { font-size: 14px; font-weight: 800; color: var(--rd-primary); text-decoration: none; }
.rd-case-go:hover { text-decoration: underline; }

/* Features & Connect */
.rd-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rd-gap); margin-bottom: 40px; }
.rd-feature { background: #fff; padding: var(--rd-pad); border-radius: 14px; border: 1px solid var(--rd-border); transition: transform 0.3s; }
.rd-feature:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(13,110,253,0.08); }
.rd-feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--rd-dark); }
.rd-feature p { font-size: 13px; line-height: 1.6; color: var(--rd-gray); }

.rd-secure { background: var(--rd-dark); color: #fff; border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.rd-secure-head { display: flex; align-items: flex-start; gap: 16px; }
.rd-secure-head .rd-fi { background: rgba(255,255,255,0.1); color: var(--rd-cyan); }
.rd-secure-head h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.rd-secure-head p { font-size: 15px; color: #cbd5e1; }
.rd-checks { display: grid; gap: 12px; }
.rd-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: #f1f5f9; }
.rd-checks i { color: var(--rd-green); margin-top: 3px; font-size: 16px; }

.rd-connect { background: #fff; border-radius: 16px; border: 1px solid var(--rd-border); overflow: hidden; margin-bottom: 40px; }
.rd-tabs { display: flex; background: var(--rd-light); border-bottom: 1px solid var(--rd-border); overflow-x: auto; }
.rd-tab { padding: 16px 24px; background: transparent; border: none; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--rd-gray); cursor: pointer; white-space: nowrap; transition: all 0.2s; border-bottom: 3px solid transparent; }
.rd-tab:hover { color: var(--rd-primary); }
.rd-tab[aria-selected="true"] { color: var(--rd-primary); border-bottom-color: var(--rd-primary); background: #fff; }
.rd-tab i { margin-right: 8px; }
.rd-tabpanel { padding: clamp(20px, 3vw, 32px); }
.rd-how { margin: 0; padding-left: 20px; }
.rd-how li { font-size: 15px; line-height: 1.6; color: var(--rd-dark); margin-bottom: 12px; padding-left: 8px; }
.rd-how kbd { font-family: monospace; background: var(--rd-light); border: 1px solid var(--rd-border); padding: 2px 6px; border-radius: 4px; font-size: 13px; font-weight: 700; }

.rd-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-flow-step { background: #fff; padding: var(--rd-pad); border-radius: 14px; border: 1px solid var(--rd-border); text-align: center; }
.rd-flow-step .rd-num { margin-bottom: 16px; box-shadow: 0 0 0 6px var(--rd-soft); }
.rd-flow-step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--rd-dark); }
.rd-flow-step p { font-size: 14px; line-height: 1.6; color: var(--rd-gray); }

/* FAQ & Contacts */
.rd-faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.rd-faq-side { position: sticky; top: 100px; }
.rd-head-left { text-align: left; margin: 0 0 20px; }
.rd-faq { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rd-faq-item { background: #fff; border: 1px solid var(--rd-border); border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.rd-faq-item summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.rd-faq-item summary::-webkit-details-marker { display: none; }
.rd-faq-item h3 { font-size: 15px; margin: 0; color: var(--rd-dark); }
.rd-faq-item i { color: var(--rd-primary); transition: transform 0.3s; }
.rd-faq-item[open] i { transform: rotate(180deg); }
.rd-faq-item[open] { border-color: var(--rd-primary); box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1); }
.rd-faq-body { padding: 0 20px 16px; }
.rd-faq-body p { margin: 0; padding-top: 12px; border-top: 1px solid var(--rd-light); font-size: 14px; line-height: 1.6; color: var(--rd-gray); }

.rd-ct { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rd-gap); }
.rd-ct-card { display: flex; align-items: center; gap: 16px; background: #fff; padding: var(--rd-pad); border-radius: 14px; border: 1px solid var(--rd-border); text-decoration: none; color: inherit; transition: transform 0.3s, border-color 0.3s; }
.rd-ct-card:hover { transform: translateY(-3px); border-color: var(--rd-primary); }
.rd-ct-card .rd-fi { margin: 0; flex-shrink: 0; }
.rd-ct-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.rd-ct-card p { font-size: 13px; color: var(--rd-gray); }

/* Final CTA */
.rd-final { padding: var(--rd-sec) 0; background: var(--rd-light); width: 100%; overflow: hidden; }
.rd-final-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(24px, 4vw, 48px); background: var(--rd-grad); border-radius: 20px; color: #fff; box-shadow: 0 20px 40px rgba(13, 110, 253, 0.25); position: relative; overflow: hidden; }
.rd-final-box::after { content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%; background: radial-gradient(circle at right, rgba(255,255,255,0.15) 0%, transparent 70%); pointer-events: none; }
.rd-final-text { z-index: 1; flex: 1; min-width: 0; }
.rd-final-text h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; margin-bottom: 12px; color: #fff; }
.rd-final-text p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0; max-width: 600px; }
.rd-final-actions { display: flex; gap: 12px; z-index: 1; flex-wrap: wrap; }

/* Sticky Order Bar & Toast */
.rd-sticky { display: none; }
.rd-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); opacity: 0; visibility: hidden; background: var(--rd-dark); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 1100; transition: all 0.3s; }
.rd-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* =========================================================
   RESPONSIVE (Max-width approach)
========================================================= */
@media (max-width: 1200px) {
    .rd-os-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-ver-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-features { grid-template-columns: repeat(2, 1fr); }
    .rd-ct { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .rd-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .rd-hero-copy { max-width: 600px; margin: 0 auto; }
    .rd-cta-row { justify-content: center; }
    .rd-facts { margin: 0 auto; justify-content: center; text-align: left; }
    .rd-hero-visual { max-width: 500px; margin: 0 auto; }
    .rd-strip-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-lat-grid { grid-template-columns: 1fr; gap: 24px; }
    .rd-choose ul { grid-template-columns: 1fr; }
    .rd-cases { grid-template-columns: repeat(2, 1fr); }
    .rd-secure { grid-template-columns: 1fr; gap: 24px; }
    .rd-faq-wrap { grid-template-columns: 1fr; gap: 24px; }
    .rd-faq-side { position: static; text-align: center; }
    .rd-head-left { text-align: center; margin: 0 auto 20px; }
    .rd-final-box { flex-direction: column; text-align: center; }
    .rd-final-actions { justify-content: center; }
}
@media (max-width: 768px) {
    .rd-plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
    .rd-controls { flex-direction: column; align-items: stretch; gap: 16px; }
    .rd-control { justify-content: space-between; width: 100%; }
    .rd-flow { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .rd-ver-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto 24px; }
    .rd-tl-axis, .rd-tl-track { display: none; }
    .rd-tl-row { flex-direction: column; align-items: flex-start; gap: 8px; solid var(--rd-border); padding-left: 16px; padding-bottom: 16px; margin-bottom: 0; }
    
    .rd-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(--rd-border); background: #fff;
        box-shadow: 0 -8px 26px rgba(15, 23, 42, .14); transform: translateY(115%);
        visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .rd-sticky.show { transform: translateY(0); visibility: visible; }
    .rd-sticky-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
    .rd-sticky-text small { font-size: 11px; font-weight: 600; color: var(--rd-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
    .rd-sticky-text strong { font-size: 20px; font-weight: 900; color: var(--rd-dark); white-space: nowrap; }
    .rd-sticky-text strong span { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--rd-gray); }
    .rd-sticky .rd-btn { flex-shrink: 0; min-height: 44px; padding: 10px 22px; width: auto; }
    .rd-final { padding-bottom: calc(var(--rd-sec) + 64px); }
}
@media (max-width: 576px) {
    .rd-main .container { padding-left: 16px; padding-right: 16px; width: 100%; max-width: 100%; }
    .rd-cta-row { flex-direction: column; }
    .rd-facts { grid-template-columns: 1fr; }
    .rd-strip-grid { grid-template-columns: 1fr; }
    .rd-os-grid { grid-template-columns: 1fr; }
    .rd-controls { padding: 16px; }
    .rd-control { flex-direction: column; align-items: stretch; gap: 8px; }
    .rd-label { text-align: center; }
    .rd-switch, .rd-switch-wide { width: 100%; max-width: 100%; }
    .rd-opt { padding: 8px; font-size: 13px; }
    .rd-cform { flex-direction: column; align-items: stretch; border-radius: 12px; padding: 0; border: none; max-width: 100%; }
    .rd-cform i { display: none; }
    .rd-cform input { border: 1px solid var(--rd-border); border-radius: 8px; padding: 12px; text-align: center; }
    .rd-apply { border-radius: 8px; }
    .rd-coupon { flex-direction: column; align-items: stretch; }
    
    .rd-cases { grid-template-columns: 1fr; }
    .rd-features { grid-template-columns: 1fr; }
    .rd-ct { grid-template-columns: 1fr; }
    .rd-tabs { flex-direction: column; }
    .rd-tab { border-bottom: none;  solid transparent; text-align: left; }
    .rd-tab[aria-selected="true"] { color: var(--rd-primary); }
    .rd-final-actions { flex-direction: column; width: 100%; }
}
@media (max-width: 380px) {
    .rd-main .container { padding-left: 12px; padding-right: 12px; }
    .rd-plan { padding: 20px 16px; }
    .rd-plan-amt { font-size: 32px; }
    .rd-sticky { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .rd-main *, .js .rd-reveal { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .rd-reveal { opacity: 1; transform: none; }
}