/*
 * pages.css -- the pages that sit beside the front page: Compare, the Sports Hub, Family, Help and the blog.
 * Built on site.css's tokens and patterns; only what those pages add is here.
 */

/* ---- page head ------------------------------------------------------------ */
.phero { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.phero h1 { font-size: clamp(36px, 5.6vw, 70px); margin: 16px 0 18px; max-width: 18ch; }
.phero h1 .grad {
  background: linear-gradient(100deg, var(--white) 8%, #9FD7FF 42%, var(--green) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phero .lede { max-width: 62ch; }
.phero .hero-cta { margin-top: 26px; }
.crumbs { font-size: 13.5px; color: var(--faint); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }

/* ---- the wide comparison table: it scrolls inside its own box on a phone ---- */
.cmpwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: rgba(4,6,13,0.55); }
table.cmp.wide { min-width: 860px; table-layout: auto; }
table.cmp.wide th, table.cmp.wide td { padding: 14px 16px; font-size: 15px; vertical-align: top; overflow-wrap: normal; hyphens: manual; }
table.cmp.wide thead th { font-size: 12px; letter-spacing: 0.12em; position: sticky; top: 0; background: #0a0e19; }
table.cmp.wide tbody td:first-child { width: 20%; position: sticky; left: 0; background: #0a0e19; z-index: 1; }
table.cmp.wide td.yes { background: linear-gradient(90deg, rgba(13,229,147,0.12), rgba(13,229,147,0.02)); }
table.cmp.wide td a { color: var(--muted); }
table.cmp.wide td small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 4px; }
table.cmp.wide td small a { color: var(--faint); }
/* six players: wide enough that no cell has to break a word */
table.cmp.wide.six { min-width: 1100px; }
table.cmp.wide.six tbody td:first-child { width: 15%; }
/* two players (the TiviDeck vs one rival pages): sized to sit inside an article */
table.cmp.wide.duo { min-width: 600px; }
table.cmp.wide.duo tbody td:first-child { width: 24%; }
@media (max-width: 640px) {
  table.cmp.wide { min-width: 760px; }
  table.cmp.wide th, table.cmp.wide td { padding: 11px 12px; font-size: 13.5px; }
  table.cmp.wide tbody td:first-child { width: 120px; }
  table.cmp.wide.six { min-width: 1080px; }
  table.cmp.wide.six tbody td:first-child { width: 120px; }
  table.cmp.wide.duo { min-width: 540px; }
  table.cmp.wide.duo tbody td:first-child { width: 110px; }
}
.scrollhint { display: none; font-size: 13px; color: var(--faint); margin: 0 0 10px; }
@media (max-width: 900px) { .scrollhint { display: block; } }

/* ---- two-column lists of facts -------------------------------------------- */
.split { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card p + p { margin-top: 10px; }
.card.lead { background: linear-gradient(165deg, rgba(0,60,208,0.26), rgba(13,229,147,0.08) 70%, rgba(255,255,255,0.02)); border-color: rgba(44,107,255,0.45); }
.card a { color: var(--green); }

/* ---- sports and their leagues ---------------------------------------------- */
.leagues { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lg { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.lg h3 { font-size: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lg h3 span { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0; white-space: nowrap; }
.lg ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.lg li { font-size: 13.5px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.lg.wide { grid-column: 1 / -1; }

/* ---- the grounds, one card a sport ----------------------------------------- */
.grounds { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ground { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.ground::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue-lift), var(--green)); opacity: 0.7; }
.ground h4 { font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.ground p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---- a strip of facts against a competitor --------------------------------- */
.vs { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); background: var(--ink); }
.vs-row > div { padding: 14px 16px; font-size: 15px; color: var(--muted); }
.vs-row > div:first-child { color: var(--text); font-weight: 500; }
.vs-row > div.us { color: var(--text); font-weight: 600; background: linear-gradient(90deg, rgba(13,229,147,0.10), transparent); }
.vs-row.head > div { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.vs-row.head > div.us { color: var(--green); background: none; }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vs-row > div:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .vs-row.head > div:first-child { display: none; }
  .vs-row > div { font-size: 14px; padding: 10px 14px; }
}
.vs a { color: var(--faint); }

/* ---- help: task cards and questions ---------------------------------------- */
.tasks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.task { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 110px; }
.task h3 { font-size: 18px; }
.task p, .task li { color: var(--muted); font-size: 15px; }
.task ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.task a { color: var(--green); }
.task .more { margin-top: auto; padding-top: 6px; font-size: 14px; }
.path { color: var(--text); font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); scroll-margin-top: 110px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-family: var(--display); font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--green); }

/* ---- the blog ------------------------------------------------------------ */
.posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.post-card:hover { border-color: rgba(44,107,255,0.6); transform: translateY(-2px); }
.post-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .meta { font-size: 13px; color: var(--faint); }
.post-card .go { margin-top: auto; color: var(--green); font-size: 14px; font-weight: 600; }

.article { max-width: 760px; margin-inline: auto; }
.article .meta { font-size: 14px; color: var(--faint); margin-top: 6px; }
.article h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 14px 0 10px; }
.article .standfirst { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin: 18px 0 8px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 44px 0 14px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p { color: #C9D0DE; margin: 0 0 16px; font-size: 17.5px; line-height: 1.75; }
.prose ul, .prose ol { color: #C9D0DE; margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; }
.prose a { color: var(--green); }
.prose b, .prose strong { color: var(--text); }
.prose .shot { margin: 26px 0; }
.prose table.cmp { min-width: 560px; }
.prose .cmpwrap { margin: 18px 0 24px; }
.prose .note { border-left: 2px solid var(--green); padding: 4px 0 4px 18px; color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.endcta { margin-top: 48px; padding: 28px; border-radius: var(--r); border: 1px solid rgba(44,107,255,0.45); background: linear-gradient(165deg, rgba(0,60,208,0.24), rgba(13,229,147,0.06) 70%, transparent); }
.endcta h2 { font-size: 24px; margin: 0 0 8px; }
.endcta p { color: var(--muted); margin-bottom: 16px; }
.endcta .hero-cta { margin-top: 0; }

/* ---- the closing call to action on each page ----------------------------- */
.closer { text-align: left; padding: clamp(28px, 4vw, 48px); }
.closer h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 12px 0 12px; }
.closer p { color: var(--muted); max-width: 62ch; }
.closer .hero-cta { margin-top: 22px; }

.premium-note { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--muted); }
.premium-note .st { font-size: 10.5px; }
.prose table.cmp tbody td:first-child { width: 18%; }
