/* PromoteIt shared design system - Apple-inspired dark */
:root {
  --bg: #000000;
  --bg-elevated: #0e1318;
  --bg-panel: rgba(28, 28, 30, 0.72);
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #2997ff;
  --accent-strong: #0071e3;
  --accent-soft: rgba(41, 151, 255, 0.12);
  --warn: #ff9f0a;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
}

.pi-kicker-apple {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.pi-muted-apple { color: var(--muted); }
.pi-apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pi-apple-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.pi-apple-btn-fill,
.pi-apple-btn.pi-apple-btn-fill {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pi-apple-btn-ghost { background: transparent; }

.pi-quiz-card,
.pi-quiz-done {
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.75rem;
  max-width: 40rem;
  margin: 0 auto;
}
.pi-quiz-progress { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.pi-quiz-card h3,
.pi-quiz-done h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}
.pi-quiz-options { display: grid; gap: 0.65rem; }
.pi-quiz-option {
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pi-quiz-option:hover {
  border-color: rgba(41, 151, 255, 0.55);
  background: rgba(41, 151, 255, 0.08);
}
.pi-quiz-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font: inherit;
  margin-bottom: 1rem;
}
.pi-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pi-suggest-strip {
  margin-top: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.pi-suggest-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .pi-suggest-grid { grid-template-columns: repeat(2, 1fr); }
}
.pi-suggest-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(28, 28, 30, 0.55);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.pi-suggest-card:hover { border-color: rgba(41, 151, 255, 0.5); }
.pi-suggest-card strong { display: block; margin-bottom: 0.25rem; }
.pi-suggest-card span { color: var(--muted); font-size: 0.9rem; }

[data-pillar].is-suggested {
  border-color: rgba(41, 151, 255, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(41, 151, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.35);
}
.pi-suggested-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(41, 151, 255, 0.92);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.pi-hero-fade > * {
  opacity: 0;
  animation: piHeroIn 0.85s ease forwards;
}
.pi-hero-fade > *:nth-child(1) { animation-delay: 0.05s; }
.pi-hero-fade > *:nth-child(2) { animation-delay: 0.18s; }
.pi-hero-fade > *:nth-child(3) { animation-delay: 0.3s; }
.pi-hero-fade > *:nth-child(4) { animation-delay: 0.42s; }
@keyframes piHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apple-like chat */
#astro-chat-btn.pi-chat-fab {
  background: rgba(28, 28, 30, 0.9) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
#astro-chat-box.pi-chat-panel {
  background: rgba(28, 28, 30, 0.92) !important;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  overflow: hidden;
}
#astro-chat-box.pi-chat-panel #astro-chat-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#astro-chat-box.pi-chat-panel .pi-chat-footer {
  background: rgba(0, 0, 0, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#astro-chat-box.pi-chat-panel input {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f5f5f7 !important;
  border-radius: 0.75rem !important;
}
#astro-chat-box.pi-chat-panel #astro-start-btn,
#astro-chat-box.pi-chat-panel #astro-send-btn {
  background: #2997ff !important;
  border-radius: 0.75rem !important;
}

html { scroll-behavior: smooth; }

body.pi-body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.pi-display { font-family: var(--display); }
.pi-muted { color: var(--muted); }
.pi-accent { color: var(--accent); }

.pi-grain {
  position: relative;
  isolation: isolate;
}
.pi-grain::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(245, 158, 11, 0.08), transparent 50%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.pi-grain::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pi-nav {
  backdrop-filter: blur(12px);
  background: rgba(7, 9, 12, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pi-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 12, 0.92);
}

.pi-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.pi-brand span { color: var(--accent); }

.pi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.pi-btn:hover { transform: translateY(-1px); }
.pi-btn-primary {
  background: var(--accent-strong);
  color: #04110f;
}
.pi-btn-primary:hover { background: var(--accent); }
.pi-btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.pi-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.pi-section { padding: 5rem 0; }
@media (min-width: 768px) {
  .pi-section { padding: 6.5rem 0; }
}

.pi-kicker {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pi-h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.pi-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

.pi-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.pi-table-wrap { overflow-x: auto; }
.pi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.pi-table th,
.pi-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pi-table th {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.pi-table td strong { color: var(--ink); }
.pi-table .check { color: var(--accent); font-weight: 700; }
.pi-table .cross { color: #f87171; }

.pi-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.pi-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pi-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.pi-hero-anim > * {
  opacity: 0;
  animation: pi-hero-in 0.8s ease forwards;
}
.pi-hero-anim > *:nth-child(1) { animation-delay: 0.05s; }
.pi-hero-anim > *:nth-child(2) { animation-delay: 0.18s; }
.pi-hero-anim > *:nth-child(3) { animation-delay: 0.3s; }
.pi-hero-anim > *:nth-child(4) { animation-delay: 0.42s; }

.pi-roi input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.pi-roi .pi-metric {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.pi-roi label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.pi-roi .field {
  margin-bottom: 1.25rem;
}
.pi-roi input[type="number"],
.pi-roi select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  font-family: var(--body);
  font-size: 1rem;
}
.pi-roi .pi-metric-warn {
  color: #fbbf24;
}
.pi-service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pi-service-tabs button {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pi-service-tabs button.is-active,
.pi-service-tabs button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.pi-tech-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: var(--accent-soft);
  border-radius: 0.35rem;
  padding: 0.25rem 0.55rem;
  margin: 0 0.35rem 0.35rem 0;
}
.pi-loss {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: -0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#astro-chat-box input[type="text"],
#astro-chat-box input[type="email"],
#astro-chat-box input[type="tel"],
#astro-chat-box textarea {
  color: #111 !important;
}
#astro-chat-box {
  max-height: 80vh;
}

/* ===== Unified site chrome (home / sales / corporex) ===== */
.pi-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.pi-chrome.is-solid {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.pi-chrome-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pi-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #f5f5f7;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.pi-chrome-brand .pi-word {
  color: inherit;
  letter-spacing: -0.02em;
}
.pi-chrome-brand .pi-word > span {
  color: #2997ff;
}
.pi-chrome-brand svg { color: #2997ff; flex-shrink: 0; }
.pi-chrome-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .pi-chrome-nav { display: flex; }
}
.pi-chrome-nav a {
  color: #a1a1a6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.pi-chrome-nav a:hover,
.pi-chrome-nav a.is-active { color: #f5f5f7; }
.pi-chrome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 980px;
  background: #fff;
  color: #000 !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pi-chrome-cta:hover { background: #f5f5f7; }
.pi-chrome-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f5f5f7;
  border-radius: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width: 959px) {
  .pi-chrome-menu-btn { display: inline-flex; }
  .pi-chrome-cta { display: none; }
}
.pi-chrome-mobile {
  display: none;
  max-width: 1120px;
  margin: 0 auto 0.75rem;
  padding: 0.5rem 1.5rem 1rem;
}
.pi-chrome-mobile.is-open { display: block; }
.pi-chrome-mobile-panel {
  background: rgba(28, 28, 30, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
}
.pi-chrome-mobile-panel a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: #d1d1d6;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pi-chrome-mobile-panel a:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
  text-align: center;
  background: #fff;
  color: #000;
  border-radius: 980px;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.pi-site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 8, 10, 0.92);
  padding: 3.5rem 0 2rem;
  color: #a1a1a6;
  font-size: 0.9rem;
}
.pi-site-footer a { color: #a1a1a6; text-decoration: none; }
.pi-site-footer a:hover { color: #2997ff; }
.pi-site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .pi-site-footer-inner {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.pi-site-footer h5 {
  color: #f5f5f7;
  font-size: 0.95rem;
  margin: 0 0 1rem;
  font-weight: 600;
}
.pi-site-footer ul { list-style: none; padding: 0; margin: 0; }
.pi-site-footer li { margin-bottom: 0.55rem; }
.pi-socials { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1.15rem; }
.pi-socials a {
  color: #d1d1d6;
  display: inline-flex;
}
.pi-socials a:hover { color: #2997ff; }
.pi-socials svg { width: 1.25rem; height: 1.25rem; }
.pi-footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.pi-footer-badges a {
  display: inline-flex;
  line-height: 0;
}
.pi-footer-badges .pi-play-badge {
  height: 54px;
  width: auto;
  display: block;
  margin-left: -10px;
}
.pi-footer-badges .pi-meta-badge {
  height: 42px;
  width: auto;
  display: block;
  margin-left: 2px;
  border-radius: 8px;
  background: #fff;
}
.pi-footer-badges a:hover .pi-meta-badge {
  opacity: 0.92;
}
.pi-site-footer-bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding: 1.35rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: #86868b;
  line-height: 1.6;
}

a.pi-star {
  color: #86868b;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.12em;
  font-size: 0.78em;
  vertical-align: super;
  line-height: 0;
}
a.pi-star:hover,
a.pi-star:focus-visible {
  color: #2997ff;
}

/* Shared content gutters */
.pi-page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.pi-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: #fff;
  color: #000;
  transition: opacity 0.2s ease;
}
.pi-submit-btn:hover { opacity: 0.92; }
