/* Datalys marketing alt sayfaları — v3 Ledgerix Editorial ortak stil.
   Kaynak sözleşme: docs/market/landing-spec-v3.md §1 (L.* token birebir).
   Bu dosya SADECE statik alt sayfalar içindir; landing kendi entry'sini kullanır. */

:root {
  --paper: #F2F1EE;
  --surface: #FFFFFF;
  --ink: #0C0C0B;
  --ink2: #55534E;
  --mute: #9A978F;
  --line: rgba(12, 12, 11, 0.09);
  --line-on-ink: rgba(242, 241, 238, 0.12);
  --accent: #22C55E;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --t-h1: clamp(2.2rem, 1.1rem + 3.4vw, 4rem);
  --t-h2: clamp(1.6rem, 1rem + 1.8vw, 2.4rem);
  --t-body: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --sect: clamp(3.5rem, 2rem + 5vw, 7rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
}
a { color: inherit; }

/* ---- Header (GLOBAL — React SiteHeader.tsx ile birebir aynı düzen:
        konteyner 1440/24px (lg 64px), BrandLink = D-mark + "datalys"
        wordmark (dashboard yazı dili), sağda demo+giriş ikon butonları.
        SiteHeader değişirse burası da güncellenir.) ---- */
.mk-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 24px;
}
@media (min-width: 1024px) { .mk-header { padding: 24px 64px; } }
.mk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.mk-mark {
  width: 48px; height: 48px; border-radius: 16px;
  background: #0A0E1A; /* D-mark brand DNA — L.* sözleşmesi dışı bilinçli istisna (Brand.tsx ile aynı) */
  display: flex; align-items: center; justify-content: center;
  box-shadow: 10px 18px 34px rgba(10, 14, 26, 0.22); flex-shrink: 0;
}
.mk-word { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.mk-word b { font-weight: inherit; color: var(--accent); }
.mk-actions { display: flex; align-items: center; gap: 12px; }
.mk-iconbtn {
  width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none; transition: transform 0.2s var(--ease);
}
.mk-iconbtn:hover { transform: scale(1.05); }
.mk-nav { display: flex; gap: 28px; align-items: center; }
.mk-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink2);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mk-nav a:hover { color: var(--ink); border-color: var(--accent); }
.mk-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.mk-cta {
  text-decoration: none; background: var(--ink); color: var(--surface);
  font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 999px;
  transition: transform 0.2s var(--ease);
}
.mk-cta:hover { transform: scale(1.03); }

/* ---- Hero bloğu ---- */
.mk-hero { max-width: 880px; margin: 0 auto; text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 24px 0; }
.mk-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
h1 { font-size: var(--t-h1); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; margin: 0; text-wrap: balance; }
h1 em, .serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.mk-lede { color: var(--ink2); max-width: 56ch; margin: 20px auto 0; text-wrap: pretty; }

/* ---- Bölümler ---- */
.mk-section { max-width: 1120px; margin: 0 auto; padding: var(--sect) 24px 0; }
.mk-section > h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h2); margin: 0 0 8px; }
.mk-sub { color: var(--ink2); margin: 0 0 32px; max-width: 62ch; }
.mk-rule { border: 0; border-top: 1px solid var(--line); max-width: 1120px; margin: var(--sect) auto 0; }

/* ---- Kart ızgaraları ---- */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mk-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; transition: border-color 0.25s;
}
.mk-card:hover { border-color: var(--ink); }
.mk-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.mk-card p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.mk-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* Rozetler */
.mk-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
.mk-badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mk-badge.road::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--mute); }

/* Adımlar */
.mk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.mk-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.mk-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--mute); display: block; margin-bottom: 12px; }

/* ---- Pricing ---- */
.mk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.mk-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; }
.mk-plan.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.mk-plan.dark .mk-plan-desc, .mk-plan.dark li { color: rgba(242, 241, 238, 0.75); }
.mk-plan .ribbon { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.mk-plan .ribbon::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mk-plan h3 { font-size: 26px; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.mk-plan-desc { color: var(--ink2); font-size: 15px; margin: 0 0 22px; }
.mk-price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.mk-price small { font-size: 15px; font-weight: 500; color: inherit; opacity: 0.65; }
.mk-plan .note { font-size: 13.5px; color: var(--mute); margin: 6px 0 22px; }
.mk-plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.mk-plan li { font-size: 14.5px; color: var(--ink2); padding-left: 22px; position: relative; }
.mk-plan li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--accent); }
.mk-plan .btn { display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: 15px; padding: 14px 0; border-radius: 999px; background: var(--ink); color: var(--surface); transition: transform 0.2s var(--ease); }
.mk-plan.dark .btn { background: var(--paper); color: var(--ink); }
.mk-plan .btn:hover { transform: scale(1.02); }
.mk-plan .btn.ghost { background: transparent; color: inherit; border: 1px solid var(--line); }
.mk-plan.dark .btn.ghost { border-color: var(--line-on-ink); }

/* ---- Form ---- */
.mk-form { display: flex; flex-direction: column; gap: 16px; }
.mk-form label { font-size: 13.5px; font-weight: 600; color: var(--ink2); display: block; margin-bottom: 6px; }
.mk-form input, .mk-form textarea, .mk-form select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color 0.2s;
}
.mk-form input:focus, .mk-form textarea:focus, .mk-form select:focus { border-color: var(--ink); }
.mk-form button {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--surface);
  background: var(--ink); border: 0; border-radius: 999px; padding: 15px 28px;
  cursor: pointer; transition: transform 0.2s var(--ease);
}
.mk-form button:hover { transform: scale(1.02); }
.mk-form button:disabled { opacity: 0.5; transform: none; cursor: default; }
.mk-note-ok { color: var(--accent); font-weight: 600; }
.mk-note-err { color: #B4231F; font-weight: 600; }

/* ---- Kapanış + Footer ---- */
.mk-closing { text-align: center; padding: var(--sect) 24px; }
.mk-closing p.big { font-family: var(--font-display); font-size: var(--t-h2); margin: 0 0 24px; }
.mk-footer { border-top: 1px solid var(--line); }
.mk-footer .in { max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; color: var(--mute); font-size: 13.5px; }
.mk-footer a { color: var(--ink2); text-decoration: none; }
.mk-footer a:hover { color: var(--ink); }

/* ---- Reveal (CSS-only, hafif) ---- */
@keyframes mk-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.mk-hero, .mk-section, .mk-closing { animation: mk-rise 0.7s var(--ease) both; }
.mk-section { animation-delay: 0.08s; }
@media (prefers-reduced-motion: reduce) {
  .mk-hero, .mk-section, .mk-closing { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .mk-nav { display: none; }
  .mk-hero { text-align: left; }
  .mk-lede { margin-left: 0; }
}

/* ---- Statik sayfa nav dropdown'ları (CSS-only; React sayfalarındaki
       MainNav'ın basitleştirilmiş eşleniği) ---- */
.mk-dd { position: relative; }
.mk-dd > span {
  display: inline-flex; align-items: center; gap: 4px; cursor: default;
  font-size: 15px; font-weight: 500; color: var(--ink2);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.mk-dd:hover > span { color: var(--ink); }
.mk-dd > .mk-dd-menu {
  visibility: hidden; opacity: 0; transition: opacity 0.15s;
  position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  padding-top: 14px; z-index: 60;
}
.mk-dd:hover > .mk-dd-menu, .mk-dd:focus-within > .mk-dd-menu { visibility: visible; opacity: 1; }
.mk-dd-menu > div {
  min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; box-shadow: 0 28px 70px rgba(12,12,11,0.18);
}
.mk-dd-menu a {
  display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.mk-dd-menu a small { display: block; font-weight: 400; font-size: 12px; color: var(--mute); margin-top: 2px; }
.mk-dd-menu a:hover { background: var(--paper); }
