/*
Theme Name: Possum Tracks
Theme URI: https://possumtracks.live
Author: Possum Tracks
Description: Dark studio theme for possumtracks.live, matching the Stem Cell Research app.
Version: 1.0.7
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: possumtracks
*/

:root {
  --pt-bg-top: #1a1c2b;
  --pt-bg-bottom: #0d0f1a;
  --pt-accent: #ad7aff;
  --pt-accent-deep: #8a55f0;
  --pt-accent-soft: rgba(173, 122, 255, 0.18);
  --pt-panel: rgba(255, 255, 255, 0.05);
  --pt-stroke: rgba(255, 255, 255, 0.08);
  --pt-text: #eef0f6;
  --pt-muted: #a4a8b8;
  --pt-faint: #6f7385;
  --pt-vocals: #c4a1ff;
  --pt-bass: #66ccf7;
  --pt-drums: #ffb366;
  --pt-guitar: #ff858f;
  --pt-piano: #fae073;
  --pt-other: #70d9ab;
  --pt-radius: 14px;
  --pt-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { background: var(--pt-bg-bottom); }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--pt-bg-top) 0%, var(--pt-bg-bottom) 900px) no-repeat, var(--pt-bg-bottom);
  color: var(--pt-text);
  font-family: var(--pt-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--pt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: #fff; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Layout */
.pt-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pt-section { padding: 88px 0; }
.pt-section-tight { padding: 56px 0; }
.pt-center { text-align: center; }
.pt-eyebrow { color: var(--pt-accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.pt-lead { color: var(--pt-muted); font-size: 20px; max-width: 680px; }
.pt-center .pt-lead { margin-left: auto; margin-right: auto; }
.pt-muted { color: var(--pt-muted); }
.pt-small { font-size: 14px; color: var(--pt-faint); }

/* Header */
.pt-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 18, 30, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--pt-stroke); }
.pt-header .pt-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.pt-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.pt-brand a { color: #fff; display: flex; align-items: center; gap: 10px; }
.pt-brand a:hover { text-decoration: none; }
.pt-brand img { width: 46px; height: auto; display: block; }
.pt-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.pt-nav a { color: var(--pt-muted); font-size: 15px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.pt-nav a:hover { color: #fff; background: var(--pt-panel); text-decoration: none; }
.pt-nav a.pt-nav-cta { color: #fff; background: var(--pt-accent-deep); }
.pt-nav a.pt-nav-cta:hover { background: var(--pt-accent); }

/* Buttons */
.pt-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.pt-center .pt-buttons, .pt-hero .pt-buttons { justify-content: center; }
.pt-btn .wp-block-button__link, a.pt-btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pt-accent-deep); color: #fff; font-weight: 650; font-size: 16px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(138, 85, 240, 0.35); text-decoration: none; transition: transform .12s ease, background .12s ease;
}
.pt-btn .wp-block-button__link:hover, a.pt-btn-link:hover { background: var(--pt-accent); transform: translateY(-1px); text-decoration: none; }
.pt-btn-ghost .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pt-panel); color: #fff; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); text-decoration: none;
}
.pt-btn-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

/* Hero */
.pt-hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.pt-hero::before { content: ""; position: absolute; inset: -200px 0 auto 0; height: 700px; background: radial-gradient(600px 320px at 50% 30%, rgba(173, 122, 255, 0.28), transparent 70%); pointer-events: none; }
.pt-hero > * { position: relative; }
.pt-hero .pt-wordmark { max-width: 420px; margin: 0 auto 18px; }
.pt-hero .pt-wordmark img { display: block; margin: 0 auto; }
.pt-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin: 0 auto 18px; max-width: 900px; }
.pt-hero h1 .pt-grad, .pt-grad { background: linear-gradient(90deg, var(--pt-vocals), var(--pt-bass) 45%, var(--pt-other)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-hero .pt-lead { margin: 0 auto; }

/* Waveform strip (decoration built from the stem colors) */
.pt-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 70px; margin: 36px auto 0; max-width: 760px; }
.pt-wave span { display: block; width: 6px; border-radius: 3px; background: var(--pt-accent); opacity: .9; animation: pt-pulse 1.6s ease-in-out infinite; }
.pt-wave span:nth-child(6n+1) { background: var(--pt-vocals); }
.pt-wave span:nth-child(6n+2) { background: var(--pt-bass); }
.pt-wave span:nth-child(6n+3) { background: var(--pt-drums); }
.pt-wave span:nth-child(6n+4) { background: var(--pt-other); }
.pt-wave span:nth-child(6n+5) { background: var(--pt-guitar); }
.pt-wave span:nth-child(6n+6) { background: var(--pt-piano); }
@keyframes pt-pulse { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .pt-wave span { animation: none; } }

/* App window frame around screenshots */
.pt-window { margin: 48px auto 0; max-width: 860px; border-radius: 16px; padding: 0; background: #12141f; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4); overflow: hidden; }
.pt-window img { display: block; width: 100%; }
.pt-window.wp-block-image { margin-bottom: 0; }
.pt-shot img { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); display: block; }

/* Cards */
.pt-card { background: var(--pt-panel); border: 1px solid var(--pt-stroke); border-radius: var(--pt-radius); padding: 24px; height: 100%; }
.pt-card h3 { font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pt-card p { color: var(--pt-muted); font-size: 15.5px; margin: 0; }
.pt-card h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pt-accent); box-shadow: 0 0 14px currentColor; flex: none; }
.pt-c-vocals h3::before { background: var(--pt-vocals); color: var(--pt-vocals); }
.pt-c-bass h3::before { background: var(--pt-bass); color: var(--pt-bass); }
.pt-c-drums h3::before { background: var(--pt-drums); color: var(--pt-drums); }
.pt-c-guitar h3::before { background: var(--pt-guitar); color: var(--pt-guitar); }
.pt-c-piano h3::before { background: var(--pt-piano); color: var(--pt-piano); }
.pt-c-other h3::before { background: var(--pt-other); color: var(--pt-other); }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.pt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Alternating feature rows */
.pt-row.wp-block-columns { display: flex; gap: 56px; align-items: center; margin: 0 0 96px; }
.pt-row.wp-block-columns:last-child { margin-bottom: 0; }
.pt-row .wp-block-column { flex: 1 1 0; min-width: 0; }
.pt-row h2 { font-size: clamp(28px, 3.4vw, 40px); }
.pt-row ul { color: var(--pt-muted); padding-left: 20px; margin: 0; }
.pt-row li { margin: 6px 0; }
.pt-row li::marker { color: var(--pt-accent); }

/* Stem pills */
.pt-stems { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pt-stems li { margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #111; }
.pt-stems li::marker { content: ""; }
.pt-stems .s-vocals { background: var(--pt-vocals); }
.pt-stems .s-bass { background: var(--pt-bass); }
.pt-stems .s-drums { background: var(--pt-drums); }
.pt-stems .s-guitar { background: var(--pt-guitar); }
.pt-stems .s-piano { background: var(--pt-piano); }
.pt-stems .s-other { background: var(--pt-other); }

/* Callout panel (GPU server, download) */
.pt-panel { background: linear-gradient(135deg, rgba(173, 122, 255, 0.16), rgba(102, 204, 247, 0.07)); border: 1px solid rgba(173, 122, 255, 0.3); border-radius: 22px; padding: 56px 48px; }
.pt-panel h2 { font-size: clamp(28px, 3.6vw, 42px); }
.pt-download { text-align: center; }
.pt-download .pt-app-icon { width: 120px; margin: 0 auto 16px; }
.pt-download .pt-app-icon img { display: block; margin: 0 auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }

/* Pricing */
.pt-price { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin: 8px 0 4px; }
.pt-price small { font-size: 16px; color: var(--pt-muted); font-weight: 500; letter-spacing: 0; }
.pt-plan { display: flex; flex-direction: column; }
.pt-plan ul { color: var(--pt-muted); padding-left: 20px; margin: 16px 0 24px; flex: 1; }
.pt-plan li { margin: 6px 0; }
.pt-plan li::marker { color: var(--pt-other); }
.pt-plan .pt-tag, .pt-plan .pt-buttons { align-self: flex-start; }
.pt-plan.pt-featured { border-color: rgba(173, 122, 255, 0.55); box-shadow: 0 0 0 1px rgba(173, 122, 255, 0.25), 0 20px 60px rgba(138, 85, 240, 0.18); }
.pt-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-accent); background: var(--pt-accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* FAQ */
.pt-faq { max-width: 820px; margin: 40px auto 0; }
.pt-faq details { background: var(--pt-panel); border: 1px solid var(--pt-stroke); border-radius: 12px; padding: 4px 22px; margin: 0 0 12px; }
.pt-faq summary { cursor: pointer; font-weight: 650; color: #fff; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; color: var(--pt-accent); font-size: 22px; line-height: 1; }
.pt-faq details[open] summary::after { content: "–"; }
.pt-faq details p, .pt-faq details ol, .pt-faq details ul { color: var(--pt-muted); }
.pt-faq details > :last-child { margin-bottom: 16px; }

/* Long text pages (privacy) */
.pt-prose { max-width: 760px; margin: 0 auto; }
.pt-prose h2 { font-size: 24px; margin-top: 2em; }
.pt-prose p, .pt-prose li { color: #c9ccd8; }
.pt-page-head { padding: 72px 0 8px; text-align: center; }
.pt-page-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }

/* Footer */
.pt-footer { border-top: 1px solid var(--pt-stroke); padding: 40px 0 48px; margin-top: 40px; color: var(--pt-faint); font-size: 14px; }
.pt-footer .pt-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pt-footer a { color: var(--pt-muted); }
.pt-footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.pt-footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-row.wp-block-columns { flex-direction: column; gap: 28px; margin-bottom: 72px; }
  .pt-row.pt-reverse.wp-block-columns { flex-direction: column-reverse; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pt-wrap { padding: 0 16px; }
  .pt-section { padding: 64px 0; }
  .pt-grid, .pt-grid-2 { grid-template-columns: 1fr; }
  .pt-panel { padding: 36px 22px; border-radius: 18px; }
  .pt-nav a { padding: 6px 8px; font-size: 14px; }
  .pt-brand span { display: none; }
  .pt-wave { gap: 3px; height: 54px; }
  .pt-wave span { width: 4px; }
}
