/* ============================================================
   Pulse — site.css
   Design language: shared AlphaState Advisory system —
   light surfaces, DM Sans, pill buttons — with a Pulse orange accent.
   ============================================================ */

:root {
  /* ---- Surfaces & neutrals — shared with AlphaState / ReelPro / NicheDSP / Showfile ---- */
  --bg:             #F7F9FA;
  --surface:        #FFFFFF;
  --surface-2:      #F1F3F5;
  --surface-dark:   #2C3E50;
  --surface-dark-2: #34495E;

  --ink:       #2C3E50;
  --ink-soft:  #34495E;
  --muted:     #4D6276;
  --gray-meta: #7F8C8D;
  --line:      #E4E7EB;
  --line-soft: #F1F3F5;

  /* ---- Pulse brand accent — orange (matches logo) ---- */
  --accent:        #F2A33C;
  --accent-hover:  #E2900F;
  --accent-active: #C77B0C;
  --accent-tint:   #FDF2E3;
  --accent-tint-2: #FBE5C7;

  /* ---- Service brand colors (Spotify / Apple Music badges) ---- */
  --spotify: #1DB954;
  --apple:   #FA586A;

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 9999px;
  --shadow-xs: 0 1px 2px rgba(44, 62, 80, 0.04);
  --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.06), 0 1px 2px rgba(44, 62, 80, 0.04);
  --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.06), 0 2px 4px rgba(44, 62, 80, 0.04);
  --shadow-lg: 0 12px 32px rgba(44, 62, 80, 0.10), 0 4px 8px rgba(44, 62, 80, 0.05);

  --page-max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
h1 { font-weight: 200; font-size: clamp(2.3rem, 5.4vw, 3.75rem); line-height: 1.05; }
h2 { font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-weight: 400; font-size: 1.15rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-active);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  flex-shrink: 0;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.lede { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.lede strong, p strong { color: var(--ink); font-weight: 600; }

.mono { font-family: var(--font); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-mark {
  width: 22px; height: 22px;
  display: inline-flex; align-items: flex-end; gap: 2px;
}
.brand-mark-img {
  width: 22px; height: 22px;
  display: block;
}

.nav .brand { font-size: 1.6rem; gap: 12px; }
.nav .brand-mark-img { width: 44px; height: 44px; }
.brand-mark i {
  display: block; width: 4px; background: var(--accent); border-radius: 1px;
}
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 14px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 1px 2px rgba(242,163,60,0.25);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gray-meta); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- hero ---------- */

.hero { padding: 64px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin: 18px 0 20px; }
.hero .lede { margin-bottom: 30px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.cred-line {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--gray-meta);
  line-height: 2;
}
.cred-line b { color: var(--ink-soft); font-weight: 600; }
.cred-line .dot { margin: 0 12px; color: var(--line); }

/* ---------- mock panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.74rem;
  color: var(--gray-meta);
  letter-spacing: 0.01em;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-active);
  font-weight: 600;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 163, 60, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(242, 163, 60, 0); }
}

.panel-body { padding: 18px; }

.now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex-shrink: 0; }
.eq i {
  display: block; width: 4px;
  background: var(--accent);
  border-radius: 1px;
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.eq i:nth-child(3) { height: 60%; animation-delay: 0.36s; }
.eq i:nth-child(4) { height: 80%; animation-delay: 0.1s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.np-meta { flex: 1; min-width: 0; }
.np-track { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.np-artist { font-size: 0.84rem; color: var(--muted); }

.progress {
  margin-top: 8px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 58%;
  background: var(--accent);
  border-radius: 2px;
}

.chip {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.chip-spotify { color: var(--spotify); border-color: rgba(29, 185, 84, 0.3); background: rgba(29, 185, 84, 0.06); }
.chip-apple { color: var(--apple); border-color: rgba(250, 88, 106, 0.3); background: rgba(250, 88, 106, 0.06); }
.chip-merge { color: var(--accent-active); border-color: var(--accent-tint-2); background: var(--accent-tint); }

.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.feed-row:last-of-type { border-bottom: 0; }
.feed-meta { min-width: 0; }
.feed-track { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-artist { color: var(--muted); font-size: 0.78rem; }
.feed-right { display: flex; align-items: center; gap: 8px; }
.feed-time { font-size: 0.7rem; color: var(--gray-meta); }

.stat-strip {
  display: flex;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}
.stat-strip > div {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}
.stat-strip span { color: var(--gray-meta); }

/* ---------- sections ---------- */

section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head .lede { margin-top: 14px; }

/* problem cards */

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

.prob-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.prob-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.prob-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.prob-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.prob-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.transform-tag {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gray-meta);
}
.transform-tag b { color: var(--accent); font-weight: 600; }

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-active);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: 0.94rem; }
.step p em { color: var(--ink); font-style: normal; font-weight: 600; }

.steps-note {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--gray-meta);
}

/* features */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat .mono-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.feat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 0.9rem; }

/* dedup spread */

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.spread .checks { list-style: none; margin-top: 22px; }
.spread .checks li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: flex;
  gap: 10px;
}
.spread .checks li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.dedup-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.86rem;
}
.dedup-result {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-active);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: 10px;
  padding: 13px;
}
.dedup-arrow {
  text-align: center;
  color: var(--gray-meta);
  font-size: 0.8rem;
  padding: 6px 0;
}

/* pricing */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.price-card.hl { border-color: var(--accent-tint-2); box-shadow: var(--shadow-md); }
.price-tier { font-size: 0.8rem; font-weight: 600; color: var(--gray-meta); letter-spacing: 0.08em; text-transform: uppercase; }
.price-amount { font-size: 2.2rem; font-weight: 600; margin: 10px 0 4px; letter-spacing: -0.02em; color: var(--ink); }
.price-amount small { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.price-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.price-card li {
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.price-card li::before { content: "–"; color: var(--gray-meta); flex-shrink: 0; }
.price-card.hl li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.price-note { margin-top: 22px; font-size: 0.88rem; color: var(--gray-meta); }

/* FAQ */

.faq-list { max-width: 760px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  padding: 0 22px;
}
.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 64ch;
}

/* footer */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.foot-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 34ch; }
.foot-col h6 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-meta);
  font-weight: 600;
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--accent); }
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-meta);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ MASTER NAV (switches between AlphaState Advisory sites) ============ */
.master-nav { background: var(--surface-dark); color: rgba(255,255,255,.92); font-family: var(--font); font-size: 12px; }
.master-nav-in { max-width: var(--page-max); margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.master-nav-label { opacity: .55; letter-spacing: .04em; }
.master-nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.master-nav-links a { opacity: .7; transition: opacity .15s ease; text-decoration: none; }
.master-nav-links a:hover { opacity: 1; }
.master-nav-links a[aria-current="page"] { opacity: 1; font-weight: 500; border-bottom: 1px solid currentColor; }

/* utility page (404) */

.doc-page { padding: 64px 0 96px; }
.doc-page h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* email mock panel */

.mail-row {
  display: flex;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.mail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-meta);
  width: 56px;
  flex-shrink: 0;
  padding-top: 2px;
}
.mail-value { color: var(--accent-active); font-size: 0.86rem; font-weight: 500; }
.mail-body {
  padding: 16px 4px 6px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-line;
  line-height: 1.7;
}
.mail-body b { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero-grid, .spread { grid-template-columns: 1fr; gap: 40px; }
  .prob-grid, .steps, .feat-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 32px; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- a11y ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq i, .live-dot { animation: none; }
}
