/* =====================================================================
   Tivo IPTV USA — site styles
   (Critical above-the-fold rules are inlined by inc/enqueue.php)
   ===================================================================== */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.page-narrow { max-width: 860px; }

img { max-width: 100%; height: auto; }
strong { color: #fff; }
::selection { background: rgba(226,1,45,.35); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
       padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
       border: none; cursor: pointer; transition: transform .18s ease, background .18s ease; line-height: 1; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header extras / drawer ---------- */
.site-main { display: block; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; display: block; }
.wordmark-text { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.drawer .site-logo img { height: 34px; }

.drawer { position: fixed; top: 0; right: -320px; width: 300px; max-width: 84vw; height: 100vh;
          background: var(--bg-surface); border-left: 1px solid var(--border); z-index: 1200;
          transition: right .25s ease; padding: 18px; overflow-y: auto; }
.drawer.is-open { right: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close { background: none; border: none; color: var(--text); font-size: 18px; padding: 6px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 13px 6px; border-bottom: 1px solid var(--border-soft); font-weight: 600; color: var(--text-soft); }
.drawer nav a:hover { color: #fff; }
.drawer-cta { margin-top: 16px; width: 100%; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1100; }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.sec-head { max-width: 680px; margin: 0 0 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
           color: var(--brand); background: rgba(226,1,45,.1); border: 1px solid rgba(226,1,45,.25);
           padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(23px, 3.4vw, 32px); }
.sec-sub { margin-top: 12px; color: var(--text-soft); }

.inline-cta { margin-top: 24px; color: var(--text-soft); }
.inline-cta a { color: var(--brand); font-weight: 600; }
.inline-cta a:hover { text-decoration: underline; }

.note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-card);
            border: 1px solid var(--border); border-left: 3px solid var(--brand);
            border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text-soft); margin-top: 20px; }
.note-box i { color: var(--brand); margin-top: 3px; }
.note-box a { color: var(--brand); font-weight: 600; }

/* ---------- What-is: 2 columns ---------- */
.prose-2col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.prose-2col p { color: var(--text-soft); margin-bottom: 14px; }
.fact-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.fact-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-soft); font-size: 14.5px; }
.fact-list li:last-child { border-bottom: none; }
.fact-list i { color: var(--brand); width: 18px; text-align: center; margin-top: 3px; flex-shrink: 0; }

/* ---------- Card rows ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.card h3 i { color: var(--brand); }
.card p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Price table ---------- */
.ptable { margin-top: 8px; }
.ptable-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.ptab { padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
        background: var(--bg-card); color: var(--text-soft); border: 1px solid var(--border); cursor: pointer; }
.ptab.is-active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.ppanel-note { text-align: center; color: var(--text-mute); font-size: 13.5px; margin-bottom: 22px; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; display: flex; flex-direction: column; }
.pcard-popular { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(226,1,45,.35), 0 20px 50px rgba(226,1,45,.12); }
.pcard-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand-grad);
              color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.pcard-term { font-size: 20px; font-weight: 800; }
.pcard-screens { color: var(--text-mute); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.pcard-price { font-size: 34px; font-weight: 800; color: #fff; }
.pcard-pm { color: var(--text-mute); font-size: 13px; margin-bottom: 16px; }
.pcard-list { border-top: 1px solid var(--border-soft); padding-top: 14px; margin-bottom: 18px; flex: 1; }
.pcard-list li { position: relative; padding: 7px 0 7px 22px; color: var(--text-soft); font-size: 14px; }
.pcard-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- Category / device grids ---------- */
.cat-grid, .dev-grid, .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card, .dev-card, .why-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.cat-card i, .dev-card i, .why-card i { font-size: 22px; color: var(--brand); margin-bottom: 10px; display: block; }
.cat-card h3, .dev-card h3, .why-card h3 { font-size: 16px; margin-bottom: 7px; }
.cat-card p, .dev-card p, .why-card p { color: var(--text-soft); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; max-width: 760px; }
.step { display: flex; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.step-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-grad); color: #fff;
          display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { font-size: 16px; margin-bottom: 5px; }
.step p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Setup teaser ---------- */
.setup-teaser { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
                background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.setup-teaser h2 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 12px; }
.setup-teaser p { color: var(--text-soft); margin-bottom: 20px; }
.setup-mini li { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-soft); font-size: 14.5px; }
.setup-mini li:last-child { border-bottom: none; }
.setup-mini i { color: var(--brand); width: 18px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text);
         font-size: 15.5px; font-weight: 700; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-q i { color: var(--brand); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.is-open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; color: var(--text-soft); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 56px 0; background: linear-gradient(135deg, rgba(226,1,45,.14), rgba(255,10,59,.14));
            border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); }
.cta-band p { color: var(--text-soft); max-width: 620px; margin: 12px auto 24px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--bg-surface); border-bottom: 1px solid var(--border-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--text-mute); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--border); }
.crumbs a { color: var(--brand); }

/* ---------- Generic page ---------- */
.page { padding: 40px 0 72px; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(26px, 4.4vw, 40px); }
.page-lead { margin-top: 14px; color: var(--text-soft); font-size: 16.5px; }
.page-section { margin: 34px 0; }
.page-section h2 { font-size: clamp(20px, 2.8vw, 26px); margin-bottom: 12px; }
.page-section h3 { font-size: 17px; margin-bottom: 6px; }
.page-section p { color: var(--text-soft); margin-bottom: 12px; }
.updated { color: var(--text-mute); font-size: 13.5px; margin-top: 10px; }

.check-list li { position: relative; padding: 8px 0 8px 26px; color: var(--text-soft); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.ol-steps { counter-reset: s; }
.ol-steps li { position: relative; padding: 8px 0 8px 34px; color: var(--text-soft); margin-bottom: 4px; }
.ol-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 6px;
    width: 22px; height: 22px; border-radius: 7px; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; }
.group-row { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.group-row:last-child { border-bottom: none; }

/* ---------- Tables ---------- */
.price-compare, .dev-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; overflow: hidden; border-radius: var(--radius-sm); }
.price-compare th, .price-compare td, .dev-table th, .dev-table td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.price-compare th, .dev-table th { background: var(--bg-card-2); color: #fff; }
.price-compare td { background: var(--bg-card); color: var(--text-soft); }
.dev-table td { background: var(--bg-card); color: var(--text-soft); }
.dev-table i, .price-compare i { color: var(--brand); margin-right: 8px; }
.table-scroll { overflow-x: auto; }

/* ---------- Device tabs (setup) ---------- */
.tabs { max-width: 900px; margin: 0 auto; }
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 10px; margin-bottom: 24px; }
.tab-btn { background: transparent; border: none; color: var(--text-soft); padding: 12px 18px; border-radius: 9px;
           font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.tab-btn i { color: var(--brand); }
.tab-btn.is-active { background: var(--brand-grad); color: #fff; }
.tab-btn.is-active i { color: #fff; }
.tab-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.tab-panel h2 { font-size: 20px; margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.contact-card i { font-size: 28px; color: var(--brand); margin-bottom: 10px; }
.contact-card h2 { font-size: 18px; margin-bottom: 6px; }
.contact-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-card-img img { width: 100%; height: 180px; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-meta { color: var(--text-mute); font-size: 12.5px; margin-bottom: 8px; }
.post-card h2 { font-size: 17px; line-height: 1.35; margin-bottom: 10px; }
.post-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 12px; }
.read-more { color: var(--brand); font-weight: 700; font-size: 13.5px; }
.post-hero img { border-radius: var(--radius); margin: 8px 0 24px; }
.post-body { color: var(--text-soft); font-size: 16.5px; line-height: 1.8; }
.post-body h2, .post-body h3 { color: #fff; margin: 28px 0 12px; }
.post-body a { color: var(--brand); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 12px 0; }
.post-body li { margin: 6px 0; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.post-nav a { color: var(--brand); }
.pagination { margin-top: 30px; display: flex; justify-content: center; }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--border); border-radius: 8px; margin: 0 3px; color: var(--text-soft); }
.pagination .current { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 52px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand p { color: var(--text-mute); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-brand a { color: var(--text-soft); }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 12px; }
.footer-col ul li { margin: 8px 0; }
.footer-col ul a { color: var(--text-soft); font-size: 14px; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 12.5px; }
.footer-disclaimer { margin-top: 8px; max-width: 720px; }

/* ---------- Floating ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%;
            background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
            font-size: 24px; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 800; }
.to-top { position: fixed; left: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%;
          background: var(--bg-card); border: 1px solid var(--border); color: var(--text); z-index: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .prose-2col, .setup-teaser { grid-template-columns: 1fr; }
  .cards-3, .pcards, .cat-grid, .dev-grid, .why-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .cards-3, .pcards, .cat-grid, .dev-grid, .why-grid, .post-grid, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .tabs-nav { flex-direction: column; }
  .tab-btn { justify-content: center; }
  .price-compare, .dev-table { display: block; overflow-x: auto; white-space: nowrap; }
}
