/* Pikko public site. Palette mirrors src/constants/theme.ts (dark-first). */

:root {
  --bg: #0b0c0e;
  --surface: #17181c;
  --surface-2: #26282e;
  --border: #2e3135;
  --text: #f2f3f5;
  --text-2: #b0b4ba;
  --accent: #3b82f6;
  --on-accent: #ffffff;
  --radius: 14px;
  --max: 1040px;
  --prose: 720px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f0f0f3;
    --surface-2: #e0e1e6;
    --border: #d9dbe0;
    --text: #111214;
    --text-2: #60646c;
    --accent: #2563eb;
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* Home -------------------------------------------------------------------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 14ch;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--text-2);
  font-size: 19px;
}

.pill {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.notice {
  margin-bottom: 72px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}

/* App tour: phone mockups drawn in CSS. Always the app's dark look,
   whatever the page theme. Sample names only (store rules: no real
   channels, logos or content). */

.tour {
  padding-bottom: 72px;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lead {
  margin: 0 auto 36px;
  max-width: 36em;
  color: var(--text-2);
  text-align: center;
}

.tour-strip {
  --app-bg: #0b0c0e;
  --app-el: #17181c;
  --app-sel: #26282e;
  --app-line: #2e3135;
  --app-text: #f2f3f5;
  --app-text-2: #b0b4ba;
  --app-accent: #3b82f6;
  --app-live: #ef4444;
  display: grid;
  grid-template-columns: repeat(4, 232px);
  justify-content: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
}

.shot figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
}

.phone {
  width: 232px;
  height: 480px;
  padding: 7px;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 0 0 1px var(--border), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: var(--app-bg);
  color: var(--app-text);
  font-size: 10px;
  line-height: 1.3;
  padding: 30px 10px 10px;
}

.screen b {
  font-weight: 600;
}

.screen small {
  color: var(--app-text-2);
  font-size: 8.5px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.app-back {
  color: var(--app-accent);
  font-size: 18px;
  line-height: 1;
}

/* Picture stand-ins: soft gradients, never real footage. */
.scene-field {
  background:
    radial-gradient(ellipse at 50% 120%, #3f8f3a 0 45%, transparent 46%),
    linear-gradient(#5b8fd8, #9cc3ef 55%, #4d9a44 56%, #2f6d2b);
}

.scene-studio {
  background:
    radial-gradient(circle at 30% 45%, rgba(255, 210, 140, 0.55) 0 14%, transparent 15%),
    radial-gradient(circle at 72% 50%, rgba(140, 180, 255, 0.45) 0 18%, transparent 19%),
    linear-gradient(135deg, #1d2b4a, #3b2a5a 60%, #12172a);
}

.mini-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  padding: 5px;
}

.mini-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  font-size: 8px;
  display: grid;
  place-items: center;
}

.mini-caption {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 2px 8px;
}

.mini-caption span {
  color: var(--app-text-2);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-live);
}

.ch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ch-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
}

.ch-list li.on {
  background: var(--app-sel);
}

.ch-list div {
  flex: 1;
  display: grid;
  gap: 2px;
}

.logo {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--app-el);
  color: var(--app-text-2);
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.ch-list em,
.bar em,
.posters em {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--app-accent) calc(var(--p) * 100%), var(--app-sel) 0);
}

/* Player */
.screen-player {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 30px 10px 0;
}

.player-top .spacer {
  flex: 1;
}

.round {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 10px;
}

.player-video {
  margin: auto 0;
  aspect-ratio: 16 / 9;
}

.live-panel {
  display: grid;
  gap: 5px;
  padding: 0 12px 26px;
}

.now-title {
  font-size: 15px;
}

.chips {
  display: flex;
  gap: 4px;
}

.chips i {
  font-style: normal;
  font-weight: 700;
  font-size: 7.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--app-text-2);
  color: var(--app-bg);
}

.live-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.live {
  color: var(--app-live);
}

.bar em {
  height: 3px;
  background: linear-gradient(90deg, var(--app-text) calc(var(--p) * 100%), var(--app-line) 0);
}

.next {
  display: grid;
  margin-top: 4px;
}

/* Movies */
.hero-poster {
  height: 150px;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  font-size: 13px;
}

.hero-poster small {
  color: rgba(255, 255, 255, 0.8);
}

.cta {
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 9px;
  font-weight: 700;
}

.row-title {
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 11px;
}

.posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.posters span {
  aspect-ratio: 2 / 3;
  border-radius: 7px;
  display: flex;
  align-items: flex-end;
  padding: 4px;
}

.posters.wide {
  grid-template-columns: repeat(2, 1fr);
}

.posters.wide span {
  aspect-ratio: 16 / 9;
}

.posters em {
  width: 100%;
}

.p1 { background: linear-gradient(160deg, #f97316, #7c2d12); }
.p2 { background: linear-gradient(160deg, #22d3ee, #1e3a8a); }
.p3 { background: linear-gradient(160deg, #a78bfa, #4c1d95); }
.p4 { background: linear-gradient(160deg, #34d399, #064e3b); }
.p5 { background: linear-gradient(160deg, #fb7185, #881337); }
.p6 { background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75)), linear-gradient(135deg, #ff8a4c, #f43f5e 55%, #4c1d95); }

/* Guide */
.epg {
  position: relative;
  display: grid;
  gap: 4px;
}

.epg-times,
.epg-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px;
  align-items: center;
}

.epg-times {
  grid-template-columns: 28px repeat(3, 1fr);
}

.slots {
  display: flex;
  gap: 3px;
}

.slots i {
  flex: var(--w);
  min-width: 0;
  padding: 7px 5px;
  border-radius: 6px;
  background: var(--app-el);
  font-style: normal;
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slots i.on {
  background: var(--app-accent);
}

.epg-now {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: calc(32px + (100% - 32px) * 0.47);
  width: 1.5px;
  background: var(--app-live);
}

@media (max-width: 1080px) {
  .tour-strip {
    grid-template-columns: repeat(2, 232px);
    gap: 32px 40px;
  }
}

/* Phones: one swipeable row, inside its own scroller (the page never scrolls sideways). */
@media (max-width: 560px) {
  .tour-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .shot {
    flex: none;
    width: 232px;
    scroll-snap-align: center;
  }
}

/* Text pages (privacy, terms, support) ------------------------------------ */

.prose {
  max-width: var(--prose);
  padding-top: 56px;
  padding-bottom: 80px;
}

.prose h1 {
  margin: 0 0 4px;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose .updated {
  margin: 0 0 32px;
  color: var(--text-2);
  font-size: 15px;
}

.prose h2 {
  margin: 40px 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 24px 0 4px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.callout p {
  margin: 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-2);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .hero p {
    font-size: 17px;
  }
}
