/* UK IPTVs (ukiptvs.org)
   A classic British look: cream paper, British racing green (#0f3d2e) and
   brass (#c9a227). Playfair Display headings, Libre Franklin text. */

:root {
  --cream: #fbf8f1;
  --cream-2: #f3eee2;
  --white: #ffffff;
  --green: #0f3d2e;
  --green-2: #16523e;
  --green-3: #0a2b20;
  --brass: #c9a227;
  --brass-2: #ddb942;
  --brass-ink: #7a5f0e;
  --ink: #1b2620;
  --text: #3f4a43;
  --muted: #69736c;
  --rule: #e4ddcc;
  --ok: #1d6b3f;
  --err: #a32121;
  --r: 6px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 17px/1.72 "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
svg, img { max-width: 100%; }
a { color: var(--green-2); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--green); text-decoration-color: var(--green); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 3.2vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.8vw + 1rem, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
.uk-pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.uk-skip { position: absolute; left: -9999px; }
.uk-skip:focus { left: 10px; top: 10px; z-index: 99; background: var(--brass); color: var(--green-3); padding: 8px 12px; }

.uk-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.uk-slim { max-width: 800px; }

/* Masthead */
.uk-mast { position: sticky; top: 0; z-index: 60; background: var(--cream); border-bottom: 3px double var(--brass); }
.uk-mast-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.uk-logo { display: flex; text-decoration: none; }
.uk-menu { display: flex; align-items: center; gap: 22px; }
.uk-menu a:not(.uk-btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.uk-menu a:not(.uk-btn):hover, .uk-menu a[aria-current="page"] { color: var(--green-2); box-shadow: inset 0 -2px 0 var(--brass); }
.uk-toggle { display: none; width: 46px; height: 44px; border: 1px solid var(--rule); background: var(--white); border-radius: var(--r); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.uk-toggle span { display: block; width: 20px; height: 2px; background: var(--green); }
@media (max-width: 1040px) {
  .uk-toggle { display: inline-flex; }
  .uk-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 3px double var(--brass); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 24px 22px; max-height: calc(100vh - 77px); overflow-y: auto; }
  .uk-menu.open { display: flex; }
  .uk-menu a:not(.uk-btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .uk-menu a:not(.uk-btn):hover, .uk-menu a[aria-current="page"] { box-shadow: none; }
  .uk-menu .uk-btn { margin-top: 16px; }
}

/* Buttons */
.uk-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 13px 24px; border-radius: var(--r); font: 700 0.95rem/1 "Libre Franklin", sans-serif; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.uk-btn:hover { transform: translateY(-1px); }
.uk-btn-brass { background: var(--brass); color: var(--green-3); border-color: var(--brass); }
.uk-btn-brass:hover { background: var(--brass-2); color: var(--green-3); }
.uk-btn-green { background: var(--green); color: var(--cream); border-color: var(--green); }
.uk-btn-green:hover { background: var(--green-2); color: #fff; }
.uk-btn-line { border-color: rgba(251, 248, 241, 0.55); color: var(--cream); }
.uk-btn-line:hover { border-color: var(--brass); color: var(--brass-2); }
.uk-btn-big { padding: 17px 30px; font-size: 1.02rem; }
.uk-btn-wide { width: 100%; }

/* Banner */
.uk-banner { background: radial-gradient(800px 420px at 85% 0%, rgba(201, 162, 39, 0.16), transparent 60%), linear-gradient(180deg, var(--green) 0%, var(--green-3) 100%); color: #e8e3d2; padding: 84px 0 78px; border-bottom: 4px solid var(--brass); }
.uk-banner h1 { color: var(--cream); }
.uk-banner h1 em { color: var(--brass-2); font-style: italic; font-weight: 600; }
.uk-banner-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 52px; align-items: center; }
.uk-banner-one { grid-template-columns: minmax(0, 1fr); max-width: 840px; }
.uk-banner-lead { font-size: 1.16rem; max-width: 58ch; }
.uk-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.uk-notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.93rem; color: var(--cream); }
.uk-notes li::before { content: "◆"; color: var(--brass); margin-right: 8px; font-size: 0.7em; vertical-align: 2px; }
.uk-banner-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 920px) { .uk-banner-grid { grid-template-columns: minmax(0, 1fr); } .uk-banner-art { max-width: 460px; } }
.uk-eyebrow { font: 700 0.78rem/1 "Libre Franklin", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 16px; }
.uk-banner .uk-eyebrow { color: var(--brass-2); }

.uk-opener { padding: 60px 0 6px; }
.uk-opener-lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Figures */
.uk-figures { background: var(--white); border-bottom: 1px solid var(--rule); }
.uk-figures-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 30px; padding-bottom: 30px; }
.uk-figures p { margin: 0; text-align: center; border-right: 1px solid var(--rule); padding: 0 8px; }
.uk-figures p:last-child { border-right: 0; }
.uk-figures b { display: block; font: 800 clamp(1.5rem, 1.6vw + 1rem, 2.3rem)/1.15 "Playfair Display", Georgia, serif; color: var(--green); }
.uk-figures span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 720px) { .uk-figures { padding: 26px 0; } .uk-figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .uk-figures p:nth-child(2) { border-right: 0; } }

/* Bands */
.uk-band { padding: 80px 0; }
.uk-paper { background: var(--cream-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.uk-heading { max-width: 720px; margin-bottom: 40px; }
.uk-heading h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--brass); margin-top: 16px; }
.uk-centre { margin-left: auto; margin-right: auto; text-align: center; }
.uk-centre h2::after { margin-left: auto; margin-right: auto; }
.uk-sub { font-size: 1.07rem; color: var(--muted); }

/* Panels */
.uk-panels { display: grid; gap: 18px; }
.uk-p1 { grid-template-columns: minmax(0, 1fr); }
.uk-p2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uk-p3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uk-p4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .uk-p3, .uk-p4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .uk-p2, .uk-p3, .uk-p4 { grid-template-columns: minmax(0, 1fr); } }
.uk-panels > * { min-width: 0; }
.uk-panel { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--green); border-radius: var(--r); padding: 24px; }
.uk-panel p { margin: 0; font-size: 0.97rem; }
.uk-panel-tag { display: inline-block; font: 700 0.72rem/1 "Libre Franklin", sans-serif; letter-spacing: 0.12em; color: var(--brass-ink); border: 1px solid var(--brass); padding: 6px 9px; border-radius: 3px; margin-bottom: 14px; }
.uk-panel-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; font-weight: 400; transition: border-color 0.15s, transform 0.15s; }
.uk-panel-link:hover { border-top-color: var(--brass); transform: translateY(-2px); color: inherit; }
.uk-panel-link h2 { font-size: 1.25rem; margin: 0; }
.uk-panel-link span { margin-top: auto; color: var(--green-2); font-weight: 700; font-size: 0.92rem; }

/* Plans */
.uk-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .uk-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uk-plans { grid-template-columns: minmax(0, 1fr); } }
.uk-plans > * { min-width: 0; }
.uk-plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 30px 20px 20px; }
.uk-plan-top { background: var(--green); border-color: var(--green); color: #e8e3d2; outline: 2px solid var(--brass); outline-offset: -8px; }
.uk-plan-top h3, .uk-plan-top .uk-plan-price { color: var(--cream); }
.uk-plan-seal { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--brass); color: var(--green-3); font: 700 0.72rem/1 "Libre Franklin", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; white-space: nowrap; }
.uk-plan h3 { font-size: 1.2rem; margin-bottom: 8px; }
.uk-plan-price { font: 800 2.5rem/1 "Playfair Display", Georgia, serif; color: var(--ink); margin: 0 0 6px; }
.uk-plan-per { font-size: 0.9rem; color: var(--ok); font-weight: 600; margin-bottom: 14px; }
.uk-plan-top .uk-plan-per { color: var(--brass-2); }
.uk-plan ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.93rem; }
.uk-plan li { padding: 6px 0 6px 20px; position: relative; border-bottom: 1px dotted var(--rule); }
.uk-plan-top li { border-color: rgba(251, 248, 241, 0.15); }
.uk-plan li::before { content: "◆"; position: absolute; left: 0; top: 8px; color: var(--brass); font-size: 0.66em; }
.uk-tv-h { font: 700 0.72rem/1 "Libre Franklin", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: auto 0 8px; }
.uk-plan-top .uk-tv-h { color: #c9c2ab; }
.uk-tv { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.uk-tv a { display: flex; flex-direction: column; align-items: center; padding: 7px 1px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--text); font-size: 0.68rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; background: var(--cream); }
.uk-tv a b { font: 800 1rem/1.1 "Playfair Display", Georgia, serif; color: var(--green); }
.uk-tv a small { font-size: 0.85em; opacity: 0.75; }
.uk-tv a:hover { border-color: var(--brass); background: #fff8e3; }
.uk-plan-top .uk-tv a { background: rgba(255, 255, 255, 0.06); border-color: rgba(251, 248, 241, 0.2); color: #e8e3d2; }
.uk-plan-top .uk-tv a b { color: var(--brass-2); }
.uk-plan-top .uk-tv a:hover { background: rgba(201, 162, 39, 0.2); }
.uk-plan-more { display: block; text-align: center; margin-top: 12px; font-size: 0.86rem; }
.uk-plan-top .uk-plan-more { color: var(--cream); }

/* Tables */
.uk-table { overflow-x: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); }
.uk-table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.uk-table th, .uk-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.uk-table th { background: var(--green); color: var(--cream); font: 600 0.82rem/1.3 "Libre Franklin", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.uk-table tr:nth-child(even) td { background: #fdfbf6; }
.uk-table tr:last-child td { border-bottom: 0; }
.uk-table td:first-child { color: var(--ink); font-weight: 600; }
.uk-table-prices td a { text-decoration: none; }

/* Steps */
.uk-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.uk-steps li { counter-increment: st; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; }
.uk-steps li::before { content: counter(st, upper-roman) "."; display: block; font: 800 1.6rem/1 "Playfair Display", Georgia, serif; color: var(--brass); margin-bottom: 10px; }
.uk-steps h3 { margin-bottom: 6px; }
.uk-steps p { margin: 0; font-size: 0.96rem; }

/* FAQ */
.uk-faqs details { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 10px; }
.uk-faqs summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font: 600 1.08rem/1.35 "Playfair Display", Georgia, serif; color: var(--ink); }
.uk-faqs summary::-webkit-details-marker { display: none; }
.uk-faqs summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 "Libre Franklin", sans-serif; color: var(--brass-ink); }
.uk-faqs details[open] summary::after { content: "–"; }
.uk-faqs details[open] { border-left: 3px solid var(--brass); }
.uk-faq-a { padding: 0 20px 18px; }
.uk-faq-a p { margin: 0; }

/* Closer */
.uk-closer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; background: var(--green); color: #e8e3d2; padding: 46px; border-radius: var(--r); border: 1px solid var(--green); outline: 2px solid var(--brass); outline-offset: -10px; }
.uk-closer > div:first-child { flex: 1 1 360px; min-width: 0; }
.uk-closer h2 { color: var(--cream); margin-bottom: 8px; }
.uk-closer p { margin: 0; }
.uk-closer-act { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.uk-closer-link { color: var(--brass-2); }
.uk-closer-link:hover { color: var(--cream); }

/* Brief / aside / reading */
.uk-brief { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--green); border-radius: var(--r); padding: 18px 22px; margin: 0 0 28px; }
.uk-brief-label { font: 700 0.72rem/1 "Libre Franklin", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 8px; }
.uk-brief p:last-child { margin: 0; }
.uk-aside { background: #fff8e3; border: 1px solid #ecdba0; border-radius: var(--r); padding: 16px 20px; margin: 20px 0; }
.uk-aside p:last-child { margin: 0; }
.uk-read h2 { margin-top: 1.7em; }
.uk-read li { margin-bottom: 6px; }
.uk-read .uk-table { margin: 18px 0 24px; }
.uk-byline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.87rem; color: var(--muted); margin-bottom: 22px; font-style: italic; }
.uk-contents { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 22px; margin-bottom: 28px; }
.uk-contents p { font: 700 1rem/1 "Playfair Display", Georgia, serif; color: var(--ink); margin-bottom: 10px; }
.uk-contents ol { margin: 0; padding-left: 1.2em; }
h2[id], section[id] { scroll-margin-top: 96px; }

/* Breadcrumb */
.uk-trail { padding-top: 18px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.uk-trail a { color: var(--muted); font-weight: 500; }
.uk-trail i { font-style: normal; }

/* Forms */
.uk-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .uk-pair { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.uk-pair > * { min-width: 0; }
.uk-form { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--brass); border-radius: var(--r); padding: 30px; }
.uk-field { margin-bottom: 16px; }
.uk-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.uk-field input, .uk-field select, .uk-field textarea { width: 100%; font: inherit; font-size: 0.97rem; padding: 12px 14px; border: 1px solid #d5ccb6; border-radius: var(--r); background: var(--cream); color: var(--ink); }
.uk-field input:focus, .uk-field select:focus, .uk-field textarea:focus { outline: 0; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(22, 82, 62, 0.15); background: #fff; }
.uk-field textarea { min-height: 130px; resize: vertical; }
.uk-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.83rem; }
.uk-form-small { font-size: 0.84rem; color: var(--muted); margin: 12px 0 0; }
.uk-alert { display: none; padding: 13px 16px; border-radius: var(--r); margin: 0 0 16px; font-size: 0.94rem; }
.uk-alert-ok { background: #e7f3ea; color: var(--ok); border: 1px solid #bcdcc5; }
.uk-alert-err { background: #fbeaea; color: var(--err); border: 1px solid #efc3c3; }
.uk-alert.visible { display: block; }

/* Footer */
.uk-foot { background: var(--green-3); color: #c9c2ab; padding: 60px 0 26px; margin-top: 30px; border-top: 4px solid var(--brass); font-size: 0.94rem; }
.uk-foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .uk-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uk-foot-brand { grid-column: 1 / -1; } }
.uk-foot-grid > * { min-width: 0; }
.uk-foot-brand p { margin: 14px 0 0; max-width: 42ch; }
.uk-fhead { font: 600 1.05rem/1.2 "Playfair Display", Georgia, serif; color: var(--cream); margin: 0 0 12px; }
.uk-fcol a { display: block; color: #e8e3d2; text-decoration: none; font-weight: 400; margin-bottom: 9px; }
.uk-fcol a:hover { color: var(--brass-2); }
.uk-foot-small { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid rgba(251, 248, 241, 0.12); font-size: 0.83rem; }
.uk-foot-small a { color: var(--brass-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.uk-tc { text-align: center; }
h1, h2, h3, p, li, td, th { overflow-wrap: break-word; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .uk-inner { padding: 0 16px; }
  .uk-band { padding: 56px 0; }
  .uk-banner { padding: 52px 0 50px; }
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.45rem); }
  .uk-btns { flex-direction: column; }
  .uk-btns .uk-btn { width: 100%; }
  .uk-closer { padding: 34px 22px; }
  .uk-closer-act, .uk-closer-act .uk-btn { width: 100%; }
  .uk-form { padding: 22px; }
  .uk-trail { display: none; }
}

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