/* ==========================================================================
   ENSA — ensasoftware.com
   Beyaz zemin, buz mavisi vurgu. Açık ve koyu tema.
   ========================================================================== */

:root {
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F4F8FB;
  --wash: #EAF5FB;
  --ink: #0F1B27;
  --muted: #566B7D;
  --faint: #6C869A;
  --sub: #52697D;
  --line: #DCE6EE;
  --line-strong: #B9CCDA;
  --ice: #BFE3F5;
  --ice-deep: #69B7E2;
  --on-ice: #0F1B27;
  --link: #1F6F9E;
  --sketch: #6FB5DB;
  --ok: #2FAE7C;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1118;
  --surface: #111B26;
  --wash: #13212E;
  --ink: #EDF4F9;
  --muted: #9BB0C1;
  --faint: #8DA6B9;
  --sub: #B4C7D6;
  --line: #1F2E3C;
  --line-strong: #324A5E;
  --ice: #BFE3F5;
  --ice-deep: #7CC6EC;
  --on-ice: #0A1118;
  --link: #8FD0F2;
  --sketch: #7CC6EC;
  --ok: #46CF98;
  color-scheme: dark;
}

/* ---------- Temel ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.1;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ice-deep);
  outline-offset: 3px;
}

.wrap {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.ico-s {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .98rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}

.btn:active {
  transform: scale(.98);
}

.btn-ice {
  background: var(--ice);
  color: var(--on-ice);
}

.btn-ice:hover {
  background: var(--ice-deep);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: .6rem 1.05rem;
  font-size: .92rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: border-color .2s;
}

.icon-btn:hover {
  border-color: var(--ink);
}

/* ---------- Üst bar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font: 800 1.4rem/1 var(--font-display);
  letter-spacing: .14em;
}

.brand::after {
  content: "";
  width: .36em;
  height: .36em;
  margin-left: .2em;
  border-radius: 50%;
  background: var(--ice-deep);
}

.nav {
  display: flex;
  gap: 2.2rem;
}

.nav a {
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--ice-deep);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.menu-btn {
  display: none;
}

.btn-head {
  padding: .7rem 1.15rem;
}

#themeToggle .ico-sun {
  display: none;
}

:root[data-theme="dark"] #themeToggle .ico-sun {
  display: block;
}

:root[data-theme="dark"] #themeToggle .ico-moon {
  display: none;
}

/* ---------- Giriş: taslak gerçeğe dönüşür ---------- */
.story {
  position: relative;
  height: 260svh;
}

.story-stick {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: clip;
}

.story-grid {
  display: grid;
  align-items: center;
  width: 100%;
  /* İki tarafı eşit, dengeli bir orana getiriyoruz */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1200px;
  margin-inline: auto;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: .3em;
}

.dream {
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  letter-spacing: -.03em;
  line-height: .98;
  color: #000000;
  transition: color .3s ease;
}

:root[data-theme="dark"] .dream {
  color: #EDF4F9;
}

.real {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.7rem);
  letter-spacing: -.04em;
  line-height: .98;
  color: var(--ice) !important;
}

.textplain {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.7rem);
  letter-spacing: -.04em;
  line-height: .98;
  color: #52c6ff !important;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--sub);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.8rem;
}

.scroll-hint {
  margin-top: 2.2rem;
  font-size: .92rem;
  color: var(--faint);
  transition: opacity .4s;
}

.story-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 600 / 540;
  max-height: calc(100svh - var(--header-h) - 3rem);
}

.story-art::before {
  content: "";
  position: absolute;
  inset: -3% -4%;
  z-index: -1;
  border-radius: 40px;
  background: var(--wash);
}

.story-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.art-status {
  position: absolute;
  left: 0;
  top: -2.4rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: .85rem;
  font-weight: 600;
}

.art-status i {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--faint);
}

.art-status[data-state="build"] i {
  background: var(--ice-deep);
}

.art-status[data-state="live"] i {
  background: var(--ok);
}

/* Taslak çizgileri */
.sketch {
  fill: none;
  stroke: var(--sketch);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 8;
}

/* Gerçek hali */
.r-surface {
  fill: var(--surface);
}

.r-bg {
  fill: var(--bg);
}

.r-line {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.r-stroke {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.r-ink {
  fill: var(--ink);
}

.r-ink-soft {
  fill: var(--ink);
  opacity: .8;
}

.r-muted {
  fill: var(--line-strong);
}

.r-dot {
  fill: var(--line-strong);
}

.r-ice {
  fill: var(--ice);
}

.r-on-ice {
  fill: var(--on-ice);
  opacity: .8;
}

.r-sun {
  fill: #FFFFFF;
  opacity: .85;
}

.r-hill {
  fill: var(--ice-deep);
  opacity: .7;
}

.r-url {
  font: 500 10.5px var(--font-body);
  fill: var(--faint);
}

.r-t1 {
  font: 700 13px var(--font-body);
  fill: var(--ink);
}

.r-t2 {
  font: 500 11px var(--font-body);
  fill: var(--faint);
}

.r-check {
  fill: none;
  stroke: var(--on-ice);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r-spark {
  fill: none;
  stroke: var(--ice-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-chip {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(.7) translateY(10px);
  transition: opacity .5s var(--ease) var(--d, 0s), transform .6s cubic-bezier(.2, 1.2, .3, 1) var(--d, 0s);
}

.is-done .float-chip {
  opacity: 1;
  transform: none;
}

.scan {
  stroke: var(--ice-deep);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .3s;
}

.scan-glow {
  stroke: var(--ice-deep);
  stroke-width: 14;
  opacity: 0;
  stroke-opacity: .22;
  transition: opacity .3s;
}

/* ---------- Referanslar (kayan şerit) ---------- */
.refs {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-block: 1px solid var(--line);
}

.refs-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  margin-bottom: 2.4rem;
}

#refsTitle,
.refs-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3rem) !important;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
  line-height: 1.15;
}

.refs-head p {
  color: var(--muted);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  max-width: 38rem;
  line-height: 1.5;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 40s) linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-half {
  display: flex;
  gap: 3.5rem;
  padding-right: 3.5rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.ref {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  white-space: nowrap;
  color: var(--faint);
  text-decoration: none;
  font: 700 1.3rem/1 var(--font-display);
  letter-spacing: -.01em;
  transition: color .25s;
}

.ref:hover,
.ref:focus-visible {
  color: var(--brand, var(--ink));
}

.ref-brand {
  color: var(--ink);
  opacity: .85;
  cursor: default;
  user-select: none;
  transition: opacity .25s, transform .25s var(--ease);
}

.ref-brand:hover {
  opacity: 1;
  transform: scale(1.05);
}

.ref-brand .brand {
  font-size: 1.55rem;
  letter-spacing: .16em;
}

.ref-logo {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}

/* ---------- Ortak bölüm düzeni ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
}

.section h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 700;
}

.section-head p,
.split-intro p {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

.split {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.split-intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

/* ---------- Hizmetler ---------- */
.service {
  display: grid;
  align-items: center;
  gap: 1.2rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1.4rem 1.2rem;
  cursor: pointer;
  border-top: 1px solid var(--line);
  transition: background-color .25s;
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service:hover {
  background: var(--wash);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--wash);
  color: var(--link);
  transition: background-color .25s, color .25s;
}

.service:hover .service-icon {
  background: var(--ice);
  color: var(--on-ice);
}

.service h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.service p {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .98rem;
}

/* ---------- Demolar ---------- */
.demo-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1rem 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s;
}

a.demo:hover {
  border-color: var(--ice-deep);
}

.demo-shot {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--wash);
}

.demo-shot svg {
  width: 76%;
}

.demo.is-soon .demo-shot {
  opacity: .8;
}

.demo-body {
  display: grid;
  gap: .35rem;
  padding-inline: .4rem;
}

.demo h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

.demo p {
  color: var(--muted);
  font-size: .97rem;
}

.demo .demo-url {
  color: var(--faint);
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.badge {
  position: absolute;
  top: 1.7rem;
  right: 1.7rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: .8rem;
  font-weight: 600;
}

.badge.is-live {
  border-color: var(--ok);
}

.empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  color: var(--muted);
}

/* ---------- Süreç ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 2.8rem;
  padding-left: 3.8rem;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  width: 2px;
  border-radius: 2px;
}

.steps::before {
  bottom: 20px;
  background: var(--line);
}

.steps::after {
  height: calc((100% - 40px) * var(--prog, 0));
  background: var(--ice-deep);
}

.step-item {
  position: relative;
}

.step-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  padding-top: .25rem;
}

.step-item p {
  margin-top: .4rem;
  max-width: 30rem;
  color: var(--muted);
}

.step-dot {
  position: absolute;
  left: -3.8rem;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  font: 700 1rem/1 var(--font-display);
  color: var(--faint);
  transition: background-color .35s, border-color .35s, color .35s;
}

.step-item.is-on .step-dot {
  background: var(--ice);
  border-color: var(--ice-deep);
  color: var(--on-ice);
}

/* ---------- Son çağrı ---------- */
.cta {
  padding-top: 0;
}

.cta-panel {
  display: grid;
  justify-items: start;
  gap: 1.2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 32px;
  background: var(--wash);
}

.cta-panel h2 {
  max-width: 14ch;
}

.cta-panel>p {
  max-width: 32rem;
  color: var(--muted);
}

.cta-panel .hero-cta {
  margin-top: .4rem;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .6rem;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s;
}

.contact-line:hover {
  border-color: var(--ink);
}

/* ---------- Alt bilgi (Footer) ---------- */
.foot {
  padding: 4.5rem 0 4rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: .95rem;
  transition: background-color .3s, border-color .3s;
}

.foot-wrap {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.foot-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.foot-logo {
  font-size: 1.6rem;
}

.foot-desc {
  max-width: 23rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line-strong);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}

.foot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}

.foot-heading {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  transition: color .2s, transform .2s var(--ease);
  display: inline-flex;
  align-items: center;
}

.foot-links a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.foot-contact-item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  transition: color .2s;
}

.foot-contact-item:hover {
  color: var(--ink);
}

.foot-contact-item .ico {
  width: 18px;
  height: 18px;
  color: var(--link);
  flex-shrink: 0;
}

.foot-note {
  font-size: .88rem;
  color: var(--faint);
  display: block;
  margin-top: .3rem;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--faint);
}

.foot-legal {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.foot-sep {
  opacity: .5;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .foot-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

/* ---------- Sabit WhatsApp butonu ---------- */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(18, 140, 70, .38);
  transition: transform .2s var(--ease);
}

.fab:hover {
  transform: scale(1.07);
}

.fab .ico {
  width: 32px;
  height: 32px;
}

/* ---------- Pencereler (hizmet soruları, kişi seçimi) ---------- */
.dlg {
  width: min(560px, 100% - 1.5rem);
  max-height: min(88svh, 740px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(8, 20, 30, .35);
}

.dlg::backdrop {
  background: rgba(8, 17, 24, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dlg[open] {
  animation: dlgIn .3s var(--ease);
}

@keyframes dlgIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.dlg-inner {
  display: flex;
  flex-direction: column;
  max-height: min(88svh, 740px);
}

.dlg-small {
  width: min(420px, 100% - 1.5rem);
}

.wiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem .9rem;
}

.wiz-head h3 {
  font-size: 1.2rem;
}

.wiz-service {
  color: var(--link);
  font-weight: 600;
}

.wiz-progress {
  height: 3px;
  margin: 0 1.5rem;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.wiz-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ice-deep);
  transition: width .35s var(--ease);
}

.wiz-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.wiz-body {
  flex: 1;
  min-height: 230px;
  padding: 1.5rem;
  overflow: auto;
}

.wiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--line);
}

.wiz-foot-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
}

.wiz-foot-actions .btn {
  padding: .8rem 1.25rem;
  font-size: .94rem;
}

.step {
  animation: stepIn .35s var(--ease);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.step>h3 {
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  font-weight: 700;
  outline: none;
}

.step .hint {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .95rem;
}

.step .opts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.3rem;
}

.step .other,
.step .field-wrap {
  margin-top: 1rem;
}

.step .field-wrap:first-of-type {
  margin-top: 1.3rem;
}

.step label {
  display: block;
  margin-bottom: .4rem;
  font-size: .92rem;
  font-weight: 600;
}

.opt {
  padding: .65rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  font: 500 .96rem/1.2 var(--font-body);
  transition: background-color .2s, border-color .2s;
}

.opt:hover {
  border-color: var(--ink);
}

.opt[aria-pressed="true"] {
  background: var(--ice);
  border-color: var(--ice-deep);
  color: var(--on-ice);
}

.field {
  display: block;
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.step>.field {
  margin-top: 1.3rem;
}

textarea.field {
  min-height: 7.5rem;
  resize: vertical;
}

.field:focus {
  outline: 3px solid var(--ice-deep);
  outline-offset: 1px;
  border-color: var(--ice-deep);
}

.msg-preview {
  max-height: 11rem;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: .92rem;
  line-height: 1.5;
}

.chooser-list {
  display: grid;
  gap: .7rem;
  padding: .5rem 1.5rem 1.6rem;
}

.chooser-list .btn {
  justify-content: flex-start;
}

/* ---------- Demo yer tutucu sayfası ---------- */
.demo-stub {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.2rem;
  min-height: 100svh;
}

.demo-stub h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.demo-stub p {
  max-width: 30rem;
  color: var(--muted);
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .menu-btn {
    display: grid;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: .4rem 1.25rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
  }

  .btn-head {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .btn-head .lbl {
    display: none;
  }

  .story {
    height: 240svh;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    align-content: center;
  }

  .story-art {
    max-height: 36svh;
    margin-inline: auto;
  }

  .art-status {
    top: -2.2rem;
  }

  .hero-sub {
    margin-top: .9rem;
    font-size: .98rem;
  }

  .hero-cta {
    margin-top: 1.1rem;
  }

  .hero-cta .btn-quiet,
  .scroll-hint {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .split-intro {
    position: static;
  }

  .service {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .service .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 900px) and (max-height: 660px) {
  .hero-sub {
    display: none;
  }
}

@media (max-width: 600px) {
  .dlg {
    margin: auto auto 0;
    width: 100%;
    max-height: 92svh;
    border-radius: 28px 28px 0 0;
  }

  .dlg-inner {
    max-height: 92svh;
  }

  .dlg-small {
    width: 100%;
  }

  .wiz-foot {
    flex-wrap: wrap;
    gap: .6rem;
  }

  .wiz-foot-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .wiz-foot .btn,
  .wiz-foot-actions .btn {
    flex: 1;
    min-width: 0;
    padding: .75rem .65rem;
    font-size: .88rem;
  }
}

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story {
    height: auto;
  }

  .story-stick {
    position: static;
    height: auto;
    min-height: 100svh;
  }

  .scroll-hint {
    display: none;
  }

  .marquee {
    overflow-x: auto;
  }

  .marquee-track {
    animation: none;
  }

  .float-chip {
    transition: none;
  }

  .step,
  .dlg[open] {
    animation: none;
  }
}