/* Herkese açık demo sayfası (/demo) */
.dm { background: radial-gradient(900px 500px at 90% -10%, #dbe7ff 0%, transparent 60%), #f7f9fc; color: #0f172a; min-height: 100vh; }
.dm-top { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; padding: 22px 20px; }
.dm-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; }
.dm-pill { display: inline-block; background: #fff; border: 1px solid #e3e8f2; border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #334155; }
.dm-copy h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 16px; }
.dm-copy h1 span { color: #2563eb; }
.dm-lead { font-size: 18px; line-height: 1.6; color: #475569; max-width: 560px; }
.dm-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dm-steps li { display: flex; gap: 14px; align-items: center; }
.dm-steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #00167b; color: #fff; font-weight: 800; flex: none; }
.dm-steps strong { display: block; font-size: 16px; }
.dm-steps span { color: #64748b; font-size: 14px; }
.dm-card { background: #fff; border: 1px solid #e3e8f2; border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); }
.dm-card h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 16px; }
.dm-form { display: flex; flex-direction: column; gap: 8px; }
.dm-form label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.dm-form label span, .dm-more summary span { color: #94a3b8; font-weight: 500; }
.dm-form input[type=text], .dm-form input:not([type]), .dm-form input[type=email] { height: 52px; border-radius: 14px; border: 1.5px solid #dfe5ef; padding: 0 16px; font: 500 17px Inter, sans-serif; width: 100%; }
.dm-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px #2563eb22; }
.dm-more { border: 1.5px dashed #dfe5ef; border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.dm-more summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.dm-more[open] summary { margin-bottom: 4px; }
.dm-consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 13px !important; color: #475569; line-height: 1.45; }
.dm-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.dm-go { margin-top: 14px; height: 64px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font: 800 20px Inter, sans-serif; cursor: pointer; box-shadow: 0 16px 30px -14px #2563eb; transition: transform .1s; }
.dm-go:hover { filter: brightness(1.05); } .dm-go:active { transform: scale(.985); } .dm-go:disabled { opacity: .8; cursor: progress; }
.dm-small { font-size: 13px; color: #64748b; text-align: center; margin: 6px 0 0; }
.dm-resume { background: #eaf1ff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; font-weight: 600; }
.dm-note { background: #e8f7ee; color: #166534; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.dm .err { color: #dc2626; font-size: 13px; }
.dm-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; padding: 10px 20px 40px; }
.dm-feats div { background: #fff; border: 1px solid #e3e8f2; border-radius: 18px; padding: 18px; }
.dm-feats b { font-size: 26px; display: block; }
.dm-feats strong { display: block; margin: 8px 0 4px; }
.dm-feats span { font-size: 14px; color: #64748b; }
.dm-foot { text-align: center; color: #94a3b8; font-size: 13px; padding: 20px; }
@media (max-width: 900px) {
  .dm-hero { grid-template-columns: 1fr; gap: 28px; }
  .dm-card { order: -1; }
  .dm-copy h1 { margin-top: 12px; }
  .dm-feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .dm-feats { grid-template-columns: 1fr; } .dm-card { padding: 20px; border-radius: 20px; } }

/* Panel: demo bandı + QR penceresi + canlı bildirim */
.demo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(90deg, #00167b, #2563eb); color: #fff; padding: 10px clamp(16px, 2.4vw, 48px); font-size: 14px; }
.demo-bar b { color: #f5c518; }
.demo-bar .sp { flex: 1; }
.demo-bar .btn { height: 34px; }
.demo-bar .btn.gold { background: #f5c518; color: #111; border-color: transparent; font-weight: 700; }
.demo-bar .btn.light { background: rgba(255, 255, 255, .15); color: #fff; border-color: transparent; }
.qr-modal { position: fixed; inset: 0; background: rgba(7, 18, 51, .6); display: none; place-items: center; z-index: 90; padding: 16px; }
.qr-modal.open { display: grid; }
.qr-box { background: #fff; color: #0f172a; border-radius: 22px; padding: 26px; width: min(420px, 100%); text-align: center; box-shadow: 0 30px 60px -20px #000a;
  /* karar #81: kutu koyu temada da beyaz — içindeki düğme/bağlantı/soluk yazı açık tema renklerini kullansın */
  --surface: #ffffff; --surface-2: #f8fafc; --border: #e6e9f0; --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --primary: #2563eb; --primary-soft: #eaf1ff; --primary-fill: #2563eb; color-scheme: light; }
.qr-box h3 { font-size: 22px; margin: 0 0 6px; }
.qr-box p { color: #64748b; margin: 0 0 16px; font-size: 14px; }
.qr-box .qr-svg { width: 240px; margin: 0 auto 14px; }
.qr-box .qr-svg svg { width: 100%; height: auto; display: block; }
.qr-box .code { word-break: break-all; }
.live-toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; background: #0f172a; color: #fff; border-radius: 16px; padding: 14px 16px; display: none; align-items: center; gap: 12px; box-shadow: 0 20px 40px -16px #000a; font-weight: 600; }
.live-toast.show { display: flex; animation: rise .3s ease both; }
.live-toast .btn { height: 34px; background: #f5c518; color: #111; border: 0; }
/* karar #81: kapat düğmesi, telefonda tam genişlik alt şerit, asistan paneli açıkken gizli, koyu temada çerçeve */
.live-toast-x { display: grid; place-items: center; width: 30px; height: 30px; flex: none; margin-right: -4px; padding: 0; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .1); color: #fff; font: 400 20px/1 var(--sans, Inter), sans-serif; cursor: pointer; }
.live-toast-x:hover { background: rgba(255, 255, 255, .2); }
.live-toast-x:focus-visible { outline: 2px solid #f5c518; outline-offset: 2px; }
html.hwa-open .live-toast { display: none !important; }
@media (max-width: 860px) { body.nav-open .live-toast { display: none !important; } }  /* açık menünün altını örtmesin */
[data-theme="dark"] .live-toast { border: 1px solid var(--border); }
@media (max-width: 600px) {
  .live-toast { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .live-toast > span { flex: 1; min-width: 0; }
}
