/* ===== Praxis Landing v2 ===== */
:root {
  --bg: #ffffff;
  --fg: #0f1117;
  --muted-50: #f8f9fb;
  --muted-100: #f3f4f6;
  --muted-200: #e8eaed;
  --muted-300: #d1d5db;
  --muted-500: #6b7280;
  --muted-600: #4b5563;
  --muted-700: #374151;
  --muted-400: #9ca3af;
  --praxis-primary: #7c3aed;
  --praxis-primary-dark: #6d28d9;
  --praxis-secondary: #00c8e0;
  --green: #16a34a;
  --amber: #d97706;
  --cyan: #0284c7;
  --pink: #db2777;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: Syne, Georgia, serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* Italic Syne needs right padding per brand note */
.syne-italic {
  font-family: var(--font-display);
  font-style: italic;
  padding-right: 0.25em;
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #00c8e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-subtle {
  background: linear-gradient(135deg, #0f1117 40%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Rotating hero headline =====
   Simple, reliable: one ghost (visibility:hidden) reserves the height, then
   real lines are absolutely positioned over it with class-based delays (no
   nth-of-type, which would count ghosts and real lines together). */
.rot-wrap {
  display: block;
  position: relative;
  width: 100%;
}
.rot-ghost {
  display: block;
  visibility: hidden;
  pointer-events: none;
}
.rot-line {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  animation: rotFade 8.6s infinite;
  will-change: opacity, transform;
}
/* 2 lines × 4.3s each = 8.6s cycle */
.rot-line-0 { animation-delay: 0s; }
.rot-line-1 { animation-delay: 4.3s; }
.rot-line.rot-static { animation: none !important; opacity: 0 !important; }
.rot-line.rot-static.rot-line-0 { opacity: 1 !important; }

@keyframes rotFade {
  0%    { opacity: 0; transform: translateY(6px); }
  5%    { opacity: 1; transform: translateY(0); }
  45%   { opacity: 1; transform: translateY(0); }
  50%   { opacity: 0; transform: translateY(-6px); }
  100%  { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .rot-line { animation: none !important; opacity: 0 !important; }
  .rot-line-0 { opacity: 1 !important; }
}

/* Section fade-in */
.fade-section { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; }
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* Pulse dot */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.pulse-dot { animation: pulse 2s infinite; }

/* Gradient top rule */
.gradient-rule {
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #00c8e0);
  border-radius: 3px;
}

/* Accordion */
details.faq {
  border-bottom: 1px solid var(--muted-200);
  padding: 22px 0;
}
details.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.2px;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary .chev {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--muted-200);
  background: var(--muted-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  color: var(--muted-500);
}
details.faq[open] > summary .chev {
  transform: rotate(45deg);
  background: var(--praxis-primary);
  color: white;
  border-color: var(--praxis-primary);
}
details.faq > div.faq-body {
  padding-top: 14px;
  color: var(--muted-500);
  font-size: 15px;
  line-height: 1.7;
  max-width: 780px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--fg);
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: #1f2937; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-700);
  background: white;
  border: 1px solid var(--muted-300);
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-secondary:hover { background: var(--muted-50); transform: translateY(-1px); }

.btn-plus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: -0.1px;
}
.btn-plus:hover { opacity: .92; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted-500);
  border-bottom: 1px solid var(--muted-300);
  padding-bottom: 1px;
  cursor: pointer;
  transition: color .15s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.btn-ghost:hover { color: var(--fg); }

/* Eyebrow */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--praxis-primary);
}

/* Promise strip gradient top rule */
.promise-card {
  background: white;
  border: 1px solid var(--muted-200);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.promise-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #00c8e0);
}

/* Scroll snap for pricing ROI */
.roi-card {
  position: relative;
  overflow: hidden;
}
.roi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(124,58,237,0.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0,200,224,0.06), transparent 50%);
  pointer-events: none;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: white;
  border: 1px solid var(--muted-200);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);
  z-index: 100;
  overflow: hidden;
  font-size: 13px;
}
.tweaks-panel header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--muted-200);
  background: var(--muted-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweaks-panel h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-500);
}
.tweaks-panel .body { padding: 14px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.tweak-group label { font-size: 11px; font-weight: 600; color: var(--muted-500); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; display: block; }
.tweak-choices { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-choice {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--muted-200);
  background: white;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted-700);
  transition: all .15s ease;
}
.tweak-choice:hover { background: var(--muted-50); }
.tweak-choice.active {
  background: var(--praxis-primary);
  border-color: var(--praxis-primary);
  color: white;
}
.tweaks-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--fg);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Shadow helpers */
.card-shadow {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.05);
}
.hero-shadow {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.06);
}

/* Utility */
.container-1120 { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container-1120 { padding: 0 20px; } }
