/* ==========================================================================
   ServisTakip App Theme — modern SaaS design layer (Metronic SaaS esinli)
   Brand colors consume :root vars set by layouts/app.html (THEME_COLORS).
   ========================================================================== */

:root {
  --brand-primary: var(--color-primary, #2563eb);
  --brand-secondary: var(--color-secondary, #0ea5e9);
  --brand-accent: var(--color-accent, #60a5fa);
  --brand-grad: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(14,165,233,0.08) 100%);
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
}

/* ---------- Base polish ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--font-family, 'Inter', sans-serif); letter-spacing: -0.011em; }

/* Gradient brand text */
.brand-grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: .925rem;
  padding: .72rem 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1d4ed8 55%, var(--brand-secondary) 130%);
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(15,23,42,0.25);
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.6); }
.btn-primary a { color: #fff !important; }
.btn-primary:visited, .btn-primary:active, .btn-primary:focus { color: #fff !important; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.btn-ghost:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: var(--brand-primary) !important;
  box-shadow: 0 12px 26px -12px rgba(15,23,42,0.45);
}
.btn-white:hover { transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; border-radius: .75rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; border-radius: 1rem; }

/* ---------- Eyebrow / pill badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--brand-grad-soft);
  color: var(--brand-primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid rgba(79,70,229,0.12);
}

/* ---------- Marketing section helpers ---------- */
.st-section { padding: clamp(3.25rem, 6.5vw, 4.75rem) 1.5rem; }
.st-section-alt {
  background:
    radial-gradient(900px 440px at 8% -12%, hsl(var(--st-grid-hue) 85% 93% / .55), transparent 60%),
    radial-gradient(800px 420px at 94% 108%, hsl(var(--st-grid-hue) 80% 92% / .5), transparent 60%),
    linear-gradient(135deg, hsl(var(--st-grid-hue) 80% 98%) 0%, hsl(var(--st-grid-hue) 75% 95%) 50%, hsl(var(--st-grid-hue) 70% 92%) 100%);
  border-top: 1px solid hsl(var(--st-grid-hue) 70% 89% / .6);
  border-bottom: 1px solid hsl(var(--st-grid-hue) 70% 89% / .6);
}
.st-h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.st-lead { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; max-width: 40rem; }
.st-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.75rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.st-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(15,23,42,0.18); border-color: #cbd5e1; }
.st-icon {
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-grad-soft); color: var(--brand-primary); font-size: 1.4rem;
}

/* ---------- How-it-works steps ---------- */
.st-step { position: relative; }
.st-step-num {
  width: 2.6rem; height: 2.6rem; border-radius: .9rem;
  background: var(--brand-grad); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px -8px rgba(37,99,235,0.5);
}

/* ---------- Pricing ---------- */
.st-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.st-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 1.35rem; padding: 1.9rem; transition: transform .22s ease, box-shadow .22s ease; }
.st-plan:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(15,23,42,0.15); }
.st-plan.popular { border: 2px solid var(--brand-primary); box-shadow: 0 26px 50px -20px rgba(37,99,235,0.4); }
.st-plan-tag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: .7rem; font-weight: 800;
  padding: .3rem .9rem; border-radius: 999px; letter-spacing: .05em; white-space: nowrap;
}
.st-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.st-price span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.st-feat { display: flex; flex-direction: column; gap: .65rem; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.st-feat li::before { content: "✓"; margin-right: .55rem; color: var(--brand-primary); font-weight: 800; }

/* ---------- Testimonial ---------- */
.st-testi { position: relative; }
.st-stars { color: #f59e0b; letter-spacing: .15em; }

/* ---------- CTA banner ---------- */
.st-cta-banner {
  position: relative; overflow: hidden;
  background: var(--brand-grad);
  color: #fff; border-radius: 1.75rem;
  padding: 3.5rem 2rem; text-align: center;
}
.st-cta-banner::before, .st-cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
}
.st-cta-banner::before { width: 260px; height: 260px; background: #fff; top: -120px; left: -60px; }
.st-cta-banner::after { width: 200px; height: 200px; background: var(--brand-accent); bottom: -100px; right: -40px; }

/* ---------- Hero glow + grid (colors driven by --st-grid-hue) ---------- */
:root { --st-grid-hue: 232; }
.st-hero-grid {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image:
    radial-gradient(1200px 500px at 50% -10%, hsl(var(--st-grid-hue) 82% 62% / .16), transparent 60%),
    linear-gradient(hsl(var(--st-grid-hue) 48% 74% / .22) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--st-grid-hue) 48% 74% / .22) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

/* ---------- Full-page fixed square-grid background (all pages) ---------- */
.st-page-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background-image:
    radial-gradient(1400px 700px at 50% 0%, hsl(var(--st-grid-hue) 85% 92% / .65), transparent 65%),
    linear-gradient(hsl(var(--st-grid-hue) 55% 80% / .18) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--st-grid-hue) 55% 80% / .18) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  background-attachment: fixed;
}

/* ---------- Footer ---------- */
.st-footer a.link { transition: color .15s ease; }

/* ---------- Reveal animation (respect reduced motion) ---------- */
.fade-up { opacity: 0; transform: translateY(18px); }
.fade-up.in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.st-avatar { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--brand-grad-soft); color: var(--brand-primary); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.st-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.st-prose :is(p, li, blockquote) { color: var(--ink-soft); line-height: 1.8; }
.st-prose h1, .st-prose h2, .st-prose h3, .st-prose h4 { color: var(--ink); letter-spacing: -0.02em; }
.st-prose h2 { font-size: 1.7rem; font-weight: 800; margin: 2.2rem 0 .9rem; }
.st-prose h3 { font-size: 1.25rem; font-weight: 800; margin: 1.8rem 0 .7rem; }
.st-prose p { margin-bottom: 1rem; }
.st-prose ul { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .7rem; }
.st-prose ul li { position: relative; padding-left: 1.8rem; }
.st-prose ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-primary); font-weight: 800; }
.st-prose blockquote { border-left: 4px solid var(--brand-primary); background: var(--brand-grad-soft); border-radius: 0 1rem 1rem 0; padding: 1rem 1.4rem; margin: 1.6rem 0; }
.st-prose blockquote p { margin: 0; font-weight: 600; color: var(--ink); }
.st-prose img { border-radius: 1.25rem; width: 100%; margin: 1.4rem 0 .4rem; box-shadow: 0 24px 50px -30px rgba(15,23,42,0.35); }
.st-prose a { color: var(--brand-primary); font-weight: 600; }
.st-dropcap::first-letter { float: left; font-size: 3.5rem; line-height: .85; font-weight: 800; color: var(--brand-primary); padding: .15rem .6rem 0 0; }
::selection { background: rgba(37,99,235,0.18); }

/* ---------- FAQ akordiyon (modül) — servistakipapp mavi palet ---------- */
.faq-block-container .faq-item { border-color: var(--line); }
.faq-block-container .faq-item.ring-2 { border-color: var(--brand-primary); --tw-ring-color: rgba(37,99,235,0.12); }
.faq-block-container .faq-trigger:hover, .faq-block-container .faq-trigger:hover span { color: var(--brand-primary); }
.faq-block-container .faq-trigger:hover .faq-chevron { color: var(--brand-primary); }
.faq-content .prose :is(p, li, blockquote) { color: var(--ink-soft); line-height: 1.8; }
.faq-content .prose h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin: 1.3rem 0 .55rem; }
.faq-content .prose ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.faq-content .prose ul li { position: relative; padding-left: 1.7rem; }
.faq-content .prose ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-primary); font-weight: 800; }
.faq-content .prose ol { padding-left: 1.3rem; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.faq-content .prose ol li { padding-left: .3rem; }
.faq-content .prose ol li::marker { color: var(--brand-primary); font-weight: 800; }
.faq-content .prose blockquote { border-left: 4px solid var(--brand-primary); background: var(--brand-grad-soft); border-radius: 0 1rem 1rem 0; padding: 1rem 1.4rem; margin: 1.4rem 0; }
.faq-content .prose blockquote p { margin: 0; font-weight: 600; color: var(--ink); }
.faq-content .prose a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-content .prose strong { color: var(--ink); }

/* ---------- Scroll-to-top ---------- */
.st-totop {
  position: fixed; left: 1rem; bottom: 1.125rem; z-index: 50;
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.55);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.st-totop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.st-totop:hover { transform: translateY(-2px); }
.st-totop svg { width: 1.2rem; height: 1.2rem; }
@media (min-width: 768px) {
  .st-totop { left: 1.375rem; bottom: 1.375rem; width: 3.25rem; height: 3.25rem; border-radius: 1.15rem; }
}