/*
Theme Name: TrivoStream
Theme URI: https://trivostream.com
Author: TrivoStream
Description: Bright Signal theme for the TrivoStream streaming TV subscription site. White page, black pricing cards, one electric blue accent. Self-hosted fonts, WooCommerce ready.
Version: 2.2.0
Requires at least: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: trivostream
*/

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-400-800.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
	--bg: #FFFFFF;
	--surface: #F3F5FB;
	--dark: #0A0A12;
	--ink: #0A0A12;
	--muted: #4B5563;
	--line: #E1E5F0;
	--accent: #1747FF;
	--accent-hover: #0F36D6;
	--on-accent: #FFFFFF;
	--r-sm: 6px;
	--r: 10px;
	--r-lg: 18px;
	--w: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--sec: clamp(56px, 8vw, 104px);
	--font-display: "Archivo", system-ui, sans-serif;
	--font-body: "Manrope", system-ui, sans-serif;
	color-scheme: light;

	/* Chat assistant: keep it on the site's light "Bright Signal" palette. */
	--ark-bg: #FFFFFF;
	--ark-surface: #F3F5FB;
	--ark-surface-2: #E9EDF7;
	--ark-border: #E1E5F0;
	--ark-border-strong: #C9D0E3;
	--ark-ink: #0A0A12;
	--ark-ink-soft: #222634;
	--ark-muted: #4B5563;
	--ark-accent: #1747FF;
	--ark-accent-hover: #0F36D6;
	--ark-accent-ink: #FFFFFF;
	--ark-accent-soft: rgba(23,71,255,.10);
	--ark-err: #C02626;
	--ark-font-body: "Manrope", system-ui, sans-serif;
	--ark-font-display: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
:where(p, ul, ol) { margin: 0 0 1em; }
:where(img, svg) { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(800px + var(--gutter) * 2); }
.muted { color: var(--muted); }
.hl { color: var(--accent); }
.icon { flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__mark-bg { fill: #0A0A12; }
.brand__mark-t { fill: #fff; }
.brand__mark-u { fill: #1747FF; }
.brand__name { font-family: var(--font-body); font-weight: 700; font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand__name span { color: inherit; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
	.admin-bar .site-header { top: 46px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
	.site-nav.is-open { display: flex; }
	.site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav__cta { margin-top: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: var(--r); font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; font-family: var(--font-body); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #1c1c2a; color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }
.btn--lg { min-height: 58px; padding: 0 36px; font-size: 1.1rem; }
.btn--on-dark { background: transparent; color: #fff; border-color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--ink); }
.cta__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 5vw, 64px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.7vw, 3.6rem); margin-bottom: 0.45em; max-width: 19ch; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8em; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.4; }
.hero__art { position: relative; }
.hero__art svg, .hero__img { width: 100%; height: auto; display: block; }
.hero__tags { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
.hero__tags span { background: rgba(6,8,16,.62); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 12px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 520px) { .hero__tags span { padding: 5px 9px; font-size: .7rem; } }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { max-width: 460px; margin-inline: auto; } } /* text and buttons first on phones */

/* Highlight boxes */
.boxes { padding-block: 8px clamp(40px, 6vw, 72px); }
.boxes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.box { border: 1.5px solid var(--accent); border-radius: var(--r-lg); padding: 28px 26px; background: #fff; }
.box .icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; }
.box h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
.box p { color: var(--muted); margin: 0; font-size: 0.99rem; }
@media (max-width: 860px) { .boxes__grid { grid-template-columns: 1fr; } }

/* Device strip */
.devices { padding-block: 0 clamp(40px, 6vw, 72px); }
.devices__row { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); padding: 24px clamp(20px, 3vw, 32px); border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.devices__icons { display: flex; gap: 10px; flex: none; }
.devices__icons .icon { width: 52px; height: 52px; padding: 13px; border-radius: var(--r); background: var(--accent); color: #fff; stroke-width: 2; }
.devices h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 0.3em; }
.devices p { margin: 0; color: var(--muted); font-size: 0.99rem; max-width: 70ch; }
.devices p a { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .devices__row { flex-direction: column; align-items: flex-start; } }

/* Sections */
.section { padding-block: var(--sec); }
.section--soft { background: var(--surface); }
.section__title { text-align: center; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: clamp(24px, 3vw, 40px); }
.section__lead { max-width: 64ch; margin: calc(-1 * clamp(8px, 1.5vw, 20px)) auto clamp(24px, 3vw, 40px); text-align: center; color: var(--muted); font-size: 1.05rem; }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Connection selector */
.seg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.seg__label { width: 100%; text-align: center; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg__opt input:checked + span { background: var(--ink); color: #fff; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Pricing cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 30px 24px 26px; border: 1.5px solid var(--dark); transition: translate .2s ease, box-shadow .2s ease; }
.js .card.reveal { transition: opacity .5s ease, transform .5s ease, translate .2s ease, box-shadow .2s ease; }
.card:hover { translate: 0 -4px; box-shadow: 0 14px 30px -12px rgba(10,10,18,.45); }
.card--best { background: var(--accent); border-color: var(--accent); box-shadow: 0 18px 38px -14px rgba(23,71,255,.6); }
.card--best:hover { box-shadow: 0 22px 44px -14px rgba(23,71,255,.7); }
.card__tag { position: absolute; top: -15px; left: 24px; background: #fff; color: var(--accent); border: 1.5px solid var(--accent); padding: 3px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.card__len { color: rgba(255,255,255,.8); font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9em; }
.card--best .card__len { color: #fff; }
.card__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.card__pm { margin: 0 0 12px; color: rgba(255,255,255,.85); font-size: 0.98rem; font-weight: 600; }
.card__pm [data-pm] { font-weight: 800; }
.card__save { display: inline-block; align-self: flex-start; margin: 0 0 20px; font-weight: 800; font-size: 0.85rem; color: var(--dark); background: #fff; padding: 3px 12px; border-radius: 999px; }
.card--best .card__save { color: var(--accent); }
.card__save[hidden] { display: none; }
.card:not(:has(.card__save:not([hidden]))) .card__pm { margin-bottom: 24px; }
.card__list { list-style: none; padding: 20px 0 0; margin: 0 0 24px; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 11px; font-size: 0.97rem; flex: 1; }
.card__list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.92); }
.card__list .icon { width: 20px; height: 20px; margin-top: 2px; color: #7C9BFF; stroke-width: 2.4; }
.card--best .card__list { border-top-color: rgba(255,255,255,.35); }
.card--best .card__list .icon { color: #fff; }
.card__btn { background: var(--accent); color: #fff; min-height: 52px; }
.card__btn:hover { background: #fff; color: var(--dark); }
.card--best .card__btn { background: #fff; color: var(--accent); }
.card--best .card__btn:hover { background: var(--dark); color: #fff; }
.proof { list-style: none; padding: 0; margin: clamp(28px, 4vw, 40px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 600; font-size: 0.97rem; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof .icon { width: 22px; height: 22px; color: var(--accent); }
.plans__note { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 70ch; margin: 20px auto 0; }
@media (min-width: 1061px) { .card--best { translate: 0 -8px; } .card--best:hover { translate: 0 -12px; } }
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card, .js .card.reveal { transition: none; } .card:hover, .card--best:hover { translate: none; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step { padding-top: 8px; }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r); background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 18px; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Why grid */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px); }
.why__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--accent); color: #fff; margin-bottom: 16px; }
.why__icon .icon { width: 26px; height: 26px; }
.why h3 { font-size: 1.25rem; }
.why p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__a { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }
.faq__a p { margin: 0; }
.faq__a a { color: var(--accent); }
.more { margin-top: 28px; text-align: center; }
.link { color: var(--ink); font-weight: 700; }

/* CTA */
.cta { background: var(--dark); color: #fff; padding-block: clamp(48px, 7vw, 88px); }
.cta__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }

/* Generic pages */
.wrap.page { padding-block: clamp(40px, 6vw, 80px) var(--sec); } /* .wrap.page: WordPress also puts the class "page" on <body> */
.prose { max-width: 780px; margin-inline: auto; }
.prose.is-wide { max-width: none; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.6em; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.8em; }
.prose p, .prose li { color: #222634; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: var(--r-sm); }
.contact-card { margin-top: 24px; padding: 28px; border: 1.5px solid var(--accent); border-radius: var(--r-lg); background: #fff; }
.contact-card p { margin-bottom: 0.7em; }
.contact-card strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding-top: clamp(44px, 6vw, 72px); }
.brand--light, .brand--light .brand__name { color: #fff; }
.brand--light .brand__name span { color: #fff; }
.brand--light .brand__mark-bg { fill: #fff; }
.brand--light .brand__mark-t { fill: #0A0A12; }
.brand--light .brand__mark-u { fill: #1747FF; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer__note { color: rgba(255,255,255,.7); max-width: 36ch; margin-top: 16px; }
.site-footer__h { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: #fff; text-decoration: none; display: inline-block; padding-block: 4px; }
.site-footer li a:hover { color: #7C9BFF; }
.site-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.7); font-size: 0.92rem; }
.site-footer__bar a { color: rgba(255,255,255,.85); }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } .site-footer li a { padding-block: 10px; } }

/* Reveal: visible without JS, reduced-motion safe */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }

/* Live chat embedded in a page (Contact): keep the widget's own text colour and reserve its height so nothing jumps */
.prose .ark-asst-embed p, .prose .ark-asst-embed li { color: inherit; }
.ark-asst-embed { min-height: 520px; margin-bottom: 24px; }

