/* Direction: ProfilePick AI — quiet studio light, graphite ink, electric indigo
   accent, Apple-minimal type with a geometric display face. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #eceef4;
  --border: #e0e2ec;
  --border-strong: #b9bdcd;
  --ink: #101117;
  --muted: #5c5f70;
  --accent: #4f46e5;
  --accent-hover: #4038d4;
  --accent-ink: #ffffff;
  --accent-text: #4338ca;
  --accent-strong: #352ba8;
  --accent-soft: #ebeafe;
  --accent-border: #c3bffa;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dae8e2;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #ede2dc;
  --warning-strong: #a64c08;
  --danger: #dc2626;
  --danger-ink: #ffffff;
  --danger-soft: #f2dde0;
  --danger-strong: #ba2020;
  --chart-1: #4f46e5;
  --chart-2: #0ea5e9;
  --chart-3: #db2777;
  --chart-4: #15803d;
  --chart-5: #b45309;
  --chart-6: #0f766e;

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.035em;
  --eyebrow-tracking: 0.14em;
  --radius-card: 22px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --card-pad: 1.5rem;
  --shadow-card: 0 1px 2px rgba(16, 17, 23, 0.06), 0 18px 40px -26px rgba(16, 17, 23, 0.3);
  --x-band: #0c0d13;
  --x-on-photo: #ffffff;
  --x-paper: #ffffff;
  --x-paper-ink: #15161d;
  --x-paper-muted: #55586a;
  --x-paper-line: #d7dae6;
  --x-paper-wash: #f3f4f9;
  --gradient-glow: radial-gradient(60% 60% at 50% 0%, rgba(79, 70, 229, 0.25), transparent 72%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --canvas: #080817;
  --surface: #21212e;
  --surface-2: #141423;
  --border: #2b2b37;
  --border-strong: #52525d;
  --ink: #f5f6f9;
  --muted: #96979f;
  --accent: #4f46e5;
  --accent-hover: #6962e9;
  --accent-ink: #ffffff;
  --accent-text: #817bed;
  --accent-strong: #817bed;
  --accent-soft: #181644;
  --accent-border: #282474;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0b221f;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2e1914;
  --warning-strong: #c57a40;
  --danger: #dc2626;
  --danger-ink: #ffffff;
  --danger-soft: #370f1a;
  --danger-strong: #e45656;
  --chart-1: #5954f3;
  --chart-2: #dc41bd;
  --chart-3: #db450e;
  --chart-4: #9c8600;
  --chart-5: #0f985d;
  --chart-6: #1799b4;
}

/* ProfilePick AI — score dials, studio grid, analysis motion */

.ring {
  background: conic-gradient(var(--accent) calc(var(--v, 0) * 1%), var(--surface-2) 0);
}
.ring-inner {
  background: var(--surface);
}

.grid-paper {
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
}
.glow {
  background: var(--gradient-glow);
}

/* selected platform / compare chips */
.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* htmx busy swap */
.busy-only {
  display: none;
}
.htmx-request .busy-only {
  display: inline-flex;
}
.htmx-request .idle-only {
  display: none;
}

.score-bar {
  transition: width 0.5s ease;
}

/* printed report sheet */
.report {
  color-scheme: light;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.avoid-break {
  break-inside: avoid;
  page-break-inside: avoid;
}
.break-before {
  break-before: page;
  page-break-before: always;
}

@media print {
  @page {
    margin: 12mm;
  }
  html,
  body {
    background: var(--x-paper);
  }
  .no-print {
    display: none !important;
  }
  .report {
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 0;
  }
  a[href]::after {
    content: "";
  }
}

@keyframes pp-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.3;
  }
}
.pulse-dot {
  animation: pp-pulse 1.6s ease-in-out infinite;
}

@keyframes pp-sweep {
  0% {
    transform: translateY(-20%);
  }
  100% {
    transform: translateY(2200%);
  }
}
.sweep {
  animation: pp-sweep 2.6s linear infinite;
}

@keyframes pp-rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}
.rise {
  animation: pp-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html.reduced-motion .pulse-dot,
html.reduced-motion .sweep,
html.reduced-motion .rise {
  animation: none;
}
