/* === RankPanda Global Design System === */

/* --- Smooth scroll + sticky-nav anchor offset --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* mobile nav ≈ 65px */
}

@media (min-width: 768px) and (max-width: 774px) {
  html {
    scroll-padding-top: 9rem; /* nav wraps at 768–769px ≈ 137px */
  }
}

@media (min-width: 775px) {
  html {
    scroll-padding-top: 6rem; /* desktop nav ≈ 89px */
  }
}

/* --- Self-hosted Open Sans variable font (latin) --- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url('/static/fonts/open-sans-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Font pairing ---------- */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.0625rem;
}

h1,
h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

/* ---------- Spacing system — 3 rhythm levels ---------- */
.section-gap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-gap-lg {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.section-gap-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-gap {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .section-gap-lg {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .section-gap-sm {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ---------- Brand button — emerald-600 accent ---------- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  min-height: 2.75rem;
  /* 44px — WCAG 2.5.5 touch target */
  background: #059669;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn-brand:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  color: white;
}

.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  min-height: 2.75rem;
  /* 44px — WCAG 2.5.5 touch target */
  background: transparent;
  border: 1.5px solid #059669;
  color: #059669;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn-brand-outline:hover {
  background: #059669;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* ---------- Nav link — underline slide-in on hover ---------- */
.landing-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  position: relative;
  transition: color 0.15s;
  text-decoration: none;
}

.dark .landing-nav-link {
  color: #d1d5db;
}

.landing-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.landing-nav-link:hover::after {
  transform: scaleX(1);
}

/* ---------- Page fade-in animation ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fade-up 0.2s ease both;
  animation-delay: 0.1s;
}

/* ---------- Gradient text (static — avoids non-composited main-thread animation) ---------- */
.gradient-flow-text {
  background: linear-gradient(-45deg, #4338ca 0%, #4f46e5 50%, #4338ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-flow-border {
  border: 2px solid linear-gradient(-45deg, #4338ca 0%, #4f46e5 50%, #4338ca 100%);
}


.dark .gradient-flow-text {
  background: linear-gradient(-45deg, #e0e7ff, #a5b4fc, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.smol-cta-gradient {
  background: linear-gradient(135deg, #fda4af 0%, #f0abfc 50%, #fecdd3 100%);
  filter: grayscale(36%);
}

.gradient-flow-bg {
  background: linear-gradient(-45deg, #4f46e5, #4338ca, #3730a3);
}

/* ---------- Steps gradient circle variant ---------- */
.step-gradient::before,
.step-gradient::after {
  background: linear-gradient(-45deg, #818cf8, #a5b4fc, #6366f1) !important;
  outline-color: #818cf8 !important;
}

.step-con::before,
.step-con::after {
  background: #fda4af !important;
  outline-color: #fff !important;
}

.gradient-flow-btn {
  background: linear-gradient(-45deg, #4f46e5, #4338ca, #3730a3);
  color: white;
  transition: filter 0.2s ease;
}

.gradient-flow-btn:hover {
  filter: brightness(1.15);
  color: white;
  cursor: pointer;
}

/* ---------- SelectWithIcon: pad the uk-input-fake button to make room for the custom chevron ---------- */
.uk-select-wrapper uk-select button.uk-input-fake {
  padding-right: 2.5rem;
}


/* ---------- sr-only: available before external CSS loads — prevents "Open main menu" FOUC ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Reduced-motion: pause animations for motion-sensitive users ---------- */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- View Transitions: landing ↔ blog ---------- */
@view-transition {
  navigation: auto;
}

@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(10px); }
}

::view-transition-old(root) {
  animation: 180ms ease-out both vt-fade-out;
}

::view-transition-new(root) {
  animation: 240ms ease-out both vt-fade-in;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------- Blog post rich-text content area ---------- */
.blog-content {
  line-height: 1.618;
}

.blog-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.blog-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.blog-content p {
  margin: 0.75rem 0;
}

.blog-content a {
  color: #6366f1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover {
  color: #4f46e5;
}

.dark .blog-content a {
  color: #a5b4fc;
}

.blog-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.blog-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.blog-content li {
  margin: 0.25rem 0;
}

/* Quill 2.x renders ALL list types as <ol> with data-list="bullet"|"ordered" on each <li>.
   Override so bullet items display correctly in the public blog view (no Quill CSS loaded here).
   Also hide the .ql-ui spans — their content comes from Quill CSS ::before rules. */
.blog-content li[data-list="bullet"] {
  list-style-type: disc;
}

.blog-content .ql-ui {
  display: none;
}

/* Quill alignment classes — applied by the align toolbar, need explicit styles in public view */
.blog-content .ql-align-center {
  text-align: center;
}

.blog-content .ql-align-right {
  text-align: right;
}

.blog-content .ql-align-justify {
  text-align: justify;
}

.blog-content blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

.blog-content pre,
.blog-content code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(99, 102, 241, .08);
  border-radius: 0.25rem;
}

.blog-content code {
  padding: 0.1em 0.35em;
  font-size: 0.875em;
}

.blog-content pre {
  padding: 1rem;
  overflow-x: auto;
}

.blog-content pre code {
  background: none;
  padding: 0;
}

.blog-content img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* ---------- ATF Hero — background atmosphere ---------- */
@keyframes atf-drift-1 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(28px, 18px) scale(1.05);
  }
}

@keyframes atf-drift-2 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-18px, 28px) scale(0.96);
  }
}

.atf-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 110% 70% at 62% 0%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 62% 0%, black 10%, transparent 75%);
}

.atf-orb-1 {
  position: absolute;
  width: 700px;
  height: 550px;
  right: 200px;
  top: 100px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.13) 0%, rgba(139, 92, 246, 0.07) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: atf-drift-1 14s ease-in-out infinite alternate;
}

.atf-orb-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  left: 100px;
  top: 140px;
  background: radial-gradient(ellipse, rgba(67, 56, 202, 0.13) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: atf-drift-2 18s ease-in-out infinite alternate;
}

/* ---------- ATF Hero — CTA button shimmer ---------- */
.atf-shimmer {
  position: relative;
  overflow: hidden;
}

.atf-shimmer::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  animation: atf-shimmer-sweep 3.5s 1.8s infinite;
  pointer-events: none;
}

@keyframes atf-shimmer-sweep {
  0% {
    left: -80%;
  }

  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .atf-orb-1,
  .atf-orb-2 {
    animation: none !important;
  }

  .atf-shimmer::after {
    animation: none !important;
  }
}