/* ===== IPTV USA – Homepage styles (home.css) =====
   Loaded only by index.html, after style.css. Uses the brand variables defined in style.css
   (--primary red, --cyan blue, --dark navy surfaces) so the homepage matches the rest of the site. */

/* ---------- utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp-section { padding: 88px 0; background: var(--dark); position: relative; }
.hp-section.alt { background: var(--dark2); }
.hp-section .section-header { margin-bottom: 44px; }
.hp-lead { max-width: 760px; margin: 0 auto 36px; text-align: center; color: var(--gray-light); font-size: 1.02rem; line-height: 1.75; }
.hp-prose p { color: var(--gray-light); line-height: 1.8; margin-bottom: 16px; font-size: 1rem; }
.hp-prose strong { color: #fff; font-weight: 600; }
/* Body-copy links use a lighter tint of the brand blue for stronger contrast on the navy background (≈ 8:1). */
:root { --hp-link: #7fb0f7; }
.hp-prose a, .hp-card p a, .hp-note a, .hp-faq-body a, .hp-lead a, .hp-step p a, .hp-tips a, .hp-contact-alt a {
  color: var(--hp-link); border-bottom: 1px solid rgba(127,176,247,0.4); transition: border-color .2s, color .2s;
}
.hp-prose a:hover, .hp-card p a:hover, .hp-note a:hover, .hp-faq-body a:hover, .hp-lead a:hover, .hp-step p a:hover, .hp-tips a:hover, .hp-contact-alt a:hover { color: #fff; border-color: var(--hp-link); }
.hp-fix .go { color: var(--hp-link); }
.hp-post .more { color: var(--hp-link); }
.hp-post-meta .cat { color: var(--hp-link); }
.hp-note { color: var(--gray); font-size: 0.88rem; line-height: 1.7; margin-top: 18px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */
.hp-hero { min-height: clamp(640px, 92vh, 920px); }
.hp-hero .hero-content { max-width: 1200px; padding: 128px 24px 72px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hp-hero-copy { max-width: 700px; }
.hp-hero .hero-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hp-hero .hero-sub { max-width: 600px; }
.hp-hero .hero-btns { margin-bottom: 20px; }
.hp-quick { font-size: 0.92rem; color: rgba(255,255,255,0.6); margin-bottom: 34px; }
.hp-quick a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); margin: 0 2px; transition: border-color .2s; }
.hp-quick a:hover { border-color: var(--cyan); }
.hp-hero-card { align-self: center; filter: drop-shadow(0 24px 50px rgba(0,0,0,0.55)); animation: hpFloat 7s ease-in-out infinite; }
.hp-hero-card svg { width: 100%; height: auto; display: block; }
@keyframes hpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hp-hero .hero-bg { object-position: 50% 45%; }

/* ---------- two-column intro ---------- */
.hp-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.hp-facts { background: var(--card-bg); border: 1px solid rgba(58,123,213,0.18); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--glow); }
.hp-facts h3 { font-size: 1.05rem; margin-bottom: 14px; color: #fff; }
.hp-facts dl { display: grid; gap: 0; }
.hp-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hp-facts div:last-child { border-bottom: 0; }
.hp-facts dt { color: var(--cyan); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }
.hp-facts dd { color: var(--gray-light); font-size: 0.93rem; line-height: 1.55; }
.hp-legal { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--primary); background: rgba(200,16,46,0.06); border-radius: 0 10px 10px 0; color: var(--gray-light); font-size: 0.9rem; line-height: 1.65; }

/* ---------- generic cards / grids ---------- */
.hp-grid { display: grid; gap: 22px; }
.hp-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 26px 24px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.hp-card:hover { transform: translateY(-4px); border-color: rgba(58,123,213,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.hp-card h3 { font-size: 1.08rem; font-weight: 700; margin: 14px 0 8px; color: #fff; line-height: 1.3; }
.hp-card p { color: var(--gray-light); font-size: 0.93rem; line-height: 1.7; }
.hp-card p + p { margin-top: 10px; }
.hp-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(200,16,46,0.18), rgba(58,123,213,0.22)); border: 1px solid rgba(58,123,213,0.3); display: flex; align-items: center; justify-content: center; }
.hp-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan); background: rgba(58,123,213,0.12); border: 1px solid rgba(58,123,213,0.25); border-radius: 50px; padding: 3px 11px; margin-top: 12px; }

/* ---------- how it works diagram ---------- */
.hp-flow { background: var(--card-bg); border: 1px solid rgba(58,123,213,0.18); border-radius: var(--radius); padding: 28px 24px 12px; margin: 0 0 30px; }
.hp-flow-steps, .hp-steps { list-style: none; padding: 0; }
.hp-flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.hp-flow-steps li { list-style: none; }
.hp-flow-steps li { position: relative; background: #0c1630; border: 1px solid rgba(58,123,213,0.4); border-radius: 14px; padding: 18px 18px 20px; }
.hp-flow-steps li.end { border-color: rgba(200,16,46,0.6); }
.hp-flow-steps .n { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--cyan-dark)); color: #fff; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.hp-flow-steps h3 { font-size: 1.02rem; margin: 0 0 6px; color: #fff; }
.hp-flow-steps p { font-size: 0.88rem; line-height: 1.6; color: var(--gray-light); }
/* connector arrows between the four steps */
.hp-flow-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -27px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 1.3rem; font-weight: 700; width: 20px; text-align: center; }
.hp-flow-cap { text-align: center; color: var(--gray); font-size: 0.85rem; padding: 18px 0 8px; }

/* ---------- pricing (extends existing price-card styles) ---------- */
.hp-pricing .pricing-sub { max-width: 640px; margin: 10px auto 44px; line-height: 1.7; }
.hp-pricing .pricing-cards { align-items: stretch; }
.hp-pricing .price-card { display: flex; flex-direction: column; text-align: left; }
.hp-pricing .price-features { flex: 1; }
.price-monthly { display: inline-block; color: var(--gray-light); font-size: 0.9rem; font-weight: 600; margin-top: 2px; }
.price-term { display: block; font-size: 0.8rem; color: var(--gray); margin-top: 6px; }
.hp-pricing-foot { margin-top: 36px; color: rgba(255,255,255,0.65); font-size: 0.93rem; line-height: 1.8; text-align: center; }
.hp-pricing-foot a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.35); }
.hp-pricing-foot a:hover { border-color: var(--cyan); }

/* ---------- devices ---------- */
.hp-device h3 { margin-top: 12px; }
.hp-apps { margin-top: 12px; font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.hp-apps b { color: var(--gray-light); font-weight: 600; }

/* ---------- steps ---------- */
.hp-steps { counter-reset: st; display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.hp-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 24px 26px; }
.hp-step::before { counter-increment: st; content: counter(st); width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--cyan-dark)); color: #fff; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(200,16,46,0.3); }
.hp-step h3 { font-size: 1.1rem; margin-bottom: 6px; color: #fff; }
.hp-step p { color: var(--gray-light); font-size: 0.94rem; line-height: 1.75; }
.hp-step p + p { margin-top: 8px; }
.hp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- table ---------- */
.hp-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); background: var(--card-bg); -webkit-overflow-scrolling: touch; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hp-table.wide { min-width: 680px; }   /* long text columns: scroll sideways inside the wrapper on small screens */
.hp-table caption { text-align: left; padding: 14px 18px 0; color: var(--gray); font-size: 0.82rem; caption-side: bottom; padding-bottom: 14px; }
.hp-table th { text-align: left; background: rgba(58,123,213,0.12); color: #fff; font-weight: 700; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hp-table td { padding: 14px 18px; color: var(--gray-light); border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; line-height: 1.6; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table td:first-child { color: #fff; font-weight: 600; }
.hp-table tbody tr:hover td { background: rgba(255,255,255,0.025); }

/* ---------- speed layout ---------- */
.hp-speed { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
.hp-tips { display: grid; gap: 12px; }
.hp-tips li { display: flex; gap: 12px; color: var(--gray-light); font-size: 0.95rem; line-height: 1.65; }
.hp-tips li::before { content: '✓'; flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(58,123,213,0.15); color: var(--cyan); font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.hp-tips strong { color: #fff; }
.hp-subhead { font-size: 1.15rem; margin: 0 0 14px; color: #fff; }

/* ---------- checklist (choose a provider) ---------- */
.hp-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hp-check-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 20px 22px; }
.hp-check-item .n { width: 40px; height: 40px; border-radius: 50%; background: rgba(200,16,46,0.14); border: 1px solid rgba(200,16,46,0.4); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hp-check-item h3 { font-size: 1rem; margin-bottom: 4px; color: #fff; }
.hp-check-item p { color: var(--gray-light); font-size: 0.92rem; line-height: 1.65; }
.hp-callout { margin-top: 28px; background: linear-gradient(135deg, rgba(200,16,46,0.1), rgba(58,123,213,0.12)); border: 1px solid rgba(58,123,213,0.3); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hp-callout h3 { font-size: 1.15rem; margin-bottom: 8px; }
.hp-callout p { color: var(--gray-light); font-size: 0.94rem; line-height: 1.7; }

/* ---------- troubleshooting ---------- */
.hp-fix .sym { font-size: 0.74rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #ff7a7a; }
.hp-fix h3 { margin-top: 6px; }
.hp-fix .go { display: inline-block; margin-top: 14px; color: var(--cyan); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid transparent; transition: border-color .2s, transform .2s; }
.hp-fix .go:hover { border-color: var(--cyan); transform: translateX(3px); }

/* ---------- sports legacy cleanup ---------- */
.sports-section .sport-pill { white-space: nowrap; }

/* ---------- reseller band ---------- */
.hp-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, rgba(200,16,46,0.1), rgba(10,18,38,0.9)); border: 1px solid rgba(200,16,46,0.25); border-radius: 20px; padding: 40px 44px; }
.hp-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hp-band p { color: var(--gray-light); line-height: 1.75; }
.hp-band ul { display: grid; gap: 10px; }
.hp-band li { color: var(--gray-light); font-size: 0.95rem; display: flex; gap: 10px; }
.hp-band li::before { content: '✓'; color: var(--cyan); font-weight: 800; }
.hp-band .btn-primary { margin-top: 22px; }

/* ---------- latest articles ---------- */
.hp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hp-post { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s, box-shadow .3s; }
.hp-post:hover { transform: translateY(-5px); border-color: rgba(58,123,213,0.45); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.hp-post-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: linear-gradient(135deg, var(--dark4), var(--dark3)); }
.hp-post-ph { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(200,16,46,0.25), rgba(58,123,213,0.3)); color: #fff; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; padding: 12px; text-align: center; }
.hp-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.hp-post-meta { color: var(--gray); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 8px; }
.hp-post-meta .cat { color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; }
.hp-post h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 10px; }
.hp-post h3 a { color: #fff; }
.hp-post h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.hp-post { position: relative; }
.hp-post p { color: var(--gray-light); font-size: 0.9rem; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.hp-post .more { color: var(--cyan); font-weight: 600; font-size: 0.88rem; }

/* ---------- explore hub ---------- */
.hp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hp-tile { display: block; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 22px 22px 20px; transition: transform .3s, border-color .3s; }
.hp-tile:hover { transform: translateY(-4px); border-color: rgba(58,123,213,0.45); }
.hp-tile strong { display: block; font-size: 1.02rem; color: #fff; margin: 12px 0 4px; }
.hp-tile span { display: block; color: var(--gray); font-size: 0.86rem; line-height: 1.55; }

/* ---------- FAQ (native <details>, fully crawlable) ---------- */
.hp-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.hp-faq details { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; transition: border-color .3s; }
.hp-faq details[open] { border-color: rgba(58,123,213,0.4); }
.hp-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.02rem; color: #fff; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: ''; flex: 0 0 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); transition: transform .25s; margin-top: -4px; }
.hp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.hp-faq summary:hover { color: var(--cyan); }
.hp-faq-body { padding: 0 24px 22px; color: var(--gray-light); font-size: 0.95rem; line-height: 1.8; }
.hp-faq-body p + p { margin-top: 10px; }
.hp-faq-more { text-align: center; margin-top: 26px; }

/* ---------- contact (extends existing styles) ---------- */
.hp-contact-alt { margin-top: 4px; font-size: 0.85rem; color: var(--gray); text-align: center; }
.hp-contact-alt a { color: var(--cyan); }

/* ---------- final CTA ---------- */
.hp-final { padding: 80px 0; background: linear-gradient(135deg, #14081a 0%, #0a1226 55%, #08162f 100%); position: relative; overflow: hidden; text-align: center; }
.hp-final::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,16,46,0.22), transparent 65%); pointer-events: none; }
.hp-final .container { position: relative; }
.hp-final h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hp-final p { max-width: 620px; margin: 0 auto; color: var(--gray-light); line-height: 1.75; }

/* ---------- scroll reveal (progressive enhancement: content is visible without JS) ---------- */
.js .hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .hp-reveal.in { opacity: 1; transform: none; }

/* ---------- footer: h3 (not h4) so heading order stays valid; same look as style.css .footer-links h4 ---------- */
.footer-links .footer-title { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hp-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; }
  .hp-flow-steps li:nth-child(2)::after { content: none; }
  .hp-hero .hero-content { grid-template-columns: 1fr; padding-left: 24px; }
  .hp-hero-card { display: none; }
  .hp-grid.c4, .hp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* minmax(0, 1fr), not 1fr: a plain 1fr track can't shrink below its content (the wide table), which stretched the whole page on phones */
  .hp-split, .hp-speed, .hp-band { grid-template-columns: minmax(0, 1fr); }
  .hp-grid.c3, .hp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-check { grid-template-columns: minmax(0, 1fr); }
  .hp-callout { grid-template-columns: minmax(0, 1fr); }
  .hp-pricing .pricing-cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hp-section { padding: 64px 0; }
  .hp-hero .hero-content { padding: 108px 20px 56px; }
  .hp-grid.c2, .hp-grid.c3, .hp-grid.c4, .hp-posts, .hp-tiles { grid-template-columns: minmax(0, 1fr); }
  .hp-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hp-step { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .hp-step::before { width: 44px; height: 44px; font-size: 1.1rem; }
  .hp-band { padding: 28px 22px; }
  .hp-hero .hero-btns .btn-primary, .hp-hero .hero-btns .btn-ghost { width: 100%; text-align: center; }
  .hp-hero .hero-stats { width: 100%; padding: 18px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 8px; }
  .hp-hero .stat-divider { display: none; }
  .hp-hero .stat { padding: 0 6px; }
  .hp-flow { padding: 20px 16px 8px; }
  .hp-flow-steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hp-flow-steps li:not(:last-child)::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -31px; transform: translateX(-50%); }
  .hp-flow-steps li:nth-child(2)::after { content: '↓'; }
  .hp-table th, .hp-table td { padding: 11px 12px; font-size: 0.88rem; }
  .hp-faq summary { padding: 18px 18px; font-size: 0.98rem; }
  .hp-faq-body { padding: 0 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-hero-card { animation: none; }
  .js .hp-reveal { opacity: 1; transform: none; transition: none; }
  .hp-card, .hp-post, .hp-tile { transition: none; }
}
