/*
Theme Name: YTStreamPlayer
Theme URI: https://ytstreamingplayer.com/
Author: YTStreamPlayer
Description: Product, support, and privacy site for the YTStreamPlayer macOS app.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ytstreamplayer
*/

:root {
  --bg: #070b11;
  --surface: #101722;
  --surface-raised: #151f2c;
  --text: #f7fbff;
  --muted: #a7b4c5;
  --mint: #66f2c2;
  --mint-dark: #163a35;
  --blue: #75a8ff;
  --line: #2b394d;
  --shadow: 0 32px 90px rgba(0, 0, 0, .48);
  --radius: 22px;
  --content: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 3%, #163237 0, transparent 28rem),
    radial-gradient(circle at 10% 20%, #10254b 0, transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.58;
}
a { color: var(--mint); text-underline-offset: .18em; }
a:hover { color: #b2ffe5; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; z-index: 1000; top: 16px; left: 16px; width: auto; height: auto;
  margin: 0; clip: auto; padding: 12px 18px; background: #fff; color: #000;
}
.section { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(7, 11, 17, .88); backdrop-filter: blur(18px);
}
.header-inner, .site-footer-inner { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 9px 11px; color: var(--muted); text-decoration: none; border-radius: 10px; font-size: .88rem; font-weight: 700; }
.site-nav a:hover { color: var(--text); background: var(--surface-raised); }

.eyebrow { margin: 0 0 16px; color: var(--mint); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.04em; }
h1 { margin: 0 0 28px; font-size: clamp(3.3rem, 6vw, 5.8rem); line-height: .98; }
h1 span { color: transparent; background: linear-gradient(110deg, var(--mint), var(--blue)); background-clip: text; -webkit-background-clip: text; }
h2 { margin: 0 0 20px; font-size: clamp(2.25rem, 4.5vw, 3.8rem); }
h3 { margin: 0 0 12px; font-size: 1.45rem; }
.lede { max-width: 650px; color: #cad4df; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero { min-height: 700px; padding: 84px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(44px, 7vw, 84px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 25px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 19px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.button-primary { color: #001c17; background: var(--mint); }
.button-primary:hover { color: #001c17; background: #b2ffe5; }
.button-secondary { color: var(--text); background: #0b1119; border: 1px solid #607087; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .72rem; }
.trust-row span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,17,25,.55); }
.hero-visual { position: relative; }
.hero-glow { position: absolute; width: 62%; aspect-ratio: 1; left: 25%; top: 8%; border-radius: 50%; background: rgba(102,242,194,.19); filter: blur(72px); }
.mac-window { position: relative; width: min(780px, 58vw); overflow: hidden; border: 1px solid #526175; border-radius: 15px; background: #151d29; box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: center; }
.window-bar { position: relative; height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 13px; color: #bdc8d5; background: #222c39; font-size: .68rem; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6259; }
.window-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3) { background: #28c941; }
.window-bar b { position: absolute; left: 50%; transform: translateX(-50%); }
.video-stage { position: relative; height: 380px; overflow: hidden; background: #020304; }
.video-stage img { width: 150%; max-width: none; height: 150%; object-fit: cover; transform: translate(-17%, -17%); }
.zoom-badge { position: absolute; right: 18px; top: 18px; padding: 6px 10px; color: var(--mint); background: rgba(4,20,16,.9); border: 1px solid var(--mint); border-radius: 8px; font-size: .78rem; font-weight: 850; }
.focus-ring { position: absolute; width: 165px; height: 112px; left: 43%; top: 34%; border: 2px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 999px rgba(3,18,12,.1); }
.mock-timeline, .mock-controls, .mock-status { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .62rem; }
.mock-timeline b { height: 4px; flex: 1; overflow: hidden; border-radius: 4px; background: #536174; }
.mock-timeline b i { display: block; width: 58%; height: 100%; background: var(--mint); }
.mock-controls { border-block: 1px solid var(--line); }
.mock-controls span, .mock-controls strong { padding: 6px 9px; border: 1px solid #3e4b5c; border-radius: 6px; background: #222c39; font-style: normal; }
.mock-controls strong { color: #001c17; background: var(--mint); border-color: var(--mint); }
.mock-controls em { flex: 1; }
.mock-status { justify-content: space-between; color: #93a2b4; background: #0f1722; }

.intro { max-width: 900px; padding-top: 96px; padding-bottom: 40px; text-align: center; }
.intro > p:last-child { color: var(--muted); font-size: 1.18rem; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 110px; }
.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #141e2b, #0c121b); }
.story-card-large { grid-column: 1 / -1; display: grid; grid-template-columns: 1.12fr .88fr; }
.story-card img { width: 100%; height: 330px; object-fit: cover; }
.story-card-large img { height: 100%; min-height: 480px; }
.story-card > div { padding: 32px; }
.story-number { float: right; color: #7c8b9e; font-size: .72rem; font-weight: 800; }
.tag { margin: 0; color: var(--mint); font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.story-card h3 { margin-top: 8px; font-size: 1.75rem; }
.story-card p, .story-card li { color: var(--muted); }
.story-card ul { padding-left: 20px; }

.gallery { padding: 112px 0; background: rgba(13,20,30,.58); border-block: 1px solid var(--line); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 36px; }
.gallery-heading > p { max-width: 350px; color: var(--muted); }
.screenshot-strip { display: flex; gap: 24px; overflow-x: auto; padding: 6px max(24px, calc((100vw - var(--content)) / 2)) 30px; scroll-snap-type: x mandatory; scrollbar-color: #6b7a8d transparent; }
.screenshot-strip figure { width: min(72vw, 900px); min-width: min(72vw, 900px); margin: 0; scroll-snap-align: center; }
.screenshot-strip img { width: 100%; border: 1px solid #4d5c71; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.48); }
.screenshot-strip figcaption { padding: 12px 4px 0; color: var(--muted); font-size: .78rem; }

.section-heading { max-width: 820px; margin-bottom: 38px; }
.feature-section { padding-top: 110px; padding-bottom: 110px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.feature-grid article > span { display: grid; width: 44px; height: 44px; place-items: center; color: var(--mint); background: var(--mint-dark); border-radius: 12px; font-size: 1.25rem; }
.feature-grid h3 { margin-top: 20px; font-size: 1.15rem; }
.feature-grid p { margin: 0; color: var(--muted); }
.band { border-block: 1px solid var(--line); background: linear-gradient(120deg, rgba(102,242,194,.09), rgba(117,168,255,.07)); }
.privacy-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; padding-top: 100px; padding-bottom: 100px; }
.privacy-section > div > p:last-child, .support-section > div > p:last-child { color: var(--muted); font-size: 1.04rem; }
.privacy-list p { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.privacy-list span { color: var(--muted); }
.support-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; padding-top: 110px; padding-bottom: 110px; }
.support-actions { display: grid; gap: 12px; }
.support-actions a { display: grid; grid-template-columns: 46px 1fr; column-gap: 15px; padding: 19px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.support-actions a:hover { border-color: var(--mint); }
.support-actions span { grid-row: 1 / 3; display: grid; width: 44px; height: 44px; place-items: center; color: var(--mint); background: var(--mint-dark); border-radius: 12px; }
.support-actions b { font-size: .98rem; }
.support-actions small { color: var(--muted); }
.listing { padding-bottom: 120px; }
.listing-card { display: grid; grid-template-columns: 170px 1fr; gap: 34px; align-items: center; padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(130deg, #182532, #0d141d); }
.listing-card > img { width: 170px; border-radius: 36px; }
.listing-card h2 { margin-bottom: 5px; }
.listing-subtitle { color: var(--muted); font-size: 1.1rem; }
.facts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.facts span { display: flex; flex-direction: column; color: var(--muted); font-size: .78rem; }
.facts b { color: var(--text); }
.precision-notes { display: grid; grid-template-columns: 230px 1fr; gap: 15px 30px; margin: 36px 38px; color: var(--muted); }
.precision-notes h3 { margin: 0; color: var(--text); font-size: .88rem; }
.precision-notes p { margin: 0; }

.page-header { padding-top: 84px; padding-bottom: 34px; }
.page-intro { max-width: 850px; color: var(--muted); font-size: 1.12rem; }
.page-content { width: min(calc(100% - 48px), 860px); margin: 0 auto; padding-bottom: 96px; }
.page-content h2 { margin-top: 56px; font-size: 2rem; }
.page-content h3 { margin-top: 34px; font-size: 1.24rem; }
.page-content li + li { margin-top: 10px; }
.page-content table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: .92rem; }
.page-content th, .page-content td { padding: 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.page-content th { background: var(--surface-raised); }
.contact-card, .notice { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card { margin: 34px 0; }
.notice { border-left: 4px solid var(--mint); }
.fine-print { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #030608; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 36px; color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 980px) {
  .site-nav a:nth-child(-n+2) { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .mac-window { width: 100%; transform: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card-large { grid-column: auto; display: block; }
  .story-card-large img { height: 330px; min-height: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .privacy-section, .support-section { grid-template-columns: 1fr; gap: 34px; }
  .gallery-heading { display: block; }
  .listing-card { grid-template-columns: 112px 1fr; }
  .listing-card > img { width: 112px; border-radius: 24px; }
  .precision-notes { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .section, .header-inner, .site-footer-inner { width: min(calc(100% - 32px), var(--content)); }
  .site-nav { display: none; }
  .header-inner { min-height: 66px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero { min-height: 0; padding-top: 58px; padding-bottom: 68px; }
  .video-stage { height: 240px; }
  .mock-controls { overflow: hidden; white-space: nowrap; }
  .mock-controls span:nth-last-child(-n+2) { display: none; }
  .mock-status span:first-child { display: none; }
  .story-card img, .story-card-large img { height: 240px; }
  .screenshot-strip figure { width: 90vw; min-width: 90vw; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-list p { grid-template-columns: 1fr; gap: 4px; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-card > img { width: 100px; }
  .site-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-contrast: more) { :root { --muted: #d9e2e8; --line: #74869a; } }
