/* =========================================================
   kodakod demo katmanı — kodakod.com tasarım dili (monokrom, Inter, kapsül butonlar)
   Sitenin kendi stilinden bağımsızdır; tüm sınıflar "kd-" önekli.
   ========================================================= */

.kd {
  --kd-text: #1d1d1f;
  --kd-text-soft: #515154;
  --kd-text-mute: #86868b;
  --kd-bg-soft: #f5f5f7;
  --kd-border: rgba(0, 0, 0, .08);
  --kd-border-hi: rgba(0, 0, 0, .14);
  --kd-ease: cubic-bezier(.22, .61, .36, 1);
  --kd-ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}

.kd-mark {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("../img/kodakod-icon.svg") center / contain no-repeat;
  mask: url("../img/kodakod-icon.svg") center / contain no-repeat;
}
.kd-wa-icon {
  flex: none;
  width: 20px; height: 20px;
  background-color: currentColor;
  -webkit-mask: url("../img/whatsapp.svg") center / contain no-repeat;
  mask: url("../img/whatsapp.svg") center / contain no-repeat;
}

/* ---------- Kapsül butonlar (kodakod .lp-btn ailesi) ---------- */
.kd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 980px; border: 1px solid transparent;
  font: 500 .92rem/1.2 "Inter", system-ui, sans-serif; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 200ms var(--kd-ease), background 220ms var(--kd-ease), color 200ms var(--kd-ease), border-color 200ms var(--kd-ease);
}
.kd-btn:active { transform: scale(.97); }
.kd-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Yüzen öğeler ---------- */
.kd-float {
  position: fixed; z-index: 950;
  bottom: calc(clamp(1rem, 2.5vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: .5rem 1.3rem .5rem 1.05rem;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--kd-text); color: #fff;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .4);
  font-size: .92rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  animation: kd-float-in .6s var(--kd-ease-out) .6s backwards;
  transition: transform 200ms var(--kd-ease), opacity .3s, visibility 0s;
}
.kd-float:hover { transform: translateY(-2px); }
.kd-float--wa { right: calc(clamp(1rem, 2.5vw, 1.75rem) + env(safe-area-inset-right, 0px)); }
.kd-float--demo {
  left: calc(clamp(1rem, 2.5vw, 1.75rem) + env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, .92); color: var(--kd-text);
  border-color: var(--kd-border-hi);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .3);
}
.kd-float--demo .kd-mark { width: 18px; height: 18px; }
.kd-float__dot { width: 7px; height: 7px; border-radius: 50%; background: #17c653; box-shadow: 0 0 0 3px rgba(23, 198, 83, .18); }
.kd-float__muted { color: var(--kd-text-mute); }
@keyframes kd-float-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
body.kd-modal-open .kd-float { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }

/* ---------- Modal ---------- */
.kd-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  visibility: hidden; pointer-events: none;
}
.kd-modal.is-open { visibility: visible; pointer-events: auto; }
.kd-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s var(--kd-ease);
}
.kd-modal.is-open .kd-modal__backdrop { opacity: 1; }

.kd-dialog {
  position: relative;
  width: 100%; max-width: 480px;
  padding: 60px 56px 34px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 32px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7);
  text-align: center;
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .45s var(--kd-ease-out), transform .6s var(--kd-ease-out);
}
.kd-modal.is-open .kd-dialog { opacity: 1; transform: none; }
.kd-dialog:focus { outline: none; }

.kd-close {
  position: absolute; top: 20px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s;
}
.kd-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.kd-close svg { width: 12px; height: 12px; }

.kd-dialog__mark { display: block; width: 36px; height: 36px; color: #fff; margin: 0 auto 36px; }

.kd-eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin: 0 0 22px;
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.kd-title {
  margin: 0 0 24px;
  font-size: 2.4rem; font-weight: 600; line-height: 1.14; letter-spacing: -.028em;
}
.kd-title em { font-style: normal; color: rgba(255, 255, 255, .45); }
.kd-lead { margin: 0 auto 44px; max-width: 340px; font-size: .95rem; line-height: 1.75; color: rgba(255, 255, 255, .62); }

.kd-btn--light { width: 100%; min-height: 56px; background: #fff; color: #000; font-size: .95rem; }
.kd-btn--light:hover { background: rgba(255, 255, 255, .88); }

.kd-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.kd-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 500 .82rem "Inter", system-ui, sans-serif; color: rgba(255, 255, 255, .55);
  text-decoration: none; transition: color .2s;
}
.kd-link:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .kd-modal { padding: 12px; place-items: end center; }
  .kd-dialog { padding: 48px 28px 26px; border-radius: 28px; }
  .kd-title { font-size: 2rem; }
  .kd-dialog__mark { margin-bottom: 28px; }
  .kd-lead { margin-bottom: 34px; }
  .kd-float { min-height: 44px; padding: .45rem 1rem .45rem .85rem; font-size: .86rem; }
  .kd-float--wa .kd-float__label { display: none; }
  .kd-float--wa { padding: 0; width: 48px; justify-content: center; }
  .kd-float__muted { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kd *, .kd-float, .kd-dialog, .kd-modal__backdrop { animation: none !important; transition: none !important; }
}
