/* IPTV Sub (iptvsub.org)
   Warm ivory pages, deep aubergine (#3b0764) bands and amber (#f59e0b) calls
   to action. Red Hat Display headings, Public Sans text. */

:root {
  --paper: #fffdf8;
  --paper-2: #faf5ff;
  --white: #ffffff;
  --plum: #3b0764;
  --plum-2: #581c87;
  --plum-ink: #2e0a4f;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --amber-ink: #b45309;
  --ink: #1c1427;
  --body: #4a4458;
  --soft: #6e6880;
  --rule: #ebe5f2;
  --good: #047857;
  --bad: #b91c1c;
  --rad: 16px;
  --rad-s: 10px;
  --max: 1180px;
  --read: 740px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 17px/1.72 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--plum-2); text-decoration: underline; text-decoration-color: rgba(88, 28, 135, 0.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: "Red Hat Display", system-ui, sans-serif; color: var(--ink); line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 3.2vw + 1rem, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 1.8vw + 1rem, 2.3rem); font-weight: 900; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: calc(var(--read) + 48px); }

/* Ribbon + header */
.ribbon { background: var(--plum-ink); color: #e9d5ff; font-size: 0.82rem; text-align: center; padding: 7px 0; letter-spacing: 0.02em; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.topbar-logo { display: flex; text-decoration: none; }
.topbar-logo svg { display: block; }
.menu ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.menu a { color: var(--ink); font-weight: 600; font-size: 0.94rem; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-color: var(--amber); }
.menu-cta { display: none !important; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 42px; border-radius: 12px; border: 1px solid var(--rule); background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--plum); }
@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .topbar-actions .btn { display: none; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 24px 24px; display: none; max-height: calc(100vh - 110px); overflow-y: auto; }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .menu-cta { display: flex !important; margin-top: 18px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 0.97rem/1 "Red Hat Display", sans-serif; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--plum-ink); box-shadow: 0 8px 22px -12px rgba(245, 158, 11, 0.9); }
.btn-amber:hover { background: var(--amber-2); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-2); }
.btn-line-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-big { padding: 17px 30px; font-size: 1.04rem; }
.btn-wide { width: 100%; }

/* Bands */
.band { padding: 80px 0; }
.band-tint { background: var(--paper-2); }
.band-plum { background: var(--plum); color: #e9d5ff; }
.band-plum h2, .band-plum h3 { color: #fff; }
.heading { max-width: 720px; margin-bottom: 40px; }
.heading-center { margin-left: auto; margin-right: auto; text-align: center; }
.heading-intro { font-size: 1.08rem; color: var(--soft); }
.kicker { font: 700 0.8rem/1.2 "Red Hat Display", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber-ink); margin-bottom: 12px; }
.kicker-light { color: var(--amber-2); }

/* Hero */
.hero { background: radial-gradient(900px 500px at 85% 10%, rgba(245, 158, 11, 0.18), transparent 60%), linear-gradient(160deg, #3b0764 0%, #2e0a4f 70%); color: #e9d5ff; padding: 84px 0 76px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber-2); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 52px; align-items: center; }
.hero-single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.hero-lead { font-size: 1.17rem; color: #e9d5ff; max-width: 58ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.93rem; color: #f5f3ff; }
.hero-points li::before { content: "✓"; color: var(--amber-2); font-weight: 700; margin-right: 7px; }
.hero-aside svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35)); }
@media (max-width: 900px) { .hero-row { grid-template-columns: minmax(0, 1fr); } .hero-aside { max-width: 460px; } }

.intro { padding: 56px 0 10px; }
.intro-lead { font-size: 1.15rem; color: var(--soft); max-width: 62ch; }

/* Figures */
.figures { background: var(--white); border-bottom: 1px solid var(--rule); }
.figures-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { padding: 26px 12px; text-align: center; border-right: 1px solid var(--rule); }
.figure:last-child { border-right: 0; }
.figure b { display: block; font: 900 clamp(1.5rem, 1.5vw + 1rem, 2.2rem)/1.1 "Red Hat Display", sans-serif; color: var(--plum); }
.figure span { font-size: 0.88rem; color: var(--soft); }
@media (max-width: 720px) { .figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure:nth-child(2) { border-right: 0; } .figure:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* Tiles */
.tiles { display: grid; gap: 18px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .tiles-3, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles-2, .tiles-3, .tiles-4 { grid-template-columns: minmax(0, 1fr); } }
.tiles > * { min-width: 0; }
.tile { background: var(--white); border: 1px solid var(--rule); border-radius: var(--rad); padding: 24px; }
.tile p { margin: 0; color: var(--body); font-size: 0.97rem; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 14px; background: #f3e8ff; color: var(--plum); font: 900 0.82rem/1 "Red Hat Display", sans-serif; margin-bottom: 14px; }
.tile-device { border-top: 4px solid var(--amber); }
a.tile { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
a.tile:hover { border-color: var(--plum-2); transform: translateY(-2px); }
a.tile h2 { font-size: 1.2rem; font-weight: 700; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.prices > * { min-width: 0; }
.price { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 28px 22px 22px; }
.price-top { background: var(--plum); border-color: var(--plum); color: #e9d5ff; box-shadow: 0 30px 60px -30px rgba(59, 7, 100, 0.7); }
.price-top .price-name, .price-top .price-amount, .price-top strong { color: #fff; }
.price-flag { position: absolute; top: -13px; left: 22px; margin: 0; background: var(--amber); color: var(--plum-ink); font: 700 0.76rem/1 "Red Hat Display", sans-serif; padding: 7px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.price-name { font-size: 1.15rem; margin-bottom: 6px; }
.price-amount { font: 900 2.5rem/1 "Red Hat Display", sans-serif; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.03em; }
.price-note { font-size: 0.9rem; color: var(--soft); margin-bottom: 16px; }
.price-top .price-note { color: #d8b4fe; }
.save { color: var(--good); font-weight: 700; }
.price-top .save { color: var(--amber-2); }
.price-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.93rem; }
.price-list li { padding: 6px 0 6px 24px; border-bottom: 1px dashed var(--rule); position: relative; }
.price-top .price-list li { border-color: rgba(255, 255, 255, 0.14); }
.price-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--amber-ink); font-weight: 700; }
.price-top .price-list li::before { color: var(--amber-2); }
.conn-label { font: 700 0.78rem/1 "Red Hat Display", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; margin: auto 0 8px; color: var(--soft); }
.price-top .conn-label { color: #d8b4fe; }
.conn { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.conn a { display: flex; flex-direction: column; align-items: center; padding: 7px 1px; border-radius: 10px; border: 1px solid var(--rule); text-decoration: none; color: var(--body); font-size: 0.66rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.conn a b { font: 900 1rem/1.1 "Red Hat Display", sans-serif; color: var(--plum); }
.conn a:hover { border-color: var(--amber); background: #fffbeb; }
.price-top .conn a { border-color: rgba(255, 255, 255, 0.2); color: #e9d5ff; }
.price-top .conn a b { color: var(--amber-2); }
.price-top .conn a:hover { background: rgba(255, 255, 255, 0.08); }
.price-more { display: block; text-align: center; font-size: 0.86rem; margin-top: 12px; }
.price-top .price-more { color: #f5f3ff; }

/* Tables */
.tbl { overflow-x: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--rad); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl thead th { background: var(--plum); color: #fff; font: 700 0.84rem/1.3 "Red Hat Display", sans-serif; letter-spacing: 0.03em; }
.tbl tbody th { color: var(--ink); font-weight: 700; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fdfaff; }
.tbl-prices td a { font-weight: 700; color: var(--plum-2); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { counter-increment: s; background: var(--white); border: 1px solid var(--rule); border-radius: var(--rad); padding: 22px 22px 20px; position: relative; }
.step::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--plum-ink); font: 900 1.05rem/1 "Red Hat Display", sans-serif; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.96rem; }

/* FAQ */
.qa { display: grid; gap: 10px; }
.qa-item { background: var(--white); border: 1px solid var(--rule); border-radius: var(--rad-s); }
.qa-item summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; position: relative; font: 700 1.04rem/1.35 "Red Hat Display", sans-serif; color: var(--ink); }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.qa-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa-item[open] { border-color: #d8b4fe; }
.qa-a { padding: 0 20px 16px; }
.qa-a p { margin: 0; }

/* Callout */
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: linear-gradient(135deg, #3b0764, #581c87); color: #e9d5ff; border-radius: 26px; padding: 48px 46px; }
.callout > div:first-child { flex: 1 1 360px; min-width: 0; }
.callout h2 { color: #fff; margin-bottom: 8px; }
.callout p { margin: 0; }
.callout-buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.callout-link { color: var(--amber-2); font-weight: 600; }

/* Notes */
.quick { background: var(--white); border: 1px solid #e9d5ff; border-left: 5px solid var(--plum); border-radius: var(--rad-s); padding: 18px 22px; margin: 0 0 30px; }
.quick-label { font: 700 0.76rem/1 "Red Hat Display", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: var(--plum-2); margin-bottom: 8px; }
.quick p:last-child { margin: 0; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--rad-s); padding: 16px 20px; margin: 20px 0; font-size: 0.97rem; }
.note p:last-child { margin: 0; }
.note-plum { background: var(--paper-2); border-color: #e9d5ff; }

/* Reading */
.read { max-width: var(--read); }
.read h2 { margin-top: 1.8em; }
.read h3 { margin-top: 1.4em; }
.read li { margin-bottom: 6px; }
.read .tbl { margin: 18px 0 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.87rem; color: var(--soft); margin-bottom: 22px; }
.toc { background: var(--white); border: 1px solid var(--rule); border-radius: var(--rad-s); padding: 18px 22px; margin-bottom: 30px; }
.toc-h { font: 700 0.95rem/1 "Red Hat Display", sans-serif; color: var(--ink); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 5px; }
h2[id], section[id] { scroll-margin-top: 96px; }

/* Breadcrumbs */
.crumbs { padding-top: 18px; font-size: 0.85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: var(--soft); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--soft); }

/* Forms */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.split > * { min-width: 0; }
.form { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 30px; box-shadow: 0 24px 50px -36px rgba(59, 7, 100, 0.45); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: 0.9rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink); background: var(--paper); border: 1px solid #ddd3ea; border-radius: 12px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--plum-2); box-shadow: 0 0 0 3px rgba(88, 28, 135, 0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { display: block; margin-top: 6px; color: var(--soft); font-size: 0.83rem; }
.form-small { font-size: 0.84rem; color: var(--soft); margin: 12px 0 0; }
.form-msg { display: none; padding: 13px 16px; border-radius: 12px; font-size: 0.94rem; margin: 0 0 16px; }
.form-msg.ok { background: #ecfdf5; color: var(--good); border: 1px solid #a7f3d0; }
.form-msg.bad { background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; }
.form-msg.visible { display: block; }

/* Footer */
.foot { background: var(--plum-ink); color: #cdb8e6; padding: 64px 0 28px; margin-top: 30px; font-size: 0.94rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 960px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-top > * { min-width: 0; }
.foot-brand p { margin: 14px 0 0; max-width: 40ch; }
.foot-price strong { color: var(--amber-2); }
.foot-h { font: 700 0.98rem/1.2 "Red Hat Display", sans-serif; color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: #e9d5ff; text-decoration: none; }
.foot a:hover { color: var(--amber-2); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 20px; font-size: 0.83rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

h1, h2, h3, p, li, td, th { overflow-wrap: break-word; }
.center { text-align: center; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .band { padding: 56px 0; }
  .hero { padding: 54px 0 50px; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .callout { padding: 34px 22px; }
  .callout-buttons, .callout-buttons .btn { width: 100%; }
  .form { padding: 22px; }
  .crumbs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
